1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libshout-idjc 2.4.1.
4#
5# Report bugs to <www.sourceforge.net/projects/idjc>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: www.sourceforge.net/projects/idjc about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libshout-idjc'
592PACKAGE_TARNAME='libshout-idjc'
593PACKAGE_VERSION='2.4.1'
594PACKAGE_STRING='libshout-idjc 2.4.1'
595PACKAGE_BUGREPORT='www.sourceforge.net/projects/idjc'
596PACKAGE_URL=''
597
598ac_unique_file="src/shout.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
644OPT
645LIBTOOL_DEPS
646SHOUT_CFLAGS
647SHOUT_CPPFLAGS
648SHOUT_REQUIRES
649SHOUT_LIBDEPS
650HAVE_TLS_FALSE
651HAVE_TLS_TRUE
652SHOUT_TLS
653HAVE_PKGCONFIG_FALSE
654HAVE_PKGCONFIG_TRUE
655PKGCONFIG
656HAVE_SPEEX_FALSE
657HAVE_SPEEX_TRUE
658SPEEX_LDFLAGS
659SPEEX
660SPEEX_LIBS
661SPEEX_CFLAGS
662HAVE_THEORA_FALSE
663HAVE_THEORA_TRUE
664THEORA_LDFLAGS
665THEORA
666THEORA_LIBS
667THEORA_CFLAGS
668VORBISENC_LIBS
669VORBISFILE_LIBS
670VORBIS_LDFLAGS
671VORBIS_PREFIX
672OGG_LDFLAGS
673OGG_CFLAGS
674OGG_LIBS
675OGG_PREFIX
676VORBIS_LIBS
677VORBIS_CFLAGS
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
680PKG_CONFIG
681HAVE_THREAD_FALSE
682HAVE_THREAD_TRUE
683SHOUT_THREADSAFE
684PTHREAD_CPPFLAGS
685PTHREAD_CFLAGS
686PTHREAD_LIBS
687PTHREAD_CC
688acx_pthread_config
689CPP
690LT_SYS_LIBRARY_PATH
691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
696MANIFEST_TOOL
697RANLIB
698ac_ct_AR
699AR
700DLLTOOL
701OBJDUMP
702LN_S
703NM
704ac_ct_DUMPBIN
705DUMPBIN
706LD
707FGREP
708EGREP
709GREP
710SED
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719LIBTOOL
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__quote
728am__include
729DEPDIR
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737MAINT
738MAINTAINER_MODE_FALSE
739MAINTAINER_MODE_TRUE
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786localstatedir
787sharedstatedir
788sysconfdir
789datadir
790datarootdir
791libexecdir
792sbindir
793bindir
794program_transform_name
795prefix
796exec_prefix
797PACKAGE_URL
798PACKAGE_BUGREPORT
799PACKAGE_STRING
800PACKAGE_VERSION
801PACKAGE_TARNAME
802PACKAGE_NAME
803PATH_SEPARATOR
804SHELL'
805ac_subst_files=''
806ac_user_opts='
807enable_option_checking
808enable_silent_rules
809enable_maintainer_mode
810enable_dependency_tracking
811enable_shared
812enable_static
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819enable_thread
820with_ogg
821with_vorbis
822enable_theora
823with_theora
824enable_speex
825with_speex
826enable_pkgconfig
827with_openssl
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837LT_SYS_LIBRARY_PATH
838CPP
839PKG_CONFIG
840PKG_CONFIG_PATH
841PKG_CONFIG_LIBDIR
842VORBIS_CFLAGS
843VORBIS_LIBS
844OGG_PREFIX
845VORBIS_PREFIX
846THEORA_CFLAGS
847THEORA_LIBS
848THEORA
849SPEEX_CFLAGS
850SPEEX_LIBS
851SPEEX'
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
901
902ac_prev=
903ac_dashdash=
904for ac_option
905do
906  # If the previous option needs an argument, assign it.
907  if test -n "$ac_prev"; then
908    eval $ac_prev=\$ac_option
909    ac_prev=
910    continue
911  fi
912
913  case $ac_option in
914  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915  *=)   ac_optarg= ;;
916  *)    ac_optarg=yes ;;
917  esac
918
919  # Accept the important Cygnus configure options, so we can diagnose typos.
920
921  case $ac_dashdash$ac_option in
922  --)
923    ac_dashdash=yes ;;
924
925  -bindir | --bindir | --bindi | --bind | --bin | --bi)
926    ac_prev=bindir ;;
927  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928    bindir=$ac_optarg ;;
929
930  -build | --build | --buil | --bui | --bu)
931    ac_prev=build_alias ;;
932  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933    build_alias=$ac_optarg ;;
934
935  -cache-file | --cache-file | --cache-fil | --cache-fi \
936  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937    ac_prev=cache_file ;;
938  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940    cache_file=$ac_optarg ;;
941
942  --config-cache | -C)
943    cache_file=config.cache ;;
944
945  -datadir | --datadir | --datadi | --datad)
946    ac_prev=datadir ;;
947  -datadir=* | --datadir=* | --datadi=* | --datad=*)
948    datadir=$ac_optarg ;;
949
950  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951  | --dataroo | --dataro | --datar)
952    ac_prev=datarootdir ;;
953  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955    datarootdir=$ac_optarg ;;
956
957  -disable-* | --disable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=no ;;
972
973  -docdir | --docdir | --docdi | --doc | --do)
974    ac_prev=docdir ;;
975  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976    docdir=$ac_optarg ;;
977
978  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979    ac_prev=dvidir ;;
980  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981    dvidir=$ac_optarg ;;
982
983  -enable-* | --enable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: $ac_useropt"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=\$ac_optarg ;;
998
999  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001  | --exec | --exe | --ex)
1002    ac_prev=exec_prefix ;;
1003  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005  | --exec=* | --exe=* | --ex=*)
1006    exec_prefix=$ac_optarg ;;
1007
1008  -gas | --gas | --ga | --g)
1009    # Obsolete; use --with-gas.
1010    with_gas=yes ;;
1011
1012  -help | --help | --hel | --he | -h)
1013    ac_init_help=long ;;
1014  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015    ac_init_help=recursive ;;
1016  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017    ac_init_help=short ;;
1018
1019  -host | --host | --hos | --ho)
1020    ac_prev=host_alias ;;
1021  -host=* | --host=* | --hos=* | --ho=*)
1022    host_alias=$ac_optarg ;;
1023
1024  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025    ac_prev=htmldir ;;
1026  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027  | --ht=*)
1028    htmldir=$ac_optarg ;;
1029
1030  -includedir | --includedir | --includedi | --included | --include \
1031  | --includ | --inclu | --incl | --inc)
1032    ac_prev=includedir ;;
1033  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034  | --includ=* | --inclu=* | --incl=* | --inc=*)
1035    includedir=$ac_optarg ;;
1036
1037  -infodir | --infodir | --infodi | --infod | --info | --inf)
1038    ac_prev=infodir ;;
1039  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040    infodir=$ac_optarg ;;
1041
1042  -libdir | --libdir | --libdi | --libd)
1043    ac_prev=libdir ;;
1044  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045    libdir=$ac_optarg ;;
1046
1047  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048  | --libexe | --libex | --libe)
1049    ac_prev=libexecdir ;;
1050  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051  | --libexe=* | --libex=* | --libe=*)
1052    libexecdir=$ac_optarg ;;
1053
1054  -localedir | --localedir | --localedi | --localed | --locale)
1055    ac_prev=localedir ;;
1056  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057    localedir=$ac_optarg ;;
1058
1059  -localstatedir | --localstatedir | --localstatedi | --localstated \
1060  | --localstate | --localstat | --localsta | --localst | --locals)
1061    ac_prev=localstatedir ;;
1062  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064    localstatedir=$ac_optarg ;;
1065
1066  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067    ac_prev=mandir ;;
1068  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069    mandir=$ac_optarg ;;
1070
1071  -nfp | --nfp | --nf)
1072    # Obsolete; use --without-fp.
1073    with_fp=no ;;
1074
1075  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076  | --no-cr | --no-c | -n)
1077    no_create=yes ;;
1078
1079  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081    no_recursion=yes ;;
1082
1083  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085  | --oldin | --oldi | --old | --ol | --o)
1086    ac_prev=oldincludedir ;;
1087  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090    oldincludedir=$ac_optarg ;;
1091
1092  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093    ac_prev=prefix ;;
1094  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095    prefix=$ac_optarg ;;
1096
1097  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098  | --program-pre | --program-pr | --program-p)
1099    ac_prev=program_prefix ;;
1100  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102    program_prefix=$ac_optarg ;;
1103
1104  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105  | --program-suf | --program-su | --program-s)
1106    ac_prev=program_suffix ;;
1107  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109    program_suffix=$ac_optarg ;;
1110
1111  -program-transform-name | --program-transform-name \
1112  | --program-transform-nam | --program-transform-na \
1113  | --program-transform-n | --program-transform- \
1114  | --program-transform | --program-transfor \
1115  | --program-transfo | --program-transf \
1116  | --program-trans | --program-tran \
1117  | --progr-tra | --program-tr | --program-t)
1118    ac_prev=program_transform_name ;;
1119  -program-transform-name=* | --program-transform-name=* \
1120  | --program-transform-nam=* | --program-transform-na=* \
1121  | --program-transform-n=* | --program-transform-=* \
1122  | --program-transform=* | --program-transfor=* \
1123  | --program-transfo=* | --program-transf=* \
1124  | --program-trans=* | --program-tran=* \
1125  | --progr-tra=* | --program-tr=* | --program-t=*)
1126    program_transform_name=$ac_optarg ;;
1127
1128  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129    ac_prev=pdfdir ;;
1130  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131    pdfdir=$ac_optarg ;;
1132
1133  -psdir | --psdir | --psdi | --psd | --ps)
1134    ac_prev=psdir ;;
1135  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136    psdir=$ac_optarg ;;
1137
1138  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139  | -silent | --silent | --silen | --sile | --sil)
1140    silent=yes ;;
1141
1142  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143    ac_prev=sbindir ;;
1144  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145  | --sbi=* | --sb=*)
1146    sbindir=$ac_optarg ;;
1147
1148  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150  | --sharedst | --shareds | --shared | --share | --shar \
1151  | --sha | --sh)
1152    ac_prev=sharedstatedir ;;
1153  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156  | --sha=* | --sh=*)
1157    sharedstatedir=$ac_optarg ;;
1158
1159  -site | --site | --sit)
1160    ac_prev=site ;;
1161  -site=* | --site=* | --sit=*)
1162    site=$ac_optarg ;;
1163
1164  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165    ac_prev=srcdir ;;
1166  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167    srcdir=$ac_optarg ;;
1168
1169  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170  | --syscon | --sysco | --sysc | --sys | --sy)
1171    ac_prev=sysconfdir ;;
1172  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174    sysconfdir=$ac_optarg ;;
1175
1176  -target | --target | --targe | --targ | --tar | --ta | --t)
1177    ac_prev=target_alias ;;
1178  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179    target_alias=$ac_optarg ;;
1180
1181  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182    verbose=yes ;;
1183
1184  -version | --version | --versio | --versi | --vers | -V)
1185    ac_init_version=: ;;
1186
1187  -with-* | --with-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      as_fn_error $? "invalid package name: $ac_useropt"
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=\$ac_optarg ;;
1202
1203  -without-* | --without-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=no ;;
1218
1219  --x)
1220    # Obsolete; use --with-x.
1221    with_x=yes ;;
1222
1223  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224  | --x-incl | --x-inc | --x-in | --x-i)
1225    ac_prev=x_includes ;;
1226  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228    x_includes=$ac_optarg ;;
1229
1230  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232    ac_prev=x_libraries ;;
1233  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235    x_libraries=$ac_optarg ;;
1236
1237  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
1239    ;;
1240
1241  *=*)
1242    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243    # Reject names that are not valid shell variable names.
1244    case $ac_envvar in #(
1245      '' | [0-9]* | *[!_$as_cr_alnum]* )
1246      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247    esac
1248    eval $ac_envvar=\$ac_optarg
1249    export $ac_envvar ;;
1250
1251  *)
1252    # FIXME: should be removed in autoconf 3.0.
1253    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257    ;;
1258
1259  esac
1260done
1261
1262if test -n "$ac_prev"; then
1263  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264  as_fn_error $? "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268  case $enable_option_checking in
1269    no) ;;
1270    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272  esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277		datadir sysconfdir sharedstatedir localstatedir includedir \
1278		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279		libdir localedir mandir
1280do
1281  eval ac_val=\$$ac_var
1282  # Remove trailing slashes.
1283  case $ac_val in
1284    */ )
1285      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286      eval $ac_var=\$ac_val;;
1287  esac
1288  # Be sure to have absolute directory names.
1289  case $ac_val in
1290    [\\/$]* | ?:[\\/]* )  continue;;
1291    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292  esac
1293  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305  if test "x$build_alias" = x; then
1306    cross_compiling=maybe
1307  elif test "x$build_alias" != "x$host_alias"; then
1308    cross_compiling=yes
1309  fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321  as_fn_error $? "working directory cannot be determined"
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$as_myself" : 'X\(//\)[^/]' \| \
1333	 X"$as_myself" : 'X\(//\)$' \| \
1334	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367	pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370  srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures libshout-idjc 2.4.1 to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking ...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/libshout-idjc]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of libshout-idjc 2.4.1:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-option-checking  ignore unrecognized --enable/--with options
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471  --disable-silent-rules  verbose build output (undo: "make V=0")
1472  --enable-maintainer-mode
1473                          enable make rules and dependencies not useful (and
1474                          sometimes confusing) to the casual installer
1475  --enable-dependency-tracking
1476                          do not reject slow dependency extractors
1477  --disable-dependency-tracking
1478                          speeds up one-time build
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-static[=PKGS]  build static libraries [default=yes]
1481  --enable-fast-install[=PKGS]
1482                          optimize for fast installation [default=yes]
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --disable-thread        do not build with thread support even if it is
1485                          available
1486  --disable-theora        do not build with Theora support
1487  --disable-speex         do not build with Speex support
1488  --disable-pkgconfig     disable pkgconfig data files (auto)
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1494                          both]
1495  --with-aix-soname=aix|svr4|both
1496                          shared library versioning (aka "SONAME") variant to
1497                          provide on AIX, [default=aix].
1498  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1500                          compiler's sysroot if not specified).
1501  --with-ogg=PREFIX       Prefix where libogg is installed (optional)
1502  --with-vorbis=PREFIX    Prefix where libvorbis is installed (optional)
1503  --with-theora=PREFIX    Prefix where libtheora is installed (optional)
1504  --with-speex=PREFIX     Prefix where libspeex is installed (optional)
1505  --with-openssl=PFX      Prefix where openssl is installed (optional)
1506
1507Some influential environment variables:
1508  CC          C compiler command
1509  CFLAGS      C compiler flags
1510  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511              nonstandard directory <lib dir>
1512  LIBS        libraries to pass to the linker, e.g. -l<library>
1513  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514              you have headers in a nonstandard directory <include dir>
1515  LT_SYS_LIBRARY_PATH
1516              User-defined run-time library search path.
1517  CPP         C preprocessor
1518  PKG_CONFIG  path to pkg-config utility
1519  PKG_CONFIG_PATH
1520              directories to add to pkg-config's search path
1521  PKG_CONFIG_LIBDIR
1522              path overriding pkg-config's built-in search path
1523  VORBIS_CFLAGS
1524              C compiler flags for VORBIS, overriding pkg-config
1525  VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1526  OGG_PREFIX  path to ogg installation
1527  VORBIS_PREFIX
1528              path to vorbis installation
1529  THEORA_CFLAGS
1530              C compiler flags for THEORA, overriding pkg-config
1531  THEORA_LIBS linker flags for THEORA, overriding pkg-config
1532  THEORA      path to theora installation
1533  SPEEX_CFLAGS
1534              C compiler flags for SPEEX, overriding pkg-config
1535  SPEEX_LIBS  linker flags for SPEEX, overriding pkg-config
1536  SPEEX       path to speex installation
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to <www.sourceforge.net/projects/idjc>.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547  # If there are subdirs, report their specific --help.
1548  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549    test -d "$ac_dir" ||
1550      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551      continue
1552    ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558  # A ".." for each directory in $ac_dir_suffix.
1559  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560  case $ac_top_builddir_sub in
1561  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563  esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571  .)  # We are building in place.
1572    ac_srcdir=.
1573    ac_top_srcdir=$ac_top_builddir_sub
1574    ac_abs_top_srcdir=$ac_pwd ;;
1575  [\\/]* | ?:[\\/]* )  # Absolute name.
1576    ac_srcdir=$srcdir$ac_dir_suffix;
1577    ac_top_srcdir=$srcdir
1578    ac_abs_top_srcdir=$srcdir ;;
1579  *) # Relative name.
1580    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581    ac_top_srcdir=$ac_top_build_prefix$srcdir
1582    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586    cd "$ac_dir" || { ac_status=$?; continue; }
1587    # Check for guested configure.
1588    if test -f "$ac_srcdir/configure.gnu"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591    elif test -f "$ac_srcdir/configure"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure" --help=recursive
1594    else
1595      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596    fi || ac_status=$?
1597    cd "$ac_pwd" || { ac_status=$?; break; }
1598  done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603  cat <<\_ACEOF
1604libshout-idjc configure 2.4.1
1605generated by GNU Autoconf 2.69
1606
1607Copyright (C) 2012 Free Software Foundation, Inc.
1608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
1611  exit
1612fi
1613
1614## ------------------------ ##
1615## Autoconf initialization. ##
1616## ------------------------ ##
1617
1618# ac_fn_c_try_compile LINENO
1619# --------------------------
1620# Try to compile conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  rm -f conftest.$ac_objext
1625  if { { ac_try="$ac_compile"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_compile") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && {
1641	 test -z "$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       } && test -s conftest.$ac_objext; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649	ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_compile
1655
1656# ac_fn_c_try_link LINENO
1657# -----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_link ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  rm -f conftest.$ac_objext conftest$ac_exeext
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } && {
1679	 test -z "$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       } && test -s conftest$ac_exeext && {
1682	 test "$cross_compiling" = yes ||
1683	 test -x conftest$ac_exeext
1684       }; then :
1685  ac_retval=0
1686else
1687  $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690	ac_retval=1
1691fi
1692  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694  # interfere with the next link command; also delete a directory that is
1695  # left behind by Apple's compiler.  We do this before executing the actions.
1696  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698  as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_link
1701
1702# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703# -------------------------------------------------------
1704# Tests whether HEADER exists and can be compiled using the include files in
1705# INCLUDES, setting the cache variable VAR accordingly.
1706ac_fn_c_check_header_compile ()
1707{
1708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if eval \${$3+:} false; then :
1712  $as_echo_n "(cached) " >&6
1713else
1714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715/* end confdefs.h.  */
1716$4
1717#include <$2>
1718_ACEOF
1719if ac_fn_c_try_compile "$LINENO"; then :
1720  eval "$3=yes"
1721else
1722  eval "$3=no"
1723fi
1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725fi
1726eval ac_res=\$$3
1727	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728$as_echo "$ac_res" >&6; }
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731} # ac_fn_c_check_header_compile
1732
1733# ac_fn_c_try_cpp LINENO
1734# ----------------------
1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_cpp ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  if { { ac_try="$ac_cpp conftest.$ac_ext"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } > conftest.i && {
1755	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       }; then :
1758  ac_retval=0
1759else
1760  $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763    ac_retval=1
1764fi
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766  as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_cpp
1769
1770# ac_fn_c_try_run LINENO
1771# ----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773# that executables *can* be run.
1774ac_fn_c_try_run ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780  *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784  (eval "$ac_link") 2>&5
1785  ac_status=$?
1786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788  { { case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_try") 2>&5
1795  ac_status=$?
1796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; }; }; then :
1798  ac_retval=0
1799else
1800  $as_echo "$as_me: program exited with status $ac_status" >&5
1801       $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804       ac_retval=$ac_status
1805fi
1806  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_run
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if eval \${$3+:} false; then :
1821  $as_echo_n "(cached) " >&6
1822else
1823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h.  */
1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1827#define $2 innocuous_$2
1828
1829/* System header to define __stub macros and hopefully few prototypes,
1830    which can conflict with char $2 (); below.
1831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832    <limits.h> exists even on freestanding compilers.  */
1833
1834#ifdef __STDC__
1835# include <limits.h>
1836#else
1837# include <assert.h>
1838#endif
1839
1840#undef $2
1841
1842/* Override any GCC internal prototype to avoid an error.
1843   Use char because int might match the return type of a GCC
1844   builtin and then its argument prototype would still apply.  */
1845#ifdef __cplusplus
1846extern "C"
1847#endif
1848char $2 ();
1849/* The GNU C library defines this for functions which it implements
1850    to always fail with ENOSYS.  Some functions are actually named
1851    something starting with __ and the normal name is an alias.  */
1852#if defined __stub_$2 || defined __stub___$2
1853choke me
1854#endif
1855
1856int
1857main ()
1858{
1859return $2 ();
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_link "$LINENO"; then :
1865  eval "$3=yes"
1866else
1867  eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext \
1870    conftest$ac_exeext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_func
1878
1879# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880# -------------------------------------------------------
1881# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882# the include files in INCLUDES and setting the cache variable VAR
1883# accordingly.
1884ac_fn_c_check_header_mongrel ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  if eval \${$3+:} false; then :
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896else
1897  # Is the header compilable?
1898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899$as_echo_n "checking $2 usability... " >&6; }
1900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902$4
1903#include <$2>
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  ac_header_compiler=yes
1907else
1908  ac_header_compiler=no
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912$as_echo "$ac_header_compiler" >&6; }
1913
1914# Is the header present?
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916$as_echo_n "checking $2 presence... " >&6; }
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919#include <$2>
1920_ACEOF
1921if ac_fn_c_try_cpp "$LINENO"; then :
1922  ac_header_preproc=yes
1923else
1924  ac_header_preproc=no
1925fi
1926rm -f conftest.err conftest.i conftest.$ac_ext
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928$as_echo "$ac_header_preproc" >&6; }
1929
1930# So?  What about this header?
1931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932  yes:no: )
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937    ;;
1938  no:yes:* )
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949( $as_echo "## ------------------------------------------------ ##
1950## Report this to www.sourceforge.net/projects/idjc ##
1951## ------------------------------------------------ ##"
1952     ) | sed "s/^/$as_me: WARNING:     /" >&2
1953    ;;
1954esac
1955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956$as_echo_n "checking for $2... " >&6; }
1957if eval \${$3+:} false; then :
1958  $as_echo_n "(cached) " >&6
1959else
1960  eval "$3=\$ac_header_compiler"
1961fi
1962eval ac_res=\$$3
1963	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964$as_echo "$ac_res" >&6; }
1965fi
1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968} # ac_fn_c_check_header_mongrel
1969
1970# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1971# -------------------------------------------
1972# Tests whether TYPE exists after having included INCLUDES, setting cache
1973# variable VAR accordingly.
1974ac_fn_c_check_type ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978$as_echo_n "checking for $2... " >&6; }
1979if eval \${$3+:} false; then :
1980  $as_echo_n "(cached) " >&6
1981else
1982  eval "$3=no"
1983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h.  */
1985$4
1986int
1987main ()
1988{
1989if (sizeof ($2))
1990	 return 0;
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999int
2000main ()
2001{
2002if (sizeof (($2)))
2003	    return 0;
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009
2010else
2011  eval "$3=yes"
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016fi
2017eval ac_res=\$$3
2018	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019$as_echo "$ac_res" >&6; }
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_c_check_type
2023
2024# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2025# --------------------------------------------
2026# Tries to find the compile-time value of EXPR in a program that includes
2027# INCLUDES, setting VAR accordingly. Returns whether the value could be
2028# computed
2029ac_fn_c_compute_int ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  if test "$cross_compiling" = yes; then
2033    # Depending upon the size, compute the lo and hi bounds.
2034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040static int test_array [1 - 2 * !(($2) >= 0)];
2041test_array [0] = 0;
2042return test_array [0];
2043
2044  ;
2045  return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049  ac_lo=0 ac_mid=0
2050  while :; do
2051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053$4
2054int
2055main ()
2056{
2057static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2058test_array [0] = 0;
2059return test_array [0];
2060
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066  ac_hi=$ac_mid; break
2067else
2068  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2069			if test $ac_lo -le $ac_mid; then
2070			  ac_lo= ac_hi=
2071			  break
2072			fi
2073			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076  done
2077else
2078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h.  */
2080$4
2081int
2082main ()
2083{
2084static int test_array [1 - 2 * !(($2) < 0)];
2085test_array [0] = 0;
2086return test_array [0];
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093  ac_hi=-1 ac_mid=-1
2094  while :; do
2095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$4
2098int
2099main ()
2100{
2101static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2102test_array [0] = 0;
2103return test_array [0];
2104
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"; then :
2110  ac_lo=$ac_mid; break
2111else
2112  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2113			if test $ac_mid -le $ac_hi; then
2114			  ac_lo= ac_hi=
2115			  break
2116			fi
2117			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120  done
2121else
2122  ac_lo= ac_hi=
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127# Binary search between lo and hi bounds.
2128while test "x$ac_lo" != "x$ac_hi"; do
2129  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_hi=$ac_mid
2146else
2147  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150done
2151case $ac_lo in #((
2152?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2153'') ac_retval=1 ;;
2154esac
2155  else
2156    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159static long int longval () { return $2; }
2160static unsigned long int ulongval () { return $2; }
2161#include <stdio.h>
2162#include <stdlib.h>
2163int
2164main ()
2165{
2166
2167  FILE *f = fopen ("conftest.val", "w");
2168  if (! f)
2169    return 1;
2170  if (($2) < 0)
2171    {
2172      long int i = longval ();
2173      if (i != ($2))
2174	return 1;
2175      fprintf (f, "%ld", i);
2176    }
2177  else
2178    {
2179      unsigned long int i = ulongval ();
2180      if (i != ($2))
2181	return 1;
2182      fprintf (f, "%lu", i);
2183    }
2184  /* Do not output a trailing newline, as this causes \r\n confusion
2185     on some platforms.  */
2186  return ferror (f) || fclose (f) != 0;
2187
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_run "$LINENO"; then :
2193  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2194else
2195  ac_retval=1
2196fi
2197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2198  conftest.$ac_objext conftest.beam conftest.$ac_ext
2199rm -f conftest.val
2200
2201  fi
2202  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203  as_fn_set_status $ac_retval
2204
2205} # ac_fn_c_compute_int
2206
2207# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2208# ----------------------------------------------------
2209# Tries to find if the field MEMBER exists in type AGGR, after including
2210# INCLUDES, setting cache variable VAR accordingly.
2211ac_fn_c_check_member ()
2212{
2213  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2215$as_echo_n "checking for $2.$3... " >&6; }
2216if eval \${$4+:} false; then :
2217  $as_echo_n "(cached) " >&6
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$5
2222int
2223main ()
2224{
2225static $2 ac_aggr;
2226if (ac_aggr.$3)
2227return 0;
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  eval "$4=yes"
2234else
2235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$5
2238int
2239main ()
2240{
2241static $2 ac_aggr;
2242if (sizeof ac_aggr.$3)
2243return 0;
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249  eval "$4=yes"
2250else
2251  eval "$4=no"
2252fi
2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257eval ac_res=\$$4
2258	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259$as_echo "$ac_res" >&6; }
2260  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261
2262} # ac_fn_c_check_member
2263cat >config.log <<_ACEOF
2264This file contains any messages produced by compilers while
2265running configure, to aid debugging if configure makes a mistake.
2266
2267It was created by libshout-idjc $as_me 2.4.1, which was
2268generated by GNU Autoconf 2.69.  Invocation command line was
2269
2270  $ $0 $@
2271
2272_ACEOF
2273exec 5>>config.log
2274{
2275cat <<_ASUNAME
2276## --------- ##
2277## Platform. ##
2278## --------- ##
2279
2280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285
2286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2288
2289/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2290/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2293/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2294/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2295/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2296
2297_ASUNAME
2298
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302  IFS=$as_save_IFS
2303  test -z "$as_dir" && as_dir=.
2304    $as_echo "PATH: $as_dir"
2305  done
2306IFS=$as_save_IFS
2307
2308} >&5
2309
2310cat >&5 <<_ACEOF
2311
2312
2313## ----------- ##
2314## Core tests. ##
2315## ----------- ##
2316
2317_ACEOF
2318
2319
2320# Keep a trace of the command line.
2321# Strip out --no-create and --no-recursion so they do not pile up.
2322# Strip out --silent because we don't want to record it for future runs.
2323# Also quote any args containing shell meta-characters.
2324# Make two passes to allow for proper duplicate-argument suppression.
2325ac_configure_args=
2326ac_configure_args0=
2327ac_configure_args1=
2328ac_must_keep_next=false
2329for ac_pass in 1 2
2330do
2331  for ac_arg
2332  do
2333    case $ac_arg in
2334    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336    | -silent | --silent | --silen | --sile | --sil)
2337      continue ;;
2338    *\'*)
2339      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    esac
2341    case $ac_pass in
2342    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343    2)
2344      as_fn_append ac_configure_args1 " '$ac_arg'"
2345      if test $ac_must_keep_next = true; then
2346	ac_must_keep_next=false # Got value, back to normal.
2347      else
2348	case $ac_arg in
2349	  *=* | --config-cache | -C | -disable-* | --disable-* \
2350	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352	  | -with-* | --with-* | -without-* | --without-* | --x)
2353	    case "$ac_configure_args0 " in
2354	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355	    esac
2356	    ;;
2357	  -* ) ac_must_keep_next=true ;;
2358	esac
2359      fi
2360      as_fn_append ac_configure_args " '$ac_arg'"
2361      ;;
2362    esac
2363  done
2364done
2365{ ac_configure_args0=; unset ac_configure_args0;}
2366{ ac_configure_args1=; unset ac_configure_args1;}
2367
2368# When interrupted or exit'd, cleanup temporary files, and complete
2369# config.log.  We remove comments because anyway the quotes in there
2370# would cause problems or look ugly.
2371# WARNING: Use '\'' to represent an apostrophe within the trap.
2372# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373trap 'exit_status=$?
2374  # Save into config.log some information that might help in debugging.
2375  {
2376    echo
2377
2378    $as_echo "## ---------------- ##
2379## Cache variables. ##
2380## ---------------- ##"
2381    echo
2382    # The following way of writing the cache mishandles newlines in values,
2383(
2384  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385    eval ac_val=\$$ac_var
2386    case $ac_val in #(
2387    *${as_nl}*)
2388      case $ac_var in #(
2389      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391      esac
2392      case $ac_var in #(
2393      _ | IFS | as_nl) ;; #(
2394      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395      *) { eval $ac_var=; unset $ac_var;} ;;
2396      esac ;;
2397    esac
2398  done
2399  (set) 2>&1 |
2400    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401    *${as_nl}ac_space=\ *)
2402      sed -n \
2403	"s/'\''/'\''\\\\'\'''\''/g;
2404	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405      ;; #(
2406    *)
2407      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408      ;;
2409    esac |
2410    sort
2411)
2412    echo
2413
2414    $as_echo "## ----------------- ##
2415## Output variables. ##
2416## ----------------- ##"
2417    echo
2418    for ac_var in $ac_subst_vars
2419    do
2420      eval ac_val=\$$ac_var
2421      case $ac_val in
2422      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423      esac
2424      $as_echo "$ac_var='\''$ac_val'\''"
2425    done | sort
2426    echo
2427
2428    if test -n "$ac_subst_files"; then
2429      $as_echo "## ------------------- ##
2430## File substitutions. ##
2431## ------------------- ##"
2432      echo
2433      for ac_var in $ac_subst_files
2434      do
2435	eval ac_val=\$$ac_var
2436	case $ac_val in
2437	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438	esac
2439	$as_echo "$ac_var='\''$ac_val'\''"
2440      done | sort
2441      echo
2442    fi
2443
2444    if test -s confdefs.h; then
2445      $as_echo "## ----------- ##
2446## confdefs.h. ##
2447## ----------- ##"
2448      echo
2449      cat confdefs.h
2450      echo
2451    fi
2452    test "$ac_signal" != 0 &&
2453      $as_echo "$as_me: caught signal $ac_signal"
2454    $as_echo "$as_me: exit $exit_status"
2455  } >&5
2456  rm -f core *.core core.conftest.* &&
2457    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458    exit $exit_status
2459' 0
2460for ac_signal in 1 2 13 15; do
2461  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462done
2463ac_signal=0
2464
2465# confdefs.h avoids OS command line length limits that DEFS can exceed.
2466rm -f -r conftest* confdefs.h
2467
2468$as_echo "/* confdefs.h */" > confdefs.h
2469
2470# Predefined preprocessor variables.
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_NAME "$PACKAGE_NAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_VERSION "$PACKAGE_VERSION"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_STRING "$PACKAGE_STRING"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_URL "$PACKAGE_URL"
2494_ACEOF
2495
2496
2497# Let the site file select an alternate cache file if it wants to.
2498# Prefer an explicitly selected file to automatically selected ones.
2499ac_site_file1=NONE
2500ac_site_file2=NONE
2501if test -n "$CONFIG_SITE"; then
2502  # We do not want a PATH search for config.site.
2503  case $CONFIG_SITE in #((
2504    -*)  ac_site_file1=./$CONFIG_SITE;;
2505    */*) ac_site_file1=$CONFIG_SITE;;
2506    *)   ac_site_file1=./$CONFIG_SITE;;
2507  esac
2508elif test "x$prefix" != xNONE; then
2509  ac_site_file1=$prefix/share/config.site
2510  ac_site_file2=$prefix/etc/config.site
2511else
2512  ac_site_file1=$ac_default_prefix/share/config.site
2513  ac_site_file2=$ac_default_prefix/etc/config.site
2514fi
2515for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2516do
2517  test "x$ac_site_file" = xNONE && continue
2518  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2519    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521    sed 's/^/| /' "$ac_site_file" >&5
2522    . "$ac_site_file" \
2523      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525as_fn_error $? "failed to load site script $ac_site_file
2526See \`config.log' for more details" "$LINENO" 5; }
2527  fi
2528done
2529
2530if test -r "$cache_file"; then
2531  # Some versions of bash will fail to source /dev/null (special files
2532  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2533  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2534    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535$as_echo "$as_me: loading cache $cache_file" >&6;}
2536    case $cache_file in
2537      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538      *)                      . "./$cache_file";;
2539    esac
2540  fi
2541else
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543$as_echo "$as_me: creating cache $cache_file" >&6;}
2544  >$cache_file
2545fi
2546
2547# Check that the precious variables saved in the cache have kept the same
2548# value.
2549ac_cache_corrupted=false
2550for ac_var in $ac_precious_vars; do
2551  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2552  eval ac_new_set=\$ac_env_${ac_var}_set
2553  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2554  eval ac_new_val=\$ac_env_${ac_var}_value
2555  case $ac_old_set,$ac_new_set in
2556    set,)
2557      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2558$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2559      ac_cache_corrupted=: ;;
2560    ,set)
2561      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2562$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2563      ac_cache_corrupted=: ;;
2564    ,);;
2565    *)
2566      if test "x$ac_old_val" != "x$ac_new_val"; then
2567	# differences in whitespace do not lead to failure.
2568	ac_old_val_w=`echo x $ac_old_val`
2569	ac_new_val_w=`echo x $ac_new_val`
2570	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2571	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2572$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2573	  ac_cache_corrupted=:
2574	else
2575	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2576$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2577	  eval $ac_var=\$ac_old_val
2578	fi
2579	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2580$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2581	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2582$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2583      fi;;
2584  esac
2585  # Pass precious variables to config.status.
2586  if test "$ac_new_set" = set; then
2587    case $ac_new_val in
2588    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2589    *) ac_arg=$ac_var=$ac_new_val ;;
2590    esac
2591    case " $ac_configure_args " in
2592      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2593      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2594    esac
2595  fi
2596done
2597if $ac_cache_corrupted; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2601$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2602  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2603fi
2604## -------------------- ##
2605## Main body of script. ##
2606## -------------------- ##
2607
2608ac_ext=c
2609ac_cpp='$CPP $CPPFLAGS'
2610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613
2614
2615
2616
2617ac_config_headers="$ac_config_headers config.h"
2618
2619# config.h guard
2620
2621
2622
2623
2624$as_echo "#define LIBSHOUT_MAJOR 2" >>confdefs.h
2625
2626
2627$as_echo "#define LIBSHOUT_MINOR 4" >>confdefs.h
2628
2629
2630$as_echo "#define LIBSHOUT_MICRO 1" >>confdefs.h
2631
2632
2633VERSION=2.4.1
2634
2635am__api_version='1.15'
2636
2637ac_aux_dir=
2638for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2639  if test -f "$ac_dir/install-sh"; then
2640    ac_aux_dir=$ac_dir
2641    ac_install_sh="$ac_aux_dir/install-sh -c"
2642    break
2643  elif test -f "$ac_dir/install.sh"; then
2644    ac_aux_dir=$ac_dir
2645    ac_install_sh="$ac_aux_dir/install.sh -c"
2646    break
2647  elif test -f "$ac_dir/shtool"; then
2648    ac_aux_dir=$ac_dir
2649    ac_install_sh="$ac_aux_dir/shtool install -c"
2650    break
2651  fi
2652done
2653if test -z "$ac_aux_dir"; then
2654  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2655fi
2656
2657# These three variables are undocumented and unsupported,
2658# and are intended to be withdrawn in a future Autoconf release.
2659# They can cause serious problems if a builder's source tree is in a directory
2660# whose full name contains unusual characters.
2661ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2662ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2663ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2664
2665
2666# Find a good install program.  We prefer a C program (faster),
2667# so one script is as good as another.  But avoid the broken or
2668# incompatible versions:
2669# SysV /etc/install, /usr/sbin/install
2670# SunOS /usr/etc/install
2671# IRIX /sbin/install
2672# AIX /bin/install
2673# AmigaOS /C/install, which installs bootblocks on floppy discs
2674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2675# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2677# OS/2's system install, which has a completely different semantic
2678# ./install, which can be erroneously created by make from ./install.sh.
2679# Reject install programs that cannot install multiple files.
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2681$as_echo_n "checking for a BSD-compatible install... " >&6; }
2682if test -z "$INSTALL"; then
2683if ${ac_cv_path_install+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    # Account for people who put trailing slashes in PATH elements.
2692case $as_dir/ in #((
2693  ./ | .// | /[cC]/* | \
2694  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2695  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2696  /usr/ucb/* ) ;;
2697  *)
2698    # OSF1 and SCO ODT 3.0 have their own names for install.
2699    # Don't use installbsd from OSF since it installs stuff as root
2700    # by default.
2701    for ac_prog in ginstall scoinst install; do
2702      for ac_exec_ext in '' $ac_executable_extensions; do
2703	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2704	  if test $ac_prog = install &&
2705	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706	    # AIX install.  It has an incompatible calling convention.
2707	    :
2708	  elif test $ac_prog = install &&
2709	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710	    # program-specific install script used by HP pwplus--don't use.
2711	    :
2712	  else
2713	    rm -rf conftest.one conftest.two conftest.dir
2714	    echo one > conftest.one
2715	    echo two > conftest.two
2716	    mkdir conftest.dir
2717	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2718	      test -s conftest.one && test -s conftest.two &&
2719	      test -s conftest.dir/conftest.one &&
2720	      test -s conftest.dir/conftest.two
2721	    then
2722	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2723	      break 3
2724	    fi
2725	  fi
2726	fi
2727      done
2728    done
2729    ;;
2730esac
2731
2732  done
2733IFS=$as_save_IFS
2734
2735rm -rf conftest.one conftest.two conftest.dir
2736
2737fi
2738  if test "${ac_cv_path_install+set}" = set; then
2739    INSTALL=$ac_cv_path_install
2740  else
2741    # As a last resort, use the slow shell script.  Don't cache a
2742    # value for INSTALL within a source directory, because that will
2743    # break other packages using the cache if that directory is
2744    # removed, or if the value is a relative name.
2745    INSTALL=$ac_install_sh
2746  fi
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2749$as_echo "$INSTALL" >&6; }
2750
2751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752# It thinks the first close brace ends the variable substitution.
2753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754
2755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2756
2757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2760$as_echo_n "checking whether build environment is sane... " >&6; }
2761# Reject unsafe characters in $srcdir or the absolute working directory
2762# name.  Accept space and tab only in the latter.
2763am_lf='
2764'
2765case `pwd` in
2766  *[\\\"\#\$\&\'\`$am_lf]*)
2767    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2768esac
2769case $srcdir in
2770  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2771    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2772esac
2773
2774# Do 'set' in a subshell so we don't clobber the current shell's
2775# arguments.  Must try -L first in case configure is actually a
2776# symlink; some systems play weird games with the mod time of symlinks
2777# (eg FreeBSD returns the mod time of the symlink's containing
2778# directory).
2779if (
2780   am_has_slept=no
2781   for am_try in 1 2; do
2782     echo "timestamp, slept: $am_has_slept" > conftest.file
2783     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2784     if test "$*" = "X"; then
2785	# -L didn't work.
2786	set X `ls -t "$srcdir/configure" conftest.file`
2787     fi
2788     if test "$*" != "X $srcdir/configure conftest.file" \
2789	&& test "$*" != "X conftest.file $srcdir/configure"; then
2790
2791	# If neither matched, then we have a broken ls.  This can happen
2792	# if, for instance, CONFIG_SHELL is bash and it inherits a
2793	# broken ls alias from the environment.  This has actually
2794	# happened.  Such a system could not be considered "sane".
2795	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2796  alias in your environment" "$LINENO" 5
2797     fi
2798     if test "$2" = conftest.file || test $am_try -eq 2; then
2799       break
2800     fi
2801     # Just in case.
2802     sleep 1
2803     am_has_slept=yes
2804   done
2805   test "$2" = conftest.file
2806   )
2807then
2808   # Ok.
2809   :
2810else
2811   as_fn_error $? "newly created file is older than distributed files!
2812Check your system clock" "$LINENO" 5
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2815$as_echo "yes" >&6; }
2816# If we didn't sleep, we still need to ensure time stamps of config.status and
2817# generated files are strictly newer.
2818am_sleep_pid=
2819if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2820  ( sleep 1 ) &
2821  am_sleep_pid=$!
2822fi
2823
2824rm -f conftest.file
2825
2826test "$program_prefix" != NONE &&
2827  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2828# Use a double $ so make ignores it.
2829test "$program_suffix" != NONE &&
2830  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2831# Double any \ or $.
2832# By default was `s,x,x', remove it if useless.
2833ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2834program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2835
2836# Expand $ac_aux_dir to an absolute path.
2837am_aux_dir=`cd "$ac_aux_dir" && pwd`
2838
2839if test x"${MISSING+set}" != xset; then
2840  case $am_aux_dir in
2841  *\ * | *\	*)
2842    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2843  *)
2844    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2845  esac
2846fi
2847# Use eval to expand $SHELL
2848if eval "$MISSING --is-lightweight"; then
2849  am_missing_run="$MISSING "
2850else
2851  am_missing_run=
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2853$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2854fi
2855
2856if test x"${install_sh+set}" != xset; then
2857  case $am_aux_dir in
2858  *\ * | *\	*)
2859    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2860  *)
2861    install_sh="\${SHELL} $am_aux_dir/install-sh"
2862  esac
2863fi
2864
2865# Installed binaries are usually stripped using 'strip' when the user
2866# run "make install-strip".  However 'strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the 'STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870  if test -n "$ac_tool_prefix"; then
2871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if ${ac_cv_prog_STRIP+:} false; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$STRIP"; then
2879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898STRIP=$ac_cv_prog_STRIP
2899if test -n "$STRIP"; then
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2901$as_echo "$STRIP" >&6; }
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908fi
2909if test -z "$ac_cv_prog_STRIP"; then
2910  ac_ct_STRIP=$STRIP
2911  # Extract the first word of "strip", so it can be a program name with args.
2912set dummy strip; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$ac_ct_STRIP"; then
2919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926    for ac_exec_ext in '' $ac_executable_extensions; do
2927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928    ac_cv_prog_ac_ct_STRIP="strip"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939if test -n "$ac_ct_STRIP"; then
2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2941$as_echo "$ac_ct_STRIP" >&6; }
2942else
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947  if test "x$ac_ct_STRIP" = x; then
2948    STRIP=":"
2949  else
2950    case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956    STRIP=$ac_ct_STRIP
2957  fi
2958else
2959  STRIP="$ac_cv_prog_STRIP"
2960fi
2961
2962fi
2963INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2964
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2966$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2967if test -z "$MKDIR_P"; then
2968  if ${ac_cv_path_mkdir+:} false; then :
2969  $as_echo_n "(cached) " >&6
2970else
2971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976    for ac_prog in mkdir gmkdir; do
2977	 for ac_exec_ext in '' $ac_executable_extensions; do
2978	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2979	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2980	     'mkdir (GNU coreutils) '* | \
2981	     'mkdir (coreutils) '* | \
2982	     'mkdir (fileutils) '4.1*)
2983	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2984	       break 3;;
2985	   esac
2986	 done
2987       done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992
2993  test -d ./--version && rmdir ./--version
2994  if test "${ac_cv_path_mkdir+set}" = set; then
2995    MKDIR_P="$ac_cv_path_mkdir -p"
2996  else
2997    # As a last resort, use the slow shell script.  Don't cache a
2998    # value for MKDIR_P within a source directory, because that will
2999    # break other packages using the cache if that directory is
3000    # removed, or if the value is a relative name.
3001    MKDIR_P="$ac_install_sh -d"
3002  fi
3003fi
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3005$as_echo "$MKDIR_P" >&6; }
3006
3007for ac_prog in gawk mawk nawk awk
3008do
3009  # Extract the first word of "$ac_prog", so it can be a program name with args.
3010set dummy $ac_prog; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_AWK+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$AWK"; then
3017  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_AWK="$ac_prog"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036AWK=$ac_cv_prog_AWK
3037if test -n "$AWK"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3039$as_echo "$AWK" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  test -n "$AWK" && break
3047done
3048
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3050$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3051set x ${MAKE-make}
3052ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3053if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  cat >conftest.make <<\_ACEOF
3057SHELL = /bin/sh
3058all:
3059	@echo '@@@%%%=$(MAKE)=@@@%%%'
3060_ACEOF
3061# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3062case `${MAKE-make} -f conftest.make 2>/dev/null` in
3063  *@@@%%%=?*=@@@%%%*)
3064    eval ac_cv_prog_make_${ac_make}_set=yes;;
3065  *)
3066    eval ac_cv_prog_make_${ac_make}_set=no;;
3067esac
3068rm -f conftest.make
3069fi
3070if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072$as_echo "yes" >&6; }
3073  SET_MAKE=
3074else
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077  SET_MAKE="MAKE=${MAKE-make}"
3078fi
3079
3080rm -rf .tst 2>/dev/null
3081mkdir .tst 2>/dev/null
3082if test -d .tst; then
3083  am__leading_dot=.
3084else
3085  am__leading_dot=_
3086fi
3087rmdir .tst 2>/dev/null
3088
3089# Check whether --enable-silent-rules was given.
3090if test "${enable_silent_rules+set}" = set; then :
3091  enableval=$enable_silent_rules;
3092fi
3093
3094case $enable_silent_rules in # (((
3095  yes) AM_DEFAULT_VERBOSITY=0;;
3096   no) AM_DEFAULT_VERBOSITY=1;;
3097    *) AM_DEFAULT_VERBOSITY=1;;
3098esac
3099am_make=${MAKE-make}
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3102if ${am_cv_make_support_nested_variables+:} false; then :
3103  $as_echo_n "(cached) " >&6
3104else
3105  if $as_echo 'TRUE=$(BAR$(V))
3106BAR0=false
3107BAR1=true
3108V=1
3109am__doit:
3110	@$(TRUE)
3111.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3112  am_cv_make_support_nested_variables=yes
3113else
3114  am_cv_make_support_nested_variables=no
3115fi
3116fi
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3118$as_echo "$am_cv_make_support_nested_variables" >&6; }
3119if test $am_cv_make_support_nested_variables = yes; then
3120    AM_V='$(V)'
3121  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3122else
3123  AM_V=$AM_DEFAULT_VERBOSITY
3124  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3125fi
3126AM_BACKSLASH='\'
3127
3128if test "`cd $srcdir && pwd`" != "`pwd`"; then
3129  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3130  # is not polluted with repeated "-I."
3131  am__isrc=' -I$(srcdir)'
3132  # test to see if srcdir already configured
3133  if test -f $srcdir/config.status; then
3134    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3135  fi
3136fi
3137
3138# test whether we have cygpath
3139if test -z "$CYGPATH_W"; then
3140  if (cygpath --version) >/dev/null 2>/dev/null; then
3141    CYGPATH_W='cygpath -w'
3142  else
3143    CYGPATH_W=echo
3144  fi
3145fi
3146
3147
3148# Define the identity of the package.
3149 PACKAGE='libshout-idjc'
3150 VERSION='2.4.1'
3151
3152
3153cat >>confdefs.h <<_ACEOF
3154#define PACKAGE "$PACKAGE"
3155_ACEOF
3156
3157
3158cat >>confdefs.h <<_ACEOF
3159#define VERSION "$VERSION"
3160_ACEOF
3161
3162# Some tools Automake needs.
3163
3164ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3165
3166
3167AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3168
3169
3170AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3171
3172
3173AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3174
3175
3176MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3177
3178# For better backward compatibility.  To be removed once Automake 1.9.x
3179# dies out for good.  For more background, see:
3180# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3181# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3182mkdir_p='$(MKDIR_P)'
3183
3184# We need awk for the "check" target (and possibly the TAP driver).  The
3185# system "awk" is bad on some platforms.
3186# Always define AMTAR for backward compatibility.  Yes, it's still used
3187# in the wild :-(  We should find a proper way to deprecate it ...
3188AMTAR='$${TAR-tar}'
3189
3190
3191# We'll loop over all known methods to create a tar archive until one works.
3192_am_tools='gnutar  pax cpio none'
3193
3194am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3195
3196
3197
3198
3199
3200
3201# POSIX will say in a future version that running "rm -f" with no argument
3202# is OK; and we want to be able to make that assumption in our Makefile
3203# recipes.  So use an aggressive probe to check that the usage we want is
3204# actually supported "in the wild" to an acceptable degree.
3205# See automake bug#10828.
3206# To make any issue more visible, cause the running configure to be aborted
3207# by default if the 'rm' program in use doesn't match our expectations; the
3208# user can still override this though.
3209if rm -f && rm -fr && rm -rf; then : OK; else
3210  cat >&2 <<'END'
3211Oops!
3212
3213Your 'rm' program seems unable to run without file operands specified
3214on the command line, even when the '-f' option is present.  This is contrary
3215to the behaviour of most rm programs out there, and not conforming with
3216the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3217
3218Please tell bug-automake@gnu.org about your system, including the value
3219of your $PATH and any error possibly output before this message.  This
3220can help us improve future automake versions.
3221
3222END
3223  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3224    echo 'Configuration will proceed anyway, since you have set the' >&2
3225    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3226    echo >&2
3227  else
3228    cat >&2 <<'END'
3229Aborting the configuration process, to ensure you take notice of the issue.
3230
3231You can download and install GNU coreutils to get an 'rm' implementation
3232that behaves properly: <http://www.gnu.org/software/coreutils/>.
3233
3234If you want to complete the configuration process using your problematic
3235'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3236to "yes", and re-run configure.
3237
3238END
3239    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3240  fi
3241fi
3242
3243
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3245$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3246    # Check whether --enable-maintainer-mode was given.
3247if test "${enable_maintainer_mode+set}" = set; then :
3248  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3249else
3250  USE_MAINTAINER_MODE=no
3251fi
3252
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3254$as_echo "$USE_MAINTAINER_MODE" >&6; }
3255   if test $USE_MAINTAINER_MODE = yes; then
3256  MAINTAINER_MODE_TRUE=
3257  MAINTAINER_MODE_FALSE='#'
3258else
3259  MAINTAINER_MODE_TRUE='#'
3260  MAINTAINER_MODE_FALSE=
3261fi
3262
3263  MAINT=$MAINTAINER_MODE_TRUE
3264
3265
3266
3267
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278$as_echo_n "checking for $ac_word... " >&6; }
3279if ${ac_cv_prog_CC+:} false; then :
3280  $as_echo_n "(cached) " >&6
3281else
3282  if test -n "$CC"; then
3283  ac_cv_prog_CC="$CC" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290    for ac_exec_ext in '' $ac_executable_extensions; do
3291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294    break 2
3295  fi
3296done
3297  done
3298IFS=$as_save_IFS
3299
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305$as_echo "$CC" >&6; }
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309fi
3310
3311
3312fi
3313if test -z "$ac_cv_prog_CC"; then
3314  ac_ct_CC=$CC
3315  # Extract the first word of "gcc", so it can be a program name with args.
3316set dummy gcc; ac_word=$2
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318$as_echo_n "checking for $ac_word... " >&6; }
3319if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  if test -n "$ac_ct_CC"; then
3323  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_ac_ct_CC="gcc"
3333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337  done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343if test -n "$ac_ct_CC"; then
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345$as_echo "$ac_ct_CC" >&6; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351  if test "x$ac_ct_CC" = x; then
3352    CC=""
3353  else
3354    case $cross_compiling:$ac_tool_warned in
3355yes:)
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358ac_tool_warned=yes ;;
3359esac
3360    CC=$ac_ct_CC
3361  fi
3362else
3363  CC="$ac_cv_prog_CC"
3364fi
3365
3366if test -z "$CC"; then
3367          if test -n "$ac_tool_prefix"; then
3368    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369set dummy ${ac_tool_prefix}cc; ac_word=$2
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if ${ac_cv_prog_CC+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  test -z "$as_dir" && as_dir=.
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_CC="${ac_tool_prefix}cc"
3386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395CC=$ac_cv_prog_CC
3396if test -n "$CC"; then
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398$as_echo "$CC" >&6; }
3399else
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
3402fi
3403
3404
3405  fi
3406fi
3407if test -z "$CC"; then
3408  # Extract the first word of "cc", so it can be a program name with args.
3409set dummy cc; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
3412if ${ac_cv_prog_CC+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  if test -n "$CC"; then
3416  ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418  ac_prog_rejected=no
3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH
3421do
3422  IFS=$as_save_IFS
3423  test -z "$as_dir" && as_dir=.
3424    for ac_exec_ext in '' $ac_executable_extensions; do
3425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427       ac_prog_rejected=yes
3428       continue
3429     fi
3430    ac_cv_prog_CC="cc"
3431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435  done
3436IFS=$as_save_IFS
3437
3438if test $ac_prog_rejected = yes; then
3439  # We found a bogon in the path, so make sure we never use it.
3440  set dummy $ac_cv_prog_CC
3441  shift
3442  if test $# != 0; then
3443    # We chose a different compiler from the bogus one.
3444    # However, it has the same basename, so the bogon will be chosen
3445    # first if we set CC to just the basename; use the full file name.
3446    shift
3447    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448  fi
3449fi
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
3456else
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461
3462fi
3463if test -z "$CC"; then
3464  if test -n "$ac_tool_prefix"; then
3465  for ac_prog in cl.exe
3466  do
3467    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_prog_CC+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -n "$CC"; then
3475  ac_cv_prog_CC="$CC" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  test -z "$as_dir" && as_dir=.
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494CC=$ac_cv_prog_CC
3495if test -n "$CC"; then
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497$as_echo "$CC" >&6; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503
3504    test -n "$CC" && break
3505  done
3506fi
3507if test -z "$CC"; then
3508  ac_ct_CC=$CC
3509  for ac_prog in cl.exe
3510do
3511  # Extract the first word of "$ac_prog", so it can be a program name with args.
3512set dummy $ac_prog; ac_word=$2
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514$as_echo_n "checking for $ac_word... " >&6; }
3515if ${ac_cv_prog_ac_ct_CC+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  if test -n "$ac_ct_CC"; then
3519  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524  IFS=$as_save_IFS
3525  test -z "$as_dir" && as_dir=.
3526    for ac_exec_ext in '' $ac_executable_extensions; do
3527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528    ac_cv_prog_ac_ct_CC="$ac_prog"
3529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530    break 2
3531  fi
3532done
3533  done
3534IFS=$as_save_IFS
3535
3536fi
3537fi
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
3540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3541$as_echo "$ac_ct_CC" >&6; }
3542else
3543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548  test -n "$ac_ct_CC" && break
3549done
3550
3551  if test "x$ac_ct_CC" = x; then
3552    CC=""
3553  else
3554    case $cross_compiling:$ac_tool_warned in
3555yes:)
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558ac_tool_warned=yes ;;
3559esac
3560    CC=$ac_ct_CC
3561  fi
3562fi
3563
3564fi
3565
3566
3567test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error $? "no acceptable C compiler found in \$PATH
3570See \`config.log' for more details" "$LINENO" 5; }
3571
3572# Provide some information about the compiler.
3573$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3574set X $ac_compile
3575ac_compiler=$2
3576for ac_option in --version -v -V -qversion; do
3577  { { ac_try="$ac_compiler $ac_option >&5"
3578case "(($ac_try" in
3579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580  *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3585  ac_status=$?
3586  if test -s conftest.err; then
3587    sed '10a\
3588... rest of stderr output deleted ...
3589         10q' conftest.err >conftest.er1
3590    cat conftest.er1 >&5
3591  fi
3592  rm -f conftest.er1 conftest.err
3593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594  test $ac_status = 0; }
3595done
3596
3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599
3600int
3601main ()
3602{
3603
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608ac_clean_files_save=$ac_clean_files
3609ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3610# Try to create an executable without -o first, disregard a.out.
3611# It will help us diagnose broken compilers, and finding out an intuition
3612# of exeext.
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3614$as_echo_n "checking whether the C compiler works... " >&6; }
3615ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616
3617# The possible output files:
3618ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619
3620ac_rmfiles=
3621for ac_file in $ac_files
3622do
3623  case $ac_file in
3624    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626  esac
3627done
3628rm -f $ac_rmfiles
3629
3630if { { ac_try="$ac_link_default"
3631case "(($ac_try" in
3632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633  *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
3637  (eval "$ac_link_default") 2>&5
3638  ac_status=$?
3639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640  test $ac_status = 0; }; then :
3641  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3644# so that the user can short-circuit this test for compilers unknown to
3645# Autoconf.
3646for ac_file in $ac_files ''
3647do
3648  test -f "$ac_file" || continue
3649  case $ac_file in
3650    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3651	;;
3652    [ab].out )
3653	# We found the default executable, but exeext='' is most
3654	# certainly right.
3655	break;;
3656    *.* )
3657	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658	then :; else
3659	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660	fi
3661	# We set ac_cv_exeext here because the later test for it is not
3662	# safe: cross compilers may not add the suffix if given an `-o'
3663	# argument, so we may need to know it at that point already.
3664	# Even if this section looks crufty: it has the advantage of
3665	# actually working.
3666	break;;
3667    * )
3668	break;;
3669  esac
3670done
3671test "$ac_cv_exeext" = no && ac_cv_exeext=
3672
3673else
3674  ac_file=''
3675fi
3676if test -z "$ac_file"; then :
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678$as_echo "no" >&6; }
3679$as_echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684as_fn_error 77 "C compiler cannot create executables
3685See \`config.log' for more details" "$LINENO" 5; }
3686else
3687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688$as_echo "yes" >&6; }
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3691$as_echo_n "checking for C compiler default output file name... " >&6; }
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693$as_echo "$ac_file" >&6; }
3694ac_exeext=$ac_cv_exeext
3695
3696rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3697ac_clean_files=$ac_clean_files_save
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3699$as_echo_n "checking for suffix of executables... " >&6; }
3700if { { ac_try="$ac_link"
3701case "(($ac_try" in
3702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703  *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706$as_echo "$ac_try_echo"; } >&5
3707  (eval "$ac_link") 2>&5
3708  ac_status=$?
3709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710  test $ac_status = 0; }; then :
3711  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3713# work properly (i.e., refer to `conftest.exe'), while it won't with
3714# `rm'.
3715for ac_file in conftest.exe conftest conftest.*; do
3716  test -f "$ac_file" || continue
3717  case $ac_file in
3718    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3719    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720	  break;;
3721    * ) break;;
3722  esac
3723done
3724else
3725  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3728See \`config.log' for more details" "$LINENO" 5; }
3729fi
3730rm -f conftest conftest$ac_cv_exeext
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3732$as_echo "$ac_cv_exeext" >&6; }
3733
3734rm -f conftest.$ac_ext
3735EXEEXT=$ac_cv_exeext
3736ac_exeext=$EXEEXT
3737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739#include <stdio.h>
3740int
3741main ()
3742{
3743FILE *f = fopen ("conftest.out", "w");
3744 return ferror (f) || fclose (f) != 0;
3745
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750ac_clean_files="$ac_clean_files conftest.out"
3751# Check that the compiler produces executables we can run.  If not, either
3752# the compiler is broken, or we cross compile.
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754$as_echo_n "checking whether we are cross compiling... " >&6; }
3755if test "$cross_compiling" != yes; then
3756  { { ac_try="$ac_link"
3757case "(($ac_try" in
3758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759  *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762$as_echo "$ac_try_echo"; } >&5
3763  (eval "$ac_link") 2>&5
3764  ac_status=$?
3765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766  test $ac_status = 0; }
3767  if { ac_try='./conftest$ac_cv_exeext'
3768  { { case "(($ac_try" in
3769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770  *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5
3774  (eval "$ac_try") 2>&5
3775  ac_status=$?
3776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777  test $ac_status = 0; }; }; then
3778    cross_compiling=no
3779  else
3780    if test "$cross_compiling" = maybe; then
3781	cross_compiling=yes
3782    else
3783	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error $? "cannot run C compiled programs.
3786If you meant to cross compile, use \`--host'.
3787See \`config.log' for more details" "$LINENO" 5; }
3788    fi
3789  fi
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792$as_echo "$cross_compiling" >&6; }
3793
3794rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3795ac_clean_files=$ac_clean_files_save
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3797$as_echo_n "checking for suffix of object files... " >&6; }
3798if ${ac_cv_objext+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.o conftest.obj
3813if { { ac_try="$ac_compile"
3814case "(($ac_try" in
3815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816  *) ac_try_echo=$ac_try;;
3817esac
3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819$as_echo "$ac_try_echo"; } >&5
3820  (eval "$ac_compile") 2>&5
3821  ac_status=$?
3822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823  test $ac_status = 0; }; then :
3824  for ac_file in conftest.o conftest.obj conftest.*; do
3825  test -f "$ac_file" || continue;
3826  case $ac_file in
3827    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3828    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829       break;;
3830  esac
3831done
3832else
3833  $as_echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838as_fn_error $? "cannot compute suffix of object files: cannot compile
3839See \`config.log' for more details" "$LINENO" 5; }
3840fi
3841rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3844$as_echo "$ac_cv_objext" >&6; }
3845OBJEXT=$ac_cv_objext
3846ac_objext=$OBJEXT
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3848$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3849if ${ac_cv_c_compiler_gnu+:} false; then :
3850  $as_echo_n "(cached) " >&6
3851else
3852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858#ifndef __GNUC__
3859       choke me
3860#endif
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867  ac_compiler_gnu=yes
3868else
3869  ac_compiler_gnu=no
3870fi
3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872ac_cv_c_compiler_gnu=$ac_compiler_gnu
3873
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3876$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3877if test $ac_compiler_gnu = yes; then
3878  GCC=yes
3879else
3880  GCC=
3881fi
3882ac_test_CFLAGS=${CFLAGS+set}
3883ac_save_CFLAGS=$CFLAGS
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3885$as_echo_n "checking whether $CC accepts -g... " >&6; }
3886if ${ac_cv_prog_cc_g+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  ac_save_c_werror_flag=$ac_c_werror_flag
3890   ac_c_werror_flag=yes
3891   ac_cv_prog_cc_g=no
3892   CFLAGS="-g"
3893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895
3896int
3897main ()
3898{
3899
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904if ac_fn_c_try_compile "$LINENO"; then :
3905  ac_cv_prog_cc_g=yes
3906else
3907  CFLAGS=""
3908      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911int
3912main ()
3913{
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920
3921else
3922  ac_c_werror_flag=$ac_save_c_werror_flag
3923	 CFLAGS="-g"
3924	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926
3927int
3928main ()
3929{
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935if ac_fn_c_try_compile "$LINENO"; then :
3936  ac_cv_prog_cc_g=yes
3937fi
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941fi
3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943   ac_c_werror_flag=$ac_save_c_werror_flag
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3946$as_echo "$ac_cv_prog_cc_g" >&6; }
3947if test "$ac_test_CFLAGS" = set; then
3948  CFLAGS=$ac_save_CFLAGS
3949elif test $ac_cv_prog_cc_g = yes; then
3950  if test "$GCC" = yes; then
3951    CFLAGS="-g -O2"
3952  else
3953    CFLAGS="-g"
3954  fi
3955else
3956  if test "$GCC" = yes; then
3957    CFLAGS="-O2"
3958  else
3959    CFLAGS=
3960  fi
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3963$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3964if ${ac_cv_prog_cc_c89+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  ac_cv_prog_cc_c89=no
3968ac_save_CC=$CC
3969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971#include <stdarg.h>
3972#include <stdio.h>
3973struct stat;
3974/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3975struct buf { int x; };
3976FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977static char *e (p, i)
3978     char **p;
3979     int i;
3980{
3981  return p[i];
3982}
3983static char *f (char * (*g) (char **, int), char **p, ...)
3984{
3985  char *s;
3986  va_list v;
3987  va_start (v,p);
3988  s = g (p, va_arg (v,int));
3989  va_end (v);
3990  return s;
3991}
3992
3993/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3994   function prototypes and stuff, but not '\xHH' hex character constants.
3995   These don't provoke an error unfortunately, instead are silently treated
3996   as 'x'.  The following induces an error, until -std is added to get
3997   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3998   array size at least.  It's necessary to write '\x00'==0 to get something
3999   that's true only with -std.  */
4000int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4001
4002/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4003   inside strings and character constants.  */
4004#define FOO(x) 'x'
4005int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4006
4007int test (int i, double x);
4008struct s1 {int (*f) (int a);};
4009struct s2 {int (*f) (double a);};
4010int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4011int argc;
4012char **argv;
4013int
4014main ()
4015{
4016return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4022	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4023do
4024  CC="$ac_save_CC $ac_arg"
4025  if ac_fn_c_try_compile "$LINENO"; then :
4026  ac_cv_prog_cc_c89=$ac_arg
4027fi
4028rm -f core conftest.err conftest.$ac_objext
4029  test "x$ac_cv_prog_cc_c89" != "xno" && break
4030done
4031rm -f conftest.$ac_ext
4032CC=$ac_save_CC
4033
4034fi
4035# AC_CACHE_VAL
4036case "x$ac_cv_prog_cc_c89" in
4037  x)
4038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4039$as_echo "none needed" >&6; } ;;
4040  xno)
4041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4042$as_echo "unsupported" >&6; } ;;
4043  *)
4044    CC="$CC $ac_cv_prog_cc_c89"
4045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4046$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4047esac
4048if test "x$ac_cv_prog_cc_c89" != xno; then :
4049
4050fi
4051
4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4064$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4065if ${am_cv_prog_cc_c_o+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079  # Make sure it works both with $CC and with simple cc.
4080  # Following AC_PROG_CC_C_O, we do the test twice because some
4081  # compilers refuse to overwrite an existing .o file with -o,
4082  # though they will create one.
4083  am_cv_prog_cc_c_o=yes
4084  for am_i in 1 2; do
4085    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4086   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } \
4090         && test -f conftest2.$ac_objext; then
4091      : OK
4092    else
4093      am_cv_prog_cc_c_o=no
4094      break
4095    fi
4096  done
4097  rm -f core conftest*
4098  unset am_i
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4101$as_echo "$am_cv_prog_cc_c_o" >&6; }
4102if test "$am_cv_prog_cc_c_o" != yes; then
4103   # Losing compiler, so override with the script.
4104   # FIXME: It is wrong to rewrite CC.
4105   # But if we don't then we get into trouble of one sort or another.
4106   # A longer-term fix would be to have automake use am__CC in this case,
4107   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4108   CC="$am_aux_dir/compile $CC"
4109fi
4110ac_ext=c
4111ac_cpp='$CPP $CPPFLAGS'
4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116DEPDIR="${am__leading_dot}deps"
4117
4118ac_config_commands="$ac_config_commands depfiles"
4119
4120
4121am_make=${MAKE-make}
4122cat > confinc << 'END'
4123am__doit:
4124	@echo this is the am__doit target
4125.PHONY: am__doit
4126END
4127# If we don't find an include directive, just comment out the code.
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4129$as_echo_n "checking for style of include used by $am_make... " >&6; }
4130am__include="#"
4131am__quote=
4132_am_result=none
4133# First try GNU make style include.
4134echo "include confinc" > confmf
4135# Ignore all kinds of additional output from 'make'.
4136case `$am_make -s -f confmf 2> /dev/null` in #(
4137*the\ am__doit\ target*)
4138  am__include=include
4139  am__quote=
4140  _am_result=GNU
4141  ;;
4142esac
4143# Now try BSD make style include.
4144if test "$am__include" = "#"; then
4145   echo '.include "confinc"' > confmf
4146   case `$am_make -s -f confmf 2> /dev/null` in #(
4147   *the\ am__doit\ target*)
4148     am__include=.include
4149     am__quote="\""
4150     _am_result=BSD
4151     ;;
4152   esac
4153fi
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4157$as_echo "$_am_result" >&6; }
4158rm -f confinc confmf
4159
4160# Check whether --enable-dependency-tracking was given.
4161if test "${enable_dependency_tracking+set}" = set; then :
4162  enableval=$enable_dependency_tracking;
4163fi
4164
4165if test "x$enable_dependency_tracking" != xno; then
4166  am_depcomp="$ac_aux_dir/depcomp"
4167  AMDEPBACKSLASH='\'
4168  am__nodep='_no'
4169fi
4170 if test "x$enable_dependency_tracking" != xno; then
4171  AMDEP_TRUE=
4172  AMDEP_FALSE='#'
4173else
4174  AMDEP_TRUE='#'
4175  AMDEP_FALSE=
4176fi
4177
4178
4179
4180depcc="$CC"   am_compiler_list=
4181
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183$as_echo_n "checking dependency style of $depcc... " >&6; }
4184if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188  # We make a subdir and do the tests there.  Otherwise we can end up
4189  # making bogus files that we don't know about and never remove.  For
4190  # instance it was reported that on HP-UX the gcc test will end up
4191  # making a dummy file named 'D' -- because '-MD' means "put the output
4192  # in D".
4193  rm -rf conftest.dir
4194  mkdir conftest.dir
4195  # Copy depcomp to subdir because otherwise we won't find it if we're
4196  # using a relative directory.
4197  cp "$am_depcomp" conftest.dir
4198  cd conftest.dir
4199  # We will build objects and dependencies in a subdirectory because
4200  # it helps to detect inapplicable dependency modes.  For instance
4201  # both Tru64's cc and ICC support -MD to output dependencies as a
4202  # side effect of compilation, but ICC will put the dependencies in
4203  # the current directory while Tru64 will put them in the object
4204  # directory.
4205  mkdir sub
4206
4207  am_cv_CC_dependencies_compiler_type=none
4208  if test "$am_compiler_list" = ""; then
4209     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210  fi
4211  am__universal=false
4212  case " $depcc " in #(
4213     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214     esac
4215
4216  for depmode in $am_compiler_list; do
4217    # Setup a source with many dependencies, because some compilers
4218    # like to wrap large dependency lists on column 80 (with \), and
4219    # we should not choose a depcomp mode which is confused by this.
4220    #
4221    # We need to recreate these files for each test, as the compiler may
4222    # overwrite some of them when testing with obscure command lines.
4223    # This happens at least with the AIX C compiler.
4224    : > sub/conftest.c
4225    for i in 1 2 3 4 5 6; do
4226      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228      # Solaris 10 /bin/sh.
4229      echo '/* dummy */' > sub/conftst$i.h
4230    done
4231    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234    # mode.  It turns out that the SunPro C++ compiler does not properly
4235    # handle '-M -o', and we need to detect this.  Also, some Intel
4236    # versions had trouble with output in subdirs.
4237    am__obj=sub/conftest.${OBJEXT-o}
4238    am__minus_obj="-o $am__obj"
4239    case $depmode in
4240    gcc)
4241      # This depmode causes a compiler race in universal mode.
4242      test "$am__universal" = false || continue
4243      ;;
4244    nosideeffect)
4245      # After this tag, mechanisms are not by side-effect, so they'll
4246      # only be used when explicitly requested.
4247      if test "x$enable_dependency_tracking" = xyes; then
4248	continue
4249      else
4250	break
4251      fi
4252      ;;
4253    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254      # This compiler won't grok '-c -o', but also, the minuso test has
4255      # not run yet.  These depmodes are late enough in the game, and
4256      # so weak that their functioning should not be impacted.
4257      am__obj=conftest.${OBJEXT-o}
4258      am__minus_obj=
4259      ;;
4260    none) break ;;
4261    esac
4262    if depmode=$depmode \
4263       source=sub/conftest.c object=$am__obj \
4264       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266         >/dev/null 2>conftest.err &&
4267       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271      # icc doesn't choke on unknown options, it will just issue warnings
4272      # or remarks (even with -Werror).  So we grep stderr for any message
4273      # that says an option was ignored or not supported.
4274      # When given -MP, icc 7.0 and 7.1 complain thusly:
4275      #   icc: Command line warning: ignoring option '-M'; no argument required
4276      # The diagnosis changed in icc 8.0:
4277      #   icc: Command line remark: option '-MP' not supported
4278      if (grep 'ignoring option' conftest.err ||
4279          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280        am_cv_CC_dependencies_compiler_type=$depmode
4281        break
4282      fi
4283    fi
4284  done
4285
4286  cd ..
4287  rm -rf conftest.dir
4288else
4289  am_cv_CC_dependencies_compiler_type=none
4290fi
4291
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296
4297 if
4298  test "x$enable_dependency_tracking" != xno \
4299  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300  am__fastdepCC_TRUE=
4301  am__fastdepCC_FALSE='#'
4302else
4303  am__fastdepCC_TRUE='#'
4304  am__fastdepCC_FALSE=
4305fi
4306
4307
4308case `pwd` in
4309  *\ * | *\	*)
4310    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4311$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4312esac
4313
4314
4315
4316macro_version='2.4.6'
4317macro_revision='2.4.6'
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331ltmain=$ac_aux_dir/ltmain.sh
4332
4333# Make sure we can run config.sub.
4334$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4338$as_echo_n "checking build system type... " >&6; }
4339if ${ac_cv_build+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  ac_build_alias=$build_alias
4343test "x$ac_build_alias" = x &&
4344  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345test "x$ac_build_alias" = x &&
4346  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4347ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4349
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4352$as_echo "$ac_cv_build" >&6; }
4353case $ac_cv_build in
4354*-*-*) ;;
4355*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4356esac
4357build=$ac_cv_build
4358ac_save_IFS=$IFS; IFS='-'
4359set x $ac_cv_build
4360shift
4361build_cpu=$1
4362build_vendor=$2
4363shift; shift
4364# Remember, the first character of IFS is used to create $*,
4365# except with old shells:
4366build_os=$*
4367IFS=$ac_save_IFS
4368case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4369
4370
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4372$as_echo_n "checking host system type... " >&6; }
4373if ${ac_cv_host+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  if test "x$host_alias" = x; then
4377  ac_cv_host=$ac_cv_build
4378else
4379  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4380    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4381fi
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4385$as_echo "$ac_cv_host" >&6; }
4386case $ac_cv_host in
4387*-*-*) ;;
4388*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4389esac
4390host=$ac_cv_host
4391ac_save_IFS=$IFS; IFS='-'
4392set x $ac_cv_host
4393shift
4394host_cpu=$1
4395host_vendor=$2
4396shift; shift
4397# Remember, the first character of IFS is used to create $*,
4398# except with old shells:
4399host_os=$*
4400IFS=$ac_save_IFS
4401case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4402
4403
4404# Backslashify metacharacters that are still active within
4405# double-quoted strings.
4406sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4407
4408# Same as above, but do not quote variable references.
4409double_quote_subst='s/\(["`\\]\)/\\\1/g'
4410
4411# Sed substitution to delay expansion of an escaped shell variable in a
4412# double_quote_subst'ed string.
4413delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4414
4415# Sed substitution to delay expansion of an escaped single quote.
4416delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4417
4418# Sed substitution to avoid accidental globbing in evaled expressions
4419no_glob_subst='s/\*/\\\*/g'
4420
4421ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4423ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4426$as_echo_n "checking how to print strings... " >&6; }
4427# Test print first, because it will be a builtin if present.
4428if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4429   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4430  ECHO='print -r --'
4431elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4432  ECHO='printf %s\n'
4433else
4434  # Use this function as a fallback that always works.
4435  func_fallback_echo ()
4436  {
4437    eval 'cat <<_LTECHO_EOF
4438$1
4439_LTECHO_EOF'
4440  }
4441  ECHO='func_fallback_echo'
4442fi
4443
4444# func_echo_all arg...
4445# Invoke $ECHO with all args, space-separated.
4446func_echo_all ()
4447{
4448    $ECHO ""
4449}
4450
4451case $ECHO in
4452  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4453$as_echo "printf" >&6; } ;;
4454  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4455$as_echo "print -r" >&6; } ;;
4456  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4457$as_echo "cat" >&6; } ;;
4458esac
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4474$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4475if ${ac_cv_path_SED+:} false; then :
4476  $as_echo_n "(cached) " >&6
4477else
4478            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4479     for ac_i in 1 2 3 4 5 6 7; do
4480       ac_script="$ac_script$as_nl$ac_script"
4481     done
4482     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4483     { ac_script=; unset ac_script;}
4484     if test -z "$SED"; then
4485  ac_path_SED_found=false
4486  # Loop through the user's path and test for each of PROGNAME-LIST
4487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490  IFS=$as_save_IFS
4491  test -z "$as_dir" && as_dir=.
4492    for ac_prog in sed gsed; do
4493    for ac_exec_ext in '' $ac_executable_extensions; do
4494      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4495      as_fn_executable_p "$ac_path_SED" || continue
4496# Check for GNU ac_path_SED and select it if it is found.
4497  # Check for GNU $ac_path_SED
4498case `"$ac_path_SED" --version 2>&1` in
4499*GNU*)
4500  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4501*)
4502  ac_count=0
4503  $as_echo_n 0123456789 >"conftest.in"
4504  while :
4505  do
4506    cat "conftest.in" "conftest.in" >"conftest.tmp"
4507    mv "conftest.tmp" "conftest.in"
4508    cp "conftest.in" "conftest.nl"
4509    $as_echo '' >> "conftest.nl"
4510    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512    as_fn_arith $ac_count + 1 && ac_count=$as_val
4513    if test $ac_count -gt ${ac_path_SED_max-0}; then
4514      # Best one so far, save it but keep looking for a better one
4515      ac_cv_path_SED="$ac_path_SED"
4516      ac_path_SED_max=$ac_count
4517    fi
4518    # 10*(2^10) chars as input seems more than enough
4519    test $ac_count -gt 10 && break
4520  done
4521  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522esac
4523
4524      $ac_path_SED_found && break 3
4525    done
4526  done
4527  done
4528IFS=$as_save_IFS
4529  if test -z "$ac_cv_path_SED"; then
4530    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4531  fi
4532else
4533  ac_cv_path_SED=$SED
4534fi
4535
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4538$as_echo "$ac_cv_path_SED" >&6; }
4539 SED="$ac_cv_path_SED"
4540  rm -f conftest.sed
4541
4542test -z "$SED" && SED=sed
4543Xsed="$SED -e 1s/^X//"
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557if ${ac_cv_path_GREP+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -z "$GREP"; then
4561  ac_path_GREP_found=false
4562  # Loop through the user's path and test for each of PROGNAME-LIST
4563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_prog in grep ggrep; do
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571      as_fn_executable_p "$ac_path_GREP" || continue
4572# Check for GNU ac_path_GREP and select it if it is found.
4573  # Check for GNU $ac_path_GREP
4574case `"$ac_path_GREP" --version 2>&1` in
4575*GNU*)
4576  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577*)
4578  ac_count=0
4579  $as_echo_n 0123456789 >"conftest.in"
4580  while :
4581  do
4582    cat "conftest.in" "conftest.in" >"conftest.tmp"
4583    mv "conftest.tmp" "conftest.in"
4584    cp "conftest.in" "conftest.nl"
4585    $as_echo 'GREP' >> "conftest.nl"
4586    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588    as_fn_arith $ac_count + 1 && ac_count=$as_val
4589    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590      # Best one so far, save it but keep looking for a better one
4591      ac_cv_path_GREP="$ac_path_GREP"
4592      ac_path_GREP_max=$ac_count
4593    fi
4594    # 10*(2^10) chars as input seems more than enough
4595    test $ac_count -gt 10 && break
4596  done
4597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598esac
4599
4600      $ac_path_GREP_found && break 3
4601    done
4602  done
4603  done
4604IFS=$as_save_IFS
4605  if test -z "$ac_cv_path_GREP"; then
4606    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607  fi
4608else
4609  ac_cv_path_GREP=$GREP
4610fi
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614$as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619$as_echo_n "checking for egrep... " >&6; }
4620if ${ac_cv_path_EGREP+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624   then ac_cv_path_EGREP="$GREP -E"
4625   else
4626     if test -z "$EGREP"; then
4627  ac_path_EGREP_found=false
4628  # Loop through the user's path and test for each of PROGNAME-LIST
4629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634    for ac_prog in egrep; do
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637      as_fn_executable_p "$ac_path_EGREP" || continue
4638# Check for GNU ac_path_EGREP and select it if it is found.
4639  # Check for GNU $ac_path_EGREP
4640case `"$ac_path_EGREP" --version 2>&1` in
4641*GNU*)
4642  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643*)
4644  ac_count=0
4645  $as_echo_n 0123456789 >"conftest.in"
4646  while :
4647  do
4648    cat "conftest.in" "conftest.in" >"conftest.tmp"
4649    mv "conftest.tmp" "conftest.in"
4650    cp "conftest.in" "conftest.nl"
4651    $as_echo 'EGREP' >> "conftest.nl"
4652    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654    as_fn_arith $ac_count + 1 && ac_count=$as_val
4655    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656      # Best one so far, save it but keep looking for a better one
4657      ac_cv_path_EGREP="$ac_path_EGREP"
4658      ac_path_EGREP_max=$ac_count
4659    fi
4660    # 10*(2^10) chars as input seems more than enough
4661    test $ac_count -gt 10 && break
4662  done
4663  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664esac
4665
4666      $ac_path_EGREP_found && break 3
4667    done
4668  done
4669  done
4670IFS=$as_save_IFS
4671  if test -z "$ac_cv_path_EGREP"; then
4672    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673  fi
4674else
4675  ac_cv_path_EGREP=$EGREP
4676fi
4677
4678   fi
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681$as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4686$as_echo_n "checking for fgrep... " >&6; }
4687if ${ac_cv_path_FGREP+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4691   then ac_cv_path_FGREP="$GREP -F"
4692   else
4693     if test -z "$FGREP"; then
4694  ac_path_FGREP_found=false
4695  # Loop through the user's path and test for each of PROGNAME-LIST
4696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698do
4699  IFS=$as_save_IFS
4700  test -z "$as_dir" && as_dir=.
4701    for ac_prog in fgrep; do
4702    for ac_exec_ext in '' $ac_executable_extensions; do
4703      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4704      as_fn_executable_p "$ac_path_FGREP" || continue
4705# Check for GNU ac_path_FGREP and select it if it is found.
4706  # Check for GNU $ac_path_FGREP
4707case `"$ac_path_FGREP" --version 2>&1` in
4708*GNU*)
4709  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4710*)
4711  ac_count=0
4712  $as_echo_n 0123456789 >"conftest.in"
4713  while :
4714  do
4715    cat "conftest.in" "conftest.in" >"conftest.tmp"
4716    mv "conftest.tmp" "conftest.in"
4717    cp "conftest.in" "conftest.nl"
4718    $as_echo 'FGREP' >> "conftest.nl"
4719    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721    as_fn_arith $ac_count + 1 && ac_count=$as_val
4722    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4723      # Best one so far, save it but keep looking for a better one
4724      ac_cv_path_FGREP="$ac_path_FGREP"
4725      ac_path_FGREP_max=$ac_count
4726    fi
4727    # 10*(2^10) chars as input seems more than enough
4728    test $ac_count -gt 10 && break
4729  done
4730  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731esac
4732
4733      $ac_path_FGREP_found && break 3
4734    done
4735  done
4736  done
4737IFS=$as_save_IFS
4738  if test -z "$ac_cv_path_FGREP"; then
4739    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740  fi
4741else
4742  ac_cv_path_FGREP=$FGREP
4743fi
4744
4745   fi
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4748$as_echo "$ac_cv_path_FGREP" >&6; }
4749 FGREP="$ac_cv_path_FGREP"
4750
4751
4752test -z "$GREP" && GREP=grep
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772# Check whether --with-gnu-ld was given.
4773if test "${with_gnu_ld+set}" = set; then :
4774  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4775else
4776  with_gnu_ld=no
4777fi
4778
4779ac_prog=ld
4780if test yes = "$GCC"; then
4781  # Check if gcc -print-prog-name=ld gives a path.
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4783$as_echo_n "checking for ld used by $CC... " >&6; }
4784  case $host in
4785  *-*-mingw*)
4786    # gcc leaves a trailing carriage return, which upsets mingw
4787    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4788  *)
4789    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4790  esac
4791  case $ac_prog in
4792    # Accept absolute paths.
4793    [\\/]* | ?:[\\/]*)
4794      re_direlt='/[^/][^/]*/\.\./'
4795      # Canonicalize the pathname of ld
4796      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4797      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4798	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4799      done
4800      test -z "$LD" && LD=$ac_prog
4801      ;;
4802  "")
4803    # If it fails, then pretend we aren't using GCC.
4804    ac_prog=ld
4805    ;;
4806  *)
4807    # If it is relative, then search for the first ld in PATH.
4808    with_gnu_ld=unknown
4809    ;;
4810  esac
4811elif test yes = "$with_gnu_ld"; then
4812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4813$as_echo_n "checking for GNU ld... " >&6; }
4814else
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4816$as_echo_n "checking for non-GNU ld... " >&6; }
4817fi
4818if ${lt_cv_path_LD+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  if test -z "$LD"; then
4822  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4823  for ac_dir in $PATH; do
4824    IFS=$lt_save_ifs
4825    test -z "$ac_dir" && ac_dir=.
4826    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4827      lt_cv_path_LD=$ac_dir/$ac_prog
4828      # Check to see if the program is GNU ld.  I'd rather use --version,
4829      # but apparently some variants of GNU ld only accept -v.
4830      # Break only if it was the GNU/non-GNU ld that we prefer.
4831      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4832      *GNU* | *'with BFD'*)
4833	test no != "$with_gnu_ld" && break
4834	;;
4835      *)
4836	test yes != "$with_gnu_ld" && break
4837	;;
4838      esac
4839    fi
4840  done
4841  IFS=$lt_save_ifs
4842else
4843  lt_cv_path_LD=$LD # Let the user override the test with a path.
4844fi
4845fi
4846
4847LD=$lt_cv_path_LD
4848if test -n "$LD"; then
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4850$as_echo "$LD" >&6; }
4851else
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4857$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4858if ${lt_cv_prog_gnu_ld+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4862case `$LD -v 2>&1 </dev/null` in
4863*GNU* | *'with BFD'*)
4864  lt_cv_prog_gnu_ld=yes
4865  ;;
4866*)
4867  lt_cv_prog_gnu_ld=no
4868  ;;
4869esac
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4872$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4873with_gnu_ld=$lt_cv_prog_gnu_ld
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4884$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4885if ${lt_cv_path_NM+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  if test -n "$NM"; then
4889  # Let the user override the test.
4890  lt_cv_path_NM=$NM
4891else
4892  lt_nm_to_check=${ac_tool_prefix}nm
4893  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4894    lt_nm_to_check="$lt_nm_to_check nm"
4895  fi
4896  for lt_tmp_nm in $lt_nm_to_check; do
4897    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4898    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4899      IFS=$lt_save_ifs
4900      test -z "$ac_dir" && ac_dir=.
4901      tmp_nm=$ac_dir/$lt_tmp_nm
4902      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4903	# Check to see if the nm accepts a BSD-compat flag.
4904	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4905	#   nm: unknown option "B" ignored
4906	# Tru64's nm complains that /dev/null is an invalid object file
4907	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4908	case $build_os in
4909	mingw*) lt_bad_file=conftest.nm/nofile ;;
4910	*) lt_bad_file=/dev/null ;;
4911	esac
4912	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4913	*$lt_bad_file* | *'Invalid file or object type'*)
4914	  lt_cv_path_NM="$tmp_nm -B"
4915	  break 2
4916	  ;;
4917	*)
4918	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4919	  */dev/null*)
4920	    lt_cv_path_NM="$tmp_nm -p"
4921	    break 2
4922	    ;;
4923	  *)
4924	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925	    continue # so that we can try to find one that supports BSD flags
4926	    ;;
4927	  esac
4928	  ;;
4929	esac
4930      fi
4931    done
4932    IFS=$lt_save_ifs
4933  done
4934  : ${lt_cv_path_NM=no}
4935fi
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4938$as_echo "$lt_cv_path_NM" >&6; }
4939if test no != "$lt_cv_path_NM"; then
4940  NM=$lt_cv_path_NM
4941else
4942  # Didn't find any BSD compatible name lister, look for dumpbin.
4943  if test -n "$DUMPBIN"; then :
4944    # Let the user override the test.
4945  else
4946    if test -n "$ac_tool_prefix"; then
4947  for ac_prog in dumpbin "link -dump"
4948  do
4949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_prog_DUMPBIN+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -n "$DUMPBIN"; then
4957  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976DUMPBIN=$ac_cv_prog_DUMPBIN
4977if test -n "$DUMPBIN"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4979$as_echo "$DUMPBIN" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985
4986    test -n "$DUMPBIN" && break
4987  done
4988fi
4989if test -z "$DUMPBIN"; then
4990  ac_ct_DUMPBIN=$DUMPBIN
4991  for ac_prog in dumpbin "link -dump"
4992do
4993  # Extract the first word of "$ac_prog", so it can be a program name with args.
4994set dummy $ac_prog; ac_word=$2
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996$as_echo_n "checking for $ac_word... " >&6; }
4997if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  if test -n "$ac_ct_DUMPBIN"; then
5001  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015  done
5016IFS=$as_save_IFS
5017
5018fi
5019fi
5020ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5021if test -n "$ac_ct_DUMPBIN"; then
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5023$as_echo "$ac_ct_DUMPBIN" >&6; }
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026$as_echo "no" >&6; }
5027fi
5028
5029
5030  test -n "$ac_ct_DUMPBIN" && break
5031done
5032
5033  if test "x$ac_ct_DUMPBIN" = x; then
5034    DUMPBIN=":"
5035  else
5036    case $cross_compiling:$ac_tool_warned in
5037yes:)
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040ac_tool_warned=yes ;;
5041esac
5042    DUMPBIN=$ac_ct_DUMPBIN
5043  fi
5044fi
5045
5046    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5047    *COFF*)
5048      DUMPBIN="$DUMPBIN -symbols -headers"
5049      ;;
5050    *)
5051      DUMPBIN=:
5052      ;;
5053    esac
5054  fi
5055
5056  if test : != "$DUMPBIN"; then
5057    NM=$DUMPBIN
5058  fi
5059fi
5060test -z "$NM" && NM=nm
5061
5062
5063
5064
5065
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5068$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5069if ${lt_cv_nm_interface+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  lt_cv_nm_interface="BSD nm"
5073  echo "int some_variable = 0;" > conftest.$ac_ext
5074  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5075  (eval "$ac_compile" 2>conftest.err)
5076  cat conftest.err >&5
5077  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5078  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5079  cat conftest.err >&5
5080  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5081  cat conftest.out >&5
5082  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5083    lt_cv_nm_interface="MS dumpbin"
5084  fi
5085  rm -f conftest*
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5088$as_echo "$lt_cv_nm_interface" >&6; }
5089
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5091$as_echo_n "checking whether ln -s works... " >&6; }
5092LN_S=$as_ln_s
5093if test "$LN_S" = "ln -s"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095$as_echo "yes" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5098$as_echo "no, using $LN_S" >&6; }
5099fi
5100
5101# find the maximum length of command line arguments
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5103$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5104if ${lt_cv_sys_max_cmd_len+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107    i=0
5108  teststring=ABCD
5109
5110  case $build_os in
5111  msdosdjgpp*)
5112    # On DJGPP, this test can blow up pretty badly due to problems in libc
5113    # (any single argument exceeding 2000 bytes causes a buffer overrun
5114    # during glob expansion).  Even if it were fixed, the result of this
5115    # check would be larger than it should be.
5116    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5117    ;;
5118
5119  gnu*)
5120    # Under GNU Hurd, this test is not required because there is
5121    # no limit to the length of command line arguments.
5122    # Libtool will interpret -1 as no limit whatsoever
5123    lt_cv_sys_max_cmd_len=-1;
5124    ;;
5125
5126  cygwin* | mingw* | cegcc*)
5127    # On Win9x/ME, this test blows up -- it succeeds, but takes
5128    # about 5 minutes as the teststring grows exponentially.
5129    # Worse, since 9x/ME are not pre-emptively multitasking,
5130    # you end up with a "frozen" computer, even though with patience
5131    # the test eventually succeeds (with a max line length of 256k).
5132    # Instead, let's just punt: use the minimum linelength reported by
5133    # all of the supported platforms: 8192 (on NT/2K/XP).
5134    lt_cv_sys_max_cmd_len=8192;
5135    ;;
5136
5137  mint*)
5138    # On MiNT this can take a long time and run out of memory.
5139    lt_cv_sys_max_cmd_len=8192;
5140    ;;
5141
5142  amigaos*)
5143    # On AmigaOS with pdksh, this test takes hours, literally.
5144    # So we just punt and use a minimum line length of 8192.
5145    lt_cv_sys_max_cmd_len=8192;
5146    ;;
5147
5148  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5149    # This has been around since 386BSD, at least.  Likely further.
5150    if test -x /sbin/sysctl; then
5151      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5152    elif test -x /usr/sbin/sysctl; then
5153      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5154    else
5155      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5156    fi
5157    # And add a safety zone
5158    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5159    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5160    ;;
5161
5162  interix*)
5163    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5164    lt_cv_sys_max_cmd_len=196608
5165    ;;
5166
5167  os2*)
5168    # The test takes a long time on OS/2.
5169    lt_cv_sys_max_cmd_len=8192
5170    ;;
5171
5172  osf*)
5173    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5174    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5175    # nice to cause kernel panics so lets avoid the loop below.
5176    # First set a reasonable default.
5177    lt_cv_sys_max_cmd_len=16384
5178    #
5179    if test -x /sbin/sysconfig; then
5180      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5181        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5182      esac
5183    fi
5184    ;;
5185  sco3.2v5*)
5186    lt_cv_sys_max_cmd_len=102400
5187    ;;
5188  sysv5* | sco5v6* | sysv4.2uw2*)
5189    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5190    if test -n "$kargmax"; then
5191      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5192    else
5193      lt_cv_sys_max_cmd_len=32768
5194    fi
5195    ;;
5196  *)
5197    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5198    if test -n "$lt_cv_sys_max_cmd_len" && \
5199       test undefined != "$lt_cv_sys_max_cmd_len"; then
5200      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202    else
5203      # Make teststring a little bigger before we do anything with it.
5204      # a 1K string should be a reasonable start.
5205      for i in 1 2 3 4 5 6 7 8; do
5206        teststring=$teststring$teststring
5207      done
5208      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5209      # If test is not a shell built-in, we'll probably end up computing a
5210      # maximum length that is only half of the actual maximum length, but
5211      # we can't tell.
5212      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5213	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5214	      test 17 != "$i" # 1/2 MB should be enough
5215      do
5216        i=`expr $i + 1`
5217        teststring=$teststring$teststring
5218      done
5219      # Only check the string length outside the loop.
5220      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5221      teststring=
5222      # Add a significant safety factor because C++ compilers can tack on
5223      # massive amounts of additional arguments before passing them to the
5224      # linker.  It appears as though 1/2 is a usable value.
5225      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5226    fi
5227    ;;
5228  esac
5229
5230fi
5231
5232if test -n "$lt_cv_sys_max_cmd_len"; then
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5234$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5235else
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5237$as_echo "none" >&6; }
5238fi
5239max_cmd_len=$lt_cv_sys_max_cmd_len
5240
5241
5242
5243
5244
5245
5246: ${CP="cp -f"}
5247: ${MV="mv -f"}
5248: ${RM="rm -f"}
5249
5250if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5251  lt_unset=unset
5252else
5253  lt_unset=false
5254fi
5255
5256
5257
5258
5259
5260# test EBCDIC or ASCII
5261case `echo X|tr X '\101'` in
5262 A) # ASCII based system
5263    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5264  lt_SP2NL='tr \040 \012'
5265  lt_NL2SP='tr \015\012 \040\040'
5266  ;;
5267 *) # EBCDIC based system
5268  lt_SP2NL='tr \100 \n'
5269  lt_NL2SP='tr \r\n \100\100'
5270  ;;
5271esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5282$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5283if ${lt_cv_to_host_file_cmd+:} false; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286  case $host in
5287  *-*-mingw* )
5288    case $build in
5289      *-*-mingw* ) # actually msys
5290        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5291        ;;
5292      *-*-cygwin* )
5293        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5294        ;;
5295      * ) # otherwise, assume *nix
5296        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5297        ;;
5298    esac
5299    ;;
5300  *-*-cygwin* )
5301    case $build in
5302      *-*-mingw* ) # actually msys
5303        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5304        ;;
5305      *-*-cygwin* )
5306        lt_cv_to_host_file_cmd=func_convert_file_noop
5307        ;;
5308      * ) # otherwise, assume *nix
5309        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5310        ;;
5311    esac
5312    ;;
5313  * ) # unhandled hosts (and "normal" native builds)
5314    lt_cv_to_host_file_cmd=func_convert_file_noop
5315    ;;
5316esac
5317
5318fi
5319
5320to_host_file_cmd=$lt_cv_to_host_file_cmd
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5322$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5323
5324
5325
5326
5327
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5329$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5330if ${lt_cv_to_tool_file_cmd+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  #assume ordinary cross tools, or native build.
5334lt_cv_to_tool_file_cmd=func_convert_file_noop
5335case $host in
5336  *-*-mingw* )
5337    case $build in
5338      *-*-mingw* ) # actually msys
5339        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5340        ;;
5341    esac
5342    ;;
5343esac
5344
5345fi
5346
5347to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5349$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5350
5351
5352
5353
5354
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5356$as_echo_n "checking for $LD option to reload object files... " >&6; }
5357if ${lt_cv_ld_reload_flag+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  lt_cv_ld_reload_flag='-r'
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5363$as_echo "$lt_cv_ld_reload_flag" >&6; }
5364reload_flag=$lt_cv_ld_reload_flag
5365case $reload_flag in
5366"" | " "*) ;;
5367*) reload_flag=" $reload_flag" ;;
5368esac
5369reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370case $host_os in
5371  cygwin* | mingw* | pw32* | cegcc*)
5372    if test yes != "$GCC"; then
5373      reload_cmds=false
5374    fi
5375    ;;
5376  darwin*)
5377    if test yes = "$GCC"; then
5378      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5379    else
5380      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5381    fi
5382    ;;
5383esac
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393if test -n "$ac_tool_prefix"; then
5394  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5395set dummy ${ac_tool_prefix}objdump; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_prog_OBJDUMP+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  if test -n "$OBJDUMP"; then
5402  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407  IFS=$as_save_IFS
5408  test -z "$as_dir" && as_dir=.
5409    for ac_exec_ext in '' $ac_executable_extensions; do
5410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413    break 2
5414  fi
5415done
5416  done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421OBJDUMP=$ac_cv_prog_OBJDUMP
5422if test -n "$OBJDUMP"; then
5423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5424$as_echo "$OBJDUMP" >&6; }
5425else
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430
5431fi
5432if test -z "$ac_cv_prog_OBJDUMP"; then
5433  ac_ct_OBJDUMP=$OBJDUMP
5434  # Extract the first word of "objdump", so it can be a program name with args.
5435set dummy objdump; ac_word=$2
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -n "$ac_ct_OBJDUMP"; then
5442  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449    for ac_exec_ext in '' $ac_executable_extensions; do
5450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456  done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5462if test -n "$ac_ct_OBJDUMP"; then
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5464$as_echo "$ac_ct_OBJDUMP" >&6; }
5465else
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470  if test "x$ac_ct_OBJDUMP" = x; then
5471    OBJDUMP="false"
5472  else
5473    case $cross_compiling:$ac_tool_warned in
5474yes:)
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477ac_tool_warned=yes ;;
5478esac
5479    OBJDUMP=$ac_ct_OBJDUMP
5480  fi
5481else
5482  OBJDUMP="$ac_cv_prog_OBJDUMP"
5483fi
5484
5485test -z "$OBJDUMP" && OBJDUMP=objdump
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5496$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5497if ${lt_cv_deplibs_check_method+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  lt_cv_file_magic_cmd='$MAGIC_CMD'
5501lt_cv_file_magic_test_file=
5502lt_cv_deplibs_check_method='unknown'
5503# Need to set the preceding variable on all platforms that support
5504# interlibrary dependencies.
5505# 'none' -- dependencies not supported.
5506# 'unknown' -- same as none, but documents that we really don't know.
5507# 'pass_all' -- all dependencies passed with no checks.
5508# 'test_compile' -- check by making test program.
5509# 'file_magic [[regex]]' -- check by looking for files in library path
5510# that responds to the $file_magic_cmd with a given extended regex.
5511# If you have 'file' or equivalent on your system and you're not sure
5512# whether 'pass_all' will *always* work, you probably want this one.
5513
5514case $host_os in
5515aix[4-9]*)
5516  lt_cv_deplibs_check_method=pass_all
5517  ;;
5518
5519beos*)
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522
5523bsdi[45]*)
5524  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5525  lt_cv_file_magic_cmd='/usr/bin/file -L'
5526  lt_cv_file_magic_test_file=/shlib/libc.so
5527  ;;
5528
5529cygwin*)
5530  # func_win32_libid is a shell function defined in ltmain.sh
5531  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532  lt_cv_file_magic_cmd='func_win32_libid'
5533  ;;
5534
5535mingw* | pw32*)
5536  # Base MSYS/MinGW do not provide the 'file' command needed by
5537  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5538  # unless we find 'file', for example because we are cross-compiling.
5539  if ( file / ) >/dev/null 2>&1; then
5540    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5541    lt_cv_file_magic_cmd='func_win32_libid'
5542  else
5543    # Keep this pattern in sync with the one in func_win32_libid.
5544    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5545    lt_cv_file_magic_cmd='$OBJDUMP -f'
5546  fi
5547  ;;
5548
5549cegcc*)
5550  # use the weaker test based on 'objdump'. See mingw*.
5551  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5552  lt_cv_file_magic_cmd='$OBJDUMP -f'
5553  ;;
5554
5555darwin* | rhapsody*)
5556  lt_cv_deplibs_check_method=pass_all
5557  ;;
5558
5559freebsd* | dragonfly*)
5560  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5561    case $host_cpu in
5562    i*86 )
5563      # Not sure whether the presence of OpenBSD here was a mistake.
5564      # Let's accept both of them until this is cleared up.
5565      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5566      lt_cv_file_magic_cmd=/usr/bin/file
5567      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5568      ;;
5569    esac
5570  else
5571    lt_cv_deplibs_check_method=pass_all
5572  fi
5573  ;;
5574
5575haiku*)
5576  lt_cv_deplibs_check_method=pass_all
5577  ;;
5578
5579hpux10.20* | hpux11*)
5580  lt_cv_file_magic_cmd=/usr/bin/file
5581  case $host_cpu in
5582  ia64*)
5583    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5584    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5585    ;;
5586  hppa*64*)
5587    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]'
5588    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5589    ;;
5590  *)
5591    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5592    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5593    ;;
5594  esac
5595  ;;
5596
5597interix[3-9]*)
5598  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5599  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5600  ;;
5601
5602irix5* | irix6* | nonstopux*)
5603  case $LD in
5604  *-32|*"-32 ") libmagic=32-bit;;
5605  *-n32|*"-n32 ") libmagic=N32;;
5606  *-64|*"-64 ") libmagic=64-bit;;
5607  *) libmagic=never-match;;
5608  esac
5609  lt_cv_deplibs_check_method=pass_all
5610  ;;
5611
5612# This must be glibc/ELF.
5613linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5614  lt_cv_deplibs_check_method=pass_all
5615  ;;
5616
5617netbsd*)
5618  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5619    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620  else
5621    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5622  fi
5623  ;;
5624
5625newos6*)
5626  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627  lt_cv_file_magic_cmd=/usr/bin/file
5628  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629  ;;
5630
5631*nto* | *qnx*)
5632  lt_cv_deplibs_check_method=pass_all
5633  ;;
5634
5635openbsd* | bitrig*)
5636  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5637    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5638  else
5639    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640  fi
5641  ;;
5642
5643osf3* | osf4* | osf5*)
5644  lt_cv_deplibs_check_method=pass_all
5645  ;;
5646
5647rdos*)
5648  lt_cv_deplibs_check_method=pass_all
5649  ;;
5650
5651solaris*)
5652  lt_cv_deplibs_check_method=pass_all
5653  ;;
5654
5655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5656  lt_cv_deplibs_check_method=pass_all
5657  ;;
5658
5659sysv4 | sysv4.3*)
5660  case $host_vendor in
5661  motorola)
5662    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]'
5663    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5664    ;;
5665  ncr)
5666    lt_cv_deplibs_check_method=pass_all
5667    ;;
5668  sequent)
5669    lt_cv_file_magic_cmd='/bin/file'
5670    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5671    ;;
5672  sni)
5673    lt_cv_file_magic_cmd='/bin/file'
5674    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5675    lt_cv_file_magic_test_file=/lib/libc.so
5676    ;;
5677  siemens)
5678    lt_cv_deplibs_check_method=pass_all
5679    ;;
5680  pc)
5681    lt_cv_deplibs_check_method=pass_all
5682    ;;
5683  esac
5684  ;;
5685
5686tpf*)
5687  lt_cv_deplibs_check_method=pass_all
5688  ;;
5689os2*)
5690  lt_cv_deplibs_check_method=pass_all
5691  ;;
5692esac
5693
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5696$as_echo "$lt_cv_deplibs_check_method" >&6; }
5697
5698file_magic_glob=
5699want_nocaseglob=no
5700if test "$build" = "$host"; then
5701  case $host_os in
5702  mingw* | pw32*)
5703    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5704      want_nocaseglob=yes
5705    else
5706      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5707    fi
5708    ;;
5709  esac
5710fi
5711
5712file_magic_cmd=$lt_cv_file_magic_cmd
5713deplibs_check_method=$lt_cv_deplibs_check_method
5714test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737if test -n "$ac_tool_prefix"; then
5738  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_DLLTOOL+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  if test -n "$DLLTOOL"; then
5746  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751  IFS=$as_save_IFS
5752  test -z "$as_dir" && as_dir=.
5753    for ac_exec_ext in '' $ac_executable_extensions; do
5754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757    break 2
5758  fi
5759done
5760  done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765DLLTOOL=$ac_cv_prog_DLLTOOL
5766if test -n "$DLLTOOL"; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5768$as_echo "$DLLTOOL" >&6; }
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774
5775fi
5776if test -z "$ac_cv_prog_DLLTOOL"; then
5777  ac_ct_DLLTOOL=$DLLTOOL
5778  # Extract the first word of "dlltool", so it can be a program name with args.
5779set dummy dlltool; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  if test -n "$ac_ct_DLLTOOL"; then
5786  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793    for ac_exec_ext in '' $ac_executable_extensions; do
5794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800  done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5806if test -n "$ac_ct_DLLTOOL"; then
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5808$as_echo "$ac_ct_DLLTOOL" >&6; }
5809else
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814  if test "x$ac_ct_DLLTOOL" = x; then
5815    DLLTOOL="false"
5816  else
5817    case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823    DLLTOOL=$ac_ct_DLLTOOL
5824  fi
5825else
5826  DLLTOOL="$ac_cv_prog_DLLTOOL"
5827fi
5828
5829test -z "$DLLTOOL" && DLLTOOL=dlltool
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5841$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5842if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  lt_cv_sharedlib_from_linklib_cmd='unknown'
5846
5847case $host_os in
5848cygwin* | mingw* | pw32* | cegcc*)
5849  # two different shell functions defined in ltmain.sh;
5850  # decide which one to use based on capabilities of $DLLTOOL
5851  case `$DLLTOOL --help 2>&1` in
5852  *--identify-strict*)
5853    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5854    ;;
5855  *)
5856    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5857    ;;
5858  esac
5859  ;;
5860*)
5861  # fallback: assume linklib IS sharedlib
5862  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5863  ;;
5864esac
5865
5866fi
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5868$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5869sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5870test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5871
5872
5873
5874
5875
5876
5877
5878
5879if test -n "$ac_tool_prefix"; then
5880  for ac_prog in ar
5881  do
5882    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885$as_echo_n "checking for $ac_word... " >&6; }
5886if ${ac_cv_prog_AR+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  if test -n "$AR"; then
5890  ac_cv_prog_AR="$AR" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897    for ac_exec_ext in '' $ac_executable_extensions; do
5898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904  done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909AR=$ac_cv_prog_AR
5910if test -n "$AR"; then
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5912$as_echo "$AR" >&6; }
5913else
5914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916fi
5917
5918
5919    test -n "$AR" && break
5920  done
5921fi
5922if test -z "$AR"; then
5923  ac_ct_AR=$AR
5924  for ac_prog in ar
5925do
5926  # Extract the first word of "$ac_prog", so it can be a program name with args.
5927set dummy $ac_prog; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
5930if ${ac_cv_prog_ac_ct_AR+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  if test -n "$ac_ct_AR"; then
5934  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939  IFS=$as_save_IFS
5940  test -z "$as_dir" && as_dir=.
5941    for ac_exec_ext in '' $ac_executable_extensions; do
5942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943    ac_cv_prog_ac_ct_AR="$ac_prog"
5944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945    break 2
5946  fi
5947done
5948  done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_AR=$ac_cv_prog_ac_ct_AR
5954if test -n "$ac_ct_AR"; then
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5956$as_echo "$ac_ct_AR" >&6; }
5957else
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962
5963  test -n "$ac_ct_AR" && break
5964done
5965
5966  if test "x$ac_ct_AR" = x; then
5967    AR="false"
5968  else
5969    case $cross_compiling:$ac_tool_warned in
5970yes:)
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973ac_tool_warned=yes ;;
5974esac
5975    AR=$ac_ct_AR
5976  fi
5977fi
5978
5979: ${AR=ar}
5980: ${AR_FLAGS=cru}
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5993$as_echo_n "checking for archiver @FILE support... " >&6; }
5994if ${lt_cv_ar_at_file+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  lt_cv_ar_at_file=no
5998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000
6001int
6002main ()
6003{
6004
6005  ;
6006  return 0;
6007}
6008_ACEOF
6009if ac_fn_c_try_compile "$LINENO"; then :
6010  echo conftest.$ac_objext > conftest.lst
6011      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6012      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6013  (eval $lt_ar_try) 2>&5
6014  ac_status=$?
6015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016  test $ac_status = 0; }
6017      if test 0 -eq "$ac_status"; then
6018	# Ensure the archiver fails upon bogus file names.
6019	rm -f conftest.$ac_objext libconftest.a
6020	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6021  (eval $lt_ar_try) 2>&5
6022  ac_status=$?
6023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024  test $ac_status = 0; }
6025	if test 0 -ne "$ac_status"; then
6026          lt_cv_ar_at_file=@
6027        fi
6028      fi
6029      rm -f conftest.* libconftest.a
6030
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6036$as_echo "$lt_cv_ar_at_file" >&6; }
6037
6038if test no = "$lt_cv_ar_at_file"; then
6039  archiver_list_spec=
6040else
6041  archiver_list_spec=$lt_cv_ar_at_file
6042fi
6043
6044
6045
6046
6047
6048
6049
6050if test -n "$ac_tool_prefix"; then
6051  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}strip; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
6055if ${ac_cv_prog_STRIP+:} false; then :
6056  $as_echo_n "(cached) " >&6
6057else
6058  if test -n "$STRIP"; then
6059  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066    for ac_exec_ext in '' $ac_executable_extensions; do
6067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073  done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078STRIP=$ac_cv_prog_STRIP
6079if test -n "$STRIP"; then
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6081$as_echo "$STRIP" >&6; }
6082else
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_STRIP"; then
6090  ac_ct_STRIP=$STRIP
6091  # Extract the first word of "strip", so it can be a program name with args.
6092set dummy strip; ac_word=$2
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094$as_echo_n "checking for $ac_word... " >&6; }
6095if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  if test -n "$ac_ct_STRIP"; then
6099  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106    for ac_exec_ext in '' $ac_executable_extensions; do
6107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108    ac_cv_prog_ac_ct_STRIP="strip"
6109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113  done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6119if test -n "$ac_ct_STRIP"; then
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6121$as_echo "$ac_ct_STRIP" >&6; }
6122else
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127  if test "x$ac_ct_STRIP" = x; then
6128    STRIP=":"
6129  else
6130    case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134ac_tool_warned=yes ;;
6135esac
6136    STRIP=$ac_ct_STRIP
6137  fi
6138else
6139  STRIP="$ac_cv_prog_STRIP"
6140fi
6141
6142test -z "$STRIP" && STRIP=:
6143
6144
6145
6146
6147
6148
6149if test -n "$ac_tool_prefix"; then
6150  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if ${ac_cv_prog_RANLIB+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -n "$RANLIB"; then
6158  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_exec_ext in '' $ac_executable_extensions; do
6166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172  done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177RANLIB=$ac_cv_prog_RANLIB
6178if test -n "$RANLIB"; then
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6180$as_echo "$RANLIB" >&6; }
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187fi
6188if test -z "$ac_cv_prog_RANLIB"; then
6189  ac_ct_RANLIB=$RANLIB
6190  # Extract the first word of "ranlib", so it can be a program name with args.
6191set dummy ranlib; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if test -n "$ac_ct_RANLIB"; then
6198  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207    ac_cv_prog_ac_ct_RANLIB="ranlib"
6208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6218if test -n "$ac_ct_RANLIB"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6220$as_echo "$ac_ct_RANLIB" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226  if test "x$ac_ct_RANLIB" = x; then
6227    RANLIB=":"
6228  else
6229    case $cross_compiling:$ac_tool_warned in
6230yes:)
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233ac_tool_warned=yes ;;
6234esac
6235    RANLIB=$ac_ct_RANLIB
6236  fi
6237else
6238  RANLIB="$ac_cv_prog_RANLIB"
6239fi
6240
6241test -z "$RANLIB" && RANLIB=:
6242
6243
6244
6245
6246
6247
6248# Determine commands to create old-style static archives.
6249old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6250old_postinstall_cmds='chmod 644 $oldlib'
6251old_postuninstall_cmds=
6252
6253if test -n "$RANLIB"; then
6254  case $host_os in
6255  bitrig* | openbsd*)
6256    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6257    ;;
6258  *)
6259    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6260    ;;
6261  esac
6262  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6263fi
6264
6265case $host_os in
6266  darwin*)
6267    lock_old_archive_extraction=yes ;;
6268  *)
6269    lock_old_archive_extraction=no ;;
6270esac
6271
6272
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
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310# If no C compiler was specified, use CC.
6311LTCC=${LTCC-"$CC"}
6312
6313# If no C compiler flags were specified, use CFLAGS.
6314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6315
6316# Allow CC to be a program name with arguments.
6317compiler=$CC
6318
6319
6320# Check for command to grab the raw symbol name followed by C symbol from nm.
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6322$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6323if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326
6327# These are sane defaults that work on at least a few old systems.
6328# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6329
6330# Character class describing NM global symbol codes.
6331symcode='[BCDEGRST]'
6332
6333# Regexp to match symbols that can be accessed directly from C.
6334sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6335
6336# Define system-specific variables.
6337case $host_os in
6338aix*)
6339  symcode='[BCDT]'
6340  ;;
6341cygwin* | mingw* | pw32* | cegcc*)
6342  symcode='[ABCDGISTW]'
6343  ;;
6344hpux*)
6345  if test ia64 = "$host_cpu"; then
6346    symcode='[ABCDEGRST]'
6347  fi
6348  ;;
6349irix* | nonstopux*)
6350  symcode='[BCDEGRST]'
6351  ;;
6352osf*)
6353  symcode='[BCDEGQRST]'
6354  ;;
6355solaris*)
6356  symcode='[BDRT]'
6357  ;;
6358sco3.2v5*)
6359  symcode='[DT]'
6360  ;;
6361sysv4.2uw2*)
6362  symcode='[DT]'
6363  ;;
6364sysv5* | sco5v6* | unixware* | OpenUNIX*)
6365  symcode='[ABDT]'
6366  ;;
6367sysv4)
6368  symcode='[DFNSTU]'
6369  ;;
6370esac
6371
6372# If we're using GNU nm, then use its standard symbol codes.
6373case `$NM -V 2>&1` in
6374*GNU* | *'with BFD'*)
6375  symcode='[ABCDGIRSTW]' ;;
6376esac
6377
6378if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6379  # Gets list of data symbols to import.
6380  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6381  # Adjust the below global symbol transforms to fixup imported variables.
6382  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6383  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6384  lt_c_name_lib_hook="\
6385  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6386  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6387else
6388  # Disable hooks by default.
6389  lt_cv_sys_global_symbol_to_import=
6390  lt_cdecl_hook=
6391  lt_c_name_hook=
6392  lt_c_name_lib_hook=
6393fi
6394
6395# Transform an extracted symbol line into a proper C declaration.
6396# Some systems (esp. on ia64) link data and code symbols differently,
6397# so use this general approach.
6398lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6399$lt_cdecl_hook\
6400" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6401" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6402
6403# Transform an extracted symbol line into symbol name and symbol address
6404lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6405$lt_c_name_hook\
6406" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6407" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6408
6409# Transform an extracted symbol line into symbol name with lib prefix and
6410# symbol address.
6411lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6412$lt_c_name_lib_hook\
6413" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6414" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6415" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6416
6417# Handle CRLF in mingw tool chain
6418opt_cr=
6419case $build_os in
6420mingw*)
6421  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6422  ;;
6423esac
6424
6425# Try without a prefix underscore, then with it.
6426for ac_symprfx in "" "_"; do
6427
6428  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6429  symxfrm="\\1 $ac_symprfx\\2 \\2"
6430
6431  # Write the raw and C identifiers.
6432  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6433    # Fake it for dumpbin and say T for any non-static function,
6434    # D for any global variable and I for any imported variable.
6435    # Also find C++ and __fastcall symbols from MSVC++,
6436    # which start with @ or ?.
6437    lt_cv_sys_global_symbol_pipe="$AWK '"\
6438"     {last_section=section; section=\$ 3};"\
6439"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6440"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6441"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6442"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6443"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6444"     \$ 0!~/External *\|/{next};"\
6445"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6446"     {if(hide[section]) next};"\
6447"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6448"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6449"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6450"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6451"     ' prfx=^$ac_symprfx"
6452  else
6453    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6454  fi
6455  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6456
6457  # Check to see that the pipe works correctly.
6458  pipe_works=no
6459
6460  rm -f conftest*
6461  cat > conftest.$ac_ext <<_LT_EOF
6462#ifdef __cplusplus
6463extern "C" {
6464#endif
6465char nm_test_var;
6466void nm_test_func(void);
6467void nm_test_func(void){}
6468#ifdef __cplusplus
6469}
6470#endif
6471int main(){nm_test_var='a';nm_test_func();return(0);}
6472_LT_EOF
6473
6474  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475  (eval $ac_compile) 2>&5
6476  ac_status=$?
6477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478  test $ac_status = 0; }; then
6479    # Now try to grab the symbols.
6480    nlist=conftest.nm
6481    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6482  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6483  ac_status=$?
6484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485  test $ac_status = 0; } && test -s "$nlist"; then
6486      # Try sorting and uniquifying the output.
6487      if sort "$nlist" | uniq > "$nlist"T; then
6488	mv -f "$nlist"T "$nlist"
6489      else
6490	rm -f "$nlist"T
6491      fi
6492
6493      # Make sure that we snagged all the symbols we need.
6494      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6495	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6496	  cat <<_LT_EOF > conftest.$ac_ext
6497/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6498#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6499/* DATA imports from DLLs on WIN32 can't be const, because runtime
6500   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6501# define LT_DLSYM_CONST
6502#elif defined __osf__
6503/* This system does not cope well with relocations in const data.  */
6504# define LT_DLSYM_CONST
6505#else
6506# define LT_DLSYM_CONST const
6507#endif
6508
6509#ifdef __cplusplus
6510extern "C" {
6511#endif
6512
6513_LT_EOF
6514	  # Now generate the symbol file.
6515	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6516
6517	  cat <<_LT_EOF >> conftest.$ac_ext
6518
6519/* The mapping between symbol names and symbols.  */
6520LT_DLSYM_CONST struct {
6521  const char *name;
6522  void       *address;
6523}
6524lt__PROGRAM__LTX_preloaded_symbols[] =
6525{
6526  { "@PROGRAM@", (void *) 0 },
6527_LT_EOF
6528	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6529	  cat <<\_LT_EOF >> conftest.$ac_ext
6530  {0, (void *) 0}
6531};
6532
6533/* This works around a problem in FreeBSD linker */
6534#ifdef FREEBSD_WORKAROUND
6535static const void *lt_preloaded_setup() {
6536  return lt__PROGRAM__LTX_preloaded_symbols;
6537}
6538#endif
6539
6540#ifdef __cplusplus
6541}
6542#endif
6543_LT_EOF
6544	  # Now try linking the two files.
6545	  mv conftest.$ac_objext conftstm.$ac_objext
6546	  lt_globsym_save_LIBS=$LIBS
6547	  lt_globsym_save_CFLAGS=$CFLAGS
6548	  LIBS=conftstm.$ac_objext
6549	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6550	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6551  (eval $ac_link) 2>&5
6552  ac_status=$?
6553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6555	    pipe_works=yes
6556	  fi
6557	  LIBS=$lt_globsym_save_LIBS
6558	  CFLAGS=$lt_globsym_save_CFLAGS
6559	else
6560	  echo "cannot find nm_test_func in $nlist" >&5
6561	fi
6562      else
6563	echo "cannot find nm_test_var in $nlist" >&5
6564      fi
6565    else
6566      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6567    fi
6568  else
6569    echo "$progname: failed program was:" >&5
6570    cat conftest.$ac_ext >&5
6571  fi
6572  rm -rf conftest* conftst*
6573
6574  # Do not use the global_symbol_pipe unless it works.
6575  if test yes = "$pipe_works"; then
6576    break
6577  else
6578    lt_cv_sys_global_symbol_pipe=
6579  fi
6580done
6581
6582fi
6583
6584if test -z "$lt_cv_sys_global_symbol_pipe"; then
6585  lt_cv_sys_global_symbol_to_cdecl=
6586fi
6587if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6589$as_echo "failed" >&6; }
6590else
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6592$as_echo "ok" >&6; }
6593fi
6594
6595# Response file support.
6596if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6597  nm_file_list_spec='@'
6598elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6599  nm_file_list_spec='@'
6600fi
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6639$as_echo_n "checking for sysroot... " >&6; }
6640
6641# Check whether --with-sysroot was given.
6642if test "${with_sysroot+set}" = set; then :
6643  withval=$with_sysroot;
6644else
6645  with_sysroot=no
6646fi
6647
6648
6649lt_sysroot=
6650case $with_sysroot in #(
6651 yes)
6652   if test yes = "$GCC"; then
6653     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6654   fi
6655   ;; #(
6656 /*)
6657   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6658   ;; #(
6659 no|'')
6660   ;; #(
6661 *)
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6663$as_echo "$with_sysroot" >&6; }
6664   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6665   ;;
6666esac
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6669$as_echo "${lt_sysroot:-no}" >&6; }
6670
6671
6672
6673
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6676$as_echo_n "checking for a working dd... " >&6; }
6677if ${ac_cv_path_lt_DD+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  printf 0123456789abcdef0123456789abcdef >conftest.i
6681cat conftest.i conftest.i >conftest2.i
6682: ${lt_DD:=$DD}
6683if test -z "$lt_DD"; then
6684  ac_path_lt_DD_found=false
6685  # Loop through the user's path and test for each of PROGNAME-LIST
6686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691    for ac_prog in dd; do
6692    for ac_exec_ext in '' $ac_executable_extensions; do
6693      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6694      as_fn_executable_p "$ac_path_lt_DD" || continue
6695if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6696  cmp -s conftest.i conftest.out \
6697  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6698fi
6699      $ac_path_lt_DD_found && break 3
6700    done
6701  done
6702  done
6703IFS=$as_save_IFS
6704  if test -z "$ac_cv_path_lt_DD"; then
6705    :
6706  fi
6707else
6708  ac_cv_path_lt_DD=$lt_DD
6709fi
6710
6711rm -f conftest.i conftest2.i conftest.out
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6714$as_echo "$ac_cv_path_lt_DD" >&6; }
6715
6716
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6718$as_echo_n "checking how to truncate binary pipes... " >&6; }
6719if ${lt_cv_truncate_bin+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  printf 0123456789abcdef0123456789abcdef >conftest.i
6723cat conftest.i conftest.i >conftest2.i
6724lt_cv_truncate_bin=
6725if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6726  cmp -s conftest.i conftest.out \
6727  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6728fi
6729rm -f conftest.i conftest2.i conftest.out
6730test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6731fi
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6733$as_echo "$lt_cv_truncate_bin" >&6; }
6734
6735
6736
6737
6738
6739
6740
6741# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6742func_cc_basename ()
6743{
6744    for cc_temp in $*""; do
6745      case $cc_temp in
6746        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6747        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6748        \-*) ;;
6749        *) break;;
6750      esac
6751    done
6752    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6753}
6754
6755# Check whether --enable-libtool-lock was given.
6756if test "${enable_libtool_lock+set}" = set; then :
6757  enableval=$enable_libtool_lock;
6758fi
6759
6760test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6761
6762# Some flags need to be propagated to the compiler or linker for good
6763# libtool support.
6764case $host in
6765ia64-*-hpux*)
6766  # Find out what ABI is being produced by ac_compile, and set mode
6767  # options accordingly.
6768  echo 'int i;' > conftest.$ac_ext
6769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770  (eval $ac_compile) 2>&5
6771  ac_status=$?
6772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773  test $ac_status = 0; }; then
6774    case `/usr/bin/file conftest.$ac_objext` in
6775      *ELF-32*)
6776	HPUX_IA64_MODE=32
6777	;;
6778      *ELF-64*)
6779	HPUX_IA64_MODE=64
6780	;;
6781    esac
6782  fi
6783  rm -rf conftest*
6784  ;;
6785*-*-irix6*)
6786  # Find out what ABI is being produced by ac_compile, and set linker
6787  # options accordingly.
6788  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6789  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790  (eval $ac_compile) 2>&5
6791  ac_status=$?
6792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793  test $ac_status = 0; }; then
6794    if test yes = "$lt_cv_prog_gnu_ld"; then
6795      case `/usr/bin/file conftest.$ac_objext` in
6796	*32-bit*)
6797	  LD="${LD-ld} -melf32bsmip"
6798	  ;;
6799	*N32*)
6800	  LD="${LD-ld} -melf32bmipn32"
6801	  ;;
6802	*64-bit*)
6803	  LD="${LD-ld} -melf64bmip"
6804	;;
6805      esac
6806    else
6807      case `/usr/bin/file conftest.$ac_objext` in
6808	*32-bit*)
6809	  LD="${LD-ld} -32"
6810	  ;;
6811	*N32*)
6812	  LD="${LD-ld} -n32"
6813	  ;;
6814	*64-bit*)
6815	  LD="${LD-ld} -64"
6816	  ;;
6817      esac
6818    fi
6819  fi
6820  rm -rf conftest*
6821  ;;
6822
6823mips64*-*linux*)
6824  # Find out what ABI is being produced by ac_compile, and set linker
6825  # options accordingly.
6826  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6827  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828  (eval $ac_compile) 2>&5
6829  ac_status=$?
6830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831  test $ac_status = 0; }; then
6832    emul=elf
6833    case `/usr/bin/file conftest.$ac_objext` in
6834      *32-bit*)
6835	emul="${emul}32"
6836	;;
6837      *64-bit*)
6838	emul="${emul}64"
6839	;;
6840    esac
6841    case `/usr/bin/file conftest.$ac_objext` in
6842      *MSB*)
6843	emul="${emul}btsmip"
6844	;;
6845      *LSB*)
6846	emul="${emul}ltsmip"
6847	;;
6848    esac
6849    case `/usr/bin/file conftest.$ac_objext` in
6850      *N32*)
6851	emul="${emul}n32"
6852	;;
6853    esac
6854    LD="${LD-ld} -m $emul"
6855  fi
6856  rm -rf conftest*
6857  ;;
6858
6859x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861  # Find out what ABI is being produced by ac_compile, and set linker
6862  # options accordingly.  Note that the listed cases only cover the
6863  # situations where additional linker options are needed (such as when
6864  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6865  # vice versa); the common cases where no linker options are needed do
6866  # not appear in the list.
6867  echo 'int i;' > conftest.$ac_ext
6868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869  (eval $ac_compile) 2>&5
6870  ac_status=$?
6871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872  test $ac_status = 0; }; then
6873    case `/usr/bin/file conftest.o` in
6874      *32-bit*)
6875	case $host in
6876	  x86_64-*kfreebsd*-gnu)
6877	    LD="${LD-ld} -m elf_i386_fbsd"
6878	    ;;
6879	  x86_64-*linux*)
6880	    case `/usr/bin/file conftest.o` in
6881	      *x86-64*)
6882		LD="${LD-ld} -m elf32_x86_64"
6883		;;
6884	      *)
6885		LD="${LD-ld} -m elf_i386"
6886		;;
6887	    esac
6888	    ;;
6889	  powerpc64le-*linux*)
6890	    LD="${LD-ld} -m elf32lppclinux"
6891	    ;;
6892	  powerpc64-*linux*)
6893	    LD="${LD-ld} -m elf32ppclinux"
6894	    ;;
6895	  s390x-*linux*)
6896	    LD="${LD-ld} -m elf_s390"
6897	    ;;
6898	  sparc64-*linux*)
6899	    LD="${LD-ld} -m elf32_sparc"
6900	    ;;
6901	esac
6902	;;
6903      *64-bit*)
6904	case $host in
6905	  x86_64-*kfreebsd*-gnu)
6906	    LD="${LD-ld} -m elf_x86_64_fbsd"
6907	    ;;
6908	  x86_64-*linux*)
6909	    LD="${LD-ld} -m elf_x86_64"
6910	    ;;
6911	  powerpcle-*linux*)
6912	    LD="${LD-ld} -m elf64lppc"
6913	    ;;
6914	  powerpc-*linux*)
6915	    LD="${LD-ld} -m elf64ppc"
6916	    ;;
6917	  s390*-*linux*|s390*-*tpf*)
6918	    LD="${LD-ld} -m elf64_s390"
6919	    ;;
6920	  sparc*-*linux*)
6921	    LD="${LD-ld} -m elf64_sparc"
6922	    ;;
6923	esac
6924	;;
6925    esac
6926  fi
6927  rm -rf conftest*
6928  ;;
6929
6930*-*-sco3.2v5*)
6931  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6932  SAVE_CFLAGS=$CFLAGS
6933  CFLAGS="$CFLAGS -belf"
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6935$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6936if ${lt_cv_cc_needs_belf+:} false; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947
6948int
6949main ()
6950{
6951
6952  ;
6953  return 0;
6954}
6955_ACEOF
6956if ac_fn_c_try_link "$LINENO"; then :
6957  lt_cv_cc_needs_belf=yes
6958else
6959  lt_cv_cc_needs_belf=no
6960fi
6961rm -f core conftest.err conftest.$ac_objext \
6962    conftest$ac_exeext conftest.$ac_ext
6963     ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6971$as_echo "$lt_cv_cc_needs_belf" >&6; }
6972  if test yes != "$lt_cv_cc_needs_belf"; then
6973    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6974    CFLAGS=$SAVE_CFLAGS
6975  fi
6976  ;;
6977*-*solaris*)
6978  # Find out what ABI is being produced by ac_compile, and set linker
6979  # options accordingly.
6980  echo 'int i;' > conftest.$ac_ext
6981  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6982  (eval $ac_compile) 2>&5
6983  ac_status=$?
6984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985  test $ac_status = 0; }; then
6986    case `/usr/bin/file conftest.o` in
6987    *64-bit*)
6988      case $lt_cv_prog_gnu_ld in
6989      yes*)
6990        case $host in
6991        i?86-*-solaris*|x86_64-*-solaris*)
6992          LD="${LD-ld} -m elf_x86_64"
6993          ;;
6994        sparc*-*-solaris*)
6995          LD="${LD-ld} -m elf64_sparc"
6996          ;;
6997        esac
6998        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6999        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7000          LD=${LD-ld}_sol2
7001        fi
7002        ;;
7003      *)
7004	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7005	  LD="${LD-ld} -64"
7006	fi
7007	;;
7008      esac
7009      ;;
7010    esac
7011  fi
7012  rm -rf conftest*
7013  ;;
7014esac
7015
7016need_locks=$enable_libtool_lock
7017
7018if test -n "$ac_tool_prefix"; then
7019  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}mt; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  if test -n "$MANIFEST_TOOL"; then
7027  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034    for ac_exec_ext in '' $ac_executable_extensions; do
7035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041  done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7047if test -n "$MANIFEST_TOOL"; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7049$as_echo "$MANIFEST_TOOL" >&6; }
7050else
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7058  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7059  # Extract the first word of "mt", so it can be a program name with args.
7060set dummy mt; ac_word=$2
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062$as_echo_n "checking for $ac_word... " >&6; }
7063if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  if test -n "$ac_ct_MANIFEST_TOOL"; then
7067  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  test -z "$as_dir" && as_dir=.
7074    for ac_exec_ext in '' $ac_executable_extensions; do
7075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078    break 2
7079  fi
7080done
7081  done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7087if test -n "$ac_ct_MANIFEST_TOOL"; then
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7089$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7090else
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092$as_echo "no" >&6; }
7093fi
7094
7095  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7096    MANIFEST_TOOL=":"
7097  else
7098    case $cross_compiling:$ac_tool_warned in
7099yes:)
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102ac_tool_warned=yes ;;
7103esac
7104    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7105  fi
7106else
7107  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7108fi
7109
7110test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7112$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7113if ${lt_cv_path_mainfest_tool+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  lt_cv_path_mainfest_tool=no
7117  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7118  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7119  cat conftest.err >&5
7120  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7121    lt_cv_path_mainfest_tool=yes
7122  fi
7123  rm -f conftest*
7124fi
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7126$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7127if test yes != "$lt_cv_path_mainfest_tool"; then
7128  MANIFEST_TOOL=:
7129fi
7130
7131
7132
7133
7134
7135
7136  case $host_os in
7137    rhapsody* | darwin*)
7138    if test -n "$ac_tool_prefix"; then
7139  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142$as_echo_n "checking for $ac_word... " >&6; }
7143if ${ac_cv_prog_DSYMUTIL+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  if test -n "$DSYMUTIL"; then
7147  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152  IFS=$as_save_IFS
7153  test -z "$as_dir" && as_dir=.
7154    for ac_exec_ext in '' $ac_executable_extensions; do
7155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158    break 2
7159  fi
7160done
7161  done
7162IFS=$as_save_IFS
7163
7164fi
7165fi
7166DSYMUTIL=$ac_cv_prog_DSYMUTIL
7167if test -n "$DSYMUTIL"; then
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7169$as_echo "$DSYMUTIL" >&6; }
7170else
7171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172$as_echo "no" >&6; }
7173fi
7174
7175
7176fi
7177if test -z "$ac_cv_prog_DSYMUTIL"; then
7178  ac_ct_DSYMUTIL=$DSYMUTIL
7179  # Extract the first word of "dsymutil", so it can be a program name with args.
7180set dummy dsymutil; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  if test -n "$ac_ct_DSYMUTIL"; then
7187  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7207if test -n "$ac_ct_DSYMUTIL"; then
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7209$as_echo "$ac_ct_DSYMUTIL" >&6; }
7210else
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215  if test "x$ac_ct_DSYMUTIL" = x; then
7216    DSYMUTIL=":"
7217  else
7218    case $cross_compiling:$ac_tool_warned in
7219yes:)
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222ac_tool_warned=yes ;;
7223esac
7224    DSYMUTIL=$ac_ct_DSYMUTIL
7225  fi
7226else
7227  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7228fi
7229
7230    if test -n "$ac_tool_prefix"; then
7231  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7232set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234$as_echo_n "checking for $ac_word... " >&6; }
7235if ${ac_cv_prog_NMEDIT+:} false; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238  if test -n "$NMEDIT"; then
7239  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7240else
7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242for as_dir in $PATH
7243do
7244  IFS=$as_save_IFS
7245  test -z "$as_dir" && as_dir=.
7246    for ac_exec_ext in '' $ac_executable_extensions; do
7247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250    break 2
7251  fi
7252done
7253  done
7254IFS=$as_save_IFS
7255
7256fi
7257fi
7258NMEDIT=$ac_cv_prog_NMEDIT
7259if test -n "$NMEDIT"; then
7260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7261$as_echo "$NMEDIT" >&6; }
7262else
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264$as_echo "no" >&6; }
7265fi
7266
7267
7268fi
7269if test -z "$ac_cv_prog_NMEDIT"; then
7270  ac_ct_NMEDIT=$NMEDIT
7271  # Extract the first word of "nmedit", so it can be a program name with args.
7272set dummy nmedit; ac_word=$2
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  if test -n "$ac_ct_NMEDIT"; then
7279  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  test -z "$as_dir" && as_dir=.
7286    for ac_exec_ext in '' $ac_executable_extensions; do
7287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290    break 2
7291  fi
7292done
7293  done
7294IFS=$as_save_IFS
7295
7296fi
7297fi
7298ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7299if test -n "$ac_ct_NMEDIT"; then
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7301$as_echo "$ac_ct_NMEDIT" >&6; }
7302else
7303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305fi
7306
7307  if test "x$ac_ct_NMEDIT" = x; then
7308    NMEDIT=":"
7309  else
7310    case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
7316    NMEDIT=$ac_ct_NMEDIT
7317  fi
7318else
7319  NMEDIT="$ac_cv_prog_NMEDIT"
7320fi
7321
7322    if test -n "$ac_tool_prefix"; then
7323  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7324set dummy ${ac_tool_prefix}lipo; ac_word=$2
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326$as_echo_n "checking for $ac_word... " >&6; }
7327if ${ac_cv_prog_LIPO+:} false; then :
7328  $as_echo_n "(cached) " >&6
7329else
7330  if test -n "$LIPO"; then
7331  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7332else
7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336  IFS=$as_save_IFS
7337  test -z "$as_dir" && as_dir=.
7338    for ac_exec_ext in '' $ac_executable_extensions; do
7339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342    break 2
7343  fi
7344done
7345  done
7346IFS=$as_save_IFS
7347
7348fi
7349fi
7350LIPO=$ac_cv_prog_LIPO
7351if test -n "$LIPO"; then
7352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7353$as_echo "$LIPO" >&6; }
7354else
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356$as_echo "no" >&6; }
7357fi
7358
7359
7360fi
7361if test -z "$ac_cv_prog_LIPO"; then
7362  ac_ct_LIPO=$LIPO
7363  # Extract the first word of "lipo", so it can be a program name with args.
7364set dummy lipo; ac_word=$2
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366$as_echo_n "checking for $ac_word... " >&6; }
7367if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  if test -n "$ac_ct_LIPO"; then
7371  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7372else
7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374for as_dir in $PATH
7375do
7376  IFS=$as_save_IFS
7377  test -z "$as_dir" && as_dir=.
7378    for ac_exec_ext in '' $ac_executable_extensions; do
7379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380    ac_cv_prog_ac_ct_LIPO="lipo"
7381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382    break 2
7383  fi
7384done
7385  done
7386IFS=$as_save_IFS
7387
7388fi
7389fi
7390ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7391if test -n "$ac_ct_LIPO"; then
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7393$as_echo "$ac_ct_LIPO" >&6; }
7394else
7395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398
7399  if test "x$ac_ct_LIPO" = x; then
7400    LIPO=":"
7401  else
7402    case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408    LIPO=$ac_ct_LIPO
7409  fi
7410else
7411  LIPO="$ac_cv_prog_LIPO"
7412fi
7413
7414    if test -n "$ac_tool_prefix"; then
7415  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}otool; ac_word=$2
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418$as_echo_n "checking for $ac_word... " >&6; }
7419if ${ac_cv_prog_OTOOL+:} false; then :
7420  $as_echo_n "(cached) " >&6
7421else
7422  if test -n "$OTOOL"; then
7423  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  test -z "$as_dir" && as_dir=.
7430    for ac_exec_ext in '' $ac_executable_extensions; do
7431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434    break 2
7435  fi
7436done
7437  done
7438IFS=$as_save_IFS
7439
7440fi
7441fi
7442OTOOL=$ac_cv_prog_OTOOL
7443if test -n "$OTOOL"; then
7444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7445$as_echo "$OTOOL" >&6; }
7446else
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448$as_echo "no" >&6; }
7449fi
7450
7451
7452fi
7453if test -z "$ac_cv_prog_OTOOL"; then
7454  ac_ct_OTOOL=$OTOOL
7455  # Extract the first word of "otool", so it can be a program name with args.
7456set dummy otool; ac_word=$2
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458$as_echo_n "checking for $ac_word... " >&6; }
7459if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7460  $as_echo_n "(cached) " >&6
7461else
7462  if test -n "$ac_ct_OTOOL"; then
7463  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468  IFS=$as_save_IFS
7469  test -z "$as_dir" && as_dir=.
7470    for ac_exec_ext in '' $ac_executable_extensions; do
7471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472    ac_cv_prog_ac_ct_OTOOL="otool"
7473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477  done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7483if test -n "$ac_ct_OTOOL"; then
7484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7485$as_echo "$ac_ct_OTOOL" >&6; }
7486else
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488$as_echo "no" >&6; }
7489fi
7490
7491  if test "x$ac_ct_OTOOL" = x; then
7492    OTOOL=":"
7493  else
7494    case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500    OTOOL=$ac_ct_OTOOL
7501  fi
7502else
7503  OTOOL="$ac_cv_prog_OTOOL"
7504fi
7505
7506    if test -n "$ac_tool_prefix"; then
7507  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7508set dummy ${ac_tool_prefix}otool64; ac_word=$2
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if ${ac_cv_prog_OTOOL64+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  if test -n "$OTOOL64"; then
7515  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520  IFS=$as_save_IFS
7521  test -z "$as_dir" && as_dir=.
7522    for ac_exec_ext in '' $ac_executable_extensions; do
7523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526    break 2
7527  fi
7528done
7529  done
7530IFS=$as_save_IFS
7531
7532fi
7533fi
7534OTOOL64=$ac_cv_prog_OTOOL64
7535if test -n "$OTOOL64"; then
7536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7537$as_echo "$OTOOL64" >&6; }
7538else
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541fi
7542
7543
7544fi
7545if test -z "$ac_cv_prog_OTOOL64"; then
7546  ac_ct_OTOOL64=$OTOOL64
7547  # Extract the first word of "otool64", so it can be a program name with args.
7548set dummy otool64; ac_word=$2
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550$as_echo_n "checking for $ac_word... " >&6; }
7551if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  if test -n "$ac_ct_OTOOL64"; then
7555  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7556else
7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560  IFS=$as_save_IFS
7561  test -z "$as_dir" && as_dir=.
7562    for ac_exec_ext in '' $ac_executable_extensions; do
7563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564    ac_cv_prog_ac_ct_OTOOL64="otool64"
7565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566    break 2
7567  fi
7568done
7569  done
7570IFS=$as_save_IFS
7571
7572fi
7573fi
7574ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7575if test -n "$ac_ct_OTOOL64"; then
7576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7577$as_echo "$ac_ct_OTOOL64" >&6; }
7578else
7579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581fi
7582
7583  if test "x$ac_ct_OTOOL64" = x; then
7584    OTOOL64=":"
7585  else
7586    case $cross_compiling:$ac_tool_warned in
7587yes:)
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590ac_tool_warned=yes ;;
7591esac
7592    OTOOL64=$ac_ct_OTOOL64
7593  fi
7594else
7595  OTOOL64="$ac_cv_prog_OTOOL64"
7596fi
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7625$as_echo_n "checking for -single_module linker flag... " >&6; }
7626if ${lt_cv_apple_cc_single_mod+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  lt_cv_apple_cc_single_mod=no
7630      if test -z "$LT_MULTI_MODULE"; then
7631	# By default we will add the -single_module flag. You can override
7632	# by either setting the environment variable LT_MULTI_MODULE
7633	# non-empty at configure time, or by adding -multi_module to the
7634	# link flags.
7635	rm -rf libconftest.dylib*
7636	echo "int foo(void){return 1;}" > conftest.c
7637	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7638-dynamiclib -Wl,-single_module conftest.c" >&5
7639	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7641        _lt_result=$?
7642	# If there is a non-empty error log, and "single_module"
7643	# appears in it, assume the flag caused a linker warning
7644        if test -s conftest.err && $GREP single_module conftest.err; then
7645	  cat conftest.err >&5
7646	# Otherwise, if the output was created with a 0 exit code from
7647	# the compiler, it worked.
7648	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7649	  lt_cv_apple_cc_single_mod=yes
7650	else
7651	  cat conftest.err >&5
7652	fi
7653	rm -rf libconftest.dylib*
7654	rm -f conftest.*
7655      fi
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7658$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7659
7660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7661$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7662if ${lt_cv_ld_exported_symbols_list+:} false; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  lt_cv_ld_exported_symbols_list=no
7666      save_LDFLAGS=$LDFLAGS
7667      echo "_main" > conftest.sym
7668      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h.  */
7671
7672int
7673main ()
7674{
7675
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_link "$LINENO"; then :
7681  lt_cv_ld_exported_symbols_list=yes
7682else
7683  lt_cv_ld_exported_symbols_list=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext \
7686    conftest$ac_exeext conftest.$ac_ext
7687	LDFLAGS=$save_LDFLAGS
7688
7689fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7691$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7692
7693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7694$as_echo_n "checking for -force_load linker flag... " >&6; }
7695if ${lt_cv_ld_force_load+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  lt_cv_ld_force_load=no
7699      cat > conftest.c << _LT_EOF
7700int forced_loaded() { return 2;}
7701_LT_EOF
7702      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7703      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7704      echo "$AR cru libconftest.a conftest.o" >&5
7705      $AR cru libconftest.a conftest.o 2>&5
7706      echo "$RANLIB libconftest.a" >&5
7707      $RANLIB libconftest.a 2>&5
7708      cat > conftest.c << _LT_EOF
7709int main() { return 0;}
7710_LT_EOF
7711      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7712      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7713      _lt_result=$?
7714      if test -s conftest.err && $GREP force_load conftest.err; then
7715	cat conftest.err >&5
7716      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7717	lt_cv_ld_force_load=yes
7718      else
7719	cat conftest.err >&5
7720      fi
7721        rm -f conftest.err libconftest.a conftest conftest.c
7722        rm -rf conftest.dSYM
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7726$as_echo "$lt_cv_ld_force_load" >&6; }
7727    case $host_os in
7728    rhapsody* | darwin1.[012])
7729      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7730    darwin1.*)
7731      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7732    darwin*) # darwin 5.x on
7733      # if running on 10.5 or later, the deployment target defaults
7734      # to the OS version, if on x86, and 10.4, the deployment
7735      # target defaults to 10.4. Don't you love it?
7736      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7737	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7738	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7739	10.[012][,.]*)
7740	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7741	10.*)
7742	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7743      esac
7744    ;;
7745  esac
7746    if test yes = "$lt_cv_apple_cc_single_mod"; then
7747      _lt_dar_single_mod='$single_module'
7748    fi
7749    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7750      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7751    else
7752      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7753    fi
7754    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7755      _lt_dsymutil='~$DSYMUTIL $lib || :'
7756    else
7757      _lt_dsymutil=
7758    fi
7759    ;;
7760  esac
7761
7762# func_munge_path_list VARIABLE PATH
7763# -----------------------------------
7764# VARIABLE is name of variable containing _space_ separated list of
7765# directories to be munged by the contents of PATH, which is string
7766# having a format:
7767# "DIR[:DIR]:"
7768#       string "DIR[ DIR]" will be prepended to VARIABLE
7769# ":DIR[:DIR]"
7770#       string "DIR[ DIR]" will be appended to VARIABLE
7771# "DIRP[:DIRP]::[DIRA:]DIRA"
7772#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7773#       "DIRA[ DIRA]" will be appended to VARIABLE
7774# "DIR[:DIR]"
7775#       VARIABLE will be replaced by "DIR[ DIR]"
7776func_munge_path_list ()
7777{
7778    case x$2 in
7779    x)
7780        ;;
7781    *:)
7782        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7783        ;;
7784    x:*)
7785        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7786        ;;
7787    *::*)
7788        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7789        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7790        ;;
7791    *)
7792        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7793        ;;
7794    esac
7795}
7796
7797ac_ext=c
7798ac_cpp='$CPP $CPPFLAGS'
7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7803$as_echo_n "checking how to run the C preprocessor... " >&6; }
7804# On Suns, sometimes $CPP names a directory.
7805if test -n "$CPP" && test -d "$CPP"; then
7806  CPP=
7807fi
7808if test -z "$CPP"; then
7809  if ${ac_cv_prog_CPP+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812      # Double quotes because CPP needs to be expanded
7813    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7814    do
7815      ac_preproc_ok=false
7816for ac_c_preproc_warn_flag in '' yes
7817do
7818  # Use a header file that comes with gcc, so configuring glibc
7819  # with a fresh cross-compiler works.
7820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7821  # <limits.h> exists even on freestanding compilers.
7822  # On the NeXT, cc -E runs the code through the compiler's parser,
7823  # not just through cpp. "Syntax error" is here to catch this case.
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826#ifdef __STDC__
7827# include <limits.h>
7828#else
7829# include <assert.h>
7830#endif
7831		     Syntax error
7832_ACEOF
7833if ac_fn_c_try_cpp "$LINENO"; then :
7834
7835else
7836  # Broken: fails on valid input.
7837continue
7838fi
7839rm -f conftest.err conftest.i conftest.$ac_ext
7840
7841  # OK, works on sane cases.  Now check whether nonexistent headers
7842  # can be detected and how.
7843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845#include <ac_nonexistent.h>
7846_ACEOF
7847if ac_fn_c_try_cpp "$LINENO"; then :
7848  # Broken: success on invalid input.
7849continue
7850else
7851  # Passes both tests.
7852ac_preproc_ok=:
7853break
7854fi
7855rm -f conftest.err conftest.i conftest.$ac_ext
7856
7857done
7858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7859rm -f conftest.i conftest.err conftest.$ac_ext
7860if $ac_preproc_ok; then :
7861  break
7862fi
7863
7864    done
7865    ac_cv_prog_CPP=$CPP
7866
7867fi
7868  CPP=$ac_cv_prog_CPP
7869else
7870  ac_cv_prog_CPP=$CPP
7871fi
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7873$as_echo "$CPP" >&6; }
7874ac_preproc_ok=false
7875for ac_c_preproc_warn_flag in '' yes
7876do
7877  # Use a header file that comes with gcc, so configuring glibc
7878  # with a fresh cross-compiler works.
7879  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7880  # <limits.h> exists even on freestanding compilers.
7881  # On the NeXT, cc -E runs the code through the compiler's parser,
7882  # not just through cpp. "Syntax error" is here to catch this case.
7883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885#ifdef __STDC__
7886# include <limits.h>
7887#else
7888# include <assert.h>
7889#endif
7890		     Syntax error
7891_ACEOF
7892if ac_fn_c_try_cpp "$LINENO"; then :
7893
7894else
7895  # Broken: fails on valid input.
7896continue
7897fi
7898rm -f conftest.err conftest.i conftest.$ac_ext
7899
7900  # OK, works on sane cases.  Now check whether nonexistent headers
7901  # can be detected and how.
7902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904#include <ac_nonexistent.h>
7905_ACEOF
7906if ac_fn_c_try_cpp "$LINENO"; then :
7907  # Broken: success on invalid input.
7908continue
7909else
7910  # Passes both tests.
7911ac_preproc_ok=:
7912break
7913fi
7914rm -f conftest.err conftest.i conftest.$ac_ext
7915
7916done
7917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7918rm -f conftest.i conftest.err conftest.$ac_ext
7919if $ac_preproc_ok; then :
7920
7921else
7922  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7924as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7925See \`config.log' for more details" "$LINENO" 5; }
7926fi
7927
7928ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7936$as_echo_n "checking for ANSI C header files... " >&6; }
7937if ${ac_cv_header_stdc+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942#include <stdlib.h>
7943#include <stdarg.h>
7944#include <string.h>
7945#include <float.h>
7946
7947int
7948main ()
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_compile "$LINENO"; then :
7956  ac_cv_header_stdc=yes
7957else
7958  ac_cv_header_stdc=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961
7962if test $ac_cv_header_stdc = yes; then
7963  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966#include <string.h>
7967
7968_ACEOF
7969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970  $EGREP "memchr" >/dev/null 2>&1; then :
7971
7972else
7973  ac_cv_header_stdc=no
7974fi
7975rm -f conftest*
7976
7977fi
7978
7979if test $ac_cv_header_stdc = yes; then
7980  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983#include <stdlib.h>
7984
7985_ACEOF
7986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7987  $EGREP "free" >/dev/null 2>&1; then :
7988
7989else
7990  ac_cv_header_stdc=no
7991fi
7992rm -f conftest*
7993
7994fi
7995
7996if test $ac_cv_header_stdc = yes; then
7997  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7998  if test "$cross_compiling" = yes; then :
7999  :
8000else
8001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002/* end confdefs.h.  */
8003#include <ctype.h>
8004#include <stdlib.h>
8005#if ((' ' & 0x0FF) == 0x020)
8006# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8007# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8008#else
8009# define ISLOWER(c) \
8010		   (('a' <= (c) && (c) <= 'i') \
8011		     || ('j' <= (c) && (c) <= 'r') \
8012		     || ('s' <= (c) && (c) <= 'z'))
8013# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8014#endif
8015
8016#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8017int
8018main ()
8019{
8020  int i;
8021  for (i = 0; i < 256; i++)
8022    if (XOR (islower (i), ISLOWER (i))
8023	|| toupper (i) != TOUPPER (i))
8024      return 2;
8025  return 0;
8026}
8027_ACEOF
8028if ac_fn_c_try_run "$LINENO"; then :
8029
8030else
8031  ac_cv_header_stdc=no
8032fi
8033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8034  conftest.$ac_objext conftest.beam conftest.$ac_ext
8035fi
8036
8037fi
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8040$as_echo "$ac_cv_header_stdc" >&6; }
8041if test $ac_cv_header_stdc = yes; then
8042
8043$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8044
8045fi
8046
8047# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8049		  inttypes.h stdint.h unistd.h
8050do :
8051  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8052ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8053"
8054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8055  cat >>confdefs.h <<_ACEOF
8056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8057_ACEOF
8058
8059fi
8060
8061done
8062
8063
8064for ac_header in dlfcn.h
8065do :
8066  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8067"
8068if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8069  cat >>confdefs.h <<_ACEOF
8070#define HAVE_DLFCN_H 1
8071_ACEOF
8072
8073fi
8074
8075done
8076
8077
8078
8079
8080
8081# Set options
8082
8083
8084
8085        enable_dlopen=no
8086
8087
8088  enable_win32_dll=no
8089
8090
8091            # Check whether --enable-shared was given.
8092if test "${enable_shared+set}" = set; then :
8093  enableval=$enable_shared; p=${PACKAGE-default}
8094    case $enableval in
8095    yes) enable_shared=yes ;;
8096    no) enable_shared=no ;;
8097    *)
8098      enable_shared=no
8099      # Look at the argument we got.  We use all the common list separators.
8100      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8101      for pkg in $enableval; do
8102	IFS=$lt_save_ifs
8103	if test "X$pkg" = "X$p"; then
8104	  enable_shared=yes
8105	fi
8106      done
8107      IFS=$lt_save_ifs
8108      ;;
8109    esac
8110else
8111  enable_shared=yes
8112fi
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122  # Check whether --enable-static was given.
8123if test "${enable_static+set}" = set; then :
8124  enableval=$enable_static; p=${PACKAGE-default}
8125    case $enableval in
8126    yes) enable_static=yes ;;
8127    no) enable_static=no ;;
8128    *)
8129     enable_static=no
8130      # Look at the argument we got.  We use all the common list separators.
8131      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8132      for pkg in $enableval; do
8133	IFS=$lt_save_ifs
8134	if test "X$pkg" = "X$p"; then
8135	  enable_static=yes
8136	fi
8137      done
8138      IFS=$lt_save_ifs
8139      ;;
8140    esac
8141else
8142  enable_static=yes
8143fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154# Check whether --with-pic was given.
8155if test "${with_pic+set}" = set; then :
8156  withval=$with_pic; lt_p=${PACKAGE-default}
8157    case $withval in
8158    yes|no) pic_mode=$withval ;;
8159    *)
8160      pic_mode=default
8161      # Look at the argument we got.  We use all the common list separators.
8162      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8163      for lt_pkg in $withval; do
8164	IFS=$lt_save_ifs
8165	if test "X$lt_pkg" = "X$lt_p"; then
8166	  pic_mode=yes
8167	fi
8168      done
8169      IFS=$lt_save_ifs
8170      ;;
8171    esac
8172else
8173  pic_mode=default
8174fi
8175
8176
8177
8178
8179
8180
8181
8182
8183  # Check whether --enable-fast-install was given.
8184if test "${enable_fast_install+set}" = set; then :
8185  enableval=$enable_fast_install; p=${PACKAGE-default}
8186    case $enableval in
8187    yes) enable_fast_install=yes ;;
8188    no) enable_fast_install=no ;;
8189    *)
8190      enable_fast_install=no
8191      # Look at the argument we got.  We use all the common list separators.
8192      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8193      for pkg in $enableval; do
8194	IFS=$lt_save_ifs
8195	if test "X$pkg" = "X$p"; then
8196	  enable_fast_install=yes
8197	fi
8198      done
8199      IFS=$lt_save_ifs
8200      ;;
8201    esac
8202else
8203  enable_fast_install=yes
8204fi
8205
8206
8207
8208
8209
8210
8211
8212
8213  shared_archive_member_spec=
8214case $host,$enable_shared in
8215power*-*-aix[5-9]*,yes)
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8217$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8218
8219# Check whether --with-aix-soname was given.
8220if test "${with_aix_soname+set}" = set; then :
8221  withval=$with_aix_soname; case $withval in
8222    aix|svr4|both)
8223      ;;
8224    *)
8225      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8226      ;;
8227    esac
8228    lt_cv_with_aix_soname=$with_aix_soname
8229else
8230  if ${lt_cv_with_aix_soname+:} false; then :
8231  $as_echo_n "(cached) " >&6
8232else
8233  lt_cv_with_aix_soname=aix
8234fi
8235
8236    with_aix_soname=$lt_cv_with_aix_soname
8237fi
8238
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8240$as_echo "$with_aix_soname" >&6; }
8241  if test aix != "$with_aix_soname"; then
8242    # For the AIX way of multilib, we name the shared archive member
8243    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8244    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8245    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8246    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8247    if test 64 = "${OBJECT_MODE-32}"; then
8248      shared_archive_member_spec=shr_64
8249    else
8250      shared_archive_member_spec=shr
8251    fi
8252  fi
8253  ;;
8254*)
8255  with_aix_soname=aix
8256  ;;
8257esac
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268# This can be used to rebuild libtool when needed
8269LIBTOOL_DEPS=$ltmain
8270
8271# Always use our own libtool.
8272LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303test -z "$LN_S" && LN_S="ln -s"
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318if test -n "${ZSH_VERSION+set}"; then
8319   setopt NO_GLOB_SUBST
8320fi
8321
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8323$as_echo_n "checking for objdir... " >&6; }
8324if ${lt_cv_objdir+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  rm -f .libs 2>/dev/null
8328mkdir .libs 2>/dev/null
8329if test -d .libs; then
8330  lt_cv_objdir=.libs
8331else
8332  # MS-DOS does not allow filenames that begin with a dot.
8333  lt_cv_objdir=_libs
8334fi
8335rmdir .libs 2>/dev/null
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8338$as_echo "$lt_cv_objdir" >&6; }
8339objdir=$lt_cv_objdir
8340
8341
8342
8343
8344
8345cat >>confdefs.h <<_ACEOF
8346#define LT_OBJDIR "$lt_cv_objdir/"
8347_ACEOF
8348
8349
8350
8351
8352case $host_os in
8353aix3*)
8354  # AIX sometimes has problems with the GCC collect2 program.  For some
8355  # reason, if we set the COLLECT_NAMES environment variable, the problems
8356  # vanish in a puff of smoke.
8357  if test set != "${COLLECT_NAMES+set}"; then
8358    COLLECT_NAMES=
8359    export COLLECT_NAMES
8360  fi
8361  ;;
8362esac
8363
8364# Global variables:
8365ofile=libtool
8366can_build_shared=yes
8367
8368# All known linkers require a '.a' archive for static linking (except MSVC,
8369# which needs '.lib').
8370libext=a
8371
8372with_gnu_ld=$lt_cv_prog_gnu_ld
8373
8374old_CC=$CC
8375old_CFLAGS=$CFLAGS
8376
8377# Set sane defaults for various variables
8378test -z "$CC" && CC=cc
8379test -z "$LTCC" && LTCC=$CC
8380test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8381test -z "$LD" && LD=ld
8382test -z "$ac_objext" && ac_objext=o
8383
8384func_cc_basename $compiler
8385cc_basename=$func_cc_basename_result
8386
8387
8388# Only perform the check for file, if the check method requires it
8389test -z "$MAGIC_CMD" && MAGIC_CMD=file
8390case $deplibs_check_method in
8391file_magic*)
8392  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8394$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8395if ${lt_cv_path_MAGIC_CMD+:} false; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  case $MAGIC_CMD in
8399[\\/*] |  ?:[\\/]*)
8400  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8401  ;;
8402*)
8403  lt_save_MAGIC_CMD=$MAGIC_CMD
8404  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8405  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406  for ac_dir in $ac_dummy; do
8407    IFS=$lt_save_ifs
8408    test -z "$ac_dir" && ac_dir=.
8409    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8410      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8411      if test -n "$file_magic_test_file"; then
8412	case $deplibs_check_method in
8413	"file_magic "*)
8414	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8416	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417	    $EGREP "$file_magic_regex" > /dev/null; then
8418	    :
8419	  else
8420	    cat <<_LT_EOF 1>&2
8421
8422*** Warning: the command libtool uses to detect shared libraries,
8423*** $file_magic_cmd, produces output that libtool cannot recognize.
8424*** The result is that libtool may fail to recognize shared libraries
8425*** as such.  This will affect the creation of libtool libraries that
8426*** depend on shared libraries, but programs linked with such libtool
8427*** libraries will work regardless of this problem.  Nevertheless, you
8428*** may want to report the problem to your system manager and/or to
8429*** bug-libtool@gnu.org
8430
8431_LT_EOF
8432	  fi ;;
8433	esac
8434      fi
8435      break
8436    fi
8437  done
8438  IFS=$lt_save_ifs
8439  MAGIC_CMD=$lt_save_MAGIC_CMD
8440  ;;
8441esac
8442fi
8443
8444MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8445if test -n "$MAGIC_CMD"; then
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8447$as_echo "$MAGIC_CMD" >&6; }
8448else
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
8451fi
8452
8453
8454
8455
8456
8457if test -z "$lt_cv_path_MAGIC_CMD"; then
8458  if test -n "$ac_tool_prefix"; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8460$as_echo_n "checking for file... " >&6; }
8461if ${lt_cv_path_MAGIC_CMD+:} false; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  case $MAGIC_CMD in
8465[\\/*] |  ?:[\\/]*)
8466  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8467  ;;
8468*)
8469  lt_save_MAGIC_CMD=$MAGIC_CMD
8470  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8471  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472  for ac_dir in $ac_dummy; do
8473    IFS=$lt_save_ifs
8474    test -z "$ac_dir" && ac_dir=.
8475    if test -f "$ac_dir/file"; then
8476      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8477      if test -n "$file_magic_test_file"; then
8478	case $deplibs_check_method in
8479	"file_magic "*)
8480	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8482	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483	    $EGREP "$file_magic_regex" > /dev/null; then
8484	    :
8485	  else
8486	    cat <<_LT_EOF 1>&2
8487
8488*** Warning: the command libtool uses to detect shared libraries,
8489*** $file_magic_cmd, produces output that libtool cannot recognize.
8490*** The result is that libtool may fail to recognize shared libraries
8491*** as such.  This will affect the creation of libtool libraries that
8492*** depend on shared libraries, but programs linked with such libtool
8493*** libraries will work regardless of this problem.  Nevertheless, you
8494*** may want to report the problem to your system manager and/or to
8495*** bug-libtool@gnu.org
8496
8497_LT_EOF
8498	  fi ;;
8499	esac
8500      fi
8501      break
8502    fi
8503  done
8504  IFS=$lt_save_ifs
8505  MAGIC_CMD=$lt_save_MAGIC_CMD
8506  ;;
8507esac
8508fi
8509
8510MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8511if test -n "$MAGIC_CMD"; then
8512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513$as_echo "$MAGIC_CMD" >&6; }
8514else
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519
8520  else
8521    MAGIC_CMD=:
8522  fi
8523fi
8524
8525  fi
8526  ;;
8527esac
8528
8529# Use C for the default configuration in the libtool script
8530
8531lt_save_CC=$CC
8532ac_ext=c
8533ac_cpp='$CPP $CPPFLAGS'
8534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
8538
8539# Source file extension for C test sources.
8540ac_ext=c
8541
8542# Object file extension for compiled C test sources.
8543objext=o
8544objext=$objext
8545
8546# Code to be used in simple compile tests
8547lt_simple_compile_test_code="int some_variable = 0;"
8548
8549# Code to be used in simple link tests
8550lt_simple_link_test_code='int main(){return(0);}'
8551
8552
8553
8554
8555
8556
8557
8558# If no C compiler was specified, use CC.
8559LTCC=${LTCC-"$CC"}
8560
8561# If no C compiler flags were specified, use CFLAGS.
8562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8563
8564# Allow CC to be a program name with arguments.
8565compiler=$CC
8566
8567# Save the default compiler, since it gets overwritten when the other
8568# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8569compiler_DEFAULT=$CC
8570
8571# save warnings/boilerplate of simple test code
8572ac_outfile=conftest.$ac_objext
8573echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575_lt_compiler_boilerplate=`cat conftest.err`
8576$RM conftest*
8577
8578ac_outfile=conftest.$ac_objext
8579echo "$lt_simple_link_test_code" >conftest.$ac_ext
8580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581_lt_linker_boilerplate=`cat conftest.err`
8582$RM -r conftest*
8583
8584
8585## CAVEAT EMPTOR:
8586## There is no encapsulation within the following macros, do not change
8587## the running order or otherwise move them around unless you know exactly
8588## what you are doing...
8589if test -n "$compiler"; then
8590
8591lt_prog_compiler_no_builtin_flag=
8592
8593if test yes = "$GCC"; then
8594  case $cc_basename in
8595  nvcc*)
8596    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8597  *)
8598    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8599  esac
8600
8601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8602$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8603if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  lt_cv_prog_compiler_rtti_exceptions=no
8607   ac_outfile=conftest.$ac_objext
8608   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8610   # Insert the option either (1) after the last *FLAGS variable, or
8611   # (2) before a word containing "conftest.", or (3) at the end.
8612   # Note that $ac_compile itself does not contain backslashes and begins
8613   # with a dollar sign (not a hyphen), so the echo should work correctly.
8614   # The option is referenced via a variable to avoid confusing sed.
8615   lt_compile=`echo "$ac_compile" | $SED \
8616   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618   -e 's:$: $lt_compiler_flag:'`
8619   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620   (eval "$lt_compile" 2>conftest.err)
8621   ac_status=$?
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   if (exit $ac_status) && test -s "$ac_outfile"; then
8625     # The compiler can only warn and ignore the option if not recognized
8626     # So say no if there are warnings other than the usual output.
8627     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8628     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8630       lt_cv_prog_compiler_rtti_exceptions=yes
8631     fi
8632   fi
8633   $RM conftest*
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8637$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8638
8639if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8640    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8641else
8642    :
8643fi
8644
8645fi
8646
8647
8648
8649
8650
8651
8652  lt_prog_compiler_wl=
8653lt_prog_compiler_pic=
8654lt_prog_compiler_static=
8655
8656
8657  if test yes = "$GCC"; then
8658    lt_prog_compiler_wl='-Wl,'
8659    lt_prog_compiler_static='-static'
8660
8661    case $host_os in
8662      aix*)
8663      # All AIX code is PIC.
8664      if test ia64 = "$host_cpu"; then
8665	# AIX 5 now supports IA64 processor
8666	lt_prog_compiler_static='-Bstatic'
8667      fi
8668      lt_prog_compiler_pic='-fPIC'
8669      ;;
8670
8671    amigaos*)
8672      case $host_cpu in
8673      powerpc)
8674            # see comment about AmigaOS4 .so support
8675            lt_prog_compiler_pic='-fPIC'
8676        ;;
8677      m68k)
8678            # FIXME: we need at least 68020 code to build shared libraries, but
8679            # adding the '-m68020' flag to GCC prevents building anything better,
8680            # like '-m68040'.
8681            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8682        ;;
8683      esac
8684      ;;
8685
8686    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8687      # PIC is the default for these OSes.
8688      ;;
8689
8690    mingw* | cygwin* | pw32* | os2* | cegcc*)
8691      # This hack is so that the source file can tell whether it is being
8692      # built for inclusion in a dll (and should export symbols for example).
8693      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8694      # (--disable-auto-import) libraries
8695      lt_prog_compiler_pic='-DDLL_EXPORT'
8696      case $host_os in
8697      os2*)
8698	lt_prog_compiler_static='$wl-static'
8699	;;
8700      esac
8701      ;;
8702
8703    darwin* | rhapsody*)
8704      # PIC is the default on this platform
8705      # Common symbols not allowed in MH_DYLIB files
8706      lt_prog_compiler_pic='-fno-common'
8707      ;;
8708
8709    haiku*)
8710      # PIC is the default for Haiku.
8711      # The "-static" flag exists, but is broken.
8712      lt_prog_compiler_static=
8713      ;;
8714
8715    hpux*)
8716      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8717      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8718      # sets the default TLS model and affects inlining.
8719      case $host_cpu in
8720      hppa*64*)
8721	# +Z the default
8722	;;
8723      *)
8724	lt_prog_compiler_pic='-fPIC'
8725	;;
8726      esac
8727      ;;
8728
8729    interix[3-9]*)
8730      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8731      # Instead, we relocate shared libraries at runtime.
8732      ;;
8733
8734    msdosdjgpp*)
8735      # Just because we use GCC doesn't mean we suddenly get shared libraries
8736      # on systems that don't support them.
8737      lt_prog_compiler_can_build_shared=no
8738      enable_shared=no
8739      ;;
8740
8741    *nto* | *qnx*)
8742      # QNX uses GNU C++, but need to define -shared option too, otherwise
8743      # it will coredump.
8744      lt_prog_compiler_pic='-fPIC -shared'
8745      ;;
8746
8747    sysv4*MP*)
8748      if test -d /usr/nec; then
8749	lt_prog_compiler_pic=-Kconform_pic
8750      fi
8751      ;;
8752
8753    *)
8754      lt_prog_compiler_pic='-fPIC'
8755      ;;
8756    esac
8757
8758    case $cc_basename in
8759    nvcc*) # Cuda Compiler Driver 2.2
8760      lt_prog_compiler_wl='-Xlinker '
8761      if test -n "$lt_prog_compiler_pic"; then
8762        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8763      fi
8764      ;;
8765    esac
8766  else
8767    # PORTME Check for flag to pass linker flags through the system compiler.
8768    case $host_os in
8769    aix*)
8770      lt_prog_compiler_wl='-Wl,'
8771      if test ia64 = "$host_cpu"; then
8772	# AIX 5 now supports IA64 processor
8773	lt_prog_compiler_static='-Bstatic'
8774      else
8775	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8776      fi
8777      ;;
8778
8779    darwin* | rhapsody*)
8780      # PIC is the default on this platform
8781      # Common symbols not allowed in MH_DYLIB files
8782      lt_prog_compiler_pic='-fno-common'
8783      case $cc_basename in
8784      nagfor*)
8785        # NAG Fortran compiler
8786        lt_prog_compiler_wl='-Wl,-Wl,,'
8787        lt_prog_compiler_pic='-PIC'
8788        lt_prog_compiler_static='-Bstatic'
8789        ;;
8790      esac
8791      ;;
8792
8793    mingw* | cygwin* | pw32* | os2* | cegcc*)
8794      # This hack is so that the source file can tell whether it is being
8795      # built for inclusion in a dll (and should export symbols for example).
8796      lt_prog_compiler_pic='-DDLL_EXPORT'
8797      case $host_os in
8798      os2*)
8799	lt_prog_compiler_static='$wl-static'
8800	;;
8801      esac
8802      ;;
8803
8804    hpux9* | hpux10* | hpux11*)
8805      lt_prog_compiler_wl='-Wl,'
8806      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8807      # not for PA HP-UX.
8808      case $host_cpu in
8809      hppa*64*|ia64*)
8810	# +Z the default
8811	;;
8812      *)
8813	lt_prog_compiler_pic='+Z'
8814	;;
8815      esac
8816      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8817      lt_prog_compiler_static='$wl-a ${wl}archive'
8818      ;;
8819
8820    irix5* | irix6* | nonstopux*)
8821      lt_prog_compiler_wl='-Wl,'
8822      # PIC (with -KPIC) is the default.
8823      lt_prog_compiler_static='-non_shared'
8824      ;;
8825
8826    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8827      case $cc_basename in
8828      # old Intel for x86_64, which still supported -KPIC.
8829      ecc*)
8830	lt_prog_compiler_wl='-Wl,'
8831	lt_prog_compiler_pic='-KPIC'
8832	lt_prog_compiler_static='-static'
8833        ;;
8834      # icc used to be incompatible with GCC.
8835      # ICC 10 doesn't accept -KPIC any more.
8836      icc* | ifort*)
8837	lt_prog_compiler_wl='-Wl,'
8838	lt_prog_compiler_pic='-fPIC'
8839	lt_prog_compiler_static='-static'
8840        ;;
8841      # Lahey Fortran 8.1.
8842      lf95*)
8843	lt_prog_compiler_wl='-Wl,'
8844	lt_prog_compiler_pic='--shared'
8845	lt_prog_compiler_static='--static'
8846	;;
8847      nagfor*)
8848	# NAG Fortran compiler
8849	lt_prog_compiler_wl='-Wl,-Wl,,'
8850	lt_prog_compiler_pic='-PIC'
8851	lt_prog_compiler_static='-Bstatic'
8852	;;
8853      tcc*)
8854	# Fabrice Bellard et al's Tiny C Compiler
8855	lt_prog_compiler_wl='-Wl,'
8856	lt_prog_compiler_pic='-fPIC'
8857	lt_prog_compiler_static='-static'
8858	;;
8859      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8860        # Portland Group compilers (*not* the Pentium gcc compiler,
8861	# which looks to be a dead project)
8862	lt_prog_compiler_wl='-Wl,'
8863	lt_prog_compiler_pic='-fpic'
8864	lt_prog_compiler_static='-Bstatic'
8865        ;;
8866      ccc*)
8867        lt_prog_compiler_wl='-Wl,'
8868        # All Alpha code is PIC.
8869        lt_prog_compiler_static='-non_shared'
8870        ;;
8871      xl* | bgxl* | bgf* | mpixl*)
8872	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8873	lt_prog_compiler_wl='-Wl,'
8874	lt_prog_compiler_pic='-qpic'
8875	lt_prog_compiler_static='-qstaticlink'
8876	;;
8877      *)
8878	case `$CC -V 2>&1 | sed 5q` in
8879	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8880	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8881	  lt_prog_compiler_pic='-KPIC'
8882	  lt_prog_compiler_static='-Bstatic'
8883	  lt_prog_compiler_wl=''
8884	  ;;
8885	*Sun\ F* | *Sun*Fortran*)
8886	  lt_prog_compiler_pic='-KPIC'
8887	  lt_prog_compiler_static='-Bstatic'
8888	  lt_prog_compiler_wl='-Qoption ld '
8889	  ;;
8890	*Sun\ C*)
8891	  # Sun C 5.9
8892	  lt_prog_compiler_pic='-KPIC'
8893	  lt_prog_compiler_static='-Bstatic'
8894	  lt_prog_compiler_wl='-Wl,'
8895	  ;;
8896        *Intel*\ [CF]*Compiler*)
8897	  lt_prog_compiler_wl='-Wl,'
8898	  lt_prog_compiler_pic='-fPIC'
8899	  lt_prog_compiler_static='-static'
8900	  ;;
8901	*Portland\ Group*)
8902	  lt_prog_compiler_wl='-Wl,'
8903	  lt_prog_compiler_pic='-fpic'
8904	  lt_prog_compiler_static='-Bstatic'
8905	  ;;
8906	esac
8907	;;
8908      esac
8909      ;;
8910
8911    newsos6)
8912      lt_prog_compiler_pic='-KPIC'
8913      lt_prog_compiler_static='-Bstatic'
8914      ;;
8915
8916    *nto* | *qnx*)
8917      # QNX uses GNU C++, but need to define -shared option too, otherwise
8918      # it will coredump.
8919      lt_prog_compiler_pic='-fPIC -shared'
8920      ;;
8921
8922    osf3* | osf4* | osf5*)
8923      lt_prog_compiler_wl='-Wl,'
8924      # All OSF/1 code is PIC.
8925      lt_prog_compiler_static='-non_shared'
8926      ;;
8927
8928    rdos*)
8929      lt_prog_compiler_static='-non_shared'
8930      ;;
8931
8932    solaris*)
8933      lt_prog_compiler_pic='-KPIC'
8934      lt_prog_compiler_static='-Bstatic'
8935      case $cc_basename in
8936      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8937	lt_prog_compiler_wl='-Qoption ld ';;
8938      *)
8939	lt_prog_compiler_wl='-Wl,';;
8940      esac
8941      ;;
8942
8943    sunos4*)
8944      lt_prog_compiler_wl='-Qoption ld '
8945      lt_prog_compiler_pic='-PIC'
8946      lt_prog_compiler_static='-Bstatic'
8947      ;;
8948
8949    sysv4 | sysv4.2uw2* | sysv4.3*)
8950      lt_prog_compiler_wl='-Wl,'
8951      lt_prog_compiler_pic='-KPIC'
8952      lt_prog_compiler_static='-Bstatic'
8953      ;;
8954
8955    sysv4*MP*)
8956      if test -d /usr/nec; then
8957	lt_prog_compiler_pic='-Kconform_pic'
8958	lt_prog_compiler_static='-Bstatic'
8959      fi
8960      ;;
8961
8962    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8963      lt_prog_compiler_wl='-Wl,'
8964      lt_prog_compiler_pic='-KPIC'
8965      lt_prog_compiler_static='-Bstatic'
8966      ;;
8967
8968    unicos*)
8969      lt_prog_compiler_wl='-Wl,'
8970      lt_prog_compiler_can_build_shared=no
8971      ;;
8972
8973    uts4*)
8974      lt_prog_compiler_pic='-pic'
8975      lt_prog_compiler_static='-Bstatic'
8976      ;;
8977
8978    *)
8979      lt_prog_compiler_can_build_shared=no
8980      ;;
8981    esac
8982  fi
8983
8984case $host_os in
8985  # For platforms that do not support PIC, -DPIC is meaningless:
8986  *djgpp*)
8987    lt_prog_compiler_pic=
8988    ;;
8989  *)
8990    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8991    ;;
8992esac
8993
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8995$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8996if ${lt_cv_prog_compiler_pic+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9000fi
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9002$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9003lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9004
9005#
9006# Check to make sure the PIC flag actually works.
9007#
9008if test -n "$lt_prog_compiler_pic"; then
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9010$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9011if ${lt_cv_prog_compiler_pic_works+:} false; then :
9012  $as_echo_n "(cached) " >&6
9013else
9014  lt_cv_prog_compiler_pic_works=no
9015   ac_outfile=conftest.$ac_objext
9016   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9018   # Insert the option either (1) after the last *FLAGS variable, or
9019   # (2) before a word containing "conftest.", or (3) at the end.
9020   # Note that $ac_compile itself does not contain backslashes and begins
9021   # with a dollar sign (not a hyphen), so the echo should work correctly.
9022   # The option is referenced via a variable to avoid confusing sed.
9023   lt_compile=`echo "$ac_compile" | $SED \
9024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026   -e 's:$: $lt_compiler_flag:'`
9027   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9028   (eval "$lt_compile" 2>conftest.err)
9029   ac_status=$?
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   if (exit $ac_status) && test -s "$ac_outfile"; then
9033     # The compiler can only warn and ignore the option if not recognized
9034     # So say no if there are warnings other than the usual output.
9035     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9036     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9038       lt_cv_prog_compiler_pic_works=yes
9039     fi
9040   fi
9041   $RM conftest*
9042
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9045$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9046
9047if test yes = "$lt_cv_prog_compiler_pic_works"; then
9048    case $lt_prog_compiler_pic in
9049     "" | " "*) ;;
9050     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9051     esac
9052else
9053    lt_prog_compiler_pic=
9054     lt_prog_compiler_can_build_shared=no
9055fi
9056
9057fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069#
9070# Check to make sure the static flag actually works.
9071#
9072wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9074$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9075if ${lt_cv_prog_compiler_static_works+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  lt_cv_prog_compiler_static_works=no
9079   save_LDFLAGS=$LDFLAGS
9080   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9081   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9082   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9083     # The linker can only warn and ignore the option if not recognized
9084     # So say no if there are warnings
9085     if test -s conftest.err; then
9086       # Append any errors to the config.log.
9087       cat conftest.err 1>&5
9088       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9089       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9090       if diff conftest.exp conftest.er2 >/dev/null; then
9091         lt_cv_prog_compiler_static_works=yes
9092       fi
9093     else
9094       lt_cv_prog_compiler_static_works=yes
9095     fi
9096   fi
9097   $RM -r conftest*
9098   LDFLAGS=$save_LDFLAGS
9099
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9102$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9103
9104if test yes = "$lt_cv_prog_compiler_static_works"; then
9105    :
9106else
9107    lt_prog_compiler_static=
9108fi
9109
9110
9111
9112
9113
9114
9115
9116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118if ${lt_cv_prog_compiler_c_o+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  lt_cv_prog_compiler_c_o=no
9122   $RM -r conftest 2>/dev/null
9123   mkdir conftest
9124   cd conftest
9125   mkdir out
9126   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128   lt_compiler_flag="-o out/conftest2.$ac_objext"
9129   # Insert the option either (1) after the last *FLAGS variable, or
9130   # (2) before a word containing "conftest.", or (3) at the end.
9131   # Note that $ac_compile itself does not contain backslashes and begins
9132   # with a dollar sign (not a hyphen), so the echo should work correctly.
9133   lt_compile=`echo "$ac_compile" | $SED \
9134   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136   -e 's:$: $lt_compiler_flag:'`
9137   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138   (eval "$lt_compile" 2>out/conftest.err)
9139   ac_status=$?
9140   cat out/conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143   then
9144     # The compiler can only warn and ignore the option if not recognized
9145     # So say no if there are warnings
9146     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149       lt_cv_prog_compiler_c_o=yes
9150     fi
9151   fi
9152   chmod u+w . 2>&5
9153   $RM conftest*
9154   # SGI C++ compiler will create directory out/ii_files/ for
9155   # template instantiation
9156   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157   $RM out/* && rmdir out
9158   cd ..
9159   $RM -r conftest
9160   $RM conftest*
9161
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169
9170
9171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9172$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9173if ${lt_cv_prog_compiler_c_o+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  lt_cv_prog_compiler_c_o=no
9177   $RM -r conftest 2>/dev/null
9178   mkdir conftest
9179   cd conftest
9180   mkdir out
9181   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9182
9183   lt_compiler_flag="-o out/conftest2.$ac_objext"
9184   # Insert the option either (1) after the last *FLAGS variable, or
9185   # (2) before a word containing "conftest.", or (3) at the end.
9186   # Note that $ac_compile itself does not contain backslashes and begins
9187   # with a dollar sign (not a hyphen), so the echo should work correctly.
9188   lt_compile=`echo "$ac_compile" | $SED \
9189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9191   -e 's:$: $lt_compiler_flag:'`
9192   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9193   (eval "$lt_compile" 2>out/conftest.err)
9194   ac_status=$?
9195   cat out/conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9198   then
9199     # The compiler can only warn and ignore the option if not recognized
9200     # So say no if there are warnings
9201     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9202     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9203     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9204       lt_cv_prog_compiler_c_o=yes
9205     fi
9206   fi
9207   chmod u+w . 2>&5
9208   $RM conftest*
9209   # SGI C++ compiler will create directory out/ii_files/ for
9210   # template instantiation
9211   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9212   $RM out/* && rmdir out
9213   cd ..
9214   $RM -r conftest
9215   $RM conftest*
9216
9217fi
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9219$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9220
9221
9222
9223
9224hard_links=nottested
9225if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9226  # do not overwrite the value of need_locks provided by the user
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9228$as_echo_n "checking if we can lock with hard links... " >&6; }
9229  hard_links=yes
9230  $RM conftest*
9231  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9232  touch conftest.a
9233  ln conftest.a conftest.b 2>&5 || hard_links=no
9234  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9236$as_echo "$hard_links" >&6; }
9237  if test no = "$hard_links"; then
9238    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9239$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9240    need_locks=warn
9241  fi
9242else
9243  need_locks=no
9244fi
9245
9246
9247
9248
9249
9250
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9252$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9253
9254  runpath_var=
9255  allow_undefined_flag=
9256  always_export_symbols=no
9257  archive_cmds=
9258  archive_expsym_cmds=
9259  compiler_needs_object=no
9260  enable_shared_with_static_runtimes=no
9261  export_dynamic_flag_spec=
9262  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9263  hardcode_automatic=no
9264  hardcode_direct=no
9265  hardcode_direct_absolute=no
9266  hardcode_libdir_flag_spec=
9267  hardcode_libdir_separator=
9268  hardcode_minus_L=no
9269  hardcode_shlibpath_var=unsupported
9270  inherit_rpath=no
9271  link_all_deplibs=unknown
9272  module_cmds=
9273  module_expsym_cmds=
9274  old_archive_from_new_cmds=
9275  old_archive_from_expsyms_cmds=
9276  thread_safe_flag_spec=
9277  whole_archive_flag_spec=
9278  # include_expsyms should be a list of space-separated symbols to be *always*
9279  # included in the symbol list
9280  include_expsyms=
9281  # exclude_expsyms can be an extended regexp of symbols to exclude
9282  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9283  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9284  # as well as any symbol that contains 'd'.
9285  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9286  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9287  # platforms (ab)use it in PIC code, but their linkers get confused if
9288  # the symbol is explicitly referenced.  Since portable code cannot
9289  # rely on this symbol name, it's probably fine to never include it in
9290  # preloaded symbol tables.
9291  # Exclude shared library initialization/finalization symbols.
9292  extract_expsyms_cmds=
9293
9294  case $host_os in
9295  cygwin* | mingw* | pw32* | cegcc*)
9296    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9297    # When not using gcc, we currently assume that we are using
9298    # Microsoft Visual C++.
9299    if test yes != "$GCC"; then
9300      with_gnu_ld=no
9301    fi
9302    ;;
9303  interix*)
9304    # we just hope/assume this is gcc and not c89 (= MSVC++)
9305    with_gnu_ld=yes
9306    ;;
9307  openbsd* | bitrig*)
9308    with_gnu_ld=no
9309    ;;
9310  esac
9311
9312  ld_shlibs=yes
9313
9314  # On some targets, GNU ld is compatible enough with the native linker
9315  # that we're better off using the native interface for both.
9316  lt_use_gnu_ld_interface=no
9317  if test yes = "$with_gnu_ld"; then
9318    case $host_os in
9319      aix*)
9320	# The AIX port of GNU ld has always aspired to compatibility
9321	# with the native linker.  However, as the warning in the GNU ld
9322	# block says, versions before 2.19.5* couldn't really create working
9323	# shared libraries, regardless of the interface used.
9324	case `$LD -v 2>&1` in
9325	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9326	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9327	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9328	  *)
9329	    lt_use_gnu_ld_interface=yes
9330	    ;;
9331	esac
9332	;;
9333      *)
9334	lt_use_gnu_ld_interface=yes
9335	;;
9336    esac
9337  fi
9338
9339  if test yes = "$lt_use_gnu_ld_interface"; then
9340    # If archive_cmds runs LD, not CC, wlarc should be empty
9341    wlarc='$wl'
9342
9343    # Set some defaults for GNU ld with shared library support. These
9344    # are reset later if shared libraries are not supported. Putting them
9345    # here allows them to be overridden if necessary.
9346    runpath_var=LD_RUN_PATH
9347    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9348    export_dynamic_flag_spec='$wl--export-dynamic'
9349    # ancient GNU ld didn't support --whole-archive et. al.
9350    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9351      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9352    else
9353      whole_archive_flag_spec=
9354    fi
9355    supports_anon_versioning=no
9356    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9357      *GNU\ gold*) supports_anon_versioning=yes ;;
9358      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9359      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9360      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9361      *\ 2.11.*) ;; # other 2.11 versions
9362      *) supports_anon_versioning=yes ;;
9363    esac
9364
9365    # See if GNU ld supports shared libraries.
9366    case $host_os in
9367    aix[3-9]*)
9368      # On AIX/PPC, the GNU linker is very broken
9369      if test ia64 != "$host_cpu"; then
9370	ld_shlibs=no
9371	cat <<_LT_EOF 1>&2
9372
9373*** Warning: the GNU linker, at least up to release 2.19, is reported
9374*** to be unable to reliably create shared libraries on AIX.
9375*** Therefore, libtool is disabling shared libraries support.  If you
9376*** really care for shared libraries, you may want to install binutils
9377*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9378*** You will then need to restart the configuration process.
9379
9380_LT_EOF
9381      fi
9382      ;;
9383
9384    amigaos*)
9385      case $host_cpu in
9386      powerpc)
9387            # see comment about AmigaOS4 .so support
9388            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9389            archive_expsym_cmds=''
9390        ;;
9391      m68k)
9392            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)'
9393            hardcode_libdir_flag_spec='-L$libdir'
9394            hardcode_minus_L=yes
9395        ;;
9396      esac
9397      ;;
9398
9399    beos*)
9400      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9401	allow_undefined_flag=unsupported
9402	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9403	# support --undefined.  This deserves some investigation.  FIXME
9404	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405      else
9406	ld_shlibs=no
9407      fi
9408      ;;
9409
9410    cygwin* | mingw* | pw32* | cegcc*)
9411      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9412      # as there is no search path for DLLs.
9413      hardcode_libdir_flag_spec='-L$libdir'
9414      export_dynamic_flag_spec='$wl--export-all-symbols'
9415      allow_undefined_flag=unsupported
9416      always_export_symbols=no
9417      enable_shared_with_static_runtimes=yes
9418      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'
9419      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9420
9421      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9422        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423	# If the export-symbols file already is a .def file, use it as
9424	# is; otherwise, prepend EXPORTS...
9425	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9426          cp $export_symbols $output_objdir/$soname.def;
9427        else
9428          echo EXPORTS > $output_objdir/$soname.def;
9429          cat $export_symbols >> $output_objdir/$soname.def;
9430        fi~
9431        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9432      else
9433	ld_shlibs=no
9434      fi
9435      ;;
9436
9437    haiku*)
9438      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9439      link_all_deplibs=yes
9440      ;;
9441
9442    os2*)
9443      hardcode_libdir_flag_spec='-L$libdir'
9444      hardcode_minus_L=yes
9445      allow_undefined_flag=unsupported
9446      shrext_cmds=.dll
9447      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9448	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9449	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9450	$ECHO EXPORTS >> $output_objdir/$libname.def~
9451	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9452	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9453	emximp -o $lib $output_objdir/$libname.def'
9454      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9455	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9456	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9457	$ECHO EXPORTS >> $output_objdir/$libname.def~
9458	prefix_cmds="$SED"~
9459	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9460	  prefix_cmds="$prefix_cmds -e 1d";
9461	fi~
9462	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9463	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9464	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9465	emximp -o $lib $output_objdir/$libname.def'
9466      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9467      enable_shared_with_static_runtimes=yes
9468      ;;
9469
9470    interix[3-9]*)
9471      hardcode_direct=no
9472      hardcode_shlibpath_var=no
9473      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9474      export_dynamic_flag_spec='$wl-E'
9475      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9476      # Instead, shared libraries are loaded at an image base (0x10000000 by
9477      # default) and relocated if they conflict, which is a slow very memory
9478      # consuming and fragmenting process.  To avoid this, we pick a random,
9479      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9480      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9481      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9482      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'
9483      ;;
9484
9485    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9486      tmp_diet=no
9487      if test linux-dietlibc = "$host_os"; then
9488	case $cc_basename in
9489	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9490	esac
9491      fi
9492      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9493	 && test no = "$tmp_diet"
9494      then
9495	tmp_addflag=' $pic_flag'
9496	tmp_sharedflag='-shared'
9497	case $cc_basename,$host_cpu in
9498        pgcc*)				# Portland Group C compiler
9499	  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'
9500	  tmp_addflag=' $pic_flag'
9501	  ;;
9502	pgf77* | pgf90* | pgf95* | pgfortran*)
9503					# Portland Group f77 and f90 compilers
9504	  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'
9505	  tmp_addflag=' $pic_flag -Mnomain' ;;
9506	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9507	  tmp_addflag=' -i_dynamic' ;;
9508	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9509	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9510	ifc* | ifort*)			# Intel Fortran compiler
9511	  tmp_addflag=' -nofor_main' ;;
9512	lf95*)				# Lahey Fortran 8.1
9513	  whole_archive_flag_spec=
9514	  tmp_sharedflag='--shared' ;;
9515        nagfor*)                        # NAGFOR 5.3
9516          tmp_sharedflag='-Wl,-shared' ;;
9517	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9518	  tmp_sharedflag='-qmkshrobj'
9519	  tmp_addflag= ;;
9520	nvcc*)	# Cuda Compiler Driver 2.2
9521	  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'
9522	  compiler_needs_object=yes
9523	  ;;
9524	esac
9525	case `$CC -V 2>&1 | sed 5q` in
9526	*Sun\ C*)			# Sun C 5.9
9527	  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'
9528	  compiler_needs_object=yes
9529	  tmp_sharedflag='-G' ;;
9530	*Sun\ F*)			# Sun Fortran 8.3
9531	  tmp_sharedflag='-G' ;;
9532	esac
9533	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9534
9535        if test yes = "$supports_anon_versioning"; then
9536          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9537            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9538            echo "local: *; };" >> $output_objdir/$libname.ver~
9539            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9540        fi
9541
9542	case $cc_basename in
9543	tcc*)
9544	  export_dynamic_flag_spec='-rdynamic'
9545	  ;;
9546	xlf* | bgf* | bgxlf* | mpixlf*)
9547	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9548	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9549	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9550	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9551	  if test yes = "$supports_anon_versioning"; then
9552	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9553              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554              echo "local: *; };" >> $output_objdir/$libname.ver~
9555              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9556	  fi
9557	  ;;
9558	esac
9559      else
9560        ld_shlibs=no
9561      fi
9562      ;;
9563
9564    netbsd*)
9565      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9566	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9567	wlarc=
9568      else
9569	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9571      fi
9572      ;;
9573
9574    solaris*)
9575      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9576	ld_shlibs=no
9577	cat <<_LT_EOF 1>&2
9578
9579*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9580*** create shared libraries on Solaris systems.  Therefore, libtool
9581*** is disabling shared libraries support.  We urge you to upgrade GNU
9582*** binutils to release 2.9.1 or newer.  Another option is to modify
9583*** your PATH or compiler configuration so that the native linker is
9584*** used, and then restart.
9585
9586_LT_EOF
9587      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9588	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590      else
9591	ld_shlibs=no
9592      fi
9593      ;;
9594
9595    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9596      case `$LD -v 2>&1` in
9597        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9598	ld_shlibs=no
9599	cat <<_LT_EOF 1>&2
9600
9601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9602*** reliably create shared libraries on SCO systems.  Therefore, libtool
9603*** is disabling shared libraries support.  We urge you to upgrade GNU
9604*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9605*** your PATH or compiler configuration so that the native linker is
9606*** used, and then restart.
9607
9608_LT_EOF
9609	;;
9610	*)
9611	  # For security reasons, it is highly recommended that you always
9612	  # use absolute paths for naming shared libraries, and exclude the
9613	  # DT_RUNPATH tag from executables and libraries.  But doing so
9614	  # requires that you compile everything twice, which is a pain.
9615	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9616	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9617	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9618	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9619	  else
9620	    ld_shlibs=no
9621	  fi
9622	;;
9623      esac
9624      ;;
9625
9626    sunos4*)
9627      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628      wlarc=
9629      hardcode_direct=yes
9630      hardcode_shlibpath_var=no
9631      ;;
9632
9633    *)
9634      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9635	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9636	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9637      else
9638	ld_shlibs=no
9639      fi
9640      ;;
9641    esac
9642
9643    if test no = "$ld_shlibs"; then
9644      runpath_var=
9645      hardcode_libdir_flag_spec=
9646      export_dynamic_flag_spec=
9647      whole_archive_flag_spec=
9648    fi
9649  else
9650    # PORTME fill in a description of your system's linker (not GNU ld)
9651    case $host_os in
9652    aix3*)
9653      allow_undefined_flag=unsupported
9654      always_export_symbols=yes
9655      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'
9656      # Note: this linker hardcodes the directories in LIBPATH if there
9657      # are no directories specified by -L.
9658      hardcode_minus_L=yes
9659      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9660	# Neither direct hardcoding nor static linking is supported with a
9661	# broken collect2.
9662	hardcode_direct=unsupported
9663      fi
9664      ;;
9665
9666    aix[4-9]*)
9667      if test ia64 = "$host_cpu"; then
9668	# On IA64, the linker does run time linking by default, so we don't
9669	# have to do anything special.
9670	aix_use_runtimelinking=no
9671	exp_sym_flag='-Bexport'
9672	no_entry_flag=
9673      else
9674	# If we're using GNU nm, then we don't want the "-C" option.
9675	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9676	# Without the "-l" option, or with the "-B" option, AIX nm treats
9677	# weak defined symbols like other global defined symbols, whereas
9678	# GNU nm marks them as "W".
9679	# While the 'weak' keyword is ignored in the Export File, we need
9680	# it in the Import File for the 'aix-soname' feature, so we have
9681	# to replace the "-B" option with "-P" for AIX nm.
9682	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9683	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9684	else
9685	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9686	fi
9687	aix_use_runtimelinking=no
9688
9689	# Test if we are trying to use run time linking or normal
9690	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9691	# have runtime linking enabled, and use it for executables.
9692	# For shared libraries, we enable/disable runtime linking
9693	# depending on the kind of the shared library created -
9694	# when "with_aix_soname,aix_use_runtimelinking" is:
9695	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9696	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9697	#            lib.a           static archive
9698	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9699	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9700	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9701	#            lib.a(lib.so.V) shared, rtl:no
9702	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9703	#            lib.a           static archive
9704	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9705	  for ld_flag in $LDFLAGS; do
9706	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9707	    aix_use_runtimelinking=yes
9708	    break
9709	  fi
9710	  done
9711	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9712	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9713	    # so we don't have lib.a shared libs to link our executables.
9714	    # We have to force runtime linking in this case.
9715	    aix_use_runtimelinking=yes
9716	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9717	  fi
9718	  ;;
9719	esac
9720
9721	exp_sym_flag='-bexport'
9722	no_entry_flag='-bnoentry'
9723      fi
9724
9725      # When large executables or shared objects are built, AIX ld can
9726      # have problems creating the table of contents.  If linking a library
9727      # or program results in "error TOC overflow" add -mminimal-toc to
9728      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9729      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9730
9731      archive_cmds=''
9732      hardcode_direct=yes
9733      hardcode_direct_absolute=yes
9734      hardcode_libdir_separator=':'
9735      link_all_deplibs=yes
9736      file_list_spec='$wl-f,'
9737      case $with_aix_soname,$aix_use_runtimelinking in
9738      aix,*) ;; # traditional, no import file
9739      svr4,* | *,yes) # use import file
9740	# The Import File defines what to hardcode.
9741	hardcode_direct=no
9742	hardcode_direct_absolute=no
9743	;;
9744      esac
9745
9746      if test yes = "$GCC"; then
9747	case $host_os in aix4.[012]|aix4.[012].*)
9748	# We only want to do this on AIX 4.2 and lower, the check
9749	# below for broken collect2 doesn't work under 4.3+
9750	  collect2name=`$CC -print-prog-name=collect2`
9751	  if test -f "$collect2name" &&
9752	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9753	  then
9754	  # We have reworked collect2
9755	  :
9756	  else
9757	  # We have old collect2
9758	  hardcode_direct=unsupported
9759	  # It fails to find uninstalled libraries when the uninstalled
9760	  # path is not listed in the libpath.  Setting hardcode_minus_L
9761	  # to unsupported forces relinking
9762	  hardcode_minus_L=yes
9763	  hardcode_libdir_flag_spec='-L$libdir'
9764	  hardcode_libdir_separator=
9765	  fi
9766	  ;;
9767	esac
9768	shared_flag='-shared'
9769	if test yes = "$aix_use_runtimelinking"; then
9770	  shared_flag="$shared_flag "'$wl-G'
9771	fi
9772	# Need to ensure runtime linking is disabled for the traditional
9773	# shared library, or the linker may eventually find shared libraries
9774	# /with/ Import File - we do not want to mix them.
9775	shared_flag_aix='-shared'
9776	shared_flag_svr4='-shared $wl-G'
9777      else
9778	# not using gcc
9779	if test ia64 = "$host_cpu"; then
9780	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9781	# chokes on -Wl,-G. The following line is correct:
9782	  shared_flag='-G'
9783	else
9784	  if test yes = "$aix_use_runtimelinking"; then
9785	    shared_flag='$wl-G'
9786	  else
9787	    shared_flag='$wl-bM:SRE'
9788	  fi
9789	  shared_flag_aix='$wl-bM:SRE'
9790	  shared_flag_svr4='$wl-G'
9791	fi
9792      fi
9793
9794      export_dynamic_flag_spec='$wl-bexpall'
9795      # It seems that -bexpall does not export symbols beginning with
9796      # underscore (_), so it is better to generate a list of symbols to export.
9797      always_export_symbols=yes
9798      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9799	# Warning - without using the other runtime loading flags (-brtl),
9800	# -berok will link without error, but may produce a broken library.
9801	allow_undefined_flag='-berok'
9802        # Determine the default libpath from the value encoded in an
9803        # empty executable.
9804        if test set = "${lt_cv_aix_libpath+set}"; then
9805  aix_libpath=$lt_cv_aix_libpath
9806else
9807  if ${lt_cv_aix_libpath_+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812
9813int
9814main ()
9815{
9816
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822
9823  lt_aix_libpath_sed='
9824      /Import File Strings/,/^$/ {
9825	  /^0/ {
9826	      s/^0  *\([^ ]*\) *$/\1/
9827	      p
9828	  }
9829      }'
9830  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9831  # Check for a 64-bit object if we didn't find anything.
9832  if test -z "$lt_cv_aix_libpath_"; then
9833    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9834  fi
9835fi
9836rm -f core conftest.err conftest.$ac_objext \
9837    conftest$ac_exeext conftest.$ac_ext
9838  if test -z "$lt_cv_aix_libpath_"; then
9839    lt_cv_aix_libpath_=/usr/lib:/lib
9840  fi
9841
9842fi
9843
9844  aix_libpath=$lt_cv_aix_libpath_
9845fi
9846
9847        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9848        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9849      else
9850	if test ia64 = "$host_cpu"; then
9851	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9852	  allow_undefined_flag="-z nodefs"
9853	  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"
9854	else
9855	 # Determine the default libpath from the value encoded in an
9856	 # empty executable.
9857	 if test set = "${lt_cv_aix_libpath+set}"; then
9858  aix_libpath=$lt_cv_aix_libpath
9859else
9860  if ${lt_cv_aix_libpath_+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865
9866int
9867main ()
9868{
9869
9870  ;
9871  return 0;
9872}
9873_ACEOF
9874if ac_fn_c_try_link "$LINENO"; then :
9875
9876  lt_aix_libpath_sed='
9877      /Import File Strings/,/^$/ {
9878	  /^0/ {
9879	      s/^0  *\([^ ]*\) *$/\1/
9880	      p
9881	  }
9882      }'
9883  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9884  # Check for a 64-bit object if we didn't find anything.
9885  if test -z "$lt_cv_aix_libpath_"; then
9886    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887  fi
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890    conftest$ac_exeext conftest.$ac_ext
9891  if test -z "$lt_cv_aix_libpath_"; then
9892    lt_cv_aix_libpath_=/usr/lib:/lib
9893  fi
9894
9895fi
9896
9897  aix_libpath=$lt_cv_aix_libpath_
9898fi
9899
9900	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9901	  # Warning - without using the other run time loading flags,
9902	  # -berok will link without error, but may produce a broken library.
9903	  no_undefined_flag=' $wl-bernotok'
9904	  allow_undefined_flag=' $wl-berok'
9905	  if test yes = "$with_gnu_ld"; then
9906	    # We only use this code for GNU lds that support --whole-archive.
9907	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9908	  else
9909	    # Exported symbols can be pulled into shared objects from archives
9910	    whole_archive_flag_spec='$convenience'
9911	  fi
9912	  archive_cmds_need_lc=yes
9913	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9914	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9915	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9916	  if test svr4 != "$with_aix_soname"; then
9917	    # This is similar to how AIX traditionally builds its shared libraries.
9918	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9919	  fi
9920	  if test aix != "$with_aix_soname"; then
9921	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9922	  else
9923	    # used by -dlpreopen to get the symbols
9924	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9925	  fi
9926	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9927	fi
9928      fi
9929      ;;
9930
9931    amigaos*)
9932      case $host_cpu in
9933      powerpc)
9934            # see comment about AmigaOS4 .so support
9935            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936            archive_expsym_cmds=''
9937        ;;
9938      m68k)
9939            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)'
9940            hardcode_libdir_flag_spec='-L$libdir'
9941            hardcode_minus_L=yes
9942        ;;
9943      esac
9944      ;;
9945
9946    bsdi[45]*)
9947      export_dynamic_flag_spec=-rdynamic
9948      ;;
9949
9950    cygwin* | mingw* | pw32* | cegcc*)
9951      # When not using gcc, we currently assume that we are using
9952      # Microsoft Visual C++.
9953      # hardcode_libdir_flag_spec is actually meaningless, as there is
9954      # no search path for DLLs.
9955      case $cc_basename in
9956      cl*)
9957	# Native MSVC
9958	hardcode_libdir_flag_spec=' '
9959	allow_undefined_flag=unsupported
9960	always_export_symbols=yes
9961	file_list_spec='@'
9962	# Tell ltmain to make .lib files, not .a files.
9963	libext=lib
9964	# Tell ltmain to make .dll files, not .so files.
9965	shrext_cmds=.dll
9966	# FIXME: Setting linknames here is a bad hack.
9967	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9968	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9969            cp "$export_symbols" "$output_objdir/$soname.def";
9970            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9971          else
9972            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9973          fi~
9974          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9975          linknames='
9976	# The linker will not automatically build a static lib if we build a DLL.
9977	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9978	enable_shared_with_static_runtimes=yes
9979	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9980	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9981	# Don't use ranlib
9982	old_postinstall_cmds='chmod 644 $oldlib'
9983	postlink_cmds='lt_outputfile="@OUTPUT@"~
9984          lt_tool_outputfile="@TOOL_OUTPUT@"~
9985          case $lt_outputfile in
9986            *.exe|*.EXE) ;;
9987            *)
9988              lt_outputfile=$lt_outputfile.exe
9989              lt_tool_outputfile=$lt_tool_outputfile.exe
9990              ;;
9991          esac~
9992          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9993            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9994            $RM "$lt_outputfile.manifest";
9995          fi'
9996	;;
9997      *)
9998	# Assume MSVC wrapper
9999	hardcode_libdir_flag_spec=' '
10000	allow_undefined_flag=unsupported
10001	# Tell ltmain to make .lib files, not .a files.
10002	libext=lib
10003	# Tell ltmain to make .dll files, not .so files.
10004	shrext_cmds=.dll
10005	# FIXME: Setting linknames here is a bad hack.
10006	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10007	# The linker will automatically build a .lib file if we build a DLL.
10008	old_archive_from_new_cmds='true'
10009	# FIXME: Should let the user specify the lib program.
10010	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10011	enable_shared_with_static_runtimes=yes
10012	;;
10013      esac
10014      ;;
10015
10016    darwin* | rhapsody*)
10017
10018
10019  archive_cmds_need_lc=no
10020  hardcode_direct=no
10021  hardcode_automatic=yes
10022  hardcode_shlibpath_var=unsupported
10023  if test yes = "$lt_cv_ld_force_load"; then
10024    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\"`'
10025
10026  else
10027    whole_archive_flag_spec=''
10028  fi
10029  link_all_deplibs=yes
10030  allow_undefined_flag=$_lt_dar_allow_undefined
10031  case $cc_basename in
10032     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10033     *) _lt_dar_can_shared=$GCC ;;
10034  esac
10035  if test yes = "$_lt_dar_can_shared"; then
10036    output_verbose_link_cmd=func_echo_all
10037    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10038    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10039    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"
10040    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"
10041
10042  else
10043  ld_shlibs=no
10044  fi
10045
10046      ;;
10047
10048    dgux*)
10049      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050      hardcode_libdir_flag_spec='-L$libdir'
10051      hardcode_shlibpath_var=no
10052      ;;
10053
10054    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10055    # support.  Future versions do this automatically, but an explicit c++rt0.o
10056    # does not break anything, and helps significantly (at the cost of a little
10057    # extra space).
10058    freebsd2.2*)
10059      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10060      hardcode_libdir_flag_spec='-R$libdir'
10061      hardcode_direct=yes
10062      hardcode_shlibpath_var=no
10063      ;;
10064
10065    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10066    freebsd2.*)
10067      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10068      hardcode_direct=yes
10069      hardcode_minus_L=yes
10070      hardcode_shlibpath_var=no
10071      ;;
10072
10073    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10074    freebsd* | dragonfly*)
10075      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076      hardcode_libdir_flag_spec='-R$libdir'
10077      hardcode_direct=yes
10078      hardcode_shlibpath_var=no
10079      ;;
10080
10081    hpux9*)
10082      if test yes = "$GCC"; then
10083	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10084      else
10085	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10086      fi
10087      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10088      hardcode_libdir_separator=:
10089      hardcode_direct=yes
10090
10091      # hardcode_minus_L: Not really in the search PATH,
10092      # but as the default location of the library.
10093      hardcode_minus_L=yes
10094      export_dynamic_flag_spec='$wl-E'
10095      ;;
10096
10097    hpux10*)
10098      if test yes,no = "$GCC,$with_gnu_ld"; then
10099	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10100      else
10101	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10102      fi
10103      if test no = "$with_gnu_ld"; then
10104	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10105	hardcode_libdir_separator=:
10106	hardcode_direct=yes
10107	hardcode_direct_absolute=yes
10108	export_dynamic_flag_spec='$wl-E'
10109	# hardcode_minus_L: Not really in the search PATH,
10110	# but as the default location of the library.
10111	hardcode_minus_L=yes
10112      fi
10113      ;;
10114
10115    hpux11*)
10116      if test yes,no = "$GCC,$with_gnu_ld"; then
10117	case $host_cpu in
10118	hppa*64*)
10119	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10120	  ;;
10121	ia64*)
10122	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10123	  ;;
10124	*)
10125	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10126	  ;;
10127	esac
10128      else
10129	case $host_cpu in
10130	hppa*64*)
10131	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10132	  ;;
10133	ia64*)
10134	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10135	  ;;
10136	*)
10137
10138	  # Older versions of the 11.00 compiler do not understand -b yet
10139	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10140	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10141$as_echo_n "checking if $CC understands -b... " >&6; }
10142if ${lt_cv_prog_compiler__b+:} false; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  lt_cv_prog_compiler__b=no
10146   save_LDFLAGS=$LDFLAGS
10147   LDFLAGS="$LDFLAGS -b"
10148   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10149   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10150     # The linker can only warn and ignore the option if not recognized
10151     # So say no if there are warnings
10152     if test -s conftest.err; then
10153       # Append any errors to the config.log.
10154       cat conftest.err 1>&5
10155       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10156       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10157       if diff conftest.exp conftest.er2 >/dev/null; then
10158         lt_cv_prog_compiler__b=yes
10159       fi
10160     else
10161       lt_cv_prog_compiler__b=yes
10162     fi
10163   fi
10164   $RM -r conftest*
10165   LDFLAGS=$save_LDFLAGS
10166
10167fi
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10169$as_echo "$lt_cv_prog_compiler__b" >&6; }
10170
10171if test yes = "$lt_cv_prog_compiler__b"; then
10172    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10173else
10174    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10175fi
10176
10177	  ;;
10178	esac
10179      fi
10180      if test no = "$with_gnu_ld"; then
10181	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10182	hardcode_libdir_separator=:
10183
10184	case $host_cpu in
10185	hppa*64*|ia64*)
10186	  hardcode_direct=no
10187	  hardcode_shlibpath_var=no
10188	  ;;
10189	*)
10190	  hardcode_direct=yes
10191	  hardcode_direct_absolute=yes
10192	  export_dynamic_flag_spec='$wl-E'
10193
10194	  # hardcode_minus_L: Not really in the search PATH,
10195	  # but as the default location of the library.
10196	  hardcode_minus_L=yes
10197	  ;;
10198	esac
10199      fi
10200      ;;
10201
10202    irix5* | irix6* | nonstopux*)
10203      if test yes = "$GCC"; then
10204	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'
10205	# Try to use the -exported_symbol ld option, if it does not
10206	# work, assume that -exports_file does not work either and
10207	# implicitly export all symbols.
10208	# This should be the same for all languages, so no per-tag cache variable.
10209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10210$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10211if ${lt_cv_irix_exported_symbol+:} false; then :
10212  $as_echo_n "(cached) " >&6
10213else
10214  save_LDFLAGS=$LDFLAGS
10215	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10216	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int foo (void) { return 0; }
10219_ACEOF
10220if ac_fn_c_try_link "$LINENO"; then :
10221  lt_cv_irix_exported_symbol=yes
10222else
10223  lt_cv_irix_exported_symbol=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext \
10226    conftest$ac_exeext conftest.$ac_ext
10227           LDFLAGS=$save_LDFLAGS
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10230$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10231	if test yes = "$lt_cv_irix_exported_symbol"; then
10232          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'
10233	fi
10234      else
10235	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'
10236	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'
10237      fi
10238      archive_cmds_need_lc='no'
10239      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10240      hardcode_libdir_separator=:
10241      inherit_rpath=yes
10242      link_all_deplibs=yes
10243      ;;
10244
10245    linux*)
10246      case $cc_basename in
10247      tcc*)
10248	# Fabrice Bellard et al's Tiny C Compiler
10249	ld_shlibs=yes
10250	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10251	;;
10252      esac
10253      ;;
10254
10255    netbsd*)
10256      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10257	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10258      else
10259	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10260      fi
10261      hardcode_libdir_flag_spec='-R$libdir'
10262      hardcode_direct=yes
10263      hardcode_shlibpath_var=no
10264      ;;
10265
10266    newsos6)
10267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268      hardcode_direct=yes
10269      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10270      hardcode_libdir_separator=:
10271      hardcode_shlibpath_var=no
10272      ;;
10273
10274    *nto* | *qnx*)
10275      ;;
10276
10277    openbsd* | bitrig*)
10278      if test -f /usr/libexec/ld.so; then
10279	hardcode_direct=yes
10280	hardcode_shlibpath_var=no
10281	hardcode_direct_absolute=yes
10282	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10283	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10284	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10285	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10286	  export_dynamic_flag_spec='$wl-E'
10287	else
10288	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10289	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10290	fi
10291      else
10292	ld_shlibs=no
10293      fi
10294      ;;
10295
10296    os2*)
10297      hardcode_libdir_flag_spec='-L$libdir'
10298      hardcode_minus_L=yes
10299      allow_undefined_flag=unsupported
10300      shrext_cmds=.dll
10301      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10302	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10303	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10304	$ECHO EXPORTS >> $output_objdir/$libname.def~
10305	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10306	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10307	emximp -o $lib $output_objdir/$libname.def'
10308      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10309	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10310	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10311	$ECHO EXPORTS >> $output_objdir/$libname.def~
10312	prefix_cmds="$SED"~
10313	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10314	  prefix_cmds="$prefix_cmds -e 1d";
10315	fi~
10316	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10317	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10318	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10319	emximp -o $lib $output_objdir/$libname.def'
10320      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10321      enable_shared_with_static_runtimes=yes
10322      ;;
10323
10324    osf3*)
10325      if test yes = "$GCC"; then
10326	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10327	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'
10328      else
10329	allow_undefined_flag=' -expect_unresolved \*'
10330	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'
10331      fi
10332      archive_cmds_need_lc='no'
10333      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10334      hardcode_libdir_separator=:
10335      ;;
10336
10337    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10338      if test yes = "$GCC"; then
10339	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10340	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'
10341	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10342      else
10343	allow_undefined_flag=' -expect_unresolved \*'
10344	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'
10345	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~
10346          $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'
10347
10348	# Both c and cxx compiler support -rpath directly
10349	hardcode_libdir_flag_spec='-rpath $libdir'
10350      fi
10351      archive_cmds_need_lc='no'
10352      hardcode_libdir_separator=:
10353      ;;
10354
10355    solaris*)
10356      no_undefined_flag=' -z defs'
10357      if test yes = "$GCC"; then
10358	wlarc='$wl'
10359	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10360	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10361          $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'
10362      else
10363	case `$CC -V 2>&1` in
10364	*"Compilers 5.0"*)
10365	  wlarc=''
10366	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10368            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10369	  ;;
10370	*)
10371	  wlarc='$wl'
10372	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10373	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10374            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10375	  ;;
10376	esac
10377      fi
10378      hardcode_libdir_flag_spec='-R$libdir'
10379      hardcode_shlibpath_var=no
10380      case $host_os in
10381      solaris2.[0-5] | solaris2.[0-5].*) ;;
10382      *)
10383	# The compiler driver will combine and reorder linker options,
10384	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10385	# but is careful enough not to reorder.
10386	# Supported since Solaris 2.6 (maybe 2.5.1?)
10387	if test yes = "$GCC"; then
10388	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10389	else
10390	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10391	fi
10392	;;
10393      esac
10394      link_all_deplibs=yes
10395      ;;
10396
10397    sunos4*)
10398      if test sequent = "$host_vendor"; then
10399	# Use $CC to link under sequent, because it throws in some extra .o
10400	# files that make .init and .fini sections work.
10401	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10402      else
10403	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10404      fi
10405      hardcode_libdir_flag_spec='-L$libdir'
10406      hardcode_direct=yes
10407      hardcode_minus_L=yes
10408      hardcode_shlibpath_var=no
10409      ;;
10410
10411    sysv4)
10412      case $host_vendor in
10413	sni)
10414	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415	  hardcode_direct=yes # is this really true???
10416	;;
10417	siemens)
10418	  ## LD is ld it makes a PLAMLIB
10419	  ## CC just makes a GrossModule.
10420	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10421	  reload_cmds='$CC -r -o $output$reload_objs'
10422	  hardcode_direct=no
10423        ;;
10424	motorola)
10425	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10426	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10427	;;
10428      esac
10429      runpath_var='LD_RUN_PATH'
10430      hardcode_shlibpath_var=no
10431      ;;
10432
10433    sysv4.3*)
10434      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10435      hardcode_shlibpath_var=no
10436      export_dynamic_flag_spec='-Bexport'
10437      ;;
10438
10439    sysv4*MP*)
10440      if test -d /usr/nec; then
10441	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10442	hardcode_shlibpath_var=no
10443	runpath_var=LD_RUN_PATH
10444	hardcode_runpath_var=yes
10445	ld_shlibs=yes
10446      fi
10447      ;;
10448
10449    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10450      no_undefined_flag='$wl-z,text'
10451      archive_cmds_need_lc=no
10452      hardcode_shlibpath_var=no
10453      runpath_var='LD_RUN_PATH'
10454
10455      if test yes = "$GCC"; then
10456	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458      else
10459	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461      fi
10462      ;;
10463
10464    sysv5* | sco3.2v5* | sco5v6*)
10465      # Note: We CANNOT use -z defs as we might desire, because we do not
10466      # link with -lc, and that would cause any symbols used from libc to
10467      # always be unresolved, which means just about no library would
10468      # ever link correctly.  If we're not using GNU ld we use -z text
10469      # though, which does catch some bad symbols but isn't as heavy-handed
10470      # as -z defs.
10471      no_undefined_flag='$wl-z,text'
10472      allow_undefined_flag='$wl-z,nodefs'
10473      archive_cmds_need_lc=no
10474      hardcode_shlibpath_var=no
10475      hardcode_libdir_flag_spec='$wl-R,$libdir'
10476      hardcode_libdir_separator=':'
10477      link_all_deplibs=yes
10478      export_dynamic_flag_spec='$wl-Bexport'
10479      runpath_var='LD_RUN_PATH'
10480
10481      if test yes = "$GCC"; then
10482	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484      else
10485	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487      fi
10488      ;;
10489
10490    uts4*)
10491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492      hardcode_libdir_flag_spec='-L$libdir'
10493      hardcode_shlibpath_var=no
10494      ;;
10495
10496    *)
10497      ld_shlibs=no
10498      ;;
10499    esac
10500
10501    if test sni = "$host_vendor"; then
10502      case $host in
10503      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10504	export_dynamic_flag_spec='$wl-Blargedynsym'
10505	;;
10506      esac
10507    fi
10508  fi
10509
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10511$as_echo "$ld_shlibs" >&6; }
10512test no = "$ld_shlibs" && can_build_shared=no
10513
10514with_gnu_ld=$with_gnu_ld
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530#
10531# Do we need to explicitly link libc?
10532#
10533case "x$archive_cmds_need_lc" in
10534x|xyes)
10535  # Assume -lc should be added
10536  archive_cmds_need_lc=yes
10537
10538  if test yes,yes = "$GCC,$enable_shared"; then
10539    case $archive_cmds in
10540    *'~'*)
10541      # FIXME: we may have to deal with multi-command sequences.
10542      ;;
10543    '$CC '*)
10544      # Test whether the compiler implicitly links with -lc since on some
10545      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10546      # to ld, don't add -lc before -lgcc.
10547      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10548$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10549if ${lt_cv_archive_cmds_need_lc+:} false; then :
10550  $as_echo_n "(cached) " >&6
10551else
10552  $RM conftest*
10553	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10554
10555	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10556  (eval $ac_compile) 2>&5
10557  ac_status=$?
10558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10559  test $ac_status = 0; } 2>conftest.err; then
10560	  soname=conftest
10561	  lib=conftest
10562	  libobjs=conftest.$ac_objext
10563	  deplibs=
10564	  wl=$lt_prog_compiler_wl
10565	  pic_flag=$lt_prog_compiler_pic
10566	  compiler_flags=-v
10567	  linker_flags=-v
10568	  verstring=
10569	  output_objdir=.
10570	  libname=conftest
10571	  lt_save_allow_undefined_flag=$allow_undefined_flag
10572	  allow_undefined_flag=
10573	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10574  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10575  ac_status=$?
10576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10577  test $ac_status = 0; }
10578	  then
10579	    lt_cv_archive_cmds_need_lc=no
10580	  else
10581	    lt_cv_archive_cmds_need_lc=yes
10582	  fi
10583	  allow_undefined_flag=$lt_save_allow_undefined_flag
10584	else
10585	  cat conftest.err 1>&5
10586	fi
10587	$RM conftest*
10588
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10591$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10592      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10593      ;;
10594    esac
10595  fi
10596  ;;
10597esac
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10751$as_echo_n "checking dynamic linker characteristics... " >&6; }
10752
10753if test yes = "$GCC"; then
10754  case $host_os in
10755    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10756    *) lt_awk_arg='/^libraries:/' ;;
10757  esac
10758  case $host_os in
10759    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10760    *) lt_sed_strip_eq='s|=/|/|g' ;;
10761  esac
10762  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10763  case $lt_search_path_spec in
10764  *\;*)
10765    # if the path contains ";" then we assume it to be the separator
10766    # otherwise default to the standard path separator (i.e. ":") - it is
10767    # assumed that no part of a normal pathname contains ";" but that should
10768    # okay in the real world where ";" in dirpaths is itself problematic.
10769    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10770    ;;
10771  *)
10772    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10773    ;;
10774  esac
10775  # Ok, now we have the path, separated by spaces, we can step through it
10776  # and add multilib dir if necessary...
10777  lt_tmp_lt_search_path_spec=
10778  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10779  # ...but if some path component already ends with the multilib dir we assume
10780  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10781  case "$lt_multi_os_dir; $lt_search_path_spec " in
10782  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10783    lt_multi_os_dir=
10784    ;;
10785  esac
10786  for lt_sys_path in $lt_search_path_spec; do
10787    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10788      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10789    elif test -n "$lt_multi_os_dir"; then
10790      test -d "$lt_sys_path" && \
10791	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10792    fi
10793  done
10794  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10795BEGIN {RS = " "; FS = "/|\n";} {
10796  lt_foo = "";
10797  lt_count = 0;
10798  for (lt_i = NF; lt_i > 0; lt_i--) {
10799    if ($lt_i != "" && $lt_i != ".") {
10800      if ($lt_i == "..") {
10801        lt_count++;
10802      } else {
10803        if (lt_count == 0) {
10804          lt_foo = "/" $lt_i lt_foo;
10805        } else {
10806          lt_count--;
10807        }
10808      }
10809    }
10810  }
10811  if (lt_foo != "") { lt_freq[lt_foo]++; }
10812  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10813}'`
10814  # AWK program above erroneously prepends '/' to C:/dos/paths
10815  # for these hosts.
10816  case $host_os in
10817    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10818      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10819  esac
10820  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10821else
10822  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10823fi
10824library_names_spec=
10825libname_spec='lib$name'
10826soname_spec=
10827shrext_cmds=.so
10828postinstall_cmds=
10829postuninstall_cmds=
10830finish_cmds=
10831finish_eval=
10832shlibpath_var=
10833shlibpath_overrides_runpath=unknown
10834version_type=none
10835dynamic_linker="$host_os ld.so"
10836sys_lib_dlsearch_path_spec="/lib /usr/lib"
10837need_lib_prefix=unknown
10838hardcode_into_libs=no
10839
10840# when you set need_version to no, make sure it does not cause -set_version
10841# flags to be left without arguments
10842need_version=unknown
10843
10844
10845
10846case $host_os in
10847aix3*)
10848  version_type=linux # correct to gnu/linux during the next big refactor
10849  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10850  shlibpath_var=LIBPATH
10851
10852  # AIX 3 has no versioning support, so we append a major version to the name.
10853  soname_spec='$libname$release$shared_ext$major'
10854  ;;
10855
10856aix[4-9]*)
10857  version_type=linux # correct to gnu/linux during the next big refactor
10858  need_lib_prefix=no
10859  need_version=no
10860  hardcode_into_libs=yes
10861  if test ia64 = "$host_cpu"; then
10862    # AIX 5 supports IA64
10863    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10864    shlibpath_var=LD_LIBRARY_PATH
10865  else
10866    # With GCC up to 2.95.x, collect2 would create an import file
10867    # for dependence libraries.  The import file would start with
10868    # the line '#! .'.  This would cause the generated library to
10869    # depend on '.', always an invalid library.  This was fixed in
10870    # development snapshots of GCC prior to 3.0.
10871    case $host_os in
10872      aix4 | aix4.[01] | aix4.[01].*)
10873      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10874	   echo ' yes '
10875	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10876	:
10877      else
10878	can_build_shared=no
10879      fi
10880      ;;
10881    esac
10882    # Using Import Files as archive members, it is possible to support
10883    # filename-based versioning of shared library archives on AIX. While
10884    # this would work for both with and without runtime linking, it will
10885    # prevent static linking of such archives. So we do filename-based
10886    # shared library versioning with .so extension only, which is used
10887    # when both runtime linking and shared linking is enabled.
10888    # Unfortunately, runtime linking may impact performance, so we do
10889    # not want this to be the default eventually. Also, we use the
10890    # versioned .so libs for executables only if there is the -brtl
10891    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10892    # To allow for filename-based versioning support, we need to create
10893    # libNAME.so.V as an archive file, containing:
10894    # *) an Import File, referring to the versioned filename of the
10895    #    archive as well as the shared archive member, telling the
10896    #    bitwidth (32 or 64) of that shared object, and providing the
10897    #    list of exported symbols of that shared object, eventually
10898    #    decorated with the 'weak' keyword
10899    # *) the shared object with the F_LOADONLY flag set, to really avoid
10900    #    it being seen by the linker.
10901    # At run time we better use the real file rather than another symlink,
10902    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10903
10904    case $with_aix_soname,$aix_use_runtimelinking in
10905    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10906    # soname into executable. Probably we can add versioning support to
10907    # collect2, so additional links can be useful in future.
10908    aix,yes) # traditional libtool
10909      dynamic_linker='AIX unversionable lib.so'
10910      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10911      # instead of lib<name>.a to let people know that these are not
10912      # typical AIX shared libraries.
10913      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914      ;;
10915    aix,no) # traditional AIX only
10916      dynamic_linker='AIX lib.a(lib.so.V)'
10917      # We preserve .a as extension for shared libraries through AIX4.2
10918      # and later when we are not doing run time linking.
10919      library_names_spec='$libname$release.a $libname.a'
10920      soname_spec='$libname$release$shared_ext$major'
10921      ;;
10922    svr4,*) # full svr4 only
10923      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10924      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10925      # We do not specify a path in Import Files, so LIBPATH fires.
10926      shlibpath_overrides_runpath=yes
10927      ;;
10928    *,yes) # both, prefer svr4
10929      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10930      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10931      # unpreferred sharedlib libNAME.a needs extra handling
10932      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10933      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10934      # We do not specify a path in Import Files, so LIBPATH fires.
10935      shlibpath_overrides_runpath=yes
10936      ;;
10937    *,no) # both, prefer aix
10938      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10939      library_names_spec='$libname$release.a $libname.a'
10940      soname_spec='$libname$release$shared_ext$major'
10941      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10942      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10943      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10944      ;;
10945    esac
10946    shlibpath_var=LIBPATH
10947  fi
10948  ;;
10949
10950amigaos*)
10951  case $host_cpu in
10952  powerpc)
10953    # Since July 2007 AmigaOS4 officially supports .so libraries.
10954    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956    ;;
10957  m68k)
10958    library_names_spec='$libname.ixlibrary $libname.a'
10959    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10960    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10961    ;;
10962  esac
10963  ;;
10964
10965beos*)
10966  library_names_spec='$libname$shared_ext'
10967  dynamic_linker="$host_os ld.so"
10968  shlibpath_var=LIBRARY_PATH
10969  ;;
10970
10971bsdi[45]*)
10972  version_type=linux # correct to gnu/linux during the next big refactor
10973  need_version=no
10974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10975  soname_spec='$libname$release$shared_ext$major'
10976  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10977  shlibpath_var=LD_LIBRARY_PATH
10978  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10979  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10980  # the default ld.so.conf also contains /usr/contrib/lib and
10981  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10982  # libtool to hard-code these into programs
10983  ;;
10984
10985cygwin* | mingw* | pw32* | cegcc*)
10986  version_type=windows
10987  shrext_cmds=.dll
10988  need_version=no
10989  need_lib_prefix=no
10990
10991  case $GCC,$cc_basename in
10992  yes,*)
10993    # gcc
10994    library_names_spec='$libname.dll.a'
10995    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10996    postinstall_cmds='base_file=`basename \$file`~
10997      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10998      dldir=$destdir/`dirname \$dlpath`~
10999      test -d \$dldir || mkdir -p \$dldir~
11000      $install_prog $dir/$dlname \$dldir/$dlname~
11001      chmod a+x \$dldir/$dlname~
11002      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11003        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11004      fi'
11005    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11006      dlpath=$dir/\$dldll~
11007       $RM \$dlpath'
11008    shlibpath_overrides_runpath=yes
11009
11010    case $host_os in
11011    cygwin*)
11012      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11013      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11014
11015      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11016      ;;
11017    mingw* | cegcc*)
11018      # MinGW DLLs use traditional 'lib' prefix
11019      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11020      ;;
11021    pw32*)
11022      # pw32 DLLs use 'pw' prefix rather than 'lib'
11023      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11024      ;;
11025    esac
11026    dynamic_linker='Win32 ld.exe'
11027    ;;
11028
11029  *,cl*)
11030    # Native MSVC
11031    libname_spec='$name'
11032    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11033    library_names_spec='$libname.dll.lib'
11034
11035    case $build_os in
11036    mingw*)
11037      sys_lib_search_path_spec=
11038      lt_save_ifs=$IFS
11039      IFS=';'
11040      for lt_path in $LIB
11041      do
11042        IFS=$lt_save_ifs
11043        # Let DOS variable expansion print the short 8.3 style file name.
11044        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11045        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11046      done
11047      IFS=$lt_save_ifs
11048      # Convert to MSYS style.
11049      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11050      ;;
11051    cygwin*)
11052      # Convert to unix form, then to dos form, then back to unix form
11053      # but this time dos style (no spaces!) so that the unix form looks
11054      # like /cygdrive/c/PROGRA~1:/cygdr...
11055      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11056      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11057      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11058      ;;
11059    *)
11060      sys_lib_search_path_spec=$LIB
11061      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11062        # It is most probably a Windows format PATH.
11063        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11064      else
11065        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11066      fi
11067      # FIXME: find the short name or the path components, as spaces are
11068      # common. (e.g. "Program Files" -> "PROGRA~1")
11069      ;;
11070    esac
11071
11072    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11073    postinstall_cmds='base_file=`basename \$file`~
11074      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11075      dldir=$destdir/`dirname \$dlpath`~
11076      test -d \$dldir || mkdir -p \$dldir~
11077      $install_prog $dir/$dlname \$dldir/$dlname'
11078    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11079      dlpath=$dir/\$dldll~
11080       $RM \$dlpath'
11081    shlibpath_overrides_runpath=yes
11082    dynamic_linker='Win32 link.exe'
11083    ;;
11084
11085  *)
11086    # Assume MSVC wrapper
11087    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11088    dynamic_linker='Win32 ld.exe'
11089    ;;
11090  esac
11091  # FIXME: first we should search . and the directory the executable is in
11092  shlibpath_var=PATH
11093  ;;
11094
11095darwin* | rhapsody*)
11096  dynamic_linker="$host_os dyld"
11097  version_type=darwin
11098  need_lib_prefix=no
11099  need_version=no
11100  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11101  soname_spec='$libname$release$major$shared_ext'
11102  shlibpath_overrides_runpath=yes
11103  shlibpath_var=DYLD_LIBRARY_PATH
11104  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11105
11106  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11107  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11108  ;;
11109
11110dgux*)
11111  version_type=linux # correct to gnu/linux during the next big refactor
11112  need_lib_prefix=no
11113  need_version=no
11114  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115  soname_spec='$libname$release$shared_ext$major'
11116  shlibpath_var=LD_LIBRARY_PATH
11117  ;;
11118
11119freebsd* | dragonfly*)
11120  # DragonFly does not have aout.  When/if they implement a new
11121  # versioning mechanism, adjust this.
11122  if test -x /usr/bin/objformat; then
11123    objformat=`/usr/bin/objformat`
11124  else
11125    case $host_os in
11126    freebsd[23].*) objformat=aout ;;
11127    *) objformat=elf ;;
11128    esac
11129  fi
11130  # Handle Gentoo/FreeBSD as it was Linux
11131  case $host_vendor in
11132    gentoo)
11133      version_type=linux ;;
11134    *)
11135      version_type=freebsd-$objformat ;;
11136  esac
11137
11138  case $version_type in
11139    freebsd-elf*)
11140      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141      soname_spec='$libname$release$shared_ext$major'
11142      need_version=no
11143      need_lib_prefix=no
11144      ;;
11145    freebsd-*)
11146      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11147      need_version=yes
11148      ;;
11149    linux)
11150      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11151      soname_spec='${libname}${release}${shared_ext}$major'
11152      need_lib_prefix=no
11153      need_version=no
11154      ;;
11155  esac
11156  shlibpath_var=LD_LIBRARY_PATH
11157  case $host_os in
11158  freebsd2.*)
11159    shlibpath_overrides_runpath=yes
11160    ;;
11161  freebsd3.[01]* | freebsdelf3.[01]*)
11162    shlibpath_overrides_runpath=yes
11163    hardcode_into_libs=yes
11164    ;;
11165  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11166  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11167    shlibpath_overrides_runpath=no
11168    hardcode_into_libs=yes
11169    ;;
11170  *) # from 4.6 on, and DragonFly
11171    shlibpath_overrides_runpath=yes
11172    hardcode_into_libs=yes
11173    ;;
11174  esac
11175  ;;
11176
11177haiku*)
11178  version_type=linux # correct to gnu/linux during the next big refactor
11179  need_lib_prefix=no
11180  need_version=no
11181  dynamic_linker="$host_os runtime_loader"
11182  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183  soname_spec='$libname$release$shared_ext$major'
11184  shlibpath_var=LIBRARY_PATH
11185  shlibpath_overrides_runpath=no
11186  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11187  hardcode_into_libs=yes
11188  ;;
11189
11190hpux9* | hpux10* | hpux11*)
11191  # Give a soname corresponding to the major version so that dld.sl refuses to
11192  # link against other versions.
11193  version_type=sunos
11194  need_lib_prefix=no
11195  need_version=no
11196  case $host_cpu in
11197  ia64*)
11198    shrext_cmds='.so'
11199    hardcode_into_libs=yes
11200    dynamic_linker="$host_os dld.so"
11201    shlibpath_var=LD_LIBRARY_PATH
11202    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11203    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204    soname_spec='$libname$release$shared_ext$major'
11205    if test 32 = "$HPUX_IA64_MODE"; then
11206      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11207      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11208    else
11209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11210      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11211    fi
11212    ;;
11213  hppa*64*)
11214    shrext_cmds='.sl'
11215    hardcode_into_libs=yes
11216    dynamic_linker="$host_os dld.sl"
11217    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11218    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11219    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220    soname_spec='$libname$release$shared_ext$major'
11221    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11222    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11223    ;;
11224  *)
11225    shrext_cmds='.sl'
11226    dynamic_linker="$host_os dld.sl"
11227    shlibpath_var=SHLIB_PATH
11228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11229    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11230    soname_spec='$libname$release$shared_ext$major'
11231    ;;
11232  esac
11233  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11234  postinstall_cmds='chmod 555 $lib'
11235  # or fails outright, so override atomically:
11236  install_override_mode=555
11237  ;;
11238
11239interix[3-9]*)
11240  version_type=linux # correct to gnu/linux during the next big refactor
11241  need_lib_prefix=no
11242  need_version=no
11243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244  soname_spec='$libname$release$shared_ext$major'
11245  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11246  shlibpath_var=LD_LIBRARY_PATH
11247  shlibpath_overrides_runpath=no
11248  hardcode_into_libs=yes
11249  ;;
11250
11251irix5* | irix6* | nonstopux*)
11252  case $host_os in
11253    nonstopux*) version_type=nonstopux ;;
11254    *)
11255	if test yes = "$lt_cv_prog_gnu_ld"; then
11256		version_type=linux # correct to gnu/linux during the next big refactor
11257	else
11258		version_type=irix
11259	fi ;;
11260  esac
11261  need_lib_prefix=no
11262  need_version=no
11263  soname_spec='$libname$release$shared_ext$major'
11264  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11265  case $host_os in
11266  irix5* | nonstopux*)
11267    libsuff= shlibsuff=
11268    ;;
11269  *)
11270    case $LD in # libtool.m4 will add one of these switches to LD
11271    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11272      libsuff= shlibsuff= libmagic=32-bit;;
11273    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11274      libsuff=32 shlibsuff=N32 libmagic=N32;;
11275    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11276      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11277    *) libsuff= shlibsuff= libmagic=never-match;;
11278    esac
11279    ;;
11280  esac
11281  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11282  shlibpath_overrides_runpath=no
11283  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11284  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11285  hardcode_into_libs=yes
11286  ;;
11287
11288# No shared lib support for Linux oldld, aout, or coff.
11289linux*oldld* | linux*aout* | linux*coff*)
11290  dynamic_linker=no
11291  ;;
11292
11293linux*android*)
11294  version_type=none # Android doesn't support versioned libraries.
11295  need_lib_prefix=no
11296  need_version=no
11297  library_names_spec='$libname$release$shared_ext'
11298  soname_spec='$libname$release$shared_ext'
11299  finish_cmds=
11300  shlibpath_var=LD_LIBRARY_PATH
11301  shlibpath_overrides_runpath=yes
11302
11303  # This implies no fast_install, which is unacceptable.
11304  # Some rework will be needed to allow for fast_install
11305  # before this can be enabled.
11306  hardcode_into_libs=yes
11307
11308  dynamic_linker='Android linker'
11309  # Don't embed -rpath directories since the linker doesn't support them.
11310  hardcode_libdir_flag_spec='-L$libdir'
11311  ;;
11312
11313# This must be glibc/ELF.
11314linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11315  version_type=linux # correct to gnu/linux during the next big refactor
11316  need_lib_prefix=no
11317  need_version=no
11318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319  soname_spec='$libname$release$shared_ext$major'
11320  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  shlibpath_overrides_runpath=no
11323
11324  # Some binutils ld are patched to set DT_RUNPATH
11325  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  lt_cv_shlibpath_overrides_runpath=no
11329    save_LDFLAGS=$LDFLAGS
11330    save_libdir=$libdir
11331    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11332	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11333    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h.  */
11335
11336int
11337main ()
11338{
11339
11340  ;
11341  return 0;
11342}
11343_ACEOF
11344if ac_fn_c_try_link "$LINENO"; then :
11345  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11346  lt_cv_shlibpath_overrides_runpath=yes
11347fi
11348fi
11349rm -f core conftest.err conftest.$ac_objext \
11350    conftest$ac_exeext conftest.$ac_ext
11351    LDFLAGS=$save_LDFLAGS
11352    libdir=$save_libdir
11353
11354fi
11355
11356  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11357
11358  # This implies no fast_install, which is unacceptable.
11359  # Some rework will be needed to allow for fast_install
11360  # before this can be enabled.
11361  hardcode_into_libs=yes
11362
11363  # Ideally, we could use ldconfig to report *all* directores which are
11364  # searched for libraries, however this is still not possible.  Aside from not
11365  # being certain /sbin/ldconfig is available, command
11366  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11367  # even though it is searched at run-time.  Try to do the best guess by
11368  # appending ld.so.conf contents (and includes) to the search path.
11369  if test -f /etc/ld.so.conf; then
11370    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' ' '`
11371    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11372  fi
11373
11374  # We used to test for /lib/ld.so.1 and disable shared libraries on
11375  # powerpc, because MkLinux only supported shared libraries with the
11376  # GNU dynamic linker.  Since this was broken with cross compilers,
11377  # most powerpc-linux boxes support dynamic linking these days and
11378  # people can always --disable-shared, the test was removed, and we
11379  # assume the GNU/Linux dynamic linker is in use.
11380  dynamic_linker='GNU/Linux ld.so'
11381  ;;
11382
11383netbsd*)
11384  version_type=sunos
11385  need_lib_prefix=no
11386  need_version=no
11387  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11388    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11389    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11390    dynamic_linker='NetBSD (a.out) ld.so'
11391  else
11392    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393    soname_spec='$libname$release$shared_ext$major'
11394    dynamic_linker='NetBSD ld.elf_so'
11395  fi
11396  shlibpath_var=LD_LIBRARY_PATH
11397  shlibpath_overrides_runpath=yes
11398  hardcode_into_libs=yes
11399  ;;
11400
11401newsos6)
11402  version_type=linux # correct to gnu/linux during the next big refactor
11403  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404  shlibpath_var=LD_LIBRARY_PATH
11405  shlibpath_overrides_runpath=yes
11406  ;;
11407
11408*nto* | *qnx*)
11409  version_type=qnx
11410  need_lib_prefix=no
11411  need_version=no
11412  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11413  soname_spec='$libname$release$shared_ext$major'
11414  shlibpath_var=LD_LIBRARY_PATH
11415  shlibpath_overrides_runpath=no
11416  hardcode_into_libs=yes
11417  dynamic_linker='ldqnx.so'
11418  ;;
11419
11420openbsd* | bitrig*)
11421  version_type=sunos
11422  sys_lib_dlsearch_path_spec=/usr/lib
11423  need_lib_prefix=no
11424  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11425    need_version=no
11426  else
11427    need_version=yes
11428  fi
11429  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11430  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11431  shlibpath_var=LD_LIBRARY_PATH
11432  shlibpath_overrides_runpath=yes
11433  ;;
11434
11435os2*)
11436  libname_spec='$name'
11437  version_type=windows
11438  shrext_cmds=.dll
11439  need_version=no
11440  need_lib_prefix=no
11441  # OS/2 can only load a DLL with a base name of 8 characters or less.
11442  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11443    v=$($ECHO $release$versuffix | tr -d .-);
11444    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11445    $ECHO $n$v`$shared_ext'
11446  library_names_spec='${libname}_dll.$libext'
11447  dynamic_linker='OS/2 ld.exe'
11448  shlibpath_var=BEGINLIBPATH
11449  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11450  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11451  postinstall_cmds='base_file=`basename \$file`~
11452    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11453    dldir=$destdir/`dirname \$dlpath`~
11454    test -d \$dldir || mkdir -p \$dldir~
11455    $install_prog $dir/$dlname \$dldir/$dlname~
11456    chmod a+x \$dldir/$dlname~
11457    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11458      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11459    fi'
11460  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11461    dlpath=$dir/\$dldll~
11462    $RM \$dlpath'
11463  ;;
11464
11465osf3* | osf4* | osf5*)
11466  version_type=osf
11467  need_lib_prefix=no
11468  need_version=no
11469  soname_spec='$libname$release$shared_ext$major'
11470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471  shlibpath_var=LD_LIBRARY_PATH
11472  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11473  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11474  ;;
11475
11476rdos*)
11477  dynamic_linker=no
11478  ;;
11479
11480solaris*)
11481  version_type=linux # correct to gnu/linux during the next big refactor
11482  need_lib_prefix=no
11483  need_version=no
11484  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11485  soname_spec='$libname$release$shared_ext$major'
11486  shlibpath_var=LD_LIBRARY_PATH
11487  shlibpath_overrides_runpath=yes
11488  hardcode_into_libs=yes
11489  # ldd complains unless libraries are executable
11490  postinstall_cmds='chmod +x $lib'
11491  ;;
11492
11493sunos4*)
11494  version_type=sunos
11495  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11496  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11497  shlibpath_var=LD_LIBRARY_PATH
11498  shlibpath_overrides_runpath=yes
11499  if test yes = "$with_gnu_ld"; then
11500    need_lib_prefix=no
11501  fi
11502  need_version=yes
11503  ;;
11504
11505sysv4 | sysv4.3*)
11506  version_type=linux # correct to gnu/linux during the next big refactor
11507  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508  soname_spec='$libname$release$shared_ext$major'
11509  shlibpath_var=LD_LIBRARY_PATH
11510  case $host_vendor in
11511    sni)
11512      shlibpath_overrides_runpath=no
11513      need_lib_prefix=no
11514      runpath_var=LD_RUN_PATH
11515      ;;
11516    siemens)
11517      need_lib_prefix=no
11518      ;;
11519    motorola)
11520      need_lib_prefix=no
11521      need_version=no
11522      shlibpath_overrides_runpath=no
11523      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11524      ;;
11525  esac
11526  ;;
11527
11528sysv4*MP*)
11529  if test -d /usr/nec; then
11530    version_type=linux # correct to gnu/linux during the next big refactor
11531    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11532    soname_spec='$libname$shared_ext.$major'
11533    shlibpath_var=LD_LIBRARY_PATH
11534  fi
11535  ;;
11536
11537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11538  version_type=sco
11539  need_lib_prefix=no
11540  need_version=no
11541  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11542  soname_spec='$libname$release$shared_ext$major'
11543  shlibpath_var=LD_LIBRARY_PATH
11544  shlibpath_overrides_runpath=yes
11545  hardcode_into_libs=yes
11546  if test yes = "$with_gnu_ld"; then
11547    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11548  else
11549    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11550    case $host_os in
11551      sco3.2v5*)
11552        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11553	;;
11554    esac
11555  fi
11556  sys_lib_dlsearch_path_spec='/usr/lib'
11557  ;;
11558
11559tpf*)
11560  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11561  version_type=linux # correct to gnu/linux during the next big refactor
11562  need_lib_prefix=no
11563  need_version=no
11564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565  shlibpath_var=LD_LIBRARY_PATH
11566  shlibpath_overrides_runpath=no
11567  hardcode_into_libs=yes
11568  ;;
11569
11570uts4*)
11571  version_type=linux # correct to gnu/linux during the next big refactor
11572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11573  soname_spec='$libname$release$shared_ext$major'
11574  shlibpath_var=LD_LIBRARY_PATH
11575  ;;
11576
11577*)
11578  dynamic_linker=no
11579  ;;
11580esac
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11582$as_echo "$dynamic_linker" >&6; }
11583test no = "$dynamic_linker" && can_build_shared=no
11584
11585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11586if test yes = "$GCC"; then
11587  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11588fi
11589
11590if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11591  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11592fi
11593
11594if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11595  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11596fi
11597
11598# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11599configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11600
11601# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11602func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11603
11604# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11605configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11704$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11705hardcode_action=
11706if test -n "$hardcode_libdir_flag_spec" ||
11707   test -n "$runpath_var" ||
11708   test yes = "$hardcode_automatic"; then
11709
11710  # We can hardcode non-existent directories.
11711  if test no != "$hardcode_direct" &&
11712     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11713     # have to relink, otherwise we might link with an installed library
11714     # when we should be linking with a yet-to-be-installed one
11715     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11716     test no != "$hardcode_minus_L"; then
11717    # Linking always hardcodes the temporary library directory.
11718    hardcode_action=relink
11719  else
11720    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11721    hardcode_action=immediate
11722  fi
11723else
11724  # We cannot hardcode anything, or else we can only hardcode existing
11725  # directories.
11726  hardcode_action=unsupported
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11729$as_echo "$hardcode_action" >&6; }
11730
11731if test relink = "$hardcode_action" ||
11732   test yes = "$inherit_rpath"; then
11733  # Fast installation is not supported
11734  enable_fast_install=no
11735elif test yes = "$shlibpath_overrides_runpath" ||
11736     test no = "$enable_shared"; then
11737  # Fast installation is not necessary
11738  enable_fast_install=needless
11739fi
11740
11741
11742
11743
11744
11745
11746  if test yes != "$enable_dlopen"; then
11747  enable_dlopen=unknown
11748  enable_dlopen_self=unknown
11749  enable_dlopen_self_static=unknown
11750else
11751  lt_cv_dlopen=no
11752  lt_cv_dlopen_libs=
11753
11754  case $host_os in
11755  beos*)
11756    lt_cv_dlopen=load_add_on
11757    lt_cv_dlopen_libs=
11758    lt_cv_dlopen_self=yes
11759    ;;
11760
11761  mingw* | pw32* | cegcc*)
11762    lt_cv_dlopen=LoadLibrary
11763    lt_cv_dlopen_libs=
11764    ;;
11765
11766  cygwin*)
11767    lt_cv_dlopen=dlopen
11768    lt_cv_dlopen_libs=
11769    ;;
11770
11771  darwin*)
11772    # if libdl is installed we need to link against it
11773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11774$as_echo_n "checking for dlopen in -ldl... " >&6; }
11775if ${ac_cv_lib_dl_dlopen+:} false; then :
11776  $as_echo_n "(cached) " >&6
11777else
11778  ac_check_lib_save_LIBS=$LIBS
11779LIBS="-ldl  $LIBS"
11780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h.  */
11782
11783/* Override any GCC internal prototype to avoid an error.
11784   Use char because int might match the return type of a GCC
11785   builtin and then its argument prototype would still apply.  */
11786#ifdef __cplusplus
11787extern "C"
11788#endif
11789char dlopen ();
11790int
11791main ()
11792{
11793return dlopen ();
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_link "$LINENO"; then :
11799  ac_cv_lib_dl_dlopen=yes
11800else
11801  ac_cv_lib_dl_dlopen=no
11802fi
11803rm -f core conftest.err conftest.$ac_objext \
11804    conftest$ac_exeext conftest.$ac_ext
11805LIBS=$ac_check_lib_save_LIBS
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11808$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11809if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11810  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11811else
11812
11813    lt_cv_dlopen=dyld
11814    lt_cv_dlopen_libs=
11815    lt_cv_dlopen_self=yes
11816
11817fi
11818
11819    ;;
11820
11821  tpf*)
11822    # Don't try to run any link tests for TPF.  We know it's impossible
11823    # because TPF is a cross-compiler, and we know how we open DSOs.
11824    lt_cv_dlopen=dlopen
11825    lt_cv_dlopen_libs=
11826    lt_cv_dlopen_self=no
11827    ;;
11828
11829  *)
11830    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11831if test "x$ac_cv_func_shl_load" = xyes; then :
11832  lt_cv_dlopen=shl_load
11833else
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11835$as_echo_n "checking for shl_load in -ldld... " >&6; }
11836if ${ac_cv_lib_dld_shl_load+:} false; then :
11837  $as_echo_n "(cached) " >&6
11838else
11839  ac_check_lib_save_LIBS=$LIBS
11840LIBS="-ldld  $LIBS"
11841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842/* end confdefs.h.  */
11843
11844/* Override any GCC internal prototype to avoid an error.
11845   Use char because int might match the return type of a GCC
11846   builtin and then its argument prototype would still apply.  */
11847#ifdef __cplusplus
11848extern "C"
11849#endif
11850char shl_load ();
11851int
11852main ()
11853{
11854return shl_load ();
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859if ac_fn_c_try_link "$LINENO"; then :
11860  ac_cv_lib_dld_shl_load=yes
11861else
11862  ac_cv_lib_dld_shl_load=no
11863fi
11864rm -f core conftest.err conftest.$ac_objext \
11865    conftest$ac_exeext conftest.$ac_ext
11866LIBS=$ac_check_lib_save_LIBS
11867fi
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11869$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11870if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11871  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11872else
11873  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11874if test "x$ac_cv_func_dlopen" = xyes; then :
11875  lt_cv_dlopen=dlopen
11876else
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11878$as_echo_n "checking for dlopen in -ldl... " >&6; }
11879if ${ac_cv_lib_dl_dlopen+:} false; then :
11880  $as_echo_n "(cached) " >&6
11881else
11882  ac_check_lib_save_LIBS=$LIBS
11883LIBS="-ldl  $LIBS"
11884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h.  */
11886
11887/* Override any GCC internal prototype to avoid an error.
11888   Use char because int might match the return type of a GCC
11889   builtin and then its argument prototype would still apply.  */
11890#ifdef __cplusplus
11891extern "C"
11892#endif
11893char dlopen ();
11894int
11895main ()
11896{
11897return dlopen ();
11898  ;
11899  return 0;
11900}
11901_ACEOF
11902if ac_fn_c_try_link "$LINENO"; then :
11903  ac_cv_lib_dl_dlopen=yes
11904else
11905  ac_cv_lib_dl_dlopen=no
11906fi
11907rm -f core conftest.err conftest.$ac_objext \
11908    conftest$ac_exeext conftest.$ac_ext
11909LIBS=$ac_check_lib_save_LIBS
11910fi
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11912$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11913if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11914  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11915else
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11917$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11918if ${ac_cv_lib_svld_dlopen+:} false; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  ac_check_lib_save_LIBS=$LIBS
11922LIBS="-lsvld  $LIBS"
11923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924/* end confdefs.h.  */
11925
11926/* Override any GCC internal prototype to avoid an error.
11927   Use char because int might match the return type of a GCC
11928   builtin and then its argument prototype would still apply.  */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932char dlopen ();
11933int
11934main ()
11935{
11936return dlopen ();
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941if ac_fn_c_try_link "$LINENO"; then :
11942  ac_cv_lib_svld_dlopen=yes
11943else
11944  ac_cv_lib_svld_dlopen=no
11945fi
11946rm -f core conftest.err conftest.$ac_objext \
11947    conftest$ac_exeext conftest.$ac_ext
11948LIBS=$ac_check_lib_save_LIBS
11949fi
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11951$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11952if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11953  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11954else
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11956$as_echo_n "checking for dld_link in -ldld... " >&6; }
11957if ${ac_cv_lib_dld_dld_link+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  ac_check_lib_save_LIBS=$LIBS
11961LIBS="-ldld  $LIBS"
11962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963/* end confdefs.h.  */
11964
11965/* Override any GCC internal prototype to avoid an error.
11966   Use char because int might match the return type of a GCC
11967   builtin and then its argument prototype would still apply.  */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char dld_link ();
11972int
11973main ()
11974{
11975return dld_link ();
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981  ac_cv_lib_dld_dld_link=yes
11982else
11983  ac_cv_lib_dld_dld_link=no
11984fi
11985rm -f core conftest.err conftest.$ac_objext \
11986    conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11990$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11991if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11992  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11993fi
11994
11995
11996fi
11997
11998
11999fi
12000
12001
12002fi
12003
12004
12005fi
12006
12007
12008fi
12009
12010    ;;
12011  esac
12012
12013  if test no = "$lt_cv_dlopen"; then
12014    enable_dlopen=no
12015  else
12016    enable_dlopen=yes
12017  fi
12018
12019  case $lt_cv_dlopen in
12020  dlopen)
12021    save_CPPFLAGS=$CPPFLAGS
12022    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12023
12024    save_LDFLAGS=$LDFLAGS
12025    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12026
12027    save_LIBS=$LIBS
12028    LIBS="$lt_cv_dlopen_libs $LIBS"
12029
12030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12031$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12032if ${lt_cv_dlopen_self+:} false; then :
12033  $as_echo_n "(cached) " >&6
12034else
12035  	  if test yes = "$cross_compiling"; then :
12036  lt_cv_dlopen_self=cross
12037else
12038  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12039  lt_status=$lt_dlunknown
12040  cat > conftest.$ac_ext <<_LT_EOF
12041#line $LINENO "configure"
12042#include "confdefs.h"
12043
12044#if HAVE_DLFCN_H
12045#include <dlfcn.h>
12046#endif
12047
12048#include <stdio.h>
12049
12050#ifdef RTLD_GLOBAL
12051#  define LT_DLGLOBAL		RTLD_GLOBAL
12052#else
12053#  ifdef DL_GLOBAL
12054#    define LT_DLGLOBAL		DL_GLOBAL
12055#  else
12056#    define LT_DLGLOBAL		0
12057#  endif
12058#endif
12059
12060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12061   find out it does not work in some platform. */
12062#ifndef LT_DLLAZY_OR_NOW
12063#  ifdef RTLD_LAZY
12064#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12065#  else
12066#    ifdef DL_LAZY
12067#      define LT_DLLAZY_OR_NOW		DL_LAZY
12068#    else
12069#      ifdef RTLD_NOW
12070#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12071#      else
12072#        ifdef DL_NOW
12073#          define LT_DLLAZY_OR_NOW	DL_NOW
12074#        else
12075#          define LT_DLLAZY_OR_NOW	0
12076#        endif
12077#      endif
12078#    endif
12079#  endif
12080#endif
12081
12082/* When -fvisibility=hidden is used, assume the code has been annotated
12083   correspondingly for the symbols needed.  */
12084#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12085int fnord () __attribute__((visibility("default")));
12086#endif
12087
12088int fnord () { return 42; }
12089int main ()
12090{
12091  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12092  int status = $lt_dlunknown;
12093
12094  if (self)
12095    {
12096      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12097      else
12098        {
12099	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12100          else puts (dlerror ());
12101	}
12102      /* dlclose (self); */
12103    }
12104  else
12105    puts (dlerror ());
12106
12107  return status;
12108}
12109_LT_EOF
12110  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12111  (eval $ac_link) 2>&5
12112  ac_status=$?
12113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12115    (./conftest; exit; ) >&5 2>/dev/null
12116    lt_status=$?
12117    case x$lt_status in
12118      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12119      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12120      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12121    esac
12122  else :
12123    # compilation failed
12124    lt_cv_dlopen_self=no
12125  fi
12126fi
12127rm -fr conftest*
12128
12129
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12132$as_echo "$lt_cv_dlopen_self" >&6; }
12133
12134    if test yes = "$lt_cv_dlopen_self"; then
12135      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12136      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12137$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12138if ${lt_cv_dlopen_self_static+:} false; then :
12139  $as_echo_n "(cached) " >&6
12140else
12141  	  if test yes = "$cross_compiling"; then :
12142  lt_cv_dlopen_self_static=cross
12143else
12144  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12145  lt_status=$lt_dlunknown
12146  cat > conftest.$ac_ext <<_LT_EOF
12147#line $LINENO "configure"
12148#include "confdefs.h"
12149
12150#if HAVE_DLFCN_H
12151#include <dlfcn.h>
12152#endif
12153
12154#include <stdio.h>
12155
12156#ifdef RTLD_GLOBAL
12157#  define LT_DLGLOBAL		RTLD_GLOBAL
12158#else
12159#  ifdef DL_GLOBAL
12160#    define LT_DLGLOBAL		DL_GLOBAL
12161#  else
12162#    define LT_DLGLOBAL		0
12163#  endif
12164#endif
12165
12166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12167   find out it does not work in some platform. */
12168#ifndef LT_DLLAZY_OR_NOW
12169#  ifdef RTLD_LAZY
12170#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12171#  else
12172#    ifdef DL_LAZY
12173#      define LT_DLLAZY_OR_NOW		DL_LAZY
12174#    else
12175#      ifdef RTLD_NOW
12176#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12177#      else
12178#        ifdef DL_NOW
12179#          define LT_DLLAZY_OR_NOW	DL_NOW
12180#        else
12181#          define LT_DLLAZY_OR_NOW	0
12182#        endif
12183#      endif
12184#    endif
12185#  endif
12186#endif
12187
12188/* When -fvisibility=hidden is used, assume the code has been annotated
12189   correspondingly for the symbols needed.  */
12190#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12191int fnord () __attribute__((visibility("default")));
12192#endif
12193
12194int fnord () { return 42; }
12195int main ()
12196{
12197  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12198  int status = $lt_dlunknown;
12199
12200  if (self)
12201    {
12202      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12203      else
12204        {
12205	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12206          else puts (dlerror ());
12207	}
12208      /* dlclose (self); */
12209    }
12210  else
12211    puts (dlerror ());
12212
12213  return status;
12214}
12215_LT_EOF
12216  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12217  (eval $ac_link) 2>&5
12218  ac_status=$?
12219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12220  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12221    (./conftest; exit; ) >&5 2>/dev/null
12222    lt_status=$?
12223    case x$lt_status in
12224      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12225      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12226      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12227    esac
12228  else :
12229    # compilation failed
12230    lt_cv_dlopen_self_static=no
12231  fi
12232fi
12233rm -fr conftest*
12234
12235
12236fi
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12238$as_echo "$lt_cv_dlopen_self_static" >&6; }
12239    fi
12240
12241    CPPFLAGS=$save_CPPFLAGS
12242    LDFLAGS=$save_LDFLAGS
12243    LIBS=$save_LIBS
12244    ;;
12245  esac
12246
12247  case $lt_cv_dlopen_self in
12248  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12249  *) enable_dlopen_self=unknown ;;
12250  esac
12251
12252  case $lt_cv_dlopen_self_static in
12253  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12254  *) enable_dlopen_self_static=unknown ;;
12255  esac
12256fi
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274striplib=
12275old_striplib=
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12277$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12278if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12279  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12280  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282$as_echo "yes" >&6; }
12283else
12284# FIXME - insert some real tests, host_os isn't really good enough
12285  case $host_os in
12286  darwin*)
12287    if test -n "$STRIP"; then
12288      striplib="$STRIP -x"
12289      old_striplib="$STRIP -S"
12290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291$as_echo "yes" >&6; }
12292    else
12293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294$as_echo "no" >&6; }
12295    fi
12296    ;;
12297  *)
12298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300    ;;
12301  esac
12302fi
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315  # Report what library types will actually be built
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12317$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12319$as_echo "$can_build_shared" >&6; }
12320
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12322$as_echo_n "checking whether to build shared libraries... " >&6; }
12323  test no = "$can_build_shared" && enable_shared=no
12324
12325  # On AIX, shared libraries and static libraries use the same namespace, and
12326  # are all built from PIC.
12327  case $host_os in
12328  aix3*)
12329    test yes = "$enable_shared" && enable_static=no
12330    if test -n "$RANLIB"; then
12331      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12332      postinstall_cmds='$RANLIB $lib'
12333    fi
12334    ;;
12335
12336  aix[4-9]*)
12337    if test ia64 != "$host_cpu"; then
12338      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12339      yes,aix,yes) ;;			# shared object as lib.so file only
12340      yes,svr4,*) ;;			# shared object as lib.so archive member only
12341      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12342      esac
12343    fi
12344    ;;
12345  esac
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12347$as_echo "$enable_shared" >&6; }
12348
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12350$as_echo_n "checking whether to build static libraries... " >&6; }
12351  # Make sure either enable_shared or enable_static is yes.
12352  test yes = "$enable_shared" || enable_static=yes
12353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12354$as_echo "$enable_static" >&6; }
12355
12356
12357
12358
12359fi
12360ac_ext=c
12361ac_cpp='$CPP $CPPFLAGS'
12362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364ac_compiler_gnu=$ac_cv_c_compiler_gnu
12365
12366CC=$lt_save_CC
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382        ac_config_commands="$ac_config_commands libtool"
12383
12384
12385
12386
12387# Only expand once:
12388
12389
12390
12391
12392case "$ac_cv_host" in
12393   *openbsd* | *solaris* | *irix*)
12394   ;;
12395   *)
12396$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
12397
12398   ;;
12399esac
12400if test -z "$GCC"; then
12401        case $host in
12402        *-*-irix*)
12403                DEBUG="-g -signed"
12404                CFLAGS="-O2 -w -signed"
12405                PROFILE="-p -g3 -O2 -signed"
12406		;;
12407        sparc-sun-solaris*)
12408                DEBUG="-v -g"
12409                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
12410                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
12411		;;
12412        *)
12413                DEBUG="-g"
12414                CFLAGS="-O"
12415                PROFILE="-g -p"
12416		;;
12417        esac
12418else
12419        XIPH_CFLAGS="-Wall -ffast-math -fsigned-char"
12420
12421$as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
12422
12423        DEBUG="-g"
12424        PROFILE="-pg -g"
12425fi
12426
12427
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12429$as_echo_n "checking for ANSI C header files... " >&6; }
12430if ${ac_cv_header_stdc+:} false; then :
12431  $as_echo_n "(cached) " >&6
12432else
12433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434/* end confdefs.h.  */
12435#include <stdlib.h>
12436#include <stdarg.h>
12437#include <string.h>
12438#include <float.h>
12439
12440int
12441main ()
12442{
12443
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_compile "$LINENO"; then :
12449  ac_cv_header_stdc=yes
12450else
12451  ac_cv_header_stdc=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454
12455if test $ac_cv_header_stdc = yes; then
12456  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459#include <string.h>
12460
12461_ACEOF
12462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12463  $EGREP "memchr" >/dev/null 2>&1; then :
12464
12465else
12466  ac_cv_header_stdc=no
12467fi
12468rm -f conftest*
12469
12470fi
12471
12472if test $ac_cv_header_stdc = yes; then
12473  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h.  */
12476#include <stdlib.h>
12477
12478_ACEOF
12479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12480  $EGREP "free" >/dev/null 2>&1; then :
12481
12482else
12483  ac_cv_header_stdc=no
12484fi
12485rm -f conftest*
12486
12487fi
12488
12489if test $ac_cv_header_stdc = yes; then
12490  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12491  if test "$cross_compiling" = yes; then :
12492  :
12493else
12494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496#include <ctype.h>
12497#include <stdlib.h>
12498#if ((' ' & 0x0FF) == 0x020)
12499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12501#else
12502# define ISLOWER(c) \
12503		   (('a' <= (c) && (c) <= 'i') \
12504		     || ('j' <= (c) && (c) <= 'r') \
12505		     || ('s' <= (c) && (c) <= 'z'))
12506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12507#endif
12508
12509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12510int
12511main ()
12512{
12513  int i;
12514  for (i = 0; i < 256; i++)
12515    if (XOR (islower (i), ISLOWER (i))
12516	|| toupper (i) != TOUPPER (i))
12517      return 2;
12518  return 0;
12519}
12520_ACEOF
12521if ac_fn_c_try_run "$LINENO"; then :
12522
12523else
12524  ac_cv_header_stdc=no
12525fi
12526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12527  conftest.$ac_objext conftest.beam conftest.$ac_ext
12528fi
12529
12530fi
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12533$as_echo "$ac_cv_header_stdc" >&6; }
12534if test $ac_cv_header_stdc = yes; then
12535
12536$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12537
12538fi
12539
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12541$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12542if ${ac_cv_header_time+:} false; then :
12543  $as_echo_n "(cached) " >&6
12544else
12545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h.  */
12547#include <sys/types.h>
12548#include <sys/time.h>
12549#include <time.h>
12550
12551int
12552main ()
12553{
12554if ((struct tm *) 0)
12555return 0;
12556  ;
12557  return 0;
12558}
12559_ACEOF
12560if ac_fn_c_try_compile "$LINENO"; then :
12561  ac_cv_header_time=yes
12562else
12563  ac_cv_header_time=no
12564fi
12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12568$as_echo "$ac_cv_header_time" >&6; }
12569if test $ac_cv_header_time = yes; then
12570
12571$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12572
12573fi
12574
12575for ac_header in strings.h sys/timeb.h arpa/inet.h
12576do :
12577  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12578ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12580  cat >>confdefs.h <<_ACEOF
12581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12582_ACEOF
12583
12584fi
12585
12586done
12587
12588
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12590$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12591if ${ac_cv_c_const+:} false; then :
12592  $as_echo_n "(cached) " >&6
12593else
12594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h.  */
12596
12597int
12598main ()
12599{
12600
12601#ifndef __cplusplus
12602  /* Ultrix mips cc rejects this sort of thing.  */
12603  typedef int charset[2];
12604  const charset cs = { 0, 0 };
12605  /* SunOS 4.1.1 cc rejects this.  */
12606  char const *const *pcpcc;
12607  char **ppc;
12608  /* NEC SVR4.0.2 mips cc rejects this.  */
12609  struct point {int x, y;};
12610  static struct point const zero = {0,0};
12611  /* AIX XL C 1.02.0.0 rejects this.
12612     It does not let you subtract one const X* pointer from another in
12613     an arm of an if-expression whose if-part is not a constant
12614     expression */
12615  const char *g = "string";
12616  pcpcc = &g + (g ? g-g : 0);
12617  /* HPUX 7.0 cc rejects these. */
12618  ++pcpcc;
12619  ppc = (char**) pcpcc;
12620  pcpcc = (char const *const *) ppc;
12621  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12622    char tx;
12623    char *t = &tx;
12624    char const *s = 0 ? (char *) 0 : (char const *) 0;
12625
12626    *t++ = 0;
12627    if (s) return 0;
12628  }
12629  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12630    int x[] = {25, 17};
12631    const int *foo = &x[0];
12632    ++foo;
12633  }
12634  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12635    typedef const int *iptr;
12636    iptr p = 0;
12637    ++p;
12638  }
12639  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12640       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12641    struct s { int j; const int *ap[3]; } bx;
12642    struct s *b = &bx; b->j = 5;
12643  }
12644  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12645    const int foo = 10;
12646    if (!foo) return 0;
12647  }
12648  return !cs[0] && !zero.x;
12649#endif
12650
12651  ;
12652  return 0;
12653}
12654_ACEOF
12655if ac_fn_c_try_compile "$LINENO"; then :
12656  ac_cv_c_const=yes
12657else
12658  ac_cv_c_const=no
12659fi
12660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661fi
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12663$as_echo "$ac_cv_c_const" >&6; }
12664if test $ac_cv_c_const = no; then
12665
12666$as_echo "#define const /**/" >>confdefs.h
12667
12668fi
12669
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12671$as_echo_n "checking for inline... " >&6; }
12672if ${ac_cv_c_inline+:} false; then :
12673  $as_echo_n "(cached) " >&6
12674else
12675  ac_cv_c_inline=no
12676for ac_kw in inline __inline__ __inline; do
12677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679#ifndef __cplusplus
12680typedef int foo_t;
12681static $ac_kw foo_t static_foo () {return 0; }
12682$ac_kw foo_t foo () {return 0; }
12683#endif
12684
12685_ACEOF
12686if ac_fn_c_try_compile "$LINENO"; then :
12687  ac_cv_c_inline=$ac_kw
12688fi
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690  test "$ac_cv_c_inline" != no && break
12691done
12692
12693fi
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12695$as_echo "$ac_cv_c_inline" >&6; }
12696
12697case $ac_cv_c_inline in
12698  inline | yes) ;;
12699  *)
12700    case $ac_cv_c_inline in
12701      no) ac_val=;;
12702      *) ac_val=$ac_cv_c_inline;;
12703    esac
12704    cat >>confdefs.h <<_ACEOF
12705#ifndef __cplusplus
12706#define inline $ac_val
12707#endif
12708_ACEOF
12709    ;;
12710esac
12711
12712for ac_header in inttypes.h
12713do :
12714  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12715if test "x$ac_cv_header_inttypes_h" = xyes; then :
12716  cat >>confdefs.h <<_ACEOF
12717#define HAVE_INTTYPES_H 1
12718_ACEOF
12719
12720fi
12721
12722done
12723
12724ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12725if test "x$ac_cv_type_uint32_t" = xyes; then :
12726
12727$as_echo "#define HAVE_C99_INTTYPES 1" >>confdefs.h
12728
12729else
12730  # The cast to long int works around a bug in the HP C Compiler
12731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12733# This bug is HP SR number 8606223364.
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12735$as_echo_n "checking size of short... " >&6; }
12736if ${ac_cv_sizeof_short+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12740
12741else
12742  if test "$ac_cv_type_short" = yes; then
12743     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12745as_fn_error 77 "cannot compute sizeof (short)
12746See \`config.log' for more details" "$LINENO" 5; }
12747   else
12748     ac_cv_sizeof_short=0
12749   fi
12750fi
12751
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12754$as_echo "$ac_cv_sizeof_short" >&6; }
12755
12756
12757
12758cat >>confdefs.h <<_ACEOF
12759#define SIZEOF_SHORT $ac_cv_sizeof_short
12760_ACEOF
12761
12762
12763   # The cast to long int works around a bug in the HP C Compiler
12764# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12765# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12766# This bug is HP SR number 8606223364.
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12768$as_echo_n "checking size of int... " >&6; }
12769if ${ac_cv_sizeof_int+:} false; then :
12770  $as_echo_n "(cached) " >&6
12771else
12772  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12773
12774else
12775  if test "$ac_cv_type_int" = yes; then
12776     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12778as_fn_error 77 "cannot compute sizeof (int)
12779See \`config.log' for more details" "$LINENO" 5; }
12780   else
12781     ac_cv_sizeof_int=0
12782   fi
12783fi
12784
12785fi
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12787$as_echo "$ac_cv_sizeof_int" >&6; }
12788
12789
12790
12791cat >>confdefs.h <<_ACEOF
12792#define SIZEOF_INT $ac_cv_sizeof_int
12793_ACEOF
12794
12795
12796   # The cast to long int works around a bug in the HP C Compiler
12797# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12798# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12799# This bug is HP SR number 8606223364.
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12801$as_echo_n "checking size of long... " >&6; }
12802if ${ac_cv_sizeof_long+:} false; then :
12803  $as_echo_n "(cached) " >&6
12804else
12805  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12806
12807else
12808  if test "$ac_cv_type_long" = yes; then
12809     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12811as_fn_error 77 "cannot compute sizeof (long)
12812See \`config.log' for more details" "$LINENO" 5; }
12813   else
12814     ac_cv_sizeof_long=0
12815   fi
12816fi
12817
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12820$as_echo "$ac_cv_sizeof_long" >&6; }
12821
12822
12823
12824cat >>confdefs.h <<_ACEOF
12825#define SIZEOF_LONG $ac_cv_sizeof_long
12826_ACEOF
12827
12828
12829   # The cast to long int works around a bug in the HP C Compiler
12830# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12831# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12832# This bug is HP SR number 8606223364.
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12834$as_echo_n "checking size of long long... " >&6; }
12835if ${ac_cv_sizeof_long_long+:} false; then :
12836  $as_echo_n "(cached) " >&6
12837else
12838  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12839
12840else
12841  if test "$ac_cv_type_long_long" = yes; then
12842     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12844as_fn_error 77 "cannot compute sizeof (long long)
12845See \`config.log' for more details" "$LINENO" 5; }
12846   else
12847     ac_cv_sizeof_long_long=0
12848   fi
12849fi
12850
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12853$as_echo "$ac_cv_sizeof_long_long" >&6; }
12854
12855
12856
12857cat >>confdefs.h <<_ACEOF
12858#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12859_ACEOF
12860
12861
12862fi
12863
12864
12865
12866
12867for ac_func in gettimeofday ftime
12868do :
12869  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12871if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12872  cat >>confdefs.h <<_ACEOF
12873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12874_ACEOF
12875
12876fi
12877done
12878
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12880$as_echo_n "checking for library containing nanosleep... " >&6; }
12881if ${ac_cv_search_nanosleep+:} false; then :
12882  $as_echo_n "(cached) " >&6
12883else
12884  ac_func_search_save_LIBS=$LIBS
12885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886/* end confdefs.h.  */
12887
12888/* Override any GCC internal prototype to avoid an error.
12889   Use char because int might match the return type of a GCC
12890   builtin and then its argument prototype would still apply.  */
12891#ifdef __cplusplus
12892extern "C"
12893#endif
12894char nanosleep ();
12895int
12896main ()
12897{
12898return nanosleep ();
12899  ;
12900  return 0;
12901}
12902_ACEOF
12903for ac_lib in '' rt; do
12904  if test -z "$ac_lib"; then
12905    ac_res="none required"
12906  else
12907    ac_res=-l$ac_lib
12908    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12909  fi
12910  if ac_fn_c_try_link "$LINENO"; then :
12911  ac_cv_search_nanosleep=$ac_res
12912fi
12913rm -f core conftest.err conftest.$ac_objext \
12914    conftest$ac_exeext
12915  if ${ac_cv_search_nanosleep+:} false; then :
12916  break
12917fi
12918done
12919if ${ac_cv_search_nanosleep+:} false; then :
12920
12921else
12922  ac_cv_search_nanosleep=no
12923fi
12924rm conftest.$ac_ext
12925LIBS=$ac_func_search_save_LIBS
12926fi
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12928$as_echo "$ac_cv_search_nanosleep" >&6; }
12929ac_res=$ac_cv_search_nanosleep
12930if test "$ac_res" != no; then :
12931  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932
12933$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12934
12935fi
12936
12937
12938for ac_header in sys/socket.h
12939do :
12940  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12941if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12942  cat >>confdefs.h <<_ACEOF
12943#define HAVE_SYS_SOCKET_H 1
12944_ACEOF
12945
12946fi
12947
12948done
12949
12950ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#if HAVE_SYS_TYPES_H
12951# include <sys/types.h>
12952#endif
12953#if HAVE_SYS_SOCKET_H
12954# include <sys/socket.h>
12955#endif
12956
12957"
12958if test "x$ac_cv_type_socklen_t" = xyes; then :
12959
12960cat >>confdefs.h <<_ACEOF
12961#define HAVE_SOCKLEN_T 1
12962_ACEOF
12963
12964
12965fi
12966
12967
12968
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12970$as_echo_n "checking for va_copy... " >&6; }
12971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h.  */
12973#include <stdarg.h>
12974int
12975main ()
12976{
12977va_list ap1, ap2; va_copy(ap1, ap2);
12978  ;
12979  return 0;
12980}
12981_ACEOF
12982if ac_fn_c_try_link "$LINENO"; then :
12983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
12984$as_echo "va_copy" >&6; }
12985else
12986
12987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988/* end confdefs.h.  */
12989#include <stdarg.h>
12990int
12991main ()
12992{
12993va_list ap1, ap2; __va_copy(ap1, ap2);
12994  ;
12995  return 0;
12996}
12997_ACEOF
12998if ac_fn_c_try_link "$LINENO"; then :
12999      $as_echo "#define va_copy __va_copy" >>confdefs.h
13000
13001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
13002$as_echo "__va_copy" >&6; }
13003else
13004      $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h
13005
13006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
13007$as_echo "memcpy" >&6; }
13008
13009fi
13010rm -f core conftest.err conftest.$ac_objext \
13011    conftest$ac_exeext conftest.$ac_ext
13012
13013fi
13014rm -f core conftest.err conftest.$ac_objext \
13015    conftest$ac_exeext conftest.$ac_ext
13016
13017
13018
13019for ac_header in sys/select.h sys/uio.h
13020do :
13021  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13024  cat >>confdefs.h <<_ACEOF
13025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13026_ACEOF
13027
13028fi
13029
13030done
13031
13032ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13033if test "x$ac_cv_header_winsock2_h" = xyes; then :
13034
13035$as_echo "#define HAVE_WINSOCK2_H 1" >>confdefs.h
13036
13037   LIBS="$LIBS -lwsock32"
13038fi
13039
13040
13041
13042# These tests are ordered based on solaris 8 tests
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sethostent" >&5
13044$as_echo_n "checking for library containing sethostent... " >&6; }
13045if ${ac_cv_search_sethostent+:} false; then :
13046  $as_echo_n "(cached) " >&6
13047else
13048  ac_func_search_save_LIBS=$LIBS
13049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052/* Override any GCC internal prototype to avoid an error.
13053   Use char because int might match the return type of a GCC
13054   builtin and then its argument prototype would still apply.  */
13055#ifdef __cplusplus
13056extern "C"
13057#endif
13058char sethostent ();
13059int
13060main ()
13061{
13062return sethostent ();
13063  ;
13064  return 0;
13065}
13066_ACEOF
13067for ac_lib in '' nsl; do
13068  if test -z "$ac_lib"; then
13069    ac_res="none required"
13070  else
13071    ac_res=-l$ac_lib
13072    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13073  fi
13074  if ac_fn_c_try_link "$LINENO"; then :
13075  ac_cv_search_sethostent=$ac_res
13076fi
13077rm -f core conftest.err conftest.$ac_objext \
13078    conftest$ac_exeext
13079  if ${ac_cv_search_sethostent+:} false; then :
13080  break
13081fi
13082done
13083if ${ac_cv_search_sethostent+:} false; then :
13084
13085else
13086  ac_cv_search_sethostent=no
13087fi
13088rm conftest.$ac_ext
13089LIBS=$ac_func_search_save_LIBS
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sethostent" >&5
13092$as_echo "$ac_cv_search_sethostent" >&6; }
13093ac_res=$ac_cv_search_sethostent
13094if test "$ac_res" != no; then :
13095  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13096
13097$as_echo "#define HAVE_SETHOSTENT 1" >>confdefs.h
13098
13099fi
13100
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13102$as_echo_n "checking for library containing getnameinfo... " >&6; }
13103if ${ac_cv_search_getnameinfo+:} false; then :
13104  $as_echo_n "(cached) " >&6
13105else
13106  ac_func_search_save_LIBS=$LIBS
13107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109
13110/* Override any GCC internal prototype to avoid an error.
13111   Use char because int might match the return type of a GCC
13112   builtin and then its argument prototype would still apply.  */
13113#ifdef __cplusplus
13114extern "C"
13115#endif
13116char getnameinfo ();
13117int
13118main ()
13119{
13120return getnameinfo ();
13121  ;
13122  return 0;
13123}
13124_ACEOF
13125for ac_lib in '' socket; do
13126  if test -z "$ac_lib"; then
13127    ac_res="none required"
13128  else
13129    ac_res=-l$ac_lib
13130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13131  fi
13132  if ac_fn_c_try_link "$LINENO"; then :
13133  ac_cv_search_getnameinfo=$ac_res
13134fi
13135rm -f core conftest.err conftest.$ac_objext \
13136    conftest$ac_exeext
13137  if ${ac_cv_search_getnameinfo+:} false; then :
13138  break
13139fi
13140done
13141if ${ac_cv_search_getnameinfo+:} false; then :
13142
13143else
13144  ac_cv_search_getnameinfo=no
13145fi
13146rm conftest.$ac_ext
13147LIBS=$ac_func_search_save_LIBS
13148fi
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13150$as_echo "$ac_cv_search_getnameinfo" >&6; }
13151ac_res=$ac_cv_search_getnameinfo
13152if test "$ac_res" != no; then :
13153  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13154
13155$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
13156
13157fi
13158
13159for ac_func in endhostent getaddrinfo inet_aton writev
13160do :
13161  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13163if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13164  cat >>confdefs.h <<_ACEOF
13165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13166_ACEOF
13167
13168fi
13169done
13170
13171
13172# Irix defines INET_PTON but not sockaddr_storage!
13173ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
13174#include <sys/socket.h>
13175"
13176if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
13177
13178cat >>confdefs.h <<_ACEOF
13179#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13180_ACEOF
13181
13182for ac_func in inet_pton
13183do :
13184  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
13185if test "x$ac_cv_func_inet_pton" = xyes; then :
13186  cat >>confdefs.h <<_ACEOF
13187#define HAVE_INET_PTON 1
13188_ACEOF
13189
13190fi
13191done
13192
13193fi
13194
13195
13196
13197# Check whether --enable-thread was given.
13198if test "${enable_thread+set}" = set; then :
13199  enableval=$enable_thread;
13200fi
13201
13202
13203SHOUT_THREADSAFE="0"
13204if test "$enable_thread" != "no"
13205then
13206
13207
13208
13209ac_ext=c
13210ac_cpp='$CPP $CPPFLAGS'
13211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_c_compiler_gnu
13214
13215acx_pthread_ok=no
13216
13217# We used to check for pthread.h first, but this fails if pthread.h
13218# requires special compiler flags (e.g. on True64 or Sequent).
13219# It gets checked for in the link test anyway.
13220
13221# First of all, check if the user has set any of the PTHREAD_LIBS,
13222# etcetera environment variables, and if threads linking works using
13223# them:
13224if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13225        save_CFLAGS="$CFLAGS"
13226        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13227        save_LIBS="$LIBS"
13228        LIBS="$PTHREAD_LIBS $LIBS"
13229        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13230$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13231        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232/* end confdefs.h.  */
13233
13234/* Override any GCC internal prototype to avoid an error.
13235   Use char because int might match the return type of a GCC
13236   builtin and then its argument prototype would still apply.  */
13237#ifdef __cplusplus
13238extern "C"
13239#endif
13240char pthread_join ();
13241int
13242main ()
13243{
13244return pthread_join ();
13245  ;
13246  return 0;
13247}
13248_ACEOF
13249if ac_fn_c_try_link "$LINENO"; then :
13250  acx_pthread_ok=yes
13251fi
13252rm -f core conftest.err conftest.$ac_objext \
13253    conftest$ac_exeext conftest.$ac_ext
13254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13255$as_echo "$acx_pthread_ok" >&6; }
13256        if test x"$acx_pthread_ok" = xno; then
13257                PTHREAD_LIBS=""
13258                PTHREAD_CFLAGS=""
13259        fi
13260        LIBS="$save_LIBS"
13261        CFLAGS="$save_CFLAGS"
13262fi
13263
13264# We must check for the threads library under a number of different
13265# names; the ordering is very important because some systems
13266# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13267# libraries is broken (non-POSIX).
13268
13269# Create a list of thread flags to try.  Items starting with a "-" are
13270# C compiler flags, and other items are library names, except for "none"
13271# which indicates that we try without any flags at all, and "pthread-config"
13272# which is a program returning the flags for the Pth emulation library.
13273
13274acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13275
13276# The ordering *is* (sometimes) important.  Some notes on the
13277# individual items follow:
13278
13279# pthreads: AIX (must check this before -lpthread)
13280# none: in case threads are in libc; should be tried before -Kthread and
13281#       other compiler flags to prevent continual compiler warnings
13282# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13283# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13284# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13285# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13286# -pthreads: Solaris/gcc
13287# -mthreads: Mingw32/gcc, Lynx/gcc
13288# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13289#      doesn't hurt to check since this sometimes defines pthreads too;
13290#      also defines -D_REENTRANT)
13291#      ... -mt is also the pthreads flag for HP/aCC
13292# pthread: Linux, etcetera
13293# --thread-safe: KAI C++
13294# pthread-config: use pthread-config program (for GNU Pth library)
13295
13296case "${host_cpu}-${host_os}" in
13297        *solaris*)
13298
13299        # On Solaris (at least, for some versions), libc contains stubbed
13300        # (non-functional) versions of the pthreads routines, so link-based
13301        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
13302        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13303        # a function called by this macro, so we could check for that, but
13304        # who knows whether they'll stub that too in a future libc.)  So,
13305        # we'll just look for -pthreads and -lpthread first:
13306
13307        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
13308        ;;
13309esac
13310
13311if test x"$acx_pthread_ok" = xno; then
13312for flag in $acx_pthread_flags; do
13313
13314        case $flag in
13315                none)
13316                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13317$as_echo_n "checking whether pthreads work without any flags... " >&6; }
13318                ;;
13319
13320                -*)
13321                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
13322$as_echo_n "checking whether pthreads work with $flag... " >&6; }
13323                PTHREAD_CFLAGS="$flag"
13324                ;;
13325
13326                pthread-config)
13327                # Extract the first word of "pthread-config", so it can be a program name with args.
13328set dummy pthread-config; ac_word=$2
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330$as_echo_n "checking for $ac_word... " >&6; }
13331if ${ac_cv_prog_acx_pthread_config+:} false; then :
13332  $as_echo_n "(cached) " >&6
13333else
13334  if test -n "$acx_pthread_config"; then
13335  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13336else
13337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338for as_dir in $PATH
13339do
13340  IFS=$as_save_IFS
13341  test -z "$as_dir" && as_dir=.
13342    for ac_exec_ext in '' $ac_executable_extensions; do
13343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344    ac_cv_prog_acx_pthread_config="yes"
13345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346    break 2
13347  fi
13348done
13349  done
13350IFS=$as_save_IFS
13351
13352  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13353fi
13354fi
13355acx_pthread_config=$ac_cv_prog_acx_pthread_config
13356if test -n "$acx_pthread_config"; then
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
13358$as_echo "$acx_pthread_config" >&6; }
13359else
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364
13365                if test x"$acx_pthread_config" = xno; then continue; fi
13366                PTHREAD_CFLAGS="`pthread-config --cflags`"
13367                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13368                ;;
13369
13370                *)
13371                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
13372$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
13373                PTHREAD_LIBS="-l$flag"
13374                ;;
13375        esac
13376
13377        save_LIBS="$LIBS"
13378        save_CFLAGS="$CFLAGS"
13379        LIBS="$PTHREAD_LIBS $LIBS"
13380        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13381
13382        # Check for various functions.  We must include pthread.h,
13383        # since some functions may be macros.  (On the Sequent, we
13384        # need a special flag -Kthread to make this header compile.)
13385        # We check for pthread_join because it is in -lpthread on IRIX
13386        # while pthread_create is in libc.  We check for pthread_attr_init
13387        # due to DEC craziness with -lpthreads.  We check for
13388        # pthread_cleanup_push because it is one of the few pthread
13389        # functions on Solaris that doesn't have a non-functional libc stub.
13390        # We try pthread_create on general principles.
13391        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h.  */
13393#include <pthread.h>
13394int
13395main ()
13396{
13397pthread_t th; pthread_join(th, 0);
13398                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
13399                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13400  ;
13401  return 0;
13402}
13403_ACEOF
13404if ac_fn_c_try_link "$LINENO"; then :
13405  acx_pthread_ok=yes
13406fi
13407rm -f core conftest.err conftest.$ac_objext \
13408    conftest$ac_exeext conftest.$ac_ext
13409
13410        LIBS="$save_LIBS"
13411        CFLAGS="$save_CFLAGS"
13412
13413        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
13414$as_echo "$acx_pthread_ok" >&6; }
13415        if test "x$acx_pthread_ok" = xyes; then
13416                break;
13417        fi
13418
13419        PTHREAD_LIBS=""
13420        PTHREAD_CFLAGS=""
13421done
13422fi
13423
13424# Various other checks:
13425if test "x$acx_pthread_ok" = xyes; then
13426        save_LIBS="$LIBS"
13427        LIBS="$PTHREAD_LIBS $LIBS"
13428        save_CFLAGS="$CFLAGS"
13429        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13430
13431        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13433$as_echo_n "checking for joinable pthread attribute... " >&6; }
13434        attr_name=unknown
13435        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
13436            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437/* end confdefs.h.  */
13438#include <pthread.h>
13439int
13440main ()
13441{
13442int attr=$attr; return attr;
13443  ;
13444  return 0;
13445}
13446_ACEOF
13447if ac_fn_c_try_link "$LINENO"; then :
13448  attr_name=$attr; break
13449fi
13450rm -f core conftest.err conftest.$ac_objext \
13451    conftest$ac_exeext conftest.$ac_ext
13452        done
13453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
13454$as_echo "$attr_name" >&6; }
13455        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
13456
13457cat >>confdefs.h <<_ACEOF
13458#define PTHREAD_CREATE_JOINABLE $attr_name
13459_ACEOF
13460
13461        fi
13462
13463        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
13464$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
13465        flag=no
13466        case "${host_cpu}-${host_os}" in
13467            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13468            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13469        esac
13470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
13471$as_echo "${flag}" >&6; }
13472        if test "x$flag" != xno; then
13473            PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS"
13474        fi
13475
13476        for ac_func in pthread_spin_lock
13477do :
13478  ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
13479if test "x$ac_cv_func_pthread_spin_lock" = xyes; then :
13480  cat >>confdefs.h <<_ACEOF
13481#define HAVE_PTHREAD_SPIN_LOCK 1
13482_ACEOF
13483
13484fi
13485done
13486
13487        LIBS="$save_LIBS"
13488        CFLAGS="$save_CFLAGS"
13489
13490        # More AIX lossage: must compile with xlc_r or cc_r
13491        if test x"$GCC" != xyes; then
13492          for ac_prog in xlc_r cc_r
13493do
13494  # Extract the first word of "$ac_prog", so it can be a program name with args.
13495set dummy $ac_prog; ac_word=$2
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
13498if ${ac_cv_prog_PTHREAD_CC+:} false; then :
13499  $as_echo_n "(cached) " >&6
13500else
13501  if test -n "$PTHREAD_CC"; then
13502  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13503else
13504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505for as_dir in $PATH
13506do
13507  IFS=$as_save_IFS
13508  test -z "$as_dir" && as_dir=.
13509    for ac_exec_ext in '' $ac_executable_extensions; do
13510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511    ac_cv_prog_PTHREAD_CC="$ac_prog"
13512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513    break 2
13514  fi
13515done
13516  done
13517IFS=$as_save_IFS
13518
13519fi
13520fi
13521PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13522if test -n "$PTHREAD_CC"; then
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13524$as_echo "$PTHREAD_CC" >&6; }
13525else
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527$as_echo "no" >&6; }
13528fi
13529
13530
13531  test -n "$PTHREAD_CC" && break
13532done
13533test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
13534
13535        else
13536          PTHREAD_CC=$CC
13537        fi
13538else
13539        PTHREAD_CC="$CC"
13540fi
13541
13542
13543
13544
13545
13546
13547# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13548if test x"$acx_pthread_ok" = xyes; then
13549
13550    LIBS="$LIBS $PTHREAD_LIBS"
13551    XIPH_CFLAGS="$XIPH_CFLAGS $PTHREAD_CFLAGS $PTHREAD_CPPFLAGS"
13552    CC="$PTHREAD_CC"
13553    SHOUT_THREADSAFE="1"
13554
13555        :
13556else
13557        acx_pthread_ok=no
13558
13559fi
13560ac_ext=c
13561ac_cpp='$CPP $CPPFLAGS'
13562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13564ac_compiler_gnu=$ac_cv_c_compiler_gnu
13565
13566
13567fi
13568
13569 if test "$SHOUT_THREADSAFE" = "1"; then
13570  HAVE_THREAD_TRUE=
13571  HAVE_THREAD_FALSE='#'
13572else
13573  HAVE_THREAD_TRUE='#'
13574  HAVE_THREAD_FALSE=
13575fi
13576
13577if test "$SHOUT_THREADSAFE" != "1"
13578then
13579
13580$as_echo "#define NO_THREAD 1" >>confdefs.h
13581
13582fi
13583
13584SHOUT_REQUIRES="ogg"
13585
13586
13587
13588
13589
13590
13591
13592
13593if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13594	if test -n "$ac_tool_prefix"; then
13595  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13596set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13598$as_echo_n "checking for $ac_word... " >&6; }
13599if ${ac_cv_path_PKG_CONFIG+:} false; then :
13600  $as_echo_n "(cached) " >&6
13601else
13602  case $PKG_CONFIG in
13603  [\\/]* | ?:[\\/]*)
13604  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13605  ;;
13606  *)
13607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608for as_dir in $PATH
13609do
13610  IFS=$as_save_IFS
13611  test -z "$as_dir" && as_dir=.
13612    for ac_exec_ext in '' $ac_executable_extensions; do
13613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13614    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616    break 2
13617  fi
13618done
13619  done
13620IFS=$as_save_IFS
13621
13622  ;;
13623esac
13624fi
13625PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13626if test -n "$PKG_CONFIG"; then
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13628$as_echo "$PKG_CONFIG" >&6; }
13629else
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
13632fi
13633
13634
13635fi
13636if test -z "$ac_cv_path_PKG_CONFIG"; then
13637  ac_pt_PKG_CONFIG=$PKG_CONFIG
13638  # Extract the first word of "pkg-config", so it can be a program name with args.
13639set dummy pkg-config; ac_word=$2
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13641$as_echo_n "checking for $ac_word... " >&6; }
13642if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  case $ac_pt_PKG_CONFIG in
13646  [\\/]* | ?:[\\/]*)
13647  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13648  ;;
13649  *)
13650  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653  IFS=$as_save_IFS
13654  test -z "$as_dir" && as_dir=.
13655    for ac_exec_ext in '' $ac_executable_extensions; do
13656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13657    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13659    break 2
13660  fi
13661done
13662  done
13663IFS=$as_save_IFS
13664
13665  ;;
13666esac
13667fi
13668ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13669if test -n "$ac_pt_PKG_CONFIG"; then
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13671$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13672else
13673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674$as_echo "no" >&6; }
13675fi
13676
13677  if test "x$ac_pt_PKG_CONFIG" = x; then
13678    PKG_CONFIG=""
13679  else
13680    case $cross_compiling:$ac_tool_warned in
13681yes:)
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13684ac_tool_warned=yes ;;
13685esac
13686    PKG_CONFIG=$ac_pt_PKG_CONFIG
13687  fi
13688else
13689  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13690fi
13691
13692fi
13693if test -n "$PKG_CONFIG"; then
13694	_pkg_min_version=0.9.0
13695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13696$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13697	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13699$as_echo "yes" >&6; }
13700	else
13701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703		PKG_CONFIG=""
13704	fi
13705fi
13706
13707
13708# Check whether --with-ogg was given.
13709if test "${with_ogg+set}" = set; then :
13710  withval=$with_ogg; ogg_prefix="$withval"
13711else
13712  ogg_prefix="$OGG_PREFIX"
13713
13714fi
13715
13716if test "x$ogg_prefix" = "x" -o "x$ogg_prefix" = "xyes"; then
13717    if test "x$prefix" = "xNONE"; then
13718        ogg_prefix=/usr/local
13719    else
13720        ogg_prefix="$prefix"
13721    fi
13722fi
13723
13724
13725xt_warning=no
13726if test x"$GCC" = "xyes"
13727then
13728  save_cflags="$CFLAGS"
13729  CFLAGS="-Werror -I$ogg_prefix/include"
13730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731/* end confdefs.h.  */
13732
13733int
13734main ()
13735{
13736
13737  ;
13738  return 0;
13739}
13740_ACEOF
13741if ac_fn_c_try_compile "$LINENO"; then :
13742
13743else
13744  xt_warning=yes
13745fi
13746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747  CFLAGS="$save_cflags"
13748fi
13749if test "$xt_warning" = "yes"
13750then
13751  :
13752else
13753   OGG_CFLAGS="-I$ogg_prefix/include"
13754      OGG_LDFLAGS="-L$ogg_prefix/lib"
13755
13756fi
13757
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg" >&5
13759$as_echo_n "checking for libogg... " >&6; }
13760if ${xt_cv_lib_ogg+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  OGG_LIBS="-logg"
13764
13765#
13766# check if the installed Ogg is sufficiently new.
13767#
13768ac_save_CFLAGS="$CFLAGS"
13769ac_save_LIBS="$LIBS"
13770ac_save_LDFLAGS="$LDFLAGS"
13771CFLAGS="$CFLAGS $OGG_CFLAGS"
13772LIBS="$LIBS $OGG_LIBS"
13773LDFLAGS="$LDFLAGS $OGG_LDFLAGS"
13774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776
13777/* Override any GCC internal prototype to avoid an error.
13778   Use char because int might match the return type of a GCC
13779   builtin and then its argument prototype would still apply.  */
13780#ifdef __cplusplus
13781extern "C"
13782#endif
13783char ogg_sync_init ();
13784int
13785main ()
13786{
13787return ogg_sync_init ();
13788  ;
13789  return 0;
13790}
13791_ACEOF
13792if ac_fn_c_try_link "$LINENO"; then :
13793   xt_cv_lib_ogg=ok
13794else
13795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796/* end confdefs.h.  */
13797#include <ogg/ogg.h>
13798int
13799main ()
13800{
13801
13802  ;
13803  return 0;
13804}
13805_ACEOF
13806if ac_fn_c_try_link "$LINENO"; then :
13807   xt_cv_lib_ogg="pre v1.0, needs updating"
13808else
13809   xt_cv_lib_ogg="not found"
13810fi
13811rm -f core conftest.err conftest.$ac_objext \
13812    conftest$ac_exeext conftest.$ac_ext
13813
13814fi
13815rm -f core conftest.err conftest.$ac_objext \
13816    conftest$ac_exeext conftest.$ac_ext
13817CFLAGS="$ac_save_CFLAGS"
13818LDFLAGS="$ac_save_LDFLAGS"
13819LIBS="$ac_save_LIBS"
13820
13821fi
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_cv_lib_ogg" >&5
13823$as_echo "$xt_cv_lib_ogg" >&6; }
13824if test "x$xt_cv_lib_ogg" = "xok"; then
13825
13826
13827$as_echo "#define HAVE_OGG 1" >>confdefs.h
13828
13829else
13830    OGG_LIBS=""
13831    OGG_CFLAGS=""
13832    OGG_LDFLAGS=""
13833
13834fi
13835
13836
13837
13838
13839
13840pkg_failed=no
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VORBIS" >&5
13842$as_echo_n "checking for VORBIS... " >&6; }
13843
13844if test -n "$VORBIS_CFLAGS"; then
13845    pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
13846 elif test -n "$PKG_CONFIG"; then
13847    if test -n "$PKG_CONFIG" && \
13848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis\""; } >&5
13849  ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5
13850  ac_status=$?
13851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852  test $ac_status = 0; }; then
13853  pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis" 2>/dev/null`
13854		      test "x$?" != "x0" && pkg_failed=yes
13855else
13856  pkg_failed=yes
13857fi
13858 else
13859    pkg_failed=untried
13860fi
13861if test -n "$VORBIS_LIBS"; then
13862    pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
13863 elif test -n "$PKG_CONFIG"; then
13864    if test -n "$PKG_CONFIG" && \
13865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis\""; } >&5
13866  ($PKG_CONFIG --exists --print-errors "vorbis") 2>&5
13867  ac_status=$?
13868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869  test $ac_status = 0; }; then
13870  pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis" 2>/dev/null`
13871		      test "x$?" != "x0" && pkg_failed=yes
13872else
13873  pkg_failed=yes
13874fi
13875 else
13876    pkg_failed=untried
13877fi
13878
13879
13880
13881if test $pkg_failed = yes; then
13882   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883$as_echo "no" >&6; }
13884
13885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13886        _pkg_short_errors_supported=yes
13887else
13888        _pkg_short_errors_supported=no
13889fi
13890        if test $_pkg_short_errors_supported = yes; then
13891	        VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbis" 2>&1`
13892        else
13893	        VORBIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbis" 2>&1`
13894        fi
13895	# Put the nasty error message in config.log where it belongs
13896	echo "$VORBIS_PKG_ERRORS" >&5
13897
13898
13899
13900
13901
13902
13903# Check whether --with-vorbis was given.
13904if test "${with_vorbis+set}" = set; then :
13905  withval=$with_vorbis; vorbis_prefix="$withval"
13906else
13907  vorbis_prefix="$VORBIS_PREFIX"
13908
13909fi
13910
13911if test "x$vorbis_prefix" = "x" -o "x$vorbis_prefix" = "xyes"; then
13912    if test "x$prefix" = "xNONE"; then
13913        vorbis_prefix="/usr/local"
13914    else
13915        vorbis_prefix="$prefix"
13916    fi
13917fi
13918
13919VORBIS_CFLAGS="$OGG_CFLAGS"
13920VORBIS_LDFLAGS="$OGG_LDFLAGS"
13921if test "x$vorbis_prefix" != "x$ogg_prefix"; then
13922
13923xt_warning=no
13924if test x"$GCC" = "xyes"
13925then
13926  save_cflags="$CFLAGS"
13927  CFLAGS="-Werror -I"$vorbis_prefix/include""
13928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930
13931int
13932main ()
13933{
13934
13935  ;
13936  return 0;
13937}
13938_ACEOF
13939if ac_fn_c_try_compile "$LINENO"; then :
13940
13941else
13942  xt_warning=yes
13943fi
13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945  CFLAGS="$save_cflags"
13946fi
13947if test "$xt_warning" = "yes"
13948then
13949  :
13950else
13951  VORBIS_CFLAGS="$VORBIS_CFLAGS -I$vorbis_prefix/include"
13952            VORBIS_LDFLAGS="-L$vorbis_prefix/lib $VORBIS_LDFLAGS"
13953
13954fi
13955
13956fi
13957
13958VORBIS_LIBS="-lvorbis"
13959VORBISFILE_LIBS="-lvorbisfile"
13960VORBISENC_LIBS="-lvorbisenc"
13961
13962xt_save_LIBS="$LIBS"
13963xt_save_LDFLAGS="$LDFLAGS"
13964xt_save_CPPFLAGS="$CPPFLAGS"
13965CPPFLAGS="$CPPFLAGS $VORBIS_CFLAGS"
13966LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS"
13967LIBS="$LIBS $VORBIS_LIBS"
13968xt_lib_vorbis="not found"
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5
13970$as_echo_n "checking for libvorbis... " >&6; }
13971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h.  */
13973
13974/* Override any GCC internal prototype to avoid an error.
13975   Use char because int might match the return type of a GCC
13976   builtin and then its argument prototype would still apply.  */
13977#ifdef __cplusplus
13978extern "C"
13979#endif
13980char ogg_stream_init ();
13981int
13982main ()
13983{
13984return ogg_stream_init ();
13985  ;
13986  return 0;
13987}
13988_ACEOF
13989if ac_fn_c_try_link "$LINENO"; then :
13990  xt_lib_vorbis=ok
13991else
13992  LIBS="$LIBS $OGG_LIBS -lm"
13993        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h.  */
13995
13996/* Override any GCC internal prototype to avoid an error.
13997   Use char because int might match the return type of a GCC
13998   builtin and then its argument prototype would still apply.  */
13999#ifdef __cplusplus
14000extern "C"
14001#endif
14002char vorbis_info_init ();
14003int
14004main ()
14005{
14006return vorbis_info_init ();
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_link "$LINENO"; then :
14012  xt_lib_vorbis=ok
14013            VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm"
14014fi
14015rm -f core conftest.err conftest.$ac_objext \
14016    conftest$ac_exeext conftest.$ac_ext
14017
14018fi
14019rm -f core conftest.err conftest.$ac_objext \
14020    conftest$ac_exeext conftest.$ac_ext
14021
14022if test "x$xt_lib_vorbis" = "xok"; then
14023#
14024# Now check if the installed Vorbis is sufficiently new.
14025#
14026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027/* end confdefs.h.  */
14028
14029#include <vorbis/codec.h>
14030#include <vorbis/vorbisenc.h>
14031
14032int
14033main ()
14034{
14035
14036struct ovectl_ratemanage_arg a;
14037
14038  ;
14039  return 0;
14040}
14041_ACEOF
14042if ac_fn_c_try_compile "$LINENO"; then :
14043
14044else
14045  xt_lib_vorbis="old version found"
14046fi
14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5
14049$as_echo "$xt_lib_vorbis" >&6; }
14050fi
14051CPPFLAGS="$xt_save_CPPFLAGS"
14052LIBS="$xt_save_LIBS"
14053LDFLAGS="$xt_save_LDFLAGS"
14054
14055if test "x$xt_lib_vorbis" = "xok"; then
14056    :
14057else
14058    VORBIS_CFLAGS=""
14059    VORBIS_LDFLAGS=""
14060    VORBIS_LIBS=""
14061    VORBISFILE_LIBS=""
14062    VORBISENC_LIBS=""
14063    as_fn_error $? "required Ogg Vorbis library not found" "$LINENO" 5
14064fi
14065
14066
14067
14068
14069
14070
14071
14072elif test $pkg_failed = untried; then
14073     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074$as_echo "no" >&6; }
14075
14076
14077
14078
14079
14080# Check whether --with-vorbis was given.
14081if test "${with_vorbis+set}" = set; then :
14082  withval=$with_vorbis; vorbis_prefix="$withval"
14083else
14084  vorbis_prefix="$VORBIS_PREFIX"
14085
14086fi
14087
14088if test "x$vorbis_prefix" = "x" -o "x$vorbis_prefix" = "xyes"; then
14089    if test "x$prefix" = "xNONE"; then
14090        vorbis_prefix="/usr/local"
14091    else
14092        vorbis_prefix="$prefix"
14093    fi
14094fi
14095
14096VORBIS_CFLAGS="$OGG_CFLAGS"
14097VORBIS_LDFLAGS="$OGG_LDFLAGS"
14098if test "x$vorbis_prefix" != "x$ogg_prefix"; then
14099
14100xt_warning=no
14101if test x"$GCC" = "xyes"
14102then
14103  save_cflags="$CFLAGS"
14104  CFLAGS="-Werror -I"$vorbis_prefix/include""
14105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h.  */
14107
14108int
14109main ()
14110{
14111
14112  ;
14113  return 0;
14114}
14115_ACEOF
14116if ac_fn_c_try_compile "$LINENO"; then :
14117
14118else
14119  xt_warning=yes
14120fi
14121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122  CFLAGS="$save_cflags"
14123fi
14124if test "$xt_warning" = "yes"
14125then
14126  :
14127else
14128  VORBIS_CFLAGS="$VORBIS_CFLAGS -I$vorbis_prefix/include"
14129            VORBIS_LDFLAGS="-L$vorbis_prefix/lib $VORBIS_LDFLAGS"
14130
14131fi
14132
14133fi
14134
14135VORBIS_LIBS="-lvorbis"
14136VORBISFILE_LIBS="-lvorbisfile"
14137VORBISENC_LIBS="-lvorbisenc"
14138
14139xt_save_LIBS="$LIBS"
14140xt_save_LDFLAGS="$LDFLAGS"
14141xt_save_CPPFLAGS="$CPPFLAGS"
14142CPPFLAGS="$CPPFLAGS $VORBIS_CFLAGS"
14143LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS"
14144LIBS="$LIBS $VORBIS_LIBS"
14145xt_lib_vorbis="not found"
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5
14147$as_echo_n "checking for libvorbis... " >&6; }
14148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149/* end confdefs.h.  */
14150
14151/* Override any GCC internal prototype to avoid an error.
14152   Use char because int might match the return type of a GCC
14153   builtin and then its argument prototype would still apply.  */
14154#ifdef __cplusplus
14155extern "C"
14156#endif
14157char ogg_stream_init ();
14158int
14159main ()
14160{
14161return ogg_stream_init ();
14162  ;
14163  return 0;
14164}
14165_ACEOF
14166if ac_fn_c_try_link "$LINENO"; then :
14167  xt_lib_vorbis=ok
14168else
14169  LIBS="$LIBS $OGG_LIBS -lm"
14170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171/* end confdefs.h.  */
14172
14173/* Override any GCC internal prototype to avoid an error.
14174   Use char because int might match the return type of a GCC
14175   builtin and then its argument prototype would still apply.  */
14176#ifdef __cplusplus
14177extern "C"
14178#endif
14179char vorbis_info_init ();
14180int
14181main ()
14182{
14183return vorbis_info_init ();
14184  ;
14185  return 0;
14186}
14187_ACEOF
14188if ac_fn_c_try_link "$LINENO"; then :
14189  xt_lib_vorbis=ok
14190            VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm"
14191fi
14192rm -f core conftest.err conftest.$ac_objext \
14193    conftest$ac_exeext conftest.$ac_ext
14194
14195fi
14196rm -f core conftest.err conftest.$ac_objext \
14197    conftest$ac_exeext conftest.$ac_ext
14198
14199if test "x$xt_lib_vorbis" = "xok"; then
14200#
14201# Now check if the installed Vorbis is sufficiently new.
14202#
14203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205
14206#include <vorbis/codec.h>
14207#include <vorbis/vorbisenc.h>
14208
14209int
14210main ()
14211{
14212
14213struct ovectl_ratemanage_arg a;
14214
14215  ;
14216  return 0;
14217}
14218_ACEOF
14219if ac_fn_c_try_compile "$LINENO"; then :
14220
14221else
14222  xt_lib_vorbis="old version found"
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5
14226$as_echo "$xt_lib_vorbis" >&6; }
14227fi
14228CPPFLAGS="$xt_save_CPPFLAGS"
14229LIBS="$xt_save_LIBS"
14230LDFLAGS="$xt_save_LDFLAGS"
14231
14232if test "x$xt_lib_vorbis" = "xok"; then
14233    :
14234else
14235    VORBIS_CFLAGS=""
14236    VORBIS_LDFLAGS=""
14237    VORBIS_LIBS=""
14238    VORBISFILE_LIBS=""
14239    VORBISENC_LIBS=""
14240    as_fn_error $? "required Ogg Vorbis library not found" "$LINENO" 5
14241fi
14242
14243
14244
14245
14246
14247
14248
14249else
14250	VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
14251	VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
14252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14253$as_echo "yes" >&6; }
14254
14255    HAVE_VORBIS="yes"
14256    SHOUT_REQUIRES="$SHOUT_REQUIRES, vorbis"
14257
14258fi
14259VORBIS_LIBS="$VORBIS_LDFLAGS $VORBIS_LIBS"
14260XIPH_CFLAGS="$XIPH_CFLAGS $VORBIS_CFLAGS"
14261
14262# Check whether --enable-theora was given.
14263if test "${enable_theora+set}" = set; then :
14264  enableval=$enable_theora;
14265fi
14266
14267
14268if test "x$enable_theora" != "xno"; then
14269
14270pkg_failed=no
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for THEORA" >&5
14272$as_echo_n "checking for THEORA... " >&6; }
14273
14274if test -n "$THEORA_CFLAGS"; then
14275    pkg_cv_THEORA_CFLAGS="$THEORA_CFLAGS"
14276 elif test -n "$PKG_CONFIG"; then
14277    if test -n "$PKG_CONFIG" && \
14278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theora\""; } >&5
14279  ($PKG_CONFIG --exists --print-errors "theora") 2>&5
14280  ac_status=$?
14281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14282  test $ac_status = 0; }; then
14283  pkg_cv_THEORA_CFLAGS=`$PKG_CONFIG --cflags "theora" 2>/dev/null`
14284		      test "x$?" != "x0" && pkg_failed=yes
14285else
14286  pkg_failed=yes
14287fi
14288 else
14289    pkg_failed=untried
14290fi
14291if test -n "$THEORA_LIBS"; then
14292    pkg_cv_THEORA_LIBS="$THEORA_LIBS"
14293 elif test -n "$PKG_CONFIG"; then
14294    if test -n "$PKG_CONFIG" && \
14295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theora\""; } >&5
14296  ($PKG_CONFIG --exists --print-errors "theora") 2>&5
14297  ac_status=$?
14298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299  test $ac_status = 0; }; then
14300  pkg_cv_THEORA_LIBS=`$PKG_CONFIG --libs "theora" 2>/dev/null`
14301		      test "x$?" != "x0" && pkg_failed=yes
14302else
14303  pkg_failed=yes
14304fi
14305 else
14306    pkg_failed=untried
14307fi
14308
14309
14310
14311if test $pkg_failed = yes; then
14312   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314
14315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14316        _pkg_short_errors_supported=yes
14317else
14318        _pkg_short_errors_supported=no
14319fi
14320        if test $_pkg_short_errors_supported = yes; then
14321	        THEORA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "theora" 2>&1`
14322        else
14323	        THEORA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "theora" 2>&1`
14324        fi
14325	# Put the nasty error message in config.log where it belongs
14326	echo "$THEORA_PKG_ERRORS" >&5
14327
14328
14329
14330
14331
14332
14333
14334# Check whether --with-theora was given.
14335if test "${with_theora+set}" = set; then :
14336  withval=$with_theora; theora_prefix="$withval"
14337else
14338  theora_prefix="$THEORA_PREFIX"
14339
14340fi
14341
14342
14343if test "x$with_theora" = "xno"
14344then
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Theora support disabled by request" >&5
14346$as_echo "Theora support disabled by request" >&6; }
14347else
14348  if test "x$theora_prefix" = "x" -o "x$theora_prefix" = "xyes"; then
14349    if test "x$prefix" = "xNONE"; then
14350        theora_prefix="/usr/local"
14351    else
14352        theora_prefix="$prefix"
14353    fi
14354  fi
14355
14356  THEORA_CFLAGS="$OGG_CFLAGS"
14357  THEORA_LDFLAGS="$OGG_LDFLAGS"
14358  if test "x$theora_prefix" != "x$ogg_prefix"; then
14359
14360xt_warning=no
14361if test x"$GCC" = "xyes"
14362then
14363  save_cflags="$CFLAGS"
14364  CFLAGS="-Werror -I"$theora_prefix/include""
14365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366/* end confdefs.h.  */
14367
14368int
14369main ()
14370{
14371
14372  ;
14373  return 0;
14374}
14375_ACEOF
14376if ac_fn_c_try_compile "$LINENO"; then :
14377
14378else
14379  xt_warning=yes
14380fi
14381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382  CFLAGS="$save_cflags"
14383fi
14384if test "$xt_warning" = "yes"
14385then
14386  :
14387else
14388  THEORA_CFLAGS="$THEORA_CFLAGS -I$theora_prefix/include"
14389              THEORA_LDFLAGS="-L$theora_prefix/lib $THEORA_LDFLAGS"
14390
14391fi
14392
14393  fi
14394
14395  THEORA_LIBS="-ltheora -logg"
14396
14397  ac_save_LIBS="$LIBS"
14398  ac_save_LDFLAGS="$LDFLAGS"
14399  LDFLAGS="$LDFLAGS $THEORA_LDFLAGS"
14400  LIBS="$LIBS $THEORA_LIBS"
14401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora" >&5
14402$as_echo_n "checking for libtheora... " >&6; }
14403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h.  */
14405
14406/* Override any GCC internal prototype to avoid an error.
14407   Use char because int might match the return type of a GCC
14408   builtin and then its argument prototype would still apply.  */
14409#ifdef __cplusplus
14410extern "C"
14411#endif
14412char theora_decode_header ();
14413int
14414main ()
14415{
14416return theora_decode_header ();
14417  ;
14418  return 0;
14419}
14420_ACEOF
14421if ac_fn_c_try_link "$LINENO"; then :
14422  xt_have_theora="yes"
14423else
14424  xt_have_theora="Not found"
14425fi
14426rm -f core conftest.err conftest.$ac_objext \
14427    conftest$ac_exeext conftest.$ac_ext
14428  if test "x$xt_have_theora" = "xyes"
14429  then
14430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431/* end confdefs.h.  */
14432
14433/* Override any GCC internal prototype to avoid an error.
14434   Use char because int might match the return type of a GCC
14435   builtin and then its argument prototype would still apply.  */
14436#ifdef __cplusplus
14437extern "C"
14438#endif
14439char theora_packet_isheader ();
14440int
14441main ()
14442{
14443return theora_packet_isheader ();
14444  ;
14445  return 0;
14446}
14447_ACEOF
14448if ac_fn_c_try_link "$LINENO"; then :
14449  xt_have_theora="yes"
14450else
14451  xt_have_theora="newer version required"
14452fi
14453rm -f core conftest.err conftest.$ac_objext \
14454    conftest$ac_exeext conftest.$ac_ext
14455  fi
14456
14457  LIBS="$ac_save_LIBS"
14458  LDFLAGS="$ac_save_LDFLAGS"
14459
14460  if test "x$xt_have_theora" = "xyes"
14461  then
14462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14463$as_echo "ok" >&6; }
14464
14465$as_echo "#define HAVE_THEORA 1" >>confdefs.h
14466
14467
14468  else
14469    THEORA_CFLAGS=""
14470    THEORA_LDFLAGS=""
14471    THEORA_LIBS=""
14472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_have_theora" >&5
14473$as_echo "$xt_have_theora" >&6; }
14474    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Theora library not found, disabling" >&5
14475$as_echo "$as_me: WARNING: Theora library not found, disabling" >&2;}
14476  fi
14477fi
14478
14479
14480
14481
14482
14483elif test $pkg_failed = untried; then
14484     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485$as_echo "no" >&6; }
14486
14487
14488
14489
14490
14491
14492# Check whether --with-theora was given.
14493if test "${with_theora+set}" = set; then :
14494  withval=$with_theora; theora_prefix="$withval"
14495else
14496  theora_prefix="$THEORA_PREFIX"
14497
14498fi
14499
14500
14501if test "x$with_theora" = "xno"
14502then
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Theora support disabled by request" >&5
14504$as_echo "Theora support disabled by request" >&6; }
14505else
14506  if test "x$theora_prefix" = "x" -o "x$theora_prefix" = "xyes"; then
14507    if test "x$prefix" = "xNONE"; then
14508        theora_prefix="/usr/local"
14509    else
14510        theora_prefix="$prefix"
14511    fi
14512  fi
14513
14514  THEORA_CFLAGS="$OGG_CFLAGS"
14515  THEORA_LDFLAGS="$OGG_LDFLAGS"
14516  if test "x$theora_prefix" != "x$ogg_prefix"; then
14517
14518xt_warning=no
14519if test x"$GCC" = "xyes"
14520then
14521  save_cflags="$CFLAGS"
14522  CFLAGS="-Werror -I"$theora_prefix/include""
14523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524/* end confdefs.h.  */
14525
14526int
14527main ()
14528{
14529
14530  ;
14531  return 0;
14532}
14533_ACEOF
14534if ac_fn_c_try_compile "$LINENO"; then :
14535
14536else
14537  xt_warning=yes
14538fi
14539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540  CFLAGS="$save_cflags"
14541fi
14542if test "$xt_warning" = "yes"
14543then
14544  :
14545else
14546  THEORA_CFLAGS="$THEORA_CFLAGS -I$theora_prefix/include"
14547              THEORA_LDFLAGS="-L$theora_prefix/lib $THEORA_LDFLAGS"
14548
14549fi
14550
14551  fi
14552
14553  THEORA_LIBS="-ltheora -logg"
14554
14555  ac_save_LIBS="$LIBS"
14556  ac_save_LDFLAGS="$LDFLAGS"
14557  LDFLAGS="$LDFLAGS $THEORA_LDFLAGS"
14558  LIBS="$LIBS $THEORA_LIBS"
14559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora" >&5
14560$as_echo_n "checking for libtheora... " >&6; }
14561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563
14564/* Override any GCC internal prototype to avoid an error.
14565   Use char because int might match the return type of a GCC
14566   builtin and then its argument prototype would still apply.  */
14567#ifdef __cplusplus
14568extern "C"
14569#endif
14570char theora_decode_header ();
14571int
14572main ()
14573{
14574return theora_decode_header ();
14575  ;
14576  return 0;
14577}
14578_ACEOF
14579if ac_fn_c_try_link "$LINENO"; then :
14580  xt_have_theora="yes"
14581else
14582  xt_have_theora="Not found"
14583fi
14584rm -f core conftest.err conftest.$ac_objext \
14585    conftest$ac_exeext conftest.$ac_ext
14586  if test "x$xt_have_theora" = "xyes"
14587  then
14588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590
14591/* Override any GCC internal prototype to avoid an error.
14592   Use char because int might match the return type of a GCC
14593   builtin and then its argument prototype would still apply.  */
14594#ifdef __cplusplus
14595extern "C"
14596#endif
14597char theora_packet_isheader ();
14598int
14599main ()
14600{
14601return theora_packet_isheader ();
14602  ;
14603  return 0;
14604}
14605_ACEOF
14606if ac_fn_c_try_link "$LINENO"; then :
14607  xt_have_theora="yes"
14608else
14609  xt_have_theora="newer version required"
14610fi
14611rm -f core conftest.err conftest.$ac_objext \
14612    conftest$ac_exeext conftest.$ac_ext
14613  fi
14614
14615  LIBS="$ac_save_LIBS"
14616  LDFLAGS="$ac_save_LDFLAGS"
14617
14618  if test "x$xt_have_theora" = "xyes"
14619  then
14620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14621$as_echo "ok" >&6; }
14622
14623$as_echo "#define HAVE_THEORA 1" >>confdefs.h
14624
14625
14626  else
14627    THEORA_CFLAGS=""
14628    THEORA_LDFLAGS=""
14629    THEORA_LIBS=""
14630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_have_theora" >&5
14631$as_echo "$xt_have_theora" >&6; }
14632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Theora library not found, disabling" >&5
14633$as_echo "$as_me: WARNING: Theora library not found, disabling" >&2;}
14634  fi
14635fi
14636
14637
14638
14639
14640
14641else
14642	THEORA_CFLAGS=$pkg_cv_THEORA_CFLAGS
14643	THEORA_LIBS=$pkg_cv_THEORA_LIBS
14644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645$as_echo "yes" >&6; }
14646
14647    HAVE_THEORA="yes"
14648    SHOUT_REQUIRES="$SHOUT_REQUIRES, theora"
14649
14650fi
14651fi
14652
14653for arg in $THEORA_CFLAGS
14654do
14655  if { cat <<EOF
14656 $XIPH_CPPFLAGS x
14657EOF
14658} | $FGREP -v -e " $arg " > /dev/null
14659  then
14660    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
14661  fi
14662done
14663
14664
14665xt_compare="$XIPH_LIBS"
14666xt_filtered=""
14667for arg in $THEORA LDFLAGS $THEORA_LIBS
14668do
14669  if { cat <<EOF
14670 $xt_compare x
14671EOF
14672} | $FGREP -v -e " $arg " > /dev/null
14673  then
14674    xt_compare="$arg $xt_compare"
14675    xt_filtered="$xt_filtered $arg"
14676  fi
14677done
14678XIPH_LIBS="$xt_filtered $XIPH_LIBS"
14679
14680 if test -n "$THEORA_LIBS"; then
14681  HAVE_THEORA_TRUE=
14682  HAVE_THEORA_FALSE='#'
14683else
14684  HAVE_THEORA_TRUE='#'
14685  HAVE_THEORA_FALSE=
14686fi
14687
14688if test -n "$THEORA_LIBS"
14689then
14690
14691$as_echo "#define HAVE_THEORA 1" >>confdefs.h
14692
14693fi
14694
14695# Check whether --enable-speex was given.
14696if test "${enable_speex+set}" = set; then :
14697  enableval=$enable_speex;
14698fi
14699
14700
14701if test "x$enable_speex" != "xno"; then
14702
14703pkg_failed=no
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPEEX" >&5
14705$as_echo_n "checking for SPEEX... " >&6; }
14706
14707if test -n "$SPEEX_CFLAGS"; then
14708    pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
14709 elif test -n "$PKG_CONFIG"; then
14710    if test -n "$PKG_CONFIG" && \
14711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex\""; } >&5
14712  ($PKG_CONFIG --exists --print-errors "speex") 2>&5
14713  ac_status=$?
14714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14715  test $ac_status = 0; }; then
14716  pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex" 2>/dev/null`
14717		      test "x$?" != "x0" && pkg_failed=yes
14718else
14719  pkg_failed=yes
14720fi
14721 else
14722    pkg_failed=untried
14723fi
14724if test -n "$SPEEX_LIBS"; then
14725    pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
14726 elif test -n "$PKG_CONFIG"; then
14727    if test -n "$PKG_CONFIG" && \
14728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex\""; } >&5
14729  ($PKG_CONFIG --exists --print-errors "speex") 2>&5
14730  ac_status=$?
14731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732  test $ac_status = 0; }; then
14733  pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex" 2>/dev/null`
14734		      test "x$?" != "x0" && pkg_failed=yes
14735else
14736  pkg_failed=yes
14737fi
14738 else
14739    pkg_failed=untried
14740fi
14741
14742
14743
14744if test $pkg_failed = yes; then
14745   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746$as_echo "no" >&6; }
14747
14748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14749        _pkg_short_errors_supported=yes
14750else
14751        _pkg_short_errors_supported=no
14752fi
14753        if test $_pkg_short_errors_supported = yes; then
14754	        SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "speex" 2>&1`
14755        else
14756	        SPEEX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "speex" 2>&1`
14757        fi
14758	# Put the nasty error message in config.log where it belongs
14759	echo "$SPEEX_PKG_ERRORS" >&5
14760
14761
14762
14763
14764
14765
14766
14767# Check whether --with-speex was given.
14768if test "${with_speex+set}" = set; then :
14769  withval=$with_speex; speex_prefix="$withval"
14770else
14771  speex_prefix="$SPEEX_PREFIX"
14772
14773fi
14774
14775if test "x$with_speex" = "xno"
14776then
14777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Speex support disabled by request" >&5
14778$as_echo "Speex support disabled by request" >&6; }
14779else
14780  if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then
14781      if test "x$prefix" = "xNONE"; then
14782          speex_prefix="/usr/local"
14783      else
14784          speex_prefix="$prefix"
14785      fi
14786  fi
14787
14788  SPEEX_CFLAGS="$OGG_CFLAGS"
14789  SPEEX_LDFLAGS="$OGG_LDFLAGS"
14790  if test "x$speex_prefix" != "x$ogg_prefix"; then
14791
14792xt_warning=no
14793if test x"$GCC" = "xyes"
14794then
14795  save_cflags="$CFLAGS"
14796  CFLAGS="-Werror -I"$speex_prefix/include""
14797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799
14800int
14801main ()
14802{
14803
14804  ;
14805  return 0;
14806}
14807_ACEOF
14808if ac_fn_c_try_compile "$LINENO"; then :
14809
14810else
14811  xt_warning=yes
14812fi
14813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814  CFLAGS="$save_cflags"
14815fi
14816if test "$xt_warning" = "yes"
14817then
14818  :
14819else
14820  SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include"
14821              SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS"
14822
14823fi
14824
14825  fi
14826
14827  SPEEX_LIBS="-lspeex"
14828
14829  xt_save_LIBS="$LIBS"
14830  xt_save_LDFLAGS="$LDFLAGS"
14831  LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS"
14832  LIBS="$LIBS $SPEEX_LIBS"
14833  xt_have_speex="yes"
14834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex" >&5
14835$as_echo_n "checking for libspeex... " >&6; }
14836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h.  */
14838
14839/* Override any GCC internal prototype to avoid an error.
14840   Use char because int might match the return type of a GCC
14841   builtin and then its argument prototype would still apply.  */
14842#ifdef __cplusplus
14843extern "C"
14844#endif
14845char ogg_stream_init ();
14846int
14847main ()
14848{
14849return ogg_stream_init ();
14850  ;
14851  return 0;
14852}
14853_ACEOF
14854if ac_fn_c_try_link "$LINENO"; then :
14855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14856$as_echo "ok" >&6; }
14857else
14858  LIBS="$LIBS $OGG_LIBS"
14859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861
14862/* Override any GCC internal prototype to avoid an error.
14863   Use char because int might match the return type of a GCC
14864   builtin and then its argument prototype would still apply.  */
14865#ifdef __cplusplus
14866extern "C"
14867#endif
14868char ogg_stream_init ();
14869int
14870main ()
14871{
14872return ogg_stream_init ();
14873  ;
14874  return 0;
14875}
14876_ACEOF
14877if ac_fn_c_try_link "$LINENO"; then :
14878  SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS"
14879else
14880  xt_have_speex="no"
14881fi
14882rm -f core conftest.err conftest.$ac_objext \
14883    conftest$ac_exeext conftest.$ac_ext
14884
14885fi
14886rm -f core conftest.err conftest.$ac_objext \
14887    conftest$ac_exeext conftest.$ac_ext
14888  if test "x$xt_have_speex" = "xyes"
14889  then
14890      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891/* end confdefs.h.  */
14892#include <speex/speex_header.h>
14893int
14894main ()
14895{
14896void *p = speex_packet_to_header;
14897  ;
14898  return 0;
14899}
14900_ACEOF
14901if ac_fn_c_try_link "$LINENO"; then :
14902
14903else
14904  xt_have_speex="no"
14905fi
14906rm -f core conftest.err conftest.$ac_objext \
14907    conftest$ac_exeext conftest.$ac_ext
14908  fi
14909
14910  LIBS="$xt_save_LIBS"
14911  LDFLAGS="$xt_save_LDFLAGS"
14912
14913  if test "x$xt_have_speex" = "xyes"
14914  then
14915      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14916$as_echo "ok" >&6; }
14917
14918$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
14919
14920
14921  else
14922      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Speex library not found, disabling" >&5
14923$as_echo "$as_me: WARNING: Speex library not found, disabling" >&2;}
14924      SPEEX_CFLAGS=""
14925      SPEEX_LDFLAGS=""
14926      SPEEX_LIBS=""
14927  fi
14928
14929
14930
14931fi
14932
14933
14934elif test $pkg_failed = untried; then
14935     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936$as_echo "no" >&6; }
14937
14938
14939
14940
14941
14942
14943# Check whether --with-speex was given.
14944if test "${with_speex+set}" = set; then :
14945  withval=$with_speex; speex_prefix="$withval"
14946else
14947  speex_prefix="$SPEEX_PREFIX"
14948
14949fi
14950
14951if test "x$with_speex" = "xno"
14952then
14953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Speex support disabled by request" >&5
14954$as_echo "Speex support disabled by request" >&6; }
14955else
14956  if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then
14957      if test "x$prefix" = "xNONE"; then
14958          speex_prefix="/usr/local"
14959      else
14960          speex_prefix="$prefix"
14961      fi
14962  fi
14963
14964  SPEEX_CFLAGS="$OGG_CFLAGS"
14965  SPEEX_LDFLAGS="$OGG_LDFLAGS"
14966  if test "x$speex_prefix" != "x$ogg_prefix"; then
14967
14968xt_warning=no
14969if test x"$GCC" = "xyes"
14970then
14971  save_cflags="$CFLAGS"
14972  CFLAGS="-Werror -I"$speex_prefix/include""
14973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974/* end confdefs.h.  */
14975
14976int
14977main ()
14978{
14979
14980  ;
14981  return 0;
14982}
14983_ACEOF
14984if ac_fn_c_try_compile "$LINENO"; then :
14985
14986else
14987  xt_warning=yes
14988fi
14989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990  CFLAGS="$save_cflags"
14991fi
14992if test "$xt_warning" = "yes"
14993then
14994  :
14995else
14996  SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include"
14997              SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS"
14998
14999fi
15000
15001  fi
15002
15003  SPEEX_LIBS="-lspeex"
15004
15005  xt_save_LIBS="$LIBS"
15006  xt_save_LDFLAGS="$LDFLAGS"
15007  LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS"
15008  LIBS="$LIBS $SPEEX_LIBS"
15009  xt_have_speex="yes"
15010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex" >&5
15011$as_echo_n "checking for libspeex... " >&6; }
15012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h.  */
15014
15015/* Override any GCC internal prototype to avoid an error.
15016   Use char because int might match the return type of a GCC
15017   builtin and then its argument prototype would still apply.  */
15018#ifdef __cplusplus
15019extern "C"
15020#endif
15021char ogg_stream_init ();
15022int
15023main ()
15024{
15025return ogg_stream_init ();
15026  ;
15027  return 0;
15028}
15029_ACEOF
15030if ac_fn_c_try_link "$LINENO"; then :
15031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15032$as_echo "ok" >&6; }
15033else
15034  LIBS="$LIBS $OGG_LIBS"
15035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036/* end confdefs.h.  */
15037
15038/* Override any GCC internal prototype to avoid an error.
15039   Use char because int might match the return type of a GCC
15040   builtin and then its argument prototype would still apply.  */
15041#ifdef __cplusplus
15042extern "C"
15043#endif
15044char ogg_stream_init ();
15045int
15046main ()
15047{
15048return ogg_stream_init ();
15049  ;
15050  return 0;
15051}
15052_ACEOF
15053if ac_fn_c_try_link "$LINENO"; then :
15054  SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS"
15055else
15056  xt_have_speex="no"
15057fi
15058rm -f core conftest.err conftest.$ac_objext \
15059    conftest$ac_exeext conftest.$ac_ext
15060
15061fi
15062rm -f core conftest.err conftest.$ac_objext \
15063    conftest$ac_exeext conftest.$ac_ext
15064  if test "x$xt_have_speex" = "xyes"
15065  then
15066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067/* end confdefs.h.  */
15068#include <speex/speex_header.h>
15069int
15070main ()
15071{
15072void *p = speex_packet_to_header;
15073  ;
15074  return 0;
15075}
15076_ACEOF
15077if ac_fn_c_try_link "$LINENO"; then :
15078
15079else
15080  xt_have_speex="no"
15081fi
15082rm -f core conftest.err conftest.$ac_objext \
15083    conftest$ac_exeext conftest.$ac_ext
15084  fi
15085
15086  LIBS="$xt_save_LIBS"
15087  LDFLAGS="$xt_save_LDFLAGS"
15088
15089  if test "x$xt_have_speex" = "xyes"
15090  then
15091      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15092$as_echo "ok" >&6; }
15093
15094$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
15095
15096
15097  else
15098      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Speex library not found, disabling" >&5
15099$as_echo "$as_me: WARNING: Speex library not found, disabling" >&2;}
15100      SPEEX_CFLAGS=""
15101      SPEEX_LDFLAGS=""
15102      SPEEX_LIBS=""
15103  fi
15104
15105
15106
15107fi
15108
15109
15110else
15111	SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
15112	SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
15113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15114$as_echo "yes" >&6; }
15115
15116    HAVE_SPEEX="yes"
15117    SHOUT_REQUIRES="$SHOUT_REQUIRES, speex"
15118
15119fi
15120fi
15121
15122for arg in $SPEEX_CFLAGS
15123do
15124  if { cat <<EOF
15125 $XIPH_CPPFLAGS x
15126EOF
15127} | $FGREP -v -e " $arg " > /dev/null
15128  then
15129    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
15130  fi
15131done
15132
15133
15134xt_compare="$XIPH_LIBS"
15135xt_filtered=""
15136for arg in $SPEEX LDFLAGS $SPEEX_LIBS
15137do
15138  if { cat <<EOF
15139 $xt_compare x
15140EOF
15141} | $FGREP -v -e " $arg " > /dev/null
15142  then
15143    xt_compare="$arg $xt_compare"
15144    xt_filtered="$xt_filtered $arg"
15145  fi
15146done
15147XIPH_LIBS="$xt_filtered $XIPH_LIBS"
15148
15149 if test -n "$SPEEX_LIBS"; then
15150  HAVE_SPEEX_TRUE=
15151  HAVE_SPEEX_FALSE='#'
15152else
15153  HAVE_SPEEX_TRUE='#'
15154  HAVE_SPEEX_FALSE=
15155fi
15156
15157if test -n "$SPEEX_LIBS"
15158then
15159
15160$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
15161
15162fi
15163
15164
15165# Check whether --enable-pkgconfig was given.
15166if test "${enable_pkgconfig+set}" = set; then :
15167  enableval=$enable_pkgconfig; dopkgconfig="$enableval"
15168else
15169  dopkgconfig="maybe"
15170fi
15171
15172if test "$dopkgconfig" = "maybe"
15173then
15174  # Extract the first word of "pkg-config", so it can be a program name with args.
15175set dummy pkg-config; ac_word=$2
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15177$as_echo_n "checking for $ac_word... " >&6; }
15178if ${ac_cv_prog_PKGCONFIG+:} false; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  if test -n "$PKGCONFIG"; then
15182  ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
15183else
15184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185for as_dir in $PATH
15186do
15187  IFS=$as_save_IFS
15188  test -z "$as_dir" && as_dir=.
15189    for ac_exec_ext in '' $ac_executable_extensions; do
15190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15191    ac_cv_prog_PKGCONFIG="yes"
15192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15193    break 2
15194  fi
15195done
15196  done
15197IFS=$as_save_IFS
15198
15199  test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
15200fi
15201fi
15202PKGCONFIG=$ac_cv_prog_PKGCONFIG
15203if test -n "$PKGCONFIG"; then
15204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15205$as_echo "$PKGCONFIG" >&6; }
15206else
15207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208$as_echo "no" >&6; }
15209fi
15210
15211
15212else
15213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkgconfig should be used" >&5
15214$as_echo_n "checking whether pkgconfig should be used... " >&6; }
15215  PKGCONFIG="$dopkgconfig"
15216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15217$as_echo "$PKGCONFIG" >&6; }
15218fi
15219 if test "$PKGCONFIG" != "no"; then
15220  HAVE_PKGCONFIG_TRUE=
15221  HAVE_PKGCONFIG_FALSE='#'
15222else
15223  HAVE_PKGCONFIG_TRUE='#'
15224  HAVE_PKGCONFIG_FALSE=
15225fi
15226
15227
15228# Collect flags for shout.pc
15229
15230# I hate myself for doing this.
15231save_prefix="$prefix"
15232if test "$prefix" = "NONE"
15233then
15234  prefix="$ac_default_prefix"
15235fi
15236eval shout_includedir="$includedir"
15237prefix="$save_prefix"
15238
15239
15240# Check whether --with-openssl was given.
15241if test "${with_openssl+set}" = set; then :
15242  withval=$with_openssl; openssl_prefix="$withval"
15243else
15244  openssl_prefix=""
15245fi
15246
15247
15248if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
15249    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
15250    OPENSSL_CFLAGS="-I$openssl_prefix/include"
15251else
15252    # Extract the first word of "pkg-config", so it can be a program name with args.
15253set dummy pkg-config; ac_word=$2
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15255$as_echo_n "checking for $ac_word... " >&6; }
15256if ${ac_cv_path_PKGCONFIG+:} false; then :
15257  $as_echo_n "(cached) " >&6
15258else
15259  case $PKGCONFIG in
15260  [\\/]* | ?:[\\/]*)
15261  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15262  ;;
15263  *)
15264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265for as_dir in $PATH
15266do
15267  IFS=$as_save_IFS
15268  test -z "$as_dir" && as_dir=.
15269    for ac_exec_ext in '' $ac_executable_extensions; do
15270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15271    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15273    break 2
15274  fi
15275done
15276  done
15277IFS=$as_save_IFS
15278
15279  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
15280  ;;
15281esac
15282fi
15283PKGCONFIG=$ac_cv_path_PKGCONFIG
15284if test -n "$PKGCONFIG"; then
15285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
15286$as_echo "$PKGCONFIG" >&6; }
15287else
15288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289$as_echo "no" >&6; }
15290fi
15291
15292
15293    if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists openssl`; then
15294        OPENSSL_CFLAGS=`$PKGCONFIG --cflags openssl`
15295        OPENSSL_LIBS=`$PKGCONFIG --libs openssl`
15296    else
15297        if test "x$prefix" = "xNONE"; then
15298            openssl_prefix="/usr/local"
15299        else
15300            openssl_prefix="$prefix"
15301        fi
15302        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
15303        OPENSSL_CFLAGS="-I$openssl_prefix/include"
15304    fi
15305fi
15306
15307# Now try linking to openssl
15308xt_save_CFLAGS="$CFLAGS"
15309xt_save_LIBS="$LIBS"
15310CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
15311LIBS="$OPENSSL_LIBS $LIBS"
15312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h.  */
15314#include <openssl/ssl.h>
15315int
15316main ()
15317{
15318void *a = SSL_new
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323if ac_fn_c_try_link "$LINENO"; then :
15324  openssl_ok='yes'
15325fi
15326rm -f core conftest.err conftest.$ac_objext \
15327    conftest$ac_exeext conftest.$ac_ext
15328CFLAGS="$xt_save_CFLAGS"
15329LIBS="$xt_save_LIBS"
15330
15331if test "$openssl_ok" = "yes"; then
15332
15333$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15334
15335
15336
15337for arg in $OPENSSL_CFLAGS
15338do
15339  if { cat <<EOF
15340 $XIPH_CPPFLAGS x
15341EOF
15342} | $FGREP -v -e " $arg " > /dev/null
15343  then
15344    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
15345  fi
15346done
15347
15348
15349for arg in $OPENSSL_LDFLAGS
15350do
15351  if { cat <<EOF
15352 $XIPH_LDFLAGS x
15353EOF
15354} | $FGREP -v -e " $arg " > /dev/null
15355  then
15356    XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
15357  fi
15358done
15359
15360
15361xt_compare="$XIPH_LIBS"
15362xt_filtered=""
15363for arg in $OPENSSL_LIBS
15364do
15365  if { cat <<EOF
15366 $xt_compare x
15367EOF
15368} | $FGREP -v -e " $arg " > /dev/null
15369  then
15370    xt_compare="$arg $xt_compare"
15371    xt_filtered="$xt_filtered $arg"
15372  fi
15373done
15374XIPH_LIBS="$xt_filtered $XIPH_LIBS"
15375
15376    SHOUT_TLS="1"
15377
15378else
15379    OPENSSL_LIBS=""
15380    OPENSSL_CFLAGS=""
15381     { $as_echo "$as_me:${as_lineno-$LINENO}: SSL disabled!" >&5
15382$as_echo "$as_me: SSL disabled!" >&6;}
15383      SHOUT_TLS="0"
15384
15385fi
15386
15387
15388 if test -n "$OPENSSL_LIBS"; then
15389  HAVE_TLS_TRUE=
15390  HAVE_TLS_FALSE='#'
15391else
15392  HAVE_TLS_TRUE='#'
15393  HAVE_TLS_FALSE=
15394fi
15395
15396
15397SHOUT_VERSION="$VERSION"
15398SHOUT_CPPFLAGS="-I$shout_includedir $VORBIS_CFLAGS $PTHREAD_CPPFLAGS"
15399SHOUT_CFLAGS="$PTHREAD_CFLAGS"
15400SHOUT_LIBS="-lshout"
15401
15402
15403xt_FLAGS=''
15404
15405for flag in $SHOUT_CPPFLAGS
15406do
15407  case "$flag" in
15408  -l*)
15409    xt_FLAGS="$flag $xt_FLAGS"
15410    ;;
15411  *)
15412    if { cat <<EOF
15413 $xt_FLAGS x
15414EOF
15415} | $FGREP -v -e " $flag " > /dev/null
15416    then
15417      xt_FLAGS="$flag $xt_FLAGS"
15418    fi
15419    ;;
15420  esac
15421done
15422
15423SHOUT_CPPFLAGS=''
15424for flag in $xt_FLAGS
15425do
15426  if { cat <<EOF
15427 $SHOUT_CPPFLAGS x
15428EOF
15429} | $FGREP -v -e " $flag " > /dev/null
15430  then
15431    SHOUT_CPPFLAGS="$flag $SHOUT_CPPFLAGS"
15432  fi
15433done
15434
15435# Prune -I flags if $CC warns about them
15436xt_FLAGS=''
15437for flag in $SHOUT_CPPFLAGS
15438do
15439  case "$flag" in
15440  -I*)
15441
15442xt_warning=no
15443if test x"$GCC" = "xyes"
15444then
15445  save_cflags="$CFLAGS"
15446  CFLAGS="-Werror $flag"
15447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449
15450int
15451main ()
15452{
15453
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_compile "$LINENO"; then :
15459
15460else
15461  xt_warning=yes
15462fi
15463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464  CFLAGS="$save_cflags"
15465fi
15466if test "$xt_warning" = "yes"
15467then
15468  :
15469else
15470  xt_FLAGS="$xt_FLAGS $flag"
15471fi
15472
15473    ;;
15474  *)
15475    xt_FLAGS="$xt_FLAGS $flag"
15476    ;;
15477  esac
15478done
15479SHOUT_CPPFLAGS="$xt_FLAGS"
15480
15481
15482xt_FLAGS=''
15483
15484for flag in $SHOUT_CFLAGS
15485do
15486  case "$flag" in
15487  -l*)
15488    xt_FLAGS="$flag $xt_FLAGS"
15489    ;;
15490  *)
15491    if { cat <<EOF
15492 $xt_FLAGS x
15493EOF
15494} | $FGREP -v -e " $flag " > /dev/null
15495    then
15496      xt_FLAGS="$flag $xt_FLAGS"
15497    fi
15498    ;;
15499  esac
15500done
15501
15502SHOUT_CFLAGS=''
15503for flag in $xt_FLAGS
15504do
15505  if { cat <<EOF
15506 $SHOUT_CFLAGS x
15507EOF
15508} | $FGREP -v -e " $flag " > /dev/null
15509  then
15510    SHOUT_CFLAGS="$flag $SHOUT_CFLAGS"
15511  fi
15512done
15513
15514# Prune -I flags if $CC warns about them
15515xt_FLAGS=''
15516for flag in $SHOUT_CFLAGS
15517do
15518  case "$flag" in
15519  -I*)
15520
15521xt_warning=no
15522if test x"$GCC" = "xyes"
15523then
15524  save_cflags="$CFLAGS"
15525  CFLAGS="-Werror $flag"
15526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527/* end confdefs.h.  */
15528
15529int
15530main ()
15531{
15532
15533  ;
15534  return 0;
15535}
15536_ACEOF
15537if ac_fn_c_try_compile "$LINENO"; then :
15538
15539else
15540  xt_warning=yes
15541fi
15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543  CFLAGS="$save_cflags"
15544fi
15545if test "$xt_warning" = "yes"
15546then
15547  :
15548else
15549  xt_FLAGS="$xt_FLAGS $flag"
15550fi
15551
15552    ;;
15553  *)
15554    xt_FLAGS="$xt_FLAGS $flag"
15555    ;;
15556  esac
15557done
15558SHOUT_CFLAGS="$xt_FLAGS"
15559
15560
15561xt_FLAGS=''
15562
15563for flag in $VORBIS_LIBS $THEORA_LIBS $SPEEX_LIBS $PTHREAD_LIBS $OPENSSL_LIBS $OPENSSL_LIBS $LIBS
15564do
15565  case "$flag" in
15566  -l*)
15567    xt_FLAGS="$flag $xt_FLAGS"
15568    ;;
15569  *)
15570    if { cat <<EOF
15571 $xt_FLAGS x
15572EOF
15573} | $FGREP -v -e " $flag " > /dev/null
15574    then
15575      xt_FLAGS="$flag $xt_FLAGS"
15576    fi
15577    ;;
15578  esac
15579done
15580
15581SHOUT_LIBDEPS=''
15582for flag in $xt_FLAGS
15583do
15584  if { cat <<EOF
15585 $SHOUT_LIBDEPS x
15586EOF
15587} | $FGREP -v -e " $flag " > /dev/null
15588  then
15589    SHOUT_LIBDEPS="$flag $SHOUT_LIBDEPS"
15590  fi
15591done
15592
15593# Prune -I flags if $CC warns about them
15594xt_FLAGS=''
15595for flag in $SHOUT_LIBDEPS
15596do
15597  case "$flag" in
15598  -I*)
15599
15600xt_warning=no
15601if test x"$GCC" = "xyes"
15602then
15603  save_cflags="$CFLAGS"
15604  CFLAGS="-Werror $flag"
15605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606/* end confdefs.h.  */
15607
15608int
15609main ()
15610{
15611
15612  ;
15613  return 0;
15614}
15615_ACEOF
15616if ac_fn_c_try_compile "$LINENO"; then :
15617
15618else
15619  xt_warning=yes
15620fi
15621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622  CFLAGS="$save_cflags"
15623fi
15624if test "$xt_warning" = "yes"
15625then
15626  :
15627else
15628  xt_FLAGS="$xt_FLAGS $flag"
15629fi
15630
15631    ;;
15632  *)
15633    xt_FLAGS="$xt_FLAGS $flag"
15634    ;;
15635  esac
15636done
15637SHOUT_LIBDEPS="$xt_FLAGS"
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656ac_config_files="$ac_config_files Makefile include/Makefile include/shoutidjc/Makefile include/shoutidjc/shout.h src/Makefile src/common/net/Makefile src/common/timing/Makefile src/common/thread/Makefile src/common/avl/Makefile src/common/httpp/Makefile doc/Makefile examples/Makefile win32/Makefile shout-idjc.pc"
15657
15658cat >confcache <<\_ACEOF
15659# This file is a shell script that caches the results of configure
15660# tests run on this system so they can be shared between configure
15661# scripts and configure runs, see configure's option --config-cache.
15662# It is not useful on other systems.  If it contains results you don't
15663# want to keep, you may remove or edit it.
15664#
15665# config.status only pays attention to the cache file if you give it
15666# the --recheck option to rerun configure.
15667#
15668# `ac_cv_env_foo' variables (set or unset) will be overridden when
15669# loading this file, other *unset* `ac_cv_foo' will be assigned the
15670# following values.
15671
15672_ACEOF
15673
15674# The following way of writing the cache mishandles newlines in values,
15675# but we know of no workaround that is simple, portable, and efficient.
15676# So, we kill variables containing newlines.
15677# Ultrix sh set writes to stderr and can't be redirected directly,
15678# and sets the high bit in the cache file unless we assign to the vars.
15679(
15680  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15681    eval ac_val=\$$ac_var
15682    case $ac_val in #(
15683    *${as_nl}*)
15684      case $ac_var in #(
15685      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15687      esac
15688      case $ac_var in #(
15689      _ | IFS | as_nl) ;; #(
15690      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15691      *) { eval $ac_var=; unset $ac_var;} ;;
15692      esac ;;
15693    esac
15694  done
15695
15696  (set) 2>&1 |
15697    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15698    *${as_nl}ac_space=\ *)
15699      # `set' does not quote correctly, so add quotes: double-quote
15700      # substitution turns \\\\ into \\, and sed turns \\ into \.
15701      sed -n \
15702	"s/'/'\\\\''/g;
15703	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15704      ;; #(
15705    *)
15706      # `set' quotes correctly as required by POSIX, so do not add quotes.
15707      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15708      ;;
15709    esac |
15710    sort
15711) |
15712  sed '
15713     /^ac_cv_env_/b end
15714     t clear
15715     :clear
15716     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15717     t end
15718     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15719     :end' >>confcache
15720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15721  if test -w "$cache_file"; then
15722    if test "x$cache_file" != "x/dev/null"; then
15723      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15724$as_echo "$as_me: updating cache $cache_file" >&6;}
15725      if test ! -f "$cache_file" || test -h "$cache_file"; then
15726	cat confcache >"$cache_file"
15727      else
15728        case $cache_file in #(
15729        */* | ?:*)
15730	  mv -f confcache "$cache_file"$$ &&
15731	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15732        *)
15733	  mv -f confcache "$cache_file" ;;
15734	esac
15735      fi
15736    fi
15737  else
15738    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15739$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15740  fi
15741fi
15742rm -f confcache
15743
15744test "x$prefix" = xNONE && prefix=$ac_default_prefix
15745# Let make expand exec_prefix.
15746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15747
15748DEFS=-DHAVE_CONFIG_H
15749
15750ac_libobjs=
15751ac_ltlibobjs=
15752for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15753  # 1. Remove the extension, and $U if already installed.
15754  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15755  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15756  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15757  #    will be set to the directory where LIBOBJS objects are built.
15758  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15759  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15760done
15761LIBOBJS=$ac_libobjs
15762
15763LTLIBOBJS=$ac_ltlibobjs
15764
15765
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15767$as_echo_n "checking that generated files are newer than configure... " >&6; }
15768   if test -n "$am_sleep_pid"; then
15769     # Hide warnings about reused PIDs.
15770     wait $am_sleep_pid 2>/dev/null
15771   fi
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15773$as_echo "done" >&6; }
15774 if test -n "$EXEEXT"; then
15775  am__EXEEXT_TRUE=
15776  am__EXEEXT_FALSE='#'
15777else
15778  am__EXEEXT_TRUE='#'
15779  am__EXEEXT_FALSE=
15780fi
15781
15782if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15783  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15784Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785fi
15786if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15787  as_fn_error $? "conditional \"AMDEP\" was never defined.
15788Usually this means the macro was only invoked conditionally." "$LINENO" 5
15789fi
15790if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15791  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15792Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793fi
15794if test -z "${HAVE_THREAD_TRUE}" && test -z "${HAVE_THREAD_FALSE}"; then
15795  as_fn_error $? "conditional \"HAVE_THREAD\" was never defined.
15796Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797fi
15798if test -z "${HAVE_THEORA_TRUE}" && test -z "${HAVE_THEORA_FALSE}"; then
15799  as_fn_error $? "conditional \"HAVE_THEORA\" was never defined.
15800Usually this means the macro was only invoked conditionally." "$LINENO" 5
15801fi
15802if test -z "${HAVE_SPEEX_TRUE}" && test -z "${HAVE_SPEEX_FALSE}"; then
15803  as_fn_error $? "conditional \"HAVE_SPEEX\" was never defined.
15804Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805fi
15806if test -z "${HAVE_PKGCONFIG_TRUE}" && test -z "${HAVE_PKGCONFIG_FALSE}"; then
15807  as_fn_error $? "conditional \"HAVE_PKGCONFIG\" was never defined.
15808Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809fi
15810if test -z "${HAVE_TLS_TRUE}" && test -z "${HAVE_TLS_FALSE}"; then
15811  as_fn_error $? "conditional \"HAVE_TLS\" was never defined.
15812Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813fi
15814
15815: "${CONFIG_STATUS=./config.status}"
15816ac_write_fail=0
15817ac_clean_files_save=$ac_clean_files
15818ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15820$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15821as_write_fail=0
15822cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15823#! $SHELL
15824# Generated by $as_me.
15825# Run this file to recreate the current configuration.
15826# Compiler output produced by configure, useful for debugging
15827# configure, is in config.log if it exists.
15828
15829debug=false
15830ac_cs_recheck=false
15831ac_cs_silent=false
15832
15833SHELL=\${CONFIG_SHELL-$SHELL}
15834export SHELL
15835_ASEOF
15836cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15837## -------------------- ##
15838## M4sh Initialization. ##
15839## -------------------- ##
15840
15841# Be more Bourne compatible
15842DUALCASE=1; export DUALCASE # for MKS sh
15843if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15844  emulate sh
15845  NULLCMD=:
15846  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15847  # is contrary to our usage.  Disable this feature.
15848  alias -g '${1+"$@"}'='"$@"'
15849  setopt NO_GLOB_SUBST
15850else
15851  case `(set -o) 2>/dev/null` in #(
15852  *posix*) :
15853    set -o posix ;; #(
15854  *) :
15855     ;;
15856esac
15857fi
15858
15859
15860as_nl='
15861'
15862export as_nl
15863# Printing a long string crashes Solaris 7 /usr/bin/printf.
15864as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15867# Prefer a ksh shell builtin over an external printf program on Solaris,
15868# but without wasting forks for bash or zsh.
15869if test -z "$BASH_VERSION$ZSH_VERSION" \
15870    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15871  as_echo='print -r --'
15872  as_echo_n='print -rn --'
15873elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15874  as_echo='printf %s\n'
15875  as_echo_n='printf %s'
15876else
15877  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15878    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15879    as_echo_n='/usr/ucb/echo -n'
15880  else
15881    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15882    as_echo_n_body='eval
15883      arg=$1;
15884      case $arg in #(
15885      *"$as_nl"*)
15886	expr "X$arg" : "X\\(.*\\)$as_nl";
15887	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15888      esac;
15889      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15890    '
15891    export as_echo_n_body
15892    as_echo_n='sh -c $as_echo_n_body as_echo'
15893  fi
15894  export as_echo_body
15895  as_echo='sh -c $as_echo_body as_echo'
15896fi
15897
15898# The user is always right.
15899if test "${PATH_SEPARATOR+set}" != set; then
15900  PATH_SEPARATOR=:
15901  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15902    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15903      PATH_SEPARATOR=';'
15904  }
15905fi
15906
15907
15908# IFS
15909# We need space, tab and new line, in precisely that order.  Quoting is
15910# there to prevent editors from complaining about space-tab.
15911# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15912# splitting by setting IFS to empty value.)
15913IFS=" ""	$as_nl"
15914
15915# Find who we are.  Look in the path if we contain no directory separator.
15916as_myself=
15917case $0 in #((
15918  *[\\/]* ) as_myself=$0 ;;
15919  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920for as_dir in $PATH
15921do
15922  IFS=$as_save_IFS
15923  test -z "$as_dir" && as_dir=.
15924    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15925  done
15926IFS=$as_save_IFS
15927
15928     ;;
15929esac
15930# We did not find ourselves, most probably we were run as `sh COMMAND'
15931# in which case we are not to be found in the path.
15932if test "x$as_myself" = x; then
15933  as_myself=$0
15934fi
15935if test ! -f "$as_myself"; then
15936  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15937  exit 1
15938fi
15939
15940# Unset variables that we do not need and which cause bugs (e.g. in
15941# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15942# suppresses any "Segmentation fault" message there.  '((' could
15943# trigger a bug in pdksh 5.2.14.
15944for as_var in BASH_ENV ENV MAIL MAILPATH
15945do eval test x\${$as_var+set} = xset \
15946  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15947done
15948PS1='$ '
15949PS2='> '
15950PS4='+ '
15951
15952# NLS nuisances.
15953LC_ALL=C
15954export LC_ALL
15955LANGUAGE=C
15956export LANGUAGE
15957
15958# CDPATH.
15959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15960
15961
15962# as_fn_error STATUS ERROR [LINENO LOG_FD]
15963# ----------------------------------------
15964# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15965# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15966# script with STATUS, using 1 if that was 0.
15967as_fn_error ()
15968{
15969  as_status=$1; test $as_status -eq 0 && as_status=1
15970  if test "$4"; then
15971    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15972    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15973  fi
15974  $as_echo "$as_me: error: $2" >&2
15975  as_fn_exit $as_status
15976} # as_fn_error
15977
15978
15979# as_fn_set_status STATUS
15980# -----------------------
15981# Set $? to STATUS, without forking.
15982as_fn_set_status ()
15983{
15984  return $1
15985} # as_fn_set_status
15986
15987# as_fn_exit STATUS
15988# -----------------
15989# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15990as_fn_exit ()
15991{
15992  set +e
15993  as_fn_set_status $1
15994  exit $1
15995} # as_fn_exit
15996
15997# as_fn_unset VAR
15998# ---------------
15999# Portably unset VAR.
16000as_fn_unset ()
16001{
16002  { eval $1=; unset $1;}
16003}
16004as_unset=as_fn_unset
16005# as_fn_append VAR VALUE
16006# ----------------------
16007# Append the text in VALUE to the end of the definition contained in VAR. Take
16008# advantage of any shell optimizations that allow amortized linear growth over
16009# repeated appends, instead of the typical quadratic growth present in naive
16010# implementations.
16011if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16012  eval 'as_fn_append ()
16013  {
16014    eval $1+=\$2
16015  }'
16016else
16017  as_fn_append ()
16018  {
16019    eval $1=\$$1\$2
16020  }
16021fi # as_fn_append
16022
16023# as_fn_arith ARG...
16024# ------------------
16025# Perform arithmetic evaluation on the ARGs, and store the result in the
16026# global $as_val. Take advantage of shells that can avoid forks. The arguments
16027# must be portable across $(()) and expr.
16028if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16029  eval 'as_fn_arith ()
16030  {
16031    as_val=$(( $* ))
16032  }'
16033else
16034  as_fn_arith ()
16035  {
16036    as_val=`expr "$@" || test $? -eq 1`
16037  }
16038fi # as_fn_arith
16039
16040
16041if expr a : '\(a\)' >/dev/null 2>&1 &&
16042   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16043  as_expr=expr
16044else
16045  as_expr=false
16046fi
16047
16048if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16049  as_basename=basename
16050else
16051  as_basename=false
16052fi
16053
16054if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16055  as_dirname=dirname
16056else
16057  as_dirname=false
16058fi
16059
16060as_me=`$as_basename -- "$0" ||
16061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16062	 X"$0" : 'X\(//\)$' \| \
16063	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16064$as_echo X/"$0" |
16065    sed '/^.*\/\([^/][^/]*\)\/*$/{
16066	    s//\1/
16067	    q
16068	  }
16069	  /^X\/\(\/\/\)$/{
16070	    s//\1/
16071	    q
16072	  }
16073	  /^X\/\(\/\).*/{
16074	    s//\1/
16075	    q
16076	  }
16077	  s/.*/./; q'`
16078
16079# Avoid depending upon Character Ranges.
16080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16083as_cr_digits='0123456789'
16084as_cr_alnum=$as_cr_Letters$as_cr_digits
16085
16086ECHO_C= ECHO_N= ECHO_T=
16087case `echo -n x` in #(((((
16088-n*)
16089  case `echo 'xy\c'` in
16090  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16091  xy)  ECHO_C='\c';;
16092  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16093       ECHO_T='	';;
16094  esac;;
16095*)
16096  ECHO_N='-n';;
16097esac
16098
16099rm -f conf$$ conf$$.exe conf$$.file
16100if test -d conf$$.dir; then
16101  rm -f conf$$.dir/conf$$.file
16102else
16103  rm -f conf$$.dir
16104  mkdir conf$$.dir 2>/dev/null
16105fi
16106if (echo >conf$$.file) 2>/dev/null; then
16107  if ln -s conf$$.file conf$$ 2>/dev/null; then
16108    as_ln_s='ln -s'
16109    # ... but there are two gotchas:
16110    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16111    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16112    # In both cases, we have to default to `cp -pR'.
16113    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16114      as_ln_s='cp -pR'
16115  elif ln conf$$.file conf$$ 2>/dev/null; then
16116    as_ln_s=ln
16117  else
16118    as_ln_s='cp -pR'
16119  fi
16120else
16121  as_ln_s='cp -pR'
16122fi
16123rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16124rmdir conf$$.dir 2>/dev/null
16125
16126
16127# as_fn_mkdir_p
16128# -------------
16129# Create "$as_dir" as a directory, including parents if necessary.
16130as_fn_mkdir_p ()
16131{
16132
16133  case $as_dir in #(
16134  -*) as_dir=./$as_dir;;
16135  esac
16136  test -d "$as_dir" || eval $as_mkdir_p || {
16137    as_dirs=
16138    while :; do
16139      case $as_dir in #(
16140      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16141      *) as_qdir=$as_dir;;
16142      esac
16143      as_dirs="'$as_qdir' $as_dirs"
16144      as_dir=`$as_dirname -- "$as_dir" ||
16145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146	 X"$as_dir" : 'X\(//\)[^/]' \| \
16147	 X"$as_dir" : 'X\(//\)$' \| \
16148	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16149$as_echo X"$as_dir" |
16150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151	    s//\1/
16152	    q
16153	  }
16154	  /^X\(\/\/\)[^/].*/{
16155	    s//\1/
16156	    q
16157	  }
16158	  /^X\(\/\/\)$/{
16159	    s//\1/
16160	    q
16161	  }
16162	  /^X\(\/\).*/{
16163	    s//\1/
16164	    q
16165	  }
16166	  s/.*/./; q'`
16167      test -d "$as_dir" && break
16168    done
16169    test -z "$as_dirs" || eval "mkdir $as_dirs"
16170  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16171
16172
16173} # as_fn_mkdir_p
16174if mkdir -p . 2>/dev/null; then
16175  as_mkdir_p='mkdir -p "$as_dir"'
16176else
16177  test -d ./-p && rmdir ./-p
16178  as_mkdir_p=false
16179fi
16180
16181
16182# as_fn_executable_p FILE
16183# -----------------------
16184# Test if FILE is an executable regular file.
16185as_fn_executable_p ()
16186{
16187  test -f "$1" && test -x "$1"
16188} # as_fn_executable_p
16189as_test_x='test -x'
16190as_executable_p=as_fn_executable_p
16191
16192# Sed expression to map a string onto a valid CPP name.
16193as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16194
16195# Sed expression to map a string onto a valid variable name.
16196as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16197
16198
16199exec 6>&1
16200## ----------------------------------- ##
16201## Main body of $CONFIG_STATUS script. ##
16202## ----------------------------------- ##
16203_ASEOF
16204test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16205
16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207# Save the log message, to keep $0 and so on meaningful, and to
16208# report actual input values of CONFIG_FILES etc. instead of their
16209# values after options handling.
16210ac_log="
16211This file was extended by libshout-idjc $as_me 2.4.1, which was
16212generated by GNU Autoconf 2.69.  Invocation command line was
16213
16214  CONFIG_FILES    = $CONFIG_FILES
16215  CONFIG_HEADERS  = $CONFIG_HEADERS
16216  CONFIG_LINKS    = $CONFIG_LINKS
16217  CONFIG_COMMANDS = $CONFIG_COMMANDS
16218  $ $0 $@
16219
16220on `(hostname || uname -n) 2>/dev/null | sed 1q`
16221"
16222
16223_ACEOF
16224
16225case $ac_config_files in *"
16226"*) set x $ac_config_files; shift; ac_config_files=$*;;
16227esac
16228
16229case $ac_config_headers in *"
16230"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16231esac
16232
16233
16234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16235# Files that config.status was made for.
16236config_files="$ac_config_files"
16237config_headers="$ac_config_headers"
16238config_commands="$ac_config_commands"
16239
16240_ACEOF
16241
16242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243ac_cs_usage="\
16244\`$as_me' instantiates files and other configuration actions
16245from templates according to the current configuration.  Unless the files
16246and actions are specified as TAGs, all are instantiated by default.
16247
16248Usage: $0 [OPTION]... [TAG]...
16249
16250  -h, --help       print this help, then exit
16251  -V, --version    print version number and configuration settings, then exit
16252      --config     print configuration, then exit
16253  -q, --quiet, --silent
16254                   do not print progress messages
16255  -d, --debug      don't remove temporary files
16256      --recheck    update $as_me by reconfiguring in the same conditions
16257      --file=FILE[:TEMPLATE]
16258                   instantiate the configuration file FILE
16259      --header=FILE[:TEMPLATE]
16260                   instantiate the configuration header FILE
16261
16262Configuration files:
16263$config_files
16264
16265Configuration headers:
16266$config_headers
16267
16268Configuration commands:
16269$config_commands
16270
16271Report bugs to <www.sourceforge.net/projects/idjc>."
16272
16273_ACEOF
16274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16275ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16276ac_cs_version="\\
16277libshout-idjc config.status 2.4.1
16278configured by $0, generated by GNU Autoconf 2.69,
16279  with options \\"\$ac_cs_config\\"
16280
16281Copyright (C) 2012 Free Software Foundation, Inc.
16282This config.status script is free software; the Free Software Foundation
16283gives unlimited permission to copy, distribute and modify it."
16284
16285ac_pwd='$ac_pwd'
16286srcdir='$srcdir'
16287INSTALL='$INSTALL'
16288MKDIR_P='$MKDIR_P'
16289AWK='$AWK'
16290test -n "\$AWK" || AWK=awk
16291_ACEOF
16292
16293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16294# The default lists apply if the user does not specify any file.
16295ac_need_defaults=:
16296while test $# != 0
16297do
16298  case $1 in
16299  --*=?*)
16300    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16301    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16302    ac_shift=:
16303    ;;
16304  --*=)
16305    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16306    ac_optarg=
16307    ac_shift=:
16308    ;;
16309  *)
16310    ac_option=$1
16311    ac_optarg=$2
16312    ac_shift=shift
16313    ;;
16314  esac
16315
16316  case $ac_option in
16317  # Handling of the options.
16318  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16319    ac_cs_recheck=: ;;
16320  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16321    $as_echo "$ac_cs_version"; exit ;;
16322  --config | --confi | --conf | --con | --co | --c )
16323    $as_echo "$ac_cs_config"; exit ;;
16324  --debug | --debu | --deb | --de | --d | -d )
16325    debug=: ;;
16326  --file | --fil | --fi | --f )
16327    $ac_shift
16328    case $ac_optarg in
16329    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16330    '') as_fn_error $? "missing file argument" ;;
16331    esac
16332    as_fn_append CONFIG_FILES " '$ac_optarg'"
16333    ac_need_defaults=false;;
16334  --header | --heade | --head | --hea )
16335    $ac_shift
16336    case $ac_optarg in
16337    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16338    esac
16339    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16340    ac_need_defaults=false;;
16341  --he | --h)
16342    # Conflict between --help and --header
16343    as_fn_error $? "ambiguous option: \`$1'
16344Try \`$0 --help' for more information.";;
16345  --help | --hel | -h )
16346    $as_echo "$ac_cs_usage"; exit ;;
16347  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16348  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16349    ac_cs_silent=: ;;
16350
16351  # This is an error.
16352  -*) as_fn_error $? "unrecognized option: \`$1'
16353Try \`$0 --help' for more information." ;;
16354
16355  *) as_fn_append ac_config_targets " $1"
16356     ac_need_defaults=false ;;
16357
16358  esac
16359  shift
16360done
16361
16362ac_configure_extra_args=
16363
16364if $ac_cs_silent; then
16365  exec 6>/dev/null
16366  ac_configure_extra_args="$ac_configure_extra_args --silent"
16367fi
16368
16369_ACEOF
16370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16371if \$ac_cs_recheck; then
16372  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16373  shift
16374  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16375  CONFIG_SHELL='$SHELL'
16376  export CONFIG_SHELL
16377  exec "\$@"
16378fi
16379
16380_ACEOF
16381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16382exec 5>>config.log
16383{
16384  echo
16385  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16386## Running $as_me. ##
16387_ASBOX
16388  $as_echo "$ac_log"
16389} >&5
16390
16391_ACEOF
16392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393#
16394# INIT-COMMANDS
16395#
16396AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16397
16398
16399# The HP-UX ksh and POSIX shell print the target directory to stdout
16400# if CDPATH is set.
16401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16402
16403sed_quote_subst='$sed_quote_subst'
16404double_quote_subst='$double_quote_subst'
16405delay_variable_subst='$delay_variable_subst'
16406macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16407macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16408enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16409enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16410pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16411enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16412shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16413SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16414ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16415PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16416host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16417host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16418host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16419build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16420build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16421build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16422SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16423Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16424GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16425EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16426FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16427LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16428NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16429LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16430max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16431ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16432exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16433lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16434lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16435lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16436lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16437lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16438reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16439reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16440OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16441deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16442file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16443file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16444want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16445DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16446sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16447AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16448AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16449archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16450STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16451RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16452old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16453old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16454old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16455lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16456CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16457CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16458compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16459GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16460lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16461lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16462lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16463lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16464lt_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"`'
16465lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16466nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16467lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16468lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16469objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16470MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16471lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16472lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16473lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16474lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16475lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16476need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16477MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16478DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16479NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16480LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16481OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16482OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16483libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16484shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16485extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16486archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16487enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16488export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16489whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16490compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16491old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16492old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16493archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16494archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16495module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16496module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16497with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16498allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16499no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16500hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16501hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16502hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16503hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16504hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16505hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16506hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16507inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16508link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16509always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16510export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16511exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16512include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16513prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16514postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16515file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16516variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16517need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16518need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16519version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16520runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16521shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16522shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16523libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16524library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16525soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16526install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16527postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16528postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16529finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16530finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16531hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16532sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16533configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16534configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16535hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16536enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16537enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16538enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16539old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16540striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16541
16542LTCC='$LTCC'
16543LTCFLAGS='$LTCFLAGS'
16544compiler='$compiler_DEFAULT'
16545
16546# A function that is used when there is no print builtin or printf.
16547func_fallback_echo ()
16548{
16549  eval 'cat <<_LTECHO_EOF
16550\$1
16551_LTECHO_EOF'
16552}
16553
16554# Quote evaled strings.
16555for var in SHELL \
16556ECHO \
16557PATH_SEPARATOR \
16558SED \
16559GREP \
16560EGREP \
16561FGREP \
16562LD \
16563NM \
16564LN_S \
16565lt_SP2NL \
16566lt_NL2SP \
16567reload_flag \
16568OBJDUMP \
16569deplibs_check_method \
16570file_magic_cmd \
16571file_magic_glob \
16572want_nocaseglob \
16573DLLTOOL \
16574sharedlib_from_linklib_cmd \
16575AR \
16576AR_FLAGS \
16577archiver_list_spec \
16578STRIP \
16579RANLIB \
16580CC \
16581CFLAGS \
16582compiler \
16583lt_cv_sys_global_symbol_pipe \
16584lt_cv_sys_global_symbol_to_cdecl \
16585lt_cv_sys_global_symbol_to_import \
16586lt_cv_sys_global_symbol_to_c_name_address \
16587lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16588lt_cv_nm_interface \
16589nm_file_list_spec \
16590lt_cv_truncate_bin \
16591lt_prog_compiler_no_builtin_flag \
16592lt_prog_compiler_pic \
16593lt_prog_compiler_wl \
16594lt_prog_compiler_static \
16595lt_cv_prog_compiler_c_o \
16596need_locks \
16597MANIFEST_TOOL \
16598DSYMUTIL \
16599NMEDIT \
16600LIPO \
16601OTOOL \
16602OTOOL64 \
16603shrext_cmds \
16604export_dynamic_flag_spec \
16605whole_archive_flag_spec \
16606compiler_needs_object \
16607with_gnu_ld \
16608allow_undefined_flag \
16609no_undefined_flag \
16610hardcode_libdir_flag_spec \
16611hardcode_libdir_separator \
16612exclude_expsyms \
16613include_expsyms \
16614file_list_spec \
16615variables_saved_for_relink \
16616libname_spec \
16617library_names_spec \
16618soname_spec \
16619install_override_mode \
16620finish_eval \
16621old_striplib \
16622striplib; do
16623    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16624    *[\\\\\\\`\\"\\\$]*)
16625      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16626      ;;
16627    *)
16628      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16629      ;;
16630    esac
16631done
16632
16633# Double-quote double-evaled strings.
16634for var in reload_cmds \
16635old_postinstall_cmds \
16636old_postuninstall_cmds \
16637old_archive_cmds \
16638extract_expsyms_cmds \
16639old_archive_from_new_cmds \
16640old_archive_from_expsyms_cmds \
16641archive_cmds \
16642archive_expsym_cmds \
16643module_cmds \
16644module_expsym_cmds \
16645export_symbols_cmds \
16646prelink_cmds \
16647postlink_cmds \
16648postinstall_cmds \
16649postuninstall_cmds \
16650finish_cmds \
16651sys_lib_search_path_spec \
16652configure_time_dlsearch_path \
16653configure_time_lt_sys_library_path; do
16654    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16655    *[\\\\\\\`\\"\\\$]*)
16656      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16657      ;;
16658    *)
16659      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16660      ;;
16661    esac
16662done
16663
16664ac_aux_dir='$ac_aux_dir'
16665
16666# See if we are running on zsh, and set the options that allow our
16667# commands through without removal of \ escapes INIT.
16668if test -n "\${ZSH_VERSION+set}"; then
16669   setopt NO_GLOB_SUBST
16670fi
16671
16672
16673    PACKAGE='$PACKAGE'
16674    VERSION='$VERSION'
16675    RM='$RM'
16676    ofile='$ofile'
16677
16678
16679
16680
16681_ACEOF
16682
16683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684
16685# Handling of arguments.
16686for ac_config_target in $ac_config_targets
16687do
16688  case $ac_config_target in
16689    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16690    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16691    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16692    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16693    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16694    "include/shoutidjc/Makefile") CONFIG_FILES="$CONFIG_FILES include/shoutidjc/Makefile" ;;
16695    "include/shoutidjc/shout.h") CONFIG_FILES="$CONFIG_FILES include/shoutidjc/shout.h" ;;
16696    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16697    "src/common/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/net/Makefile" ;;
16698    "src/common/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/timing/Makefile" ;;
16699    "src/common/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/thread/Makefile" ;;
16700    "src/common/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/avl/Makefile" ;;
16701    "src/common/httpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/httpp/Makefile" ;;
16702    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16703    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16704    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
16705    "shout-idjc.pc") CONFIG_FILES="$CONFIG_FILES shout-idjc.pc" ;;
16706
16707  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16708  esac
16709done
16710
16711
16712# If the user did not use the arguments to specify the items to instantiate,
16713# then the envvar interface is used.  Set only those that are not.
16714# We use the long form for the default assignment because of an extremely
16715# bizarre bug on SunOS 4.1.3.
16716if $ac_need_defaults; then
16717  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16718  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16719  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16720fi
16721
16722# Have a temporary directory for convenience.  Make it in the build tree
16723# simply because there is no reason against having it here, and in addition,
16724# creating and moving files from /tmp can sometimes cause problems.
16725# Hook for its removal unless debugging.
16726# Note that there is a small window in which the directory will not be cleaned:
16727# after its creation but before its name has been assigned to `$tmp'.
16728$debug ||
16729{
16730  tmp= ac_tmp=
16731  trap 'exit_status=$?
16732  : "${ac_tmp:=$tmp}"
16733  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16734' 0
16735  trap 'as_fn_exit 1' 1 2 13 15
16736}
16737# Create a (secure) tmp directory for tmp files.
16738
16739{
16740  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16741  test -d "$tmp"
16742}  ||
16743{
16744  tmp=./conf$$-$RANDOM
16745  (umask 077 && mkdir "$tmp")
16746} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16747ac_tmp=$tmp
16748
16749# Set up the scripts for CONFIG_FILES section.
16750# No need to generate them if there are no CONFIG_FILES.
16751# This happens for instance with `./config.status config.h'.
16752if test -n "$CONFIG_FILES"; then
16753
16754
16755ac_cr=`echo X | tr X '\015'`
16756# On cygwin, bash can eat \r inside `` if the user requested igncr.
16757# But we know of no other shell where ac_cr would be empty at this
16758# point, so we can use a bashism as a fallback.
16759if test "x$ac_cr" = x; then
16760  eval ac_cr=\$\'\\r\'
16761fi
16762ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16763if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16764  ac_cs_awk_cr='\\r'
16765else
16766  ac_cs_awk_cr=$ac_cr
16767fi
16768
16769echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16770_ACEOF
16771
16772
16773{
16774  echo "cat >conf$$subs.awk <<_ACEOF" &&
16775  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16776  echo "_ACEOF"
16777} >conf$$subs.sh ||
16778  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16779ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16780ac_delim='%!_!# '
16781for ac_last_try in false false false false false :; do
16782  . ./conf$$subs.sh ||
16783    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16784
16785  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16786  if test $ac_delim_n = $ac_delim_num; then
16787    break
16788  elif $ac_last_try; then
16789    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16790  else
16791    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16792  fi
16793done
16794rm -f conf$$subs.sh
16795
16796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16797cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16798_ACEOF
16799sed -n '
16800h
16801s/^/S["/; s/!.*/"]=/
16802p
16803g
16804s/^[^!]*!//
16805:repl
16806t repl
16807s/'"$ac_delim"'$//
16808t delim
16809:nl
16810h
16811s/\(.\{148\}\)..*/\1/
16812t more1
16813s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16814p
16815n
16816b repl
16817:more1
16818s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16819p
16820g
16821s/.\{148\}//
16822t nl
16823:delim
16824h
16825s/\(.\{148\}\)..*/\1/
16826t more2
16827s/["\\]/\\&/g; s/^/"/; s/$/"/
16828p
16829b
16830:more2
16831s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16832p
16833g
16834s/.\{148\}//
16835t delim
16836' <conf$$subs.awk | sed '
16837/^[^""]/{
16838  N
16839  s/\n//
16840}
16841' >>$CONFIG_STATUS || ac_write_fail=1
16842rm -f conf$$subs.awk
16843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16844_ACAWK
16845cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16846  for (key in S) S_is_set[key] = 1
16847  FS = ""
16848
16849}
16850{
16851  line = $ 0
16852  nfields = split(line, field, "@")
16853  substed = 0
16854  len = length(field[1])
16855  for (i = 2; i < nfields; i++) {
16856    key = field[i]
16857    keylen = length(key)
16858    if (S_is_set[key]) {
16859      value = S[key]
16860      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16861      len += length(value) + length(field[++i])
16862      substed = 1
16863    } else
16864      len += 1 + keylen
16865  }
16866
16867  print line
16868}
16869
16870_ACAWK
16871_ACEOF
16872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16873if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16874  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16875else
16876  cat
16877fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16878  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16879_ACEOF
16880
16881# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16882# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16883# trailing colons and then remove the whole line if VPATH becomes empty
16884# (actually we leave an empty line to preserve line numbers).
16885if test "x$srcdir" = x.; then
16886  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16887h
16888s///
16889s/^/:/
16890s/[	 ]*$/:/
16891s/:\$(srcdir):/:/g
16892s/:\${srcdir}:/:/g
16893s/:@srcdir@:/:/g
16894s/^:*//
16895s/:*$//
16896x
16897s/\(=[	 ]*\).*/\1/
16898G
16899s/\n//
16900s/^[^=]*=[	 ]*$//
16901}'
16902fi
16903
16904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905fi # test -n "$CONFIG_FILES"
16906
16907# Set up the scripts for CONFIG_HEADERS section.
16908# No need to generate them if there are no CONFIG_HEADERS.
16909# This happens for instance with `./config.status Makefile'.
16910if test -n "$CONFIG_HEADERS"; then
16911cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16912BEGIN {
16913_ACEOF
16914
16915# Transform confdefs.h into an awk script `defines.awk', embedded as
16916# here-document in config.status, that substitutes the proper values into
16917# config.h.in to produce config.h.
16918
16919# Create a delimiter string that does not exist in confdefs.h, to ease
16920# handling of long lines.
16921ac_delim='%!_!# '
16922for ac_last_try in false false :; do
16923  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16924  if test -z "$ac_tt"; then
16925    break
16926  elif $ac_last_try; then
16927    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16928  else
16929    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16930  fi
16931done
16932
16933# For the awk script, D is an array of macro values keyed by name,
16934# likewise P contains macro parameters if any.  Preserve backslash
16935# newline sequences.
16936
16937ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16938sed -n '
16939s/.\{148\}/&'"$ac_delim"'/g
16940t rset
16941:rset
16942s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16943t def
16944d
16945:def
16946s/\\$//
16947t bsnl
16948s/["\\]/\\&/g
16949s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16950D["\1"]=" \3"/p
16951s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16952d
16953:bsnl
16954s/["\\]/\\&/g
16955s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16956D["\1"]=" \3\\\\\\n"\\/p
16957t cont
16958s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16959t cont
16960d
16961:cont
16962n
16963s/.\{148\}/&'"$ac_delim"'/g
16964t clear
16965:clear
16966s/\\$//
16967t bsnlc
16968s/["\\]/\\&/g; s/^/"/; s/$/"/p
16969d
16970:bsnlc
16971s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16972b cont
16973' <confdefs.h | sed '
16974s/'"$ac_delim"'/"\\\
16975"/g' >>$CONFIG_STATUS || ac_write_fail=1
16976
16977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16978  for (key in D) D_is_set[key] = 1
16979  FS = ""
16980}
16981/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16982  line = \$ 0
16983  split(line, arg, " ")
16984  if (arg[1] == "#") {
16985    defundef = arg[2]
16986    mac1 = arg[3]
16987  } else {
16988    defundef = substr(arg[1], 2)
16989    mac1 = arg[2]
16990  }
16991  split(mac1, mac2, "(") #)
16992  macro = mac2[1]
16993  prefix = substr(line, 1, index(line, defundef) - 1)
16994  if (D_is_set[macro]) {
16995    # Preserve the white space surrounding the "#".
16996    print prefix "define", macro P[macro] D[macro]
16997    next
16998  } else {
16999    # Replace #undef with comments.  This is necessary, for example,
17000    # in the case of _POSIX_SOURCE, which is predefined and required
17001    # on some systems where configure will not decide to define it.
17002    if (defundef == "undef") {
17003      print "/*", prefix defundef, macro, "*/"
17004      next
17005    }
17006  }
17007}
17008{ print }
17009_ACAWK
17010_ACEOF
17011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17012  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17013fi # test -n "$CONFIG_HEADERS"
17014
17015
17016eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17017shift
17018for ac_tag
17019do
17020  case $ac_tag in
17021  :[FHLC]) ac_mode=$ac_tag; continue;;
17022  esac
17023  case $ac_mode$ac_tag in
17024  :[FHL]*:*);;
17025  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17026  :[FH]-) ac_tag=-:-;;
17027  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17028  esac
17029  ac_save_IFS=$IFS
17030  IFS=:
17031  set x $ac_tag
17032  IFS=$ac_save_IFS
17033  shift
17034  ac_file=$1
17035  shift
17036
17037  case $ac_mode in
17038  :L) ac_source=$1;;
17039  :[FH])
17040    ac_file_inputs=
17041    for ac_f
17042    do
17043      case $ac_f in
17044      -) ac_f="$ac_tmp/stdin";;
17045      *) # Look for the file first in the build tree, then in the source tree
17046	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17047	 # because $ac_f cannot contain `:'.
17048	 test -f "$ac_f" ||
17049	   case $ac_f in
17050	   [\\/$]*) false;;
17051	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17052	   esac ||
17053	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17054      esac
17055      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17056      as_fn_append ac_file_inputs " '$ac_f'"
17057    done
17058
17059    # Let's still pretend it is `configure' which instantiates (i.e., don't
17060    # use $as_me), people would be surprised to read:
17061    #    /* config.h.  Generated by config.status.  */
17062    configure_input='Generated from '`
17063	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17064	`' by configure.'
17065    if test x"$ac_file" != x-; then
17066      configure_input="$ac_file.  $configure_input"
17067      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17068$as_echo "$as_me: creating $ac_file" >&6;}
17069    fi
17070    # Neutralize special characters interpreted by sed in replacement strings.
17071    case $configure_input in #(
17072    *\&* | *\|* | *\\* )
17073       ac_sed_conf_input=`$as_echo "$configure_input" |
17074       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17075    *) ac_sed_conf_input=$configure_input;;
17076    esac
17077
17078    case $ac_tag in
17079    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17080      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17081    esac
17082    ;;
17083  esac
17084
17085  ac_dir=`$as_dirname -- "$ac_file" ||
17086$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17087	 X"$ac_file" : 'X\(//\)[^/]' \| \
17088	 X"$ac_file" : 'X\(//\)$' \| \
17089	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17090$as_echo X"$ac_file" |
17091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17092	    s//\1/
17093	    q
17094	  }
17095	  /^X\(\/\/\)[^/].*/{
17096	    s//\1/
17097	    q
17098	  }
17099	  /^X\(\/\/\)$/{
17100	    s//\1/
17101	    q
17102	  }
17103	  /^X\(\/\).*/{
17104	    s//\1/
17105	    q
17106	  }
17107	  s/.*/./; q'`
17108  as_dir="$ac_dir"; as_fn_mkdir_p
17109  ac_builddir=.
17110
17111case "$ac_dir" in
17112.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17113*)
17114  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17115  # A ".." for each directory in $ac_dir_suffix.
17116  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17117  case $ac_top_builddir_sub in
17118  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17119  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17120  esac ;;
17121esac
17122ac_abs_top_builddir=$ac_pwd
17123ac_abs_builddir=$ac_pwd$ac_dir_suffix
17124# for backward compatibility:
17125ac_top_builddir=$ac_top_build_prefix
17126
17127case $srcdir in
17128  .)  # We are building in place.
17129    ac_srcdir=.
17130    ac_top_srcdir=$ac_top_builddir_sub
17131    ac_abs_top_srcdir=$ac_pwd ;;
17132  [\\/]* | ?:[\\/]* )  # Absolute name.
17133    ac_srcdir=$srcdir$ac_dir_suffix;
17134    ac_top_srcdir=$srcdir
17135    ac_abs_top_srcdir=$srcdir ;;
17136  *) # Relative name.
17137    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17138    ac_top_srcdir=$ac_top_build_prefix$srcdir
17139    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17140esac
17141ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17142
17143
17144  case $ac_mode in
17145  :F)
17146  #
17147  # CONFIG_FILE
17148  #
17149
17150  case $INSTALL in
17151  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17152  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17153  esac
17154  ac_MKDIR_P=$MKDIR_P
17155  case $MKDIR_P in
17156  [\\/$]* | ?:[\\/]* ) ;;
17157  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17158  esac
17159_ACEOF
17160
17161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17162# If the template does not know about datarootdir, expand it.
17163# FIXME: This hack should be removed a few years after 2.60.
17164ac_datarootdir_hack=; ac_datarootdir_seen=
17165ac_sed_dataroot='
17166/datarootdir/ {
17167  p
17168  q
17169}
17170/@datadir@/p
17171/@docdir@/p
17172/@infodir@/p
17173/@localedir@/p
17174/@mandir@/p'
17175case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17176*datarootdir*) ac_datarootdir_seen=yes;;
17177*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17178  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17179$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17180_ACEOF
17181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182  ac_datarootdir_hack='
17183  s&@datadir@&$datadir&g
17184  s&@docdir@&$docdir&g
17185  s&@infodir@&$infodir&g
17186  s&@localedir@&$localedir&g
17187  s&@mandir@&$mandir&g
17188  s&\\\${datarootdir}&$datarootdir&g' ;;
17189esac
17190_ACEOF
17191
17192# Neutralize VPATH when `$srcdir' = `.'.
17193# Shell code in configure.ac might set extrasub.
17194# FIXME: do we really want to maintain this feature?
17195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17196ac_sed_extra="$ac_vpsub
17197$extrasub
17198_ACEOF
17199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200:t
17201/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17202s|@configure_input@|$ac_sed_conf_input|;t t
17203s&@top_builddir@&$ac_top_builddir_sub&;t t
17204s&@top_build_prefix@&$ac_top_build_prefix&;t t
17205s&@srcdir@&$ac_srcdir&;t t
17206s&@abs_srcdir@&$ac_abs_srcdir&;t t
17207s&@top_srcdir@&$ac_top_srcdir&;t t
17208s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17209s&@builddir@&$ac_builddir&;t t
17210s&@abs_builddir@&$ac_abs_builddir&;t t
17211s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17212s&@INSTALL@&$ac_INSTALL&;t t
17213s&@MKDIR_P@&$ac_MKDIR_P&;t t
17214$ac_datarootdir_hack
17215"
17216eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17217  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17218
17219test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17220  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17221  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17222      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17223  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17224which seems to be undefined.  Please make sure it is defined" >&5
17225$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17226which seems to be undefined.  Please make sure it is defined" >&2;}
17227
17228  rm -f "$ac_tmp/stdin"
17229  case $ac_file in
17230  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17231  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17232  esac \
17233  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17234 ;;
17235  :H)
17236  #
17237  # CONFIG_HEADER
17238  #
17239  if test x"$ac_file" != x-; then
17240    {
17241      $as_echo "/* $configure_input  */" \
17242      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17243    } >"$ac_tmp/config.h" \
17244      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17245    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17246      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17247$as_echo "$as_me: $ac_file is unchanged" >&6;}
17248    else
17249      rm -f "$ac_file"
17250      mv "$ac_tmp/config.h" "$ac_file" \
17251	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17252    fi
17253  else
17254    $as_echo "/* $configure_input  */" \
17255      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17256      || as_fn_error $? "could not create -" "$LINENO" 5
17257  fi
17258# Compute "$ac_file"'s index in $config_headers.
17259_am_arg="$ac_file"
17260_am_stamp_count=1
17261for _am_header in $config_headers :; do
17262  case $_am_header in
17263    $_am_arg | $_am_arg:* )
17264      break ;;
17265    * )
17266      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17267  esac
17268done
17269echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17270$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17271	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17272	 X"$_am_arg" : 'X\(//\)$' \| \
17273	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17274$as_echo X"$_am_arg" |
17275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17276	    s//\1/
17277	    q
17278	  }
17279	  /^X\(\/\/\)[^/].*/{
17280	    s//\1/
17281	    q
17282	  }
17283	  /^X\(\/\/\)$/{
17284	    s//\1/
17285	    q
17286	  }
17287	  /^X\(\/\).*/{
17288	    s//\1/
17289	    q
17290	  }
17291	  s/.*/./; q'`/stamp-h$_am_stamp_count
17292 ;;
17293
17294  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17295$as_echo "$as_me: executing $ac_file commands" >&6;}
17296 ;;
17297  esac
17298
17299
17300  case $ac_file$ac_mode in
17301    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17302  # Older Autoconf quotes --file arguments for eval, but not when files
17303  # are listed without --file.  Let's play safe and only enable the eval
17304  # if we detect the quoting.
17305  case $CONFIG_FILES in
17306  *\'*) eval set x "$CONFIG_FILES" ;;
17307  *)   set x $CONFIG_FILES ;;
17308  esac
17309  shift
17310  for mf
17311  do
17312    # Strip MF so we end up with the name of the file.
17313    mf=`echo "$mf" | sed -e 's/:.*$//'`
17314    # Check whether this is an Automake generated Makefile or not.
17315    # We used to match only the files named 'Makefile.in', but
17316    # some people rename them; so instead we look at the file content.
17317    # Grep'ing the first line is not enough: some people post-process
17318    # each Makefile.in and add a new line on top of each file to say so.
17319    # Grep'ing the whole file is not good either: AIX grep has a line
17320    # limit of 2048, but all sed's we know have understand at least 4000.
17321    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17322      dirpart=`$as_dirname -- "$mf" ||
17323$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17324	 X"$mf" : 'X\(//\)[^/]' \| \
17325	 X"$mf" : 'X\(//\)$' \| \
17326	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17327$as_echo X"$mf" |
17328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17329	    s//\1/
17330	    q
17331	  }
17332	  /^X\(\/\/\)[^/].*/{
17333	    s//\1/
17334	    q
17335	  }
17336	  /^X\(\/\/\)$/{
17337	    s//\1/
17338	    q
17339	  }
17340	  /^X\(\/\).*/{
17341	    s//\1/
17342	    q
17343	  }
17344	  s/.*/./; q'`
17345    else
17346      continue
17347    fi
17348    # Extract the definition of DEPDIR, am__include, and am__quote
17349    # from the Makefile without running 'make'.
17350    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17351    test -z "$DEPDIR" && continue
17352    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17353    test -z "$am__include" && continue
17354    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17355    # Find all dependency output files, they are included files with
17356    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17357    # simplest approach to changing $(DEPDIR) to its actual value in the
17358    # expansion.
17359    for file in `sed -n "
17360      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17361	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17362      # Make sure the directory exists.
17363      test -f "$dirpart/$file" && continue
17364      fdir=`$as_dirname -- "$file" ||
17365$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17366	 X"$file" : 'X\(//\)[^/]' \| \
17367	 X"$file" : 'X\(//\)$' \| \
17368	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17369$as_echo X"$file" |
17370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17371	    s//\1/
17372	    q
17373	  }
17374	  /^X\(\/\/\)[^/].*/{
17375	    s//\1/
17376	    q
17377	  }
17378	  /^X\(\/\/\)$/{
17379	    s//\1/
17380	    q
17381	  }
17382	  /^X\(\/\).*/{
17383	    s//\1/
17384	    q
17385	  }
17386	  s/.*/./; q'`
17387      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17388      # echo "creating $dirpart/$file"
17389      echo '# dummy' > "$dirpart/$file"
17390    done
17391  done
17392}
17393 ;;
17394    "libtool":C)
17395
17396    # See if we are running on zsh, and set the options that allow our
17397    # commands through without removal of \ escapes.
17398    if test -n "${ZSH_VERSION+set}"; then
17399      setopt NO_GLOB_SUBST
17400    fi
17401
17402    cfgfile=${ofile}T
17403    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17404    $RM "$cfgfile"
17405
17406    cat <<_LT_EOF >> "$cfgfile"
17407#! $SHELL
17408# Generated automatically by $as_me ($PACKAGE) $VERSION
17409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17410# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17411
17412# Provide generalized library-building support services.
17413# Written by Gordon Matzigkeit, 1996
17414
17415# Copyright (C) 2014 Free Software Foundation, Inc.
17416# This is free software; see the source for copying conditions.  There is NO
17417# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17418
17419# GNU Libtool is free software; you can redistribute it and/or modify
17420# it under the terms of the GNU General Public License as published by
17421# the Free Software Foundation; either version 2 of of the License, or
17422# (at your option) any later version.
17423#
17424# As a special exception to the GNU General Public License, if you
17425# distribute this file as part of a program or library that is built
17426# using GNU Libtool, you may include this file under the  same
17427# distribution terms that you use for the rest of that program.
17428#
17429# GNU Libtool is distributed in the hope that it will be useful, but
17430# WITHOUT ANY WARRANTY; without even the implied warranty of
17431# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17432# GNU General Public License for more details.
17433#
17434# You should have received a copy of the GNU General Public License
17435# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17436
17437
17438# The names of the tagged configurations supported by this script.
17439available_tags=''
17440
17441# Configured defaults for sys_lib_dlsearch_path munging.
17442: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17443
17444# ### BEGIN LIBTOOL CONFIG
17445
17446# Which release of libtool.m4 was used?
17447macro_version=$macro_version
17448macro_revision=$macro_revision
17449
17450# Whether or not to build shared libraries.
17451build_libtool_libs=$enable_shared
17452
17453# Whether or not to build static libraries.
17454build_old_libs=$enable_static
17455
17456# What type of objects to build.
17457pic_mode=$pic_mode
17458
17459# Whether or not to optimize for fast installation.
17460fast_install=$enable_fast_install
17461
17462# Shared archive member basename,for filename based shared library versioning on AIX.
17463shared_archive_member_spec=$shared_archive_member_spec
17464
17465# Shell to use when invoking shell scripts.
17466SHELL=$lt_SHELL
17467
17468# An echo program that protects backslashes.
17469ECHO=$lt_ECHO
17470
17471# The PATH separator for the build system.
17472PATH_SEPARATOR=$lt_PATH_SEPARATOR
17473
17474# The host system.
17475host_alias=$host_alias
17476host=$host
17477host_os=$host_os
17478
17479# The build system.
17480build_alias=$build_alias
17481build=$build
17482build_os=$build_os
17483
17484# A sed program that does not truncate output.
17485SED=$lt_SED
17486
17487# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17488Xsed="\$SED -e 1s/^X//"
17489
17490# A grep program that handles long lines.
17491GREP=$lt_GREP
17492
17493# An ERE matcher.
17494EGREP=$lt_EGREP
17495
17496# A literal string matcher.
17497FGREP=$lt_FGREP
17498
17499# A BSD- or MS-compatible name lister.
17500NM=$lt_NM
17501
17502# Whether we need soft or hard links.
17503LN_S=$lt_LN_S
17504
17505# What is the maximum length of a command?
17506max_cmd_len=$max_cmd_len
17507
17508# Object file suffix (normally "o").
17509objext=$ac_objext
17510
17511# Executable file suffix (normally "").
17512exeext=$exeext
17513
17514# whether the shell understands "unset".
17515lt_unset=$lt_unset
17516
17517# turn spaces into newlines.
17518SP2NL=$lt_lt_SP2NL
17519
17520# turn newlines into spaces.
17521NL2SP=$lt_lt_NL2SP
17522
17523# convert \$build file names to \$host format.
17524to_host_file_cmd=$lt_cv_to_host_file_cmd
17525
17526# convert \$build files to toolchain format.
17527to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17528
17529# An object symbol dumper.
17530OBJDUMP=$lt_OBJDUMP
17531
17532# Method to check whether dependent libraries are shared objects.
17533deplibs_check_method=$lt_deplibs_check_method
17534
17535# Command to use when deplibs_check_method = "file_magic".
17536file_magic_cmd=$lt_file_magic_cmd
17537
17538# How to find potential files when deplibs_check_method = "file_magic".
17539file_magic_glob=$lt_file_magic_glob
17540
17541# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17542want_nocaseglob=$lt_want_nocaseglob
17543
17544# DLL creation program.
17545DLLTOOL=$lt_DLLTOOL
17546
17547# Command to associate shared and link libraries.
17548sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17549
17550# The archiver.
17551AR=$lt_AR
17552
17553# Flags to create an archive.
17554AR_FLAGS=$lt_AR_FLAGS
17555
17556# How to feed a file listing to the archiver.
17557archiver_list_spec=$lt_archiver_list_spec
17558
17559# A symbol stripping program.
17560STRIP=$lt_STRIP
17561
17562# Commands used to install an old-style archive.
17563RANLIB=$lt_RANLIB
17564old_postinstall_cmds=$lt_old_postinstall_cmds
17565old_postuninstall_cmds=$lt_old_postuninstall_cmds
17566
17567# Whether to use a lock for old archive extraction.
17568lock_old_archive_extraction=$lock_old_archive_extraction
17569
17570# A C compiler.
17571LTCC=$lt_CC
17572
17573# LTCC compiler flags.
17574LTCFLAGS=$lt_CFLAGS
17575
17576# Take the output of nm and produce a listing of raw symbols and C names.
17577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17578
17579# Transform the output of nm in a proper C declaration.
17580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17581
17582# Transform the output of nm into a list of symbols to manually relocate.
17583global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17584
17585# Transform the output of nm in a C name address pair.
17586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17587
17588# Transform the output of nm in a C name address pair when lib prefix is needed.
17589global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17590
17591# The name lister interface.
17592nm_interface=$lt_lt_cv_nm_interface
17593
17594# Specify filename containing input files for \$NM.
17595nm_file_list_spec=$lt_nm_file_list_spec
17596
17597# The root where to search for dependent libraries,and where our libraries should be installed.
17598lt_sysroot=$lt_sysroot
17599
17600# Command to truncate a binary pipe.
17601lt_truncate_bin=$lt_lt_cv_truncate_bin
17602
17603# The name of the directory that contains temporary libtool files.
17604objdir=$objdir
17605
17606# Used to examine libraries when file_magic_cmd begins with "file".
17607MAGIC_CMD=$MAGIC_CMD
17608
17609# Must we lock files when doing compilation?
17610need_locks=$lt_need_locks
17611
17612# Manifest tool.
17613MANIFEST_TOOL=$lt_MANIFEST_TOOL
17614
17615# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17616DSYMUTIL=$lt_DSYMUTIL
17617
17618# Tool to change global to local symbols on Mac OS X.
17619NMEDIT=$lt_NMEDIT
17620
17621# Tool to manipulate fat objects and archives on Mac OS X.
17622LIPO=$lt_LIPO
17623
17624# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17625OTOOL=$lt_OTOOL
17626
17627# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17628OTOOL64=$lt_OTOOL64
17629
17630# Old archive suffix (normally "a").
17631libext=$libext
17632
17633# Shared library suffix (normally ".so").
17634shrext_cmds=$lt_shrext_cmds
17635
17636# The commands to extract the exported symbol list from a shared archive.
17637extract_expsyms_cmds=$lt_extract_expsyms_cmds
17638
17639# Variables whose values should be saved in libtool wrapper scripts and
17640# restored at link time.
17641variables_saved_for_relink=$lt_variables_saved_for_relink
17642
17643# Do we need the "lib" prefix for modules?
17644need_lib_prefix=$need_lib_prefix
17645
17646# Do we need a version for libraries?
17647need_version=$need_version
17648
17649# Library versioning type.
17650version_type=$version_type
17651
17652# Shared library runtime path variable.
17653runpath_var=$runpath_var
17654
17655# Shared library path variable.
17656shlibpath_var=$shlibpath_var
17657
17658# Is shlibpath searched before the hard-coded library search path?
17659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17660
17661# Format of library name prefix.
17662libname_spec=$lt_libname_spec
17663
17664# List of archive names.  First name is the real one, the rest are links.
17665# The last name is the one that the linker finds with -lNAME
17666library_names_spec=$lt_library_names_spec
17667
17668# The coded name of the library, if different from the real name.
17669soname_spec=$lt_soname_spec
17670
17671# Permission mode override for installation of shared libraries.
17672install_override_mode=$lt_install_override_mode
17673
17674# Command to use after installation of a shared archive.
17675postinstall_cmds=$lt_postinstall_cmds
17676
17677# Command to use after uninstallation of a shared archive.
17678postuninstall_cmds=$lt_postuninstall_cmds
17679
17680# Commands used to finish a libtool library installation in a directory.
17681finish_cmds=$lt_finish_cmds
17682
17683# As "finish_cmds", except a single script fragment to be evaled but
17684# not shown.
17685finish_eval=$lt_finish_eval
17686
17687# Whether we should hardcode library paths into libraries.
17688hardcode_into_libs=$hardcode_into_libs
17689
17690# Compile-time system search path for libraries.
17691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17692
17693# Detected run-time system search path for libraries.
17694sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17695
17696# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17697configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17698
17699# Whether dlopen is supported.
17700dlopen_support=$enable_dlopen
17701
17702# Whether dlopen of programs is supported.
17703dlopen_self=$enable_dlopen_self
17704
17705# Whether dlopen of statically linked programs is supported.
17706dlopen_self_static=$enable_dlopen_self_static
17707
17708# Commands to strip libraries.
17709old_striplib=$lt_old_striplib
17710striplib=$lt_striplib
17711
17712
17713# The linker used to build libraries.
17714LD=$lt_LD
17715
17716# How to create reloadable object files.
17717reload_flag=$lt_reload_flag
17718reload_cmds=$lt_reload_cmds
17719
17720# Commands used to build an old-style archive.
17721old_archive_cmds=$lt_old_archive_cmds
17722
17723# A language specific compiler.
17724CC=$lt_compiler
17725
17726# Is the compiler the GNU compiler?
17727with_gcc=$GCC
17728
17729# Compiler flag to turn off builtin functions.
17730no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17731
17732# Additional compiler flags for building library objects.
17733pic_flag=$lt_lt_prog_compiler_pic
17734
17735# How to pass a linker flag through the compiler.
17736wl=$lt_lt_prog_compiler_wl
17737
17738# Compiler flag to prevent dynamic linking.
17739link_static_flag=$lt_lt_prog_compiler_static
17740
17741# Does compiler simultaneously support -c and -o options?
17742compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17743
17744# Whether or not to add -lc for building shared libraries.
17745build_libtool_need_lc=$archive_cmds_need_lc
17746
17747# Whether or not to disallow shared libs when runtime libs are static.
17748allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17749
17750# Compiler flag to allow reflexive dlopens.
17751export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17752
17753# Compiler flag to generate shared objects directly from archives.
17754whole_archive_flag_spec=$lt_whole_archive_flag_spec
17755
17756# Whether the compiler copes with passing no objects directly.
17757compiler_needs_object=$lt_compiler_needs_object
17758
17759# Create an old-style archive from a shared archive.
17760old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17761
17762# Create a temporary old-style archive to link instead of a shared archive.
17763old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17764
17765# Commands used to build a shared archive.
17766archive_cmds=$lt_archive_cmds
17767archive_expsym_cmds=$lt_archive_expsym_cmds
17768
17769# Commands used to build a loadable module if different from building
17770# a shared archive.
17771module_cmds=$lt_module_cmds
17772module_expsym_cmds=$lt_module_expsym_cmds
17773
17774# Whether we are building with GNU ld or not.
17775with_gnu_ld=$lt_with_gnu_ld
17776
17777# Flag that allows shared libraries with undefined symbols to be built.
17778allow_undefined_flag=$lt_allow_undefined_flag
17779
17780# Flag that enforces no undefined symbols.
17781no_undefined_flag=$lt_no_undefined_flag
17782
17783# Flag to hardcode \$libdir into a binary during linking.
17784# This must work even if \$libdir does not exist
17785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17786
17787# Whether we need a single "-rpath" flag with a separated argument.
17788hardcode_libdir_separator=$lt_hardcode_libdir_separator
17789
17790# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17791# DIR into the resulting binary.
17792hardcode_direct=$hardcode_direct
17793
17794# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17795# DIR into the resulting binary and the resulting library dependency is
17796# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17797# library is relocated.
17798hardcode_direct_absolute=$hardcode_direct_absolute
17799
17800# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17801# into the resulting binary.
17802hardcode_minus_L=$hardcode_minus_L
17803
17804# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17805# into the resulting binary.
17806hardcode_shlibpath_var=$hardcode_shlibpath_var
17807
17808# Set to "yes" if building a shared library automatically hardcodes DIR
17809# into the library and all subsequent libraries and executables linked
17810# against it.
17811hardcode_automatic=$hardcode_automatic
17812
17813# Set to yes if linker adds runtime paths of dependent libraries
17814# to runtime path list.
17815inherit_rpath=$inherit_rpath
17816
17817# Whether libtool must link a program against all its dependency libraries.
17818link_all_deplibs=$link_all_deplibs
17819
17820# Set to "yes" if exported symbols are required.
17821always_export_symbols=$always_export_symbols
17822
17823# The commands to list exported symbols.
17824export_symbols_cmds=$lt_export_symbols_cmds
17825
17826# Symbols that should not be listed in the preloaded symbols.
17827exclude_expsyms=$lt_exclude_expsyms
17828
17829# Symbols that must always be exported.
17830include_expsyms=$lt_include_expsyms
17831
17832# Commands necessary for linking programs (against libraries) with templates.
17833prelink_cmds=$lt_prelink_cmds
17834
17835# Commands necessary for finishing linking programs.
17836postlink_cmds=$lt_postlink_cmds
17837
17838# Specify filename containing input files.
17839file_list_spec=$lt_file_list_spec
17840
17841# How to hardcode a shared library path into an executable.
17842hardcode_action=$hardcode_action
17843
17844# ### END LIBTOOL CONFIG
17845
17846_LT_EOF
17847
17848    cat <<'_LT_EOF' >> "$cfgfile"
17849
17850# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17851
17852# func_munge_path_list VARIABLE PATH
17853# -----------------------------------
17854# VARIABLE is name of variable containing _space_ separated list of
17855# directories to be munged by the contents of PATH, which is string
17856# having a format:
17857# "DIR[:DIR]:"
17858#       string "DIR[ DIR]" will be prepended to VARIABLE
17859# ":DIR[:DIR]"
17860#       string "DIR[ DIR]" will be appended to VARIABLE
17861# "DIRP[:DIRP]::[DIRA:]DIRA"
17862#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17863#       "DIRA[ DIRA]" will be appended to VARIABLE
17864# "DIR[:DIR]"
17865#       VARIABLE will be replaced by "DIR[ DIR]"
17866func_munge_path_list ()
17867{
17868    case x$2 in
17869    x)
17870        ;;
17871    *:)
17872        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17873        ;;
17874    x:*)
17875        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17876        ;;
17877    *::*)
17878        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17879        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17880        ;;
17881    *)
17882        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17883        ;;
17884    esac
17885}
17886
17887
17888# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17889func_cc_basename ()
17890{
17891    for cc_temp in $*""; do
17892      case $cc_temp in
17893        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17894        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17895        \-*) ;;
17896        *) break;;
17897      esac
17898    done
17899    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17900}
17901
17902
17903# ### END FUNCTIONS SHARED WITH CONFIGURE
17904
17905_LT_EOF
17906
17907  case $host_os in
17908  aix3*)
17909    cat <<\_LT_EOF >> "$cfgfile"
17910# AIX sometimes has problems with the GCC collect2 program.  For some
17911# reason, if we set the COLLECT_NAMES environment variable, the problems
17912# vanish in a puff of smoke.
17913if test set != "${COLLECT_NAMES+set}"; then
17914  COLLECT_NAMES=
17915  export COLLECT_NAMES
17916fi
17917_LT_EOF
17918    ;;
17919  esac
17920
17921
17922ltmain=$ac_aux_dir/ltmain.sh
17923
17924
17925  # We use sed instead of cat because bash on DJGPP gets confused if
17926  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17927  # text mode, it properly converts lines to CR/LF.  This bash problem
17928  # is reportedly fixed, but why not run on old versions too?
17929  sed '$q' "$ltmain" >> "$cfgfile" \
17930     || (rm -f "$cfgfile"; exit 1)
17931
17932   mv -f "$cfgfile" "$ofile" ||
17933    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17934  chmod +x "$ofile"
17935
17936 ;;
17937
17938  esac
17939done # for ac_tag
17940
17941
17942as_fn_exit 0
17943_ACEOF
17944ac_clean_files=$ac_clean_files_save
17945
17946test $ac_write_fail = 0 ||
17947  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17948
17949
17950# configure is writing to config.log, and then calls config.status.
17951# config.status does its own redirection, appending to config.log.
17952# Unfortunately, on DOS this fails, as config.log is still kept open
17953# by configure, so config.status won't be able to write to it; its
17954# output is simply discarded.  So we exec the FD to /dev/null,
17955# effectively closing config.log, so it can be properly (re)opened and
17956# appended to by config.status.  When coming back to configure, we
17957# need to make the FD available again.
17958if test "$no_create" != yes; then
17959  ac_cs_success=:
17960  ac_config_status_args=
17961  test "$silent" = yes &&
17962    ac_config_status_args="$ac_config_status_args --quiet"
17963  exec 5>/dev/null
17964  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17965  exec 5>>config.log
17966  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17967  # would make configure fail if this is the last instruction.
17968  $ac_cs_success || as_fn_exit 1
17969fi
17970if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17971  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17972$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17973fi
17974
17975