1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for IceS 2.0.3.
4#
5# Report bugs to <icecast@xiph.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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 icecast@xiph.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: 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='IceS'
592PACKAGE_TARNAME='ices'
593PACKAGE_VERSION='2.0.3'
594PACKAGE_STRING='IceS 2.0.3'
595PACKAGE_BUGREPORT='icecast@xiph.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/ices.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639XIPH_LIBS
640XIPH_CPPFLAGS
641XIPH_CFLAGS
642PROFILE
643DEBUG
644LIBTOOL_DEPS
645XML_CFLAGS
646XML_LIBS
647ROARAUDIO_CFLAGS
648ROARAUDIO_LIBS
649ALSA_LIBS
650VORBISENC_LIBS
651VORBISFILE_LIBS
652VORBIS_LIBS
653VORBIS_LDFLAGS
654VORBIS_CFLAGS
655VORBIS_PREFIX
656OGG_LDFLAGS
657OGG_CFLAGS
658OGG_LIBS
659OGG_PREFIX
660SHOUTCONFIG
661PKGCONFIG
662XMLCONFIG
663HAVE_ROARAUDIO_FALSE
664HAVE_ROARAUDIO_TRUE
665HAVE_ALSA_FALSE
666HAVE_ALSA_TRUE
667HAVE_SUN_AUDIO_FALSE
668HAVE_SUN_AUDIO_TRUE
669HAVE_OSS_FALSE
670HAVE_OSS_TRUE
671CPP
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681DLLTOOL
682OBJDUMP
683LN_S
684NM
685ac_ct_DUMPBIN
686DUMPBIN
687LD
688FGREP
689EGREP
690GREP
691SED
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700LIBTOOL
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__quote
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718MAINT
719MAINTAINER_MODE_FALSE
720MAINTAINER_MODE_TRUE
721AM_BACKSLASH
722AM_DEFAULT_VERBOSITY
723AM_DEFAULT_V
724AM_V
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789enable_silent_rules
790enable_maintainer_mode
791enable_dependency_tracking
792enable_shared
793enable_static
794with_pic
795enable_fast_install
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_oss
800enable_sun_audio
801enable_alsa
802enable_roaraudio
803with_xml_config
804with_ogg
805with_vorbis
806'
807      ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP
816XMLCONFIG
817OGG_PREFIX
818VORBIS_PREFIX'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures IceS 2.0.3 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/ices]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of IceS 2.0.3:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-maintainer-mode
1440                          enable make rules and dependencies not useful (and
1441                          sometimes confusing) to the casual installer
1442  --enable-dependency-tracking
1443                          do not reject slow dependency extractors
1444  --disable-dependency-tracking
1445                          speeds up one-time build
1446  --enable-shared[=PKGS]  build shared libraries [default=yes]
1447  --enable-static[=PKGS]  build static libraries [default=yes]
1448  --enable-fast-install[=PKGS]
1449                          optimize for fast installation [default=yes]
1450  --disable-libtool-lock  avoid locking (might break parallel builds)
1451  --disable-oss           OSS support [default=autodetect]
1452  --disable-sun-audio     Sun audio input [default=autodetect]
1453  --disable-alsa          ALSA support [default=autodetect]
1454  --disable-roaraudio     Roaraudio support [default=autodetect]
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1462  --with-sysroot=DIR Search for dependent libraries within DIR
1463                        (or the compiler's sysroot if not specified).
1464  --with-xml-config=PATH  use xml-config in PATH to find libxml
1465  --with-ogg=PREFIX       Prefix where libogg is installed (optional)
1466  --with-vorbis=PREFIX    Prefix where libvorbis is installed (optional)
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  XMLCONFIG   XML configuration program
1478  OGG_PREFIX  path to ogg installation
1479  VORBIS_PREFIX
1480              path to vorbis installation
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to <icecast@xiph.org>.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491  # If there are subdirs, report their specific --help.
1492  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493    test -d "$ac_dir" ||
1494      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495      continue
1496    ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502  # A ".." for each directory in $ac_dir_suffix.
1503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504  case $ac_top_builddir_sub in
1505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507  esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515  .)  # We are building in place.
1516    ac_srcdir=.
1517    ac_top_srcdir=$ac_top_builddir_sub
1518    ac_abs_top_srcdir=$ac_pwd ;;
1519  [\\/]* | ?:[\\/]* )  # Absolute name.
1520    ac_srcdir=$srcdir$ac_dir_suffix;
1521    ac_top_srcdir=$srcdir
1522    ac_abs_top_srcdir=$srcdir ;;
1523  *) # Relative name.
1524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525    ac_top_srcdir=$ac_top_build_prefix$srcdir
1526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530    cd "$ac_dir" || { ac_status=$?; continue; }
1531    # Check for guested configure.
1532    if test -f "$ac_srcdir/configure.gnu"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535    elif test -f "$ac_srcdir/configure"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure" --help=recursive
1538    else
1539      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540    fi || ac_status=$?
1541    cd "$ac_pwd" || { ac_status=$?; break; }
1542  done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547  cat <<\_ACEOF
1548IceS configure 2.0.3
1549generated by GNU Autoconf 2.69
1550
1551Copyright (C) 2012 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555  exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest$ac_exeext
1607  if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_link") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest$ac_exeext && {
1626	 test "$cross_compiling" = yes ||
1627	 test -x conftest$ac_exeext
1628       }; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638  # interfere with the next link command; also delete a directory that is
1639  # left behind by Apple's compiler.  We do this before executing the actions.
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_link
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656  $as_echo_n "(cached) " >&6
1657else
1658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h.  */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664  eval "$3=yes"
1665else
1666  eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } > conftest.i && {
1699	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707    ac_retval=1
1708fi
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724  *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728  (eval "$ac_link") 2>&5
1729  ac_status=$?
1730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732  { { case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_try") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; }; }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: program exited with status $ac_status" >&5
1745       $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748       ac_retval=$ac_status
1749fi
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774    which can conflict with char $2 (); below.
1775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776    <limits.h> exists even on freestanding compilers.  */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787   Use char because int might match the return type of a GCC
1788   builtin and then its argument prototype would still apply.  */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794    to always fail with ENOSYS.  Some functions are actually named
1795    something starting with __ and the normal name is an alias.  */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809  eval "$3=yes"
1810else
1811  eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814    conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_func
1822
1823# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824# -------------------------------------------------------
1825# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826# the include files in INCLUDES and setting the cache variable VAR
1827# accordingly.
1828ac_fn_c_check_header_mongrel ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  if eval \${$3+:} false; then :
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840else
1841  # Is the header compilable?
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843$as_echo_n "checking $2 usability... " >&6; }
1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846$4
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_compile "$LINENO"; then :
1850  ac_header_compiler=yes
1851else
1852  ac_header_compiler=no
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856$as_echo "$ac_header_compiler" >&6; }
1857
1858# Is the header present?
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860$as_echo_n "checking $2 presence... " >&6; }
1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_cpp "$LINENO"; then :
1866  ac_header_preproc=yes
1867else
1868  ac_header_preproc=no
1869fi
1870rm -f conftest.err conftest.i conftest.$ac_ext
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872$as_echo "$ac_header_preproc" >&6; }
1873
1874# So?  What about this header?
1875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876  yes:no: )
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881    ;;
1882  no:yes:* )
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1886$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1890$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893( $as_echo "## ------------------------------- ##
1894## Report this to icecast@xiph.org ##
1895## ------------------------------- ##"
1896     ) | sed "s/^/$as_me: WARNING:     /" >&2
1897    ;;
1898esac
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  eval "$3=\$ac_header_compiler"
1905fi
1906eval ac_res=\$$3
1907	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909fi
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_header_mongrel
1913
1914# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1915# -------------------------------------------
1916# Tests whether TYPE exists after having included INCLUDES, setting cache
1917# variable VAR accordingly.
1918ac_fn_c_check_type ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if eval \${$3+:} false; then :
1924  $as_echo_n "(cached) " >&6
1925else
1926  eval "$3=no"
1927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h.  */
1929$4
1930int
1931main ()
1932{
1933if (sizeof ($2))
1934	 return 0;
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int
1944main ()
1945{
1946if (sizeof (($2)))
1947	    return 0;
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953
1954else
1955  eval "$3=yes"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_type
1967cat >config.log <<_ACEOF
1968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
1971It was created by IceS $as_me 2.0.3, which was
1972generated by GNU Autoconf 2.69.  Invocation command line was
1973
1974  $ $0 $@
1975
1976_ACEOF
1977exec 5>>config.log
1978{
1979cat <<_ASUNAME
1980## --------- ##
1981## Platform. ##
1982## --------- ##
1983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1992
1993/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1994/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1997/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1998/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1999/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2000
2001_ASUNAME
2002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008    $as_echo "PATH: $as_dir"
2009  done
2010IFS=$as_save_IFS
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035  for ac_arg
2036  do
2037    case $ac_arg in
2038    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040    | -silent | --silent | --silen | --sile | --sil)
2041      continue ;;
2042    *\'*)
2043      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    esac
2045    case $ac_pass in
2046    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047    2)
2048      as_fn_append ac_configure_args1 " '$ac_arg'"
2049      if test $ac_must_keep_next = true; then
2050	ac_must_keep_next=false # Got value, back to normal.
2051      else
2052	case $ac_arg in
2053	  *=* | --config-cache | -C | -disable-* | --disable-* \
2054	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056	  | -with-* | --with-* | -without-* | --without-* | --x)
2057	    case "$ac_configure_args0 " in
2058	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059	    esac
2060	    ;;
2061	  -* ) ac_must_keep_next=true ;;
2062	esac
2063      fi
2064      as_fn_append ac_configure_args " '$ac_arg'"
2065      ;;
2066    esac
2067  done
2068done
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log.  We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077trap 'exit_status=$?
2078  # Save into config.log some information that might help in debugging.
2079  {
2080    echo
2081
2082    $as_echo "## ---------------- ##
2083## Cache variables. ##
2084## ---------------- ##"
2085    echo
2086    # The following way of writing the cache mishandles newlines in values,
2087(
2088  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089    eval ac_val=\$$ac_var
2090    case $ac_val in #(
2091    *${as_nl}*)
2092      case $ac_var in #(
2093      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095      esac
2096      case $ac_var in #(
2097      _ | IFS | as_nl) ;; #(
2098      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099      *) { eval $ac_var=; unset $ac_var;} ;;
2100      esac ;;
2101    esac
2102  done
2103  (set) 2>&1 |
2104    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105    *${as_nl}ac_space=\ *)
2106      sed -n \
2107	"s/'\''/'\''\\\\'\'''\''/g;
2108	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109      ;; #(
2110    *)
2111      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112      ;;
2113    esac |
2114    sort
2115)
2116    echo
2117
2118    $as_echo "## ----------------- ##
2119## Output variables. ##
2120## ----------------- ##"
2121    echo
2122    for ac_var in $ac_subst_vars
2123    do
2124      eval ac_val=\$$ac_var
2125      case $ac_val in
2126      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127      esac
2128      $as_echo "$ac_var='\''$ac_val'\''"
2129    done | sort
2130    echo
2131
2132    if test -n "$ac_subst_files"; then
2133      $as_echo "## ------------------- ##
2134## File substitutions. ##
2135## ------------------- ##"
2136      echo
2137      for ac_var in $ac_subst_files
2138      do
2139	eval ac_val=\$$ac_var
2140	case $ac_val in
2141	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142	esac
2143	$as_echo "$ac_var='\''$ac_val'\''"
2144      done | sort
2145      echo
2146    fi
2147
2148    if test -s confdefs.h; then
2149      $as_echo "## ----------- ##
2150## confdefs.h. ##
2151## ----------- ##"
2152      echo
2153      cat confdefs.h
2154      echo
2155    fi
2156    test "$ac_signal" != 0 &&
2157      $as_echo "$as_me: caught signal $ac_signal"
2158    $as_echo "$as_me: exit $exit_status"
2159  } >&5
2160  rm -f core *.core core.conftest.* &&
2161    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162    exit $exit_status
2163' 0
2164for ac_signal in 1 2 13 15; do
2165  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
2170rm -f -r conftest* confdefs.h
2171
2172$as_echo "/* confdefs.h */" > confdefs.h
2173
2174# Predefined preprocessor variables.
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_NAME "$PACKAGE_NAME"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_STRING "$PACKAGE_STRING"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_URL "$PACKAGE_URL"
2198_ACEOF
2199
2200
2201# Let the site file select an alternate cache file if it wants to.
2202# Prefer an explicitly selected file to automatically selected ones.
2203ac_site_file1=NONE
2204ac_site_file2=NONE
2205if test -n "$CONFIG_SITE"; then
2206  # We do not want a PATH search for config.site.
2207  case $CONFIG_SITE in #((
2208    -*)  ac_site_file1=./$CONFIG_SITE;;
2209    */*) ac_site_file1=$CONFIG_SITE;;
2210    *)   ac_site_file1=./$CONFIG_SITE;;
2211  esac
2212elif test "x$prefix" != xNONE; then
2213  ac_site_file1=$prefix/share/config.site
2214  ac_site_file2=$prefix/etc/config.site
2215else
2216  ac_site_file1=$ac_default_prefix/share/config.site
2217  ac_site_file2=$ac_default_prefix/etc/config.site
2218fi
2219for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220do
2221  test "x$ac_site_file" = xNONE && continue
2222  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2225    sed 's/^/| /' "$ac_site_file" >&5
2226    . "$ac_site_file" \
2227      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229as_fn_error $? "failed to load site script $ac_site_file
2230See \`config.log' for more details" "$LINENO" 5; }
2231  fi
2232done
2233
2234if test -r "$cache_file"; then
2235  # Some versions of bash will fail to source /dev/null (special files
2236  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2237  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239$as_echo "$as_me: loading cache $cache_file" >&6;}
2240    case $cache_file in
2241      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242      *)                      . "./$cache_file";;
2243    esac
2244  fi
2245else
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247$as_echo "$as_me: creating cache $cache_file" >&6;}
2248  >$cache_file
2249fi
2250
2251# Check that the precious variables saved in the cache have kept the same
2252# value.
2253ac_cache_corrupted=false
2254for ac_var in $ac_precious_vars; do
2255  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256  eval ac_new_set=\$ac_env_${ac_var}_set
2257  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258  eval ac_new_val=\$ac_env_${ac_var}_value
2259  case $ac_old_set,$ac_new_set in
2260    set,)
2261      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2263      ac_cache_corrupted=: ;;
2264    ,set)
2265      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2267      ac_cache_corrupted=: ;;
2268    ,);;
2269    *)
2270      if test "x$ac_old_val" != "x$ac_new_val"; then
2271	# differences in whitespace do not lead to failure.
2272	ac_old_val_w=`echo x $ac_old_val`
2273	ac_new_val_w=`echo x $ac_new_val`
2274	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277	  ac_cache_corrupted=:
2278	else
2279	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281	  eval $ac_var=\$ac_old_val
2282	fi
2283	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2284$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2285	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2286$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2287      fi;;
2288  esac
2289  # Pass precious variables to config.status.
2290  if test "$ac_new_set" = set; then
2291    case $ac_new_val in
2292    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2293    *) ac_arg=$ac_var=$ac_new_val ;;
2294    esac
2295    case " $ac_configure_args " in
2296      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2297      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2298    esac
2299  fi
2300done
2301if $ac_cache_corrupted; then
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2306  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307fi
2308## -------------------- ##
2309## Main body of script. ##
2310## -------------------- ##
2311
2312ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
2318
2319
2320
2321
2322
2323am__api_version='1.14'
2324
2325ac_aux_dir=
2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327  if test -f "$ac_dir/install-sh"; then
2328    ac_aux_dir=$ac_dir
2329    ac_install_sh="$ac_aux_dir/install-sh -c"
2330    break
2331  elif test -f "$ac_dir/install.sh"; then
2332    ac_aux_dir=$ac_dir
2333    ac_install_sh="$ac_aux_dir/install.sh -c"
2334    break
2335  elif test -f "$ac_dir/shtool"; then
2336    ac_aux_dir=$ac_dir
2337    ac_install_sh="$ac_aux_dir/shtool install -c"
2338    break
2339  fi
2340done
2341if test -z "$ac_aux_dir"; then
2342  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343fi
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2352
2353
2354# Find a good install program.  We prefer a C program (faster),
2355# so one script is as good as another.  But avoid the broken or
2356# incompatible versions:
2357# SysV /etc/install, /usr/sbin/install
2358# SunOS /usr/etc/install
2359# IRIX /sbin/install
2360# AIX /bin/install
2361# AmigaOS /C/install, which installs bootblocks on floppy discs
2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365# OS/2's system install, which has a completely different semantic
2366# ./install, which can be erroneously created by make from ./install.sh.
2367# Reject install programs that cannot install multiple files.
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2369$as_echo_n "checking for a BSD-compatible install... " >&6; }
2370if test -z "$INSTALL"; then
2371if ${ac_cv_path_install+:} false; then :
2372  $as_echo_n "(cached) " >&6
2373else
2374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379    # Account for people who put trailing slashes in PATH elements.
2380case $as_dir/ in #((
2381  ./ | .// | /[cC]/* | \
2382  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2384  /usr/ucb/* ) ;;
2385  *)
2386    # OSF1 and SCO ODT 3.0 have their own names for install.
2387    # Don't use installbsd from OSF since it installs stuff as root
2388    # by default.
2389    for ac_prog in ginstall scoinst install; do
2390      for ac_exec_ext in '' $ac_executable_extensions; do
2391	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2392	  if test $ac_prog = install &&
2393	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394	    # AIX install.  It has an incompatible calling convention.
2395	    :
2396	  elif test $ac_prog = install &&
2397	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398	    # program-specific install script used by HP pwplus--don't use.
2399	    :
2400	  else
2401	    rm -rf conftest.one conftest.two conftest.dir
2402	    echo one > conftest.one
2403	    echo two > conftest.two
2404	    mkdir conftest.dir
2405	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406	      test -s conftest.one && test -s conftest.two &&
2407	      test -s conftest.dir/conftest.one &&
2408	      test -s conftest.dir/conftest.two
2409	    then
2410	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411	      break 3
2412	    fi
2413	  fi
2414	fi
2415      done
2416    done
2417    ;;
2418esac
2419
2420  done
2421IFS=$as_save_IFS
2422
2423rm -rf conftest.one conftest.two conftest.dir
2424
2425fi
2426  if test "${ac_cv_path_install+set}" = set; then
2427    INSTALL=$ac_cv_path_install
2428  else
2429    # As a last resort, use the slow shell script.  Don't cache a
2430    # value for INSTALL within a source directory, because that will
2431    # break other packages using the cache if that directory is
2432    # removed, or if the value is a relative name.
2433    INSTALL=$ac_install_sh
2434  fi
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2437$as_echo "$INSTALL" >&6; }
2438
2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440# It thinks the first close brace ends the variable substitution.
2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2448$as_echo_n "checking whether build environment is sane... " >&6; }
2449# Reject unsafe characters in $srcdir or the absolute working directory
2450# name.  Accept space and tab only in the latter.
2451am_lf='
2452'
2453case `pwd` in
2454  *[\\\"\#\$\&\'\`$am_lf]*)
2455    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2456esac
2457case $srcdir in
2458  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2459    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2460esac
2461
2462# Do 'set' in a subshell so we don't clobber the current shell's
2463# arguments.  Must try -L first in case configure is actually a
2464# symlink; some systems play weird games with the mod time of symlinks
2465# (eg FreeBSD returns the mod time of the symlink's containing
2466# directory).
2467if (
2468   am_has_slept=no
2469   for am_try in 1 2; do
2470     echo "timestamp, slept: $am_has_slept" > conftest.file
2471     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2472     if test "$*" = "X"; then
2473	# -L didn't work.
2474	set X `ls -t "$srcdir/configure" conftest.file`
2475     fi
2476     if test "$*" != "X $srcdir/configure conftest.file" \
2477	&& test "$*" != "X conftest.file $srcdir/configure"; then
2478
2479	# If neither matched, then we have a broken ls.  This can happen
2480	# if, for instance, CONFIG_SHELL is bash and it inherits a
2481	# broken ls alias from the environment.  This has actually
2482	# happened.  Such a system could not be considered "sane".
2483	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2484  alias in your environment" "$LINENO" 5
2485     fi
2486     if test "$2" = conftest.file || test $am_try -eq 2; then
2487       break
2488     fi
2489     # Just in case.
2490     sleep 1
2491     am_has_slept=yes
2492   done
2493   test "$2" = conftest.file
2494   )
2495then
2496   # Ok.
2497   :
2498else
2499   as_fn_error $? "newly created file is older than distributed files!
2500Check your system clock" "$LINENO" 5
2501fi
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2503$as_echo "yes" >&6; }
2504# If we didn't sleep, we still need to ensure time stamps of config.status and
2505# generated files are strictly newer.
2506am_sleep_pid=
2507if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2508  ( sleep 1 ) &
2509  am_sleep_pid=$!
2510fi
2511
2512rm -f conftest.file
2513
2514test "$program_prefix" != NONE &&
2515  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2516# Use a double $ so make ignores it.
2517test "$program_suffix" != NONE &&
2518  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2519# Double any \ or $.
2520# By default was `s,x,x', remove it if useless.
2521ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2522program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523
2524# Expand $ac_aux_dir to an absolute path.
2525am_aux_dir=`cd "$ac_aux_dir" && pwd`
2526
2527if test x"${MISSING+set}" != xset; then
2528  case $am_aux_dir in
2529  *\ * | *\	*)
2530    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2531  *)
2532    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2533  esac
2534fi
2535# Use eval to expand $SHELL
2536if eval "$MISSING --is-lightweight"; then
2537  am_missing_run="$MISSING "
2538else
2539  am_missing_run=
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2541$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2542fi
2543
2544if test x"${install_sh}" != xset; then
2545  case $am_aux_dir in
2546  *\ * | *\	*)
2547    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2548  *)
2549    install_sh="\${SHELL} $am_aux_dir/install-sh"
2550  esac
2551fi
2552
2553# Installed binaries are usually stripped using 'strip' when the user
2554# run "make install-strip".  However 'strip' might not be the right
2555# tool to use in cross-compilation environments, therefore Automake
2556# will honor the 'STRIP' environment variable to overrule this program.
2557if test "$cross_compiling" != no; then
2558  if test -n "$ac_tool_prefix"; then
2559  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}strip; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_STRIP+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test -n "$STRIP"; then
2567  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572  IFS=$as_save_IFS
2573  test -z "$as_dir" && as_dir=.
2574    for ac_exec_ext in '' $ac_executable_extensions; do
2575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585fi
2586STRIP=$ac_cv_prog_STRIP
2587if test -n "$STRIP"; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2589$as_echo "$STRIP" >&6; }
2590else
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
2593fi
2594
2595
2596fi
2597if test -z "$ac_cv_prog_STRIP"; then
2598  ac_ct_STRIP=$STRIP
2599  # Extract the first word of "strip", so it can be a program name with args.
2600set dummy strip; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$ac_ct_STRIP"; then
2607  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614    for ac_exec_ext in '' $ac_executable_extensions; do
2615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_ac_ct_STRIP="strip"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2627if test -n "$ac_ct_STRIP"; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2629$as_echo "$ac_ct_STRIP" >&6; }
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633fi
2634
2635  if test "x$ac_ct_STRIP" = x; then
2636    STRIP=":"
2637  else
2638    case $cross_compiling:$ac_tool_warned in
2639yes:)
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642ac_tool_warned=yes ;;
2643esac
2644    STRIP=$ac_ct_STRIP
2645  fi
2646else
2647  STRIP="$ac_cv_prog_STRIP"
2648fi
2649
2650fi
2651INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2652
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2654$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2655if test -z "$MKDIR_P"; then
2656  if ${ac_cv_path_mkdir+:} false; then :
2657  $as_echo_n "(cached) " >&6
2658else
2659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664    for ac_prog in mkdir gmkdir; do
2665	 for ac_exec_ext in '' $ac_executable_extensions; do
2666	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2667	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2668	     'mkdir (GNU coreutils) '* | \
2669	     'mkdir (coreutils) '* | \
2670	     'mkdir (fileutils) '4.1*)
2671	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2672	       break 3;;
2673	   esac
2674	 done
2675       done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680
2681  test -d ./--version && rmdir ./--version
2682  if test "${ac_cv_path_mkdir+set}" = set; then
2683    MKDIR_P="$ac_cv_path_mkdir -p"
2684  else
2685    # As a last resort, use the slow shell script.  Don't cache a
2686    # value for MKDIR_P within a source directory, because that will
2687    # break other packages using the cache if that directory is
2688    # removed, or if the value is a relative name.
2689    MKDIR_P="$ac_install_sh -d"
2690  fi
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2693$as_echo "$MKDIR_P" >&6; }
2694
2695for ac_prog in gawk mawk nawk awk
2696do
2697  # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_AWK+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test -n "$AWK"; then
2705  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    for ac_exec_ext in '' $ac_executable_extensions; do
2713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714    ac_cv_prog_AWK="$ac_prog"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724AWK=$ac_cv_prog_AWK
2725if test -n "$AWK"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727$as_echo "$AWK" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734  test -n "$AWK" && break
2735done
2736
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2738$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2739set x ${MAKE-make}
2740ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2741if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  cat >conftest.make <<\_ACEOF
2745SHELL = /bin/sh
2746all:
2747	@echo '@@@%%%=$(MAKE)=@@@%%%'
2748_ACEOF
2749# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2750case `${MAKE-make} -f conftest.make 2>/dev/null` in
2751  *@@@%%%=?*=@@@%%%*)
2752    eval ac_cv_prog_make_${ac_make}_set=yes;;
2753  *)
2754    eval ac_cv_prog_make_${ac_make}_set=no;;
2755esac
2756rm -f conftest.make
2757fi
2758if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2760$as_echo "yes" >&6; }
2761  SET_MAKE=
2762else
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765  SET_MAKE="MAKE=${MAKE-make}"
2766fi
2767
2768rm -rf .tst 2>/dev/null
2769mkdir .tst 2>/dev/null
2770if test -d .tst; then
2771  am__leading_dot=.
2772else
2773  am__leading_dot=_
2774fi
2775rmdir .tst 2>/dev/null
2776
2777# Check whether --enable-silent-rules was given.
2778if test "${enable_silent_rules+set}" = set; then :
2779  enableval=$enable_silent_rules;
2780fi
2781
2782case $enable_silent_rules in # (((
2783  yes) AM_DEFAULT_VERBOSITY=0;;
2784   no) AM_DEFAULT_VERBOSITY=1;;
2785    *) AM_DEFAULT_VERBOSITY=1;;
2786esac
2787am_make=${MAKE-make}
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2789$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2790if ${am_cv_make_support_nested_variables+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if $as_echo 'TRUE=$(BAR$(V))
2794BAR0=false
2795BAR1=true
2796V=1
2797am__doit:
2798	@$(TRUE)
2799.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2800  am_cv_make_support_nested_variables=yes
2801else
2802  am_cv_make_support_nested_variables=no
2803fi
2804fi
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2806$as_echo "$am_cv_make_support_nested_variables" >&6; }
2807if test $am_cv_make_support_nested_variables = yes; then
2808    AM_V='$(V)'
2809  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2810else
2811  AM_V=$AM_DEFAULT_VERBOSITY
2812  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2813fi
2814AM_BACKSLASH='\'
2815
2816if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818  # is not polluted with repeated "-I."
2819  am__isrc=' -I$(srcdir)'
2820  # test to see if srcdir already configured
2821  if test -f $srcdir/config.status; then
2822    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2823  fi
2824fi
2825
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828  if (cygpath --version) >/dev/null 2>/dev/null; then
2829    CYGPATH_W='cygpath -w'
2830  else
2831    CYGPATH_W=echo
2832  fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE='ices'
2838 VERSION='2.0.3'
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define PACKAGE "$PACKAGE"
2843_ACEOF
2844
2845
2846cat >>confdefs.h <<_ACEOF
2847#define VERSION "$VERSION"
2848_ACEOF
2849
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865
2866# For better backward compatibility.  To be removed once Automake 1.9.x
2867# dies out for good.  For more background, see:
2868# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2869# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2870mkdir_p='$(MKDIR_P)'
2871
2872# We need awk for the "check" target.  The system "awk" is bad on
2873# some platforms.
2874# Always define AMTAR for backward compatibility.  Yes, it's still used
2875# in the wild :-(  We should find a proper way to deprecate it ...
2876AMTAR='$${TAR-tar}'
2877
2878
2879# We'll loop over all known methods to create a tar archive until one works.
2880_am_tools='gnutar  pax cpio none'
2881
2882am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2883
2884
2885
2886
2887
2888
2889# POSIX will say in a future version that running "rm -f" with no argument
2890# is OK; and we want to be able to make that assumption in our Makefile
2891# recipes.  So use an aggressive probe to check that the usage we want is
2892# actually supported "in the wild" to an acceptable degree.
2893# See automake bug#10828.
2894# To make any issue more visible, cause the running configure to be aborted
2895# by default if the 'rm' program in use doesn't match our expectations; the
2896# user can still override this though.
2897if rm -f && rm -fr && rm -rf; then : OK; else
2898  cat >&2 <<'END'
2899Oops!
2900
2901Your 'rm' program seems unable to run without file operands specified
2902on the command line, even when the '-f' option is present.  This is contrary
2903to the behaviour of most rm programs out there, and not conforming with
2904the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2905
2906Please tell bug-automake@gnu.org about your system, including the value
2907of your $PATH and any error possibly output before this message.  This
2908can help us improve future automake versions.
2909
2910END
2911  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2912    echo 'Configuration will proceed anyway, since you have set the' >&2
2913    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2914    echo >&2
2915  else
2916    cat >&2 <<'END'
2917Aborting the configuration process, to ensure you take notice of the issue.
2918
2919You can download and install GNU coreutils to get an 'rm' implementation
2920that behaves properly: <http://www.gnu.org/software/coreutils/>.
2921
2922If you want to complete the configuration process using your problematic
2923'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2924to "yes", and re-run configure.
2925
2926END
2927    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2928  fi
2929fi
2930
2931ac_config_headers="$ac_config_headers config.h"
2932
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2935$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2936    # Check whether --enable-maintainer-mode was given.
2937if test "${enable_maintainer_mode+set}" = set; then :
2938  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2939else
2940  USE_MAINTAINER_MODE=no
2941fi
2942
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2944$as_echo "$USE_MAINTAINER_MODE" >&6; }
2945   if test $USE_MAINTAINER_MODE = yes; then
2946  MAINTAINER_MODE_TRUE=
2947  MAINTAINER_MODE_FALSE='#'
2948else
2949  MAINTAINER_MODE_TRUE='#'
2950  MAINTAINER_MODE_FALSE=
2951fi
2952
2953  MAINT=$MAINTAINER_MODE_TRUE
2954
2955
2956
2957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_CC"; then
3002  ac_ct_CC=$CC
3003  # Extract the first word of "gcc", so it can be a program name with args.
3004set dummy gcc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_CC"; then
3011  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_ac_ct_CC="gcc"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033$as_echo "$ac_ct_CC" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_CC" = x; then
3040    CC=""
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    CC=$ac_ct_CC
3049  fi
3050else
3051  CC="$ac_cv_prog_CC"
3052fi
3053
3054if test -z "$CC"; then
3055          if test -n "$ac_tool_prefix"; then
3056    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}cc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$CC"; then
3064  ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    ac_cv_prog_CC="${ac_tool_prefix}cc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083CC=$ac_cv_prog_CC
3084if test -n "$CC"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086$as_echo "$CC" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  fi
3094fi
3095if test -z "$CC"; then
3096  # Extract the first word of "cc", so it can be a program name with args.
3097set dummy cc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_CC+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$CC"; then
3104  ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
3106  ac_prog_rejected=no
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110  IFS=$as_save_IFS
3111  test -z "$as_dir" && as_dir=.
3112    for ac_exec_ext in '' $ac_executable_extensions; do
3113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115       ac_prog_rejected=yes
3116       continue
3117     fi
3118    ac_cv_prog_CC="cc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126if test $ac_prog_rejected = yes; then
3127  # We found a bogon in the path, so make sure we never use it.
3128  set dummy $ac_cv_prog_CC
3129  shift
3130  if test $# != 0; then
3131    # We chose a different compiler from the bogus one.
3132    # However, it has the same basename, so the bogon will be chosen
3133    # first if we set CC to just the basename; use the full file name.
3134    shift
3135    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136  fi
3137fi
3138fi
3139fi
3140CC=$ac_cv_prog_CC
3141if test -n "$CC"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143$as_echo "$CC" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150fi
3151if test -z "$CC"; then
3152  if test -n "$ac_tool_prefix"; then
3153  for ac_prog in cl.exe
3154  do
3155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_CC+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192    test -n "$CC" && break
3193  done
3194fi
3195if test -z "$CC"; then
3196  ac_ct_CC=$CC
3197  for ac_prog in cl.exe
3198do
3199  # Extract the first word of "$ac_prog", so it can be a program name with args.
3200set dummy $ac_prog; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$ac_ct_CC"; then
3207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_ac_ct_CC="$ac_prog"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227if test -n "$ac_ct_CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229$as_echo "$ac_ct_CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236  test -n "$ac_ct_CC" && break
3237done
3238
3239  if test "x$ac_ct_CC" = x; then
3240    CC=""
3241  else
3242    case $cross_compiling:$ac_tool_warned in
3243yes:)
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246ac_tool_warned=yes ;;
3247esac
3248    CC=$ac_ct_CC
3249  fi
3250fi
3251
3252fi
3253
3254
3255test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257as_fn_error $? "no acceptable C compiler found in \$PATH
3258See \`config.log' for more details" "$LINENO" 5; }
3259
3260# Provide some information about the compiler.
3261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262set X $ac_compile
3263ac_compiler=$2
3264for ac_option in --version -v -V -qversion; do
3265  { { ac_try="$ac_compiler $ac_option >&5"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273  ac_status=$?
3274  if test -s conftest.err; then
3275    sed '10a\
3276... rest of stderr output deleted ...
3277         10q' conftest.err >conftest.er1
3278    cat conftest.er1 >&5
3279  fi
3280  rm -f conftest.er1 conftest.err
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283done
3284
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296ac_clean_files_save=$ac_clean_files
3297ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298# Try to create an executable without -o first, disregard a.out.
3299# It will help us diagnose broken compilers, and finding out an intuition
3300# of exeext.
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302$as_echo_n "checking whether the C compiler works... " >&6; }
3303ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305# The possible output files:
3306ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308ac_rmfiles=
3309for ac_file in $ac_files
3310do
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314  esac
3315done
3316rm -f $ac_rmfiles
3317
3318if { { ac_try="$ac_link_default"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325  (eval "$ac_link_default") 2>&5
3326  ac_status=$?
3327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328  test $ac_status = 0; }; then :
3329  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332# so that the user can short-circuit this test for compilers unknown to
3333# Autoconf.
3334for ac_file in $ac_files ''
3335do
3336  test -f "$ac_file" || continue
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339	;;
3340    [ab].out )
3341	# We found the default executable, but exeext='' is most
3342	# certainly right.
3343	break;;
3344    *.* )
3345	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346	then :; else
3347	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348	fi
3349	# We set ac_cv_exeext here because the later test for it is not
3350	# safe: cross compilers may not add the suffix if given an `-o'
3351	# argument, so we may need to know it at that point already.
3352	# Even if this section looks crufty: it has the advantage of
3353	# actually working.
3354	break;;
3355    * )
3356	break;;
3357  esac
3358done
3359test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361else
3362  ac_file=''
3363fi
3364if test -z "$ac_file"; then :
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367$as_echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error 77 "C compiler cannot create executables
3373See \`config.log' for more details" "$LINENO" 5; }
3374else
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376$as_echo "yes" >&6; }
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379$as_echo_n "checking for C compiler default output file name... " >&6; }
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381$as_echo "$ac_file" >&6; }
3382ac_exeext=$ac_cv_exeext
3383
3384rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385ac_clean_files=$ac_clean_files_save
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387$as_echo_n "checking for suffix of executables... " >&6; }
3388if { { ac_try="$ac_link"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_link") 2>&5
3396  ac_status=$?
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }; then :
3399  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3401# work properly (i.e., refer to `conftest.exe'), while it won't with
3402# `rm'.
3403for ac_file in conftest.exe conftest conftest.*; do
3404  test -f "$ac_file" || continue
3405  case $ac_file in
3406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408	  break;;
3409    * ) break;;
3410  esac
3411done
3412else
3413  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416See \`config.log' for more details" "$LINENO" 5; }
3417fi
3418rm -f conftest conftest$ac_cv_exeext
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420$as_echo "$ac_cv_exeext" >&6; }
3421
3422rm -f conftest.$ac_ext
3423EXEEXT=$ac_cv_exeext
3424ac_exeext=$EXEEXT
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <stdio.h>
3428int
3429main ()
3430{
3431FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438ac_clean_files="$ac_clean_files conftest.out"
3439# Check that the compiler produces executables we can run.  If not, either
3440# the compiler is broken, or we cross compile.
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442$as_echo_n "checking whether we are cross compiling... " >&6; }
3443if test "$cross_compiling" != yes; then
3444  { { ac_try="$ac_link"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451  (eval "$ac_link") 2>&5
3452  ac_status=$?
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }
3455  if { ac_try='./conftest$ac_cv_exeext'
3456  { { case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_try") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }; }; then
3466    cross_compiling=no
3467  else
3468    if test "$cross_compiling" = maybe; then
3469	cross_compiling=yes
3470    else
3471	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error $? "cannot run C compiled programs.
3474If you meant to cross compile, use \`--host'.
3475See \`config.log' for more details" "$LINENO" 5; }
3476    fi
3477  fi
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480$as_echo "$cross_compiling" >&6; }
3481
3482rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483ac_clean_files=$ac_clean_files_save
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485$as_echo_n "checking for suffix of object files... " >&6; }
3486if ${ac_cv_objext+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.o conftest.obj
3501if { { ac_try="$ac_compile"
3502case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508  (eval "$ac_compile") 2>&5
3509  ac_status=$?
3510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511  test $ac_status = 0; }; then :
3512  for ac_file in conftest.o conftest.obj conftest.*; do
3513  test -f "$ac_file" || continue;
3514  case $ac_file in
3515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517       break;;
3518  esac
3519done
3520else
3521  $as_echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error $? "cannot compute suffix of object files: cannot compile
3527See \`config.log' for more details" "$LINENO" 5; }
3528fi
3529rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532$as_echo "$ac_cv_objext" >&6; }
3533OBJEXT=$ac_cv_objext
3534ac_objext=$OBJEXT
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537if ${ac_cv_c_compiler_gnu+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546#ifndef __GNUC__
3547       choke me
3548#endif
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554if ac_fn_c_try_compile "$LINENO"; then :
3555  ac_compiler_gnu=yes
3556else
3557  ac_compiler_gnu=no
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565if test $ac_compiler_gnu = yes; then
3566  GCC=yes
3567else
3568  GCC=
3569fi
3570ac_test_CFLAGS=${CFLAGS+set}
3571ac_save_CFLAGS=$CFLAGS
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573$as_echo_n "checking whether $CC accepts -g... " >&6; }
3574if ${ac_cv_prog_cc_g+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  ac_save_c_werror_flag=$ac_c_werror_flag
3578   ac_c_werror_flag=yes
3579   ac_cv_prog_cc_g=no
3580   CFLAGS="-g"
3581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593  ac_cv_prog_cc_g=yes
3594else
3595  CFLAGS=""
3596      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main ()
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608
3609else
3610  ac_c_werror_flag=$ac_save_c_werror_flag
3611	 CFLAGS="-g"
3612	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624  ac_cv_prog_cc_g=yes
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631   ac_c_werror_flag=$ac_save_c_werror_flag
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634$as_echo "$ac_cv_prog_cc_g" >&6; }
3635if test "$ac_test_CFLAGS" = set; then
3636  CFLAGS=$ac_save_CFLAGS
3637elif test $ac_cv_prog_cc_g = yes; then
3638  if test "$GCC" = yes; then
3639    CFLAGS="-g -O2"
3640  else
3641    CFLAGS="-g"
3642  fi
3643else
3644  if test "$GCC" = yes; then
3645    CFLAGS="-O2"
3646  else
3647    CFLAGS=
3648  fi
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652if ${ac_cv_prog_cc_c89+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  ac_cv_prog_cc_c89=no
3656ac_save_CC=$CC
3657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659#include <stdarg.h>
3660#include <stdio.h>
3661struct stat;
3662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663struct buf { int x; };
3664FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665static char *e (p, i)
3666     char **p;
3667     int i;
3668{
3669  return p[i];
3670}
3671static char *f (char * (*g) (char **, int), char **p, ...)
3672{
3673  char *s;
3674  va_list v;
3675  va_start (v,p);
3676  s = g (p, va_arg (v,int));
3677  va_end (v);
3678  return s;
3679}
3680
3681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682   function prototypes and stuff, but not '\xHH' hex character constants.
3683   These don't provoke an error unfortunately, instead are silently treated
3684   as 'x'.  The following induces an error, until -std is added to get
3685   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686   array size at least.  It's necessary to write '\x00'==0 to get something
3687   that's true only with -std.  */
3688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691   inside strings and character constants.  */
3692#define FOO(x) 'x'
3693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695int test (int i, double x);
3696struct s1 {int (*f) (int a);};
3697struct s2 {int (*f) (double a);};
3698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699int argc;
3700char **argv;
3701int
3702main ()
3703{
3704return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711do
3712  CC="$ac_save_CC $ac_arg"
3713  if ac_fn_c_try_compile "$LINENO"; then :
3714  ac_cv_prog_cc_c89=$ac_arg
3715fi
3716rm -f core conftest.err conftest.$ac_objext
3717  test "x$ac_cv_prog_cc_c89" != "xno" && break
3718done
3719rm -f conftest.$ac_ext
3720CC=$ac_save_CC
3721
3722fi
3723# AC_CACHE_VAL
3724case "x$ac_cv_prog_cc_c89" in
3725  x)
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727$as_echo "none needed" >&6; } ;;
3728  xno)
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730$as_echo "unsupported" >&6; } ;;
3731  *)
3732    CC="$CC $ac_cv_prog_cc_c89"
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735esac
3736if test "x$ac_cv_prog_cc_c89" != xno; then :
3737
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3752$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3753if ${am_cv_prog_cc_c_o+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h.  */
3758
3759int
3760main ()
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767  # Make sure it works both with $CC and with simple cc.
3768  # Following AC_PROG_CC_C_O, we do the test twice because some
3769  # compilers refuse to overwrite an existing .o file with -o,
3770  # though they will create one.
3771  am_cv_prog_cc_c_o=yes
3772  for am_i in 1 2; do
3773    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3774   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); } \
3778         && test -f conftest2.$ac_objext; then
3779      : OK
3780    else
3781      am_cv_prog_cc_c_o=no
3782      break
3783    fi
3784  done
3785  rm -f core conftest*
3786  unset am_i
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3789$as_echo "$am_cv_prog_cc_c_o" >&6; }
3790if test "$am_cv_prog_cc_c_o" != yes; then
3791   # Losing compiler, so override with the script.
3792   # FIXME: It is wrong to rewrite CC.
3793   # But if we don't then we get into trouble of one sort or another.
3794   # A longer-term fix would be to have automake use am__CC in this case,
3795   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3796   CC="$am_aux_dir/compile $CC"
3797fi
3798ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804DEPDIR="${am__leading_dot}deps"
3805
3806ac_config_commands="$ac_config_commands depfiles"
3807
3808
3809am_make=${MAKE-make}
3810cat > confinc << 'END'
3811am__doit:
3812	@echo this is the am__doit target
3813.PHONY: am__doit
3814END
3815# If we don't find an include directive, just comment out the code.
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3817$as_echo_n "checking for style of include used by $am_make... " >&6; }
3818am__include="#"
3819am__quote=
3820_am_result=none
3821# First try GNU make style include.
3822echo "include confinc" > confmf
3823# Ignore all kinds of additional output from 'make'.
3824case `$am_make -s -f confmf 2> /dev/null` in #(
3825*the\ am__doit\ target*)
3826  am__include=include
3827  am__quote=
3828  _am_result=GNU
3829  ;;
3830esac
3831# Now try BSD make style include.
3832if test "$am__include" = "#"; then
3833   echo '.include "confinc"' > confmf
3834   case `$am_make -s -f confmf 2> /dev/null` in #(
3835   *the\ am__doit\ target*)
3836     am__include=.include
3837     am__quote="\""
3838     _am_result=BSD
3839     ;;
3840   esac
3841fi
3842
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3845$as_echo "$_am_result" >&6; }
3846rm -f confinc confmf
3847
3848# Check whether --enable-dependency-tracking was given.
3849if test "${enable_dependency_tracking+set}" = set; then :
3850  enableval=$enable_dependency_tracking;
3851fi
3852
3853if test "x$enable_dependency_tracking" != xno; then
3854  am_depcomp="$ac_aux_dir/depcomp"
3855  AMDEPBACKSLASH='\'
3856  am__nodep='_no'
3857fi
3858 if test "x$enable_dependency_tracking" != xno; then
3859  AMDEP_TRUE=
3860  AMDEP_FALSE='#'
3861else
3862  AMDEP_TRUE='#'
3863  AMDEP_FALSE=
3864fi
3865
3866
3867
3868depcc="$CC"   am_compiler_list=
3869
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3871$as_echo_n "checking dependency style of $depcc... " >&6; }
3872if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3876  # We make a subdir and do the tests there.  Otherwise we can end up
3877  # making bogus files that we don't know about and never remove.  For
3878  # instance it was reported that on HP-UX the gcc test will end up
3879  # making a dummy file named 'D' -- because '-MD' means "put the output
3880  # in D".
3881  rm -rf conftest.dir
3882  mkdir conftest.dir
3883  # Copy depcomp to subdir because otherwise we won't find it if we're
3884  # using a relative directory.
3885  cp "$am_depcomp" conftest.dir
3886  cd conftest.dir
3887  # We will build objects and dependencies in a subdirectory because
3888  # it helps to detect inapplicable dependency modes.  For instance
3889  # both Tru64's cc and ICC support -MD to output dependencies as a
3890  # side effect of compilation, but ICC will put the dependencies in
3891  # the current directory while Tru64 will put them in the object
3892  # directory.
3893  mkdir sub
3894
3895  am_cv_CC_dependencies_compiler_type=none
3896  if test "$am_compiler_list" = ""; then
3897     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3898  fi
3899  am__universal=false
3900  case " $depcc " in #(
3901     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3902     esac
3903
3904  for depmode in $am_compiler_list; do
3905    # Setup a source with many dependencies, because some compilers
3906    # like to wrap large dependency lists on column 80 (with \), and
3907    # we should not choose a depcomp mode which is confused by this.
3908    #
3909    # We need to recreate these files for each test, as the compiler may
3910    # overwrite some of them when testing with obscure command lines.
3911    # This happens at least with the AIX C compiler.
3912    : > sub/conftest.c
3913    for i in 1 2 3 4 5 6; do
3914      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3916      # Solaris 10 /bin/sh.
3917      echo '/* dummy */' > sub/conftst$i.h
3918    done
3919    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3922    # mode.  It turns out that the SunPro C++ compiler does not properly
3923    # handle '-M -o', and we need to detect this.  Also, some Intel
3924    # versions had trouble with output in subdirs.
3925    am__obj=sub/conftest.${OBJEXT-o}
3926    am__minus_obj="-o $am__obj"
3927    case $depmode in
3928    gcc)
3929      # This depmode causes a compiler race in universal mode.
3930      test "$am__universal" = false || continue
3931      ;;
3932    nosideeffect)
3933      # After this tag, mechanisms are not by side-effect, so they'll
3934      # only be used when explicitly requested.
3935      if test "x$enable_dependency_tracking" = xyes; then
3936	continue
3937      else
3938	break
3939      fi
3940      ;;
3941    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3942      # This compiler won't grok '-c -o', but also, the minuso test has
3943      # not run yet.  These depmodes are late enough in the game, and
3944      # so weak that their functioning should not be impacted.
3945      am__obj=conftest.${OBJEXT-o}
3946      am__minus_obj=
3947      ;;
3948    none) break ;;
3949    esac
3950    if depmode=$depmode \
3951       source=sub/conftest.c object=$am__obj \
3952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3954         >/dev/null 2>conftest.err &&
3955       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3956       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3957       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3958       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3959      # icc doesn't choke on unknown options, it will just issue warnings
3960      # or remarks (even with -Werror).  So we grep stderr for any message
3961      # that says an option was ignored or not supported.
3962      # When given -MP, icc 7.0 and 7.1 complain thusly:
3963      #   icc: Command line warning: ignoring option '-M'; no argument required
3964      # The diagnosis changed in icc 8.0:
3965      #   icc: Command line remark: option '-MP' not supported
3966      if (grep 'ignoring option' conftest.err ||
3967          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3968        am_cv_CC_dependencies_compiler_type=$depmode
3969        break
3970      fi
3971    fi
3972  done
3973
3974  cd ..
3975  rm -rf conftest.dir
3976else
3977  am_cv_CC_dependencies_compiler_type=none
3978fi
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3982$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3983CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3984
3985 if
3986  test "x$enable_dependency_tracking" != xno \
3987  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3988  am__fastdepCC_TRUE=
3989  am__fastdepCC_FALSE='#'
3990else
3991  am__fastdepCC_TRUE='#'
3992  am__fastdepCC_FALSE=
3993fi
3994
3995
3996case `pwd` in
3997  *\ * | *\	*)
3998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3999$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4000esac
4001
4002
4003
4004macro_version='2.4.2'
4005macro_revision='1.3337'
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019ltmain="$ac_aux_dir/ltmain.sh"
4020
4021# Make sure we can run config.sub.
4022$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4023  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4026$as_echo_n "checking build system type... " >&6; }
4027if ${ac_cv_build+:} false; then :
4028  $as_echo_n "(cached) " >&6
4029else
4030  ac_build_alias=$build_alias
4031test "x$ac_build_alias" = x &&
4032  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4033test "x$ac_build_alias" = x &&
4034  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4035ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4036  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4037
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4040$as_echo "$ac_cv_build" >&6; }
4041case $ac_cv_build in
4042*-*-*) ;;
4043*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4044esac
4045build=$ac_cv_build
4046ac_save_IFS=$IFS; IFS='-'
4047set x $ac_cv_build
4048shift
4049build_cpu=$1
4050build_vendor=$2
4051shift; shift
4052# Remember, the first character of IFS is used to create $*,
4053# except with old shells:
4054build_os=$*
4055IFS=$ac_save_IFS
4056case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4057
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4060$as_echo_n "checking host system type... " >&6; }
4061if ${ac_cv_host+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  if test "x$host_alias" = x; then
4065  ac_cv_host=$ac_cv_build
4066else
4067  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4068    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4073$as_echo "$ac_cv_host" >&6; }
4074case $ac_cv_host in
4075*-*-*) ;;
4076*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4077esac
4078host=$ac_cv_host
4079ac_save_IFS=$IFS; IFS='-'
4080set x $ac_cv_host
4081shift
4082host_cpu=$1
4083host_vendor=$2
4084shift; shift
4085# Remember, the first character of IFS is used to create $*,
4086# except with old shells:
4087host_os=$*
4088IFS=$ac_save_IFS
4089case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4090
4091
4092# Backslashify metacharacters that are still active within
4093# double-quoted strings.
4094sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4095
4096# Same as above, but do not quote variable references.
4097double_quote_subst='s/\(["`\\]\)/\\\1/g'
4098
4099# Sed substitution to delay expansion of an escaped shell variable in a
4100# double_quote_subst'ed string.
4101delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4102
4103# Sed substitution to delay expansion of an escaped single quote.
4104delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4105
4106# Sed substitution to avoid accidental globbing in evaled expressions
4107no_glob_subst='s/\*/\\\*/g'
4108
4109ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4110ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4111ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4114$as_echo_n "checking how to print strings... " >&6; }
4115# Test print first, because it will be a builtin if present.
4116if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4117   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4118  ECHO='print -r --'
4119elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4120  ECHO='printf %s\n'
4121else
4122  # Use this function as a fallback that always works.
4123  func_fallback_echo ()
4124  {
4125    eval 'cat <<_LTECHO_EOF
4126$1
4127_LTECHO_EOF'
4128  }
4129  ECHO='func_fallback_echo'
4130fi
4131
4132# func_echo_all arg...
4133# Invoke $ECHO with all args, space-separated.
4134func_echo_all ()
4135{
4136    $ECHO ""
4137}
4138
4139case "$ECHO" in
4140  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4141$as_echo "printf" >&6; } ;;
4142  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4143$as_echo "print -r" >&6; } ;;
4144  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4145$as_echo "cat" >&6; } ;;
4146esac
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4162$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4163if ${ac_cv_path_SED+:} false; then :
4164  $as_echo_n "(cached) " >&6
4165else
4166            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4167     for ac_i in 1 2 3 4 5 6 7; do
4168       ac_script="$ac_script$as_nl$ac_script"
4169     done
4170     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4171     { ac_script=; unset ac_script;}
4172     if test -z "$SED"; then
4173  ac_path_SED_found=false
4174  # Loop through the user's path and test for each of PROGNAME-LIST
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180    for ac_prog in sed gsed; do
4181    for ac_exec_ext in '' $ac_executable_extensions; do
4182      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4183      as_fn_executable_p "$ac_path_SED" || continue
4184# Check for GNU ac_path_SED and select it if it is found.
4185  # Check for GNU $ac_path_SED
4186case `"$ac_path_SED" --version 2>&1` in
4187*GNU*)
4188  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4189*)
4190  ac_count=0
4191  $as_echo_n 0123456789 >"conftest.in"
4192  while :
4193  do
4194    cat "conftest.in" "conftest.in" >"conftest.tmp"
4195    mv "conftest.tmp" "conftest.in"
4196    cp "conftest.in" "conftest.nl"
4197    $as_echo '' >> "conftest.nl"
4198    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200    as_fn_arith $ac_count + 1 && ac_count=$as_val
4201    if test $ac_count -gt ${ac_path_SED_max-0}; then
4202      # Best one so far, save it but keep looking for a better one
4203      ac_cv_path_SED="$ac_path_SED"
4204      ac_path_SED_max=$ac_count
4205    fi
4206    # 10*(2^10) chars as input seems more than enough
4207    test $ac_count -gt 10 && break
4208  done
4209  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210esac
4211
4212      $ac_path_SED_found && break 3
4213    done
4214  done
4215  done
4216IFS=$as_save_IFS
4217  if test -z "$ac_cv_path_SED"; then
4218    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4219  fi
4220else
4221  ac_cv_path_SED=$SED
4222fi
4223
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4226$as_echo "$ac_cv_path_SED" >&6; }
4227 SED="$ac_cv_path_SED"
4228  rm -f conftest.sed
4229
4230test -z "$SED" && SED=sed
4231Xsed="$SED -e 1s/^X//"
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4244$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4245if ${ac_cv_path_GREP+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248  if test -z "$GREP"; then
4249  ac_path_GREP_found=false
4250  # Loop through the user's path and test for each of PROGNAME-LIST
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_prog in grep ggrep; do
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4259      as_fn_executable_p "$ac_path_GREP" || continue
4260# Check for GNU ac_path_GREP and select it if it is found.
4261  # Check for GNU $ac_path_GREP
4262case `"$ac_path_GREP" --version 2>&1` in
4263*GNU*)
4264  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4265*)
4266  ac_count=0
4267  $as_echo_n 0123456789 >"conftest.in"
4268  while :
4269  do
4270    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271    mv "conftest.tmp" "conftest.in"
4272    cp "conftest.in" "conftest.nl"
4273    $as_echo 'GREP' >> "conftest.nl"
4274    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4278      # Best one so far, save it but keep looking for a better one
4279      ac_cv_path_GREP="$ac_path_GREP"
4280      ac_path_GREP_max=$ac_count
4281    fi
4282    # 10*(2^10) chars as input seems more than enough
4283    test $ac_count -gt 10 && break
4284  done
4285  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288      $ac_path_GREP_found && break 3
4289    done
4290  done
4291  done
4292IFS=$as_save_IFS
4293  if test -z "$ac_cv_path_GREP"; then
4294    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295  fi
4296else
4297  ac_cv_path_GREP=$GREP
4298fi
4299
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4302$as_echo "$ac_cv_path_GREP" >&6; }
4303 GREP="$ac_cv_path_GREP"
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4307$as_echo_n "checking for egrep... " >&6; }
4308if ${ac_cv_path_EGREP+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4312   then ac_cv_path_EGREP="$GREP -E"
4313   else
4314     if test -z "$EGREP"; then
4315  ac_path_EGREP_found=false
4316  # Loop through the user's path and test for each of PROGNAME-LIST
4317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319do
4320  IFS=$as_save_IFS
4321  test -z "$as_dir" && as_dir=.
4322    for ac_prog in egrep; do
4323    for ac_exec_ext in '' $ac_executable_extensions; do
4324      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4325      as_fn_executable_p "$ac_path_EGREP" || continue
4326# Check for GNU ac_path_EGREP and select it if it is found.
4327  # Check for GNU $ac_path_EGREP
4328case `"$ac_path_EGREP" --version 2>&1` in
4329*GNU*)
4330  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4331*)
4332  ac_count=0
4333  $as_echo_n 0123456789 >"conftest.in"
4334  while :
4335  do
4336    cat "conftest.in" "conftest.in" >"conftest.tmp"
4337    mv "conftest.tmp" "conftest.in"
4338    cp "conftest.in" "conftest.nl"
4339    $as_echo 'EGREP' >> "conftest.nl"
4340    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342    as_fn_arith $ac_count + 1 && ac_count=$as_val
4343    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4344      # Best one so far, save it but keep looking for a better one
4345      ac_cv_path_EGREP="$ac_path_EGREP"
4346      ac_path_EGREP_max=$ac_count
4347    fi
4348    # 10*(2^10) chars as input seems more than enough
4349    test $ac_count -gt 10 && break
4350  done
4351  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352esac
4353
4354      $ac_path_EGREP_found && break 3
4355    done
4356  done
4357  done
4358IFS=$as_save_IFS
4359  if test -z "$ac_cv_path_EGREP"; then
4360    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361  fi
4362else
4363  ac_cv_path_EGREP=$EGREP
4364fi
4365
4366   fi
4367fi
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4369$as_echo "$ac_cv_path_EGREP" >&6; }
4370 EGREP="$ac_cv_path_EGREP"
4371
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4374$as_echo_n "checking for fgrep... " >&6; }
4375if ${ac_cv_path_FGREP+:} false; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4379   then ac_cv_path_FGREP="$GREP -F"
4380   else
4381     if test -z "$FGREP"; then
4382  ac_path_FGREP_found=false
4383  # Loop through the user's path and test for each of PROGNAME-LIST
4384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386do
4387  IFS=$as_save_IFS
4388  test -z "$as_dir" && as_dir=.
4389    for ac_prog in fgrep; do
4390    for ac_exec_ext in '' $ac_executable_extensions; do
4391      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4392      as_fn_executable_p "$ac_path_FGREP" || continue
4393# Check for GNU ac_path_FGREP and select it if it is found.
4394  # Check for GNU $ac_path_FGREP
4395case `"$ac_path_FGREP" --version 2>&1` in
4396*GNU*)
4397  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4398*)
4399  ac_count=0
4400  $as_echo_n 0123456789 >"conftest.in"
4401  while :
4402  do
4403    cat "conftest.in" "conftest.in" >"conftest.tmp"
4404    mv "conftest.tmp" "conftest.in"
4405    cp "conftest.in" "conftest.nl"
4406    $as_echo 'FGREP' >> "conftest.nl"
4407    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409    as_fn_arith $ac_count + 1 && ac_count=$as_val
4410    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4411      # Best one so far, save it but keep looking for a better one
4412      ac_cv_path_FGREP="$ac_path_FGREP"
4413      ac_path_FGREP_max=$ac_count
4414    fi
4415    # 10*(2^10) chars as input seems more than enough
4416    test $ac_count -gt 10 && break
4417  done
4418  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419esac
4420
4421      $ac_path_FGREP_found && break 3
4422    done
4423  done
4424  done
4425IFS=$as_save_IFS
4426  if test -z "$ac_cv_path_FGREP"; then
4427    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428  fi
4429else
4430  ac_cv_path_FGREP=$FGREP
4431fi
4432
4433   fi
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4436$as_echo "$ac_cv_path_FGREP" >&6; }
4437 FGREP="$ac_cv_path_FGREP"
4438
4439
4440test -z "$GREP" && GREP=grep
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460# Check whether --with-gnu-ld was given.
4461if test "${with_gnu_ld+set}" = set; then :
4462  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4463else
4464  with_gnu_ld=no
4465fi
4466
4467ac_prog=ld
4468if test "$GCC" = yes; then
4469  # Check if gcc -print-prog-name=ld gives a path.
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4471$as_echo_n "checking for ld used by $CC... " >&6; }
4472  case $host in
4473  *-*-mingw*)
4474    # gcc leaves a trailing carriage return which upsets mingw
4475    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4476  *)
4477    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4478  esac
4479  case $ac_prog in
4480    # Accept absolute paths.
4481    [\\/]* | ?:[\\/]*)
4482      re_direlt='/[^/][^/]*/\.\./'
4483      # Canonicalize the pathname of ld
4484      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4485      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4486	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4487      done
4488      test -z "$LD" && LD="$ac_prog"
4489      ;;
4490  "")
4491    # If it fails, then pretend we aren't using GCC.
4492    ac_prog=ld
4493    ;;
4494  *)
4495    # If it is relative, then search for the first ld in PATH.
4496    with_gnu_ld=unknown
4497    ;;
4498  esac
4499elif test "$with_gnu_ld" = yes; then
4500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4501$as_echo_n "checking for GNU ld... " >&6; }
4502else
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4504$as_echo_n "checking for non-GNU ld... " >&6; }
4505fi
4506if ${lt_cv_path_LD+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -z "$LD"; then
4510  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4511  for ac_dir in $PATH; do
4512    IFS="$lt_save_ifs"
4513    test -z "$ac_dir" && ac_dir=.
4514    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4515      lt_cv_path_LD="$ac_dir/$ac_prog"
4516      # Check to see if the program is GNU ld.  I'd rather use --version,
4517      # but apparently some variants of GNU ld only accept -v.
4518      # Break only if it was the GNU/non-GNU ld that we prefer.
4519      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4520      *GNU* | *'with BFD'*)
4521	test "$with_gnu_ld" != no && break
4522	;;
4523      *)
4524	test "$with_gnu_ld" != yes && break
4525	;;
4526      esac
4527    fi
4528  done
4529  IFS="$lt_save_ifs"
4530else
4531  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4532fi
4533fi
4534
4535LD="$lt_cv_path_LD"
4536if test -n "$LD"; then
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4538$as_echo "$LD" >&6; }
4539else
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542fi
4543test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4545$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4546if ${lt_cv_prog_gnu_ld+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4550case `$LD -v 2>&1 </dev/null` in
4551*GNU* | *'with BFD'*)
4552  lt_cv_prog_gnu_ld=yes
4553  ;;
4554*)
4555  lt_cv_prog_gnu_ld=no
4556  ;;
4557esac
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4560$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4561with_gnu_ld=$lt_cv_prog_gnu_ld
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4572$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4573if ${lt_cv_path_NM+:} false; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  if test -n "$NM"; then
4577  # Let the user override the test.
4578  lt_cv_path_NM="$NM"
4579else
4580  lt_nm_to_check="${ac_tool_prefix}nm"
4581  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4582    lt_nm_to_check="$lt_nm_to_check nm"
4583  fi
4584  for lt_tmp_nm in $lt_nm_to_check; do
4585    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4586    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4587      IFS="$lt_save_ifs"
4588      test -z "$ac_dir" && ac_dir=.
4589      tmp_nm="$ac_dir/$lt_tmp_nm"
4590      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4591	# Check to see if the nm accepts a BSD-compat flag.
4592	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4593	#   nm: unknown option "B" ignored
4594	# Tru64's nm complains that /dev/null is an invalid object file
4595	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4596	*/dev/null* | *'Invalid file or object type'*)
4597	  lt_cv_path_NM="$tmp_nm -B"
4598	  break
4599	  ;;
4600	*)
4601	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602	  */dev/null*)
4603	    lt_cv_path_NM="$tmp_nm -p"
4604	    break
4605	    ;;
4606	  *)
4607	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4608	    continue # so that we can try to find one that supports BSD flags
4609	    ;;
4610	  esac
4611	  ;;
4612	esac
4613      fi
4614    done
4615    IFS="$lt_save_ifs"
4616  done
4617  : ${lt_cv_path_NM=no}
4618fi
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4621$as_echo "$lt_cv_path_NM" >&6; }
4622if test "$lt_cv_path_NM" != "no"; then
4623  NM="$lt_cv_path_NM"
4624else
4625  # Didn't find any BSD compatible name lister, look for dumpbin.
4626  if test -n "$DUMPBIN"; then :
4627    # Let the user override the test.
4628  else
4629    if test -n "$ac_tool_prefix"; then
4630  for ac_prog in dumpbin "link -dump"
4631  do
4632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
4636if ${ac_cv_prog_DUMPBIN+:} false; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  if test -n "$DUMPBIN"; then
4640  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654  done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659DUMPBIN=$ac_cv_prog_DUMPBIN
4660if test -n "$DUMPBIN"; then
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4662$as_echo "$DUMPBIN" >&6; }
4663else
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668
4669    test -n "$DUMPBIN" && break
4670  done
4671fi
4672if test -z "$DUMPBIN"; then
4673  ac_ct_DUMPBIN=$DUMPBIN
4674  for ac_prog in dumpbin "link -dump"
4675do
4676  # Extract the first word of "$ac_prog", so it can be a program name with args.
4677set dummy $ac_prog; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  if test -n "$ac_ct_DUMPBIN"; then
4684  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_exec_ext in '' $ac_executable_extensions; do
4692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698  done
4699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4704if test -n "$ac_ct_DUMPBIN"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4706$as_echo "$ac_ct_DUMPBIN" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712
4713  test -n "$ac_ct_DUMPBIN" && break
4714done
4715
4716  if test "x$ac_ct_DUMPBIN" = x; then
4717    DUMPBIN=":"
4718  else
4719    case $cross_compiling:$ac_tool_warned in
4720yes:)
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723ac_tool_warned=yes ;;
4724esac
4725    DUMPBIN=$ac_ct_DUMPBIN
4726  fi
4727fi
4728
4729    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4730    *COFF*)
4731      DUMPBIN="$DUMPBIN -symbols"
4732      ;;
4733    *)
4734      DUMPBIN=:
4735      ;;
4736    esac
4737  fi
4738
4739  if test "$DUMPBIN" != ":"; then
4740    NM="$DUMPBIN"
4741  fi
4742fi
4743test -z "$NM" && NM=nm
4744
4745
4746
4747
4748
4749
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4751$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4752if ${lt_cv_nm_interface+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  lt_cv_nm_interface="BSD nm"
4756  echo "int some_variable = 0;" > conftest.$ac_ext
4757  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4758  (eval "$ac_compile" 2>conftest.err)
4759  cat conftest.err >&5
4760  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4761  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4762  cat conftest.err >&5
4763  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4764  cat conftest.out >&5
4765  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4766    lt_cv_nm_interface="MS dumpbin"
4767  fi
4768  rm -f conftest*
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4771$as_echo "$lt_cv_nm_interface" >&6; }
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4774$as_echo_n "checking whether ln -s works... " >&6; }
4775LN_S=$as_ln_s
4776if test "$LN_S" = "ln -s"; then
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778$as_echo "yes" >&6; }
4779else
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4781$as_echo "no, using $LN_S" >&6; }
4782fi
4783
4784# find the maximum length of command line arguments
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4786$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4787if ${lt_cv_sys_max_cmd_len+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790    i=0
4791  teststring="ABCD"
4792
4793  case $build_os in
4794  msdosdjgpp*)
4795    # On DJGPP, this test can blow up pretty badly due to problems in libc
4796    # (any single argument exceeding 2000 bytes causes a buffer overrun
4797    # during glob expansion).  Even if it were fixed, the result of this
4798    # check would be larger than it should be.
4799    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4800    ;;
4801
4802  gnu*)
4803    # Under GNU Hurd, this test is not required because there is
4804    # no limit to the length of command line arguments.
4805    # Libtool will interpret -1 as no limit whatsoever
4806    lt_cv_sys_max_cmd_len=-1;
4807    ;;
4808
4809  cygwin* | mingw* | cegcc*)
4810    # On Win9x/ME, this test blows up -- it succeeds, but takes
4811    # about 5 minutes as the teststring grows exponentially.
4812    # Worse, since 9x/ME are not pre-emptively multitasking,
4813    # you end up with a "frozen" computer, even though with patience
4814    # the test eventually succeeds (with a max line length of 256k).
4815    # Instead, let's just punt: use the minimum linelength reported by
4816    # all of the supported platforms: 8192 (on NT/2K/XP).
4817    lt_cv_sys_max_cmd_len=8192;
4818    ;;
4819
4820  mint*)
4821    # On MiNT this can take a long time and run out of memory.
4822    lt_cv_sys_max_cmd_len=8192;
4823    ;;
4824
4825  amigaos*)
4826    # On AmigaOS with pdksh, this test takes hours, literally.
4827    # So we just punt and use a minimum line length of 8192.
4828    lt_cv_sys_max_cmd_len=8192;
4829    ;;
4830
4831  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4832    # This has been around since 386BSD, at least.  Likely further.
4833    if test -x /sbin/sysctl; then
4834      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4835    elif test -x /usr/sbin/sysctl; then
4836      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4837    else
4838      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4839    fi
4840    # And add a safety zone
4841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4843    ;;
4844
4845  interix*)
4846    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4847    lt_cv_sys_max_cmd_len=196608
4848    ;;
4849
4850  os2*)
4851    # The test takes a long time on OS/2.
4852    lt_cv_sys_max_cmd_len=8192
4853    ;;
4854
4855  osf*)
4856    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4857    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4858    # nice to cause kernel panics so lets avoid the loop below.
4859    # First set a reasonable default.
4860    lt_cv_sys_max_cmd_len=16384
4861    #
4862    if test -x /sbin/sysconfig; then
4863      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4864        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4865      esac
4866    fi
4867    ;;
4868  sco3.2v5*)
4869    lt_cv_sys_max_cmd_len=102400
4870    ;;
4871  sysv5* | sco5v6* | sysv4.2uw2*)
4872    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4873    if test -n "$kargmax"; then
4874      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4875    else
4876      lt_cv_sys_max_cmd_len=32768
4877    fi
4878    ;;
4879  *)
4880    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4881    if test -n "$lt_cv_sys_max_cmd_len" && \
4882	test undefined != "$lt_cv_sys_max_cmd_len"; then
4883      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4884      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4885    else
4886      # Make teststring a little bigger before we do anything with it.
4887      # a 1K string should be a reasonable start.
4888      for i in 1 2 3 4 5 6 7 8 ; do
4889        teststring=$teststring$teststring
4890      done
4891      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4892      # If test is not a shell built-in, we'll probably end up computing a
4893      # maximum length that is only half of the actual maximum length, but
4894      # we can't tell.
4895      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4896	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4897	      test $i != 17 # 1/2 MB should be enough
4898      do
4899        i=`expr $i + 1`
4900        teststring=$teststring$teststring
4901      done
4902      # Only check the string length outside the loop.
4903      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4904      teststring=
4905      # Add a significant safety factor because C++ compilers can tack on
4906      # massive amounts of additional arguments before passing them to the
4907      # linker.  It appears as though 1/2 is a usable value.
4908      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909    fi
4910    ;;
4911  esac
4912
4913fi
4914
4915if test -n $lt_cv_sys_max_cmd_len ; then
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4917$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4918else
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4920$as_echo "none" >&6; }
4921fi
4922max_cmd_len=$lt_cv_sys_max_cmd_len
4923
4924
4925
4926
4927
4928
4929: ${CP="cp -f"}
4930: ${MV="mv -f"}
4931: ${RM="rm -f"}
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4934$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4935# Try some XSI features
4936xsi_shell=no
4937( _lt_dummy="a/b/c"
4938  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4939      = c,a/b,b/c, \
4940    && eval 'test $(( 1 + 1 )) -eq 2 \
4941    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4942  && xsi_shell=yes
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4944$as_echo "$xsi_shell" >&6; }
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4948$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4949lt_shell_append=no
4950( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4951    >/dev/null 2>&1 \
4952  && lt_shell_append=yes
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4954$as_echo "$lt_shell_append" >&6; }
4955
4956
4957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4958  lt_unset=unset
4959else
4960  lt_unset=false
4961fi
4962
4963
4964
4965
4966
4967# test EBCDIC or ASCII
4968case `echo X|tr X '\101'` in
4969 A) # ASCII based system
4970    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4971  lt_SP2NL='tr \040 \012'
4972  lt_NL2SP='tr \015\012 \040\040'
4973  ;;
4974 *) # EBCDIC based system
4975  lt_SP2NL='tr \100 \n'
4976  lt_NL2SP='tr \r\n \100\100'
4977  ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4989$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4990if ${lt_cv_to_host_file_cmd+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  case $host in
4994  *-*-mingw* )
4995    case $build in
4996      *-*-mingw* ) # actually msys
4997        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4998        ;;
4999      *-*-cygwin* )
5000        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5001        ;;
5002      * ) # otherwise, assume *nix
5003        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5004        ;;
5005    esac
5006    ;;
5007  *-*-cygwin* )
5008    case $build in
5009      *-*-mingw* ) # actually msys
5010        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5011        ;;
5012      *-*-cygwin* )
5013        lt_cv_to_host_file_cmd=func_convert_file_noop
5014        ;;
5015      * ) # otherwise, assume *nix
5016        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5017        ;;
5018    esac
5019    ;;
5020  * ) # unhandled hosts (and "normal" native builds)
5021    lt_cv_to_host_file_cmd=func_convert_file_noop
5022    ;;
5023esac
5024
5025fi
5026
5027to_host_file_cmd=$lt_cv_to_host_file_cmd
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5029$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5030
5031
5032
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5036$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5037if ${lt_cv_to_tool_file_cmd+:} false; then :
5038  $as_echo_n "(cached) " >&6
5039else
5040  #assume ordinary cross tools, or native build.
5041lt_cv_to_tool_file_cmd=func_convert_file_noop
5042case $host in
5043  *-*-mingw* )
5044    case $build in
5045      *-*-mingw* ) # actually msys
5046        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5047        ;;
5048    esac
5049    ;;
5050esac
5051
5052fi
5053
5054to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5056$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5057
5058
5059
5060
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5063$as_echo_n "checking for $LD option to reload object files... " >&6; }
5064if ${lt_cv_ld_reload_flag+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  lt_cv_ld_reload_flag='-r'
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5070$as_echo "$lt_cv_ld_reload_flag" >&6; }
5071reload_flag=$lt_cv_ld_reload_flag
5072case $reload_flag in
5073"" | " "*) ;;
5074*) reload_flag=" $reload_flag" ;;
5075esac
5076reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077case $host_os in
5078  cygwin* | mingw* | pw32* | cegcc*)
5079    if test "$GCC" != yes; then
5080      reload_cmds=false
5081    fi
5082    ;;
5083  darwin*)
5084    if test "$GCC" = yes; then
5085      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5086    else
5087      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088    fi
5089    ;;
5090esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100if test -n "$ac_tool_prefix"; then
5101  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5102set dummy ${ac_tool_prefix}objdump; ac_word=$2
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104$as_echo_n "checking for $ac_word... " >&6; }
5105if ${ac_cv_prog_OBJDUMP+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  if test -n "$OBJDUMP"; then
5109  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114  IFS=$as_save_IFS
5115  test -z "$as_dir" && as_dir=.
5116    for ac_exec_ext in '' $ac_executable_extensions; do
5117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120    break 2
5121  fi
5122done
5123  done
5124IFS=$as_save_IFS
5125
5126fi
5127fi
5128OBJDUMP=$ac_cv_prog_OBJDUMP
5129if test -n "$OBJDUMP"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5131$as_echo "$OBJDUMP" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134$as_echo "no" >&6; }
5135fi
5136
5137
5138fi
5139if test -z "$ac_cv_prog_OBJDUMP"; then
5140  ac_ct_OBJDUMP=$OBJDUMP
5141  # Extract the first word of "objdump", so it can be a program name with args.
5142set dummy objdump; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  if test -n "$ac_ct_OBJDUMP"; then
5149  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154  IFS=$as_save_IFS
5155  test -z "$as_dir" && as_dir=.
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160    break 2
5161  fi
5162done
5163  done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5169if test -n "$ac_ct_OBJDUMP"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5171$as_echo "$ac_ct_OBJDUMP" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177  if test "x$ac_ct_OBJDUMP" = x; then
5178    OBJDUMP="false"
5179  else
5180    case $cross_compiling:$ac_tool_warned in
5181yes:)
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184ac_tool_warned=yes ;;
5185esac
5186    OBJDUMP=$ac_ct_OBJDUMP
5187  fi
5188else
5189  OBJDUMP="$ac_cv_prog_OBJDUMP"
5190fi
5191
5192test -z "$OBJDUMP" && OBJDUMP=objdump
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5203$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5204if ${lt_cv_deplibs_check_method+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  lt_cv_file_magic_cmd='$MAGIC_CMD'
5208lt_cv_file_magic_test_file=
5209lt_cv_deplibs_check_method='unknown'
5210# Need to set the preceding variable on all platforms that support
5211# interlibrary dependencies.
5212# 'none' -- dependencies not supported.
5213# `unknown' -- same as none, but documents that we really don't know.
5214# 'pass_all' -- all dependencies passed with no checks.
5215# 'test_compile' -- check by making test program.
5216# 'file_magic [[regex]]' -- check by looking for files in library path
5217# which responds to the $file_magic_cmd with a given extended regex.
5218# If you have `file' or equivalent on your system and you're not sure
5219# whether `pass_all' will *always* work, you probably want this one.
5220
5221case $host_os in
5222aix[4-9]*)
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226beos*)
5227  lt_cv_deplibs_check_method=pass_all
5228  ;;
5229
5230bsdi[45]*)
5231  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5232  lt_cv_file_magic_cmd='/usr/bin/file -L'
5233  lt_cv_file_magic_test_file=/shlib/libc.so
5234  ;;
5235
5236cygwin*)
5237  # func_win32_libid is a shell function defined in ltmain.sh
5238  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239  lt_cv_file_magic_cmd='func_win32_libid'
5240  ;;
5241
5242mingw* | pw32*)
5243  # Base MSYS/MinGW do not provide the 'file' command needed by
5244  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5245  # unless we find 'file', for example because we are cross-compiling.
5246  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5247  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5248    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5249    lt_cv_file_magic_cmd='func_win32_libid'
5250  else
5251    # Keep this pattern in sync with the one in func_win32_libid.
5252    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5253    lt_cv_file_magic_cmd='$OBJDUMP -f'
5254  fi
5255  ;;
5256
5257cegcc*)
5258  # use the weaker test based on 'objdump'. See mingw*.
5259  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5260  lt_cv_file_magic_cmd='$OBJDUMP -f'
5261  ;;
5262
5263darwin* | rhapsody*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266
5267freebsd* | dragonfly*)
5268  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5269    case $host_cpu in
5270    i*86 )
5271      # Not sure whether the presence of OpenBSD here was a mistake.
5272      # Let's accept both of them until this is cleared up.
5273      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5274      lt_cv_file_magic_cmd=/usr/bin/file
5275      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5276      ;;
5277    esac
5278  else
5279    lt_cv_deplibs_check_method=pass_all
5280  fi
5281  ;;
5282
5283haiku*)
5284  lt_cv_deplibs_check_method=pass_all
5285  ;;
5286
5287hpux10.20* | hpux11*)
5288  lt_cv_file_magic_cmd=/usr/bin/file
5289  case $host_cpu in
5290  ia64*)
5291    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5292    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5293    ;;
5294  hppa*64*)
5295    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]'
5296    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5297    ;;
5298  *)
5299    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5300    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5301    ;;
5302  esac
5303  ;;
5304
5305interix[3-9]*)
5306  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5307  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5308  ;;
5309
5310irix5* | irix6* | nonstopux*)
5311  case $LD in
5312  *-32|*"-32 ") libmagic=32-bit;;
5313  *-n32|*"-n32 ") libmagic=N32;;
5314  *-64|*"-64 ") libmagic=64-bit;;
5315  *) libmagic=never-match;;
5316  esac
5317  lt_cv_deplibs_check_method=pass_all
5318  ;;
5319
5320# This must be glibc/ELF.
5321linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5322  lt_cv_deplibs_check_method=pass_all
5323  ;;
5324
5325netbsd* | netbsdelf*-gnu)
5326  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5327    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5328  else
5329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5330  fi
5331  ;;
5332
5333newos6*)
5334  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5335  lt_cv_file_magic_cmd=/usr/bin/file
5336  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5337  ;;
5338
5339*nto* | *qnx*)
5340  lt_cv_deplibs_check_method=pass_all
5341  ;;
5342
5343openbsd*)
5344  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5345    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5346  else
5347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5348  fi
5349  ;;
5350
5351osf3* | osf4* | osf5*)
5352  lt_cv_deplibs_check_method=pass_all
5353  ;;
5354
5355rdos*)
5356  lt_cv_deplibs_check_method=pass_all
5357  ;;
5358
5359solaris*)
5360  lt_cv_deplibs_check_method=pass_all
5361  ;;
5362
5363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367sysv4 | sysv4.3*)
5368  case $host_vendor in
5369  motorola)
5370    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]'
5371    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5372    ;;
5373  ncr)
5374    lt_cv_deplibs_check_method=pass_all
5375    ;;
5376  sequent)
5377    lt_cv_file_magic_cmd='/bin/file'
5378    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5379    ;;
5380  sni)
5381    lt_cv_file_magic_cmd='/bin/file'
5382    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5383    lt_cv_file_magic_test_file=/lib/libc.so
5384    ;;
5385  siemens)
5386    lt_cv_deplibs_check_method=pass_all
5387    ;;
5388  pc)
5389    lt_cv_deplibs_check_method=pass_all
5390    ;;
5391  esac
5392  ;;
5393
5394tpf*)
5395  lt_cv_deplibs_check_method=pass_all
5396  ;;
5397esac
5398
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5401$as_echo "$lt_cv_deplibs_check_method" >&6; }
5402
5403file_magic_glob=
5404want_nocaseglob=no
5405if test "$build" = "$host"; then
5406  case $host_os in
5407  mingw* | pw32*)
5408    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5409      want_nocaseglob=yes
5410    else
5411      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5412    fi
5413    ;;
5414  esac
5415fi
5416
5417file_magic_cmd=$lt_cv_file_magic_cmd
5418deplibs_check_method=$lt_cv_deplibs_check_method
5419test -z "$deplibs_check_method" && deplibs_check_method=unknown
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442if test -n "$ac_tool_prefix"; then
5443  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5444set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
5447if ${ac_cv_prog_DLLTOOL+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  if test -n "$DLLTOOL"; then
5451  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458    for ac_exec_ext in '' $ac_executable_extensions; do
5459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465  done
5466IFS=$as_save_IFS
5467
5468fi
5469fi
5470DLLTOOL=$ac_cv_prog_DLLTOOL
5471if test -n "$DLLTOOL"; then
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5473$as_echo "$DLLTOOL" >&6; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480fi
5481if test -z "$ac_cv_prog_DLLTOOL"; then
5482  ac_ct_DLLTOOL=$DLLTOOL
5483  # Extract the first word of "dlltool", so it can be a program name with args.
5484set dummy dlltool; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  if test -n "$ac_ct_DLLTOOL"; then
5491  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5511if test -n "$ac_ct_DLLTOOL"; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5513$as_echo "$ac_ct_DLLTOOL" >&6; }
5514else
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519  if test "x$ac_ct_DLLTOOL" = x; then
5520    DLLTOOL="false"
5521  else
5522    case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528    DLLTOOL=$ac_ct_DLLTOOL
5529  fi
5530else
5531  DLLTOOL="$ac_cv_prog_DLLTOOL"
5532fi
5533
5534test -z "$DLLTOOL" && DLLTOOL=dlltool
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5546$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5547if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  lt_cv_sharedlib_from_linklib_cmd='unknown'
5551
5552case $host_os in
5553cygwin* | mingw* | pw32* | cegcc*)
5554  # two different shell functions defined in ltmain.sh
5555  # decide which to use based on capabilities of $DLLTOOL
5556  case `$DLLTOOL --help 2>&1` in
5557  *--identify-strict*)
5558    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5559    ;;
5560  *)
5561    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5562    ;;
5563  esac
5564  ;;
5565*)
5566  # fallback: assume linklib IS sharedlib
5567  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5568  ;;
5569esac
5570
5571fi
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5573$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5574sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5575test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5576
5577
5578
5579
5580
5581
5582
5583
5584if test -n "$ac_tool_prefix"; then
5585  for ac_prog in ar
5586  do
5587    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
5591if ${ac_cv_prog_AR+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  if test -n "$AR"; then
5595  ac_cv_prog_AR="$AR" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600  IFS=$as_save_IFS
5601  test -z "$as_dir" && as_dir=.
5602    for ac_exec_ext in '' $ac_executable_extensions; do
5603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606    break 2
5607  fi
5608done
5609  done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614AR=$ac_cv_prog_AR
5615if test -n "$AR"; then
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5617$as_echo "$AR" >&6; }
5618else
5619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624    test -n "$AR" && break
5625  done
5626fi
5627if test -z "$AR"; then
5628  ac_ct_AR=$AR
5629  for ac_prog in ar
5630do
5631  # Extract the first word of "$ac_prog", so it can be a program name with args.
5632set dummy $ac_prog; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if ${ac_cv_prog_ac_ct_AR+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638  if test -n "$ac_ct_AR"; then
5639  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_ac_ct_AR="$ac_prog"
5649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653  done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658ac_ct_AR=$ac_cv_prog_ac_ct_AR
5659if test -n "$ac_ct_AR"; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5661$as_echo "$ac_ct_AR" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668  test -n "$ac_ct_AR" && break
5669done
5670
5671  if test "x$ac_ct_AR" = x; then
5672    AR="false"
5673  else
5674    case $cross_compiling:$ac_tool_warned in
5675yes:)
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678ac_tool_warned=yes ;;
5679esac
5680    AR=$ac_ct_AR
5681  fi
5682fi
5683
5684: ${AR=ar}
5685: ${AR_FLAGS=cru}
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5698$as_echo_n "checking for archiver @FILE support... " >&6; }
5699if ${lt_cv_ar_at_file+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  lt_cv_ar_at_file=no
5703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h.  */
5705
5706int
5707main ()
5708{
5709
5710  ;
5711  return 0;
5712}
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"; then :
5715  echo conftest.$ac_objext > conftest.lst
5716      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5717      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5718  (eval $lt_ar_try) 2>&5
5719  ac_status=$?
5720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721  test $ac_status = 0; }
5722      if test "$ac_status" -eq 0; then
5723	# Ensure the archiver fails upon bogus file names.
5724	rm -f conftest.$ac_objext libconftest.a
5725	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5726  (eval $lt_ar_try) 2>&5
5727  ac_status=$?
5728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729  test $ac_status = 0; }
5730	if test "$ac_status" -ne 0; then
5731          lt_cv_ar_at_file=@
5732        fi
5733      fi
5734      rm -f conftest.* libconftest.a
5735
5736fi
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5741$as_echo "$lt_cv_ar_at_file" >&6; }
5742
5743if test "x$lt_cv_ar_at_file" = xno; then
5744  archiver_list_spec=
5745else
5746  archiver_list_spec=$lt_cv_ar_at_file
5747fi
5748
5749
5750
5751
5752
5753
5754
5755if test -n "$ac_tool_prefix"; then
5756  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5757set dummy ${ac_tool_prefix}strip; ac_word=$2
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759$as_echo_n "checking for $ac_word... " >&6; }
5760if ${ac_cv_prog_STRIP+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -n "$STRIP"; then
5764  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769  IFS=$as_save_IFS
5770  test -z "$as_dir" && as_dir=.
5771    for ac_exec_ext in '' $ac_executable_extensions; do
5772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778  done
5779IFS=$as_save_IFS
5780
5781fi
5782fi
5783STRIP=$ac_cv_prog_STRIP
5784if test -n "$STRIP"; then
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5786$as_echo "$STRIP" >&6; }
5787else
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790fi
5791
5792
5793fi
5794if test -z "$ac_cv_prog_STRIP"; then
5795  ac_ct_STRIP=$STRIP
5796  # Extract the first word of "strip", so it can be a program name with args.
5797set dummy strip; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$ac_ct_STRIP"; then
5804  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_ac_ct_STRIP="strip"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5824if test -n "$ac_ct_STRIP"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5826$as_echo "$ac_ct_STRIP" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832  if test "x$ac_ct_STRIP" = x; then
5833    STRIP=":"
5834  else
5835    case $cross_compiling:$ac_tool_warned in
5836yes:)
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841    STRIP=$ac_ct_STRIP
5842  fi
5843else
5844  STRIP="$ac_cv_prog_STRIP"
5845fi
5846
5847test -z "$STRIP" && STRIP=:
5848
5849
5850
5851
5852
5853
5854if test -n "$ac_tool_prefix"; then
5855  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5856set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_RANLIB+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  if test -n "$RANLIB"; then
5863  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868  IFS=$as_save_IFS
5869  test -z "$as_dir" && as_dir=.
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882RANLIB=$ac_cv_prog_RANLIB
5883if test -n "$RANLIB"; then
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5885$as_echo "$RANLIB" >&6; }
5886else
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892fi
5893if test -z "$ac_cv_prog_RANLIB"; then
5894  ac_ct_RANLIB=$RANLIB
5895  # Extract the first word of "ranlib", so it can be a program name with args.
5896set dummy ranlib; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  if test -n "$ac_ct_RANLIB"; then
5903  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910    for ac_exec_ext in '' $ac_executable_extensions; do
5911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912    ac_cv_prog_ac_ct_RANLIB="ranlib"
5913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917  done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5923if test -n "$ac_ct_RANLIB"; then
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5925$as_echo "$ac_ct_RANLIB" >&6; }
5926else
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931  if test "x$ac_ct_RANLIB" = x; then
5932    RANLIB=":"
5933  else
5934    case $cross_compiling:$ac_tool_warned in
5935yes:)
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938ac_tool_warned=yes ;;
5939esac
5940    RANLIB=$ac_ct_RANLIB
5941  fi
5942else
5943  RANLIB="$ac_cv_prog_RANLIB"
5944fi
5945
5946test -z "$RANLIB" && RANLIB=:
5947
5948
5949
5950
5951
5952
5953# Determine commands to create old-style static archives.
5954old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5955old_postinstall_cmds='chmod 644 $oldlib'
5956old_postuninstall_cmds=
5957
5958if test -n "$RANLIB"; then
5959  case $host_os in
5960  openbsd*)
5961    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5962    ;;
5963  *)
5964    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5965    ;;
5966  esac
5967  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5968fi
5969
5970case $host_os in
5971  darwin*)
5972    lock_old_archive_extraction=yes ;;
5973  *)
5974    lock_old_archive_extraction=no ;;
5975esac
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015# If no C compiler was specified, use CC.
6016LTCC=${LTCC-"$CC"}
6017
6018# If no C compiler flags were specified, use CFLAGS.
6019LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6020
6021# Allow CC to be a program name with arguments.
6022compiler=$CC
6023
6024
6025# Check for command to grab the raw symbol name followed by C symbol from nm.
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6027$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6028if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031
6032# These are sane defaults that work on at least a few old systems.
6033# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6034
6035# Character class describing NM global symbol codes.
6036symcode='[BCDEGRST]'
6037
6038# Regexp to match symbols that can be accessed directly from C.
6039sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6040
6041# Define system-specific variables.
6042case $host_os in
6043aix*)
6044  symcode='[BCDT]'
6045  ;;
6046cygwin* | mingw* | pw32* | cegcc*)
6047  symcode='[ABCDGISTW]'
6048  ;;
6049hpux*)
6050  if test "$host_cpu" = ia64; then
6051    symcode='[ABCDEGRST]'
6052  fi
6053  ;;
6054irix* | nonstopux*)
6055  symcode='[BCDEGRST]'
6056  ;;
6057osf*)
6058  symcode='[BCDEGQRST]'
6059  ;;
6060solaris*)
6061  symcode='[BDRT]'
6062  ;;
6063sco3.2v5*)
6064  symcode='[DT]'
6065  ;;
6066sysv4.2uw2*)
6067  symcode='[DT]'
6068  ;;
6069sysv5* | sco5v6* | unixware* | OpenUNIX*)
6070  symcode='[ABDT]'
6071  ;;
6072sysv4)
6073  symcode='[DFNSTU]'
6074  ;;
6075esac
6076
6077# If we're using GNU nm, then use its standard symbol codes.
6078case `$NM -V 2>&1` in
6079*GNU* | *'with BFD'*)
6080  symcode='[ABCDGIRSTW]' ;;
6081esac
6082
6083# Transform an extracted symbol line into a proper C declaration.
6084# Some systems (esp. on ia64) link data and code symbols differently,
6085# so use this general approach.
6086lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6087
6088# Transform an extracted symbol line into symbol name and symbol address
6089lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6090lt_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'"
6091
6092# Handle CRLF in mingw tool chain
6093opt_cr=
6094case $build_os in
6095mingw*)
6096  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6097  ;;
6098esac
6099
6100# Try without a prefix underscore, then with it.
6101for ac_symprfx in "" "_"; do
6102
6103  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6104  symxfrm="\\1 $ac_symprfx\\2 \\2"
6105
6106  # Write the raw and C identifiers.
6107  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6108    # Fake it for dumpbin and say T for any non-static function
6109    # and D for any global variable.
6110    # Also find C++ and __fastcall symbols from MSVC++,
6111    # which start with @ or ?.
6112    lt_cv_sys_global_symbol_pipe="$AWK '"\
6113"     {last_section=section; section=\$ 3};"\
6114"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6115"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6116"     \$ 0!~/External *\|/{next};"\
6117"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6118"     {if(hide[section]) next};"\
6119"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6120"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6121"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6122"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6123"     ' prfx=^$ac_symprfx"
6124  else
6125    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6126  fi
6127  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6128
6129  # Check to see that the pipe works correctly.
6130  pipe_works=no
6131
6132  rm -f conftest*
6133  cat > conftest.$ac_ext <<_LT_EOF
6134#ifdef __cplusplus
6135extern "C" {
6136#endif
6137char nm_test_var;
6138void nm_test_func(void);
6139void nm_test_func(void){}
6140#ifdef __cplusplus
6141}
6142#endif
6143int main(){nm_test_var='a';nm_test_func();return(0);}
6144_LT_EOF
6145
6146  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6147  (eval $ac_compile) 2>&5
6148  ac_status=$?
6149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150  test $ac_status = 0; }; then
6151    # Now try to grab the symbols.
6152    nlist=conftest.nm
6153    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6154  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6155  ac_status=$?
6156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157  test $ac_status = 0; } && test -s "$nlist"; then
6158      # Try sorting and uniquifying the output.
6159      if sort "$nlist" | uniq > "$nlist"T; then
6160	mv -f "$nlist"T "$nlist"
6161      else
6162	rm -f "$nlist"T
6163      fi
6164
6165      # Make sure that we snagged all the symbols we need.
6166      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6167	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6168	  cat <<_LT_EOF > conftest.$ac_ext
6169/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6170#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6171/* DATA imports from DLLs on WIN32 con't be const, because runtime
6172   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6173# define LT_DLSYM_CONST
6174#elif defined(__osf__)
6175/* This system does not cope well with relocations in const data.  */
6176# define LT_DLSYM_CONST
6177#else
6178# define LT_DLSYM_CONST const
6179#endif
6180
6181#ifdef __cplusplus
6182extern "C" {
6183#endif
6184
6185_LT_EOF
6186	  # Now generate the symbol file.
6187	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6188
6189	  cat <<_LT_EOF >> conftest.$ac_ext
6190
6191/* The mapping between symbol names and symbols.  */
6192LT_DLSYM_CONST struct {
6193  const char *name;
6194  void       *address;
6195}
6196lt__PROGRAM__LTX_preloaded_symbols[] =
6197{
6198  { "@PROGRAM@", (void *) 0 },
6199_LT_EOF
6200	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201	  cat <<\_LT_EOF >> conftest.$ac_ext
6202  {0, (void *) 0}
6203};
6204
6205/* This works around a problem in FreeBSD linker */
6206#ifdef FREEBSD_WORKAROUND
6207static const void *lt_preloaded_setup() {
6208  return lt__PROGRAM__LTX_preloaded_symbols;
6209}
6210#endif
6211
6212#ifdef __cplusplus
6213}
6214#endif
6215_LT_EOF
6216	  # Now try linking the two files.
6217	  mv conftest.$ac_objext conftstm.$ac_objext
6218	  lt_globsym_save_LIBS=$LIBS
6219	  lt_globsym_save_CFLAGS=$CFLAGS
6220	  LIBS="conftstm.$ac_objext"
6221	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6223  (eval $ac_link) 2>&5
6224  ac_status=$?
6225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6227	    pipe_works=yes
6228	  fi
6229	  LIBS=$lt_globsym_save_LIBS
6230	  CFLAGS=$lt_globsym_save_CFLAGS
6231	else
6232	  echo "cannot find nm_test_func in $nlist" >&5
6233	fi
6234      else
6235	echo "cannot find nm_test_var in $nlist" >&5
6236      fi
6237    else
6238      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239    fi
6240  else
6241    echo "$progname: failed program was:" >&5
6242    cat conftest.$ac_ext >&5
6243  fi
6244  rm -rf conftest* conftst*
6245
6246  # Do not use the global_symbol_pipe unless it works.
6247  if test "$pipe_works" = yes; then
6248    break
6249  else
6250    lt_cv_sys_global_symbol_pipe=
6251  fi
6252done
6253
6254fi
6255
6256if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257  lt_cv_sys_global_symbol_to_cdecl=
6258fi
6259if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6261$as_echo "failed" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6264$as_echo "ok" >&6; }
6265fi
6266
6267# Response file support.
6268if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269  nm_file_list_spec='@'
6270elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6271  nm_file_list_spec='@'
6272fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6301$as_echo_n "checking for sysroot... " >&6; }
6302
6303# Check whether --with-sysroot was given.
6304if test "${with_sysroot+set}" = set; then :
6305  withval=$with_sysroot;
6306else
6307  with_sysroot=no
6308fi
6309
6310
6311lt_sysroot=
6312case ${with_sysroot} in #(
6313 yes)
6314   if test "$GCC" = yes; then
6315     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6316   fi
6317   ;; #(
6318 /*)
6319   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6320   ;; #(
6321 no|'')
6322   ;; #(
6323 *)
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6325$as_echo "${with_sysroot}" >&6; }
6326   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6327   ;;
6328esac
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6331$as_echo "${lt_sysroot:-no}" >&6; }
6332
6333
6334
6335
6336
6337# Check whether --enable-libtool-lock was given.
6338if test "${enable_libtool_lock+set}" = set; then :
6339  enableval=$enable_libtool_lock;
6340fi
6341
6342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6343
6344# Some flags need to be propagated to the compiler or linker for good
6345# libtool support.
6346case $host in
6347ia64-*-hpux*)
6348  # Find out which ABI we are using.
6349  echo 'int i;' > conftest.$ac_ext
6350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351  (eval $ac_compile) 2>&5
6352  ac_status=$?
6353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354  test $ac_status = 0; }; then
6355    case `/usr/bin/file conftest.$ac_objext` in
6356      *ELF-32*)
6357	HPUX_IA64_MODE="32"
6358	;;
6359      *ELF-64*)
6360	HPUX_IA64_MODE="64"
6361	;;
6362    esac
6363  fi
6364  rm -rf conftest*
6365  ;;
6366*-*-irix6*)
6367  # Find out which ABI we are using.
6368  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6369  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6370  (eval $ac_compile) 2>&5
6371  ac_status=$?
6372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373  test $ac_status = 0; }; then
6374    if test "$lt_cv_prog_gnu_ld" = yes; then
6375      case `/usr/bin/file conftest.$ac_objext` in
6376	*32-bit*)
6377	  LD="${LD-ld} -melf32bsmip"
6378	  ;;
6379	*N32*)
6380	  LD="${LD-ld} -melf32bmipn32"
6381	  ;;
6382	*64-bit*)
6383	  LD="${LD-ld} -melf64bmip"
6384	;;
6385      esac
6386    else
6387      case `/usr/bin/file conftest.$ac_objext` in
6388	*32-bit*)
6389	  LD="${LD-ld} -32"
6390	  ;;
6391	*N32*)
6392	  LD="${LD-ld} -n32"
6393	  ;;
6394	*64-bit*)
6395	  LD="${LD-ld} -64"
6396	  ;;
6397      esac
6398    fi
6399  fi
6400  rm -rf conftest*
6401  ;;
6402
6403x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6404s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6405  # Find out which ABI we are using.
6406  echo 'int i;' > conftest.$ac_ext
6407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6408  (eval $ac_compile) 2>&5
6409  ac_status=$?
6410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411  test $ac_status = 0; }; then
6412    case `/usr/bin/file conftest.o` in
6413      *32-bit*)
6414	case $host in
6415	  x86_64-*kfreebsd*-gnu)
6416	    LD="${LD-ld} -m elf_i386_fbsd"
6417	    ;;
6418	  x86_64-*linux*)
6419	    case `/usr/bin/file conftest.o` in
6420	      *x86-64*)
6421		LD="${LD-ld} -m elf32_x86_64"
6422		;;
6423	      *)
6424		LD="${LD-ld} -m elf_i386"
6425		;;
6426	    esac
6427	    ;;
6428	  powerpc64le-*)
6429	    LD="${LD-ld} -m elf32lppclinux"
6430	    ;;
6431	  powerpc64-*)
6432	    LD="${LD-ld} -m elf32ppclinux"
6433	    ;;
6434	  s390x-*linux*)
6435	    LD="${LD-ld} -m elf_s390"
6436	    ;;
6437	  sparc64-*linux*)
6438	    LD="${LD-ld} -m elf32_sparc"
6439	    ;;
6440	esac
6441	;;
6442      *64-bit*)
6443	case $host in
6444	  x86_64-*kfreebsd*-gnu)
6445	    LD="${LD-ld} -m elf_x86_64_fbsd"
6446	    ;;
6447	  x86_64-*linux*)
6448	    LD="${LD-ld} -m elf_x86_64"
6449	    ;;
6450	  powerpcle-*)
6451	    LD="${LD-ld} -m elf64lppc"
6452	    ;;
6453	  powerpc-*)
6454	    LD="${LD-ld} -m elf64ppc"
6455	    ;;
6456	  s390*-*linux*|s390*-*tpf*)
6457	    LD="${LD-ld} -m elf64_s390"
6458	    ;;
6459	  sparc*-*linux*)
6460	    LD="${LD-ld} -m elf64_sparc"
6461	    ;;
6462	esac
6463	;;
6464    esac
6465  fi
6466  rm -rf conftest*
6467  ;;
6468
6469*-*-sco3.2v5*)
6470  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6471  SAVE_CFLAGS="$CFLAGS"
6472  CFLAGS="$CFLAGS -belf"
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6475if ${lt_cv_cc_needs_belf+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  ac_ext=c
6479ac_cpp='$CPP $CPPFLAGS'
6480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6482ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483
6484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487int
6488main ()
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_link "$LINENO"; then :
6496  lt_cv_cc_needs_belf=yes
6497else
6498  lt_cv_cc_needs_belf=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext \
6501    conftest$ac_exeext conftest.$ac_ext
6502     ac_ext=c
6503ac_cpp='$CPP $CPPFLAGS'
6504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6510$as_echo "$lt_cv_cc_needs_belf" >&6; }
6511  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6512    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6513    CFLAGS="$SAVE_CFLAGS"
6514  fi
6515  ;;
6516*-*solaris*)
6517  # Find out which ABI we are using.
6518  echo 'int i;' > conftest.$ac_ext
6519  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520  (eval $ac_compile) 2>&5
6521  ac_status=$?
6522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523  test $ac_status = 0; }; then
6524    case `/usr/bin/file conftest.o` in
6525    *64-bit*)
6526      case $lt_cv_prog_gnu_ld in
6527      yes*)
6528        case $host in
6529        i?86-*-solaris*)
6530          LD="${LD-ld} -m elf_x86_64"
6531          ;;
6532        sparc*-*-solaris*)
6533          LD="${LD-ld} -m elf64_sparc"
6534          ;;
6535        esac
6536        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6537        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6538          LD="${LD-ld}_sol2"
6539        fi
6540        ;;
6541      *)
6542	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6543	  LD="${LD-ld} -64"
6544	fi
6545	;;
6546      esac
6547      ;;
6548    esac
6549  fi
6550  rm -rf conftest*
6551  ;;
6552esac
6553
6554need_locks="$enable_libtool_lock"
6555
6556if test -n "$ac_tool_prefix"; then
6557  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}mt; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$MANIFEST_TOOL"; then
6565  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6585if test -n "$MANIFEST_TOOL"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6587$as_echo "$MANIFEST_TOOL" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6596  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6597  # Extract the first word of "mt", so it can be a program name with args.
6598set dummy mt; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$ac_ct_MANIFEST_TOOL"; then
6605  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6625if test -n "$ac_ct_MANIFEST_TOOL"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6627$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6634    MANIFEST_TOOL=":"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6643  fi
6644else
6645  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6646fi
6647
6648test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6650$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6651if ${lt_cv_path_mainfest_tool+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  lt_cv_path_mainfest_tool=no
6655  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6656  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6657  cat conftest.err >&5
6658  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6659    lt_cv_path_mainfest_tool=yes
6660  fi
6661  rm -f conftest*
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6664$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6665if test "x$lt_cv_path_mainfest_tool" != xyes; then
6666  MANIFEST_TOOL=:
6667fi
6668
6669
6670
6671
6672
6673
6674  case $host_os in
6675    rhapsody* | darwin*)
6676    if test -n "$ac_tool_prefix"; then
6677  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6678set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680$as_echo_n "checking for $ac_word... " >&6; }
6681if ${ac_cv_prog_DSYMUTIL+:} false; then :
6682  $as_echo_n "(cached) " >&6
6683else
6684  if test -n "$DSYMUTIL"; then
6685  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690  IFS=$as_save_IFS
6691  test -z "$as_dir" && as_dir=.
6692    for ac_exec_ext in '' $ac_executable_extensions; do
6693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696    break 2
6697  fi
6698done
6699  done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704DSYMUTIL=$ac_cv_prog_DSYMUTIL
6705if test -n "$DSYMUTIL"; then
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6707$as_echo "$DSYMUTIL" >&6; }
6708else
6709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713
6714fi
6715if test -z "$ac_cv_prog_DSYMUTIL"; then
6716  ac_ct_DSYMUTIL=$DSYMUTIL
6717  # Extract the first word of "dsymutil", so it can be a program name with args.
6718set dummy dsymutil; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  if test -n "$ac_ct_DSYMUTIL"; then
6725  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732    for ac_exec_ext in '' $ac_executable_extensions; do
6733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739  done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6745if test -n "$ac_ct_DSYMUTIL"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6747$as_echo "$ac_ct_DSYMUTIL" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753  if test "x$ac_ct_DSYMUTIL" = x; then
6754    DSYMUTIL=":"
6755  else
6756    case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760ac_tool_warned=yes ;;
6761esac
6762    DSYMUTIL=$ac_ct_DSYMUTIL
6763  fi
6764else
6765  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6766fi
6767
6768    if test -n "$ac_tool_prefix"; then
6769  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6770set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772$as_echo_n "checking for $ac_word... " >&6; }
6773if ${ac_cv_prog_NMEDIT+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  if test -n "$NMEDIT"; then
6777  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782  IFS=$as_save_IFS
6783  test -z "$as_dir" && as_dir=.
6784    for ac_exec_ext in '' $ac_executable_extensions; do
6785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788    break 2
6789  fi
6790done
6791  done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796NMEDIT=$ac_cv_prog_NMEDIT
6797if test -n "$NMEDIT"; then
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6799$as_echo "$NMEDIT" >&6; }
6800else
6801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802$as_echo "no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_NMEDIT"; then
6808  ac_ct_NMEDIT=$NMEDIT
6809  # Extract the first word of "nmedit", so it can be a program name with args.
6810set dummy nmedit; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$ac_ct_NMEDIT"; then
6817  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6837if test -n "$ac_ct_NMEDIT"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6839$as_echo "$ac_ct_NMEDIT" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845  if test "x$ac_ct_NMEDIT" = x; then
6846    NMEDIT=":"
6847  else
6848    case $cross_compiling:$ac_tool_warned in
6849yes:)
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852ac_tool_warned=yes ;;
6853esac
6854    NMEDIT=$ac_ct_NMEDIT
6855  fi
6856else
6857  NMEDIT="$ac_cv_prog_NMEDIT"
6858fi
6859
6860    if test -n "$ac_tool_prefix"; then
6861  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if ${ac_cv_prog_LIPO+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  if test -n "$LIPO"; then
6869  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874  IFS=$as_save_IFS
6875  test -z "$as_dir" && as_dir=.
6876    for ac_exec_ext in '' $ac_executable_extensions; do
6877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880    break 2
6881  fi
6882done
6883  done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888LIPO=$ac_cv_prog_LIPO
6889if test -n "$LIPO"; then
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6891$as_echo "$LIPO" >&6; }
6892else
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894$as_echo "no" >&6; }
6895fi
6896
6897
6898fi
6899if test -z "$ac_cv_prog_LIPO"; then
6900  ac_ct_LIPO=$LIPO
6901  # Extract the first word of "lipo", so it can be a program name with args.
6902set dummy lipo; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  if test -n "$ac_ct_LIPO"; then
6909  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  test -z "$as_dir" && as_dir=.
6916    for ac_exec_ext in '' $ac_executable_extensions; do
6917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918    ac_cv_prog_ac_ct_LIPO="lipo"
6919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920    break 2
6921  fi
6922done
6923  done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6929if test -n "$ac_ct_LIPO"; then
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6931$as_echo "$ac_ct_LIPO" >&6; }
6932else
6933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937  if test "x$ac_ct_LIPO" = x; then
6938    LIPO=":"
6939  else
6940    case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944ac_tool_warned=yes ;;
6945esac
6946    LIPO=$ac_ct_LIPO
6947  fi
6948else
6949  LIPO="$ac_cv_prog_LIPO"
6950fi
6951
6952    if test -n "$ac_tool_prefix"; then
6953  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6954set dummy ${ac_tool_prefix}otool; ac_word=$2
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
6957if ${ac_cv_prog_OTOOL+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  if test -n "$OTOOL"; then
6961  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966  IFS=$as_save_IFS
6967  test -z "$as_dir" && as_dir=.
6968    for ac_exec_ext in '' $ac_executable_extensions; do
6969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975  done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980OTOOL=$ac_cv_prog_OTOOL
6981if test -n "$OTOOL"; then
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6983$as_echo "$OTOOL" >&6; }
6984else
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989
6990fi
6991if test -z "$ac_cv_prog_OTOOL"; then
6992  ac_ct_OTOOL=$OTOOL
6993  # Extract the first word of "otool", so it can be a program name with args.
6994set dummy otool; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  if test -n "$ac_ct_OTOOL"; then
7001  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008    for ac_exec_ext in '' $ac_executable_extensions; do
7009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010    ac_cv_prog_ac_ct_OTOOL="otool"
7011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012    break 2
7013  fi
7014done
7015  done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7021if test -n "$ac_ct_OTOOL"; then
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7023$as_echo "$ac_ct_OTOOL" >&6; }
7024else
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029  if test "x$ac_ct_OTOOL" = x; then
7030    OTOOL=":"
7031  else
7032    case $cross_compiling:$ac_tool_warned in
7033yes:)
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036ac_tool_warned=yes ;;
7037esac
7038    OTOOL=$ac_ct_OTOOL
7039  fi
7040else
7041  OTOOL="$ac_cv_prog_OTOOL"
7042fi
7043
7044    if test -n "$ac_tool_prefix"; then
7045  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7046set dummy ${ac_tool_prefix}otool64; ac_word=$2
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if ${ac_cv_prog_OTOOL64+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  if test -n "$OTOOL64"; then
7053  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060    for ac_exec_ext in '' $ac_executable_extensions; do
7061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067  done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072OTOOL64=$ac_cv_prog_OTOOL64
7073if test -n "$OTOOL64"; then
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7075$as_echo "$OTOOL64" >&6; }
7076else
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081
7082fi
7083if test -z "$ac_cv_prog_OTOOL64"; then
7084  ac_ct_OTOOL64=$OTOOL64
7085  # Extract the first word of "otool64", so it can be a program name with args.
7086set dummy otool64; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  if test -n "$ac_ct_OTOOL64"; then
7093  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100    for ac_exec_ext in '' $ac_executable_extensions; do
7101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102    ac_cv_prog_ac_ct_OTOOL64="otool64"
7103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107  done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113if test -n "$ac_ct_OTOOL64"; then
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7115$as_echo "$ac_ct_OTOOL64" >&6; }
7116else
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121  if test "x$ac_ct_OTOOL64" = x; then
7122    OTOOL64=":"
7123  else
7124    case $cross_compiling:$ac_tool_warned in
7125yes:)
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128ac_tool_warned=yes ;;
7129esac
7130    OTOOL64=$ac_ct_OTOOL64
7131  fi
7132else
7133  OTOOL64="$ac_cv_prog_OTOOL64"
7134fi
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7163$as_echo_n "checking for -single_module linker flag... " >&6; }
7164if ${lt_cv_apple_cc_single_mod+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  lt_cv_apple_cc_single_mod=no
7168      if test -z "${LT_MULTI_MODULE}"; then
7169	# By default we will add the -single_module flag. You can override
7170	# by either setting the environment variable LT_MULTI_MODULE
7171	# non-empty at configure time, or by adding -multi_module to the
7172	# link flags.
7173	rm -rf libconftest.dylib*
7174	echo "int foo(void){return 1;}" > conftest.c
7175	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176-dynamiclib -Wl,-single_module conftest.c" >&5
7177	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7178	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7179        _lt_result=$?
7180	# If there is a non-empty error log, and "single_module"
7181	# appears in it, assume the flag caused a linker warning
7182        if test -s conftest.err && $GREP single_module conftest.err; then
7183	  cat conftest.err >&5
7184	# Otherwise, if the output was created with a 0 exit code from
7185	# the compiler, it worked.
7186	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7187	  lt_cv_apple_cc_single_mod=yes
7188	else
7189	  cat conftest.err >&5
7190	fi
7191	rm -rf libconftest.dylib*
7192	rm -f conftest.*
7193      fi
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7196$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7197
7198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7199$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7200if ${lt_cv_ld_exported_symbols_list+:} false; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  lt_cv_ld_exported_symbols_list=no
7204      save_LDFLAGS=$LDFLAGS
7205      echo "_main" > conftest.sym
7206      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209
7210int
7211main ()
7212{
7213
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_link "$LINENO"; then :
7219  lt_cv_ld_exported_symbols_list=yes
7220else
7221  lt_cv_ld_exported_symbols_list=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext \
7224    conftest$ac_exeext conftest.$ac_ext
7225	LDFLAGS="$save_LDFLAGS"
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7229$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7230
7231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7232$as_echo_n "checking for -force_load linker flag... " >&6; }
7233if ${lt_cv_ld_force_load+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  lt_cv_ld_force_load=no
7237      cat > conftest.c << _LT_EOF
7238int forced_loaded() { return 2;}
7239_LT_EOF
7240      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7241      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7242      echo "$AR cru libconftest.a conftest.o" >&5
7243      $AR cru libconftest.a conftest.o 2>&5
7244      echo "$RANLIB libconftest.a" >&5
7245      $RANLIB libconftest.a 2>&5
7246      cat > conftest.c << _LT_EOF
7247int main() { return 0;}
7248_LT_EOF
7249      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7250      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7251      _lt_result=$?
7252      if test -s conftest.err && $GREP force_load conftest.err; then
7253	cat conftest.err >&5
7254      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7255	lt_cv_ld_force_load=yes
7256      else
7257	cat conftest.err >&5
7258      fi
7259        rm -f conftest.err libconftest.a conftest conftest.c
7260        rm -rf conftest.dSYM
7261
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7264$as_echo "$lt_cv_ld_force_load" >&6; }
7265    case $host_os in
7266    rhapsody* | darwin1.[012])
7267      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7268    darwin1.*)
7269      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7270    darwin*) # darwin 5.x on
7271      # if running on 10.5 or later, the deployment target defaults
7272      # to the OS version, if on x86, and 10.4, the deployment
7273      # target defaults to 10.4. Don't you love it?
7274      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7275	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7276	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7277	10.[012]*)
7278	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7279	10.*)
7280	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7281      esac
7282    ;;
7283  esac
7284    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7285      _lt_dar_single_mod='$single_module'
7286    fi
7287    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7288      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7289    else
7290      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7291    fi
7292    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7293      _lt_dsymutil='~$DSYMUTIL $lib || :'
7294    else
7295      _lt_dsymutil=
7296    fi
7297    ;;
7298  esac
7299
7300ac_ext=c
7301ac_cpp='$CPP $CPPFLAGS'
7302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7306$as_echo_n "checking how to run the C preprocessor... " >&6; }
7307# On Suns, sometimes $CPP names a directory.
7308if test -n "$CPP" && test -d "$CPP"; then
7309  CPP=
7310fi
7311if test -z "$CPP"; then
7312  if ${ac_cv_prog_CPP+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315      # Double quotes because CPP needs to be expanded
7316    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7317    do
7318      ac_preproc_ok=false
7319for ac_c_preproc_warn_flag in '' yes
7320do
7321  # Use a header file that comes with gcc, so configuring glibc
7322  # with a fresh cross-compiler works.
7323  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7324  # <limits.h> exists even on freestanding compilers.
7325  # On the NeXT, cc -E runs the code through the compiler's parser,
7326  # not just through cpp. "Syntax error" is here to catch this case.
7327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329#ifdef __STDC__
7330# include <limits.h>
7331#else
7332# include <assert.h>
7333#endif
7334		     Syntax error
7335_ACEOF
7336if ac_fn_c_try_cpp "$LINENO"; then :
7337
7338else
7339  # Broken: fails on valid input.
7340continue
7341fi
7342rm -f conftest.err conftest.i conftest.$ac_ext
7343
7344  # OK, works on sane cases.  Now check whether nonexistent headers
7345  # can be detected and how.
7346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h.  */
7348#include <ac_nonexistent.h>
7349_ACEOF
7350if ac_fn_c_try_cpp "$LINENO"; then :
7351  # Broken: success on invalid input.
7352continue
7353else
7354  # Passes both tests.
7355ac_preproc_ok=:
7356break
7357fi
7358rm -f conftest.err conftest.i conftest.$ac_ext
7359
7360done
7361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7362rm -f conftest.i conftest.err conftest.$ac_ext
7363if $ac_preproc_ok; then :
7364  break
7365fi
7366
7367    done
7368    ac_cv_prog_CPP=$CPP
7369
7370fi
7371  CPP=$ac_cv_prog_CPP
7372else
7373  ac_cv_prog_CPP=$CPP
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7376$as_echo "$CPP" >&6; }
7377ac_preproc_ok=false
7378for ac_c_preproc_warn_flag in '' yes
7379do
7380  # Use a header file that comes with gcc, so configuring glibc
7381  # with a fresh cross-compiler works.
7382  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7383  # <limits.h> exists even on freestanding compilers.
7384  # On the NeXT, cc -E runs the code through the compiler's parser,
7385  # not just through cpp. "Syntax error" is here to catch this case.
7386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388#ifdef __STDC__
7389# include <limits.h>
7390#else
7391# include <assert.h>
7392#endif
7393		     Syntax error
7394_ACEOF
7395if ac_fn_c_try_cpp "$LINENO"; then :
7396
7397else
7398  # Broken: fails on valid input.
7399continue
7400fi
7401rm -f conftest.err conftest.i conftest.$ac_ext
7402
7403  # OK, works on sane cases.  Now check whether nonexistent headers
7404  # can be detected and how.
7405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h.  */
7407#include <ac_nonexistent.h>
7408_ACEOF
7409if ac_fn_c_try_cpp "$LINENO"; then :
7410  # Broken: success on invalid input.
7411continue
7412else
7413  # Passes both tests.
7414ac_preproc_ok=:
7415break
7416fi
7417rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419done
7420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7421rm -f conftest.i conftest.err conftest.$ac_ext
7422if $ac_preproc_ok; then :
7423
7424else
7425  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7427as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7428See \`config.log' for more details" "$LINENO" 5; }
7429fi
7430
7431ac_ext=c
7432ac_cpp='$CPP $CPPFLAGS'
7433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7439$as_echo_n "checking for ANSI C header files... " >&6; }
7440if ${ac_cv_header_stdc+:} false; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445#include <stdlib.h>
7446#include <stdarg.h>
7447#include <string.h>
7448#include <float.h>
7449
7450int
7451main ()
7452{
7453
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_compile "$LINENO"; then :
7459  ac_cv_header_stdc=yes
7460else
7461  ac_cv_header_stdc=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464
7465if test $ac_cv_header_stdc = yes; then
7466  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469#include <string.h>
7470
7471_ACEOF
7472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473  $EGREP "memchr" >/dev/null 2>&1; then :
7474
7475else
7476  ac_cv_header_stdc=no
7477fi
7478rm -f conftest*
7479
7480fi
7481
7482if test $ac_cv_header_stdc = yes; then
7483  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h.  */
7486#include <stdlib.h>
7487
7488_ACEOF
7489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7490  $EGREP "free" >/dev/null 2>&1; then :
7491
7492else
7493  ac_cv_header_stdc=no
7494fi
7495rm -f conftest*
7496
7497fi
7498
7499if test $ac_cv_header_stdc = yes; then
7500  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7501  if test "$cross_compiling" = yes; then :
7502  :
7503else
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506#include <ctype.h>
7507#include <stdlib.h>
7508#if ((' ' & 0x0FF) == 0x020)
7509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7511#else
7512# define ISLOWER(c) \
7513		   (('a' <= (c) && (c) <= 'i') \
7514		     || ('j' <= (c) && (c) <= 'r') \
7515		     || ('s' <= (c) && (c) <= 'z'))
7516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7517#endif
7518
7519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7520int
7521main ()
7522{
7523  int i;
7524  for (i = 0; i < 256; i++)
7525    if (XOR (islower (i), ISLOWER (i))
7526	|| toupper (i) != TOUPPER (i))
7527      return 2;
7528  return 0;
7529}
7530_ACEOF
7531if ac_fn_c_try_run "$LINENO"; then :
7532
7533else
7534  ac_cv_header_stdc=no
7535fi
7536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7537  conftest.$ac_objext conftest.beam conftest.$ac_ext
7538fi
7539
7540fi
7541fi
7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7543$as_echo "$ac_cv_header_stdc" >&6; }
7544if test $ac_cv_header_stdc = yes; then
7545
7546$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7547
7548fi
7549
7550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7551for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7552		  inttypes.h stdint.h unistd.h
7553do :
7554  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7555ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7556"
7557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7558  cat >>confdefs.h <<_ACEOF
7559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560_ACEOF
7561
7562fi
7563
7564done
7565
7566
7567for ac_header in dlfcn.h
7568do :
7569  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7570"
7571if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7572  cat >>confdefs.h <<_ACEOF
7573#define HAVE_DLFCN_H 1
7574_ACEOF
7575
7576fi
7577
7578done
7579
7580
7581
7582
7583
7584# Set options
7585
7586
7587
7588        enable_dlopen=no
7589
7590
7591  enable_win32_dll=no
7592
7593
7594            # Check whether --enable-shared was given.
7595if test "${enable_shared+set}" = set; then :
7596  enableval=$enable_shared; p=${PACKAGE-default}
7597    case $enableval in
7598    yes) enable_shared=yes ;;
7599    no) enable_shared=no ;;
7600    *)
7601      enable_shared=no
7602      # Look at the argument we got.  We use all the common list separators.
7603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604      for pkg in $enableval; do
7605	IFS="$lt_save_ifs"
7606	if test "X$pkg" = "X$p"; then
7607	  enable_shared=yes
7608	fi
7609      done
7610      IFS="$lt_save_ifs"
7611      ;;
7612    esac
7613else
7614  enable_shared=yes
7615fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625  # Check whether --enable-static was given.
7626if test "${enable_static+set}" = set; then :
7627  enableval=$enable_static; p=${PACKAGE-default}
7628    case $enableval in
7629    yes) enable_static=yes ;;
7630    no) enable_static=no ;;
7631    *)
7632     enable_static=no
7633      # Look at the argument we got.  We use all the common list separators.
7634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7635      for pkg in $enableval; do
7636	IFS="$lt_save_ifs"
7637	if test "X$pkg" = "X$p"; then
7638	  enable_static=yes
7639	fi
7640      done
7641      IFS="$lt_save_ifs"
7642      ;;
7643    esac
7644else
7645  enable_static=yes
7646fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657# Check whether --with-pic was given.
7658if test "${with_pic+set}" = set; then :
7659  withval=$with_pic; lt_p=${PACKAGE-default}
7660    case $withval in
7661    yes|no) pic_mode=$withval ;;
7662    *)
7663      pic_mode=default
7664      # Look at the argument we got.  We use all the common list separators.
7665      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7666      for lt_pkg in $withval; do
7667	IFS="$lt_save_ifs"
7668	if test "X$lt_pkg" = "X$lt_p"; then
7669	  pic_mode=yes
7670	fi
7671      done
7672      IFS="$lt_save_ifs"
7673      ;;
7674    esac
7675else
7676  pic_mode=default
7677fi
7678
7679
7680test -z "$pic_mode" && pic_mode=default
7681
7682
7683
7684
7685
7686
7687
7688  # Check whether --enable-fast-install was given.
7689if test "${enable_fast_install+set}" = set; then :
7690  enableval=$enable_fast_install; p=${PACKAGE-default}
7691    case $enableval in
7692    yes) enable_fast_install=yes ;;
7693    no) enable_fast_install=no ;;
7694    *)
7695      enable_fast_install=no
7696      # Look at the argument we got.  We use all the common list separators.
7697      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698      for pkg in $enableval; do
7699	IFS="$lt_save_ifs"
7700	if test "X$pkg" = "X$p"; then
7701	  enable_fast_install=yes
7702	fi
7703      done
7704      IFS="$lt_save_ifs"
7705      ;;
7706    esac
7707else
7708  enable_fast_install=yes
7709fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721# This can be used to rebuild libtool when needed
7722LIBTOOL_DEPS="$ltmain"
7723
7724# Always use our own libtool.
7725LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756test -z "$LN_S" && LN_S="ln -s"
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771if test -n "${ZSH_VERSION+set}" ; then
7772   setopt NO_GLOB_SUBST
7773fi
7774
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7776$as_echo_n "checking for objdir... " >&6; }
7777if ${lt_cv_objdir+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  rm -f .libs 2>/dev/null
7781mkdir .libs 2>/dev/null
7782if test -d .libs; then
7783  lt_cv_objdir=.libs
7784else
7785  # MS-DOS does not allow filenames that begin with a dot.
7786  lt_cv_objdir=_libs
7787fi
7788rmdir .libs 2>/dev/null
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7791$as_echo "$lt_cv_objdir" >&6; }
7792objdir=$lt_cv_objdir
7793
7794
7795
7796
7797
7798cat >>confdefs.h <<_ACEOF
7799#define LT_OBJDIR "$lt_cv_objdir/"
7800_ACEOF
7801
7802
7803
7804
7805case $host_os in
7806aix3*)
7807  # AIX sometimes has problems with the GCC collect2 program.  For some
7808  # reason, if we set the COLLECT_NAMES environment variable, the problems
7809  # vanish in a puff of smoke.
7810  if test "X${COLLECT_NAMES+set}" != Xset; then
7811    COLLECT_NAMES=
7812    export COLLECT_NAMES
7813  fi
7814  ;;
7815esac
7816
7817# Global variables:
7818ofile=libtool
7819can_build_shared=yes
7820
7821# All known linkers require a `.a' archive for static linking (except MSVC,
7822# which needs '.lib').
7823libext=a
7824
7825with_gnu_ld="$lt_cv_prog_gnu_ld"
7826
7827old_CC="$CC"
7828old_CFLAGS="$CFLAGS"
7829
7830# Set sane defaults for various variables
7831test -z "$CC" && CC=cc
7832test -z "$LTCC" && LTCC=$CC
7833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7834test -z "$LD" && LD=ld
7835test -z "$ac_objext" && ac_objext=o
7836
7837for cc_temp in $compiler""; do
7838  case $cc_temp in
7839    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7840    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7841    \-*) ;;
7842    *) break;;
7843  esac
7844done
7845cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7846
7847
7848# Only perform the check for file, if the check method requires it
7849test -z "$MAGIC_CMD" && MAGIC_CMD=file
7850case $deplibs_check_method in
7851file_magic*)
7852  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7854$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7855if ${lt_cv_path_MAGIC_CMD+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  case $MAGIC_CMD in
7859[\\/*] |  ?:[\\/]*)
7860  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7861  ;;
7862*)
7863  lt_save_MAGIC_CMD="$MAGIC_CMD"
7864  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7865  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7866  for ac_dir in $ac_dummy; do
7867    IFS="$lt_save_ifs"
7868    test -z "$ac_dir" && ac_dir=.
7869    if test -f $ac_dir/${ac_tool_prefix}file; then
7870      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7871      if test -n "$file_magic_test_file"; then
7872	case $deplibs_check_method in
7873	"file_magic "*)
7874	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7875	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7876	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7877	    $EGREP "$file_magic_regex" > /dev/null; then
7878	    :
7879	  else
7880	    cat <<_LT_EOF 1>&2
7881
7882*** Warning: the command libtool uses to detect shared libraries,
7883*** $file_magic_cmd, produces output that libtool cannot recognize.
7884*** The result is that libtool may fail to recognize shared libraries
7885*** as such.  This will affect the creation of libtool libraries that
7886*** depend on shared libraries, but programs linked with such libtool
7887*** libraries will work regardless of this problem.  Nevertheless, you
7888*** may want to report the problem to your system manager and/or to
7889*** bug-libtool@gnu.org
7890
7891_LT_EOF
7892	  fi ;;
7893	esac
7894      fi
7895      break
7896    fi
7897  done
7898  IFS="$lt_save_ifs"
7899  MAGIC_CMD="$lt_save_MAGIC_CMD"
7900  ;;
7901esac
7902fi
7903
7904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905if test -n "$MAGIC_CMD"; then
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7907$as_echo "$MAGIC_CMD" >&6; }
7908else
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
7911fi
7912
7913
7914
7915
7916
7917if test -z "$lt_cv_path_MAGIC_CMD"; then
7918  if test -n "$ac_tool_prefix"; then
7919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7920$as_echo_n "checking for file... " >&6; }
7921if ${lt_cv_path_MAGIC_CMD+:} false; then :
7922  $as_echo_n "(cached) " >&6
7923else
7924  case $MAGIC_CMD in
7925[\\/*] |  ?:[\\/]*)
7926  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7927  ;;
7928*)
7929  lt_save_MAGIC_CMD="$MAGIC_CMD"
7930  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7931  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7932  for ac_dir in $ac_dummy; do
7933    IFS="$lt_save_ifs"
7934    test -z "$ac_dir" && ac_dir=.
7935    if test -f $ac_dir/file; then
7936      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7937      if test -n "$file_magic_test_file"; then
7938	case $deplibs_check_method in
7939	"file_magic "*)
7940	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7941	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7943	    $EGREP "$file_magic_regex" > /dev/null; then
7944	    :
7945	  else
7946	    cat <<_LT_EOF 1>&2
7947
7948*** Warning: the command libtool uses to detect shared libraries,
7949*** $file_magic_cmd, produces output that libtool cannot recognize.
7950*** The result is that libtool may fail to recognize shared libraries
7951*** as such.  This will affect the creation of libtool libraries that
7952*** depend on shared libraries, but programs linked with such libtool
7953*** libraries will work regardless of this problem.  Nevertheless, you
7954*** may want to report the problem to your system manager and/or to
7955*** bug-libtool@gnu.org
7956
7957_LT_EOF
7958	  fi ;;
7959	esac
7960      fi
7961      break
7962    fi
7963  done
7964  IFS="$lt_save_ifs"
7965  MAGIC_CMD="$lt_save_MAGIC_CMD"
7966  ;;
7967esac
7968fi
7969
7970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971if test -n "$MAGIC_CMD"; then
7972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7973$as_echo "$MAGIC_CMD" >&6; }
7974else
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977fi
7978
7979
7980  else
7981    MAGIC_CMD=:
7982  fi
7983fi
7984
7985  fi
7986  ;;
7987esac
7988
7989# Use C for the default configuration in the libtool script
7990
7991lt_save_CC="$CC"
7992ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998
7999# Source file extension for C test sources.
8000ac_ext=c
8001
8002# Object file extension for compiled C test sources.
8003objext=o
8004objext=$objext
8005
8006# Code to be used in simple compile tests
8007lt_simple_compile_test_code="int some_variable = 0;"
8008
8009# Code to be used in simple link tests
8010lt_simple_link_test_code='int main(){return(0);}'
8011
8012
8013
8014
8015
8016
8017
8018# If no C compiler was specified, use CC.
8019LTCC=${LTCC-"$CC"}
8020
8021# If no C compiler flags were specified, use CFLAGS.
8022LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8023
8024# Allow CC to be a program name with arguments.
8025compiler=$CC
8026
8027# Save the default compiler, since it gets overwritten when the other
8028# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8029compiler_DEFAULT=$CC
8030
8031# save warnings/boilerplate of simple test code
8032ac_outfile=conftest.$ac_objext
8033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8035_lt_compiler_boilerplate=`cat conftest.err`
8036$RM conftest*
8037
8038ac_outfile=conftest.$ac_objext
8039echo "$lt_simple_link_test_code" >conftest.$ac_ext
8040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8041_lt_linker_boilerplate=`cat conftest.err`
8042$RM -r conftest*
8043
8044
8045## CAVEAT EMPTOR:
8046## There is no encapsulation within the following macros, do not change
8047## the running order or otherwise move them around unless you know exactly
8048## what you are doing...
8049if test -n "$compiler"; then
8050
8051lt_prog_compiler_no_builtin_flag=
8052
8053if test "$GCC" = yes; then
8054  case $cc_basename in
8055  nvcc*)
8056    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8057  *)
8058    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8059  esac
8060
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8062$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8063if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  lt_cv_prog_compiler_rtti_exceptions=no
8067   ac_outfile=conftest.$ac_objext
8068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8069   lt_compiler_flag="-fno-rtti -fno-exceptions"
8070   # Insert the option either (1) after the last *FLAGS variable, or
8071   # (2) before a word containing "conftest.", or (3) at the end.
8072   # Note that $ac_compile itself does not contain backslashes and begins
8073   # with a dollar sign (not a hyphen), so the echo should work correctly.
8074   # The option is referenced via a variable to avoid confusing sed.
8075   lt_compile=`echo "$ac_compile" | $SED \
8076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8078   -e 's:$: $lt_compiler_flag:'`
8079   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8080   (eval "$lt_compile" 2>conftest.err)
8081   ac_status=$?
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   if (exit $ac_status) && test -s "$ac_outfile"; then
8085     # The compiler can only warn and ignore the option if not recognized
8086     # So say no if there are warnings other than the usual output.
8087     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8088     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8089     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8090       lt_cv_prog_compiler_rtti_exceptions=yes
8091     fi
8092   fi
8093   $RM conftest*
8094
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8097$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8098
8099if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8100    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8101else
8102    :
8103fi
8104
8105fi
8106
8107
8108
8109
8110
8111
8112  lt_prog_compiler_wl=
8113lt_prog_compiler_pic=
8114lt_prog_compiler_static=
8115
8116
8117  if test "$GCC" = yes; then
8118    lt_prog_compiler_wl='-Wl,'
8119    lt_prog_compiler_static='-static'
8120
8121    case $host_os in
8122      aix*)
8123      # All AIX code is PIC.
8124      if test "$host_cpu" = ia64; then
8125	# AIX 5 now supports IA64 processor
8126	lt_prog_compiler_static='-Bstatic'
8127      fi
8128      ;;
8129
8130    amigaos*)
8131      case $host_cpu in
8132      powerpc)
8133            # see comment about AmigaOS4 .so support
8134            lt_prog_compiler_pic='-fPIC'
8135        ;;
8136      m68k)
8137            # FIXME: we need at least 68020 code to build shared libraries, but
8138            # adding the `-m68020' flag to GCC prevents building anything better,
8139            # like `-m68040'.
8140            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8141        ;;
8142      esac
8143      ;;
8144
8145    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8146      # PIC is the default for these OSes.
8147      ;;
8148
8149    mingw* | cygwin* | pw32* | os2* | cegcc*)
8150      # This hack is so that the source file can tell whether it is being
8151      # built for inclusion in a dll (and should export symbols for example).
8152      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8153      # (--disable-auto-import) libraries
8154      lt_prog_compiler_pic='-DDLL_EXPORT'
8155      ;;
8156
8157    darwin* | rhapsody*)
8158      # PIC is the default on this platform
8159      # Common symbols not allowed in MH_DYLIB files
8160      lt_prog_compiler_pic='-fno-common'
8161      ;;
8162
8163    haiku*)
8164      # PIC is the default for Haiku.
8165      # The "-static" flag exists, but is broken.
8166      lt_prog_compiler_static=
8167      ;;
8168
8169    hpux*)
8170      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8171      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8172      # sets the default TLS model and affects inlining.
8173      case $host_cpu in
8174      hppa*64*)
8175	# +Z the default
8176	;;
8177      *)
8178	lt_prog_compiler_pic='-fPIC'
8179	;;
8180      esac
8181      ;;
8182
8183    interix[3-9]*)
8184      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8185      # Instead, we relocate shared libraries at runtime.
8186      ;;
8187
8188    msdosdjgpp*)
8189      # Just because we use GCC doesn't mean we suddenly get shared libraries
8190      # on systems that don't support them.
8191      lt_prog_compiler_can_build_shared=no
8192      enable_shared=no
8193      ;;
8194
8195    *nto* | *qnx*)
8196      # QNX uses GNU C++, but need to define -shared option too, otherwise
8197      # it will coredump.
8198      lt_prog_compiler_pic='-fPIC -shared'
8199      ;;
8200
8201    sysv4*MP*)
8202      if test -d /usr/nec; then
8203	lt_prog_compiler_pic=-Kconform_pic
8204      fi
8205      ;;
8206
8207    *)
8208      lt_prog_compiler_pic='-fPIC'
8209      ;;
8210    esac
8211
8212    case $cc_basename in
8213    nvcc*) # Cuda Compiler Driver 2.2
8214      lt_prog_compiler_wl='-Xlinker '
8215      if test -n "$lt_prog_compiler_pic"; then
8216        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8217      fi
8218      ;;
8219    esac
8220  else
8221    # PORTME Check for flag to pass linker flags through the system compiler.
8222    case $host_os in
8223    aix*)
8224      lt_prog_compiler_wl='-Wl,'
8225      if test "$host_cpu" = ia64; then
8226	# AIX 5 now supports IA64 processor
8227	lt_prog_compiler_static='-Bstatic'
8228      else
8229	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8230      fi
8231      ;;
8232
8233    mingw* | cygwin* | pw32* | os2* | cegcc*)
8234      # This hack is so that the source file can tell whether it is being
8235      # built for inclusion in a dll (and should export symbols for example).
8236      lt_prog_compiler_pic='-DDLL_EXPORT'
8237      ;;
8238
8239    hpux9* | hpux10* | hpux11*)
8240      lt_prog_compiler_wl='-Wl,'
8241      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8242      # not for PA HP-UX.
8243      case $host_cpu in
8244      hppa*64*|ia64*)
8245	# +Z the default
8246	;;
8247      *)
8248	lt_prog_compiler_pic='+Z'
8249	;;
8250      esac
8251      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8252      lt_prog_compiler_static='${wl}-a ${wl}archive'
8253      ;;
8254
8255    irix5* | irix6* | nonstopux*)
8256      lt_prog_compiler_wl='-Wl,'
8257      # PIC (with -KPIC) is the default.
8258      lt_prog_compiler_static='-non_shared'
8259      ;;
8260
8261    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8262      case $cc_basename in
8263      # old Intel for x86_64 which still supported -KPIC.
8264      ecc*)
8265	lt_prog_compiler_wl='-Wl,'
8266	lt_prog_compiler_pic='-KPIC'
8267	lt_prog_compiler_static='-static'
8268        ;;
8269      # icc used to be incompatible with GCC.
8270      # ICC 10 doesn't accept -KPIC any more.
8271      icc* | ifort*)
8272	lt_prog_compiler_wl='-Wl,'
8273	lt_prog_compiler_pic='-fPIC'
8274	lt_prog_compiler_static='-static'
8275        ;;
8276      # Lahey Fortran 8.1.
8277      lf95*)
8278	lt_prog_compiler_wl='-Wl,'
8279	lt_prog_compiler_pic='--shared'
8280	lt_prog_compiler_static='--static'
8281	;;
8282      nagfor*)
8283	# NAG Fortran compiler
8284	lt_prog_compiler_wl='-Wl,-Wl,,'
8285	lt_prog_compiler_pic='-PIC'
8286	lt_prog_compiler_static='-Bstatic'
8287	;;
8288      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8289        # Portland Group compilers (*not* the Pentium gcc compiler,
8290	# which looks to be a dead project)
8291	lt_prog_compiler_wl='-Wl,'
8292	lt_prog_compiler_pic='-fpic'
8293	lt_prog_compiler_static='-Bstatic'
8294        ;;
8295      ccc*)
8296        lt_prog_compiler_wl='-Wl,'
8297        # All Alpha code is PIC.
8298        lt_prog_compiler_static='-non_shared'
8299        ;;
8300      xl* | bgxl* | bgf* | mpixl*)
8301	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8302	lt_prog_compiler_wl='-Wl,'
8303	lt_prog_compiler_pic='-qpic'
8304	lt_prog_compiler_static='-qstaticlink'
8305	;;
8306      *)
8307	case `$CC -V 2>&1 | sed 5q` in
8308	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8309	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8310	  lt_prog_compiler_pic='-KPIC'
8311	  lt_prog_compiler_static='-Bstatic'
8312	  lt_prog_compiler_wl=''
8313	  ;;
8314	*Sun\ F* | *Sun*Fortran*)
8315	  lt_prog_compiler_pic='-KPIC'
8316	  lt_prog_compiler_static='-Bstatic'
8317	  lt_prog_compiler_wl='-Qoption ld '
8318	  ;;
8319	*Sun\ C*)
8320	  # Sun C 5.9
8321	  lt_prog_compiler_pic='-KPIC'
8322	  lt_prog_compiler_static='-Bstatic'
8323	  lt_prog_compiler_wl='-Wl,'
8324	  ;;
8325        *Intel*\ [CF]*Compiler*)
8326	  lt_prog_compiler_wl='-Wl,'
8327	  lt_prog_compiler_pic='-fPIC'
8328	  lt_prog_compiler_static='-static'
8329	  ;;
8330	*Portland\ Group*)
8331	  lt_prog_compiler_wl='-Wl,'
8332	  lt_prog_compiler_pic='-fpic'
8333	  lt_prog_compiler_static='-Bstatic'
8334	  ;;
8335	esac
8336	;;
8337      esac
8338      ;;
8339
8340    newsos6)
8341      lt_prog_compiler_pic='-KPIC'
8342      lt_prog_compiler_static='-Bstatic'
8343      ;;
8344
8345    *nto* | *qnx*)
8346      # QNX uses GNU C++, but need to define -shared option too, otherwise
8347      # it will coredump.
8348      lt_prog_compiler_pic='-fPIC -shared'
8349      ;;
8350
8351    osf3* | osf4* | osf5*)
8352      lt_prog_compiler_wl='-Wl,'
8353      # All OSF/1 code is PIC.
8354      lt_prog_compiler_static='-non_shared'
8355      ;;
8356
8357    rdos*)
8358      lt_prog_compiler_static='-non_shared'
8359      ;;
8360
8361    solaris*)
8362      lt_prog_compiler_pic='-KPIC'
8363      lt_prog_compiler_static='-Bstatic'
8364      case $cc_basename in
8365      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8366	lt_prog_compiler_wl='-Qoption ld ';;
8367      *)
8368	lt_prog_compiler_wl='-Wl,';;
8369      esac
8370      ;;
8371
8372    sunos4*)
8373      lt_prog_compiler_wl='-Qoption ld '
8374      lt_prog_compiler_pic='-PIC'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    sysv4 | sysv4.2uw2* | sysv4.3*)
8379      lt_prog_compiler_wl='-Wl,'
8380      lt_prog_compiler_pic='-KPIC'
8381      lt_prog_compiler_static='-Bstatic'
8382      ;;
8383
8384    sysv4*MP*)
8385      if test -d /usr/nec ;then
8386	lt_prog_compiler_pic='-Kconform_pic'
8387	lt_prog_compiler_static='-Bstatic'
8388      fi
8389      ;;
8390
8391    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8392      lt_prog_compiler_wl='-Wl,'
8393      lt_prog_compiler_pic='-KPIC'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    unicos*)
8398      lt_prog_compiler_wl='-Wl,'
8399      lt_prog_compiler_can_build_shared=no
8400      ;;
8401
8402    uts4*)
8403      lt_prog_compiler_pic='-pic'
8404      lt_prog_compiler_static='-Bstatic'
8405      ;;
8406
8407    *)
8408      lt_prog_compiler_can_build_shared=no
8409      ;;
8410    esac
8411  fi
8412
8413case $host_os in
8414  # For platforms which do not support PIC, -DPIC is meaningless:
8415  *djgpp*)
8416    lt_prog_compiler_pic=
8417    ;;
8418  *)
8419    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420    ;;
8421esac
8422
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8424$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8425if ${lt_cv_prog_compiler_pic+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8429fi
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8431$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8432lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8433
8434#
8435# Check to make sure the PIC flag actually works.
8436#
8437if test -n "$lt_prog_compiler_pic"; then
8438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8439$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8440if ${lt_cv_prog_compiler_pic_works+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  lt_cv_prog_compiler_pic_works=no
8444   ac_outfile=conftest.$ac_objext
8445   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8446   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8447   # Insert the option either (1) after the last *FLAGS variable, or
8448   # (2) before a word containing "conftest.", or (3) at the end.
8449   # Note that $ac_compile itself does not contain backslashes and begins
8450   # with a dollar sign (not a hyphen), so the echo should work correctly.
8451   # The option is referenced via a variable to avoid confusing sed.
8452   lt_compile=`echo "$ac_compile" | $SED \
8453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8455   -e 's:$: $lt_compiler_flag:'`
8456   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8457   (eval "$lt_compile" 2>conftest.err)
8458   ac_status=$?
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   if (exit $ac_status) && test -s "$ac_outfile"; then
8462     # The compiler can only warn and ignore the option if not recognized
8463     # So say no if there are warnings other than the usual output.
8464     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8465     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8466     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8467       lt_cv_prog_compiler_pic_works=yes
8468     fi
8469   fi
8470   $RM conftest*
8471
8472fi
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8474$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8475
8476if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8477    case $lt_prog_compiler_pic in
8478     "" | " "*) ;;
8479     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8480     esac
8481else
8482    lt_prog_compiler_pic=
8483     lt_prog_compiler_can_build_shared=no
8484fi
8485
8486fi
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498#
8499# Check to make sure the static flag actually works.
8500#
8501wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8503$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8504if ${lt_cv_prog_compiler_static_works+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  lt_cv_prog_compiler_static_works=no
8508   save_LDFLAGS="$LDFLAGS"
8509   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8510   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8511   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8512     # The linker can only warn and ignore the option if not recognized
8513     # So say no if there are warnings
8514     if test -s conftest.err; then
8515       # Append any errors to the config.log.
8516       cat conftest.err 1>&5
8517       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8518       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519       if diff conftest.exp conftest.er2 >/dev/null; then
8520         lt_cv_prog_compiler_static_works=yes
8521       fi
8522     else
8523       lt_cv_prog_compiler_static_works=yes
8524     fi
8525   fi
8526   $RM -r conftest*
8527   LDFLAGS="$save_LDFLAGS"
8528
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8531$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8532
8533if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8534    :
8535else
8536    lt_prog_compiler_static=
8537fi
8538
8539
8540
8541
8542
8543
8544
8545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8546$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8547if ${lt_cv_prog_compiler_c_o+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  lt_cv_prog_compiler_c_o=no
8551   $RM -r conftest 2>/dev/null
8552   mkdir conftest
8553   cd conftest
8554   mkdir out
8555   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556
8557   lt_compiler_flag="-o out/conftest2.$ac_objext"
8558   # Insert the option either (1) after the last *FLAGS variable, or
8559   # (2) before a word containing "conftest.", or (3) at the end.
8560   # Note that $ac_compile itself does not contain backslashes and begins
8561   # with a dollar sign (not a hyphen), so the echo should work correctly.
8562   lt_compile=`echo "$ac_compile" | $SED \
8563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565   -e 's:$: $lt_compiler_flag:'`
8566   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567   (eval "$lt_compile" 2>out/conftest.err)
8568   ac_status=$?
8569   cat out/conftest.err >&5
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572   then
8573     # The compiler can only warn and ignore the option if not recognized
8574     # So say no if there are warnings
8575     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8576     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578       lt_cv_prog_compiler_c_o=yes
8579     fi
8580   fi
8581   chmod u+w . 2>&5
8582   $RM conftest*
8583   # SGI C++ compiler will create directory out/ii_files/ for
8584   # template instantiation
8585   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586   $RM out/* && rmdir out
8587   cd ..
8588   $RM -r conftest
8589   $RM conftest*
8590
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8593$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594
8595
8596
8597
8598
8599
8600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8601$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8602if ${lt_cv_prog_compiler_c_o+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  lt_cv_prog_compiler_c_o=no
8606   $RM -r conftest 2>/dev/null
8607   mkdir conftest
8608   cd conftest
8609   mkdir out
8610   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611
8612   lt_compiler_flag="-o out/conftest2.$ac_objext"
8613   # Insert the option either (1) after the last *FLAGS variable, or
8614   # (2) before a word containing "conftest.", or (3) at the end.
8615   # Note that $ac_compile itself does not contain backslashes and begins
8616   # with a dollar sign (not a hyphen), so the echo should work correctly.
8617   lt_compile=`echo "$ac_compile" | $SED \
8618   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620   -e 's:$: $lt_compiler_flag:'`
8621   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622   (eval "$lt_compile" 2>out/conftest.err)
8623   ac_status=$?
8624   cat out/conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8627   then
8628     # The compiler can only warn and ignore the option if not recognized
8629     # So say no if there are warnings
8630     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8631     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8632     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8633       lt_cv_prog_compiler_c_o=yes
8634     fi
8635   fi
8636   chmod u+w . 2>&5
8637   $RM conftest*
8638   # SGI C++ compiler will create directory out/ii_files/ for
8639   # template instantiation
8640   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8641   $RM out/* && rmdir out
8642   cd ..
8643   $RM -r conftest
8644   $RM conftest*
8645
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8648$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649
8650
8651
8652
8653hard_links="nottested"
8654if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8655  # do not overwrite the value of need_locks provided by the user
8656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8657$as_echo_n "checking if we can lock with hard links... " >&6; }
8658  hard_links=yes
8659  $RM conftest*
8660  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661  touch conftest.a
8662  ln conftest.a conftest.b 2>&5 || hard_links=no
8663  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8665$as_echo "$hard_links" >&6; }
8666  if test "$hard_links" = no; then
8667    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8668$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8669    need_locks=warn
8670  fi
8671else
8672  need_locks=no
8673fi
8674
8675
8676
8677
8678
8679
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8681$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8682
8683  runpath_var=
8684  allow_undefined_flag=
8685  always_export_symbols=no
8686  archive_cmds=
8687  archive_expsym_cmds=
8688  compiler_needs_object=no
8689  enable_shared_with_static_runtimes=no
8690  export_dynamic_flag_spec=
8691  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8692  hardcode_automatic=no
8693  hardcode_direct=no
8694  hardcode_direct_absolute=no
8695  hardcode_libdir_flag_spec=
8696  hardcode_libdir_separator=
8697  hardcode_minus_L=no
8698  hardcode_shlibpath_var=unsupported
8699  inherit_rpath=no
8700  link_all_deplibs=unknown
8701  module_cmds=
8702  module_expsym_cmds=
8703  old_archive_from_new_cmds=
8704  old_archive_from_expsyms_cmds=
8705  thread_safe_flag_spec=
8706  whole_archive_flag_spec=
8707  # include_expsyms should be a list of space-separated symbols to be *always*
8708  # included in the symbol list
8709  include_expsyms=
8710  # exclude_expsyms can be an extended regexp of symbols to exclude
8711  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8712  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8713  # as well as any symbol that contains `d'.
8714  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8715  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8716  # platforms (ab)use it in PIC code, but their linkers get confused if
8717  # the symbol is explicitly referenced.  Since portable code cannot
8718  # rely on this symbol name, it's probably fine to never include it in
8719  # preloaded symbol tables.
8720  # Exclude shared library initialization/finalization symbols.
8721  extract_expsyms_cmds=
8722
8723  case $host_os in
8724  cygwin* | mingw* | pw32* | cegcc*)
8725    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8726    # When not using gcc, we currently assume that we are using
8727    # Microsoft Visual C++.
8728    if test "$GCC" != yes; then
8729      with_gnu_ld=no
8730    fi
8731    ;;
8732  interix*)
8733    # we just hope/assume this is gcc and not c89 (= MSVC++)
8734    with_gnu_ld=yes
8735    ;;
8736  openbsd*)
8737    with_gnu_ld=no
8738    ;;
8739  linux* | k*bsd*-gnu | gnu*)
8740    link_all_deplibs=no
8741    ;;
8742  esac
8743
8744  ld_shlibs=yes
8745
8746  # On some targets, GNU ld is compatible enough with the native linker
8747  # that we're better off using the native interface for both.
8748  lt_use_gnu_ld_interface=no
8749  if test "$with_gnu_ld" = yes; then
8750    case $host_os in
8751      aix*)
8752	# The AIX port of GNU ld has always aspired to compatibility
8753	# with the native linker.  However, as the warning in the GNU ld
8754	# block says, versions before 2.19.5* couldn't really create working
8755	# shared libraries, regardless of the interface used.
8756	case `$LD -v 2>&1` in
8757	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760	  *)
8761	    lt_use_gnu_ld_interface=yes
8762	    ;;
8763	esac
8764	;;
8765      *)
8766	lt_use_gnu_ld_interface=yes
8767	;;
8768    esac
8769  fi
8770
8771  if test "$lt_use_gnu_ld_interface" = yes; then
8772    # If archive_cmds runs LD, not CC, wlarc should be empty
8773    wlarc='${wl}'
8774
8775    # Set some defaults for GNU ld with shared library support. These
8776    # are reset later if shared libraries are not supported. Putting them
8777    # here allows them to be overridden if necessary.
8778    runpath_var=LD_RUN_PATH
8779    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780    export_dynamic_flag_spec='${wl}--export-dynamic'
8781    # ancient GNU ld didn't support --whole-archive et. al.
8782    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784    else
8785      whole_archive_flag_spec=
8786    fi
8787    supports_anon_versioning=no
8788    case `$LD -v 2>&1` in
8789      *GNU\ gold*) supports_anon_versioning=yes ;;
8790      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793      *\ 2.11.*) ;; # other 2.11 versions
8794      *) supports_anon_versioning=yes ;;
8795    esac
8796
8797    # See if GNU ld supports shared libraries.
8798    case $host_os in
8799    aix[3-9]*)
8800      # On AIX/PPC, the GNU linker is very broken
8801      if test "$host_cpu" != ia64; then
8802	ld_shlibs=no
8803	cat <<_LT_EOF 1>&2
8804
8805*** Warning: the GNU linker, at least up to release 2.19, is reported
8806*** to be unable to reliably create shared libraries on AIX.
8807*** Therefore, libtool is disabling shared libraries support.  If you
8808*** really care for shared libraries, you may want to install binutils
8809*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810*** You will then need to restart the configuration process.
8811
8812_LT_EOF
8813      fi
8814      ;;
8815
8816    amigaos*)
8817      case $host_cpu in
8818      powerpc)
8819            # see comment about AmigaOS4 .so support
8820            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821            archive_expsym_cmds=''
8822        ;;
8823      m68k)
8824            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)'
8825            hardcode_libdir_flag_spec='-L$libdir'
8826            hardcode_minus_L=yes
8827        ;;
8828      esac
8829      ;;
8830
8831    beos*)
8832      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833	allow_undefined_flag=unsupported
8834	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835	# support --undefined.  This deserves some investigation.  FIXME
8836	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837      else
8838	ld_shlibs=no
8839      fi
8840      ;;
8841
8842    cygwin* | mingw* | pw32* | cegcc*)
8843      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844      # as there is no search path for DLLs.
8845      hardcode_libdir_flag_spec='-L$libdir'
8846      export_dynamic_flag_spec='${wl}--export-all-symbols'
8847      allow_undefined_flag=unsupported
8848      always_export_symbols=no
8849      enable_shared_with_static_runtimes=yes
8850      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'
8851      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8852
8853      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8854        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855	# If the export-symbols file already is a .def file (1st line
8856	# is EXPORTS), use it as is; otherwise, prepend...
8857	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858	  cp $export_symbols $output_objdir/$soname.def;
8859	else
8860	  echo EXPORTS > $output_objdir/$soname.def;
8861	  cat $export_symbols >> $output_objdir/$soname.def;
8862	fi~
8863	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864      else
8865	ld_shlibs=no
8866      fi
8867      ;;
8868
8869    haiku*)
8870      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871      link_all_deplibs=yes
8872      ;;
8873
8874    interix[3-9]*)
8875      hardcode_direct=no
8876      hardcode_shlibpath_var=no
8877      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878      export_dynamic_flag_spec='${wl}-E'
8879      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880      # Instead, shared libraries are loaded at an image base (0x10000000 by
8881      # default) and relocated if they conflict, which is a slow very memory
8882      # consuming and fragmenting process.  To avoid this, we pick a random,
8883      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8885      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886      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'
8887      ;;
8888
8889    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890      tmp_diet=no
8891      if test "$host_os" = linux-dietlibc; then
8892	case $cc_basename in
8893	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8894	esac
8895      fi
8896      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897	 && test "$tmp_diet" = no
8898      then
8899	tmp_addflag=' $pic_flag'
8900	tmp_sharedflag='-shared'
8901	case $cc_basename,$host_cpu in
8902        pgcc*)				# Portland Group C compiler
8903	  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'
8904	  tmp_addflag=' $pic_flag'
8905	  ;;
8906	pgf77* | pgf90* | pgf95* | pgfortran*)
8907					# Portland Group f77 and f90 compilers
8908	  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'
8909	  tmp_addflag=' $pic_flag -Mnomain' ;;
8910	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8911	  tmp_addflag=' -i_dynamic' ;;
8912	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8913	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8914	ifc* | ifort*)			# Intel Fortran compiler
8915	  tmp_addflag=' -nofor_main' ;;
8916	lf95*)				# Lahey Fortran 8.1
8917	  whole_archive_flag_spec=
8918	  tmp_sharedflag='--shared' ;;
8919	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920	  tmp_sharedflag='-qmkshrobj'
8921	  tmp_addflag= ;;
8922	nvcc*)	# Cuda Compiler Driver 2.2
8923	  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'
8924	  compiler_needs_object=yes
8925	  ;;
8926	esac
8927	case `$CC -V 2>&1 | sed 5q` in
8928	*Sun\ C*)			# Sun C 5.9
8929	  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'
8930	  compiler_needs_object=yes
8931	  tmp_sharedflag='-G' ;;
8932	*Sun\ F*)			# Sun Fortran 8.3
8933	  tmp_sharedflag='-G' ;;
8934	esac
8935	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936
8937        if test "x$supports_anon_versioning" = xyes; then
8938          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940	    echo "local: *; };" >> $output_objdir/$libname.ver~
8941	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942        fi
8943
8944	case $cc_basename in
8945	xlf* | bgf* | bgxlf* | mpixlf*)
8946	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8950	  if test "x$supports_anon_versioning" = xyes; then
8951	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953	      echo "local: *; };" >> $output_objdir/$libname.ver~
8954	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955	  fi
8956	  ;;
8957	esac
8958      else
8959        ld_shlibs=no
8960      fi
8961      ;;
8962
8963    netbsd* | netbsdelf*-gnu)
8964      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966	wlarc=
8967      else
8968	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970      fi
8971      ;;
8972
8973    solaris*)
8974      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975	ld_shlibs=no
8976	cat <<_LT_EOF 1>&2
8977
8978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979*** create shared libraries on Solaris systems.  Therefore, libtool
8980*** is disabling shared libraries support.  We urge you to upgrade GNU
8981*** binutils to release 2.9.1 or newer.  Another option is to modify
8982*** your PATH or compiler configuration so that the native linker is
8983*** used, and then restart.
8984
8985_LT_EOF
8986      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989      else
8990	ld_shlibs=no
8991      fi
8992      ;;
8993
8994    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995      case `$LD -v 2>&1` in
8996        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997	ld_shlibs=no
8998	cat <<_LT_EOF 1>&2
8999
9000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001*** reliably create shared libraries on SCO systems.  Therefore, libtool
9002*** is disabling shared libraries support.  We urge you to upgrade GNU
9003*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9004*** your PATH or compiler configuration so that the native linker is
9005*** used, and then restart.
9006
9007_LT_EOF
9008	;;
9009	*)
9010	  # For security reasons, it is highly recommended that you always
9011	  # use absolute paths for naming shared libraries, and exclude the
9012	  # DT_RUNPATH tag from executables and libraries.  But doing so
9013	  # requires that you compile everything twice, which is a pain.
9014	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018	  else
9019	    ld_shlibs=no
9020	  fi
9021	;;
9022      esac
9023      ;;
9024
9025    sunos4*)
9026      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027      wlarc=
9028      hardcode_direct=yes
9029      hardcode_shlibpath_var=no
9030      ;;
9031
9032    *)
9033      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036      else
9037	ld_shlibs=no
9038      fi
9039      ;;
9040    esac
9041
9042    if test "$ld_shlibs" = no; then
9043      runpath_var=
9044      hardcode_libdir_flag_spec=
9045      export_dynamic_flag_spec=
9046      whole_archive_flag_spec=
9047    fi
9048  else
9049    # PORTME fill in a description of your system's linker (not GNU ld)
9050    case $host_os in
9051    aix3*)
9052      allow_undefined_flag=unsupported
9053      always_export_symbols=yes
9054      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'
9055      # Note: this linker hardcodes the directories in LIBPATH if there
9056      # are no directories specified by -L.
9057      hardcode_minus_L=yes
9058      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059	# Neither direct hardcoding nor static linking is supported with a
9060	# broken collect2.
9061	hardcode_direct=unsupported
9062      fi
9063      ;;
9064
9065    aix[4-9]*)
9066      if test "$host_cpu" = ia64; then
9067	# On IA64, the linker does run time linking by default, so we don't
9068	# have to do anything special.
9069	aix_use_runtimelinking=no
9070	exp_sym_flag='-Bexport'
9071	no_entry_flag=""
9072      else
9073	# If we're using GNU nm, then we don't want the "-C" option.
9074	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9075	# Also, AIX nm treats weak defined symbols like other global
9076	# defined symbols, whereas GNU nm marks them as "W".
9077	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9078	  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'
9079	else
9080	  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'
9081	fi
9082	aix_use_runtimelinking=no
9083
9084	# Test if we are trying to use run time linking or normal
9085	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9086	# need to do runtime linking.
9087	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9088	  for ld_flag in $LDFLAGS; do
9089	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9090	    aix_use_runtimelinking=yes
9091	    break
9092	  fi
9093	  done
9094	  ;;
9095	esac
9096
9097	exp_sym_flag='-bexport'
9098	no_entry_flag='-bnoentry'
9099      fi
9100
9101      # When large executables or shared objects are built, AIX ld can
9102      # have problems creating the table of contents.  If linking a library
9103      # or program results in "error TOC overflow" add -mminimal-toc to
9104      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9105      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107      archive_cmds=''
9108      hardcode_direct=yes
9109      hardcode_direct_absolute=yes
9110      hardcode_libdir_separator=':'
9111      link_all_deplibs=yes
9112      file_list_spec='${wl}-f,'
9113
9114      if test "$GCC" = yes; then
9115	case $host_os in aix4.[012]|aix4.[012].*)
9116	# We only want to do this on AIX 4.2 and lower, the check
9117	# below for broken collect2 doesn't work under 4.3+
9118	  collect2name=`${CC} -print-prog-name=collect2`
9119	  if test -f "$collect2name" &&
9120	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9121	  then
9122	  # We have reworked collect2
9123	  :
9124	  else
9125	  # We have old collect2
9126	  hardcode_direct=unsupported
9127	  # It fails to find uninstalled libraries when the uninstalled
9128	  # path is not listed in the libpath.  Setting hardcode_minus_L
9129	  # to unsupported forces relinking
9130	  hardcode_minus_L=yes
9131	  hardcode_libdir_flag_spec='-L$libdir'
9132	  hardcode_libdir_separator=
9133	  fi
9134	  ;;
9135	esac
9136	shared_flag='-shared'
9137	if test "$aix_use_runtimelinking" = yes; then
9138	  shared_flag="$shared_flag "'${wl}-G'
9139	fi
9140	link_all_deplibs=no
9141      else
9142	# not using gcc
9143	if test "$host_cpu" = ia64; then
9144	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145	# chokes on -Wl,-G. The following line is correct:
9146	  shared_flag='-G'
9147	else
9148	  if test "$aix_use_runtimelinking" = yes; then
9149	    shared_flag='${wl}-G'
9150	  else
9151	    shared_flag='${wl}-bM:SRE'
9152	  fi
9153	fi
9154      fi
9155
9156      export_dynamic_flag_spec='${wl}-bexpall'
9157      # It seems that -bexpall does not export symbols beginning with
9158      # underscore (_), so it is better to generate a list of symbols to export.
9159      always_export_symbols=yes
9160      if test "$aix_use_runtimelinking" = yes; then
9161	# Warning - without using the other runtime loading flags (-brtl),
9162	# -berok will link without error, but may produce a broken library.
9163	allow_undefined_flag='-berok'
9164        # Determine the default libpath from the value encoded in an
9165        # empty executable.
9166        if test "${lt_cv_aix_libpath+set}" = set; then
9167  aix_libpath=$lt_cv_aix_libpath
9168else
9169  if ${lt_cv_aix_libpath_+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174
9175int
9176main ()
9177{
9178
9179  ;
9180  return 0;
9181}
9182_ACEOF
9183if ac_fn_c_try_link "$LINENO"; then :
9184
9185  lt_aix_libpath_sed='
9186      /Import File Strings/,/^$/ {
9187	  /^0/ {
9188	      s/^0  *\([^ ]*\) *$/\1/
9189	      p
9190	  }
9191      }'
9192  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193  # Check for a 64-bit object if we didn't find anything.
9194  if test -z "$lt_cv_aix_libpath_"; then
9195    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196  fi
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200  if test -z "$lt_cv_aix_libpath_"; then
9201    lt_cv_aix_libpath_="/usr/lib:/lib"
9202  fi
9203
9204fi
9205
9206  aix_libpath=$lt_cv_aix_libpath_
9207fi
9208
9209        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9210        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"
9211      else
9212	if test "$host_cpu" = ia64; then
9213	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9214	  allow_undefined_flag="-z nodefs"
9215	  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"
9216	else
9217	 # Determine the default libpath from the value encoded in an
9218	 # empty executable.
9219	 if test "${lt_cv_aix_libpath+set}" = set; then
9220  aix_libpath=$lt_cv_aix_libpath
9221else
9222  if ${lt_cv_aix_libpath_+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227
9228int
9229main ()
9230{
9231
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236if ac_fn_c_try_link "$LINENO"; then :
9237
9238  lt_aix_libpath_sed='
9239      /Import File Strings/,/^$/ {
9240	  /^0/ {
9241	      s/^0  *\([^ ]*\) *$/\1/
9242	      p
9243	  }
9244      }'
9245  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9246  # Check for a 64-bit object if we didn't find anything.
9247  if test -z "$lt_cv_aix_libpath_"; then
9248    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249  fi
9250fi
9251rm -f core conftest.err conftest.$ac_objext \
9252    conftest$ac_exeext conftest.$ac_ext
9253  if test -z "$lt_cv_aix_libpath_"; then
9254    lt_cv_aix_libpath_="/usr/lib:/lib"
9255  fi
9256
9257fi
9258
9259  aix_libpath=$lt_cv_aix_libpath_
9260fi
9261
9262	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9263	  # Warning - without using the other run time loading flags,
9264	  # -berok will link without error, but may produce a broken library.
9265	  no_undefined_flag=' ${wl}-bernotok'
9266	  allow_undefined_flag=' ${wl}-berok'
9267	  if test "$with_gnu_ld" = yes; then
9268	    # We only use this code for GNU lds that support --whole-archive.
9269	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9270	  else
9271	    # Exported symbols can be pulled into shared objects from archives
9272	    whole_archive_flag_spec='$convenience'
9273	  fi
9274	  archive_cmds_need_lc=yes
9275	  # This is similar to how AIX traditionally builds its shared libraries.
9276	  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'
9277	fi
9278      fi
9279      ;;
9280
9281    amigaos*)
9282      case $host_cpu in
9283      powerpc)
9284            # see comment about AmigaOS4 .so support
9285            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286            archive_expsym_cmds=''
9287        ;;
9288      m68k)
9289            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)'
9290            hardcode_libdir_flag_spec='-L$libdir'
9291            hardcode_minus_L=yes
9292        ;;
9293      esac
9294      ;;
9295
9296    bsdi[45]*)
9297      export_dynamic_flag_spec=-rdynamic
9298      ;;
9299
9300    cygwin* | mingw* | pw32* | cegcc*)
9301      # When not using gcc, we currently assume that we are using
9302      # Microsoft Visual C++.
9303      # hardcode_libdir_flag_spec is actually meaningless, as there is
9304      # no search path for DLLs.
9305      case $cc_basename in
9306      cl*)
9307	# Native MSVC
9308	hardcode_libdir_flag_spec=' '
9309	allow_undefined_flag=unsupported
9310	always_export_symbols=yes
9311	file_list_spec='@'
9312	# Tell ltmain to make .lib files, not .a files.
9313	libext=lib
9314	# Tell ltmain to make .dll files, not .so files.
9315	shrext_cmds=".dll"
9316	# FIXME: Setting linknames here is a bad hack.
9317	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9318	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9320	  else
9321	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9322	  fi~
9323	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9324	  linknames='
9325	# The linker will not automatically build a static lib if we build a DLL.
9326	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9327	enable_shared_with_static_runtimes=yes
9328	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9329	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9330	# Don't use ranlib
9331	old_postinstall_cmds='chmod 644 $oldlib'
9332	postlink_cmds='lt_outputfile="@OUTPUT@"~
9333	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9334	  case $lt_outputfile in
9335	    *.exe|*.EXE) ;;
9336	    *)
9337	      lt_outputfile="$lt_outputfile.exe"
9338	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9339	      ;;
9340	  esac~
9341	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9342	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9343	    $RM "$lt_outputfile.manifest";
9344	  fi'
9345	;;
9346      *)
9347	# Assume MSVC wrapper
9348	hardcode_libdir_flag_spec=' '
9349	allow_undefined_flag=unsupported
9350	# Tell ltmain to make .lib files, not .a files.
9351	libext=lib
9352	# Tell ltmain to make .dll files, not .so files.
9353	shrext_cmds=".dll"
9354	# FIXME: Setting linknames here is a bad hack.
9355	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9356	# The linker will automatically build a .lib file if we build a DLL.
9357	old_archive_from_new_cmds='true'
9358	# FIXME: Should let the user specify the lib program.
9359	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9360	enable_shared_with_static_runtimes=yes
9361	;;
9362      esac
9363      ;;
9364
9365    darwin* | rhapsody*)
9366
9367
9368  archive_cmds_need_lc=no
9369  hardcode_direct=no
9370  hardcode_automatic=yes
9371  hardcode_shlibpath_var=unsupported
9372  if test "$lt_cv_ld_force_load" = "yes"; then
9373    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\"`'
9374
9375  else
9376    whole_archive_flag_spec=''
9377  fi
9378  link_all_deplibs=yes
9379  allow_undefined_flag="$_lt_dar_allow_undefined"
9380  case $cc_basename in
9381     ifort*) _lt_dar_can_shared=yes ;;
9382     *) _lt_dar_can_shared=$GCC ;;
9383  esac
9384  if test "$_lt_dar_can_shared" = "yes"; then
9385    output_verbose_link_cmd=func_echo_all
9386    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9387    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9388    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}"
9389    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}"
9390
9391  else
9392  ld_shlibs=no
9393  fi
9394
9395      ;;
9396
9397    dgux*)
9398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399      hardcode_libdir_flag_spec='-L$libdir'
9400      hardcode_shlibpath_var=no
9401      ;;
9402
9403    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9404    # support.  Future versions do this automatically, but an explicit c++rt0.o
9405    # does not break anything, and helps significantly (at the cost of a little
9406    # extra space).
9407    freebsd2.2*)
9408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9409      hardcode_libdir_flag_spec='-R$libdir'
9410      hardcode_direct=yes
9411      hardcode_shlibpath_var=no
9412      ;;
9413
9414    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9415    freebsd2.*)
9416      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417      hardcode_direct=yes
9418      hardcode_minus_L=yes
9419      hardcode_shlibpath_var=no
9420      ;;
9421
9422    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9423    freebsd* | dragonfly*)
9424      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425      hardcode_libdir_flag_spec='-R$libdir'
9426      hardcode_direct=yes
9427      hardcode_shlibpath_var=no
9428      ;;
9429
9430    hpux9*)
9431      if test "$GCC" = yes; then
9432	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'
9433      else
9434	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'
9435      fi
9436      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437      hardcode_libdir_separator=:
9438      hardcode_direct=yes
9439
9440      # hardcode_minus_L: Not really in the search PATH,
9441      # but as the default location of the library.
9442      hardcode_minus_L=yes
9443      export_dynamic_flag_spec='${wl}-E'
9444      ;;
9445
9446    hpux10*)
9447      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9448	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449      else
9450	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451      fi
9452      if test "$with_gnu_ld" = no; then
9453	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454	hardcode_libdir_separator=:
9455	hardcode_direct=yes
9456	hardcode_direct_absolute=yes
9457	export_dynamic_flag_spec='${wl}-E'
9458	# hardcode_minus_L: Not really in the search PATH,
9459	# but as the default location of the library.
9460	hardcode_minus_L=yes
9461      fi
9462      ;;
9463
9464    hpux11*)
9465      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9466	case $host_cpu in
9467	hppa*64*)
9468	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469	  ;;
9470	ia64*)
9471	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9472	  ;;
9473	*)
9474	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475	  ;;
9476	esac
9477      else
9478	case $host_cpu in
9479	hppa*64*)
9480	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481	  ;;
9482	ia64*)
9483	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9484	  ;;
9485	*)
9486
9487	  # Older versions of the 11.00 compiler do not understand -b yet
9488	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9489	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9490$as_echo_n "checking if $CC understands -b... " >&6; }
9491if ${lt_cv_prog_compiler__b+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  lt_cv_prog_compiler__b=no
9495   save_LDFLAGS="$LDFLAGS"
9496   LDFLAGS="$LDFLAGS -b"
9497   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9498   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9499     # The linker can only warn and ignore the option if not recognized
9500     # So say no if there are warnings
9501     if test -s conftest.err; then
9502       # Append any errors to the config.log.
9503       cat conftest.err 1>&5
9504       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9505       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506       if diff conftest.exp conftest.er2 >/dev/null; then
9507         lt_cv_prog_compiler__b=yes
9508       fi
9509     else
9510       lt_cv_prog_compiler__b=yes
9511     fi
9512   fi
9513   $RM -r conftest*
9514   LDFLAGS="$save_LDFLAGS"
9515
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9518$as_echo "$lt_cv_prog_compiler__b" >&6; }
9519
9520if test x"$lt_cv_prog_compiler__b" = xyes; then
9521    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9522else
9523    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9524fi
9525
9526	  ;;
9527	esac
9528      fi
9529      if test "$with_gnu_ld" = no; then
9530	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531	hardcode_libdir_separator=:
9532
9533	case $host_cpu in
9534	hppa*64*|ia64*)
9535	  hardcode_direct=no
9536	  hardcode_shlibpath_var=no
9537	  ;;
9538	*)
9539	  hardcode_direct=yes
9540	  hardcode_direct_absolute=yes
9541	  export_dynamic_flag_spec='${wl}-E'
9542
9543	  # hardcode_minus_L: Not really in the search PATH,
9544	  # but as the default location of the library.
9545	  hardcode_minus_L=yes
9546	  ;;
9547	esac
9548      fi
9549      ;;
9550
9551    irix5* | irix6* | nonstopux*)
9552      if test "$GCC" = yes; then
9553	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'
9554	# Try to use the -exported_symbol ld option, if it does not
9555	# work, assume that -exports_file does not work either and
9556	# implicitly export all symbols.
9557	# This should be the same for all languages, so no per-tag cache variable.
9558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9559$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9560if ${lt_cv_irix_exported_symbol+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  save_LDFLAGS="$LDFLAGS"
9564	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9565	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int foo (void) { return 0; }
9568_ACEOF
9569if ac_fn_c_try_link "$LINENO"; then :
9570  lt_cv_irix_exported_symbol=yes
9571else
9572  lt_cv_irix_exported_symbol=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext \
9575    conftest$ac_exeext conftest.$ac_ext
9576           LDFLAGS="$save_LDFLAGS"
9577fi
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9579$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9580	if test "$lt_cv_irix_exported_symbol" = yes; then
9581          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'
9582	fi
9583      else
9584	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'
9585	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'
9586      fi
9587      archive_cmds_need_lc='no'
9588      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589      hardcode_libdir_separator=:
9590      inherit_rpath=yes
9591      link_all_deplibs=yes
9592      ;;
9593
9594    netbsd* | netbsdelf*-gnu)
9595      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9597      else
9598	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9599      fi
9600      hardcode_libdir_flag_spec='-R$libdir'
9601      hardcode_direct=yes
9602      hardcode_shlibpath_var=no
9603      ;;
9604
9605    newsos6)
9606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607      hardcode_direct=yes
9608      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609      hardcode_libdir_separator=:
9610      hardcode_shlibpath_var=no
9611      ;;
9612
9613    *nto* | *qnx*)
9614      ;;
9615
9616    openbsd*)
9617      if test -f /usr/libexec/ld.so; then
9618	hardcode_direct=yes
9619	hardcode_shlibpath_var=no
9620	hardcode_direct_absolute=yes
9621	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9622	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9623	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9624	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625	  export_dynamic_flag_spec='${wl}-E'
9626	else
9627	  case $host_os in
9628	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9629	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630	     hardcode_libdir_flag_spec='-R$libdir'
9631	     ;;
9632	   *)
9633	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9634	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9635	     ;;
9636	  esac
9637	fi
9638      else
9639	ld_shlibs=no
9640      fi
9641      ;;
9642
9643    os2*)
9644      hardcode_libdir_flag_spec='-L$libdir'
9645      hardcode_minus_L=yes
9646      allow_undefined_flag=unsupported
9647      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'
9648      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9649      ;;
9650
9651    osf3*)
9652      if test "$GCC" = yes; then
9653	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9654	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'
9655      else
9656	allow_undefined_flag=' -expect_unresolved \*'
9657	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'
9658      fi
9659      archive_cmds_need_lc='no'
9660      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661      hardcode_libdir_separator=:
9662      ;;
9663
9664    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9665      if test "$GCC" = yes; then
9666	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9667	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'
9668	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669      else
9670	allow_undefined_flag=' -expect_unresolved \*'
9671	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'
9672	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~
9673	$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'
9674
9675	# Both c and cxx compiler support -rpath directly
9676	hardcode_libdir_flag_spec='-rpath $libdir'
9677      fi
9678      archive_cmds_need_lc='no'
9679      hardcode_libdir_separator=:
9680      ;;
9681
9682    solaris*)
9683      no_undefined_flag=' -z defs'
9684      if test "$GCC" = yes; then
9685	wlarc='${wl}'
9686	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9688	  $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'
9689      else
9690	case `$CC -V 2>&1` in
9691	*"Compilers 5.0"*)
9692	  wlarc=''
9693	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9696	  ;;
9697	*)
9698	  wlarc='${wl}'
9699	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9700	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9702	  ;;
9703	esac
9704      fi
9705      hardcode_libdir_flag_spec='-R$libdir'
9706      hardcode_shlibpath_var=no
9707      case $host_os in
9708      solaris2.[0-5] | solaris2.[0-5].*) ;;
9709      *)
9710	# The compiler driver will combine and reorder linker options,
9711	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9712	# but is careful enough not to reorder.
9713	# Supported since Solaris 2.6 (maybe 2.5.1?)
9714	if test "$GCC" = yes; then
9715	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9716	else
9717	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9718	fi
9719	;;
9720      esac
9721      link_all_deplibs=yes
9722      ;;
9723
9724    sunos4*)
9725      if test "x$host_vendor" = xsequent; then
9726	# Use $CC to link under sequent, because it throws in some extra .o
9727	# files that make .init and .fini sections work.
9728	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9729      else
9730	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9731      fi
9732      hardcode_libdir_flag_spec='-L$libdir'
9733      hardcode_direct=yes
9734      hardcode_minus_L=yes
9735      hardcode_shlibpath_var=no
9736      ;;
9737
9738    sysv4)
9739      case $host_vendor in
9740	sni)
9741	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742	  hardcode_direct=yes # is this really true???
9743	;;
9744	siemens)
9745	  ## LD is ld it makes a PLAMLIB
9746	  ## CC just makes a GrossModule.
9747	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9748	  reload_cmds='$CC -r -o $output$reload_objs'
9749	  hardcode_direct=no
9750        ;;
9751	motorola)
9752	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9754	;;
9755      esac
9756      runpath_var='LD_RUN_PATH'
9757      hardcode_shlibpath_var=no
9758      ;;
9759
9760    sysv4.3*)
9761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762      hardcode_shlibpath_var=no
9763      export_dynamic_flag_spec='-Bexport'
9764      ;;
9765
9766    sysv4*MP*)
9767      if test -d /usr/nec; then
9768	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769	hardcode_shlibpath_var=no
9770	runpath_var=LD_RUN_PATH
9771	hardcode_runpath_var=yes
9772	ld_shlibs=yes
9773      fi
9774      ;;
9775
9776    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9777      no_undefined_flag='${wl}-z,text'
9778      archive_cmds_need_lc=no
9779      hardcode_shlibpath_var=no
9780      runpath_var='LD_RUN_PATH'
9781
9782      if test "$GCC" = yes; then
9783	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785      else
9786	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788      fi
9789      ;;
9790
9791    sysv5* | sco3.2v5* | sco5v6*)
9792      # Note: We can NOT use -z defs as we might desire, because we do not
9793      # link with -lc, and that would cause any symbols used from libc to
9794      # always be unresolved, which means just about no library would
9795      # ever link correctly.  If we're not using GNU ld we use -z text
9796      # though, which does catch some bad symbols but isn't as heavy-handed
9797      # as -z defs.
9798      no_undefined_flag='${wl}-z,text'
9799      allow_undefined_flag='${wl}-z,nodefs'
9800      archive_cmds_need_lc=no
9801      hardcode_shlibpath_var=no
9802      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9803      hardcode_libdir_separator=':'
9804      link_all_deplibs=yes
9805      export_dynamic_flag_spec='${wl}-Bexport'
9806      runpath_var='LD_RUN_PATH'
9807
9808      if test "$GCC" = yes; then
9809	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811      else
9812	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9813	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814      fi
9815      ;;
9816
9817    uts4*)
9818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819      hardcode_libdir_flag_spec='-L$libdir'
9820      hardcode_shlibpath_var=no
9821      ;;
9822
9823    *)
9824      ld_shlibs=no
9825      ;;
9826    esac
9827
9828    if test x$host_vendor = xsni; then
9829      case $host in
9830      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9831	export_dynamic_flag_spec='${wl}-Blargedynsym'
9832	;;
9833      esac
9834    fi
9835  fi
9836
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9838$as_echo "$ld_shlibs" >&6; }
9839test "$ld_shlibs" = no && can_build_shared=no
9840
9841with_gnu_ld=$with_gnu_ld
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857#
9858# Do we need to explicitly link libc?
9859#
9860case "x$archive_cmds_need_lc" in
9861x|xyes)
9862  # Assume -lc should be added
9863  archive_cmds_need_lc=yes
9864
9865  if test "$enable_shared" = yes && test "$GCC" = yes; then
9866    case $archive_cmds in
9867    *'~'*)
9868      # FIXME: we may have to deal with multi-command sequences.
9869      ;;
9870    '$CC '*)
9871      # Test whether the compiler implicitly links with -lc since on some
9872      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9873      # to ld, don't add -lc before -lgcc.
9874      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9875$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9876if ${lt_cv_archive_cmds_need_lc+:} false; then :
9877  $as_echo_n "(cached) " >&6
9878else
9879  $RM conftest*
9880	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881
9882	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9883  (eval $ac_compile) 2>&5
9884  ac_status=$?
9885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9886  test $ac_status = 0; } 2>conftest.err; then
9887	  soname=conftest
9888	  lib=conftest
9889	  libobjs=conftest.$ac_objext
9890	  deplibs=
9891	  wl=$lt_prog_compiler_wl
9892	  pic_flag=$lt_prog_compiler_pic
9893	  compiler_flags=-v
9894	  linker_flags=-v
9895	  verstring=
9896	  output_objdir=.
9897	  libname=conftest
9898	  lt_save_allow_undefined_flag=$allow_undefined_flag
9899	  allow_undefined_flag=
9900	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9901  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9902  ac_status=$?
9903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9904  test $ac_status = 0; }
9905	  then
9906	    lt_cv_archive_cmds_need_lc=no
9907	  else
9908	    lt_cv_archive_cmds_need_lc=yes
9909	  fi
9910	  allow_undefined_flag=$lt_save_allow_undefined_flag
9911	else
9912	  cat conftest.err 1>&5
9913	fi
9914	$RM conftest*
9915
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9918$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9919      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9920      ;;
9921    esac
9922  fi
9923  ;;
9924esac
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10078$as_echo_n "checking dynamic linker characteristics... " >&6; }
10079
10080if test "$GCC" = yes; then
10081  case $host_os in
10082    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10083    *) lt_awk_arg="/^libraries:/" ;;
10084  esac
10085  case $host_os in
10086    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10087    *) lt_sed_strip_eq="s,=/,/,g" ;;
10088  esac
10089  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10090  case $lt_search_path_spec in
10091  *\;*)
10092    # if the path contains ";" then we assume it to be the separator
10093    # otherwise default to the standard path separator (i.e. ":") - it is
10094    # assumed that no part of a normal pathname contains ";" but that should
10095    # okay in the real world where ";" in dirpaths is itself problematic.
10096    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10097    ;;
10098  *)
10099    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10100    ;;
10101  esac
10102  # Ok, now we have the path, separated by spaces, we can step through it
10103  # and add multilib dir if necessary.
10104  lt_tmp_lt_search_path_spec=
10105  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10106  for lt_sys_path in $lt_search_path_spec; do
10107    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10108      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10109    else
10110      test -d "$lt_sys_path" && \
10111	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10112    fi
10113  done
10114  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10115BEGIN {RS=" "; FS="/|\n";} {
10116  lt_foo="";
10117  lt_count=0;
10118  for (lt_i = NF; lt_i > 0; lt_i--) {
10119    if ($lt_i != "" && $lt_i != ".") {
10120      if ($lt_i == "..") {
10121        lt_count++;
10122      } else {
10123        if (lt_count == 0) {
10124          lt_foo="/" $lt_i lt_foo;
10125        } else {
10126          lt_count--;
10127        }
10128      }
10129    }
10130  }
10131  if (lt_foo != "") { lt_freq[lt_foo]++; }
10132  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10133}'`
10134  # AWK program above erroneously prepends '/' to C:/dos/paths
10135  # for these hosts.
10136  case $host_os in
10137    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10138      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10139  esac
10140  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10141else
10142  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10143fi
10144library_names_spec=
10145libname_spec='lib$name'
10146soname_spec=
10147shrext_cmds=".so"
10148postinstall_cmds=
10149postuninstall_cmds=
10150finish_cmds=
10151finish_eval=
10152shlibpath_var=
10153shlibpath_overrides_runpath=unknown
10154version_type=none
10155dynamic_linker="$host_os ld.so"
10156sys_lib_dlsearch_path_spec="/lib /usr/lib"
10157need_lib_prefix=unknown
10158hardcode_into_libs=no
10159
10160# when you set need_version to no, make sure it does not cause -set_version
10161# flags to be left without arguments
10162need_version=unknown
10163
10164case $host_os in
10165aix3*)
10166  version_type=linux # correct to gnu/linux during the next big refactor
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10168  shlibpath_var=LIBPATH
10169
10170  # AIX 3 has no versioning support, so we append a major version to the name.
10171  soname_spec='${libname}${release}${shared_ext}$major'
10172  ;;
10173
10174aix[4-9]*)
10175  version_type=linux # correct to gnu/linux during the next big refactor
10176  need_lib_prefix=no
10177  need_version=no
10178  hardcode_into_libs=yes
10179  if test "$host_cpu" = ia64; then
10180    # AIX 5 supports IA64
10181    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10182    shlibpath_var=LD_LIBRARY_PATH
10183  else
10184    # With GCC up to 2.95.x, collect2 would create an import file
10185    # for dependence libraries.  The import file would start with
10186    # the line `#! .'.  This would cause the generated library to
10187    # depend on `.', always an invalid library.  This was fixed in
10188    # development snapshots of GCC prior to 3.0.
10189    case $host_os in
10190      aix4 | aix4.[01] | aix4.[01].*)
10191      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10192	   echo ' yes '
10193	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10194	:
10195      else
10196	can_build_shared=no
10197      fi
10198      ;;
10199    esac
10200    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10201    # soname into executable. Probably we can add versioning support to
10202    # collect2, so additional links can be useful in future.
10203    if test "$aix_use_runtimelinking" = yes; then
10204      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10205      # instead of lib<name>.a to let people know that these are not
10206      # typical AIX shared libraries.
10207      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208    else
10209      # We preserve .a as extension for shared libraries through AIX4.2
10210      # and later when we are not doing run time linking.
10211      library_names_spec='${libname}${release}.a $libname.a'
10212      soname_spec='${libname}${release}${shared_ext}$major'
10213    fi
10214    shlibpath_var=LIBPATH
10215  fi
10216  ;;
10217
10218amigaos*)
10219  case $host_cpu in
10220  powerpc)
10221    # Since July 2007 AmigaOS4 officially supports .so libraries.
10222    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10223    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224    ;;
10225  m68k)
10226    library_names_spec='$libname.ixlibrary $libname.a'
10227    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10228    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'
10229    ;;
10230  esac
10231  ;;
10232
10233beos*)
10234  library_names_spec='${libname}${shared_ext}'
10235  dynamic_linker="$host_os ld.so"
10236  shlibpath_var=LIBRARY_PATH
10237  ;;
10238
10239bsdi[45]*)
10240  version_type=linux # correct to gnu/linux during the next big refactor
10241  need_version=no
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243  soname_spec='${libname}${release}${shared_ext}$major'
10244  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10245  shlibpath_var=LD_LIBRARY_PATH
10246  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10247  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10248  # the default ld.so.conf also contains /usr/contrib/lib and
10249  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10250  # libtool to hard-code these into programs
10251  ;;
10252
10253cygwin* | mingw* | pw32* | cegcc*)
10254  version_type=windows
10255  shrext_cmds=".dll"
10256  need_version=no
10257  need_lib_prefix=no
10258
10259  case $GCC,$cc_basename in
10260  yes,*)
10261    # gcc
10262    library_names_spec='$libname.dll.a'
10263    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10264    postinstall_cmds='base_file=`basename \${file}`~
10265      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10266      dldir=$destdir/`dirname \$dlpath`~
10267      test -d \$dldir || mkdir -p \$dldir~
10268      $install_prog $dir/$dlname \$dldir/$dlname~
10269      chmod a+x \$dldir/$dlname~
10270      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10271        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10272      fi'
10273    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10274      dlpath=$dir/\$dldll~
10275       $RM \$dlpath'
10276    shlibpath_overrides_runpath=yes
10277
10278    case $host_os in
10279    cygwin*)
10280      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10281      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282
10283      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10284      ;;
10285    mingw* | cegcc*)
10286      # MinGW DLLs use traditional 'lib' prefix
10287      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10288      ;;
10289    pw32*)
10290      # pw32 DLLs use 'pw' prefix rather than 'lib'
10291      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10292      ;;
10293    esac
10294    dynamic_linker='Win32 ld.exe'
10295    ;;
10296
10297  *,cl*)
10298    # Native MSVC
10299    libname_spec='$name'
10300    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301    library_names_spec='${libname}.dll.lib'
10302
10303    case $build_os in
10304    mingw*)
10305      sys_lib_search_path_spec=
10306      lt_save_ifs=$IFS
10307      IFS=';'
10308      for lt_path in $LIB
10309      do
10310        IFS=$lt_save_ifs
10311        # Let DOS variable expansion print the short 8.3 style file name.
10312        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10313        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10314      done
10315      IFS=$lt_save_ifs
10316      # Convert to MSYS style.
10317      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10318      ;;
10319    cygwin*)
10320      # Convert to unix form, then to dos form, then back to unix form
10321      # but this time dos style (no spaces!) so that the unix form looks
10322      # like /cygdrive/c/PROGRA~1:/cygdr...
10323      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10324      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10325      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10326      ;;
10327    *)
10328      sys_lib_search_path_spec="$LIB"
10329      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10330        # It is most probably a Windows format PATH.
10331        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10332      else
10333        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10334      fi
10335      # FIXME: find the short name or the path components, as spaces are
10336      # common. (e.g. "Program Files" -> "PROGRA~1")
10337      ;;
10338    esac
10339
10340    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10341    postinstall_cmds='base_file=`basename \${file}`~
10342      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10343      dldir=$destdir/`dirname \$dlpath`~
10344      test -d \$dldir || mkdir -p \$dldir~
10345      $install_prog $dir/$dlname \$dldir/$dlname'
10346    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10347      dlpath=$dir/\$dldll~
10348       $RM \$dlpath'
10349    shlibpath_overrides_runpath=yes
10350    dynamic_linker='Win32 link.exe'
10351    ;;
10352
10353  *)
10354    # Assume MSVC wrapper
10355    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10356    dynamic_linker='Win32 ld.exe'
10357    ;;
10358  esac
10359  # FIXME: first we should search . and the directory the executable is in
10360  shlibpath_var=PATH
10361  ;;
10362
10363darwin* | rhapsody*)
10364  dynamic_linker="$host_os dyld"
10365  version_type=darwin
10366  need_lib_prefix=no
10367  need_version=no
10368  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10369  soname_spec='${libname}${release}${major}$shared_ext'
10370  shlibpath_overrides_runpath=yes
10371  shlibpath_var=DYLD_LIBRARY_PATH
10372  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10373
10374  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10375  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10376  ;;
10377
10378dgux*)
10379  version_type=linux # correct to gnu/linux during the next big refactor
10380  need_lib_prefix=no
10381  need_version=no
10382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10383  soname_spec='${libname}${release}${shared_ext}$major'
10384  shlibpath_var=LD_LIBRARY_PATH
10385  ;;
10386
10387freebsd* | dragonfly*)
10388  # DragonFly does not have aout.  When/if they implement a new
10389  # versioning mechanism, adjust this.
10390  if test -x /usr/bin/objformat; then
10391    objformat=`/usr/bin/objformat`
10392  else
10393    case $host_os in
10394    freebsd[23].*) objformat=aout ;;
10395    *) objformat=elf ;;
10396    esac
10397  fi
10398  version_type=freebsd-$objformat
10399  case $version_type in
10400    freebsd-elf*)
10401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10402      need_version=no
10403      need_lib_prefix=no
10404      ;;
10405    freebsd-*)
10406      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10407      need_version=yes
10408      ;;
10409  esac
10410  shlibpath_var=LD_LIBRARY_PATH
10411  case $host_os in
10412  freebsd2.*)
10413    shlibpath_overrides_runpath=yes
10414    ;;
10415  freebsd3.[01]* | freebsdelf3.[01]*)
10416    shlibpath_overrides_runpath=yes
10417    hardcode_into_libs=yes
10418    ;;
10419  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10420  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10421    shlibpath_overrides_runpath=no
10422    hardcode_into_libs=yes
10423    ;;
10424  *) # from 4.6 on, and DragonFly
10425    shlibpath_overrides_runpath=yes
10426    hardcode_into_libs=yes
10427    ;;
10428  esac
10429  ;;
10430
10431haiku*)
10432  version_type=linux # correct to gnu/linux during the next big refactor
10433  need_lib_prefix=no
10434  need_version=no
10435  dynamic_linker="$host_os runtime_loader"
10436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  shlibpath_var=LIBRARY_PATH
10439  shlibpath_overrides_runpath=yes
10440  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10441  hardcode_into_libs=yes
10442  ;;
10443
10444hpux9* | hpux10* | hpux11*)
10445  # Give a soname corresponding to the major version so that dld.sl refuses to
10446  # link against other versions.
10447  version_type=sunos
10448  need_lib_prefix=no
10449  need_version=no
10450  case $host_cpu in
10451  ia64*)
10452    shrext_cmds='.so'
10453    hardcode_into_libs=yes
10454    dynamic_linker="$host_os dld.so"
10455    shlibpath_var=LD_LIBRARY_PATH
10456    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458    soname_spec='${libname}${release}${shared_ext}$major'
10459    if test "X$HPUX_IA64_MODE" = X32; then
10460      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10461    else
10462      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10463    fi
10464    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10465    ;;
10466  hppa*64*)
10467    shrext_cmds='.sl'
10468    hardcode_into_libs=yes
10469    dynamic_linker="$host_os dld.sl"
10470    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10471    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473    soname_spec='${libname}${release}${shared_ext}$major'
10474    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10475    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10476    ;;
10477  *)
10478    shrext_cmds='.sl'
10479    dynamic_linker="$host_os dld.sl"
10480    shlibpath_var=SHLIB_PATH
10481    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10482    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483    soname_spec='${libname}${release}${shared_ext}$major'
10484    ;;
10485  esac
10486  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10487  postinstall_cmds='chmod 555 $lib'
10488  # or fails outright, so override atomically:
10489  install_override_mode=555
10490  ;;
10491
10492interix[3-9]*)
10493  version_type=linux # correct to gnu/linux during the next big refactor
10494  need_lib_prefix=no
10495  need_version=no
10496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10497  soname_spec='${libname}${release}${shared_ext}$major'
10498  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10499  shlibpath_var=LD_LIBRARY_PATH
10500  shlibpath_overrides_runpath=no
10501  hardcode_into_libs=yes
10502  ;;
10503
10504irix5* | irix6* | nonstopux*)
10505  case $host_os in
10506    nonstopux*) version_type=nonstopux ;;
10507    *)
10508	if test "$lt_cv_prog_gnu_ld" = yes; then
10509		version_type=linux # correct to gnu/linux during the next big refactor
10510	else
10511		version_type=irix
10512	fi ;;
10513  esac
10514  need_lib_prefix=no
10515  need_version=no
10516  soname_spec='${libname}${release}${shared_ext}$major'
10517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10518  case $host_os in
10519  irix5* | nonstopux*)
10520    libsuff= shlibsuff=
10521    ;;
10522  *)
10523    case $LD in # libtool.m4 will add one of these switches to LD
10524    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10525      libsuff= shlibsuff= libmagic=32-bit;;
10526    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10527      libsuff=32 shlibsuff=N32 libmagic=N32;;
10528    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10529      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10530    *) libsuff= shlibsuff= libmagic=never-match;;
10531    esac
10532    ;;
10533  esac
10534  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10535  shlibpath_overrides_runpath=no
10536  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10537  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10538  hardcode_into_libs=yes
10539  ;;
10540
10541# No shared lib support for Linux oldld, aout, or coff.
10542linux*oldld* | linux*aout* | linux*coff*)
10543  dynamic_linker=no
10544  ;;
10545
10546# This must be glibc/ELF.
10547linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10548  version_type=linux # correct to gnu/linux during the next big refactor
10549  need_lib_prefix=no
10550  need_version=no
10551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552  soname_spec='${libname}${release}${shared_ext}$major'
10553  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10554  shlibpath_var=LD_LIBRARY_PATH
10555  shlibpath_overrides_runpath=no
10556
10557  # Some binutils ld are patched to set DT_RUNPATH
10558  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10559  $as_echo_n "(cached) " >&6
10560else
10561  lt_cv_shlibpath_overrides_runpath=no
10562    save_LDFLAGS=$LDFLAGS
10563    save_libdir=$libdir
10564    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10565	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568
10569int
10570main ()
10571{
10572
10573  ;
10574  return 0;
10575}
10576_ACEOF
10577if ac_fn_c_try_link "$LINENO"; then :
10578  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10579  lt_cv_shlibpath_overrides_runpath=yes
10580fi
10581fi
10582rm -f core conftest.err conftest.$ac_objext \
10583    conftest$ac_exeext conftest.$ac_ext
10584    LDFLAGS=$save_LDFLAGS
10585    libdir=$save_libdir
10586
10587fi
10588
10589  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10590
10591  # This implies no fast_install, which is unacceptable.
10592  # Some rework will be needed to allow for fast_install
10593  # before this can be enabled.
10594  hardcode_into_libs=yes
10595
10596  # Append ld.so.conf contents to the search path
10597  if test -f /etc/ld.so.conf; then
10598    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' ' '`
10599    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10600  fi
10601
10602  # We used to test for /lib/ld.so.1 and disable shared libraries on
10603  # powerpc, because MkLinux only supported shared libraries with the
10604  # GNU dynamic linker.  Since this was broken with cross compilers,
10605  # most powerpc-linux boxes support dynamic linking these days and
10606  # people can always --disable-shared, the test was removed, and we
10607  # assume the GNU/Linux dynamic linker is in use.
10608  dynamic_linker='GNU/Linux ld.so'
10609  ;;
10610
10611netbsdelf*-gnu)
10612  version_type=linux
10613  need_lib_prefix=no
10614  need_version=no
10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10616  soname_spec='${libname}${release}${shared_ext}$major'
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=no
10619  hardcode_into_libs=yes
10620  dynamic_linker='NetBSD ld.elf_so'
10621  ;;
10622
10623netbsd*)
10624  version_type=sunos
10625  need_lib_prefix=no
10626  need_version=no
10627  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10628    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10630    dynamic_linker='NetBSD (a.out) ld.so'
10631  else
10632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633    soname_spec='${libname}${release}${shared_ext}$major'
10634    dynamic_linker='NetBSD ld.elf_so'
10635  fi
10636  shlibpath_var=LD_LIBRARY_PATH
10637  shlibpath_overrides_runpath=yes
10638  hardcode_into_libs=yes
10639  ;;
10640
10641newsos6)
10642  version_type=linux # correct to gnu/linux during the next big refactor
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  shlibpath_overrides_runpath=yes
10646  ;;
10647
10648*nto* | *qnx*)
10649  version_type=qnx
10650  need_lib_prefix=no
10651  need_version=no
10652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653  soname_spec='${libname}${release}${shared_ext}$major'
10654  shlibpath_var=LD_LIBRARY_PATH
10655  shlibpath_overrides_runpath=no
10656  hardcode_into_libs=yes
10657  dynamic_linker='ldqnx.so'
10658  ;;
10659
10660openbsd*)
10661  version_type=sunos
10662  sys_lib_dlsearch_path_spec="/usr/lib"
10663  need_lib_prefix=no
10664  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10665  case $host_os in
10666    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10667    *)				need_version=no  ;;
10668  esac
10669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10673    case $host_os in
10674      openbsd2.[89] | openbsd2.[89].*)
10675	shlibpath_overrides_runpath=no
10676	;;
10677      *)
10678	shlibpath_overrides_runpath=yes
10679	;;
10680      esac
10681  else
10682    shlibpath_overrides_runpath=yes
10683  fi
10684  ;;
10685
10686os2*)
10687  libname_spec='$name'
10688  shrext_cmds=".dll"
10689  need_lib_prefix=no
10690  library_names_spec='$libname${shared_ext} $libname.a'
10691  dynamic_linker='OS/2 ld.exe'
10692  shlibpath_var=LIBPATH
10693  ;;
10694
10695osf3* | osf4* | osf5*)
10696  version_type=osf
10697  need_lib_prefix=no
10698  need_version=no
10699  soname_spec='${libname}${release}${shared_ext}$major'
10700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10703  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10704  ;;
10705
10706rdos*)
10707  dynamic_linker=no
10708  ;;
10709
10710solaris*)
10711  version_type=linux # correct to gnu/linux during the next big refactor
10712  need_lib_prefix=no
10713  need_version=no
10714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715  soname_spec='${libname}${release}${shared_ext}$major'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  shlibpath_overrides_runpath=yes
10718  hardcode_into_libs=yes
10719  # ldd complains unless libraries are executable
10720  postinstall_cmds='chmod +x $lib'
10721  ;;
10722
10723sunos4*)
10724  version_type=sunos
10725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10726  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10727  shlibpath_var=LD_LIBRARY_PATH
10728  shlibpath_overrides_runpath=yes
10729  if test "$with_gnu_ld" = yes; then
10730    need_lib_prefix=no
10731  fi
10732  need_version=yes
10733  ;;
10734
10735sysv4 | sysv4.3*)
10736  version_type=linux # correct to gnu/linux during the next big refactor
10737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738  soname_spec='${libname}${release}${shared_ext}$major'
10739  shlibpath_var=LD_LIBRARY_PATH
10740  case $host_vendor in
10741    sni)
10742      shlibpath_overrides_runpath=no
10743      need_lib_prefix=no
10744      runpath_var=LD_RUN_PATH
10745      ;;
10746    siemens)
10747      need_lib_prefix=no
10748      ;;
10749    motorola)
10750      need_lib_prefix=no
10751      need_version=no
10752      shlibpath_overrides_runpath=no
10753      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10754      ;;
10755  esac
10756  ;;
10757
10758sysv4*MP*)
10759  if test -d /usr/nec ;then
10760    version_type=linux # correct to gnu/linux during the next big refactor
10761    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10762    soname_spec='$libname${shared_ext}.$major'
10763    shlibpath_var=LD_LIBRARY_PATH
10764  fi
10765  ;;
10766
10767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10768  version_type=freebsd-elf
10769  need_lib_prefix=no
10770  need_version=no
10771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10772  soname_spec='${libname}${release}${shared_ext}$major'
10773  shlibpath_var=LD_LIBRARY_PATH
10774  shlibpath_overrides_runpath=yes
10775  hardcode_into_libs=yes
10776  if test "$with_gnu_ld" = yes; then
10777    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10778  else
10779    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10780    case $host_os in
10781      sco3.2v5*)
10782        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10783	;;
10784    esac
10785  fi
10786  sys_lib_dlsearch_path_spec='/usr/lib'
10787  ;;
10788
10789tpf*)
10790  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10791  version_type=linux # correct to gnu/linux during the next big refactor
10792  need_lib_prefix=no
10793  need_version=no
10794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795  shlibpath_var=LD_LIBRARY_PATH
10796  shlibpath_overrides_runpath=no
10797  hardcode_into_libs=yes
10798  ;;
10799
10800uts4*)
10801  version_type=linux # correct to gnu/linux during the next big refactor
10802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803  soname_spec='${libname}${release}${shared_ext}$major'
10804  shlibpath_var=LD_LIBRARY_PATH
10805  ;;
10806
10807*)
10808  dynamic_linker=no
10809  ;;
10810esac
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10812$as_echo "$dynamic_linker" >&6; }
10813test "$dynamic_linker" = no && can_build_shared=no
10814
10815variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10816if test "$GCC" = yes; then
10817  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10818fi
10819
10820if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10821  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10822fi
10823if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10824  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10825fi
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10919$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10920hardcode_action=
10921if test -n "$hardcode_libdir_flag_spec" ||
10922   test -n "$runpath_var" ||
10923   test "X$hardcode_automatic" = "Xyes" ; then
10924
10925  # We can hardcode non-existent directories.
10926  if test "$hardcode_direct" != no &&
10927     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10928     # have to relink, otherwise we might link with an installed library
10929     # when we should be linking with a yet-to-be-installed one
10930     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10931     test "$hardcode_minus_L" != no; then
10932    # Linking always hardcodes the temporary library directory.
10933    hardcode_action=relink
10934  else
10935    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10936    hardcode_action=immediate
10937  fi
10938else
10939  # We cannot hardcode anything, or else we can only hardcode existing
10940  # directories.
10941  hardcode_action=unsupported
10942fi
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10944$as_echo "$hardcode_action" >&6; }
10945
10946if test "$hardcode_action" = relink ||
10947   test "$inherit_rpath" = yes; then
10948  # Fast installation is not supported
10949  enable_fast_install=no
10950elif test "$shlibpath_overrides_runpath" = yes ||
10951     test "$enable_shared" = no; then
10952  # Fast installation is not necessary
10953  enable_fast_install=needless
10954fi
10955
10956
10957
10958
10959
10960
10961  if test "x$enable_dlopen" != xyes; then
10962  enable_dlopen=unknown
10963  enable_dlopen_self=unknown
10964  enable_dlopen_self_static=unknown
10965else
10966  lt_cv_dlopen=no
10967  lt_cv_dlopen_libs=
10968
10969  case $host_os in
10970  beos*)
10971    lt_cv_dlopen="load_add_on"
10972    lt_cv_dlopen_libs=
10973    lt_cv_dlopen_self=yes
10974    ;;
10975
10976  mingw* | pw32* | cegcc*)
10977    lt_cv_dlopen="LoadLibrary"
10978    lt_cv_dlopen_libs=
10979    ;;
10980
10981  cygwin*)
10982    lt_cv_dlopen="dlopen"
10983    lt_cv_dlopen_libs=
10984    ;;
10985
10986  darwin*)
10987  # if libdl is installed we need to link against it
10988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10989$as_echo_n "checking for dlopen in -ldl... " >&6; }
10990if ${ac_cv_lib_dl_dlopen+:} false; then :
10991  $as_echo_n "(cached) " >&6
10992else
10993  ac_check_lib_save_LIBS=$LIBS
10994LIBS="-ldl  $LIBS"
10995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997
10998/* Override any GCC internal prototype to avoid an error.
10999   Use char because int might match the return type of a GCC
11000   builtin and then its argument prototype would still apply.  */
11001#ifdef __cplusplus
11002extern "C"
11003#endif
11004char dlopen ();
11005int
11006main ()
11007{
11008return dlopen ();
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014  ac_cv_lib_dl_dlopen=yes
11015else
11016  ac_cv_lib_dl_dlopen=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext \
11019    conftest$ac_exeext conftest.$ac_ext
11020LIBS=$ac_check_lib_save_LIBS
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11023$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11024if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11025  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026else
11027
11028    lt_cv_dlopen="dyld"
11029    lt_cv_dlopen_libs=
11030    lt_cv_dlopen_self=yes
11031
11032fi
11033
11034    ;;
11035
11036  *)
11037    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11038if test "x$ac_cv_func_shl_load" = xyes; then :
11039  lt_cv_dlopen="shl_load"
11040else
11041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11042$as_echo_n "checking for shl_load in -ldld... " >&6; }
11043if ${ac_cv_lib_dld_shl_load+:} false; then :
11044  $as_echo_n "(cached) " >&6
11045else
11046  ac_check_lib_save_LIBS=$LIBS
11047LIBS="-ldld  $LIBS"
11048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h.  */
11050
11051/* Override any GCC internal prototype to avoid an error.
11052   Use char because int might match the return type of a GCC
11053   builtin and then its argument prototype would still apply.  */
11054#ifdef __cplusplus
11055extern "C"
11056#endif
11057char shl_load ();
11058int
11059main ()
11060{
11061return shl_load ();
11062  ;
11063  return 0;
11064}
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067  ac_cv_lib_dld_shl_load=yes
11068else
11069  ac_cv_lib_dld_shl_load=no
11070fi
11071rm -f core conftest.err conftest.$ac_objext \
11072    conftest$ac_exeext conftest.$ac_ext
11073LIBS=$ac_check_lib_save_LIBS
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11076$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11077if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11078  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11079else
11080  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11081if test "x$ac_cv_func_dlopen" = xyes; then :
11082  lt_cv_dlopen="dlopen"
11083else
11084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11085$as_echo_n "checking for dlopen in -ldl... " >&6; }
11086if ${ac_cv_lib_dl_dlopen+:} false; then :
11087  $as_echo_n "(cached) " >&6
11088else
11089  ac_check_lib_save_LIBS=$LIBS
11090LIBS="-ldl  $LIBS"
11091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h.  */
11093
11094/* Override any GCC internal prototype to avoid an error.
11095   Use char because int might match the return type of a GCC
11096   builtin and then its argument prototype would still apply.  */
11097#ifdef __cplusplus
11098extern "C"
11099#endif
11100char dlopen ();
11101int
11102main ()
11103{
11104return dlopen ();
11105  ;
11106  return 0;
11107}
11108_ACEOF
11109if ac_fn_c_try_link "$LINENO"; then :
11110  ac_cv_lib_dl_dlopen=yes
11111else
11112  ac_cv_lib_dl_dlopen=no
11113fi
11114rm -f core conftest.err conftest.$ac_objext \
11115    conftest$ac_exeext conftest.$ac_ext
11116LIBS=$ac_check_lib_save_LIBS
11117fi
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11119$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11120if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11121  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11122else
11123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11124$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11125if ${ac_cv_lib_svld_dlopen+:} false; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  ac_check_lib_save_LIBS=$LIBS
11129LIBS="-lsvld  $LIBS"
11130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h.  */
11132
11133/* Override any GCC internal prototype to avoid an error.
11134   Use char because int might match the return type of a GCC
11135   builtin and then its argument prototype would still apply.  */
11136#ifdef __cplusplus
11137extern "C"
11138#endif
11139char dlopen ();
11140int
11141main ()
11142{
11143return dlopen ();
11144  ;
11145  return 0;
11146}
11147_ACEOF
11148if ac_fn_c_try_link "$LINENO"; then :
11149  ac_cv_lib_svld_dlopen=yes
11150else
11151  ac_cv_lib_svld_dlopen=no
11152fi
11153rm -f core conftest.err conftest.$ac_objext \
11154    conftest$ac_exeext conftest.$ac_ext
11155LIBS=$ac_check_lib_save_LIBS
11156fi
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11158$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11159if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11160  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11161else
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11163$as_echo_n "checking for dld_link in -ldld... " >&6; }
11164if ${ac_cv_lib_dld_dld_link+:} false; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  ac_check_lib_save_LIBS=$LIBS
11168LIBS="-ldld  $LIBS"
11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h.  */
11171
11172/* Override any GCC internal prototype to avoid an error.
11173   Use char because int might match the return type of a GCC
11174   builtin and then its argument prototype would still apply.  */
11175#ifdef __cplusplus
11176extern "C"
11177#endif
11178char dld_link ();
11179int
11180main ()
11181{
11182return dld_link ();
11183  ;
11184  return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_link "$LINENO"; then :
11188  ac_cv_lib_dld_dld_link=yes
11189else
11190  ac_cv_lib_dld_dld_link=no
11191fi
11192rm -f core conftest.err conftest.$ac_objext \
11193    conftest$ac_exeext conftest.$ac_ext
11194LIBS=$ac_check_lib_save_LIBS
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11197$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11198if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11199  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11200fi
11201
11202
11203fi
11204
11205
11206fi
11207
11208
11209fi
11210
11211
11212fi
11213
11214
11215fi
11216
11217    ;;
11218  esac
11219
11220  if test "x$lt_cv_dlopen" != xno; then
11221    enable_dlopen=yes
11222  else
11223    enable_dlopen=no
11224  fi
11225
11226  case $lt_cv_dlopen in
11227  dlopen)
11228    save_CPPFLAGS="$CPPFLAGS"
11229    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11230
11231    save_LDFLAGS="$LDFLAGS"
11232    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11233
11234    save_LIBS="$LIBS"
11235    LIBS="$lt_cv_dlopen_libs $LIBS"
11236
11237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11238$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11239if ${lt_cv_dlopen_self+:} false; then :
11240  $as_echo_n "(cached) " >&6
11241else
11242  	  if test "$cross_compiling" = yes; then :
11243  lt_cv_dlopen_self=cross
11244else
11245  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11246  lt_status=$lt_dlunknown
11247  cat > conftest.$ac_ext <<_LT_EOF
11248#line $LINENO "configure"
11249#include "confdefs.h"
11250
11251#if HAVE_DLFCN_H
11252#include <dlfcn.h>
11253#endif
11254
11255#include <stdio.h>
11256
11257#ifdef RTLD_GLOBAL
11258#  define LT_DLGLOBAL		RTLD_GLOBAL
11259#else
11260#  ifdef DL_GLOBAL
11261#    define LT_DLGLOBAL		DL_GLOBAL
11262#  else
11263#    define LT_DLGLOBAL		0
11264#  endif
11265#endif
11266
11267/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11268   find out it does not work in some platform. */
11269#ifndef LT_DLLAZY_OR_NOW
11270#  ifdef RTLD_LAZY
11271#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11272#  else
11273#    ifdef DL_LAZY
11274#      define LT_DLLAZY_OR_NOW		DL_LAZY
11275#    else
11276#      ifdef RTLD_NOW
11277#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11278#      else
11279#        ifdef DL_NOW
11280#          define LT_DLLAZY_OR_NOW	DL_NOW
11281#        else
11282#          define LT_DLLAZY_OR_NOW	0
11283#        endif
11284#      endif
11285#    endif
11286#  endif
11287#endif
11288
11289/* When -fvisbility=hidden is used, assume the code has been annotated
11290   correspondingly for the symbols needed.  */
11291#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11292int fnord () __attribute__((visibility("default")));
11293#endif
11294
11295int fnord () { return 42; }
11296int main ()
11297{
11298  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11299  int status = $lt_dlunknown;
11300
11301  if (self)
11302    {
11303      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11304      else
11305        {
11306	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11307          else puts (dlerror ());
11308	}
11309      /* dlclose (self); */
11310    }
11311  else
11312    puts (dlerror ());
11313
11314  return status;
11315}
11316_LT_EOF
11317  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11318  (eval $ac_link) 2>&5
11319  ac_status=$?
11320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11322    (./conftest; exit; ) >&5 2>/dev/null
11323    lt_status=$?
11324    case x$lt_status in
11325      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11326      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11327      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11328    esac
11329  else :
11330    # compilation failed
11331    lt_cv_dlopen_self=no
11332  fi
11333fi
11334rm -fr conftest*
11335
11336
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11339$as_echo "$lt_cv_dlopen_self" >&6; }
11340
11341    if test "x$lt_cv_dlopen_self" = xyes; then
11342      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11343      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11344$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11345if ${lt_cv_dlopen_self_static+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  	  if test "$cross_compiling" = yes; then :
11349  lt_cv_dlopen_self_static=cross
11350else
11351  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11352  lt_status=$lt_dlunknown
11353  cat > conftest.$ac_ext <<_LT_EOF
11354#line $LINENO "configure"
11355#include "confdefs.h"
11356
11357#if HAVE_DLFCN_H
11358#include <dlfcn.h>
11359#endif
11360
11361#include <stdio.h>
11362
11363#ifdef RTLD_GLOBAL
11364#  define LT_DLGLOBAL		RTLD_GLOBAL
11365#else
11366#  ifdef DL_GLOBAL
11367#    define LT_DLGLOBAL		DL_GLOBAL
11368#  else
11369#    define LT_DLGLOBAL		0
11370#  endif
11371#endif
11372
11373/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11374   find out it does not work in some platform. */
11375#ifndef LT_DLLAZY_OR_NOW
11376#  ifdef RTLD_LAZY
11377#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11378#  else
11379#    ifdef DL_LAZY
11380#      define LT_DLLAZY_OR_NOW		DL_LAZY
11381#    else
11382#      ifdef RTLD_NOW
11383#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11384#      else
11385#        ifdef DL_NOW
11386#          define LT_DLLAZY_OR_NOW	DL_NOW
11387#        else
11388#          define LT_DLLAZY_OR_NOW	0
11389#        endif
11390#      endif
11391#    endif
11392#  endif
11393#endif
11394
11395/* When -fvisbility=hidden is used, assume the code has been annotated
11396   correspondingly for the symbols needed.  */
11397#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11398int fnord () __attribute__((visibility("default")));
11399#endif
11400
11401int fnord () { return 42; }
11402int main ()
11403{
11404  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11405  int status = $lt_dlunknown;
11406
11407  if (self)
11408    {
11409      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11410      else
11411        {
11412	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11413          else puts (dlerror ());
11414	}
11415      /* dlclose (self); */
11416    }
11417  else
11418    puts (dlerror ());
11419
11420  return status;
11421}
11422_LT_EOF
11423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11424  (eval $ac_link) 2>&5
11425  ac_status=$?
11426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11428    (./conftest; exit; ) >&5 2>/dev/null
11429    lt_status=$?
11430    case x$lt_status in
11431      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11432      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11433      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11434    esac
11435  else :
11436    # compilation failed
11437    lt_cv_dlopen_self_static=no
11438  fi
11439fi
11440rm -fr conftest*
11441
11442
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11445$as_echo "$lt_cv_dlopen_self_static" >&6; }
11446    fi
11447
11448    CPPFLAGS="$save_CPPFLAGS"
11449    LDFLAGS="$save_LDFLAGS"
11450    LIBS="$save_LIBS"
11451    ;;
11452  esac
11453
11454  case $lt_cv_dlopen_self in
11455  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11456  *) enable_dlopen_self=unknown ;;
11457  esac
11458
11459  case $lt_cv_dlopen_self_static in
11460  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11461  *) enable_dlopen_self_static=unknown ;;
11462  esac
11463fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481striplib=
11482old_striplib=
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11484$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11485if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11486  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11487  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489$as_echo "yes" >&6; }
11490else
11491# FIXME - insert some real tests, host_os isn't really good enough
11492  case $host_os in
11493  darwin*)
11494    if test -n "$STRIP" ; then
11495      striplib="$STRIP -x"
11496      old_striplib="$STRIP -S"
11497      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498$as_echo "yes" >&6; }
11499    else
11500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502    fi
11503    ;;
11504  *)
11505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507    ;;
11508  esac
11509fi
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522  # Report which library types will actually be built
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11524$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11526$as_echo "$can_build_shared" >&6; }
11527
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11529$as_echo_n "checking whether to build shared libraries... " >&6; }
11530  test "$can_build_shared" = "no" && enable_shared=no
11531
11532  # On AIX, shared libraries and static libraries use the same namespace, and
11533  # are all built from PIC.
11534  case $host_os in
11535  aix3*)
11536    test "$enable_shared" = yes && enable_static=no
11537    if test -n "$RANLIB"; then
11538      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11539      postinstall_cmds='$RANLIB $lib'
11540    fi
11541    ;;
11542
11543  aix[4-9]*)
11544    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11545      test "$enable_shared" = yes && enable_static=no
11546    fi
11547    ;;
11548  esac
11549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11550$as_echo "$enable_shared" >&6; }
11551
11552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11553$as_echo_n "checking whether to build static libraries... " >&6; }
11554  # Make sure either enable_shared or enable_static is yes.
11555  test "$enable_shared" = yes || enable_static=yes
11556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11557$as_echo "$enable_static" >&6; }
11558
11559
11560
11561
11562fi
11563ac_ext=c
11564ac_cpp='$CPP $CPPFLAGS'
11565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11567ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568
11569CC="$lt_save_CC"
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585        ac_config_commands="$ac_config_commands libtool"
11586
11587
11588
11589
11590# Only expand once:
11591
11592
11593
11594
11595if test -n "$GCC"; then
11596
11597$as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
11598
11599
11600for arg in -ffast-math -fsigned-char
11601do
11602  if { cat <<EOF
11603 $XIPH_CPPFLAGS x
11604EOF
11605} | $FGREP -v -e " $arg " > /dev/null
11606  then
11607    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
11608  fi
11609done
11610
11611
11612for arg in -g
11613do
11614  if { cat <<EOF
11615 $DEBUG x
11616EOF
11617} | $FGREP -v -e " $arg " > /dev/null
11618  then
11619    DEBUG="$DEBUG $arg"
11620  fi
11621done
11622
11623
11624for arg in -g -pg
11625do
11626  if { cat <<EOF
11627 $PROFILE x
11628EOF
11629} | $FGREP -v -e " $arg " > /dev/null
11630  then
11631    PROFILE="$PROFILE $arg"
11632  fi
11633done
11634
11635else
11636    case "$host" in
11637        *-*-irix*)
11638
11639for arg in -g -signed -D_REENTRANT
11640do
11641  if { cat <<EOF
11642 $DEBUG x
11643EOF
11644} | $FGREP -v -e " $arg " > /dev/null
11645  then
11646    DEBUG="$DEBUG $arg"
11647  fi
11648done
11649
11650
11651for arg in -O2 -w -signed -D_REENTRANT
11652do
11653  if { cat <<EOF
11654 $XIPH_CPPFLAGS x
11655EOF
11656} | $FGREP -v -e " $arg " > /dev/null
11657  then
11658    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
11659  fi
11660done
11661
11662
11663for arg in -p -g3 -O2 -signed -D_REENTRANT
11664do
11665  if { cat <<EOF
11666 $PROFILE x
11667EOF
11668} | $FGREP -v -e " $arg " > /dev/null
11669  then
11670    PROFILE="$PROFILE $arg"
11671  fi
11672done
11673
11674            ;;
11675        *-*-solaris*)
11676
11677$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
11678
11679
11680for arg in -v -g -D_REENTRANT
11681do
11682  if { cat <<EOF
11683 $DEBUG x
11684EOF
11685} | $FGREP -v -e " $arg " > /dev/null
11686  then
11687    DEBUG="$DEBUG $arg"
11688  fi
11689done
11690
11691
11692for arg in -xO4 -fast -w -fsimple -native -xcg92 -D_REENTRANT
11693do
11694  if { cat <<EOF
11695 $XIPH_CPPFLAGS x
11696EOF
11697} | $FGREP -v -e " $arg " > /dev/null
11698  then
11699    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
11700  fi
11701done
11702
11703
11704for arg in -v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc -D_REENTRANT
11705do
11706  if { cat <<EOF
11707 $PROFILE x
11708EOF
11709} | $FGREP -v -e " $arg " > /dev/null
11710  then
11711    PROFILE="$PROFILE $arg"
11712  fi
11713done
11714
11715            ;;
11716        *)
11717            DEBUG="-g -D_REENTRANT"
11718            XIPH_CPPFLAGS="-O -D_REENTRANT"
11719            PROFILE="-g -p -D_REENTRANT"
11720            ;;
11721    esac
11722fi
11723
11724
11725
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11727$as_echo_n "checking for ANSI C header files... " >&6; }
11728if ${ac_cv_header_stdc+:} false; then :
11729  $as_echo_n "(cached) " >&6
11730else
11731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h.  */
11733#include <stdlib.h>
11734#include <stdarg.h>
11735#include <string.h>
11736#include <float.h>
11737
11738int
11739main ()
11740{
11741
11742  ;
11743  return 0;
11744}
11745_ACEOF
11746if ac_fn_c_try_compile "$LINENO"; then :
11747  ac_cv_header_stdc=yes
11748else
11749  ac_cv_header_stdc=no
11750fi
11751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752
11753if test $ac_cv_header_stdc = yes; then
11754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756/* end confdefs.h.  */
11757#include <string.h>
11758
11759_ACEOF
11760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11761  $EGREP "memchr" >/dev/null 2>&1; then :
11762
11763else
11764  ac_cv_header_stdc=no
11765fi
11766rm -f conftest*
11767
11768fi
11769
11770if test $ac_cv_header_stdc = yes; then
11771  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773/* end confdefs.h.  */
11774#include <stdlib.h>
11775
11776_ACEOF
11777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11778  $EGREP "free" >/dev/null 2>&1; then :
11779
11780else
11781  ac_cv_header_stdc=no
11782fi
11783rm -f conftest*
11784
11785fi
11786
11787if test $ac_cv_header_stdc = yes; then
11788  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11789  if test "$cross_compiling" = yes; then :
11790  :
11791else
11792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h.  */
11794#include <ctype.h>
11795#include <stdlib.h>
11796#if ((' ' & 0x0FF) == 0x020)
11797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11799#else
11800# define ISLOWER(c) \
11801		   (('a' <= (c) && (c) <= 'i') \
11802		     || ('j' <= (c) && (c) <= 'r') \
11803		     || ('s' <= (c) && (c) <= 'z'))
11804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11805#endif
11806
11807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11808int
11809main ()
11810{
11811  int i;
11812  for (i = 0; i < 256; i++)
11813    if (XOR (islower (i), ISLOWER (i))
11814	|| toupper (i) != TOUPPER (i))
11815      return 2;
11816  return 0;
11817}
11818_ACEOF
11819if ac_fn_c_try_run "$LINENO"; then :
11820
11821else
11822  ac_cv_header_stdc=no
11823fi
11824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11825  conftest.$ac_objext conftest.beam conftest.$ac_ext
11826fi
11827
11828fi
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11831$as_echo "$ac_cv_header_stdc" >&6; }
11832if test $ac_cv_header_stdc = yes; then
11833
11834$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11835
11836fi
11837
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11839$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11840if ${ac_cv_header_time+:} false; then :
11841  $as_echo_n "(cached) " >&6
11842else
11843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h.  */
11845#include <sys/types.h>
11846#include <sys/time.h>
11847#include <time.h>
11848
11849int
11850main ()
11851{
11852if ((struct tm *) 0)
11853return 0;
11854  ;
11855  return 0;
11856}
11857_ACEOF
11858if ac_fn_c_try_compile "$LINENO"; then :
11859  ac_cv_header_time=yes
11860else
11861  ac_cv_header_time=no
11862fi
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11866$as_echo "$ac_cv_header_time" >&6; }
11867if test $ac_cv_header_time = yes; then
11868
11869$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11870
11871fi
11872
11873for ac_header in stropts.h sys/timeb.h sys/select.h
11874do :
11875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11878  cat >>confdefs.h <<_ACEOF
11879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880_ACEOF
11881
11882fi
11883
11884done
11885
11886
11887
11888# Check whether --enable-oss was given.
11889if test "${enable_oss+set}" = set; then :
11890  enableval=$enable_oss;
11891else
11892  enable_oss=yes
11893fi
11894
11895
11896if test "x$enable_oss" = xyes ; then
11897    ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11898if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11899  have_oss=yes
11900else
11901  have_oss=no
11902fi
11903
11904
11905    ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
11906if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
11907  have_oss=yes
11908fi
11909
11910
11911    if test "$have_oss" = yes; then
11912
11913$as_echo "#define HAVE_OSS /**/" >>confdefs.h
11914
11915    fi
11916else
11917    have_oss=no
11918fi
11919
11920 if test "$have_oss" = yes; then
11921  HAVE_OSS_TRUE=
11922  HAVE_OSS_FALSE='#'
11923else
11924  HAVE_OSS_TRUE='#'
11925  HAVE_OSS_FALSE=
11926fi
11927
11928
11929
11930
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11932$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11933if ${ac_cv_c_bigendian+:} false; then :
11934  $as_echo_n "(cached) " >&6
11935else
11936  ac_cv_c_bigendian=unknown
11937    # See if we're dealing with a universal compiler.
11938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h.  */
11940#ifndef __APPLE_CC__
11941	       not a universal capable compiler
11942	     #endif
11943	     typedef int dummy;
11944
11945_ACEOF
11946if ac_fn_c_try_compile "$LINENO"; then :
11947
11948	# Check for potential -arch flags.  It is not universal unless
11949	# there are at least two -arch flags with different values.
11950	ac_arch=
11951	ac_prev=
11952	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11953	 if test -n "$ac_prev"; then
11954	   case $ac_word in
11955	     i?86 | x86_64 | ppc | ppc64)
11956	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11957		 ac_arch=$ac_word
11958	       else
11959		 ac_cv_c_bigendian=universal
11960		 break
11961	       fi
11962	       ;;
11963	   esac
11964	   ac_prev=
11965	 elif test "x$ac_word" = "x-arch"; then
11966	   ac_prev=arch
11967	 fi
11968       done
11969fi
11970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971    if test $ac_cv_c_bigendian = unknown; then
11972      # See if sys/param.h defines the BYTE_ORDER macro.
11973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h.  */
11975#include <sys/types.h>
11976	     #include <sys/param.h>
11977
11978int
11979main ()
11980{
11981#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11982		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11983		     && LITTLE_ENDIAN)
11984	      bogus endian macros
11985	     #endif
11986
11987  ;
11988  return 0;
11989}
11990_ACEOF
11991if ac_fn_c_try_compile "$LINENO"; then :
11992  # It does; now see whether it defined to BIG_ENDIAN or not.
11993	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995#include <sys/types.h>
11996		#include <sys/param.h>
11997
11998int
11999main ()
12000{
12001#if BYTE_ORDER != BIG_ENDIAN
12002		 not big endian
12003		#endif
12004
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_compile "$LINENO"; then :
12010  ac_cv_c_bigendian=yes
12011else
12012  ac_cv_c_bigendian=no
12013fi
12014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015fi
12016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017    fi
12018    if test $ac_cv_c_bigendian = unknown; then
12019      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h.  */
12022#include <limits.h>
12023
12024int
12025main ()
12026{
12027#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12028	      bogus endian macros
12029	     #endif
12030
12031  ;
12032  return 0;
12033}
12034_ACEOF
12035if ac_fn_c_try_compile "$LINENO"; then :
12036  # It does; now see whether it defined to _BIG_ENDIAN or not.
12037	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038/* end confdefs.h.  */
12039#include <limits.h>
12040
12041int
12042main ()
12043{
12044#ifndef _BIG_ENDIAN
12045		 not big endian
12046		#endif
12047
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052if ac_fn_c_try_compile "$LINENO"; then :
12053  ac_cv_c_bigendian=yes
12054else
12055  ac_cv_c_bigendian=no
12056fi
12057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058fi
12059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060    fi
12061    if test $ac_cv_c_bigendian = unknown; then
12062      # Compile a test program.
12063      if test "$cross_compiling" = yes; then :
12064  # Try to guess by grepping values from an object file.
12065	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067short int ascii_mm[] =
12068		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12069		short int ascii_ii[] =
12070		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12071		int use_ascii (int i) {
12072		  return ascii_mm[i] + ascii_ii[i];
12073		}
12074		short int ebcdic_ii[] =
12075		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12076		short int ebcdic_mm[] =
12077		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12078		int use_ebcdic (int i) {
12079		  return ebcdic_mm[i] + ebcdic_ii[i];
12080		}
12081		extern int foo;
12082
12083int
12084main ()
12085{
12086return use_ascii (foo) == use_ebcdic (foo);
12087  ;
12088  return 0;
12089}
12090_ACEOF
12091if ac_fn_c_try_compile "$LINENO"; then :
12092  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12093	      ac_cv_c_bigendian=yes
12094	    fi
12095	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12096	      if test "$ac_cv_c_bigendian" = unknown; then
12097		ac_cv_c_bigendian=no
12098	      else
12099		# finding both strings is unlikely to happen, but who knows?
12100		ac_cv_c_bigendian=unknown
12101	      fi
12102	    fi
12103fi
12104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105else
12106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h.  */
12108$ac_includes_default
12109int
12110main ()
12111{
12112
12113	     /* Are we little or big endian?  From Harbison&Steele.  */
12114	     union
12115	     {
12116	       long int l;
12117	       char c[sizeof (long int)];
12118	     } u;
12119	     u.l = 1;
12120	     return u.c[sizeof (long int) - 1] == 1;
12121
12122  ;
12123  return 0;
12124}
12125_ACEOF
12126if ac_fn_c_try_run "$LINENO"; then :
12127  ac_cv_c_bigendian=no
12128else
12129  ac_cv_c_bigendian=yes
12130fi
12131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132  conftest.$ac_objext conftest.beam conftest.$ac_ext
12133fi
12134
12135    fi
12136fi
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12138$as_echo "$ac_cv_c_bigendian" >&6; }
12139 case $ac_cv_c_bigendian in #(
12140   yes)
12141     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12142;; #(
12143   no)
12144      ;; #(
12145   universal)
12146
12147$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12148
12149     ;; #(
12150   *)
12151     as_fn_error $? "unknown endianness
12152 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12153 esac
12154
12155# Check whether --enable-sun-audio was given.
12156if test "${enable_sun_audio+set}" = set; then :
12157  enableval=$enable_sun_audio; enable_sun="$enableval"
12158else
12159  enable_sun=yes
12160
12161fi
12162
12163if test x$enable_sun = xyes; then
12164   ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
12165if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
12166  have_sun_audio=yes
12167else
12168  have_sun_audio=no
12169fi
12170
12171
12172
12173   if test "$have_sun_audio" = yes; then
12174
12175$as_echo "#define HAVE_SUN_AUDIO /**/" >>confdefs.h
12176
12177   fi
12178else
12179    have_sun_audio=no
12180fi
12181
12182 if test "$have_sun_audio" = yes; then
12183  HAVE_SUN_AUDIO_TRUE=
12184  HAVE_SUN_AUDIO_FALSE='#'
12185else
12186  HAVE_SUN_AUDIO_TRUE='#'
12187  HAVE_SUN_AUDIO_FALSE=
12188fi
12189
12190
12191
12192# Check whether --enable-alsa was given.
12193if test "${enable_alsa+set}" = set; then :
12194  enableval=$enable_alsa;
12195else
12196  enable_alsa=yes
12197fi
12198
12199
12200if test "x$enable_alsa" = xyes ; then
12201    ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
12202if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
12203  have_alsa=yes
12204else
12205  have_alsa=no
12206fi
12207
12208
12209
12210    if test "$have_alsa" = yes; then
12211        ALSA_LIBS="-lasound"
12212
12213$as_echo "#define HAVE_ALSA /**/" >>confdefs.h
12214
12215    fi
12216else
12217    have_alsa=no
12218fi
12219
12220 if test "$have_alsa" = yes; then
12221  HAVE_ALSA_TRUE=
12222  HAVE_ALSA_FALSE='#'
12223else
12224  HAVE_ALSA_TRUE='#'
12225  HAVE_ALSA_FALSE=
12226fi
12227
12228
12229
12230# Check whether --enable-roaraudio was given.
12231if test "${enable_roaraudio+set}" = set; then :
12232  enableval=$enable_roaraudio;
12233else
12234  enable_roaraudio=yes
12235fi
12236
12237
12238if test "x$enable_roaraudio" = xyes ; then
12239#    PKG_CHECK_MODULES(RoarAudio, [libroar >= 0.4.0], have_roaraudio=yes, have_roaraudio=no)
12240    echo -n "checking for libroar... "
12241    if roar-config --compare-versions current ge 0.4.0
12242    then
12243        have_roaraudio=yes
12244    else
12245        have_roaraudio=no
12246    fi
12247
12248    if test "$have_roaraudio" = yes; then
12249	ROARAUDIO_LIBS="`roar-config --libs`"
12250	ROARAUDIO_CFLAGS="`roar-config --cflags`"
12251
12252for arg in $ROARAUDIO_CFLAGS
12253do
12254  if { cat <<EOF
12255 $XIPH_CFLAGS x
12256EOF
12257} | $FGREP -v -e " $arg " > /dev/null
12258  then
12259    XIPH_CFLAGS="$XIPH_CFLAGS $arg"
12260  fi
12261done
12262
12263
12264$as_echo "#define HAVE_ROARAUDIO /**/" >>confdefs.h
12265
12266        echo "ok"
12267    else
12268        echo "failed"
12269    fi
12270else
12271    have_roaraudio=no
12272fi
12273
12274 if test "$have_roaraudio" = yes; then
12275  HAVE_ROARAUDIO_TRUE=
12276  HAVE_ROARAUDIO_FALSE='#'
12277else
12278  HAVE_ROARAUDIO_TRUE='#'
12279  HAVE_ROARAUDIO_FALSE=
12280fi
12281
12282
12283
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12285$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12286if ${ac_cv_c_const+:} false; then :
12287  $as_echo_n "(cached) " >&6
12288else
12289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h.  */
12291
12292int
12293main ()
12294{
12295
12296#ifndef __cplusplus
12297  /* Ultrix mips cc rejects this sort of thing.  */
12298  typedef int charset[2];
12299  const charset cs = { 0, 0 };
12300  /* SunOS 4.1.1 cc rejects this.  */
12301  char const *const *pcpcc;
12302  char **ppc;
12303  /* NEC SVR4.0.2 mips cc rejects this.  */
12304  struct point {int x, y;};
12305  static struct point const zero = {0,0};
12306  /* AIX XL C 1.02.0.0 rejects this.
12307     It does not let you subtract one const X* pointer from another in
12308     an arm of an if-expression whose if-part is not a constant
12309     expression */
12310  const char *g = "string";
12311  pcpcc = &g + (g ? g-g : 0);
12312  /* HPUX 7.0 cc rejects these. */
12313  ++pcpcc;
12314  ppc = (char**) pcpcc;
12315  pcpcc = (char const *const *) ppc;
12316  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12317    char tx;
12318    char *t = &tx;
12319    char const *s = 0 ? (char *) 0 : (char const *) 0;
12320
12321    *t++ = 0;
12322    if (s) return 0;
12323  }
12324  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12325    int x[] = {25, 17};
12326    const int *foo = &x[0];
12327    ++foo;
12328  }
12329  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12330    typedef const int *iptr;
12331    iptr p = 0;
12332    ++p;
12333  }
12334  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12335       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12336    struct s { int j; const int *ap[3]; } bx;
12337    struct s *b = &bx; b->j = 5;
12338  }
12339  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12340    const int foo = 10;
12341    if (!foo) return 0;
12342  }
12343  return !cs[0] && !zero.x;
12344#endif
12345
12346  ;
12347  return 0;
12348}
12349_ACEOF
12350if ac_fn_c_try_compile "$LINENO"; then :
12351  ac_cv_c_const=yes
12352else
12353  ac_cv_c_const=no
12354fi
12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12358$as_echo "$ac_cv_c_const" >&6; }
12359if test $ac_cv_c_const = no; then
12360
12361$as_echo "#define const /**/" >>confdefs.h
12362
12363fi
12364
12365
12366ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12367if test "x$ac_cv_type_uint64_t" = xyes; then :
12368
12369cat >>confdefs.h <<_ACEOF
12370#define HAVE_UINT64_T 1
12371_ACEOF
12372
12373
12374else
12375  as_fn_error $? "could not find a uint64_t type" "$LINENO" 5
12376fi
12377
12378
12379
12380for ac_func in gettimeofday ftime
12381do :
12382  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12384if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12385  cat >>confdefs.h <<_ACEOF
12386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12387_ACEOF
12388
12389fi
12390done
12391
12392
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for XML configuration" >&5
12394$as_echo "checking for XML configuration" >&6; }
12395
12396
12397# Check whether --with-xml-config was given.
12398if test "${with_xml_config+set}" = set; then :
12399  withval=$with_xml_config; XMLCONFIG="$withval"
12400else
12401  for ac_prog in xml2-config xml-config
12402do
12403  # Extract the first word of "$ac_prog", so it can be a program name with args.
12404set dummy $ac_prog; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if ${ac_cv_path_XMLCONFIG+:} false; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  case $XMLCONFIG in
12411  [\\/]* | ?:[\\/]*)
12412  ac_cv_path_XMLCONFIG="$XMLCONFIG" # Let the user override the test with a path.
12413  ;;
12414  *)
12415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416for as_dir in $PATH
12417do
12418  IFS=$as_save_IFS
12419  test -z "$as_dir" && as_dir=.
12420    for ac_exec_ext in '' $ac_executable_extensions; do
12421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422    ac_cv_path_XMLCONFIG="$as_dir/$ac_word$ac_exec_ext"
12423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424    break 2
12425  fi
12426done
12427  done
12428IFS=$as_save_IFS
12429
12430  ;;
12431esac
12432fi
12433XMLCONFIG=$ac_cv_path_XMLCONFIG
12434if test -n "$XMLCONFIG"; then
12435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONFIG" >&5
12436$as_echo "$XMLCONFIG" >&6; }
12437else
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440fi
12441
12442
12443  test -n "$XMLCONFIG" && break
12444done
12445test -n "$XMLCONFIG" || XMLCONFIG=""""
12446
12447
12448fi
12449
12450if test "x$XMLCONFIG" = "x"; then
12451    as_fn_error $? "XML configuration could not be found" "$LINENO" 5
12452fi
12453if ! test -x "$XMLCONFIG"; then
12454    as_fn_error $? "$XMLCONFIG cannot be executed" "$LINENO" 5
12455fi
12456XML_LIBS="$($XMLCONFIG --libs)"
12457XML_CFLAGS="$($XMLCONFIG --cflags)"
12458ac_xml_save_LIBS="$LIBS"
12459ac_xml_save_CFLAGS="$CFLAGS"
12460LIBS="$XML_LIBS $LIBS"
12461CFLAGS="$CFLAGS $XML_CFLAGS"
12462ac_fn_c_check_func "$LINENO" "xmlParseFile" "ac_cv_func_xmlParseFile"
12463if test "x$ac_cv_func_xmlParseFile" = xyes; then :
12464
12465else
12466  as_fn_error $? "Unable to link with libxml" "$LINENO" 5
12467fi
12468
12469CFLAGS="$ac_xml_save_CFLAGS"
12470LIBS="$ac_xml_save_LIBS"
12471
12472
12473for arg in $XML_CFLAGS
12474do
12475  if { cat <<EOF
12476 $XIPH_CFLAGS x
12477EOF
12478} | $FGREP -v -e " $arg " > /dev/null
12479  then
12480    XIPH_CFLAGS="$XIPH_CFLAGS $arg"
12481  fi
12482done
12483
12484
12485xt_compare="$XIPH_LIBS"
12486xt_filtered=""
12487for arg in $XML_LIBS
12488do
12489  if { cat <<EOF
12490 $xt_compare x
12491EOF
12492} | $FGREP -v -e " $arg " > /dev/null
12493  then
12494    xt_compare="$arg $xt_compare"
12495    xt_filtered="$xt_filtered $arg"
12496  fi
12497done
12498XIPH_LIBS="$xt_filtered $XIPH_LIBS"
12499
12500
12501xt_have_shout="no"
12502SHOUT_THREADSAFE="no"
12503SHOUT_CPPFLAGS=""
12504SHOUT_CFLAGS=""
12505SHOUT_LIBS=""
12506
12507# NB: PKG_CHECK_MODULES exits if pkg-config is unavailable on the target
12508# system, so we can't use it.
12509
12510# seed pkg-config with the default libshout location
12511PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/local/lib/pkgconfig}
12512export PKG_CONFIG_PATH
12513
12514# Step 1: Use pkg-config if available
12515# Extract the first word of "pkg-config", so it can be a program name with args.
12516set dummy pkg-config; ac_word=$2
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518$as_echo_n "checking for $ac_word... " >&6; }
12519if ${ac_cv_path_PKGCONFIG+:} false; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  case $PKGCONFIG in
12523  [\\/]* | ?:[\\/]*)
12524  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
12525  ;;
12526  *)
12527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530  IFS=$as_save_IFS
12531  test -z "$as_dir" && as_dir=.
12532    for ac_exec_ext in '' $ac_executable_extensions; do
12533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
12535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536    break 2
12537  fi
12538done
12539  done
12540IFS=$as_save_IFS
12541
12542  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
12543  ;;
12544esac
12545fi
12546PKGCONFIG=$ac_cv_path_PKGCONFIG
12547if test -n "$PKGCONFIG"; then
12548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
12549$as_echo "$PKGCONFIG" >&6; }
12550else
12551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553fi
12554
12555
12556if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists shout`
12557then
12558  SHOUT_CFLAGS=`$PKGCONFIG --variable=cflags_only shout`
12559  SHOUT_CPPFLAGS=`$PKGCONFIG --variable=cppflags shout`
12560  SHOUT_LIBS=`$PKGCONFIG --libs shout`
12561  xt_have_shout="maybe"
12562else
12563  if test "$PKGCONFIG" != "no"
12564  then
12565    { $as_echo "$as_me:${as_lineno-$LINENO}: $PKGCONFIG couldn't find libshout. Try adjusting PKG_CONFIG_PATH." >&5
12566$as_echo "$as_me: $PKGCONFIG couldn't find libshout. Try adjusting PKG_CONFIG_PATH." >&6;}
12567  fi
12568  # pkg-config unavailable, try shout-config
12569  # Extract the first word of "shout-config", so it can be a program name with args.
12570set dummy shout-config; ac_word=$2
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572$as_echo_n "checking for $ac_word... " >&6; }
12573if ${ac_cv_path_SHOUTCONFIG+:} false; then :
12574  $as_echo_n "(cached) " >&6
12575else
12576  case $SHOUTCONFIG in
12577  [\\/]* | ?:[\\/]*)
12578  ac_cv_path_SHOUTCONFIG="$SHOUTCONFIG" # Let the user override the test with a path.
12579  ;;
12580  *)
12581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582for as_dir in $PATH
12583do
12584  IFS=$as_save_IFS
12585  test -z "$as_dir" && as_dir=.
12586    for ac_exec_ext in '' $ac_executable_extensions; do
12587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12588    ac_cv_path_SHOUTCONFIG="$as_dir/$ac_word$ac_exec_ext"
12589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590    break 2
12591  fi
12592done
12593  done
12594IFS=$as_save_IFS
12595
12596  test -z "$ac_cv_path_SHOUTCONFIG" && ac_cv_path_SHOUTCONFIG="no"
12597  ;;
12598esac
12599fi
12600SHOUTCONFIG=$ac_cv_path_SHOUTCONFIG
12601if test -n "$SHOUTCONFIG"; then
12602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOUTCONFIG" >&5
12603$as_echo "$SHOUTCONFIG" >&6; }
12604else
12605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
12607fi
12608
12609
12610  if test "$SHOUTCONFIG" != "no" && test `$SHOUTCONFIG --package` = "libshout"
12611  then
12612    SHOUT_CPPFLAGS=`$SHOUTCONFIG --cppflags`
12613    SHOUT_CFLAGS=`$SHOUTCONFIG --cflags-only`
12614    SHOUT_LIBS=`$SHOUTCONFIG --libs`
12615    xt_have_shout="maybe"
12616  fi
12617fi
12618
12619# Now try actually using libshout
12620if test "$xt_have_shout" != "no"
12621then
12622  ac_save_CPPFLAGS="$CPPFLAGS"
12623  ac_save_CFLAGS="$CFLAGS"
12624  ac_save_LIBS="$LIBS"
12625  CPPFLAGS="$CPPFLAGS $SHOUT_CPPFLAGS"
12626  CFLAGS="$CFLAGS $SHOUT_CFLAGS"
12627  LIBS="$SHOUT_LIBS $LIBS"
12628  for ac_header in shout/shout.h
12629do :
12630  ac_fn_c_check_header_mongrel "$LINENO" "shout/shout.h" "ac_cv_header_shout_shout_h" "$ac_includes_default"
12631if test "x$ac_cv_header_shout_shout_h" = xyes; then :
12632  cat >>confdefs.h <<_ACEOF
12633#define HAVE_SHOUT_SHOUT_H 1
12634_ACEOF
12635
12636    ac_fn_c_check_func "$LINENO" "shout_new" "ac_cv_func_shout_new"
12637if test "x$ac_cv_func_shout_new" = xyes; then :
12638
12639      :
12640      xt_have_shout="yes"
12641
12642fi
12643
12644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h.  */
12646#include <shout/shout.h>
12647#if SHOUT_THREADSAFE
12648yes
12649#endif
12650
12651_ACEOF
12652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12653  $EGREP "yes" >/dev/null 2>&1; then :
12654  SHOUT_THREADSAFE="yes"
12655fi
12656rm -f conftest*
12657
12658
12659fi
12660
12661done
12662
12663  CPPFLAGS="$ac_save_CPPFLAGS"
12664  CFLAGS="$ac_save_CFLAGS"
12665  LIBS="$ac_save_LIBS"
12666fi
12667
12668if test "$xt_have_shout" != "yes"
12669then
12670  as_fn_error $? "must have libshout installed!" "$LINENO" 5
12671fi
12672
12673if test "$SHOUT_THREADSAFE" != "yes"
12674then
12675  as_fn_error $? "This libshout isn't threadsafe" "$LINENO" 5
12676fi
12677
12678
12679for arg in $SHOUT_CPPFLAGS
12680do
12681  if { cat <<EOF
12682 $XIPH_CPPFLAGS x
12683EOF
12684} | $FGREP -v -e " $arg " > /dev/null
12685  then
12686    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
12687  fi
12688done
12689
12690
12691for arg in $SHOUT_CFLAGS
12692do
12693  if { cat <<EOF
12694 $XIPH_CFLAGS x
12695EOF
12696} | $FGREP -v -e " $arg " > /dev/null
12697  then
12698    XIPH_CFLAGS="$XIPH_CFLAGS $arg"
12699  fi
12700done
12701
12702
12703xt_compare="$XIPH_LIBS"
12704xt_filtered=""
12705for arg in $SHOUT_LIBS
12706do
12707  if { cat <<EOF
12708 $xt_compare x
12709EOF
12710} | $FGREP -v -e " $arg " > /dev/null
12711  then
12712    xt_compare="$arg $xt_compare"
12713    xt_filtered="$xt_filtered $arg"
12714  fi
12715done
12716XIPH_LIBS="$xt_filtered $XIPH_LIBS"
12717
12718
12719
12720
12721# Check whether --with-ogg was given.
12722if test "${with_ogg+set}" = set; then :
12723  withval=$with_ogg; ogg_prefix="$withval"
12724else
12725  ogg_prefix="$OGG_PREFIX"
12726
12727fi
12728
12729if test "x$ogg_prefix" = "x" -o "x$ogg_prefix" = "xyes"; then
12730    if test "x$prefix" = "xNONE"; then
12731        ogg_prefix=/usr/local
12732    else
12733        ogg_prefix="$prefix"
12734    fi
12735fi
12736
12737
12738xt_warning=no
12739if test x"$GCC" = "xyes"
12740then
12741  save_cflags="$CFLAGS"
12742  CFLAGS="-Werror -I$ogg_prefix/include"
12743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744/* end confdefs.h.  */
12745
12746int
12747main ()
12748{
12749
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754if ac_fn_c_try_compile "$LINENO"; then :
12755
12756else
12757  xt_warning=yes
12758fi
12759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760  CFLAGS="$save_cflags"
12761fi
12762if test "$xt_warning" = "yes"
12763then
12764  :
12765else
12766   OGG_CFLAGS="-I$ogg_prefix/include"
12767      OGG_LDFLAGS="-L$ogg_prefix/lib"
12768
12769fi
12770
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg" >&5
12772$as_echo_n "checking for libogg... " >&6; }
12773if ${xt_cv_lib_ogg+:} false; then :
12774  $as_echo_n "(cached) " >&6
12775else
12776  OGG_LIBS="-logg"
12777
12778#
12779# check if the installed Ogg is sufficiently new.
12780#
12781ac_save_CFLAGS="$CFLAGS"
12782ac_save_LIBS="$LIBS"
12783ac_save_LDFLAGS="$LDFLAGS"
12784CFLAGS="$CFLAGS $OGG_CFLAGS"
12785LIBS="$LIBS $OGG_LIBS"
12786LDFLAGS="$LDFLAGS $OGG_LDFLAGS"
12787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788/* end confdefs.h.  */
12789
12790/* Override any GCC internal prototype to avoid an error.
12791   Use char because int might match the return type of a GCC
12792   builtin and then its argument prototype would still apply.  */
12793#ifdef __cplusplus
12794extern "C"
12795#endif
12796char ogg_sync_init ();
12797int
12798main ()
12799{
12800return ogg_sync_init ();
12801  ;
12802  return 0;
12803}
12804_ACEOF
12805if ac_fn_c_try_link "$LINENO"; then :
12806   xt_cv_lib_ogg=ok
12807else
12808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809/* end confdefs.h.  */
12810#include <ogg/ogg.h>
12811int
12812main ()
12813{
12814
12815  ;
12816  return 0;
12817}
12818_ACEOF
12819if ac_fn_c_try_link "$LINENO"; then :
12820   xt_cv_lib_ogg="pre v1.0, needs updating"
12821else
12822   xt_cv_lib_ogg="not found"
12823fi
12824rm -f core conftest.err conftest.$ac_objext \
12825    conftest$ac_exeext conftest.$ac_ext
12826
12827fi
12828rm -f core conftest.err conftest.$ac_objext \
12829    conftest$ac_exeext conftest.$ac_ext
12830CFLAGS="$ac_save_CFLAGS"
12831LDFLAGS="$ac_save_LDFLAGS"
12832LIBS="$ac_save_LIBS"
12833
12834fi
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_cv_lib_ogg" >&5
12836$as_echo "$xt_cv_lib_ogg" >&6; }
12837if test "x$xt_cv_lib_ogg" = "xok"; then
12838
12839
12840$as_echo "#define HAVE_OGG 1" >>confdefs.h
12841
12842else
12843    OGG_LIBS=""
12844    OGG_CFLAGS=""
12845    OGG_LDFLAGS=""
12846
12847fi
12848
12849
12850
12851
12852
12853
12854
12855
12856# Check whether --with-vorbis was given.
12857if test "${with_vorbis+set}" = set; then :
12858  withval=$with_vorbis; vorbis_prefix="$withval"
12859else
12860  vorbis_prefix="$VORBIS_PREFIX"
12861
12862fi
12863
12864if test "x$vorbis_prefix" = "x" -o "x$vorbis_prefix" = "xyes"; then
12865    if test "x$prefix" = "xNONE"; then
12866        vorbis_prefix="/usr/local"
12867    else
12868        vorbis_prefix="$prefix"
12869    fi
12870fi
12871
12872VORBIS_CFLAGS="$OGG_CFLAGS"
12873VORBIS_LDFLAGS="$OGG_LDFLAGS"
12874if test "x$vorbis_prefix" != "x$ogg_prefix"; then
12875
12876xt_warning=no
12877if test x"$GCC" = "xyes"
12878then
12879  save_cflags="$CFLAGS"
12880  CFLAGS="-Werror -I"$vorbis_prefix/include""
12881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882/* end confdefs.h.  */
12883
12884int
12885main ()
12886{
12887
12888  ;
12889  return 0;
12890}
12891_ACEOF
12892if ac_fn_c_try_compile "$LINENO"; then :
12893
12894else
12895  xt_warning=yes
12896fi
12897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12898  CFLAGS="$save_cflags"
12899fi
12900if test "$xt_warning" = "yes"
12901then
12902  :
12903else
12904  VORBIS_CFLAGS="$VORBIS_CFLAGS -I$vorbis_prefix/include"
12905            VORBIS_LDFLAGS="-L$vorbis_prefix/lib $VORBIS_LDFLAGS"
12906
12907fi
12908
12909fi
12910
12911VORBIS_LIBS="-lvorbis"
12912VORBISFILE_LIBS="-lvorbisfile"
12913VORBISENC_LIBS="-lvorbisenc"
12914
12915xt_save_LIBS="$LIBS"
12916xt_save_LDFLAGS="$LDFLAGS"
12917xt_save_CPPFLAGS="$CPPFLAGS"
12918CPPFLAGS="$CPPFLAGS $VORBIS_CFLAGS"
12919LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS"
12920LIBS="$LIBS $VORBIS_LIBS"
12921xt_lib_vorbis="not found"
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5
12923$as_echo_n "checking for libvorbis... " >&6; }
12924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925/* end confdefs.h.  */
12926
12927/* Override any GCC internal prototype to avoid an error.
12928   Use char because int might match the return type of a GCC
12929   builtin and then its argument prototype would still apply.  */
12930#ifdef __cplusplus
12931extern "C"
12932#endif
12933char ogg_stream_init ();
12934int
12935main ()
12936{
12937return ogg_stream_init ();
12938  ;
12939  return 0;
12940}
12941_ACEOF
12942if ac_fn_c_try_link "$LINENO"; then :
12943  xt_lib_vorbis=ok
12944else
12945  LIBS="$LIBS $OGG_LIBS -lm"
12946        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947/* end confdefs.h.  */
12948
12949/* Override any GCC internal prototype to avoid an error.
12950   Use char because int might match the return type of a GCC
12951   builtin and then its argument prototype would still apply.  */
12952#ifdef __cplusplus
12953extern "C"
12954#endif
12955char vorbis_info_init ();
12956int
12957main ()
12958{
12959return vorbis_info_init ();
12960  ;
12961  return 0;
12962}
12963_ACEOF
12964if ac_fn_c_try_link "$LINENO"; then :
12965  xt_lib_vorbis=ok
12966            VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm"
12967fi
12968rm -f core conftest.err conftest.$ac_objext \
12969    conftest$ac_exeext conftest.$ac_ext
12970
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973    conftest$ac_exeext conftest.$ac_ext
12974
12975if test "x$xt_lib_vorbis" = "xok"; then
12976#
12977# Now check if the installed Vorbis is sufficiently new.
12978#
12979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980/* end confdefs.h.  */
12981
12982#include <vorbis/codec.h>
12983#include <vorbis/vorbisenc.h>
12984
12985int
12986main ()
12987{
12988
12989struct ovectl_ratemanage_arg a;
12990
12991  ;
12992  return 0;
12993}
12994_ACEOF
12995if ac_fn_c_try_compile "$LINENO"; then :
12996
12997else
12998  xt_lib_vorbis="old version found"
12999fi
13000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5
13002$as_echo "$xt_lib_vorbis" >&6; }
13003fi
13004CPPFLAGS="$xt_save_CPPFLAGS"
13005LIBS="$xt_save_LIBS"
13006LDFLAGS="$xt_save_LDFLAGS"
13007
13008if test "x$xt_lib_vorbis" = "xok"; then
13009    :
13010else
13011    VORBIS_CFLAGS=""
13012    VORBIS_LDFLAGS=""
13013    VORBIS_LIBS=""
13014    VORBISFILE_LIBS=""
13015    VORBISENC_LIBS=""
13016    as_fn_error $? "must have Ogg Vorbis v1.0 or above installed!" "$LINENO" 5
13017fi
13018
13019
13020
13021
13022
13023
13024
13025for arg in $VORBIS_CFLAGS $VORBISENC_CFLAGS
13026do
13027  if { cat <<EOF
13028 $XIPH_CPPFLAGS x
13029EOF
13030} | $FGREP -v -e " $arg " > /dev/null
13031  then
13032    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
13033  fi
13034done
13035
13036
13037xt_compare="$XIPH_LIBS"
13038xt_filtered=""
13039for arg in $VORBISENC_LIBS $VORBIS_LIBS
13040do
13041  if { cat <<EOF
13042 $xt_compare x
13043EOF
13044} | $FGREP -v -e " $arg " > /dev/null
13045  then
13046    xt_compare="$arg $xt_compare"
13047    xt_filtered="$xt_filtered $arg"
13048  fi
13049done
13050XIPH_LIBS="$xt_filtered $XIPH_LIBS"
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066ac_config_files="$ac_config_files Makefile conf/Makefile doc/Makefile src/Makefile src/common/log/Makefile src/common/timing/Makefile src/common/thread/Makefile src/common/avl/Makefile"
13067
13068cat >confcache <<\_ACEOF
13069# This file is a shell script that caches the results of configure
13070# tests run on this system so they can be shared between configure
13071# scripts and configure runs, see configure's option --config-cache.
13072# It is not useful on other systems.  If it contains results you don't
13073# want to keep, you may remove or edit it.
13074#
13075# config.status only pays attention to the cache file if you give it
13076# the --recheck option to rerun configure.
13077#
13078# `ac_cv_env_foo' variables (set or unset) will be overridden when
13079# loading this file, other *unset* `ac_cv_foo' will be assigned the
13080# following values.
13081
13082_ACEOF
13083
13084# The following way of writing the cache mishandles newlines in values,
13085# but we know of no workaround that is simple, portable, and efficient.
13086# So, we kill variables containing newlines.
13087# Ultrix sh set writes to stderr and can't be redirected directly,
13088# and sets the high bit in the cache file unless we assign to the vars.
13089(
13090  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13091    eval ac_val=\$$ac_var
13092    case $ac_val in #(
13093    *${as_nl}*)
13094      case $ac_var in #(
13095      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13097      esac
13098      case $ac_var in #(
13099      _ | IFS | as_nl) ;; #(
13100      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13101      *) { eval $ac_var=; unset $ac_var;} ;;
13102      esac ;;
13103    esac
13104  done
13105
13106  (set) 2>&1 |
13107    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13108    *${as_nl}ac_space=\ *)
13109      # `set' does not quote correctly, so add quotes: double-quote
13110      # substitution turns \\\\ into \\, and sed turns \\ into \.
13111      sed -n \
13112	"s/'/'\\\\''/g;
13113	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13114      ;; #(
13115    *)
13116      # `set' quotes correctly as required by POSIX, so do not add quotes.
13117      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13118      ;;
13119    esac |
13120    sort
13121) |
13122  sed '
13123     /^ac_cv_env_/b end
13124     t clear
13125     :clear
13126     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13127     t end
13128     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13129     :end' >>confcache
13130if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13131  if test -w "$cache_file"; then
13132    if test "x$cache_file" != "x/dev/null"; then
13133      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13134$as_echo "$as_me: updating cache $cache_file" >&6;}
13135      if test ! -f "$cache_file" || test -h "$cache_file"; then
13136	cat confcache >"$cache_file"
13137      else
13138        case $cache_file in #(
13139        */* | ?:*)
13140	  mv -f confcache "$cache_file"$$ &&
13141	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13142        *)
13143	  mv -f confcache "$cache_file" ;;
13144	esac
13145      fi
13146    fi
13147  else
13148    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13149$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13150  fi
13151fi
13152rm -f confcache
13153
13154test "x$prefix" = xNONE && prefix=$ac_default_prefix
13155# Let make expand exec_prefix.
13156test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13157
13158DEFS=-DHAVE_CONFIG_H
13159
13160ac_libobjs=
13161ac_ltlibobjs=
13162for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13163  # 1. Remove the extension, and $U if already installed.
13164  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13165  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13166  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13167  #    will be set to the directory where LIBOBJS objects are built.
13168  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13169  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13170done
13171LIBOBJS=$ac_libobjs
13172
13173LTLIBOBJS=$ac_ltlibobjs
13174
13175
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13177$as_echo_n "checking that generated files are newer than configure... " >&6; }
13178   if test -n "$am_sleep_pid"; then
13179     # Hide warnings about reused PIDs.
13180     wait $am_sleep_pid 2>/dev/null
13181   fi
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13183$as_echo "done" >&6; }
13184 if test -n "$EXEEXT"; then
13185  am__EXEEXT_TRUE=
13186  am__EXEEXT_FALSE='#'
13187else
13188  am__EXEEXT_TRUE='#'
13189  am__EXEEXT_FALSE=
13190fi
13191
13192if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13193  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13194Usually this means the macro was only invoked conditionally." "$LINENO" 5
13195fi
13196if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13197  as_fn_error $? "conditional \"AMDEP\" was never defined.
13198Usually this means the macro was only invoked conditionally." "$LINENO" 5
13199fi
13200if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13201  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13202Usually this means the macro was only invoked conditionally." "$LINENO" 5
13203fi
13204if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
13205  as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
13206Usually this means the macro was only invoked conditionally." "$LINENO" 5
13207fi
13208
13209if test -z "${HAVE_SUN_AUDIO_TRUE}" && test -z "${HAVE_SUN_AUDIO_FALSE}"; then
13210  as_fn_error $? "conditional \"HAVE_SUN_AUDIO\" was never defined.
13211Usually this means the macro was only invoked conditionally." "$LINENO" 5
13212fi
13213if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
13214  as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
13215Usually this means the macro was only invoked conditionally." "$LINENO" 5
13216fi
13217if test -z "${HAVE_ROARAUDIO_TRUE}" && test -z "${HAVE_ROARAUDIO_FALSE}"; then
13218  as_fn_error $? "conditional \"HAVE_ROARAUDIO\" was never defined.
13219Usually this means the macro was only invoked conditionally." "$LINENO" 5
13220fi
13221
13222: "${CONFIG_STATUS=./config.status}"
13223ac_write_fail=0
13224ac_clean_files_save=$ac_clean_files
13225ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13227$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13228as_write_fail=0
13229cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13230#! $SHELL
13231# Generated by $as_me.
13232# Run this file to recreate the current configuration.
13233# Compiler output produced by configure, useful for debugging
13234# configure, is in config.log if it exists.
13235
13236debug=false
13237ac_cs_recheck=false
13238ac_cs_silent=false
13239
13240SHELL=\${CONFIG_SHELL-$SHELL}
13241export SHELL
13242_ASEOF
13243cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13244## -------------------- ##
13245## M4sh Initialization. ##
13246## -------------------- ##
13247
13248# Be more Bourne compatible
13249DUALCASE=1; export DUALCASE # for MKS sh
13250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13251  emulate sh
13252  NULLCMD=:
13253  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13254  # is contrary to our usage.  Disable this feature.
13255  alias -g '${1+"$@"}'='"$@"'
13256  setopt NO_GLOB_SUBST
13257else
13258  case `(set -o) 2>/dev/null` in #(
13259  *posix*) :
13260    set -o posix ;; #(
13261  *) :
13262     ;;
13263esac
13264fi
13265
13266
13267as_nl='
13268'
13269export as_nl
13270# Printing a long string crashes Solaris 7 /usr/bin/printf.
13271as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13272as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13274# Prefer a ksh shell builtin over an external printf program on Solaris,
13275# but without wasting forks for bash or zsh.
13276if test -z "$BASH_VERSION$ZSH_VERSION" \
13277    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13278  as_echo='print -r --'
13279  as_echo_n='print -rn --'
13280elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13281  as_echo='printf %s\n'
13282  as_echo_n='printf %s'
13283else
13284  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13285    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13286    as_echo_n='/usr/ucb/echo -n'
13287  else
13288    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13289    as_echo_n_body='eval
13290      arg=$1;
13291      case $arg in #(
13292      *"$as_nl"*)
13293	expr "X$arg" : "X\\(.*\\)$as_nl";
13294	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13295      esac;
13296      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13297    '
13298    export as_echo_n_body
13299    as_echo_n='sh -c $as_echo_n_body as_echo'
13300  fi
13301  export as_echo_body
13302  as_echo='sh -c $as_echo_body as_echo'
13303fi
13304
13305# The user is always right.
13306if test "${PATH_SEPARATOR+set}" != set; then
13307  PATH_SEPARATOR=:
13308  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13309    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13310      PATH_SEPARATOR=';'
13311  }
13312fi
13313
13314
13315# IFS
13316# We need space, tab and new line, in precisely that order.  Quoting is
13317# there to prevent editors from complaining about space-tab.
13318# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13319# splitting by setting IFS to empty value.)
13320IFS=" ""	$as_nl"
13321
13322# Find who we are.  Look in the path if we contain no directory separator.
13323as_myself=
13324case $0 in #((
13325  *[\\/]* ) as_myself=$0 ;;
13326  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329  IFS=$as_save_IFS
13330  test -z "$as_dir" && as_dir=.
13331    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13332  done
13333IFS=$as_save_IFS
13334
13335     ;;
13336esac
13337# We did not find ourselves, most probably we were run as `sh COMMAND'
13338# in which case we are not to be found in the path.
13339if test "x$as_myself" = x; then
13340  as_myself=$0
13341fi
13342if test ! -f "$as_myself"; then
13343  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13344  exit 1
13345fi
13346
13347# Unset variables that we do not need and which cause bugs (e.g. in
13348# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13349# suppresses any "Segmentation fault" message there.  '((' could
13350# trigger a bug in pdksh 5.2.14.
13351for as_var in BASH_ENV ENV MAIL MAILPATH
13352do eval test x\${$as_var+set} = xset \
13353  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13354done
13355PS1='$ '
13356PS2='> '
13357PS4='+ '
13358
13359# NLS nuisances.
13360LC_ALL=C
13361export LC_ALL
13362LANGUAGE=C
13363export LANGUAGE
13364
13365# CDPATH.
13366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13367
13368
13369# as_fn_error STATUS ERROR [LINENO LOG_FD]
13370# ----------------------------------------
13371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13373# script with STATUS, using 1 if that was 0.
13374as_fn_error ()
13375{
13376  as_status=$1; test $as_status -eq 0 && as_status=1
13377  if test "$4"; then
13378    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13379    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13380  fi
13381  $as_echo "$as_me: error: $2" >&2
13382  as_fn_exit $as_status
13383} # as_fn_error
13384
13385
13386# as_fn_set_status STATUS
13387# -----------------------
13388# Set $? to STATUS, without forking.
13389as_fn_set_status ()
13390{
13391  return $1
13392} # as_fn_set_status
13393
13394# as_fn_exit STATUS
13395# -----------------
13396# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13397as_fn_exit ()
13398{
13399  set +e
13400  as_fn_set_status $1
13401  exit $1
13402} # as_fn_exit
13403
13404# as_fn_unset VAR
13405# ---------------
13406# Portably unset VAR.
13407as_fn_unset ()
13408{
13409  { eval $1=; unset $1;}
13410}
13411as_unset=as_fn_unset
13412# as_fn_append VAR VALUE
13413# ----------------------
13414# Append the text in VALUE to the end of the definition contained in VAR. Take
13415# advantage of any shell optimizations that allow amortized linear growth over
13416# repeated appends, instead of the typical quadratic growth present in naive
13417# implementations.
13418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13419  eval 'as_fn_append ()
13420  {
13421    eval $1+=\$2
13422  }'
13423else
13424  as_fn_append ()
13425  {
13426    eval $1=\$$1\$2
13427  }
13428fi # as_fn_append
13429
13430# as_fn_arith ARG...
13431# ------------------
13432# Perform arithmetic evaluation on the ARGs, and store the result in the
13433# global $as_val. Take advantage of shells that can avoid forks. The arguments
13434# must be portable across $(()) and expr.
13435if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13436  eval 'as_fn_arith ()
13437  {
13438    as_val=$(( $* ))
13439  }'
13440else
13441  as_fn_arith ()
13442  {
13443    as_val=`expr "$@" || test $? -eq 1`
13444  }
13445fi # as_fn_arith
13446
13447
13448if expr a : '\(a\)' >/dev/null 2>&1 &&
13449   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13450  as_expr=expr
13451else
13452  as_expr=false
13453fi
13454
13455if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13456  as_basename=basename
13457else
13458  as_basename=false
13459fi
13460
13461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13462  as_dirname=dirname
13463else
13464  as_dirname=false
13465fi
13466
13467as_me=`$as_basename -- "$0" ||
13468$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13469	 X"$0" : 'X\(//\)$' \| \
13470	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13471$as_echo X/"$0" |
13472    sed '/^.*\/\([^/][^/]*\)\/*$/{
13473	    s//\1/
13474	    q
13475	  }
13476	  /^X\/\(\/\/\)$/{
13477	    s//\1/
13478	    q
13479	  }
13480	  /^X\/\(\/\).*/{
13481	    s//\1/
13482	    q
13483	  }
13484	  s/.*/./; q'`
13485
13486# Avoid depending upon Character Ranges.
13487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13490as_cr_digits='0123456789'
13491as_cr_alnum=$as_cr_Letters$as_cr_digits
13492
13493ECHO_C= ECHO_N= ECHO_T=
13494case `echo -n x` in #(((((
13495-n*)
13496  case `echo 'xy\c'` in
13497  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13498  xy)  ECHO_C='\c';;
13499  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13500       ECHO_T='	';;
13501  esac;;
13502*)
13503  ECHO_N='-n';;
13504esac
13505
13506rm -f conf$$ conf$$.exe conf$$.file
13507if test -d conf$$.dir; then
13508  rm -f conf$$.dir/conf$$.file
13509else
13510  rm -f conf$$.dir
13511  mkdir conf$$.dir 2>/dev/null
13512fi
13513if (echo >conf$$.file) 2>/dev/null; then
13514  if ln -s conf$$.file conf$$ 2>/dev/null; then
13515    as_ln_s='ln -s'
13516    # ... but there are two gotchas:
13517    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13518    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13519    # In both cases, we have to default to `cp -pR'.
13520    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13521      as_ln_s='cp -pR'
13522  elif ln conf$$.file conf$$ 2>/dev/null; then
13523    as_ln_s=ln
13524  else
13525    as_ln_s='cp -pR'
13526  fi
13527else
13528  as_ln_s='cp -pR'
13529fi
13530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13531rmdir conf$$.dir 2>/dev/null
13532
13533
13534# as_fn_mkdir_p
13535# -------------
13536# Create "$as_dir" as a directory, including parents if necessary.
13537as_fn_mkdir_p ()
13538{
13539
13540  case $as_dir in #(
13541  -*) as_dir=./$as_dir;;
13542  esac
13543  test -d "$as_dir" || eval $as_mkdir_p || {
13544    as_dirs=
13545    while :; do
13546      case $as_dir in #(
13547      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13548      *) as_qdir=$as_dir;;
13549      esac
13550      as_dirs="'$as_qdir' $as_dirs"
13551      as_dir=`$as_dirname -- "$as_dir" ||
13552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13553	 X"$as_dir" : 'X\(//\)[^/]' \| \
13554	 X"$as_dir" : 'X\(//\)$' \| \
13555	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13556$as_echo X"$as_dir" |
13557    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13558	    s//\1/
13559	    q
13560	  }
13561	  /^X\(\/\/\)[^/].*/{
13562	    s//\1/
13563	    q
13564	  }
13565	  /^X\(\/\/\)$/{
13566	    s//\1/
13567	    q
13568	  }
13569	  /^X\(\/\).*/{
13570	    s//\1/
13571	    q
13572	  }
13573	  s/.*/./; q'`
13574      test -d "$as_dir" && break
13575    done
13576    test -z "$as_dirs" || eval "mkdir $as_dirs"
13577  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13578
13579
13580} # as_fn_mkdir_p
13581if mkdir -p . 2>/dev/null; then
13582  as_mkdir_p='mkdir -p "$as_dir"'
13583else
13584  test -d ./-p && rmdir ./-p
13585  as_mkdir_p=false
13586fi
13587
13588
13589# as_fn_executable_p FILE
13590# -----------------------
13591# Test if FILE is an executable regular file.
13592as_fn_executable_p ()
13593{
13594  test -f "$1" && test -x "$1"
13595} # as_fn_executable_p
13596as_test_x='test -x'
13597as_executable_p=as_fn_executable_p
13598
13599# Sed expression to map a string onto a valid CPP name.
13600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13601
13602# Sed expression to map a string onto a valid variable name.
13603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13604
13605
13606exec 6>&1
13607## ----------------------------------- ##
13608## Main body of $CONFIG_STATUS script. ##
13609## ----------------------------------- ##
13610_ASEOF
13611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13612
13613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614# Save the log message, to keep $0 and so on meaningful, and to
13615# report actual input values of CONFIG_FILES etc. instead of their
13616# values after options handling.
13617ac_log="
13618This file was extended by IceS $as_me 2.0.3, which was
13619generated by GNU Autoconf 2.69.  Invocation command line was
13620
13621  CONFIG_FILES    = $CONFIG_FILES
13622  CONFIG_HEADERS  = $CONFIG_HEADERS
13623  CONFIG_LINKS    = $CONFIG_LINKS
13624  CONFIG_COMMANDS = $CONFIG_COMMANDS
13625  $ $0 $@
13626
13627on `(hostname || uname -n) 2>/dev/null | sed 1q`
13628"
13629
13630_ACEOF
13631
13632case $ac_config_files in *"
13633"*) set x $ac_config_files; shift; ac_config_files=$*;;
13634esac
13635
13636case $ac_config_headers in *"
13637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13638esac
13639
13640
13641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13642# Files that config.status was made for.
13643config_files="$ac_config_files"
13644config_headers="$ac_config_headers"
13645config_commands="$ac_config_commands"
13646
13647_ACEOF
13648
13649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13650ac_cs_usage="\
13651\`$as_me' instantiates files and other configuration actions
13652from templates according to the current configuration.  Unless the files
13653and actions are specified as TAGs, all are instantiated by default.
13654
13655Usage: $0 [OPTION]... [TAG]...
13656
13657  -h, --help       print this help, then exit
13658  -V, --version    print version number and configuration settings, then exit
13659      --config     print configuration, then exit
13660  -q, --quiet, --silent
13661                   do not print progress messages
13662  -d, --debug      don't remove temporary files
13663      --recheck    update $as_me by reconfiguring in the same conditions
13664      --file=FILE[:TEMPLATE]
13665                   instantiate the configuration file FILE
13666      --header=FILE[:TEMPLATE]
13667                   instantiate the configuration header FILE
13668
13669Configuration files:
13670$config_files
13671
13672Configuration headers:
13673$config_headers
13674
13675Configuration commands:
13676$config_commands
13677
13678Report bugs to <icecast@xiph.org>."
13679
13680_ACEOF
13681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13683ac_cs_version="\\
13684IceS config.status 2.0.3
13685configured by $0, generated by GNU Autoconf 2.69,
13686  with options \\"\$ac_cs_config\\"
13687
13688Copyright (C) 2012 Free Software Foundation, Inc.
13689This config.status script is free software; the Free Software Foundation
13690gives unlimited permission to copy, distribute and modify it."
13691
13692ac_pwd='$ac_pwd'
13693srcdir='$srcdir'
13694INSTALL='$INSTALL'
13695MKDIR_P='$MKDIR_P'
13696AWK='$AWK'
13697test -n "\$AWK" || AWK=awk
13698_ACEOF
13699
13700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13701# The default lists apply if the user does not specify any file.
13702ac_need_defaults=:
13703while test $# != 0
13704do
13705  case $1 in
13706  --*=?*)
13707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13708    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13709    ac_shift=:
13710    ;;
13711  --*=)
13712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13713    ac_optarg=
13714    ac_shift=:
13715    ;;
13716  *)
13717    ac_option=$1
13718    ac_optarg=$2
13719    ac_shift=shift
13720    ;;
13721  esac
13722
13723  case $ac_option in
13724  # Handling of the options.
13725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13726    ac_cs_recheck=: ;;
13727  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13728    $as_echo "$ac_cs_version"; exit ;;
13729  --config | --confi | --conf | --con | --co | --c )
13730    $as_echo "$ac_cs_config"; exit ;;
13731  --debug | --debu | --deb | --de | --d | -d )
13732    debug=: ;;
13733  --file | --fil | --fi | --f )
13734    $ac_shift
13735    case $ac_optarg in
13736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13737    '') as_fn_error $? "missing file argument" ;;
13738    esac
13739    as_fn_append CONFIG_FILES " '$ac_optarg'"
13740    ac_need_defaults=false;;
13741  --header | --heade | --head | --hea )
13742    $ac_shift
13743    case $ac_optarg in
13744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13745    esac
13746    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13747    ac_need_defaults=false;;
13748  --he | --h)
13749    # Conflict between --help and --header
13750    as_fn_error $? "ambiguous option: \`$1'
13751Try \`$0 --help' for more information.";;
13752  --help | --hel | -h )
13753    $as_echo "$ac_cs_usage"; exit ;;
13754  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13755  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13756    ac_cs_silent=: ;;
13757
13758  # This is an error.
13759  -*) as_fn_error $? "unrecognized option: \`$1'
13760Try \`$0 --help' for more information." ;;
13761
13762  *) as_fn_append ac_config_targets " $1"
13763     ac_need_defaults=false ;;
13764
13765  esac
13766  shift
13767done
13768
13769ac_configure_extra_args=
13770
13771if $ac_cs_silent; then
13772  exec 6>/dev/null
13773  ac_configure_extra_args="$ac_configure_extra_args --silent"
13774fi
13775
13776_ACEOF
13777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13778if \$ac_cs_recheck; then
13779  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13780  shift
13781  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13782  CONFIG_SHELL='$SHELL'
13783  export CONFIG_SHELL
13784  exec "\$@"
13785fi
13786
13787_ACEOF
13788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13789exec 5>>config.log
13790{
13791  echo
13792  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13793## Running $as_me. ##
13794_ASBOX
13795  $as_echo "$ac_log"
13796} >&5
13797
13798_ACEOF
13799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13800#
13801# INIT-COMMANDS
13802#
13803AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13804
13805
13806# The HP-UX ksh and POSIX shell print the target directory to stdout
13807# if CDPATH is set.
13808(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13809
13810sed_quote_subst='$sed_quote_subst'
13811double_quote_subst='$double_quote_subst'
13812delay_variable_subst='$delay_variable_subst'
13813macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13814macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13815enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13816enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13817pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13818enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13819SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13820ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13821PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13822host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13823host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13824host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13825build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13826build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13827build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13828SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13829Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13830GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13831EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13832FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13833LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13834NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13835LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13836max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13837ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13838exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13839lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13840lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13841lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13842lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13843lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13844reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13845reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13846OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13847deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13848file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13849file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13850want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13851DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13852sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13853AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13854AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13855archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13856STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13857RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13858old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13859old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13860old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13861lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13862CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13863CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13864compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13865GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13866lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13867lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13868lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13869lt_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"`'
13870nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13871lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13872objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13873MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13874lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13875lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13876lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13877lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13878lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13879need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13880MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13881DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13882NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13883LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13884OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13885OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13886libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13887shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13888extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13889archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13890enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13891export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13892whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13893compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13894old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13895old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13896archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13897archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13898module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13899module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13900with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13901allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13902no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13903hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13904hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13905hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13906hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13907hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13908hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13909hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13910inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13911link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13912always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13913export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13914exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13915include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13916prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13917postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13918file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13919variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13920need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13921need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13922version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13923runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13924shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13925shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13926libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13927library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13928soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13929install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13930postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13931postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13932finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13933finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13934hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13935sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13936sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13937hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13938enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13939enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13940enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13941old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13942striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13943
13944LTCC='$LTCC'
13945LTCFLAGS='$LTCFLAGS'
13946compiler='$compiler_DEFAULT'
13947
13948# A function that is used when there is no print builtin or printf.
13949func_fallback_echo ()
13950{
13951  eval 'cat <<_LTECHO_EOF
13952\$1
13953_LTECHO_EOF'
13954}
13955
13956# Quote evaled strings.
13957for var in SHELL \
13958ECHO \
13959PATH_SEPARATOR \
13960SED \
13961GREP \
13962EGREP \
13963FGREP \
13964LD \
13965NM \
13966LN_S \
13967lt_SP2NL \
13968lt_NL2SP \
13969reload_flag \
13970OBJDUMP \
13971deplibs_check_method \
13972file_magic_cmd \
13973file_magic_glob \
13974want_nocaseglob \
13975DLLTOOL \
13976sharedlib_from_linklib_cmd \
13977AR \
13978AR_FLAGS \
13979archiver_list_spec \
13980STRIP \
13981RANLIB \
13982CC \
13983CFLAGS \
13984compiler \
13985lt_cv_sys_global_symbol_pipe \
13986lt_cv_sys_global_symbol_to_cdecl \
13987lt_cv_sys_global_symbol_to_c_name_address \
13988lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13989nm_file_list_spec \
13990lt_prog_compiler_no_builtin_flag \
13991lt_prog_compiler_pic \
13992lt_prog_compiler_wl \
13993lt_prog_compiler_static \
13994lt_cv_prog_compiler_c_o \
13995need_locks \
13996MANIFEST_TOOL \
13997DSYMUTIL \
13998NMEDIT \
13999LIPO \
14000OTOOL \
14001OTOOL64 \
14002shrext_cmds \
14003export_dynamic_flag_spec \
14004whole_archive_flag_spec \
14005compiler_needs_object \
14006with_gnu_ld \
14007allow_undefined_flag \
14008no_undefined_flag \
14009hardcode_libdir_flag_spec \
14010hardcode_libdir_separator \
14011exclude_expsyms \
14012include_expsyms \
14013file_list_spec \
14014variables_saved_for_relink \
14015libname_spec \
14016library_names_spec \
14017soname_spec \
14018install_override_mode \
14019finish_eval \
14020old_striplib \
14021striplib; do
14022    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14023    *[\\\\\\\`\\"\\\$]*)
14024      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14025      ;;
14026    *)
14027      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14028      ;;
14029    esac
14030done
14031
14032# Double-quote double-evaled strings.
14033for var in reload_cmds \
14034old_postinstall_cmds \
14035old_postuninstall_cmds \
14036old_archive_cmds \
14037extract_expsyms_cmds \
14038old_archive_from_new_cmds \
14039old_archive_from_expsyms_cmds \
14040archive_cmds \
14041archive_expsym_cmds \
14042module_cmds \
14043module_expsym_cmds \
14044export_symbols_cmds \
14045prelink_cmds \
14046postlink_cmds \
14047postinstall_cmds \
14048postuninstall_cmds \
14049finish_cmds \
14050sys_lib_search_path_spec \
14051sys_lib_dlsearch_path_spec; do
14052    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14053    *[\\\\\\\`\\"\\\$]*)
14054      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14055      ;;
14056    *)
14057      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14058      ;;
14059    esac
14060done
14061
14062ac_aux_dir='$ac_aux_dir'
14063xsi_shell='$xsi_shell'
14064lt_shell_append='$lt_shell_append'
14065
14066# See if we are running on zsh, and set the options which allow our
14067# commands through without removal of \ escapes INIT.
14068if test -n "\${ZSH_VERSION+set}" ; then
14069   setopt NO_GLOB_SUBST
14070fi
14071
14072
14073    PACKAGE='$PACKAGE'
14074    VERSION='$VERSION'
14075    TIMESTAMP='$TIMESTAMP'
14076    RM='$RM'
14077    ofile='$ofile'
14078
14079
14080
14081
14082_ACEOF
14083
14084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14085
14086# Handling of arguments.
14087for ac_config_target in $ac_config_targets
14088do
14089  case $ac_config_target in
14090    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14091    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14092    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14093    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14094    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
14095    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14096    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14097    "src/common/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/log/Makefile" ;;
14098    "src/common/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/timing/Makefile" ;;
14099    "src/common/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/thread/Makefile" ;;
14100    "src/common/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/avl/Makefile" ;;
14101
14102  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14103  esac
14104done
14105
14106
14107# If the user did not use the arguments to specify the items to instantiate,
14108# then the envvar interface is used.  Set only those that are not.
14109# We use the long form for the default assignment because of an extremely
14110# bizarre bug on SunOS 4.1.3.
14111if $ac_need_defaults; then
14112  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14113  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14114  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14115fi
14116
14117# Have a temporary directory for convenience.  Make it in the build tree
14118# simply because there is no reason against having it here, and in addition,
14119# creating and moving files from /tmp can sometimes cause problems.
14120# Hook for its removal unless debugging.
14121# Note that there is a small window in which the directory will not be cleaned:
14122# after its creation but before its name has been assigned to `$tmp'.
14123$debug ||
14124{
14125  tmp= ac_tmp=
14126  trap 'exit_status=$?
14127  : "${ac_tmp:=$tmp}"
14128  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14129' 0
14130  trap 'as_fn_exit 1' 1 2 13 15
14131}
14132# Create a (secure) tmp directory for tmp files.
14133
14134{
14135  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14136  test -d "$tmp"
14137}  ||
14138{
14139  tmp=./conf$$-$RANDOM
14140  (umask 077 && mkdir "$tmp")
14141} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14142ac_tmp=$tmp
14143
14144# Set up the scripts for CONFIG_FILES section.
14145# No need to generate them if there are no CONFIG_FILES.
14146# This happens for instance with `./config.status config.h'.
14147if test -n "$CONFIG_FILES"; then
14148
14149
14150ac_cr=`echo X | tr X '\015'`
14151# On cygwin, bash can eat \r inside `` if the user requested igncr.
14152# But we know of no other shell where ac_cr would be empty at this
14153# point, so we can use a bashism as a fallback.
14154if test "x$ac_cr" = x; then
14155  eval ac_cr=\$\'\\r\'
14156fi
14157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14159  ac_cs_awk_cr='\\r'
14160else
14161  ac_cs_awk_cr=$ac_cr
14162fi
14163
14164echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14165_ACEOF
14166
14167
14168{
14169  echo "cat >conf$$subs.awk <<_ACEOF" &&
14170  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14171  echo "_ACEOF"
14172} >conf$$subs.sh ||
14173  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14174ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14175ac_delim='%!_!# '
14176for ac_last_try in false false false false false :; do
14177  . ./conf$$subs.sh ||
14178    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14179
14180  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14181  if test $ac_delim_n = $ac_delim_num; then
14182    break
14183  elif $ac_last_try; then
14184    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14185  else
14186    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14187  fi
14188done
14189rm -f conf$$subs.sh
14190
14191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14192cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14193_ACEOF
14194sed -n '
14195h
14196s/^/S["/; s/!.*/"]=/
14197p
14198g
14199s/^[^!]*!//
14200:repl
14201t repl
14202s/'"$ac_delim"'$//
14203t delim
14204:nl
14205h
14206s/\(.\{148\}\)..*/\1/
14207t more1
14208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14209p
14210n
14211b repl
14212:more1
14213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14214p
14215g
14216s/.\{148\}//
14217t nl
14218:delim
14219h
14220s/\(.\{148\}\)..*/\1/
14221t more2
14222s/["\\]/\\&/g; s/^/"/; s/$/"/
14223p
14224b
14225:more2
14226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14227p
14228g
14229s/.\{148\}//
14230t delim
14231' <conf$$subs.awk | sed '
14232/^[^""]/{
14233  N
14234  s/\n//
14235}
14236' >>$CONFIG_STATUS || ac_write_fail=1
14237rm -f conf$$subs.awk
14238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14239_ACAWK
14240cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14241  for (key in S) S_is_set[key] = 1
14242  FS = ""
14243
14244}
14245{
14246  line = $ 0
14247  nfields = split(line, field, "@")
14248  substed = 0
14249  len = length(field[1])
14250  for (i = 2; i < nfields; i++) {
14251    key = field[i]
14252    keylen = length(key)
14253    if (S_is_set[key]) {
14254      value = S[key]
14255      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14256      len += length(value) + length(field[++i])
14257      substed = 1
14258    } else
14259      len += 1 + keylen
14260  }
14261
14262  print line
14263}
14264
14265_ACAWK
14266_ACEOF
14267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14269  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14270else
14271  cat
14272fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14273  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14274_ACEOF
14275
14276# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14277# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14278# trailing colons and then remove the whole line if VPATH becomes empty
14279# (actually we leave an empty line to preserve line numbers).
14280if test "x$srcdir" = x.; then
14281  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14282h
14283s///
14284s/^/:/
14285s/[	 ]*$/:/
14286s/:\$(srcdir):/:/g
14287s/:\${srcdir}:/:/g
14288s/:@srcdir@:/:/g
14289s/^:*//
14290s/:*$//
14291x
14292s/\(=[	 ]*\).*/\1/
14293G
14294s/\n//
14295s/^[^=]*=[	 ]*$//
14296}'
14297fi
14298
14299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14300fi # test -n "$CONFIG_FILES"
14301
14302# Set up the scripts for CONFIG_HEADERS section.
14303# No need to generate them if there are no CONFIG_HEADERS.
14304# This happens for instance with `./config.status Makefile'.
14305if test -n "$CONFIG_HEADERS"; then
14306cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14307BEGIN {
14308_ACEOF
14309
14310# Transform confdefs.h into an awk script `defines.awk', embedded as
14311# here-document in config.status, that substitutes the proper values into
14312# config.h.in to produce config.h.
14313
14314# Create a delimiter string that does not exist in confdefs.h, to ease
14315# handling of long lines.
14316ac_delim='%!_!# '
14317for ac_last_try in false false :; do
14318  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14319  if test -z "$ac_tt"; then
14320    break
14321  elif $ac_last_try; then
14322    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14323  else
14324    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14325  fi
14326done
14327
14328# For the awk script, D is an array of macro values keyed by name,
14329# likewise P contains macro parameters if any.  Preserve backslash
14330# newline sequences.
14331
14332ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14333sed -n '
14334s/.\{148\}/&'"$ac_delim"'/g
14335t rset
14336:rset
14337s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14338t def
14339d
14340:def
14341s/\\$//
14342t bsnl
14343s/["\\]/\\&/g
14344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14345D["\1"]=" \3"/p
14346s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14347d
14348:bsnl
14349s/["\\]/\\&/g
14350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14351D["\1"]=" \3\\\\\\n"\\/p
14352t cont
14353s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14354t cont
14355d
14356:cont
14357n
14358s/.\{148\}/&'"$ac_delim"'/g
14359t clear
14360:clear
14361s/\\$//
14362t bsnlc
14363s/["\\]/\\&/g; s/^/"/; s/$/"/p
14364d
14365:bsnlc
14366s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14367b cont
14368' <confdefs.h | sed '
14369s/'"$ac_delim"'/"\\\
14370"/g' >>$CONFIG_STATUS || ac_write_fail=1
14371
14372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14373  for (key in D) D_is_set[key] = 1
14374  FS = ""
14375}
14376/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14377  line = \$ 0
14378  split(line, arg, " ")
14379  if (arg[1] == "#") {
14380    defundef = arg[2]
14381    mac1 = arg[3]
14382  } else {
14383    defundef = substr(arg[1], 2)
14384    mac1 = arg[2]
14385  }
14386  split(mac1, mac2, "(") #)
14387  macro = mac2[1]
14388  prefix = substr(line, 1, index(line, defundef) - 1)
14389  if (D_is_set[macro]) {
14390    # Preserve the white space surrounding the "#".
14391    print prefix "define", macro P[macro] D[macro]
14392    next
14393  } else {
14394    # Replace #undef with comments.  This is necessary, for example,
14395    # in the case of _POSIX_SOURCE, which is predefined and required
14396    # on some systems where configure will not decide to define it.
14397    if (defundef == "undef") {
14398      print "/*", prefix defundef, macro, "*/"
14399      next
14400    }
14401  }
14402}
14403{ print }
14404_ACAWK
14405_ACEOF
14406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14407  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14408fi # test -n "$CONFIG_HEADERS"
14409
14410
14411eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14412shift
14413for ac_tag
14414do
14415  case $ac_tag in
14416  :[FHLC]) ac_mode=$ac_tag; continue;;
14417  esac
14418  case $ac_mode$ac_tag in
14419  :[FHL]*:*);;
14420  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14421  :[FH]-) ac_tag=-:-;;
14422  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14423  esac
14424  ac_save_IFS=$IFS
14425  IFS=:
14426  set x $ac_tag
14427  IFS=$ac_save_IFS
14428  shift
14429  ac_file=$1
14430  shift
14431
14432  case $ac_mode in
14433  :L) ac_source=$1;;
14434  :[FH])
14435    ac_file_inputs=
14436    for ac_f
14437    do
14438      case $ac_f in
14439      -) ac_f="$ac_tmp/stdin";;
14440      *) # Look for the file first in the build tree, then in the source tree
14441	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14442	 # because $ac_f cannot contain `:'.
14443	 test -f "$ac_f" ||
14444	   case $ac_f in
14445	   [\\/$]*) false;;
14446	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14447	   esac ||
14448	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14449      esac
14450      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14451      as_fn_append ac_file_inputs " '$ac_f'"
14452    done
14453
14454    # Let's still pretend it is `configure' which instantiates (i.e., don't
14455    # use $as_me), people would be surprised to read:
14456    #    /* config.h.  Generated by config.status.  */
14457    configure_input='Generated from '`
14458	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14459	`' by configure.'
14460    if test x"$ac_file" != x-; then
14461      configure_input="$ac_file.  $configure_input"
14462      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14463$as_echo "$as_me: creating $ac_file" >&6;}
14464    fi
14465    # Neutralize special characters interpreted by sed in replacement strings.
14466    case $configure_input in #(
14467    *\&* | *\|* | *\\* )
14468       ac_sed_conf_input=`$as_echo "$configure_input" |
14469       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14470    *) ac_sed_conf_input=$configure_input;;
14471    esac
14472
14473    case $ac_tag in
14474    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14475      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14476    esac
14477    ;;
14478  esac
14479
14480  ac_dir=`$as_dirname -- "$ac_file" ||
14481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14482	 X"$ac_file" : 'X\(//\)[^/]' \| \
14483	 X"$ac_file" : 'X\(//\)$' \| \
14484	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14485$as_echo X"$ac_file" |
14486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14487	    s//\1/
14488	    q
14489	  }
14490	  /^X\(\/\/\)[^/].*/{
14491	    s//\1/
14492	    q
14493	  }
14494	  /^X\(\/\/\)$/{
14495	    s//\1/
14496	    q
14497	  }
14498	  /^X\(\/\).*/{
14499	    s//\1/
14500	    q
14501	  }
14502	  s/.*/./; q'`
14503  as_dir="$ac_dir"; as_fn_mkdir_p
14504  ac_builddir=.
14505
14506case "$ac_dir" in
14507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14508*)
14509  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14510  # A ".." for each directory in $ac_dir_suffix.
14511  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14512  case $ac_top_builddir_sub in
14513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14515  esac ;;
14516esac
14517ac_abs_top_builddir=$ac_pwd
14518ac_abs_builddir=$ac_pwd$ac_dir_suffix
14519# for backward compatibility:
14520ac_top_builddir=$ac_top_build_prefix
14521
14522case $srcdir in
14523  .)  # We are building in place.
14524    ac_srcdir=.
14525    ac_top_srcdir=$ac_top_builddir_sub
14526    ac_abs_top_srcdir=$ac_pwd ;;
14527  [\\/]* | ?:[\\/]* )  # Absolute name.
14528    ac_srcdir=$srcdir$ac_dir_suffix;
14529    ac_top_srcdir=$srcdir
14530    ac_abs_top_srcdir=$srcdir ;;
14531  *) # Relative name.
14532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14533    ac_top_srcdir=$ac_top_build_prefix$srcdir
14534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14535esac
14536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14537
14538
14539  case $ac_mode in
14540  :F)
14541  #
14542  # CONFIG_FILE
14543  #
14544
14545  case $INSTALL in
14546  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14547  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14548  esac
14549  ac_MKDIR_P=$MKDIR_P
14550  case $MKDIR_P in
14551  [\\/$]* | ?:[\\/]* ) ;;
14552  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14553  esac
14554_ACEOF
14555
14556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14557# If the template does not know about datarootdir, expand it.
14558# FIXME: This hack should be removed a few years after 2.60.
14559ac_datarootdir_hack=; ac_datarootdir_seen=
14560ac_sed_dataroot='
14561/datarootdir/ {
14562  p
14563  q
14564}
14565/@datadir@/p
14566/@docdir@/p
14567/@infodir@/p
14568/@localedir@/p
14569/@mandir@/p'
14570case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14571*datarootdir*) ac_datarootdir_seen=yes;;
14572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14574$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14575_ACEOF
14576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14577  ac_datarootdir_hack='
14578  s&@datadir@&$datadir&g
14579  s&@docdir@&$docdir&g
14580  s&@infodir@&$infodir&g
14581  s&@localedir@&$localedir&g
14582  s&@mandir@&$mandir&g
14583  s&\\\${datarootdir}&$datarootdir&g' ;;
14584esac
14585_ACEOF
14586
14587# Neutralize VPATH when `$srcdir' = `.'.
14588# Shell code in configure.ac might set extrasub.
14589# FIXME: do we really want to maintain this feature?
14590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591ac_sed_extra="$ac_vpsub
14592$extrasub
14593_ACEOF
14594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595:t
14596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14597s|@configure_input@|$ac_sed_conf_input|;t t
14598s&@top_builddir@&$ac_top_builddir_sub&;t t
14599s&@top_build_prefix@&$ac_top_build_prefix&;t t
14600s&@srcdir@&$ac_srcdir&;t t
14601s&@abs_srcdir@&$ac_abs_srcdir&;t t
14602s&@top_srcdir@&$ac_top_srcdir&;t t
14603s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14604s&@builddir@&$ac_builddir&;t t
14605s&@abs_builddir@&$ac_abs_builddir&;t t
14606s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14607s&@INSTALL@&$ac_INSTALL&;t t
14608s&@MKDIR_P@&$ac_MKDIR_P&;t t
14609$ac_datarootdir_hack
14610"
14611eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14612  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14613
14614test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14615  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14616  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14617      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14619which seems to be undefined.  Please make sure it is defined" >&5
14620$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14621which seems to be undefined.  Please make sure it is defined" >&2;}
14622
14623  rm -f "$ac_tmp/stdin"
14624  case $ac_file in
14625  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14626  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14627  esac \
14628  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14629 ;;
14630  :H)
14631  #
14632  # CONFIG_HEADER
14633  #
14634  if test x"$ac_file" != x-; then
14635    {
14636      $as_echo "/* $configure_input  */" \
14637      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14638    } >"$ac_tmp/config.h" \
14639      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14640    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14641      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14642$as_echo "$as_me: $ac_file is unchanged" >&6;}
14643    else
14644      rm -f "$ac_file"
14645      mv "$ac_tmp/config.h" "$ac_file" \
14646	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14647    fi
14648  else
14649    $as_echo "/* $configure_input  */" \
14650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14651      || as_fn_error $? "could not create -" "$LINENO" 5
14652  fi
14653# Compute "$ac_file"'s index in $config_headers.
14654_am_arg="$ac_file"
14655_am_stamp_count=1
14656for _am_header in $config_headers :; do
14657  case $_am_header in
14658    $_am_arg | $_am_arg:* )
14659      break ;;
14660    * )
14661      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14662  esac
14663done
14664echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14665$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14666	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14667	 X"$_am_arg" : 'X\(//\)$' \| \
14668	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14669$as_echo X"$_am_arg" |
14670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14671	    s//\1/
14672	    q
14673	  }
14674	  /^X\(\/\/\)[^/].*/{
14675	    s//\1/
14676	    q
14677	  }
14678	  /^X\(\/\/\)$/{
14679	    s//\1/
14680	    q
14681	  }
14682	  /^X\(\/\).*/{
14683	    s//\1/
14684	    q
14685	  }
14686	  s/.*/./; q'`/stamp-h$_am_stamp_count
14687 ;;
14688
14689  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14690$as_echo "$as_me: executing $ac_file commands" >&6;}
14691 ;;
14692  esac
14693
14694
14695  case $ac_file$ac_mode in
14696    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14697  # Older Autoconf quotes --file arguments for eval, but not when files
14698  # are listed without --file.  Let's play safe and only enable the eval
14699  # if we detect the quoting.
14700  case $CONFIG_FILES in
14701  *\'*) eval set x "$CONFIG_FILES" ;;
14702  *)   set x $CONFIG_FILES ;;
14703  esac
14704  shift
14705  for mf
14706  do
14707    # Strip MF so we end up with the name of the file.
14708    mf=`echo "$mf" | sed -e 's/:.*$//'`
14709    # Check whether this is an Automake generated Makefile or not.
14710    # We used to match only the files named 'Makefile.in', but
14711    # some people rename them; so instead we look at the file content.
14712    # Grep'ing the first line is not enough: some people post-process
14713    # each Makefile.in and add a new line on top of each file to say so.
14714    # Grep'ing the whole file is not good either: AIX grep has a line
14715    # limit of 2048, but all sed's we know have understand at least 4000.
14716    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14717      dirpart=`$as_dirname -- "$mf" ||
14718$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14719	 X"$mf" : 'X\(//\)[^/]' \| \
14720	 X"$mf" : 'X\(//\)$' \| \
14721	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14722$as_echo X"$mf" |
14723    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14724	    s//\1/
14725	    q
14726	  }
14727	  /^X\(\/\/\)[^/].*/{
14728	    s//\1/
14729	    q
14730	  }
14731	  /^X\(\/\/\)$/{
14732	    s//\1/
14733	    q
14734	  }
14735	  /^X\(\/\).*/{
14736	    s//\1/
14737	    q
14738	  }
14739	  s/.*/./; q'`
14740    else
14741      continue
14742    fi
14743    # Extract the definition of DEPDIR, am__include, and am__quote
14744    # from the Makefile without running 'make'.
14745    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14746    test -z "$DEPDIR" && continue
14747    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14748    test -z "$am__include" && continue
14749    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14750    # Find all dependency output files, they are included files with
14751    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14752    # simplest approach to changing $(DEPDIR) to its actual value in the
14753    # expansion.
14754    for file in `sed -n "
14755      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14756	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14757      # Make sure the directory exists.
14758      test -f "$dirpart/$file" && continue
14759      fdir=`$as_dirname -- "$file" ||
14760$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14761	 X"$file" : 'X\(//\)[^/]' \| \
14762	 X"$file" : 'X\(//\)$' \| \
14763	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14764$as_echo X"$file" |
14765    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14766	    s//\1/
14767	    q
14768	  }
14769	  /^X\(\/\/\)[^/].*/{
14770	    s//\1/
14771	    q
14772	  }
14773	  /^X\(\/\/\)$/{
14774	    s//\1/
14775	    q
14776	  }
14777	  /^X\(\/\).*/{
14778	    s//\1/
14779	    q
14780	  }
14781	  s/.*/./; q'`
14782      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14783      # echo "creating $dirpart/$file"
14784      echo '# dummy' > "$dirpart/$file"
14785    done
14786  done
14787}
14788 ;;
14789    "libtool":C)
14790
14791    # See if we are running on zsh, and set the options which allow our
14792    # commands through without removal of \ escapes.
14793    if test -n "${ZSH_VERSION+set}" ; then
14794      setopt NO_GLOB_SUBST
14795    fi
14796
14797    cfgfile="${ofile}T"
14798    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14799    $RM "$cfgfile"
14800
14801    cat <<_LT_EOF >> "$cfgfile"
14802#! $SHELL
14803
14804# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14805# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14807# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14808#
14809#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14810#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14811#                 Foundation, Inc.
14812#   Written by Gordon Matzigkeit, 1996
14813#
14814#   This file is part of GNU Libtool.
14815#
14816# GNU Libtool is free software; you can redistribute it and/or
14817# modify it under the terms of the GNU General Public License as
14818# published by the Free Software Foundation; either version 2 of
14819# the License, or (at your option) any later version.
14820#
14821# As a special exception to the GNU General Public License,
14822# if you distribute this file as part of a program or library that
14823# is built using GNU Libtool, you may include this file under the
14824# same distribution terms that you use for the rest of that program.
14825#
14826# GNU Libtool is distributed in the hope that it will be useful,
14827# but WITHOUT ANY WARRANTY; without even the implied warranty of
14828# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14829# GNU General Public License for more details.
14830#
14831# You should have received a copy of the GNU General Public License
14832# along with GNU Libtool; see the file COPYING.  If not, a copy
14833# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14834# obtained by writing to the Free Software Foundation, Inc.,
14835# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14836
14837
14838# The names of the tagged configurations supported by this script.
14839available_tags=""
14840
14841# ### BEGIN LIBTOOL CONFIG
14842
14843# Which release of libtool.m4 was used?
14844macro_version=$macro_version
14845macro_revision=$macro_revision
14846
14847# Whether or not to build shared libraries.
14848build_libtool_libs=$enable_shared
14849
14850# Whether or not to build static libraries.
14851build_old_libs=$enable_static
14852
14853# What type of objects to build.
14854pic_mode=$pic_mode
14855
14856# Whether or not to optimize for fast installation.
14857fast_install=$enable_fast_install
14858
14859# Shell to use when invoking shell scripts.
14860SHELL=$lt_SHELL
14861
14862# An echo program that protects backslashes.
14863ECHO=$lt_ECHO
14864
14865# The PATH separator for the build system.
14866PATH_SEPARATOR=$lt_PATH_SEPARATOR
14867
14868# The host system.
14869host_alias=$host_alias
14870host=$host
14871host_os=$host_os
14872
14873# The build system.
14874build_alias=$build_alias
14875build=$build
14876build_os=$build_os
14877
14878# A sed program that does not truncate output.
14879SED=$lt_SED
14880
14881# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14882Xsed="\$SED -e 1s/^X//"
14883
14884# A grep program that handles long lines.
14885GREP=$lt_GREP
14886
14887# An ERE matcher.
14888EGREP=$lt_EGREP
14889
14890# A literal string matcher.
14891FGREP=$lt_FGREP
14892
14893# A BSD- or MS-compatible name lister.
14894NM=$lt_NM
14895
14896# Whether we need soft or hard links.
14897LN_S=$lt_LN_S
14898
14899# What is the maximum length of a command?
14900max_cmd_len=$max_cmd_len
14901
14902# Object file suffix (normally "o").
14903objext=$ac_objext
14904
14905# Executable file suffix (normally "").
14906exeext=$exeext
14907
14908# whether the shell understands "unset".
14909lt_unset=$lt_unset
14910
14911# turn spaces into newlines.
14912SP2NL=$lt_lt_SP2NL
14913
14914# turn newlines into spaces.
14915NL2SP=$lt_lt_NL2SP
14916
14917# convert \$build file names to \$host format.
14918to_host_file_cmd=$lt_cv_to_host_file_cmd
14919
14920# convert \$build files to toolchain format.
14921to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14922
14923# An object symbol dumper.
14924OBJDUMP=$lt_OBJDUMP
14925
14926# Method to check whether dependent libraries are shared objects.
14927deplibs_check_method=$lt_deplibs_check_method
14928
14929# Command to use when deplibs_check_method = "file_magic".
14930file_magic_cmd=$lt_file_magic_cmd
14931
14932# How to find potential files when deplibs_check_method = "file_magic".
14933file_magic_glob=$lt_file_magic_glob
14934
14935# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14936want_nocaseglob=$lt_want_nocaseglob
14937
14938# DLL creation program.
14939DLLTOOL=$lt_DLLTOOL
14940
14941# Command to associate shared and link libraries.
14942sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14943
14944# The archiver.
14945AR=$lt_AR
14946
14947# Flags to create an archive.
14948AR_FLAGS=$lt_AR_FLAGS
14949
14950# How to feed a file listing to the archiver.
14951archiver_list_spec=$lt_archiver_list_spec
14952
14953# A symbol stripping program.
14954STRIP=$lt_STRIP
14955
14956# Commands used to install an old-style archive.
14957RANLIB=$lt_RANLIB
14958old_postinstall_cmds=$lt_old_postinstall_cmds
14959old_postuninstall_cmds=$lt_old_postuninstall_cmds
14960
14961# Whether to use a lock for old archive extraction.
14962lock_old_archive_extraction=$lock_old_archive_extraction
14963
14964# A C compiler.
14965LTCC=$lt_CC
14966
14967# LTCC compiler flags.
14968LTCFLAGS=$lt_CFLAGS
14969
14970# Take the output of nm and produce a listing of raw symbols and C names.
14971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14972
14973# Transform the output of nm in a proper C declaration.
14974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14975
14976# Transform the output of nm in a C name address pair.
14977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14978
14979# Transform the output of nm in a C name address pair when lib prefix is needed.
14980global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14981
14982# Specify filename containing input files for \$NM.
14983nm_file_list_spec=$lt_nm_file_list_spec
14984
14985# The root where to search for dependent libraries,and in which our libraries should be installed.
14986lt_sysroot=$lt_sysroot
14987
14988# The name of the directory that contains temporary libtool files.
14989objdir=$objdir
14990
14991# Used to examine libraries when file_magic_cmd begins with "file".
14992MAGIC_CMD=$MAGIC_CMD
14993
14994# Must we lock files when doing compilation?
14995need_locks=$lt_need_locks
14996
14997# Manifest tool.
14998MANIFEST_TOOL=$lt_MANIFEST_TOOL
14999
15000# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15001DSYMUTIL=$lt_DSYMUTIL
15002
15003# Tool to change global to local symbols on Mac OS X.
15004NMEDIT=$lt_NMEDIT
15005
15006# Tool to manipulate fat objects and archives on Mac OS X.
15007LIPO=$lt_LIPO
15008
15009# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15010OTOOL=$lt_OTOOL
15011
15012# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15013OTOOL64=$lt_OTOOL64
15014
15015# Old archive suffix (normally "a").
15016libext=$libext
15017
15018# Shared library suffix (normally ".so").
15019shrext_cmds=$lt_shrext_cmds
15020
15021# The commands to extract the exported symbol list from a shared archive.
15022extract_expsyms_cmds=$lt_extract_expsyms_cmds
15023
15024# Variables whose values should be saved in libtool wrapper scripts and
15025# restored at link time.
15026variables_saved_for_relink=$lt_variables_saved_for_relink
15027
15028# Do we need the "lib" prefix for modules?
15029need_lib_prefix=$need_lib_prefix
15030
15031# Do we need a version for libraries?
15032need_version=$need_version
15033
15034# Library versioning type.
15035version_type=$version_type
15036
15037# Shared library runtime path variable.
15038runpath_var=$runpath_var
15039
15040# Shared library path variable.
15041shlibpath_var=$shlibpath_var
15042
15043# Is shlibpath searched before the hard-coded library search path?
15044shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15045
15046# Format of library name prefix.
15047libname_spec=$lt_libname_spec
15048
15049# List of archive names.  First name is the real one, the rest are links.
15050# The last name is the one that the linker finds with -lNAME
15051library_names_spec=$lt_library_names_spec
15052
15053# The coded name of the library, if different from the real name.
15054soname_spec=$lt_soname_spec
15055
15056# Permission mode override for installation of shared libraries.
15057install_override_mode=$lt_install_override_mode
15058
15059# Command to use after installation of a shared archive.
15060postinstall_cmds=$lt_postinstall_cmds
15061
15062# Command to use after uninstallation of a shared archive.
15063postuninstall_cmds=$lt_postuninstall_cmds
15064
15065# Commands used to finish a libtool library installation in a directory.
15066finish_cmds=$lt_finish_cmds
15067
15068# As "finish_cmds", except a single script fragment to be evaled but
15069# not shown.
15070finish_eval=$lt_finish_eval
15071
15072# Whether we should hardcode library paths into libraries.
15073hardcode_into_libs=$hardcode_into_libs
15074
15075# Compile-time system search path for libraries.
15076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15077
15078# Run-time system search path for libraries.
15079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15080
15081# Whether dlopen is supported.
15082dlopen_support=$enable_dlopen
15083
15084# Whether dlopen of programs is supported.
15085dlopen_self=$enable_dlopen_self
15086
15087# Whether dlopen of statically linked programs is supported.
15088dlopen_self_static=$enable_dlopen_self_static
15089
15090# Commands to strip libraries.
15091old_striplib=$lt_old_striplib
15092striplib=$lt_striplib
15093
15094
15095# The linker used to build libraries.
15096LD=$lt_LD
15097
15098# How to create reloadable object files.
15099reload_flag=$lt_reload_flag
15100reload_cmds=$lt_reload_cmds
15101
15102# Commands used to build an old-style archive.
15103old_archive_cmds=$lt_old_archive_cmds
15104
15105# A language specific compiler.
15106CC=$lt_compiler
15107
15108# Is the compiler the GNU compiler?
15109with_gcc=$GCC
15110
15111# Compiler flag to turn off builtin functions.
15112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15113
15114# Additional compiler flags for building library objects.
15115pic_flag=$lt_lt_prog_compiler_pic
15116
15117# How to pass a linker flag through the compiler.
15118wl=$lt_lt_prog_compiler_wl
15119
15120# Compiler flag to prevent dynamic linking.
15121link_static_flag=$lt_lt_prog_compiler_static
15122
15123# Does compiler simultaneously support -c and -o options?
15124compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15125
15126# Whether or not to add -lc for building shared libraries.
15127build_libtool_need_lc=$archive_cmds_need_lc
15128
15129# Whether or not to disallow shared libs when runtime libs are static.
15130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15131
15132# Compiler flag to allow reflexive dlopens.
15133export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15134
15135# Compiler flag to generate shared objects directly from archives.
15136whole_archive_flag_spec=$lt_whole_archive_flag_spec
15137
15138# Whether the compiler copes with passing no objects directly.
15139compiler_needs_object=$lt_compiler_needs_object
15140
15141# Create an old-style archive from a shared archive.
15142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15143
15144# Create a temporary old-style archive to link instead of a shared archive.
15145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15146
15147# Commands used to build a shared archive.
15148archive_cmds=$lt_archive_cmds
15149archive_expsym_cmds=$lt_archive_expsym_cmds
15150
15151# Commands used to build a loadable module if different from building
15152# a shared archive.
15153module_cmds=$lt_module_cmds
15154module_expsym_cmds=$lt_module_expsym_cmds
15155
15156# Whether we are building with GNU ld or not.
15157with_gnu_ld=$lt_with_gnu_ld
15158
15159# Flag that allows shared libraries with undefined symbols to be built.
15160allow_undefined_flag=$lt_allow_undefined_flag
15161
15162# Flag that enforces no undefined symbols.
15163no_undefined_flag=$lt_no_undefined_flag
15164
15165# Flag to hardcode \$libdir into a binary during linking.
15166# This must work even if \$libdir does not exist
15167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15168
15169# Whether we need a single "-rpath" flag with a separated argument.
15170hardcode_libdir_separator=$lt_hardcode_libdir_separator
15171
15172# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15173# DIR into the resulting binary.
15174hardcode_direct=$hardcode_direct
15175
15176# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15177# DIR into the resulting binary and the resulting library dependency is
15178# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15179# library is relocated.
15180hardcode_direct_absolute=$hardcode_direct_absolute
15181
15182# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15183# into the resulting binary.
15184hardcode_minus_L=$hardcode_minus_L
15185
15186# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15187# into the resulting binary.
15188hardcode_shlibpath_var=$hardcode_shlibpath_var
15189
15190# Set to "yes" if building a shared library automatically hardcodes DIR
15191# into the library and all subsequent libraries and executables linked
15192# against it.
15193hardcode_automatic=$hardcode_automatic
15194
15195# Set to yes if linker adds runtime paths of dependent libraries
15196# to runtime path list.
15197inherit_rpath=$inherit_rpath
15198
15199# Whether libtool must link a program against all its dependency libraries.
15200link_all_deplibs=$link_all_deplibs
15201
15202# Set to "yes" if exported symbols are required.
15203always_export_symbols=$always_export_symbols
15204
15205# The commands to list exported symbols.
15206export_symbols_cmds=$lt_export_symbols_cmds
15207
15208# Symbols that should not be listed in the preloaded symbols.
15209exclude_expsyms=$lt_exclude_expsyms
15210
15211# Symbols that must always be exported.
15212include_expsyms=$lt_include_expsyms
15213
15214# Commands necessary for linking programs (against libraries) with templates.
15215prelink_cmds=$lt_prelink_cmds
15216
15217# Commands necessary for finishing linking programs.
15218postlink_cmds=$lt_postlink_cmds
15219
15220# Specify filename containing input files.
15221file_list_spec=$lt_file_list_spec
15222
15223# How to hardcode a shared library path into an executable.
15224hardcode_action=$hardcode_action
15225
15226# ### END LIBTOOL CONFIG
15227
15228_LT_EOF
15229
15230  case $host_os in
15231  aix3*)
15232    cat <<\_LT_EOF >> "$cfgfile"
15233# AIX sometimes has problems with the GCC collect2 program.  For some
15234# reason, if we set the COLLECT_NAMES environment variable, the problems
15235# vanish in a puff of smoke.
15236if test "X${COLLECT_NAMES+set}" != Xset; then
15237  COLLECT_NAMES=
15238  export COLLECT_NAMES
15239fi
15240_LT_EOF
15241    ;;
15242  esac
15243
15244
15245ltmain="$ac_aux_dir/ltmain.sh"
15246
15247
15248  # We use sed instead of cat because bash on DJGPP gets confused if
15249  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15250  # text mode, it properly converts lines to CR/LF.  This bash problem
15251  # is reportedly fixed, but why not run on old versions too?
15252  sed '$q' "$ltmain" >> "$cfgfile" \
15253     || (rm -f "$cfgfile"; exit 1)
15254
15255  if test x"$xsi_shell" = xyes; then
15256  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15257func_dirname ()\
15258{\
15259\    case ${1} in\
15260\      */*) func_dirname_result="${1%/*}${2}" ;;\
15261\      *  ) func_dirname_result="${3}" ;;\
15262\    esac\
15263} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15264  && mv -f "$cfgfile.tmp" "$cfgfile" \
15265    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15266test 0 -eq $? || _lt_function_replace_fail=:
15267
15268
15269  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15270func_basename ()\
15271{\
15272\    func_basename_result="${1##*/}"\
15273} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15274  && mv -f "$cfgfile.tmp" "$cfgfile" \
15275    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15276test 0 -eq $? || _lt_function_replace_fail=:
15277
15278
15279  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15280func_dirname_and_basename ()\
15281{\
15282\    case ${1} in\
15283\      */*) func_dirname_result="${1%/*}${2}" ;;\
15284\      *  ) func_dirname_result="${3}" ;;\
15285\    esac\
15286\    func_basename_result="${1##*/}"\
15287} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15288  && mv -f "$cfgfile.tmp" "$cfgfile" \
15289    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15290test 0 -eq $? || _lt_function_replace_fail=:
15291
15292
15293  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15294func_stripname ()\
15295{\
15296\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15297\    # positional parameters, so assign one to ordinary parameter first.\
15298\    func_stripname_result=${3}\
15299\    func_stripname_result=${func_stripname_result#"${1}"}\
15300\    func_stripname_result=${func_stripname_result%"${2}"}\
15301} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15302  && mv -f "$cfgfile.tmp" "$cfgfile" \
15303    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15304test 0 -eq $? || _lt_function_replace_fail=:
15305
15306
15307  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15308func_split_long_opt ()\
15309{\
15310\    func_split_long_opt_name=${1%%=*}\
15311\    func_split_long_opt_arg=${1#*=}\
15312} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15313  && mv -f "$cfgfile.tmp" "$cfgfile" \
15314    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15315test 0 -eq $? || _lt_function_replace_fail=:
15316
15317
15318  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15319func_split_short_opt ()\
15320{\
15321\    func_split_short_opt_arg=${1#??}\
15322\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15323} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15324  && mv -f "$cfgfile.tmp" "$cfgfile" \
15325    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15326test 0 -eq $? || _lt_function_replace_fail=:
15327
15328
15329  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15330func_lo2o ()\
15331{\
15332\    case ${1} in\
15333\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15334\      *)    func_lo2o_result=${1} ;;\
15335\    esac\
15336} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15337  && mv -f "$cfgfile.tmp" "$cfgfile" \
15338    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339test 0 -eq $? || _lt_function_replace_fail=:
15340
15341
15342  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15343func_xform ()\
15344{\
15345    func_xform_result=${1%.*}.lo\
15346} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15347  && mv -f "$cfgfile.tmp" "$cfgfile" \
15348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15349test 0 -eq $? || _lt_function_replace_fail=:
15350
15351
15352  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15353func_arith ()\
15354{\
15355    func_arith_result=$(( $* ))\
15356} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15357  && mv -f "$cfgfile.tmp" "$cfgfile" \
15358    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15359test 0 -eq $? || _lt_function_replace_fail=:
15360
15361
15362  sed -e '/^func_len ()$/,/^} # func_len /c\
15363func_len ()\
15364{\
15365    func_len_result=${#1}\
15366} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15367  && mv -f "$cfgfile.tmp" "$cfgfile" \
15368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15369test 0 -eq $? || _lt_function_replace_fail=:
15370
15371fi
15372
15373if test x"$lt_shell_append" = xyes; then
15374  sed -e '/^func_append ()$/,/^} # func_append /c\
15375func_append ()\
15376{\
15377    eval "${1}+=\\${2}"\
15378} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15379  && mv -f "$cfgfile.tmp" "$cfgfile" \
15380    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15381test 0 -eq $? || _lt_function_replace_fail=:
15382
15383
15384  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15385func_append_quoted ()\
15386{\
15387\    func_quote_for_eval "${2}"\
15388\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15389} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15390  && mv -f "$cfgfile.tmp" "$cfgfile" \
15391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15392test 0 -eq $? || _lt_function_replace_fail=:
15393
15394
15395  # Save a `func_append' function call where possible by direct use of '+='
15396  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15397    && mv -f "$cfgfile.tmp" "$cfgfile" \
15398      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15399  test 0 -eq $? || _lt_function_replace_fail=:
15400else
15401  # Save a `func_append' function call even when '+=' is not available
15402  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15403    && mv -f "$cfgfile.tmp" "$cfgfile" \
15404      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15405  test 0 -eq $? || _lt_function_replace_fail=:
15406fi
15407
15408if test x"$_lt_function_replace_fail" = x":"; then
15409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15410$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15411fi
15412
15413
15414   mv -f "$cfgfile" "$ofile" ||
15415    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15416  chmod +x "$ofile"
15417
15418 ;;
15419
15420  esac
15421done # for ac_tag
15422
15423
15424as_fn_exit 0
15425_ACEOF
15426ac_clean_files=$ac_clean_files_save
15427
15428test $ac_write_fail = 0 ||
15429  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15430
15431
15432# configure is writing to config.log, and then calls config.status.
15433# config.status does its own redirection, appending to config.log.
15434# Unfortunately, on DOS this fails, as config.log is still kept open
15435# by configure, so config.status won't be able to write to it; its
15436# output is simply discarded.  So we exec the FD to /dev/null,
15437# effectively closing config.log, so it can be properly (re)opened and
15438# appended to by config.status.  When coming back to configure, we
15439# need to make the FD available again.
15440if test "$no_create" != yes; then
15441  ac_cs_success=:
15442  ac_config_status_args=
15443  test "$silent" = yes &&
15444    ac_config_status_args="$ac_config_status_args --quiet"
15445  exec 5>/dev/null
15446  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15447  exec 5>>config.log
15448  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15449  # would make configure fail if this is the last instruction.
15450  $ac_cs_success || as_fn_exit 1
15451fi
15452if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15454$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15455fi
15456
15457
15458echo "
15459
15460                Build with alsa:           $have_alsa
15461                Build with OSS:            $have_oss
15462                Build with Sun audio:      $have_sun_audio
15463                Build with RoarAudio:      $have_roaraudio
15464
15465"
15466