1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/audiere.h"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os VERSION PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_FLAC_TRUE HAVE_FLAC_FALSE HAVE_DUMB_TRUE HAVE_DUMB_FALSE HAVE_LIBCDAUDIO_TRUE HAVE_LIBCDAUDIO_FALSE HAVE_AL_TRUE HAVE_AL_FALSE WX_CONFIG WX_LIBS WX_CPPFLAGS HAVE_WXWINDOWS_TRUE HAVE_WXWINDOWS_FALSE HAVE_OSS_TRUE HAVE_OSS_FALSE HAVE_OGG_TRUE HAVE_OGG_FALSE HAVE_SPEEX_TRUE HAVE_SPEEX_FALSE HAVE_DSOUND_TRUE HAVE_DSOUND_FALSE HAVE_WINMM_TRUE HAVE_WINMM_FALSE WORDS_BIGENDIAN EXTRA_LIBS LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016  --target=TARGET   configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --enable-debug          build debug
1028  --enable-opt            build with optimizations
1029  --disable-dependency-tracking  speeds up one-time build
1030  --enable-dependency-tracking   do not reject slow dependency extractors
1031  --enable-shared[=PKGS]
1032                          build shared libraries [default=yes]
1033  --enable-static[=PKGS]
1034                          build static libraries [default=yes]
1035  --enable-fast-install[=PKGS]
1036                          optimize for fast installation [default=yes]
1037  --disable-libtool-lock  avoid locking (might break parallel builds)
1038
1039Optional Packages:
1040  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1041  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1042  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1043  --with-pic              try to use only PIC/non-PIC objects [default=use
1044                          both]
1045  --with-tags[=TAGS]
1046                          include additional configurations [automatic]
1047
1048Some influential environment variables:
1049  CC          C compiler command
1050  CFLAGS      C compiler flags
1051  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052              nonstandard directory <lib dir>
1053  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054              headers in a nonstandard directory <include dir>
1055  CPP         C preprocessor
1056  CXX         C++ compiler command
1057  CXXFLAGS    C++ compiler flags
1058  CXXCPP      C++ preprocessor
1059  F77         Fortran 77 compiler command
1060  FFLAGS      Fortran 77 compiler flags
1061
1062Use these variables to override the choices made by `configure' or to help
1063it to find libraries and programs with nonstandard names/locations.
1064
1065_ACEOF
1066fi
1067
1068if test "$ac_init_help" = "recursive"; then
1069  # If there are subdirs, report their specific --help.
1070  ac_popdir=`pwd`
1071  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072    test -d $ac_dir || continue
1073    ac_builddir=.
1074
1075if test "$ac_dir" != .; then
1076  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077  # A "../" for each directory in $ac_dir_suffix.
1078  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079else
1080  ac_dir_suffix= ac_top_builddir=
1081fi
1082
1083case $srcdir in
1084  .)  # No --srcdir option.  We are building in place.
1085    ac_srcdir=.
1086    if test -z "$ac_top_builddir"; then
1087       ac_top_srcdir=.
1088    else
1089       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090    fi ;;
1091  [\\/]* | ?:[\\/]* )  # Absolute path.
1092    ac_srcdir=$srcdir$ac_dir_suffix;
1093    ac_top_srcdir=$srcdir ;;
1094  *) # Relative path.
1095    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097esac
1098
1099# Do not use `cd foo && pwd` to compute absolute paths, because
1100# the directories may not exist.
1101case `pwd` in
1102.) ac_abs_builddir="$ac_dir";;
1103*)
1104  case "$ac_dir" in
1105  .) ac_abs_builddir=`pwd`;;
1106  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108  esac;;
1109esac
1110case $ac_abs_builddir in
1111.) ac_abs_top_builddir=${ac_top_builddir}.;;
1112*)
1113  case ${ac_top_builddir}. in
1114  .) ac_abs_top_builddir=$ac_abs_builddir;;
1115  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117  esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_srcdir=$ac_srcdir;;
1121*)
1122  case $ac_srcdir in
1123  .) ac_abs_srcdir=$ac_abs_builddir;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126  esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_srcdir=$ac_top_srcdir;;
1130*)
1131  case $ac_top_srcdir in
1132  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135  esac;;
1136esac
1137
1138    cd $ac_dir
1139    # Check for guested configure; otherwise get Cygnus style configure.
1140    if test -f $ac_srcdir/configure.gnu; then
1141      echo
1142      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1143    elif test -f $ac_srcdir/configure; then
1144      echo
1145      $SHELL $ac_srcdir/configure  --help=recursive
1146    elif test -f $ac_srcdir/configure.ac ||
1147	   test -f $ac_srcdir/configure.in; then
1148      echo
1149      $ac_configure --help
1150    else
1151      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152    fi
1153    cd $ac_popdir
1154  done
1155fi
1156
1157test -n "$ac_init_help" && exit 0
1158if $ac_init_version; then
1159  cat <<\_ACEOF
1160
1161Copyright (C) 2003 Free Software Foundation, Inc.
1162This configure script is free software; the Free Software Foundation
1163gives unlimited permission to copy, distribute and modify it.
1164_ACEOF
1165  exit 0
1166fi
1167exec 5>config.log
1168cat >&5 <<_ACEOF
1169This file contains any messages produced by compilers while
1170running configure, to aid debugging if configure makes a mistake.
1171
1172It was created by $as_me, which was
1173generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175  $ $0 $@
1176
1177_ACEOF
1178{
1179cat <<_ASUNAME
1180## --------- ##
1181## Platform. ##
1182## --------- ##
1183
1184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201_ASUNAME
1202
1203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204for as_dir in $PATH
1205do
1206  IFS=$as_save_IFS
1207  test -z "$as_dir" && as_dir=.
1208  echo "PATH: $as_dir"
1209done
1210
1211} >&5
1212
1213cat >&5 <<_ACEOF
1214
1215
1216## ----------- ##
1217## Core tests. ##
1218## ----------- ##
1219
1220_ACEOF
1221
1222
1223# Keep a trace of the command line.
1224# Strip out --no-create and --no-recursion so they do not pile up.
1225# Strip out --silent because we don't want to record it for future runs.
1226# Also quote any args containing shell meta-characters.
1227# Make two passes to allow for proper duplicate-argument suppression.
1228ac_configure_args=
1229ac_configure_args0=
1230ac_configure_args1=
1231ac_sep=
1232ac_must_keep_next=false
1233for ac_pass in 1 2
1234do
1235  for ac_arg
1236  do
1237    case $ac_arg in
1238    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240    | -silent | --silent | --silen | --sile | --sil)
1241      continue ;;
1242    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244    esac
1245    case $ac_pass in
1246    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247    2)
1248      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249      if test $ac_must_keep_next = true; then
1250	ac_must_keep_next=false # Got value, back to normal.
1251      else
1252	case $ac_arg in
1253	  *=* | --config-cache | -C | -disable-* | --disable-* \
1254	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256	  | -with-* | --with-* | -without-* | --without-* | --x)
1257	    case "$ac_configure_args0 " in
1258	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259	    esac
1260	    ;;
1261	  -* ) ac_must_keep_next=true ;;
1262	esac
1263      fi
1264      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265      # Get rid of the leading space.
1266      ac_sep=" "
1267      ;;
1268    esac
1269  done
1270done
1271$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274# When interrupted or exit'd, cleanup temporary files, and complete
1275# config.log.  We remove comments because anyway the quotes in there
1276# would cause problems or look ugly.
1277# WARNING: Be sure not to use single quotes in there, as some shells,
1278# such as our DU 5.0 friend, will then `close' the trap.
1279trap 'exit_status=$?
1280  # Save into config.log some information that might help in debugging.
1281  {
1282    echo
1283
1284    cat <<\_ASBOX
1285## ---------------- ##
1286## Cache variables. ##
1287## ---------------- ##
1288_ASBOX
1289    echo
1290    # The following way of writing the cache mishandles newlines in values,
1291{
1292  (set) 2>&1 |
1293    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294    *ac_space=\ *)
1295      sed -n \
1296	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298      ;;
1299    *)
1300      sed -n \
1301	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302      ;;
1303    esac;
1304}
1305    echo
1306
1307    cat <<\_ASBOX
1308## ----------------- ##
1309## Output variables. ##
1310## ----------------- ##
1311_ASBOX
1312    echo
1313    for ac_var in $ac_subst_vars
1314    do
1315      eval ac_val=$`echo $ac_var`
1316      echo "$ac_var='"'"'$ac_val'"'"'"
1317    done | sort
1318    echo
1319
1320    if test -n "$ac_subst_files"; then
1321      cat <<\_ASBOX
1322## ------------- ##
1323## Output files. ##
1324## ------------- ##
1325_ASBOX
1326      echo
1327      for ac_var in $ac_subst_files
1328      do
1329	eval ac_val=$`echo $ac_var`
1330	echo "$ac_var='"'"'$ac_val'"'"'"
1331      done | sort
1332      echo
1333    fi
1334
1335    if test -s confdefs.h; then
1336      cat <<\_ASBOX
1337## ----------- ##
1338## confdefs.h. ##
1339## ----------- ##
1340_ASBOX
1341      echo
1342      sed "/^$/d" confdefs.h | sort
1343      echo
1344    fi
1345    test "$ac_signal" != 0 &&
1346      echo "$as_me: caught signal $ac_signal"
1347    echo "$as_me: exit $exit_status"
1348  } >&5
1349  rm -f core *.core &&
1350  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351    exit $exit_status
1352     ' 0
1353for ac_signal in 1 2 13 15; do
1354  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355done
1356ac_signal=0
1357
1358# confdefs.h avoids OS command line length limits that DEFS can exceed.
1359rm -rf conftest* confdefs.h
1360# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361echo >confdefs.h
1362
1363# Predefined preprocessor variables.
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_NAME "$PACKAGE_NAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_VERSION "$PACKAGE_VERSION"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_STRING "$PACKAGE_STRING"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387_ACEOF
1388
1389
1390# Let the site file select an alternate cache file if it wants to.
1391# Prefer explicitly selected file to automatically selected ones.
1392if test -z "$CONFIG_SITE"; then
1393  if test "x$prefix" != xNONE; then
1394    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395  else
1396    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397  fi
1398fi
1399for ac_site_file in $CONFIG_SITE; do
1400  if test -r "$ac_site_file"; then
1401    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402echo "$as_me: loading site script $ac_site_file" >&6;}
1403    sed 's/^/| /' "$ac_site_file" >&5
1404    . "$ac_site_file"
1405  fi
1406done
1407
1408if test -r "$cache_file"; then
1409  # Some versions of bash will fail to source /dev/null (special
1410  # files actually), so we avoid doing that.
1411  if test -f "$cache_file"; then
1412    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413echo "$as_me: loading cache $cache_file" >&6;}
1414    case $cache_file in
1415      [\\/]* | ?:[\\/]* ) . $cache_file;;
1416      *)                      . ./$cache_file;;
1417    esac
1418  fi
1419else
1420  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421echo "$as_me: creating cache $cache_file" >&6;}
1422  >$cache_file
1423fi
1424
1425# Check that the precious variables saved in the cache have kept the same
1426# value.
1427ac_cache_corrupted=false
1428for ac_var in `(set) 2>&1 |
1429	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431  eval ac_new_set=\$ac_env_${ac_var}_set
1432  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433  eval ac_new_val="\$ac_env_${ac_var}_value"
1434  case $ac_old_set,$ac_new_set in
1435    set,)
1436      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438      ac_cache_corrupted=: ;;
1439    ,set)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,);;
1444    *)
1445      if test "x$ac_old_val" != "x$ac_new_val"; then
1446	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449echo "$as_me:   former value:  $ac_old_val" >&2;}
1450	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451echo "$as_me:   current value: $ac_new_val" >&2;}
1452	ac_cache_corrupted=:
1453      fi;;
1454  esac
1455  # Pass precious variables to config.status.
1456  if test "$ac_new_set" = set; then
1457    case $ac_new_val in
1458    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460    *) ac_arg=$ac_var=$ac_new_val ;;
1461    esac
1462    case " $ac_configure_args " in
1463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465    esac
1466  fi
1467done
1468if $ac_cache_corrupted; then
1469  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473   { (exit 1); exit 1; }; }
1474fi
1475
1476ac_ext=c
1477ac_cpp='$CPP $CPPFLAGS'
1478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500ac_aux_dir=
1501for ac_dir in config $srcdir/config; do
1502  if test -f $ac_dir/install-sh; then
1503    ac_aux_dir=$ac_dir
1504    ac_install_sh="$ac_aux_dir/install-sh -c"
1505    break
1506  elif test -f $ac_dir/install.sh; then
1507    ac_aux_dir=$ac_dir
1508    ac_install_sh="$ac_aux_dir/install.sh -c"
1509    break
1510  elif test -f $ac_dir/shtool; then
1511    ac_aux_dir=$ac_dir
1512    ac_install_sh="$ac_aux_dir/shtool install -c"
1513    break
1514  fi
1515done
1516if test -z "$ac_aux_dir"; then
1517  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1518echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1519   { (exit 1); exit 1; }; }
1520fi
1521ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530   { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539  ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543   { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547   { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565  ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569   { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583  echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585  ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587  ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591   { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605  test "$program_prefix$program_suffix$program_transform_name" = \
1606    NONENONEs,x,x, &&
1607  program_prefix=${target_alias}-
1608
1609VERSION=1.9.4
1610PACKAGE="audiere"
1611
1612
1613
1614
1615am__api_version="1.9"
1616# Find a good install program.  We prefer a C program (faster),
1617# so one script is as good as another.  But avoid the broken or
1618# incompatible versions:
1619# SysV /etc/install, /usr/sbin/install
1620# SunOS /usr/etc/install
1621# IRIX /sbin/install
1622# AIX /bin/install
1623# AmigaOS /C/install, which installs bootblocks on floppy discs
1624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627# OS/2's system install, which has a completely different semantic
1628# ./install, which can be erroneously created by make from ./install.sh.
1629echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1631if test -z "$INSTALL"; then
1632if test "${ac_cv_path_install+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  # Account for people who put trailing slashes in PATH elements.
1641case $as_dir/ in
1642  ./ | .// | /cC/* | \
1643  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1645  /usr/ucb/* ) ;;
1646  *)
1647    # OSF1 and SCO ODT 3.0 have their own names for install.
1648    # Don't use installbsd from OSF since it installs stuff as root
1649    # by default.
1650    for ac_prog in ginstall scoinst install; do
1651      for ac_exec_ext in '' $ac_executable_extensions; do
1652	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1653	  if test $ac_prog = install &&
1654	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655	    # AIX install.  It has an incompatible calling convention.
1656	    :
1657	  elif test $ac_prog = install &&
1658	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659	    # program-specific install script used by HP pwplus--don't use.
1660	    :
1661	  else
1662	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663	    break 3
1664	  fi
1665	fi
1666      done
1667    done
1668    ;;
1669esac
1670done
1671
1672
1673fi
1674  if test "${ac_cv_path_install+set}" = set; then
1675    INSTALL=$ac_cv_path_install
1676  else
1677    # As a last resort, use the slow shell script.  We don't cache a
1678    # path for INSTALL within a source directory, because that will
1679    # break other packages using the cache if that directory is
1680    # removed, or if the path is relative.
1681    INSTALL=$ac_install_sh
1682  fi
1683fi
1684echo "$as_me:$LINENO: result: $INSTALL" >&5
1685echo "${ECHO_T}$INSTALL" >&6
1686
1687# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688# It thinks the first close brace ends the variable substitution.
1689test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690
1691test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1692
1693test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694
1695echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1697# Just in case
1698sleep 1
1699echo timestamp > conftest.file
1700# Do `set' in a subshell so we don't clobber the current shell's
1701# arguments.  Must try -L first in case configure is actually a
1702# symlink; some systems play weird games with the mod time of symlinks
1703# (eg FreeBSD returns the mod time of the symlink's containing
1704# directory).
1705if (
1706   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1707   if test "$*" = "X"; then
1708      # -L didn't work.
1709      set X `ls -t $srcdir/configure conftest.file`
1710   fi
1711   rm -f conftest.file
1712   if test "$*" != "X $srcdir/configure conftest.file" \
1713      && test "$*" != "X conftest.file $srcdir/configure"; then
1714
1715      # If neither matched, then we have a broken ls.  This can happen
1716      # if, for instance, CONFIG_SHELL is bash and it inherits a
1717      # broken ls alias from the environment.  This has actually
1718      # happened.  Such a system could not be considered "sane".
1719      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1720alias in your environment" >&5
1721echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1722alias in your environment" >&2;}
1723   { (exit 1); exit 1; }; }
1724   fi
1725
1726   test "$2" = conftest.file
1727   )
1728then
1729   # Ok.
1730   :
1731else
1732   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733Check your system clock" >&5
1734echo "$as_me: error: newly created file is older than distributed files!
1735Check your system clock" >&2;}
1736   { (exit 1); exit 1; }; }
1737fi
1738echo "$as_me:$LINENO: result: yes" >&5
1739echo "${ECHO_T}yes" >&6
1740test "$program_prefix" != NONE &&
1741  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742# Use a double $ so make ignores it.
1743test "$program_suffix" != NONE &&
1744  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745# Double any \ or $.  echo might interpret backslashes.
1746# By default was `s,x,x', remove it if useless.
1747cat <<\_ACEOF >conftest.sed
1748s/[\\$]/&&/g;s/;s,x,x,$//
1749_ACEOF
1750program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751rm conftest.sed
1752
1753# expand $ac_aux_dir to an absolute path
1754am_aux_dir=`cd $ac_aux_dir && pwd`
1755
1756test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757# Use eval to expand $SHELL
1758if eval "$MISSING --run true"; then
1759  am_missing_run="$MISSING --run "
1760else
1761  am_missing_run=
1762  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1764fi
1765
1766if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1767  # We used to keeping the `.' as first argument, in order to
1768  # allow $(mkdir_p) to be used without argument.  As in
1769  #   $(mkdir_p) $(somedir)
1770  # where $(somedir) is conditionally defined.  However this is wrong
1771  # for two reasons:
1772  #  1. if the package is installed by a user who cannot write `.'
1773  #     make install will fail,
1774  #  2. the above comment should most certainly read
1775  #     $(mkdir_p) $(DESTDIR)$(somedir)
1776  #     so it does not work when $(somedir) is undefined and
1777  #     $(DESTDIR) is not.
1778  #  To support the latter case, we have to write
1779  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780  #  so the `.' trick is pointless.
1781  mkdir_p='mkdir -p --'
1782else
1783  # On NextStep and OpenStep, the `mkdir' command does not
1784  # recognize any option.  It will interpret all options as
1785  # directories to create, and then abort because `.' already
1786  # exists.
1787  for d in ./-p ./--version;
1788  do
1789    test -d $d && rmdir $d
1790  done
1791  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792  if test -f "$ac_aux_dir/mkinstalldirs"; then
1793    mkdir_p='$(mkinstalldirs)'
1794  else
1795    mkdir_p='$(install_sh) -d'
1796  fi
1797fi
1798
1799for ac_prog in gawk mawk nawk awk
1800do
1801  # Extract the first word of "$ac_prog", so it can be a program name with args.
1802set dummy $ac_prog; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_AWK+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  if test -n "$AWK"; then
1809  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814  IFS=$as_save_IFS
1815  test -z "$as_dir" && as_dir=.
1816  for ac_exec_ext in '' $ac_executable_extensions; do
1817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818    ac_cv_prog_AWK="$ac_prog"
1819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820    break 2
1821  fi
1822done
1823done
1824
1825fi
1826fi
1827AWK=$ac_cv_prog_AWK
1828if test -n "$AWK"; then
1829  echo "$as_me:$LINENO: result: $AWK" >&5
1830echo "${ECHO_T}$AWK" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836  test -n "$AWK" && break
1837done
1838
1839echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843  echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845  cat >conftest.make <<\_ACEOF
1846all:
1847	@echo 'ac_maketemp="$(MAKE)"'
1848_ACEOF
1849# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1850eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1851if test -n "$ac_maketemp"; then
1852  eval ac_cv_prog_make_${ac_make}_set=yes
1853else
1854  eval ac_cv_prog_make_${ac_make}_set=no
1855fi
1856rm -f conftest.make
1857fi
1858if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1859  echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
1861  SET_MAKE=
1862else
1863  echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865  SET_MAKE="MAKE=${MAKE-make}"
1866fi
1867
1868rm -rf .tst 2>/dev/null
1869mkdir .tst 2>/dev/null
1870if test -d .tst; then
1871  am__leading_dot=.
1872else
1873  am__leading_dot=_
1874fi
1875rmdir .tst 2>/dev/null
1876
1877# test to see if srcdir already configured
1878if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879   test -f $srcdir/config.status; then
1880  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885# test whether we have cygpath
1886if test -z "$CYGPATH_W"; then
1887  if (cygpath --version) >/dev/null 2>/dev/null; then
1888    CYGPATH_W='cygpath -w'
1889  else
1890    CYGPATH_W=echo
1891  fi
1892fi
1893
1894
1895# Define the identity of the package.
1896 PACKAGE=$PACKAGE
1897 VERSION=$VERSION
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE "$PACKAGE"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define VERSION "$VERSION"
1907_ACEOF
1908
1909# Some tools Automake needs.
1910
1911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1912
1913
1914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1915
1916
1917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1918
1919
1920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1921
1922
1923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924
1925install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
1927# Installed binaries are usually stripped using `strip' when the user
1928# run `make install-strip'.  However `strip' might not be the right
1929# tool to use in cross-compilation environments, therefore Automake
1930# will honor the `STRIP' environment variable to overrule this program.
1931if test "$cross_compiling" != no; then
1932  if test -n "$ac_tool_prefix"; then
1933  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934set dummy ${ac_tool_prefix}strip; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_STRIP+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$STRIP"; then
1941  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956
1957fi
1958fi
1959STRIP=$ac_cv_prog_STRIP
1960if test -n "$STRIP"; then
1961  echo "$as_me:$LINENO: result: $STRIP" >&5
1962echo "${ECHO_T}$STRIP" >&6
1963else
1964  echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968fi
1969if test -z "$ac_cv_prog_STRIP"; then
1970  ac_ct_STRIP=$STRIP
1971  # Extract the first word of "strip", so it can be a program name with args.
1972set dummy strip; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$ac_ct_STRIP"; then
1979  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    ac_cv_prog_ac_ct_STRIP="strip"
1989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990    break 2
1991  fi
1992done
1993done
1994
1995  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1996fi
1997fi
1998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999if test -n "$ac_ct_STRIP"; then
2000  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001echo "${ECHO_T}$ac_ct_STRIP" >&6
2002else
2003  echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007  STRIP=$ac_ct_STRIP
2008else
2009  STRIP="$ac_cv_prog_STRIP"
2010fi
2011
2012fi
2013INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
2015# We need awk for the "check" target.  The system "awk" is bad on
2016# some platforms.
2017# Always define AMTAR for backward compatibility.
2018
2019AMTAR=${AMTAR-"${am_missing_run}tar"}
2020
2021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2022
2023
2024
2025
2026
2027
2028
2029# Check whether --enable-debug or --disable-debug was given.
2030if test "${enable_debug+set}" = set; then
2031  enableval="$enable_debug"
2032  CFLAGS="$CFLAGS -g"
2033    CXXFLAGS="$CXXFLAGS -g"
2034    cat >>confdefs.h <<\_ACEOF
2035#define DEBUG 1
2036_ACEOF
2037
2038fi;
2039
2040# Check whether --enable-opt or --disable-opt was given.
2041if test "${enable_opt+set}" = set; then
2042  enableval="$enable_opt"
2043  CFLAGS="$CFLAGS -O2"
2044    CXXFLAGS="$CXXFLAGS -O2"
2045fi;
2046
2047
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053if test -n "$ac_tool_prefix"; then
2054  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2055set dummy ${ac_tool_prefix}gcc; ac_word=$2
2056echo "$as_me:$LINENO: checking for $ac_word" >&5
2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058if test "${ac_cv_prog_CC+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  if test -n "$CC"; then
2062  ac_cv_prog_CC="$CC" # Let the user override the test.
2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069  for ac_exec_ext in '' $ac_executable_extensions; do
2070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  echo "$as_me:$LINENO: result: $CC" >&5
2083echo "${ECHO_T}$CC" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089fi
2090if test -z "$ac_cv_prog_CC"; then
2091  ac_ct_CC=$CC
2092  # Extract the first word of "gcc", so it can be a program name with args.
2093set dummy gcc; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$ac_ct_CC"; then
2100  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_ac_ct_CC="gcc"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119if test -n "$ac_ct_CC"; then
2120  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121echo "${ECHO_T}$ac_ct_CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127  CC=$ac_ct_CC
2128else
2129  CC="$ac_cv_prog_CC"
2130fi
2131
2132if test -z "$CC"; then
2133  if test -n "$ac_tool_prefix"; then
2134  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2135set dummy ${ac_tool_prefix}cc; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$CC"; then
2142  ac_cv_prog_CC="$CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_CC="${ac_tool_prefix}cc"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160CC=$ac_cv_prog_CC
2161if test -n "$CC"; then
2162  echo "$as_me:$LINENO: result: $CC" >&5
2163echo "${ECHO_T}$CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169fi
2170if test -z "$ac_cv_prog_CC"; then
2171  ac_ct_CC=$CC
2172  # Extract the first word of "cc", so it can be a program name with args.
2173set dummy cc; ac_word=$2
2174echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177  echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179  if test -n "$ac_ct_CC"; then
2180  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185  IFS=$as_save_IFS
2186  test -z "$as_dir" && as_dir=.
2187  for ac_exec_ext in '' $ac_executable_extensions; do
2188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189    ac_cv_prog_ac_ct_CC="cc"
2190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191    break 2
2192  fi
2193done
2194done
2195
2196fi
2197fi
2198ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199if test -n "$ac_ct_CC"; then
2200  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201echo "${ECHO_T}$ac_ct_CC" >&6
2202else
2203  echo "$as_me:$LINENO: result: no" >&5
2204echo "${ECHO_T}no" >&6
2205fi
2206
2207  CC=$ac_ct_CC
2208else
2209  CC="$ac_cv_prog_CC"
2210fi
2211
2212fi
2213if test -z "$CC"; then
2214  # Extract the first word of "cc", so it can be a program name with args.
2215set dummy cc; ac_word=$2
2216echo "$as_me:$LINENO: checking for $ac_word" >&5
2217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218if test "${ac_cv_prog_CC+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  if test -n "$CC"; then
2222  ac_cv_prog_CC="$CC" # Let the user override the test.
2223else
2224  ac_prog_rejected=no
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228  IFS=$as_save_IFS
2229  test -z "$as_dir" && as_dir=.
2230  for ac_exec_ext in '' $ac_executable_extensions; do
2231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2233       ac_prog_rejected=yes
2234       continue
2235     fi
2236    ac_cv_prog_CC="cc"
2237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238    break 2
2239  fi
2240done
2241done
2242
2243if test $ac_prog_rejected = yes; then
2244  # We found a bogon in the path, so make sure we never use it.
2245  set dummy $ac_cv_prog_CC
2246  shift
2247  if test $# != 0; then
2248    # We chose a different compiler from the bogus one.
2249    # However, it has the same basename, so the bogon will be chosen
2250    # first if we set CC to just the basename; use the full file name.
2251    shift
2252    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2253  fi
2254fi
2255fi
2256fi
2257CC=$ac_cv_prog_CC
2258if test -n "$CC"; then
2259  echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6
2261else
2262  echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6
2264fi
2265
2266fi
2267if test -z "$CC"; then
2268  if test -n "$ac_tool_prefix"; then
2269  for ac_prog in cl
2270  do
2271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2273echo "$as_me:$LINENO: checking for $ac_word" >&5
2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275if test "${ac_cv_prog_CC+set}" = set; then
2276  echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278  if test -n "$CC"; then
2279  ac_cv_prog_CC="$CC" # Let the user override the test.
2280else
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284  IFS=$as_save_IFS
2285  test -z "$as_dir" && as_dir=.
2286  for ac_exec_ext in '' $ac_executable_extensions; do
2287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290    break 2
2291  fi
2292done
2293done
2294
2295fi
2296fi
2297CC=$ac_cv_prog_CC
2298if test -n "$CC"; then
2299  echo "$as_me:$LINENO: result: $CC" >&5
2300echo "${ECHO_T}$CC" >&6
2301else
2302  echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6
2304fi
2305
2306    test -n "$CC" && break
2307  done
2308fi
2309if test -z "$CC"; then
2310  ac_ct_CC=$CC
2311  for ac_prog in cl
2312do
2313  # Extract the first word of "$ac_prog", so it can be a program name with args.
2314set dummy $ac_prog; ac_word=$2
2315echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  if test -n "$ac_ct_CC"; then
2321  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330    ac_cv_prog_ac_ct_CC="$ac_prog"
2331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335done
2336
2337fi
2338fi
2339ac_ct_CC=$ac_cv_prog_ac_ct_CC
2340if test -n "$ac_ct_CC"; then
2341  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2342echo "${ECHO_T}$ac_ct_CC" >&6
2343else
2344  echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6
2346fi
2347
2348  test -n "$ac_ct_CC" && break
2349done
2350
2351  CC=$ac_ct_CC
2352fi
2353
2354fi
2355
2356
2357test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: no acceptable C compiler found in \$PATH
2360See \`config.log' for more details." >&2;}
2361   { (exit 1); exit 1; }; }
2362
2363# Provide some information about the compiler.
2364echo "$as_me:$LINENO:" \
2365     "checking for C compiler version" >&5
2366ac_compiler=`set X $ac_compile; echo $2`
2367{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2368  (eval $ac_compiler --version </dev/null >&5) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }
2372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2373  (eval $ac_compiler -v </dev/null >&5) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }
2377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2378  (eval $ac_compiler -V </dev/null >&5) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }
2382
2383cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h.  */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h.  */
2389
2390int
2391main ()
2392{
2393
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398ac_clean_files_save=$ac_clean_files
2399ac_clean_files="$ac_clean_files a.out a.exe b.out"
2400# Try to create an executable without -o first, disregard a.out.
2401# It will help us diagnose broken compilers, and finding out an intuition
2402# of exeext.
2403echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2404echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2405ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2406if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2407  (eval $ac_link_default) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; then
2411  # Find the output, starting from the most likely.  This scheme is
2412# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2413# resort.
2414
2415# Be careful to initialize this variable, since it used to be cached.
2416# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2417ac_cv_exeext=
2418# b.out is created by i960 compilers.
2419for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2420do
2421  test -f "$ac_file" || continue
2422  case $ac_file in
2423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2424	;;
2425    conftest.$ac_ext )
2426	# This is the source file.
2427	;;
2428    [ab].out )
2429	# We found the default executable, but exeext='' is most
2430	# certainly right.
2431	break;;
2432    *.* )
2433	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2434	# FIXME: I believe we export ac_cv_exeext for Libtool,
2435	# but it would be cool to find out if it's true.  Does anybody
2436	# maintain Libtool? --akim.
2437	export ac_cv_exeext
2438	break;;
2439    * )
2440	break;;
2441  esac
2442done
2443else
2444  echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2448See \`config.log' for more details." >&5
2449echo "$as_me: error: C compiler cannot create executables
2450See \`config.log' for more details." >&2;}
2451   { (exit 77); exit 77; }; }
2452fi
2453
2454ac_exeext=$ac_cv_exeext
2455echo "$as_me:$LINENO: result: $ac_file" >&5
2456echo "${ECHO_T}$ac_file" >&6
2457
2458# Check the compiler produces executables we can run.  If not, either
2459# the compiler is broken, or we cross compile.
2460echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2461echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2462# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2463# If not cross compiling, check that we can run a simple program.
2464if test "$cross_compiling" != yes; then
2465  if { ac_try='./$ac_file'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471    cross_compiling=no
2472  else
2473    if test "$cross_compiling" = maybe; then
2474	cross_compiling=yes
2475    else
2476	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477If you meant to cross compile, use \`--host'.
2478See \`config.log' for more details." >&5
2479echo "$as_me: error: cannot run C compiled programs.
2480If you meant to cross compile, use \`--host'.
2481See \`config.log' for more details." >&2;}
2482   { (exit 1); exit 1; }; }
2483    fi
2484  fi
2485fi
2486echo "$as_me:$LINENO: result: yes" >&5
2487echo "${ECHO_T}yes" >&6
2488
2489rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490ac_clean_files=$ac_clean_files_save
2491# Check the compiler produces executables we can run.  If not, either
2492# the compiler is broken, or we cross compile.
2493echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2495echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496echo "${ECHO_T}$cross_compiling" >&6
2497
2498echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501  (eval $ac_link) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }; then
2505  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2506# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2507# work properly (i.e., refer to `conftest.exe'), while it won't with
2508# `rm'.
2509for ac_file in conftest.exe conftest conftest.*; do
2510  test -f "$ac_file" || continue
2511  case $ac_file in
2512    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2513    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2514	  export ac_cv_exeext
2515	  break;;
2516    * ) break;;
2517  esac
2518done
2519else
2520  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2521See \`config.log' for more details." >&5
2522echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2523See \`config.log' for more details." >&2;}
2524   { (exit 1); exit 1; }; }
2525fi
2526
2527rm -f conftest$ac_cv_exeext
2528echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2529echo "${ECHO_T}$ac_cv_exeext" >&6
2530
2531rm -f conftest.$ac_ext
2532EXEEXT=$ac_cv_exeext
2533ac_exeext=$EXEEXT
2534echo "$as_me:$LINENO: checking for suffix of object files" >&5
2535echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2536if test "${ac_cv_objext+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545
2546int
2547main ()
2548{
2549
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554rm -f conftest.o conftest.obj
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; then
2560  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2561  case $ac_file in
2562    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2563    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2564       break;;
2565  esac
2566done
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2572See \`config.log' for more details." >&5
2573echo "$as_me: error: cannot compute suffix of object files: cannot compile
2574See \`config.log' for more details." >&2;}
2575   { (exit 1); exit 1; }; }
2576fi
2577
2578rm -f conftest.$ac_cv_objext conftest.$ac_ext
2579fi
2580echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2581echo "${ECHO_T}$ac_cv_objext" >&6
2582OBJEXT=$ac_cv_objext
2583ac_objext=$OBJEXT
2584echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587  echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589  cat >conftest.$ac_ext <<_ACEOF
2590/* confdefs.h.  */
2591_ACEOF
2592cat confdefs.h >>conftest.$ac_ext
2593cat >>conftest.$ac_ext <<_ACEOF
2594/* end confdefs.h.  */
2595
2596int
2597main ()
2598{
2599#ifndef __GNUC__
2600       choke me
2601#endif
2602
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616	 { ac_try='test -z "$ac_c_werror_flag"
2617			 || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623	 { ac_try='test -s conftest.$ac_objext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  ac_compiler_gnu=yes
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634ac_compiler_gnu=no
2635fi
2636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637ac_cv_c_compiler_gnu=$ac_compiler_gnu
2638
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2641echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2642GCC=`test $ac_compiler_gnu = yes && echo yes`
2643ac_test_CFLAGS=${CFLAGS+set}
2644ac_save_CFLAGS=$CFLAGS
2645CFLAGS="-g"
2646echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2647echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2648if test "${ac_cv_prog_cc_g+set}" = set; then
2649  echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657
2658int
2659main ()
2660{
2661
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675	 { ac_try='test -z "$ac_c_werror_flag"
2676			 || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682	 { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  ac_cv_prog_cc_g=yes
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693ac_cv_prog_cc_g=no
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2699if test "$ac_test_CFLAGS" = set; then
2700  CFLAGS=$ac_save_CFLAGS
2701elif test $ac_cv_prog_cc_g = yes; then
2702  if test "$GCC" = yes; then
2703    CFLAGS="-g -O2"
2704  else
2705    CFLAGS="-g"
2706  fi
2707else
2708  if test "$GCC" = yes; then
2709    CFLAGS="-O2"
2710  else
2711    CFLAGS=
2712  fi
2713fi
2714echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2715echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2716if test "${ac_cv_prog_cc_stdc+set}" = set; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  ac_cv_prog_cc_stdc=no
2720ac_save_CC=$CC
2721cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727#include <stdarg.h>
2728#include <stdio.h>
2729#include <sys/types.h>
2730#include <sys/stat.h>
2731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2732struct buf { int x; };
2733FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734static char *e (p, i)
2735     char **p;
2736     int i;
2737{
2738  return p[i];
2739}
2740static char *f (char * (*g) (char **, int), char **p, ...)
2741{
2742  char *s;
2743  va_list v;
2744  va_start (v,p);
2745  s = g (p, va_arg (v,int));
2746  va_end (v);
2747  return s;
2748}
2749
2750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2751   function prototypes and stuff, but not '\xHH' hex character constants.
2752   These don't provoke an error unfortunately, instead are silently treated
2753   as 'x'.  The following induces an error, until -std1 is added to get
2754   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2755   array size at least.  It's necessary to write '\x00'==0 to get something
2756   that's true only with -std1.  */
2757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2758
2759int test (int i, double x);
2760struct s1 {int (*f) (int a);};
2761struct s2 {int (*f) (double a);};
2762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763int argc;
2764char **argv;
2765int
2766main ()
2767{
2768return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2769  ;
2770  return 0;
2771}
2772_ACEOF
2773# Don't try gcc -ansi; that turns off useful extensions and
2774# breaks some systems' header files.
2775# AIX			-qlanglvl=ansi
2776# Ultrix and OSF/1	-std1
2777# HP-UX 10.20 and later	-Ae
2778# HP-UX older versions	-Aa -D_HPUX_SOURCE
2779# SVR4			-Xc -D__EXTENSIONS__
2780for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2781do
2782  CC="$ac_save_CC $ac_arg"
2783  rm -f conftest.$ac_objext
2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785  (eval $ac_compile) 2>conftest.er1
2786  ac_status=$?
2787  grep -v '^ *+' conftest.er1 >conftest.err
2788  rm -f conftest.er1
2789  cat conftest.err >&5
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); } &&
2792	 { ac_try='test -z "$ac_c_werror_flag"
2793			 || test ! -s conftest.err'
2794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795  (eval $ac_try) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }; } &&
2799	 { ac_try='test -s conftest.$ac_objext'
2800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801  (eval $ac_try) 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); }; }; then
2805  ac_cv_prog_cc_stdc=$ac_arg
2806break
2807else
2808  echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811fi
2812rm -f conftest.err conftest.$ac_objext
2813done
2814rm -f conftest.$ac_ext conftest.$ac_objext
2815CC=$ac_save_CC
2816
2817fi
2818
2819case "x$ac_cv_prog_cc_stdc" in
2820  x|xno)
2821    echo "$as_me:$LINENO: result: none needed" >&5
2822echo "${ECHO_T}none needed" >&6 ;;
2823  *)
2824    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2825echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2826    CC="$CC $ac_cv_prog_cc_stdc" ;;
2827esac
2828
2829# Some people use a C++ compiler to compile C.  Since we use `exit',
2830# in C++ we need to declare it.  In case someone uses the same compiler
2831# for both compiling C and C++ we need to have the C++ compiler decide
2832# the declaration of exit, since it's the most demanding environment.
2833cat >conftest.$ac_ext <<_ACEOF
2834#ifndef __cplusplus
2835  choke me
2836#endif
2837_ACEOF
2838rm -f conftest.$ac_objext
2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840  (eval $ac_compile) 2>conftest.er1
2841  ac_status=$?
2842  grep -v '^ *+' conftest.er1 >conftest.err
2843  rm -f conftest.er1
2844  cat conftest.err >&5
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); } &&
2847	 { ac_try='test -z "$ac_c_werror_flag"
2848			 || test ! -s conftest.err'
2849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }; } &&
2854	 { ac_try='test -s conftest.$ac_objext'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; }; then
2860  for ac_declaration in \
2861   '' \
2862   'extern "C" void std::exit (int) throw (); using std::exit;' \
2863   'extern "C" void std::exit (int); using std::exit;' \
2864   'extern "C" void exit (int) throw ();' \
2865   'extern "C" void exit (int);' \
2866   'void exit (int);'
2867do
2868  cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874$ac_declaration
2875#include <stdlib.h>
2876int
2877main ()
2878{
2879exit (42);
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext
2885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886  (eval $ac_compile) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893	 { ac_try='test -z "$ac_c_werror_flag"
2894			 || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900	 { ac_try='test -s conftest.$ac_objext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911continue
2912fi
2913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914  cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920$ac_declaration
2921int
2922main ()
2923{
2924exit (42);
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931  (eval $ac_compile) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } &&
2938	 { ac_try='test -z "$ac_c_werror_flag"
2939			 || test ! -s conftest.err'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; } &&
2945	 { ac_try='test -s conftest.$ac_objext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  break
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956fi
2957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958done
2959rm -f conftest*
2960if test -n "$ac_declaration"; then
2961  echo '#ifdef __cplusplus' >>confdefs.h
2962  echo $ac_declaration      >>confdefs.h
2963  echo '#endif'             >>confdefs.h
2964fi
2965
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970fi
2971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972ac_ext=c
2973ac_cpp='$CPP $CPPFLAGS'
2974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977DEPDIR="${am__leading_dot}deps"
2978
2979          ac_config_commands="$ac_config_commands depfiles"
2980
2981
2982am_make=${MAKE-make}
2983cat > confinc << 'END'
2984am__doit:
2985	@echo done
2986.PHONY: am__doit
2987END
2988# If we don't find an include directive, just comment out the code.
2989echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2990echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2991am__include="#"
2992am__quote=
2993_am_result=none
2994# First try GNU make style include.
2995echo "include confinc" > confmf
2996# We grep out `Entering directory' and `Leaving directory'
2997# messages which can occur if `w' ends up in MAKEFLAGS.
2998# In particular we don't look at `^make:' because GNU make might
2999# be invoked under some other name (usually "gmake"), in which
3000# case it prints its new name instead of `make'.
3001if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3002   am__include=include
3003   am__quote=
3004   _am_result=GNU
3005fi
3006# Now try BSD make style include.
3007if test "$am__include" = "#"; then
3008   echo '.include "confinc"' > confmf
3009   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3010      am__include=.include
3011      am__quote="\""
3012      _am_result=BSD
3013   fi
3014fi
3015
3016
3017echo "$as_me:$LINENO: result: $_am_result" >&5
3018echo "${ECHO_T}$_am_result" >&6
3019rm -f confinc confmf
3020
3021# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3022if test "${enable_dependency_tracking+set}" = set; then
3023  enableval="$enable_dependency_tracking"
3024
3025fi;
3026if test "x$enable_dependency_tracking" != xno; then
3027  am_depcomp="$ac_aux_dir/depcomp"
3028  AMDEPBACKSLASH='\'
3029fi
3030
3031
3032if test "x$enable_dependency_tracking" != xno; then
3033  AMDEP_TRUE=
3034  AMDEP_FALSE='#'
3035else
3036  AMDEP_TRUE='#'
3037  AMDEP_FALSE=
3038fi
3039
3040
3041
3042
3043depcc="$CC"   am_compiler_list=
3044
3045echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3046echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3047if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3048  echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3051  # We make a subdir and do the tests there.  Otherwise we can end up
3052  # making bogus files that we don't know about and never remove.  For
3053  # instance it was reported that on HP-UX the gcc test will end up
3054  # making a dummy file named `D' -- because `-MD' means `put the output
3055  # in D'.
3056  mkdir conftest.dir
3057  # Copy depcomp to subdir because otherwise we won't find it if we're
3058  # using a relative directory.
3059  cp "$am_depcomp" conftest.dir
3060  cd conftest.dir
3061  # We will build objects and dependencies in a subdirectory because
3062  # it helps to detect inapplicable dependency modes.  For instance
3063  # both Tru64's cc and ICC support -MD to output dependencies as a
3064  # side effect of compilation, but ICC will put the dependencies in
3065  # the current directory while Tru64 will put them in the object
3066  # directory.
3067  mkdir sub
3068
3069  am_cv_CC_dependencies_compiler_type=none
3070  if test "$am_compiler_list" = ""; then
3071     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3072  fi
3073  for depmode in $am_compiler_list; do
3074    # Setup a source with many dependencies, because some compilers
3075    # like to wrap large dependency lists on column 80 (with \), and
3076    # we should not choose a depcomp mode which is confused by this.
3077    #
3078    # We need to recreate these files for each test, as the compiler may
3079    # overwrite some of them when testing with obscure command lines.
3080    # This happens at least with the AIX C compiler.
3081    : > sub/conftest.c
3082    for i in 1 2 3 4 5 6; do
3083      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3084      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3085      # Solaris 8's {/usr,}/bin/sh.
3086      touch sub/conftst$i.h
3087    done
3088    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3089
3090    case $depmode in
3091    nosideeffect)
3092      # after this tag, mechanisms are not by side-effect, so they'll
3093      # only be used when explicitly requested
3094      if test "x$enable_dependency_tracking" = xyes; then
3095	continue
3096      else
3097	break
3098      fi
3099      ;;
3100    none) break ;;
3101    esac
3102    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3103    # mode.  It turns out that the SunPro C++ compiler does not properly
3104    # handle `-M -o', and we need to detect this.
3105    if depmode=$depmode \
3106       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3107       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3108       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3109         >/dev/null 2>conftest.err &&
3110       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3111       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3112       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3113      # icc doesn't choke on unknown options, it will just issue warnings
3114      # or remarks (even with -Werror).  So we grep stderr for any message
3115      # that says an option was ignored or not supported.
3116      # When given -MP, icc 7.0 and 7.1 complain thusly:
3117      #   icc: Command line warning: ignoring option '-M'; no argument required
3118      # The diagnosis changed in icc 8.0:
3119      #   icc: Command line remark: option '-MP' not supported
3120      if (grep 'ignoring option' conftest.err ||
3121          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3122        am_cv_CC_dependencies_compiler_type=$depmode
3123        break
3124      fi
3125    fi
3126  done
3127
3128  cd ..
3129  rm -rf conftest.dir
3130else
3131  am_cv_CC_dependencies_compiler_type=none
3132fi
3133
3134fi
3135echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3136echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3138
3139
3140
3141if
3142  test "x$enable_dependency_tracking" != xno \
3143  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3144  am__fastdepCC_TRUE=
3145  am__fastdepCC_FALSE='#'
3146else
3147  am__fastdepCC_TRUE='#'
3148  am__fastdepCC_FALSE=
3149fi
3150
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3158echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3159# On Suns, sometimes $CPP names a directory.
3160if test -n "$CPP" && test -d "$CPP"; then
3161  CPP=
3162fi
3163if test -z "$CPP"; then
3164  if test "${ac_cv_prog_CPP+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167      # Double quotes because CPP needs to be expanded
3168    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3169    do
3170      ac_preproc_ok=false
3171for ac_c_preproc_warn_flag in '' yes
3172do
3173  # Use a header file that comes with gcc, so configuring glibc
3174  # with a fresh cross-compiler works.
3175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176  # <limits.h> exists even on freestanding compilers.
3177  # On the NeXT, cc -E runs the code through the compiler's parser,
3178  # not just through cpp. "Syntax error" is here to catch this case.
3179  cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h.  */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h.  */
3185#ifdef __STDC__
3186# include <limits.h>
3187#else
3188# include <assert.h>
3189#endif
3190		     Syntax error
3191_ACEOF
3192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194  ac_status=$?
3195  grep -v '^ *+' conftest.er1 >conftest.err
3196  rm -f conftest.er1
3197  cat conftest.err >&5
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); } >/dev/null; then
3200  if test -s conftest.err; then
3201    ac_cpp_err=$ac_c_preproc_warn_flag
3202    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203  else
3204    ac_cpp_err=
3205  fi
3206else
3207  ac_cpp_err=yes
3208fi
3209if test -z "$ac_cpp_err"; then
3210  :
3211else
3212  echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215  # Broken: fails on valid input.
3216continue
3217fi
3218rm -f conftest.err conftest.$ac_ext
3219
3220  # OK, works on sane cases.  Now check whether non-existent headers
3221  # can be detected and how.
3222  cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h.  */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h.  */
3228#include <ac_nonexistent.h>
3229_ACEOF
3230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3232  ac_status=$?
3233  grep -v '^ *+' conftest.er1 >conftest.err
3234  rm -f conftest.er1
3235  cat conftest.err >&5
3236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237  (exit $ac_status); } >/dev/null; then
3238  if test -s conftest.err; then
3239    ac_cpp_err=$ac_c_preproc_warn_flag
3240    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3241  else
3242    ac_cpp_err=
3243  fi
3244else
3245  ac_cpp_err=yes
3246fi
3247if test -z "$ac_cpp_err"; then
3248  # Broken: success on invalid input.
3249continue
3250else
3251  echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254  # Passes both tests.
3255ac_preproc_ok=:
3256break
3257fi
3258rm -f conftest.err conftest.$ac_ext
3259
3260done
3261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3262rm -f conftest.err conftest.$ac_ext
3263if $ac_preproc_ok; then
3264  break
3265fi
3266
3267    done
3268    ac_cv_prog_CPP=$CPP
3269
3270fi
3271  CPP=$ac_cv_prog_CPP
3272else
3273  ac_cv_prog_CPP=$CPP
3274fi
3275echo "$as_me:$LINENO: result: $CPP" >&5
3276echo "${ECHO_T}$CPP" >&6
3277ac_preproc_ok=false
3278for ac_c_preproc_warn_flag in '' yes
3279do
3280  # Use a header file that comes with gcc, so configuring glibc
3281  # with a fresh cross-compiler works.
3282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3283  # <limits.h> exists even on freestanding compilers.
3284  # On the NeXT, cc -E runs the code through the compiler's parser,
3285  # not just through cpp. "Syntax error" is here to catch this case.
3286  cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h.  */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h.  */
3292#ifdef __STDC__
3293# include <limits.h>
3294#else
3295# include <assert.h>
3296#endif
3297		     Syntax error
3298_ACEOF
3299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3300  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } >/dev/null; then
3307  if test -s conftest.err; then
3308    ac_cpp_err=$ac_c_preproc_warn_flag
3309    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310  else
3311    ac_cpp_err=
3312  fi
3313else
3314  ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
3317  :
3318else
3319  echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322  # Broken: fails on valid input.
3323continue
3324fi
3325rm -f conftest.err conftest.$ac_ext
3326
3327  # OK, works on sane cases.  Now check whether non-existent headers
3328  # can be detected and how.
3329  cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335#include <ac_nonexistent.h>
3336_ACEOF
3337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3339  ac_status=$?
3340  grep -v '^ *+' conftest.er1 >conftest.err
3341  rm -f conftest.er1
3342  cat conftest.err >&5
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); } >/dev/null; then
3345  if test -s conftest.err; then
3346    ac_cpp_err=$ac_c_preproc_warn_flag
3347    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3348  else
3349    ac_cpp_err=
3350  fi
3351else
3352  ac_cpp_err=yes
3353fi
3354if test -z "$ac_cpp_err"; then
3355  # Broken: success on invalid input.
3356continue
3357else
3358  echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361  # Passes both tests.
3362ac_preproc_ok=:
3363break
3364fi
3365rm -f conftest.err conftest.$ac_ext
3366
3367done
3368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369rm -f conftest.err conftest.$ac_ext
3370if $ac_preproc_ok; then
3371  :
3372else
3373  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3374See \`config.log' for more details." >&5
3375echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3376See \`config.log' for more details." >&2;}
3377   { (exit 1); exit 1; }; }
3378fi
3379
3380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386ac_ext=cc
3387ac_cpp='$CXXCPP $CPPFLAGS'
3388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391if test -n "$ac_tool_prefix"; then
3392  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3393  do
3394    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_CXX+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  if test -n "$CXX"; then
3402  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  test -z "$as_dir" && as_dir=.
3409  for ac_exec_ext in '' $ac_executable_extensions; do
3410  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413    break 2
3414  fi
3415done
3416done
3417
3418fi
3419fi
3420CXX=$ac_cv_prog_CXX
3421if test -n "$CXX"; then
3422  echo "$as_me:$LINENO: result: $CXX" >&5
3423echo "${ECHO_T}$CXX" >&6
3424else
3425  echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
3427fi
3428
3429    test -n "$CXX" && break
3430  done
3431fi
3432if test -z "$CXX"; then
3433  ac_ct_CXX=$CXX
3434  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3435do
3436  # Extract the first word of "$ac_prog", so it can be a program name with args.
3437set dummy $ac_prog; ac_word=$2
3438echo "$as_me:$LINENO: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3441  echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443  if test -n "$ac_ct_CXX"; then
3444  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451  for ac_exec_ext in '' $ac_executable_extensions; do
3452  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453    ac_cv_prog_ac_ct_CXX="$ac_prog"
3454    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458done
3459
3460fi
3461fi
3462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3463if test -n "$ac_ct_CXX"; then
3464  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3465echo "${ECHO_T}$ac_ct_CXX" >&6
3466else
3467  echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6
3469fi
3470
3471  test -n "$ac_ct_CXX" && break
3472done
3473test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3474
3475  CXX=$ac_ct_CXX
3476fi
3477
3478
3479# Provide some information about the compiler.
3480echo "$as_me:$LINENO:" \
3481     "checking for C++ compiler version" >&5
3482ac_compiler=`set X $ac_compile; echo $2`
3483{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3484  (eval $ac_compiler --version </dev/null >&5) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }
3488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3489  (eval $ac_compiler -v </dev/null >&5) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }
3493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3494  (eval $ac_compiler -V </dev/null >&5) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }
3498
3499echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3500echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3501if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3502  echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504  cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h.  */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h.  */
3510
3511int
3512main ()
3513{
3514#ifndef __GNUC__
3515       choke me
3516#endif
3517
3518  ;
3519  return 0;
3520}
3521_ACEOF
3522rm -f conftest.$ac_objext
3523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524  (eval $ac_compile) 2>conftest.er1
3525  ac_status=$?
3526  grep -v '^ *+' conftest.er1 >conftest.err
3527  rm -f conftest.er1
3528  cat conftest.err >&5
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); } &&
3531	 { ac_try='test -z "$ac_cxx_werror_flag"
3532			 || test ! -s conftest.err'
3533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534  (eval $ac_try) 2>&5
3535  ac_status=$?
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); }; } &&
3538	 { ac_try='test -s conftest.$ac_objext'
3539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540  (eval $ac_try) 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }; }; then
3544  ac_compiler_gnu=yes
3545else
3546  echo "$as_me: failed program was:" >&5
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
3549ac_compiler_gnu=no
3550fi
3551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3553
3554fi
3555echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3556echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3557GXX=`test $ac_compiler_gnu = yes && echo yes`
3558ac_test_CXXFLAGS=${CXXFLAGS+set}
3559ac_save_CXXFLAGS=$CXXFLAGS
3560CXXFLAGS="-g"
3561echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3562echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3563if test "${ac_cv_prog_cxx_g+set}" = set; then
3564  echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581rm -f conftest.$ac_objext
3582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583  (eval $ac_compile) 2>conftest.er1
3584  ac_status=$?
3585  grep -v '^ *+' conftest.er1 >conftest.err
3586  rm -f conftest.er1
3587  cat conftest.err >&5
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); } &&
3590	 { ac_try='test -z "$ac_cxx_werror_flag"
3591			 || test ! -s conftest.err'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; } &&
3597	 { ac_try='test -s conftest.$ac_objext'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; }; then
3603  ac_cv_prog_cxx_g=yes
3604else
3605  echo "$as_me: failed program was:" >&5
3606sed 's/^/| /' conftest.$ac_ext >&5
3607
3608ac_cv_prog_cxx_g=no
3609fi
3610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3613echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3614if test "$ac_test_CXXFLAGS" = set; then
3615  CXXFLAGS=$ac_save_CXXFLAGS
3616elif test $ac_cv_prog_cxx_g = yes; then
3617  if test "$GXX" = yes; then
3618    CXXFLAGS="-g -O2"
3619  else
3620    CXXFLAGS="-g"
3621  fi
3622else
3623  if test "$GXX" = yes; then
3624    CXXFLAGS="-O2"
3625  else
3626    CXXFLAGS=
3627  fi
3628fi
3629for ac_declaration in \
3630   '' \
3631   'extern "C" void std::exit (int) throw (); using std::exit;' \
3632   'extern "C" void std::exit (int); using std::exit;' \
3633   'extern "C" void exit (int) throw ();' \
3634   'extern "C" void exit (int);' \
3635   'void exit (int);'
3636do
3637  cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h.  */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h.  */
3643$ac_declaration
3644#include <stdlib.h>
3645int
3646main ()
3647{
3648exit (42);
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655  (eval $ac_compile) 2>conftest.er1
3656  ac_status=$?
3657  grep -v '^ *+' conftest.er1 >conftest.err
3658  rm -f conftest.er1
3659  cat conftest.err >&5
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); } &&
3662	 { ac_try='test -z "$ac_cxx_werror_flag"
3663			 || test ! -s conftest.err'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; } &&
3669	 { ac_try='test -s conftest.$ac_objext'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; }; then
3675  :
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680continue
3681fi
3682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3683  cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689$ac_declaration
3690int
3691main ()
3692{
3693exit (42);
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707	 { ac_try='test -z "$ac_cxx_werror_flag"
3708			 || test ! -s conftest.err'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; } &&
3714	 { ac_try='test -s conftest.$ac_objext'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  break
3721else
3722  echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725fi
3726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727done
3728rm -f conftest*
3729if test -n "$ac_declaration"; then
3730  echo '#ifdef __cplusplus' >>confdefs.h
3731  echo $ac_declaration      >>confdefs.h
3732  echo '#endif'             >>confdefs.h
3733fi
3734
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741depcc="$CXX"  am_compiler_list=
3742
3743echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3744echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3745if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3746  echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3749  # We make a subdir and do the tests there.  Otherwise we can end up
3750  # making bogus files that we don't know about and never remove.  For
3751  # instance it was reported that on HP-UX the gcc test will end up
3752  # making a dummy file named `D' -- because `-MD' means `put the output
3753  # in D'.
3754  mkdir conftest.dir
3755  # Copy depcomp to subdir because otherwise we won't find it if we're
3756  # using a relative directory.
3757  cp "$am_depcomp" conftest.dir
3758  cd conftest.dir
3759  # We will build objects and dependencies in a subdirectory because
3760  # it helps to detect inapplicable dependency modes.  For instance
3761  # both Tru64's cc and ICC support -MD to output dependencies as a
3762  # side effect of compilation, but ICC will put the dependencies in
3763  # the current directory while Tru64 will put them in the object
3764  # directory.
3765  mkdir sub
3766
3767  am_cv_CXX_dependencies_compiler_type=none
3768  if test "$am_compiler_list" = ""; then
3769     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770  fi
3771  for depmode in $am_compiler_list; do
3772    # Setup a source with many dependencies, because some compilers
3773    # like to wrap large dependency lists on column 80 (with \), and
3774    # we should not choose a depcomp mode which is confused by this.
3775    #
3776    # We need to recreate these files for each test, as the compiler may
3777    # overwrite some of them when testing with obscure command lines.
3778    # This happens at least with the AIX C compiler.
3779    : > sub/conftest.c
3780    for i in 1 2 3 4 5 6; do
3781      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3782      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3783      # Solaris 8's {/usr,}/bin/sh.
3784      touch sub/conftst$i.h
3785    done
3786    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3787
3788    case $depmode in
3789    nosideeffect)
3790      # after this tag, mechanisms are not by side-effect, so they'll
3791      # only be used when explicitly requested
3792      if test "x$enable_dependency_tracking" = xyes; then
3793	continue
3794      else
3795	break
3796      fi
3797      ;;
3798    none) break ;;
3799    esac
3800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801    # mode.  It turns out that the SunPro C++ compiler does not properly
3802    # handle `-M -o', and we need to detect this.
3803    if depmode=$depmode \
3804       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3805       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3806       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3807         >/dev/null 2>conftest.err &&
3808       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3809       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3810       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3811      # icc doesn't choke on unknown options, it will just issue warnings
3812      # or remarks (even with -Werror).  So we grep stderr for any message
3813      # that says an option was ignored or not supported.
3814      # When given -MP, icc 7.0 and 7.1 complain thusly:
3815      #   icc: Command line warning: ignoring option '-M'; no argument required
3816      # The diagnosis changed in icc 8.0:
3817      #   icc: Command line remark: option '-MP' not supported
3818      if (grep 'ignoring option' conftest.err ||
3819          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3820        am_cv_CXX_dependencies_compiler_type=$depmode
3821        break
3822      fi
3823    fi
3824  done
3825
3826  cd ..
3827  rm -rf conftest.dir
3828else
3829  am_cv_CXX_dependencies_compiler_type=none
3830fi
3831
3832fi
3833echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3834echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3835CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3836
3837
3838
3839if
3840  test "x$enable_dependency_tracking" != xno \
3841  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3842  am__fastdepCXX_TRUE=
3843  am__fastdepCXX_FALSE='#'
3844else
3845  am__fastdepCXX_TRUE='#'
3846  am__fastdepCXX_FALSE=
3847fi
3848
3849
3850ac_ext=cc
3851ac_cpp='$CXXCPP $CPPFLAGS'
3852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3855echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3856echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3857if test -z "$CXXCPP"; then
3858  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3859  echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861      # Double quotes because CXXCPP needs to be expanded
3862    for CXXCPP in "$CXX -E" "/lib/cpp"
3863    do
3864      ac_preproc_ok=false
3865for ac_cxx_preproc_warn_flag in '' yes
3866do
3867  # Use a header file that comes with gcc, so configuring glibc
3868  # with a fresh cross-compiler works.
3869  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870  # <limits.h> exists even on freestanding compilers.
3871  # On the NeXT, cc -E runs the code through the compiler's parser,
3872  # not just through cpp. "Syntax error" is here to catch this case.
3873  cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h.  */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h.  */
3879#ifdef __STDC__
3880# include <limits.h>
3881#else
3882# include <assert.h>
3883#endif
3884		     Syntax error
3885_ACEOF
3886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3888  ac_status=$?
3889  grep -v '^ *+' conftest.er1 >conftest.err
3890  rm -f conftest.er1
3891  cat conftest.err >&5
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); } >/dev/null; then
3894  if test -s conftest.err; then
3895    ac_cpp_err=$ac_cxx_preproc_warn_flag
3896    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3897  else
3898    ac_cpp_err=
3899  fi
3900else
3901  ac_cpp_err=yes
3902fi
3903if test -z "$ac_cpp_err"; then
3904  :
3905else
3906  echo "$as_me: failed program was:" >&5
3907sed 's/^/| /' conftest.$ac_ext >&5
3908
3909  # Broken: fails on valid input.
3910continue
3911fi
3912rm -f conftest.err conftest.$ac_ext
3913
3914  # OK, works on sane cases.  Now check whether non-existent headers
3915  # can be detected and how.
3916  cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922#include <ac_nonexistent.h>
3923_ACEOF
3924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3925  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3926  ac_status=$?
3927  grep -v '^ *+' conftest.er1 >conftest.err
3928  rm -f conftest.er1
3929  cat conftest.err >&5
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); } >/dev/null; then
3932  if test -s conftest.err; then
3933    ac_cpp_err=$ac_cxx_preproc_warn_flag
3934    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3935  else
3936    ac_cpp_err=
3937  fi
3938else
3939  ac_cpp_err=yes
3940fi
3941if test -z "$ac_cpp_err"; then
3942  # Broken: success on invalid input.
3943continue
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948  # Passes both tests.
3949ac_preproc_ok=:
3950break
3951fi
3952rm -f conftest.err conftest.$ac_ext
3953
3954done
3955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956rm -f conftest.err conftest.$ac_ext
3957if $ac_preproc_ok; then
3958  break
3959fi
3960
3961    done
3962    ac_cv_prog_CXXCPP=$CXXCPP
3963
3964fi
3965  CXXCPP=$ac_cv_prog_CXXCPP
3966else
3967  ac_cv_prog_CXXCPP=$CXXCPP
3968fi
3969echo "$as_me:$LINENO: result: $CXXCPP" >&5
3970echo "${ECHO_T}$CXXCPP" >&6
3971ac_preproc_ok=false
3972for ac_cxx_preproc_warn_flag in '' yes
3973do
3974  # Use a header file that comes with gcc, so configuring glibc
3975  # with a fresh cross-compiler works.
3976  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977  # <limits.h> exists even on freestanding compilers.
3978  # On the NeXT, cc -E runs the code through the compiler's parser,
3979  # not just through cpp. "Syntax error" is here to catch this case.
3980  cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h.  */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h.  */
3986#ifdef __STDC__
3987# include <limits.h>
3988#else
3989# include <assert.h>
3990#endif
3991		     Syntax error
3992_ACEOF
3993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3995  ac_status=$?
3996  grep -v '^ *+' conftest.er1 >conftest.err
3997  rm -f conftest.er1
3998  cat conftest.err >&5
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); } >/dev/null; then
4001  if test -s conftest.err; then
4002    ac_cpp_err=$ac_cxx_preproc_warn_flag
4003    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4004  else
4005    ac_cpp_err=
4006  fi
4007else
4008  ac_cpp_err=yes
4009fi
4010if test -z "$ac_cpp_err"; then
4011  :
4012else
4013  echo "$as_me: failed program was:" >&5
4014sed 's/^/| /' conftest.$ac_ext >&5
4015
4016  # Broken: fails on valid input.
4017continue
4018fi
4019rm -f conftest.err conftest.$ac_ext
4020
4021  # OK, works on sane cases.  Now check whether non-existent headers
4022  # can be detected and how.
4023  cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h.  */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h.  */
4029#include <ac_nonexistent.h>
4030_ACEOF
4031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4032  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4033  ac_status=$?
4034  grep -v '^ *+' conftest.er1 >conftest.err
4035  rm -f conftest.er1
4036  cat conftest.err >&5
4037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038  (exit $ac_status); } >/dev/null; then
4039  if test -s conftest.err; then
4040    ac_cpp_err=$ac_cxx_preproc_warn_flag
4041    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4042  else
4043    ac_cpp_err=
4044  fi
4045else
4046  ac_cpp_err=yes
4047fi
4048if test -z "$ac_cpp_err"; then
4049  # Broken: success on invalid input.
4050continue
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055  # Passes both tests.
4056ac_preproc_ok=:
4057break
4058fi
4059rm -f conftest.err conftest.$ac_ext
4060
4061done
4062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063rm -f conftest.err conftest.$ac_ext
4064if $ac_preproc_ok; then
4065  :
4066else
4067  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4068See \`config.log' for more details." >&5
4069echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4070See \`config.log' for more details." >&2;}
4071   { (exit 1); exit 1; }; }
4072fi
4073
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4081echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4082set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4083if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  cat >conftest.make <<\_ACEOF
4087all:
4088	@echo 'ac_maketemp="$(MAKE)"'
4089_ACEOF
4090# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4091eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4092if test -n "$ac_maketemp"; then
4093  eval ac_cv_prog_make_${ac_make}_set=yes
4094else
4095  eval ac_cv_prog_make_${ac_make}_set=no
4096fi
4097rm -f conftest.make
4098fi
4099if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4100  echo "$as_me:$LINENO: result: yes" >&5
4101echo "${ECHO_T}yes" >&6
4102  SET_MAKE=
4103else
4104  echo "$as_me:$LINENO: result: no" >&5
4105echo "${ECHO_T}no" >&6
4106  SET_MAKE="MAKE=${MAKE-make}"
4107fi
4108
4109# Check whether --enable-shared or --disable-shared was given.
4110if test "${enable_shared+set}" = set; then
4111  enableval="$enable_shared"
4112  p=${PACKAGE-default}
4113    case $enableval in
4114    yes) enable_shared=yes ;;
4115    no) enable_shared=no ;;
4116    *)
4117      enable_shared=no
4118      # Look at the argument we got.  We use all the common list separators.
4119      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4120      for pkg in $enableval; do
4121	IFS="$lt_save_ifs"
4122	if test "X$pkg" = "X$p"; then
4123	  enable_shared=yes
4124	fi
4125      done
4126      IFS="$lt_save_ifs"
4127      ;;
4128    esac
4129else
4130  enable_shared=yes
4131fi;
4132
4133# Check whether --enable-static or --disable-static was given.
4134if test "${enable_static+set}" = set; then
4135  enableval="$enable_static"
4136  p=${PACKAGE-default}
4137    case $enableval in
4138    yes) enable_static=yes ;;
4139    no) enable_static=no ;;
4140    *)
4141     enable_static=no
4142      # Look at the argument we got.  We use all the common list separators.
4143      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4144      for pkg in $enableval; do
4145	IFS="$lt_save_ifs"
4146	if test "X$pkg" = "X$p"; then
4147	  enable_static=yes
4148	fi
4149      done
4150      IFS="$lt_save_ifs"
4151      ;;
4152    esac
4153else
4154  enable_static=yes
4155fi;
4156
4157# Check whether --enable-fast-install or --disable-fast-install was given.
4158if test "${enable_fast_install+set}" = set; then
4159  enableval="$enable_fast_install"
4160  p=${PACKAGE-default}
4161    case $enableval in
4162    yes) enable_fast_install=yes ;;
4163    no) enable_fast_install=no ;;
4164    *)
4165      enable_fast_install=no
4166      # Look at the argument we got.  We use all the common list separators.
4167      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4168      for pkg in $enableval; do
4169	IFS="$lt_save_ifs"
4170	if test "X$pkg" = "X$p"; then
4171	  enable_fast_install=yes
4172	fi
4173      done
4174      IFS="$lt_save_ifs"
4175      ;;
4176    esac
4177else
4178  enable_fast_install=yes
4179fi;
4180
4181echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4182echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4183if test "${lt_cv_path_SED+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  # Loop through the user's path and test for sed and gsed.
4187# Then use that list of sed's as ones to test for truncation.
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for lt_ac_prog in sed gsed; do
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4196        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4197      fi
4198    done
4199  done
4200done
4201lt_ac_max=0
4202lt_ac_count=0
4203# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4204# along with /bin/sed that truncates output.
4205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4206  test ! -f $lt_ac_sed && continue
4207  cat /dev/null > conftest.in
4208  lt_ac_count=0
4209  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4210  # Check for GNU sed and select it if it is found.
4211  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4212    lt_cv_path_SED=$lt_ac_sed
4213    break
4214  fi
4215  while true; do
4216    cat conftest.in conftest.in >conftest.tmp
4217    mv conftest.tmp conftest.in
4218    cp conftest.in conftest.nl
4219    echo >>conftest.nl
4220    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4221    cmp -s conftest.out conftest.nl || break
4222    # 10000 chars as input seems more than enough
4223    test $lt_ac_count -gt 10 && break
4224    lt_ac_count=`expr $lt_ac_count + 1`
4225    if test $lt_ac_count -gt $lt_ac_max; then
4226      lt_ac_max=$lt_ac_count
4227      lt_cv_path_SED=$lt_ac_sed
4228    fi
4229  done
4230done
4231
4232fi
4233
4234SED=$lt_cv_path_SED
4235echo "$as_me:$LINENO: result: $SED" >&5
4236echo "${ECHO_T}$SED" >&6
4237
4238echo "$as_me:$LINENO: checking for egrep" >&5
4239echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4240if test "${ac_cv_prog_egrep+set}" = set; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4244    then ac_cv_prog_egrep='grep -E'
4245    else ac_cv_prog_egrep='egrep'
4246    fi
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4249echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4250 EGREP=$ac_cv_prog_egrep
4251
4252
4253
4254# Check whether --with-gnu-ld or --without-gnu-ld was given.
4255if test "${with_gnu_ld+set}" = set; then
4256  withval="$with_gnu_ld"
4257  test "$withval" = no || with_gnu_ld=yes
4258else
4259  with_gnu_ld=no
4260fi;
4261ac_prog=ld
4262if test "$GCC" = yes; then
4263  # Check if gcc -print-prog-name=ld gives a path.
4264  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4265echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4266  case $host in
4267  *-*-mingw*)
4268    # gcc leaves a trailing carriage return which upsets mingw
4269    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4270  *)
4271    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4272  esac
4273  case $ac_prog in
4274    # Accept absolute paths.
4275    [\\/]* | ?:[\\/]*)
4276      re_direlt='/[^/][^/]*/\.\./'
4277      # Canonicalize the pathname of ld
4278      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4279      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4280	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4281      done
4282      test -z "$LD" && LD="$ac_prog"
4283      ;;
4284  "")
4285    # If it fails, then pretend we aren't using GCC.
4286    ac_prog=ld
4287    ;;
4288  *)
4289    # If it is relative, then search for the first ld in PATH.
4290    with_gnu_ld=unknown
4291    ;;
4292  esac
4293elif test "$with_gnu_ld" = yes; then
4294  echo "$as_me:$LINENO: checking for GNU ld" >&5
4295echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4296else
4297  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4298echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4299fi
4300if test "${lt_cv_path_LD+set}" = set; then
4301  echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303  if test -z "$LD"; then
4304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4305  for ac_dir in $PATH; do
4306    IFS="$lt_save_ifs"
4307    test -z "$ac_dir" && ac_dir=.
4308    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4309      lt_cv_path_LD="$ac_dir/$ac_prog"
4310      # Check to see if the program is GNU ld.  I'd rather use --version,
4311      # but apparently some variants of GNU ld only accept -v.
4312      # Break only if it was the GNU/non-GNU ld that we prefer.
4313      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4314      *GNU* | *'with BFD'*)
4315	test "$with_gnu_ld" != no && break
4316	;;
4317      *)
4318	test "$with_gnu_ld" != yes && break
4319	;;
4320      esac
4321    fi
4322  done
4323  IFS="$lt_save_ifs"
4324else
4325  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4326fi
4327fi
4328
4329LD="$lt_cv_path_LD"
4330if test -n "$LD"; then
4331  echo "$as_me:$LINENO: result: $LD" >&5
4332echo "${ECHO_T}$LD" >&6
4333else
4334  echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336fi
4337test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4338echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4339   { (exit 1); exit 1; }; }
4340echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4341echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4342if test "${lt_cv_prog_gnu_ld+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4346case `$LD -v 2>&1 </dev/null` in
4347*GNU* | *'with BFD'*)
4348  lt_cv_prog_gnu_ld=yes
4349  ;;
4350*)
4351  lt_cv_prog_gnu_ld=no
4352  ;;
4353esac
4354fi
4355echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4356echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4357with_gnu_ld=$lt_cv_prog_gnu_ld
4358
4359
4360echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4361echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4362if test "${lt_cv_ld_reload_flag+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  lt_cv_ld_reload_flag='-r'
4366fi
4367echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4368echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4369reload_flag=$lt_cv_ld_reload_flag
4370case $reload_flag in
4371"" | " "*) ;;
4372*) reload_flag=" $reload_flag" ;;
4373esac
4374reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375case $host_os in
4376  darwin*)
4377    if test "$GCC" = yes; then
4378      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4379    else
4380      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4381    fi
4382    ;;
4383esac
4384
4385echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4386echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4387if test "${lt_cv_path_NM+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  if test -n "$NM"; then
4391  # Let the user override the test.
4392  lt_cv_path_NM="$NM"
4393else
4394  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4396    IFS="$lt_save_ifs"
4397    test -z "$ac_dir" && ac_dir=.
4398    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4399    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4400      # Check to see if the nm accepts a BSD-compat flag.
4401      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4402      #   nm: unknown option "B" ignored
4403      # Tru64's nm complains that /dev/null is an invalid object file
4404      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4405      */dev/null* | *'Invalid file or object type'*)
4406	lt_cv_path_NM="$tmp_nm -B"
4407	break
4408        ;;
4409      *)
4410	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4411	*/dev/null*)
4412	  lt_cv_path_NM="$tmp_nm -p"
4413	  break
4414	  ;;
4415	*)
4416	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4417	  continue # so that we can try to find one that supports BSD flags
4418	  ;;
4419	esac
4420      esac
4421    fi
4422  done
4423  IFS="$lt_save_ifs"
4424  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4425fi
4426fi
4427echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4428echo "${ECHO_T}$lt_cv_path_NM" >&6
4429NM="$lt_cv_path_NM"
4430
4431echo "$as_me:$LINENO: checking whether ln -s works" >&5
4432echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4433LN_S=$as_ln_s
4434if test "$LN_S" = "ln -s"; then
4435  echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437else
4438  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4439echo "${ECHO_T}no, using $LN_S" >&6
4440fi
4441
4442echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4443echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4444if test "${lt_cv_deplibs_check_method+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  lt_cv_file_magic_cmd='$MAGIC_CMD'
4448lt_cv_file_magic_test_file=
4449lt_cv_deplibs_check_method='unknown'
4450# Need to set the preceding variable on all platforms that support
4451# interlibrary dependencies.
4452# 'none' -- dependencies not supported.
4453# `unknown' -- same as none, but documents that we really don't know.
4454# 'pass_all' -- all dependencies passed with no checks.
4455# 'test_compile' -- check by making test program.
4456# 'file_magic [[regex]]' -- check by looking for files in library path
4457# which responds to the $file_magic_cmd with a given extended regex.
4458# If you have `file' or equivalent on your system and you're not sure
4459# whether `pass_all' will *always* work, you probably want this one.
4460
4461case $host_os in
4462aix4* | aix5*)
4463  lt_cv_deplibs_check_method=pass_all
4464  ;;
4465
4466beos*)
4467  lt_cv_deplibs_check_method=pass_all
4468  ;;
4469
4470bsdi[45]*)
4471  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4472  lt_cv_file_magic_cmd='/usr/bin/file -L'
4473  lt_cv_file_magic_test_file=/shlib/libc.so
4474  ;;
4475
4476cygwin*)
4477  # func_win32_libid is a shell function defined in ltmain.sh
4478  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4479  lt_cv_file_magic_cmd='func_win32_libid'
4480  ;;
4481
4482mingw* | pw32*)
4483  # Base MSYS/MinGW do not provide the 'file' command needed by
4484  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4485  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4486  lt_cv_file_magic_cmd='$OBJDUMP -f'
4487  ;;
4488
4489darwin* | rhapsody*)
4490  lt_cv_deplibs_check_method=pass_all
4491  ;;
4492
4493freebsd* | kfreebsd*-gnu | dragonfly*)
4494  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4495    case $host_cpu in
4496    i*86 )
4497      # Not sure whether the presence of OpenBSD here was a mistake.
4498      # Let's accept both of them until this is cleared up.
4499      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4500      lt_cv_file_magic_cmd=/usr/bin/file
4501      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4502      ;;
4503    esac
4504  else
4505    lt_cv_deplibs_check_method=pass_all
4506  fi
4507  ;;
4508
4509gnu*)
4510  lt_cv_deplibs_check_method=pass_all
4511  ;;
4512
4513hpux10.20* | hpux11*)
4514  lt_cv_file_magic_cmd=/usr/bin/file
4515  case $host_cpu in
4516  ia64*)
4517    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4518    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4519    ;;
4520  hppa*64*)
4521    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4522    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4523    ;;
4524  *)
4525    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4526    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4527    ;;
4528  esac
4529  ;;
4530
4531irix5* | irix6* | nonstopux*)
4532  case $LD in
4533  *-32|*"-32 ") libmagic=32-bit;;
4534  *-n32|*"-n32 ") libmagic=N32;;
4535  *-64|*"-64 ") libmagic=64-bit;;
4536  *) libmagic=never-match;;
4537  esac
4538  lt_cv_deplibs_check_method=pass_all
4539  ;;
4540
4541# This must be Linux ELF.
4542linux*)
4543  lt_cv_deplibs_check_method=pass_all
4544  ;;
4545
4546netbsd*)
4547  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4548    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4549  else
4550    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4551  fi
4552  ;;
4553
4554newos6*)
4555  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4556  lt_cv_file_magic_cmd=/usr/bin/file
4557  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4558  ;;
4559
4560nto-qnx*)
4561  lt_cv_deplibs_check_method=unknown
4562  ;;
4563
4564openbsd*)
4565  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4567  else
4568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4569  fi
4570  ;;
4571
4572osf3* | osf4* | osf5*)
4573  lt_cv_deplibs_check_method=pass_all
4574  ;;
4575
4576sco3.2v5*)
4577  lt_cv_deplibs_check_method=pass_all
4578  ;;
4579
4580solaris*)
4581  lt_cv_deplibs_check_method=pass_all
4582  ;;
4583
4584sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4585  case $host_vendor in
4586  motorola)
4587    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]'
4588    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4589    ;;
4590  ncr)
4591    lt_cv_deplibs_check_method=pass_all
4592    ;;
4593  sequent)
4594    lt_cv_file_magic_cmd='/bin/file'
4595    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4596    ;;
4597  sni)
4598    lt_cv_file_magic_cmd='/bin/file'
4599    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4600    lt_cv_file_magic_test_file=/lib/libc.so
4601    ;;
4602  siemens)
4603    lt_cv_deplibs_check_method=pass_all
4604    ;;
4605  esac
4606  ;;
4607
4608sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4609  lt_cv_deplibs_check_method=pass_all
4610  ;;
4611esac
4612
4613fi
4614echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4615echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4616file_magic_cmd=$lt_cv_file_magic_cmd
4617deplibs_check_method=$lt_cv_deplibs_check_method
4618test -z "$deplibs_check_method" && deplibs_check_method=unknown
4619
4620
4621
4622
4623# If no C compiler was specified, use CC.
4624LTCC=${LTCC-"$CC"}
4625
4626# Allow CC to be a program name with arguments.
4627compiler=$CC
4628
4629
4630# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4631if test "${enable_libtool_lock+set}" = set; then
4632  enableval="$enable_libtool_lock"
4633
4634fi;
4635test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4636
4637# Some flags need to be propagated to the compiler or linker for good
4638# libtool support.
4639case $host in
4640ia64-*-hpux*)
4641  # Find out which ABI we are using.
4642  echo 'int i;' > conftest.$ac_ext
4643  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644  (eval $ac_compile) 2>&5
4645  ac_status=$?
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); }; then
4648    case `/usr/bin/file conftest.$ac_objext` in
4649    *ELF-32*)
4650      HPUX_IA64_MODE="32"
4651      ;;
4652    *ELF-64*)
4653      HPUX_IA64_MODE="64"
4654      ;;
4655    esac
4656  fi
4657  rm -rf conftest*
4658  ;;
4659*-*-irix6*)
4660  # Find out which ABI we are using.
4661  echo '#line 4661 "configure"' > conftest.$ac_ext
4662  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663  (eval $ac_compile) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; then
4667   if test "$lt_cv_prog_gnu_ld" = yes; then
4668    case `/usr/bin/file conftest.$ac_objext` in
4669    *32-bit*)
4670      LD="${LD-ld} -melf32bsmip"
4671      ;;
4672    *N32*)
4673      LD="${LD-ld} -melf32bmipn32"
4674      ;;
4675    *64-bit*)
4676      LD="${LD-ld} -melf64bmip"
4677      ;;
4678    esac
4679   else
4680    case `/usr/bin/file conftest.$ac_objext` in
4681    *32-bit*)
4682      LD="${LD-ld} -32"
4683      ;;
4684    *N32*)
4685      LD="${LD-ld} -n32"
4686      ;;
4687    *64-bit*)
4688      LD="${LD-ld} -64"
4689      ;;
4690    esac
4691   fi
4692  fi
4693  rm -rf conftest*
4694  ;;
4695
4696x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4697  # Find out which ABI we are using.
4698  echo 'int i;' > conftest.$ac_ext
4699  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700  (eval $ac_compile) 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; then
4704    case `/usr/bin/file conftest.o` in
4705    *32-bit*)
4706      case $host in
4707        x86_64-*linux*)
4708          LD="${LD-ld} -m elf_i386"
4709          ;;
4710        ppc64-*linux*|powerpc64-*linux*)
4711          LD="${LD-ld} -m elf32ppclinux"
4712          ;;
4713        s390x-*linux*)
4714          LD="${LD-ld} -m elf_s390"
4715          ;;
4716        sparc64-*linux*)
4717          LD="${LD-ld} -m elf32_sparc"
4718          ;;
4719      esac
4720      ;;
4721    *64-bit*)
4722      case $host in
4723        x86_64-*linux*)
4724          LD="${LD-ld} -m elf_x86_64"
4725          ;;
4726        ppc*-*linux*|powerpc*-*linux*)
4727          LD="${LD-ld} -m elf64ppc"
4728          ;;
4729        s390*-*linux*)
4730          LD="${LD-ld} -m elf64_s390"
4731          ;;
4732        sparc*-*linux*)
4733          LD="${LD-ld} -m elf64_sparc"
4734          ;;
4735      esac
4736      ;;
4737    esac
4738  fi
4739  rm -rf conftest*
4740  ;;
4741
4742*-*-sco3.2v5*)
4743  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4744  SAVE_CFLAGS="$CFLAGS"
4745  CFLAGS="$CFLAGS -belf"
4746  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4747echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4748if test "${lt_cv_cc_needs_belf+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757     cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763
4764int
4765main ()
4766{
4767
4768  ;
4769  return 0;
4770}
4771_ACEOF
4772rm -f conftest.$ac_objext conftest$ac_exeext
4773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774  (eval $ac_link) 2>conftest.er1
4775  ac_status=$?
4776  grep -v '^ *+' conftest.er1 >conftest.err
4777  rm -f conftest.er1
4778  cat conftest.err >&5
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); } &&
4781	 { ac_try='test -z "$ac_c_werror_flag"
4782			 || test ! -s conftest.err'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; } &&
4788	 { ac_try='test -s conftest$ac_exeext'
4789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790  (eval $ac_try) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); }; }; then
4794  lt_cv_cc_needs_belf=yes
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799lt_cv_cc_needs_belf=no
4800fi
4801rm -f conftest.err conftest.$ac_objext \
4802      conftest$ac_exeext conftest.$ac_ext
4803     ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809fi
4810echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4811echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4812  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4813    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4814    CFLAGS="$SAVE_CFLAGS"
4815  fi
4816  ;;
4817
4818esac
4819
4820need_locks="$enable_libtool_lock"
4821
4822
4823
4824echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4825echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4826if test "${ac_cv_header_stdc+set}" = set; then
4827  echo $ECHO_N "(cached) $ECHO_C" >&6
4828else
4829  cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835#include <stdlib.h>
4836#include <stdarg.h>
4837#include <string.h>
4838#include <float.h>
4839
4840int
4841main ()
4842{
4843
4844  ;
4845  return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850  (eval $ac_compile) 2>conftest.er1
4851  ac_status=$?
4852  grep -v '^ *+' conftest.er1 >conftest.err
4853  rm -f conftest.er1
4854  cat conftest.err >&5
4855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856  (exit $ac_status); } &&
4857	 { ac_try='test -z "$ac_c_werror_flag"
4858			 || test ! -s conftest.err'
4859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860  (eval $ac_try) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); }; } &&
4864	 { ac_try='test -s conftest.$ac_objext'
4865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866  (eval $ac_try) 2>&5
4867  ac_status=$?
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); }; }; then
4870  ac_cv_header_stdc=yes
4871else
4872  echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875ac_cv_header_stdc=no
4876fi
4877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878
4879if test $ac_cv_header_stdc = yes; then
4880  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881  cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h.  */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h.  */
4887#include <string.h>
4888
4889_ACEOF
4890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891  $EGREP "memchr" >/dev/null 2>&1; then
4892  :
4893else
4894  ac_cv_header_stdc=no
4895fi
4896rm -f conftest*
4897
4898fi
4899
4900if test $ac_cv_header_stdc = yes; then
4901  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902  cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908#include <stdlib.h>
4909
4910_ACEOF
4911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912  $EGREP "free" >/dev/null 2>&1; then
4913  :
4914else
4915  ac_cv_header_stdc=no
4916fi
4917rm -f conftest*
4918
4919fi
4920
4921if test $ac_cv_header_stdc = yes; then
4922  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4923  if test "$cross_compiling" = yes; then
4924  :
4925else
4926  cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h.  */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h.  */
4932#include <ctype.h>
4933#if ((' ' & 0x0FF) == 0x020)
4934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4936#else
4937# define ISLOWER(c) \
4938		   (('a' <= (c) && (c) <= 'i') \
4939		     || ('j' <= (c) && (c) <= 'r') \
4940		     || ('s' <= (c) && (c) <= 'z'))
4941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4942#endif
4943
4944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4945int
4946main ()
4947{
4948  int i;
4949  for (i = 0; i < 256; i++)
4950    if (XOR (islower (i), ISLOWER (i))
4951	|| toupper (i) != TOUPPER (i))
4952      exit(2);
4953  exit (0);
4954}
4955_ACEOF
4956rm -f conftest$ac_exeext
4957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958  (eval $ac_link) 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963  (eval $ac_try) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; }; then
4967  :
4968else
4969  echo "$as_me: program exited with status $ac_status" >&5
4970echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973( exit $ac_status )
4974ac_cv_header_stdc=no
4975fi
4976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4977fi
4978fi
4979fi
4980echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4981echo "${ECHO_T}$ac_cv_header_stdc" >&6
4982if test $ac_cv_header_stdc = yes; then
4983
4984cat >>confdefs.h <<\_ACEOF
4985#define STDC_HEADERS 1
4986_ACEOF
4987
4988fi
4989
4990# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5001		  inttypes.h stdint.h unistd.h
5002do
5003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5004echo "$as_me:$LINENO: checking for $ac_header" >&5
5005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5006if eval "test \"\${$as_ac_Header+set}\" = set"; then
5007  echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009  cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015$ac_includes_default
5016
5017#include <$ac_header>
5018_ACEOF
5019rm -f conftest.$ac_objext
5020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021  (eval $ac_compile) 2>conftest.er1
5022  ac_status=$?
5023  grep -v '^ *+' conftest.er1 >conftest.err
5024  rm -f conftest.er1
5025  cat conftest.err >&5
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); } &&
5028	 { ac_try='test -z "$ac_c_werror_flag"
5029			 || test ! -s conftest.err'
5030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031  (eval $ac_try) 2>&5
5032  ac_status=$?
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); }; } &&
5035	 { ac_try='test -s conftest.$ac_objext'
5036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037  (eval $ac_try) 2>&5
5038  ac_status=$?
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); }; }; then
5041  eval "$as_ac_Header=yes"
5042else
5043  echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046eval "$as_ac_Header=no"
5047fi
5048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052if test `eval echo '${'$as_ac_Header'}'` = yes; then
5053  cat >>confdefs.h <<_ACEOF
5054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055_ACEOF
5056
5057fi
5058
5059done
5060
5061
5062
5063for ac_header in dlfcn.h
5064do
5065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067  echo "$as_me:$LINENO: checking for $ac_header" >&5
5068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5069if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070  echo $ECHO_N "(cached) $ECHO_C" >&6
5071fi
5072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074else
5075  # Is the header compilable?
5076echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h.  */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h.  */
5084$ac_includes_default
5085#include <$ac_header>
5086_ACEOF
5087rm -f conftest.$ac_objext
5088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089  (eval $ac_compile) 2>conftest.er1
5090  ac_status=$?
5091  grep -v '^ *+' conftest.er1 >conftest.err
5092  rm -f conftest.er1
5093  cat conftest.err >&5
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); } &&
5096	 { ac_try='test -z "$ac_c_werror_flag"
5097			 || test ! -s conftest.err'
5098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099  (eval $ac_try) 2>&5
5100  ac_status=$?
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); }; } &&
5103	 { ac_try='test -s conftest.$ac_objext'
5104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105  (eval $ac_try) 2>&5
5106  ac_status=$?
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); }; }; then
5109  ac_header_compiler=yes
5110else
5111  echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114ac_header_compiler=no
5115fi
5116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118echo "${ECHO_T}$ac_header_compiler" >&6
5119
5120# Is the header present?
5121echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129#include <$ac_header>
5130_ACEOF
5131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133  ac_status=$?
5134  grep -v '^ *+' conftest.er1 >conftest.err
5135  rm -f conftest.er1
5136  cat conftest.err >&5
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); } >/dev/null; then
5139  if test -s conftest.err; then
5140    ac_cpp_err=$ac_c_preproc_warn_flag
5141    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5142  else
5143    ac_cpp_err=
5144  fi
5145else
5146  ac_cpp_err=yes
5147fi
5148if test -z "$ac_cpp_err"; then
5149  ac_header_preproc=yes
5150else
5151  echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154  ac_header_preproc=no
5155fi
5156rm -f conftest.err conftest.$ac_ext
5157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158echo "${ECHO_T}$ac_header_preproc" >&6
5159
5160# So?  What about this header?
5161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162  yes:no: )
5163    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167    ac_header_preproc=yes
5168    ;;
5169  no:yes:* )
5170    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5173echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5174    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5177echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5182    (
5183      cat <<\_ASBOX
5184## ------------------------------------------ ##
5185## Report this to the AC_PACKAGE_NAME lists.  ##
5186## ------------------------------------------ ##
5187_ASBOX
5188    ) |
5189      sed "s/^/$as_me: WARNING:     /" >&2
5190    ;;
5191esac
5192echo "$as_me:$LINENO: checking for $ac_header" >&5
5193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  eval "$as_ac_Header=\$ac_header_preproc"
5198fi
5199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5201
5202fi
5203if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204  cat >>confdefs.h <<_ACEOF
5205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206_ACEOF
5207
5208fi
5209
5210done
5211
5212
5213
5214if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5215    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5216    (test "X$CXX" != "Xg++"))) ; then
5217  ac_ext=cc
5218ac_cpp='$CXXCPP $CPPFLAGS'
5219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5223echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5224if test -z "$CXXCPP"; then
5225  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228      # Double quotes because CXXCPP needs to be expanded
5229    for CXXCPP in "$CXX -E" "/lib/cpp"
5230    do
5231      ac_preproc_ok=false
5232for ac_cxx_preproc_warn_flag in '' yes
5233do
5234  # Use a header file that comes with gcc, so configuring glibc
5235  # with a fresh cross-compiler works.
5236  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237  # <limits.h> exists even on freestanding compilers.
5238  # On the NeXT, cc -E runs the code through the compiler's parser,
5239  # not just through cpp. "Syntax error" is here to catch this case.
5240  cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246#ifdef __STDC__
5247# include <limits.h>
5248#else
5249# include <assert.h>
5250#endif
5251		     Syntax error
5252_ACEOF
5253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255  ac_status=$?
5256  grep -v '^ *+' conftest.er1 >conftest.err
5257  rm -f conftest.er1
5258  cat conftest.err >&5
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); } >/dev/null; then
5261  if test -s conftest.err; then
5262    ac_cpp_err=$ac_cxx_preproc_warn_flag
5263    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5264  else
5265    ac_cpp_err=
5266  fi
5267else
5268  ac_cpp_err=yes
5269fi
5270if test -z "$ac_cpp_err"; then
5271  :
5272else
5273  echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276  # Broken: fails on valid input.
5277continue
5278fi
5279rm -f conftest.err conftest.$ac_ext
5280
5281  # OK, works on sane cases.  Now check whether non-existent headers
5282  # can be detected and how.
5283  cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289#include <ac_nonexistent.h>
5290_ACEOF
5291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } >/dev/null; then
5299  if test -s conftest.err; then
5300    ac_cpp_err=$ac_cxx_preproc_warn_flag
5301    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5302  else
5303    ac_cpp_err=
5304  fi
5305else
5306  ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
5309  # Broken: success on invalid input.
5310continue
5311else
5312  echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315  # Passes both tests.
5316ac_preproc_ok=:
5317break
5318fi
5319rm -f conftest.err conftest.$ac_ext
5320
5321done
5322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323rm -f conftest.err conftest.$ac_ext
5324if $ac_preproc_ok; then
5325  break
5326fi
5327
5328    done
5329    ac_cv_prog_CXXCPP=$CXXCPP
5330
5331fi
5332  CXXCPP=$ac_cv_prog_CXXCPP
5333else
5334  ac_cv_prog_CXXCPP=$CXXCPP
5335fi
5336echo "$as_me:$LINENO: result: $CXXCPP" >&5
5337echo "${ECHO_T}$CXXCPP" >&6
5338ac_preproc_ok=false
5339for ac_cxx_preproc_warn_flag in '' yes
5340do
5341  # Use a header file that comes with gcc, so configuring glibc
5342  # with a fresh cross-compiler works.
5343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344  # <limits.h> exists even on freestanding compilers.
5345  # On the NeXT, cc -E runs the code through the compiler's parser,
5346  # not just through cpp. "Syntax error" is here to catch this case.
5347  cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h.  */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h.  */
5353#ifdef __STDC__
5354# include <limits.h>
5355#else
5356# include <assert.h>
5357#endif
5358		     Syntax error
5359_ACEOF
5360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362  ac_status=$?
5363  grep -v '^ *+' conftest.er1 >conftest.err
5364  rm -f conftest.er1
5365  cat conftest.err >&5
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); } >/dev/null; then
5368  if test -s conftest.err; then
5369    ac_cpp_err=$ac_cxx_preproc_warn_flag
5370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5371  else
5372    ac_cpp_err=
5373  fi
5374else
5375  ac_cpp_err=yes
5376fi
5377if test -z "$ac_cpp_err"; then
5378  :
5379else
5380  echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383  # Broken: fails on valid input.
5384continue
5385fi
5386rm -f conftest.err conftest.$ac_ext
5387
5388  # OK, works on sane cases.  Now check whether non-existent headers
5389  # can be detected and how.
5390  cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h.  */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h.  */
5396#include <ac_nonexistent.h>
5397_ACEOF
5398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400  ac_status=$?
5401  grep -v '^ *+' conftest.er1 >conftest.err
5402  rm -f conftest.er1
5403  cat conftest.err >&5
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } >/dev/null; then
5406  if test -s conftest.err; then
5407    ac_cpp_err=$ac_cxx_preproc_warn_flag
5408    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5409  else
5410    ac_cpp_err=
5411  fi
5412else
5413  ac_cpp_err=yes
5414fi
5415if test -z "$ac_cpp_err"; then
5416  # Broken: success on invalid input.
5417continue
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422  # Passes both tests.
5423ac_preproc_ok=:
5424break
5425fi
5426rm -f conftest.err conftest.$ac_ext
5427
5428done
5429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430rm -f conftest.err conftest.$ac_ext
5431if $ac_preproc_ok; then
5432  :
5433else
5434  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5435See \`config.log' for more details." >&5
5436echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5437See \`config.log' for more details." >&2;}
5438   { (exit 1); exit 1; }; }
5439fi
5440
5441ac_ext=cc
5442ac_cpp='$CXXCPP $CPPFLAGS'
5443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446
5447fi
5448
5449
5450ac_ext=f
5451ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5452ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5454if test -n "$ac_tool_prefix"; then
5455  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5456  do
5457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461if test "${ac_cv_prog_F77+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  if test -n "$F77"; then
5465  ac_cv_prog_F77="$F77" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472  for ac_exec_ext in '' $ac_executable_extensions; do
5473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479done
5480
5481fi
5482fi
5483F77=$ac_cv_prog_F77
5484if test -n "$F77"; then
5485  echo "$as_me:$LINENO: result: $F77" >&5
5486echo "${ECHO_T}$F77" >&6
5487else
5488  echo "$as_me:$LINENO: result: no" >&5
5489echo "${ECHO_T}no" >&6
5490fi
5491
5492    test -n "$F77" && break
5493  done
5494fi
5495if test -z "$F77"; then
5496  ac_ct_F77=$F77
5497  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5498do
5499  # Extract the first word of "$ac_prog", so it can be a program name with args.
5500set dummy $ac_prog; ac_word=$2
5501echo "$as_me:$LINENO: checking for $ac_word" >&5
5502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5504  echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506  if test -n "$ac_ct_F77"; then
5507  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5508else
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512  IFS=$as_save_IFS
5513  test -z "$as_dir" && as_dir=.
5514  for ac_exec_ext in '' $ac_executable_extensions; do
5515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516    ac_cv_prog_ac_ct_F77="$ac_prog"
5517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518    break 2
5519  fi
5520done
5521done
5522
5523fi
5524fi
5525ac_ct_F77=$ac_cv_prog_ac_ct_F77
5526if test -n "$ac_ct_F77"; then
5527  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5528echo "${ECHO_T}$ac_ct_F77" >&6
5529else
5530  echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6
5532fi
5533
5534  test -n "$ac_ct_F77" && break
5535done
5536
5537  F77=$ac_ct_F77
5538fi
5539
5540
5541# Provide some information about the compiler.
5542echo "$as_me:5542:" \
5543     "checking for Fortran 77 compiler version" >&5
5544ac_compiler=`set X $ac_compile; echo $2`
5545{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5546  (eval $ac_compiler --version </dev/null >&5) 2>&5
5547  ac_status=$?
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); }
5550{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5551  (eval $ac_compiler -v </dev/null >&5) 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); }
5555{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5556  (eval $ac_compiler -V </dev/null >&5) 2>&5
5557  ac_status=$?
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); }
5560rm -f a.out
5561
5562# If we don't use `.F' as extension, the preprocessor is not run on the
5563# input file.  (Note that this only needs to work for GNU compilers.)
5564ac_save_ext=$ac_ext
5565ac_ext=F
5566echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5567echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5568if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  cat >conftest.$ac_ext <<_ACEOF
5572      program main
5573#ifndef __GNUC__
5574       choke me
5575#endif
5576
5577      end
5578_ACEOF
5579rm -f conftest.$ac_objext
5580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581  (eval $ac_compile) 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } &&
5588	 { ac_try='test -z "$ac_f77_werror_flag"
5589			 || test ! -s conftest.err'
5590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591  (eval $ac_try) 2>&5
5592  ac_status=$?
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }; } &&
5595	 { ac_try='test -s conftest.$ac_objext'
5596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597  (eval $ac_try) 2>&5
5598  ac_status=$?
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); }; }; then
5601  ac_compiler_gnu=yes
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606ac_compiler_gnu=no
5607fi
5608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5609ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5610
5611fi
5612echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5613echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5614ac_ext=$ac_save_ext
5615ac_test_FFLAGS=${FFLAGS+set}
5616ac_save_FFLAGS=$FFLAGS
5617FFLAGS=
5618echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5619echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5620if test "${ac_cv_prog_f77_g+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  FFLAGS=-g
5624cat >conftest.$ac_ext <<_ACEOF
5625      program main
5626
5627      end
5628_ACEOF
5629rm -f conftest.$ac_objext
5630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631  (eval $ac_compile) 2>conftest.er1
5632  ac_status=$?
5633  grep -v '^ *+' conftest.er1 >conftest.err
5634  rm -f conftest.er1
5635  cat conftest.err >&5
5636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637  (exit $ac_status); } &&
5638	 { ac_try='test -z "$ac_f77_werror_flag"
5639			 || test ! -s conftest.err'
5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641  (eval $ac_try) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }; } &&
5645	 { ac_try='test -s conftest.$ac_objext'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; }; then
5651  ac_cv_prog_f77_g=yes
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656ac_cv_prog_f77_g=no
5657fi
5658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659
5660fi
5661echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5662echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5663if test "$ac_test_FFLAGS" = set; then
5664  FFLAGS=$ac_save_FFLAGS
5665elif test $ac_cv_prog_f77_g = yes; then
5666  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5667    FFLAGS="-g -O2"
5668  else
5669    FFLAGS="-g"
5670  fi
5671else
5672  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5673    FFLAGS="-O2"
5674  else
5675    FFLAGS=
5676  fi
5677fi
5678
5679G77=`test $ac_compiler_gnu = yes && echo yes`
5680ac_ext=c
5681ac_cpp='$CPP $CPPFLAGS'
5682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
5686
5687
5688# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5689
5690# find the maximum length of command line arguments
5691echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5692echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5693if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5694  echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696    i=0
5697  teststring="ABCD"
5698
5699  case $build_os in
5700  msdosdjgpp*)
5701    # On DJGPP, this test can blow up pretty badly due to problems in libc
5702    # (any single argument exceeding 2000 bytes causes a buffer overrun
5703    # during glob expansion).  Even if it were fixed, the result of this
5704    # check would be larger than it should be.
5705    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5706    ;;
5707
5708  gnu*)
5709    # Under GNU Hurd, this test is not required because there is
5710    # no limit to the length of command line arguments.
5711    # Libtool will interpret -1 as no limit whatsoever
5712    lt_cv_sys_max_cmd_len=-1;
5713    ;;
5714
5715  cygwin* | mingw*)
5716    # On Win9x/ME, this test blows up -- it succeeds, but takes
5717    # about 5 minutes as the teststring grows exponentially.
5718    # Worse, since 9x/ME are not pre-emptively multitasking,
5719    # you end up with a "frozen" computer, even though with patience
5720    # the test eventually succeeds (with a max line length of 256k).
5721    # Instead, let's just punt: use the minimum linelength reported by
5722    # all of the supported platforms: 8192 (on NT/2K/XP).
5723    lt_cv_sys_max_cmd_len=8192;
5724    ;;
5725
5726  amigaos*)
5727    # On AmigaOS with pdksh, this test takes hours, literally.
5728    # So we just punt and use a minimum line length of 8192.
5729    lt_cv_sys_max_cmd_len=8192;
5730    ;;
5731
5732  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5733    # This has been around since 386BSD, at least.  Likely further.
5734    if test -x /sbin/sysctl; then
5735      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5736    elif test -x /usr/sbin/sysctl; then
5737      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5738    else
5739      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5740    fi
5741    # And add a safety zone
5742    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5743    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5744    ;;
5745  osf*)
5746    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5747    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5748    # nice to cause kernel panics so lets avoid the loop below.
5749    # First set a reasonable default.
5750    lt_cv_sys_max_cmd_len=16384
5751    #
5752    if test -x /sbin/sysconfig; then
5753      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5754        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5755      esac
5756    fi
5757    ;;
5758  *)
5759    # If test is not a shell built-in, we'll probably end up computing a
5760    # maximum length that is only half of the actual maximum length, but
5761    # we can't tell.
5762    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5763    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5764	       = "XX$teststring") >/dev/null 2>&1 &&
5765	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5766	    lt_cv_sys_max_cmd_len=$new_result &&
5767	    test $i != 17 # 1/2 MB should be enough
5768    do
5769      i=`expr $i + 1`
5770      teststring=$teststring$teststring
5771    done
5772    teststring=
5773    # Add a significant safety factor because C++ compilers can tack on massive
5774    # amounts of additional arguments before passing them to the linker.
5775    # It appears as though 1/2 is a usable value.
5776    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5777    ;;
5778  esac
5779
5780fi
5781
5782if test -n $lt_cv_sys_max_cmd_len ; then
5783  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5784echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5785else
5786  echo "$as_me:$LINENO: result: none" >&5
5787echo "${ECHO_T}none" >&6
5788fi
5789
5790
5791
5792
5793# Check for command to grab the raw symbol name followed by C symbol from nm.
5794echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5795echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5796if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5797  echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799
5800# These are sane defaults that work on at least a few old systems.
5801# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5802
5803# Character class describing NM global symbol codes.
5804symcode='[BCDEGRST]'
5805
5806# Regexp to match symbols that can be accessed directly from C.
5807sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5808
5809# Transform an extracted symbol line into a proper C declaration
5810lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5811
5812# Transform an extracted symbol line into symbol name and symbol address
5813lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5814
5815# Define system-specific variables.
5816case $host_os in
5817aix*)
5818  symcode='[BCDT]'
5819  ;;
5820cygwin* | mingw* | pw32*)
5821  symcode='[ABCDGISTW]'
5822  ;;
5823hpux*) # Its linker distinguishes data from code symbols
5824  if test "$host_cpu" = ia64; then
5825    symcode='[ABCDEGRST]'
5826  fi
5827  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5828  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5829  ;;
5830linux*)
5831  if test "$host_cpu" = ia64; then
5832    symcode='[ABCDGIRSTW]'
5833    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5834    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5835  fi
5836  ;;
5837irix* | nonstopux*)
5838  symcode='[BCDEGRST]'
5839  ;;
5840osf*)
5841  symcode='[BCDEGQRST]'
5842  ;;
5843solaris* | sysv5*)
5844  symcode='[BDRT]'
5845  ;;
5846sysv4)
5847  symcode='[DFNSTU]'
5848  ;;
5849esac
5850
5851# Handle CRLF in mingw tool chain
5852opt_cr=
5853case $build_os in
5854mingw*)
5855  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5856  ;;
5857esac
5858
5859# If we're using GNU nm, then use its standard symbol codes.
5860case `$NM -V 2>&1` in
5861*GNU* | *'with BFD'*)
5862  symcode='[ABCDGIRSTW]' ;;
5863esac
5864
5865# Try without a prefix undercore, then with it.
5866for ac_symprfx in "" "_"; do
5867
5868  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5869  symxfrm="\\1 $ac_symprfx\\2 \\2"
5870
5871  # Write the raw and C identifiers.
5872  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5873
5874  # Check to see that the pipe works correctly.
5875  pipe_works=no
5876
5877  rm -f conftest*
5878  cat > conftest.$ac_ext <<EOF
5879#ifdef __cplusplus
5880extern "C" {
5881#endif
5882char nm_test_var;
5883void nm_test_func(){}
5884#ifdef __cplusplus
5885}
5886#endif
5887int main(){nm_test_var='a';nm_test_func();return(0);}
5888EOF
5889
5890  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5891  (eval $ac_compile) 2>&5
5892  ac_status=$?
5893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894  (exit $ac_status); }; then
5895    # Now try to grab the symbols.
5896    nlist=conftest.nm
5897    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5898  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5899  ac_status=$?
5900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901  (exit $ac_status); } && test -s "$nlist"; then
5902      # Try sorting and uniquifying the output.
5903      if sort "$nlist" | uniq > "$nlist"T; then
5904	mv -f "$nlist"T "$nlist"
5905      else
5906	rm -f "$nlist"T
5907      fi
5908
5909      # Make sure that we snagged all the symbols we need.
5910      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5911	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5912	  cat <<EOF > conftest.$ac_ext
5913#ifdef __cplusplus
5914extern "C" {
5915#endif
5916
5917EOF
5918	  # Now generate the symbol file.
5919	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5920
5921	  cat <<EOF >> conftest.$ac_ext
5922#if defined (__STDC__) && __STDC__
5923# define lt_ptr_t void *
5924#else
5925# define lt_ptr_t char *
5926# define const
5927#endif
5928
5929/* The mapping between symbol names and symbols. */
5930const struct {
5931  const char *name;
5932  lt_ptr_t address;
5933}
5934lt_preloaded_symbols[] =
5935{
5936EOF
5937	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5938	  cat <<\EOF >> conftest.$ac_ext
5939  {0, (lt_ptr_t) 0}
5940};
5941
5942#ifdef __cplusplus
5943}
5944#endif
5945EOF
5946	  # Now try linking the two files.
5947	  mv conftest.$ac_objext conftstm.$ac_objext
5948	  lt_save_LIBS="$LIBS"
5949	  lt_save_CFLAGS="$CFLAGS"
5950	  LIBS="conftstm.$ac_objext"
5951	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5952	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953  (eval $ac_link) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5957	    pipe_works=yes
5958	  fi
5959	  LIBS="$lt_save_LIBS"
5960	  CFLAGS="$lt_save_CFLAGS"
5961	else
5962	  echo "cannot find nm_test_func in $nlist" >&5
5963	fi
5964      else
5965	echo "cannot find nm_test_var in $nlist" >&5
5966      fi
5967    else
5968      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5969    fi
5970  else
5971    echo "$progname: failed program was:" >&5
5972    cat conftest.$ac_ext >&5
5973  fi
5974  rm -f conftest* conftst*
5975
5976  # Do not use the global_symbol_pipe unless it works.
5977  if test "$pipe_works" = yes; then
5978    break
5979  else
5980    lt_cv_sys_global_symbol_pipe=
5981  fi
5982done
5983
5984fi
5985
5986if test -z "$lt_cv_sys_global_symbol_pipe"; then
5987  lt_cv_sys_global_symbol_to_cdecl=
5988fi
5989if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5990  echo "$as_me:$LINENO: result: failed" >&5
5991echo "${ECHO_T}failed" >&6
5992else
5993  echo "$as_me:$LINENO: result: ok" >&5
5994echo "${ECHO_T}ok" >&6
5995fi
5996
5997echo "$as_me:$LINENO: checking for objdir" >&5
5998echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5999if test "${lt_cv_objdir+set}" = set; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  rm -f .libs 2>/dev/null
6003mkdir .libs 2>/dev/null
6004if test -d .libs; then
6005  lt_cv_objdir=.libs
6006else
6007  # MS-DOS does not allow filenames that begin with a dot.
6008  lt_cv_objdir=_libs
6009fi
6010rmdir .libs 2>/dev/null
6011fi
6012echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6013echo "${ECHO_T}$lt_cv_objdir" >&6
6014objdir=$lt_cv_objdir
6015
6016
6017
6018
6019
6020case $host_os in
6021aix3*)
6022  # AIX sometimes has problems with the GCC collect2 program.  For some
6023  # reason, if we set the COLLECT_NAMES environment variable, the problems
6024  # vanish in a puff of smoke.
6025  if test "X${COLLECT_NAMES+set}" != Xset; then
6026    COLLECT_NAMES=
6027    export COLLECT_NAMES
6028  fi
6029  ;;
6030esac
6031
6032# Sed substitution that helps us do robust quoting.  It backslashifies
6033# metacharacters that are still active within double-quoted strings.
6034Xsed='sed -e 1s/^X//'
6035sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6036
6037# Same as above, but do not quote variable references.
6038double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6039
6040# Sed substitution to delay expansion of an escaped shell variable in a
6041# double_quote_subst'ed string.
6042delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6043
6044# Sed substitution to avoid accidental globbing in evaled expressions
6045no_glob_subst='s/\*/\\\*/g'
6046
6047# Constants:
6048rm="rm -f"
6049
6050# Global variables:
6051default_ofile=libtool
6052can_build_shared=yes
6053
6054# All known linkers require a `.a' archive for static linking (except MSVC,
6055# which needs '.lib').
6056libext=a
6057ltmain="$ac_aux_dir/ltmain.sh"
6058ofile="$default_ofile"
6059with_gnu_ld="$lt_cv_prog_gnu_ld"
6060
6061if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}ar; ac_word=$2
6064echo "$as_me:$LINENO: checking for $ac_word" >&5
6065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066if test "${ac_cv_prog_AR+set}" = set; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069  if test -n "$AR"; then
6070  ac_cv_prog_AR="$AR" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077  for ac_exec_ext in '' $ac_executable_extensions; do
6078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_prog_AR="${ac_tool_prefix}ar"
6080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084done
6085
6086fi
6087fi
6088AR=$ac_cv_prog_AR
6089if test -n "$AR"; then
6090  echo "$as_me:$LINENO: result: $AR" >&5
6091echo "${ECHO_T}$AR" >&6
6092else
6093  echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095fi
6096
6097fi
6098if test -z "$ac_cv_prog_AR"; then
6099  ac_ct_AR=$AR
6100  # Extract the first word of "ar", so it can be a program name with args.
6101set dummy ar; ac_word=$2
6102echo "$as_me:$LINENO: checking for $ac_word" >&5
6103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6104if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107  if test -n "$ac_ct_AR"; then
6108  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115  for ac_exec_ext in '' $ac_executable_extensions; do
6116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117    ac_cv_prog_ac_ct_AR="ar"
6118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119    break 2
6120  fi
6121done
6122done
6123
6124  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6125fi
6126fi
6127ac_ct_AR=$ac_cv_prog_ac_ct_AR
6128if test -n "$ac_ct_AR"; then
6129  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6130echo "${ECHO_T}$ac_ct_AR" >&6
6131else
6132  echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134fi
6135
6136  AR=$ac_ct_AR
6137else
6138  AR="$ac_cv_prog_AR"
6139fi
6140
6141if test -n "$ac_tool_prefix"; then
6142  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6144echo "$as_me:$LINENO: checking for $ac_word" >&5
6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146if test "${ac_cv_prog_RANLIB+set}" = set; then
6147  echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149  if test -n "$RANLIB"; then
6150  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157  for ac_exec_ext in '' $ac_executable_extensions; do
6158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164done
6165
6166fi
6167fi
6168RANLIB=$ac_cv_prog_RANLIB
6169if test -n "$RANLIB"; then
6170  echo "$as_me:$LINENO: result: $RANLIB" >&5
6171echo "${ECHO_T}$RANLIB" >&6
6172else
6173  echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175fi
6176
6177fi
6178if test -z "$ac_cv_prog_RANLIB"; then
6179  ac_ct_RANLIB=$RANLIB
6180  # Extract the first word of "ranlib", so it can be a program name with args.
6181set dummy ranlib; ac_word=$2
6182echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  if test -n "$ac_ct_RANLIB"; then
6188  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195  for ac_exec_ext in '' $ac_executable_extensions; do
6196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197    ac_cv_prog_ac_ct_RANLIB="ranlib"
6198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202done
6203
6204  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6205fi
6206fi
6207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208if test -n "$ac_ct_RANLIB"; then
6209  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210echo "${ECHO_T}$ac_ct_RANLIB" >&6
6211else
6212  echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
6214fi
6215
6216  RANLIB=$ac_ct_RANLIB
6217else
6218  RANLIB="$ac_cv_prog_RANLIB"
6219fi
6220
6221if test -n "$ac_tool_prefix"; then
6222  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6223set dummy ${ac_tool_prefix}strip; ac_word=$2
6224echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226if test "${ac_cv_prog_STRIP+set}" = set; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229  if test -n "$STRIP"; then
6230  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237  for ac_exec_ext in '' $ac_executable_extensions; do
6238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244done
6245
6246fi
6247fi
6248STRIP=$ac_cv_prog_STRIP
6249if test -n "$STRIP"; then
6250  echo "$as_me:$LINENO: result: $STRIP" >&5
6251echo "${ECHO_T}$STRIP" >&6
6252else
6253  echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255fi
6256
6257fi
6258if test -z "$ac_cv_prog_STRIP"; then
6259  ac_ct_STRIP=$STRIP
6260  # Extract the first word of "strip", so it can be a program name with args.
6261set dummy strip; ac_word=$2
6262echo "$as_me:$LINENO: checking for $ac_word" >&5
6263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6265  echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267  if test -n "$ac_ct_STRIP"; then
6268  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275  for ac_exec_ext in '' $ac_executable_extensions; do
6276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277    ac_cv_prog_ac_ct_STRIP="strip"
6278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282done
6283
6284  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6285fi
6286fi
6287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6288if test -n "$ac_ct_STRIP"; then
6289  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6290echo "${ECHO_T}$ac_ct_STRIP" >&6
6291else
6292  echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
6294fi
6295
6296  STRIP=$ac_ct_STRIP
6297else
6298  STRIP="$ac_cv_prog_STRIP"
6299fi
6300
6301
6302old_CC="$CC"
6303old_CFLAGS="$CFLAGS"
6304
6305# Set sane defaults for various variables
6306test -z "$AR" && AR=ar
6307test -z "$AR_FLAGS" && AR_FLAGS=cru
6308test -z "$AS" && AS=as
6309test -z "$CC" && CC=cc
6310test -z "$LTCC" && LTCC=$CC
6311test -z "$DLLTOOL" && DLLTOOL=dlltool
6312test -z "$LD" && LD=ld
6313test -z "$LN_S" && LN_S="ln -s"
6314test -z "$MAGIC_CMD" && MAGIC_CMD=file
6315test -z "$NM" && NM=nm
6316test -z "$SED" && SED=sed
6317test -z "$OBJDUMP" && OBJDUMP=objdump
6318test -z "$RANLIB" && RANLIB=:
6319test -z "$STRIP" && STRIP=:
6320test -z "$ac_objext" && ac_objext=o
6321
6322# Determine commands to create old-style static archives.
6323old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6324old_postinstall_cmds='chmod 644 $oldlib'
6325old_postuninstall_cmds=
6326
6327if test -n "$RANLIB"; then
6328  case $host_os in
6329  openbsd*)
6330    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6331    ;;
6332  *)
6333    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6334    ;;
6335  esac
6336  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6337fi
6338
6339for cc_temp in $compiler""; do
6340  case $cc_temp in
6341    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6342    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6343    \-*) ;;
6344    *) break;;
6345  esac
6346done
6347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6348
6349
6350# Only perform the check for file, if the check method requires it
6351case $deplibs_check_method in
6352file_magic*)
6353  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6354    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6355echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6356if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6357  echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359  case $MAGIC_CMD in
6360[\\/*] |  ?:[\\/]*)
6361  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6362  ;;
6363*)
6364  lt_save_MAGIC_CMD="$MAGIC_CMD"
6365  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6366  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6367  for ac_dir in $ac_dummy; do
6368    IFS="$lt_save_ifs"
6369    test -z "$ac_dir" && ac_dir=.
6370    if test -f $ac_dir/${ac_tool_prefix}file; then
6371      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6372      if test -n "$file_magic_test_file"; then
6373	case $deplibs_check_method in
6374	"file_magic "*)
6375	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6376	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6377	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6378	    $EGREP "$file_magic_regex" > /dev/null; then
6379	    :
6380	  else
6381	    cat <<EOF 1>&2
6382
6383*** Warning: the command libtool uses to detect shared libraries,
6384*** $file_magic_cmd, produces output that libtool cannot recognize.
6385*** The result is that libtool may fail to recognize shared libraries
6386*** as such.  This will affect the creation of libtool libraries that
6387*** depend on shared libraries, but programs linked with such libtool
6388*** libraries will work regardless of this problem.  Nevertheless, you
6389*** may want to report the problem to your system manager and/or to
6390*** bug-libtool@gnu.org
6391
6392EOF
6393	  fi ;;
6394	esac
6395      fi
6396      break
6397    fi
6398  done
6399  IFS="$lt_save_ifs"
6400  MAGIC_CMD="$lt_save_MAGIC_CMD"
6401  ;;
6402esac
6403fi
6404
6405MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6406if test -n "$MAGIC_CMD"; then
6407  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6408echo "${ECHO_T}$MAGIC_CMD" >&6
6409else
6410  echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6
6412fi
6413
6414if test -z "$lt_cv_path_MAGIC_CMD"; then
6415  if test -n "$ac_tool_prefix"; then
6416    echo "$as_me:$LINENO: checking for file" >&5
6417echo $ECHO_N "checking for file... $ECHO_C" >&6
6418if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  case $MAGIC_CMD in
6422[\\/*] |  ?:[\\/]*)
6423  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6424  ;;
6425*)
6426  lt_save_MAGIC_CMD="$MAGIC_CMD"
6427  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6428  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6429  for ac_dir in $ac_dummy; do
6430    IFS="$lt_save_ifs"
6431    test -z "$ac_dir" && ac_dir=.
6432    if test -f $ac_dir/file; then
6433      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6434      if test -n "$file_magic_test_file"; then
6435	case $deplibs_check_method in
6436	"file_magic "*)
6437	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6438	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6439	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6440	    $EGREP "$file_magic_regex" > /dev/null; then
6441	    :
6442	  else
6443	    cat <<EOF 1>&2
6444
6445*** Warning: the command libtool uses to detect shared libraries,
6446*** $file_magic_cmd, produces output that libtool cannot recognize.
6447*** The result is that libtool may fail to recognize shared libraries
6448*** as such.  This will affect the creation of libtool libraries that
6449*** depend on shared libraries, but programs linked with such libtool
6450*** libraries will work regardless of this problem.  Nevertheless, you
6451*** may want to report the problem to your system manager and/or to
6452*** bug-libtool@gnu.org
6453
6454EOF
6455	  fi ;;
6456	esac
6457      fi
6458      break
6459    fi
6460  done
6461  IFS="$lt_save_ifs"
6462  MAGIC_CMD="$lt_save_MAGIC_CMD"
6463  ;;
6464esac
6465fi
6466
6467MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6468if test -n "$MAGIC_CMD"; then
6469  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6470echo "${ECHO_T}$MAGIC_CMD" >&6
6471else
6472  echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
6474fi
6475
6476  else
6477    MAGIC_CMD=:
6478  fi
6479fi
6480
6481  fi
6482  ;;
6483esac
6484
6485enable_dlopen=no
6486enable_win32_dll=no
6487
6488# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6489if test "${enable_libtool_lock+set}" = set; then
6490  enableval="$enable_libtool_lock"
6491
6492fi;
6493test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6494
6495
6496# Check whether --with-pic or --without-pic was given.
6497if test "${with_pic+set}" = set; then
6498  withval="$with_pic"
6499  pic_mode="$withval"
6500else
6501  pic_mode=default
6502fi;
6503test -z "$pic_mode" && pic_mode=default
6504
6505# Use C for the default configuration in the libtool script
6506tagname=
6507lt_save_CC="$CC"
6508ac_ext=c
6509ac_cpp='$CPP $CPPFLAGS'
6510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6512ac_compiler_gnu=$ac_cv_c_compiler_gnu
6513
6514
6515# Source file extension for C test sources.
6516ac_ext=c
6517
6518# Object file extension for compiled C test sources.
6519objext=o
6520objext=$objext
6521
6522# Code to be used in simple compile tests
6523lt_simple_compile_test_code="int some_variable = 0;\n"
6524
6525# Code to be used in simple link tests
6526lt_simple_link_test_code='int main(){return(0);}\n'
6527
6528
6529# If no C compiler was specified, use CC.
6530LTCC=${LTCC-"$CC"}
6531
6532# Allow CC to be a program name with arguments.
6533compiler=$CC
6534
6535
6536# save warnings/boilerplate of simple test code
6537ac_outfile=conftest.$ac_objext
6538printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6539eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6540_lt_compiler_boilerplate=`cat conftest.err`
6541$rm conftest*
6542
6543ac_outfile=conftest.$ac_objext
6544printf "$lt_simple_link_test_code" >conftest.$ac_ext
6545eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6546_lt_linker_boilerplate=`cat conftest.err`
6547$rm conftest*
6548
6549
6550#
6551# Check for any special shared library compilation flags.
6552#
6553lt_prog_cc_shlib=
6554if test "$GCC" = no; then
6555  case $host_os in
6556  sco3.2v5*)
6557    lt_prog_cc_shlib='-belf'
6558    ;;
6559  esac
6560fi
6561if test -n "$lt_prog_cc_shlib"; then
6562  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6563echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6564  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6565  else
6566    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6567echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6568    lt_cv_prog_cc_can_build_shared=no
6569  fi
6570fi
6571
6572
6573#
6574# Check to make sure the static flag actually works.
6575#
6576echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6577echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6578if test "${lt_prog_compiler_static_works+set}" = set; then
6579  echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581  lt_prog_compiler_static_works=no
6582   save_LDFLAGS="$LDFLAGS"
6583   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6584   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6585   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6586     # The linker can only warn and ignore the option if not recognized
6587     # So say no if there are warnings
6588     if test -s conftest.err; then
6589       # Append any errors to the config.log.
6590       cat conftest.err 1>&5
6591       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6592       $SED '/^$/d' conftest.err >conftest.er2
6593       if diff conftest.exp conftest.er2 >/dev/null; then
6594         lt_prog_compiler_static_works=yes
6595       fi
6596     else
6597       lt_prog_compiler_static_works=yes
6598     fi
6599   fi
6600   $rm conftest*
6601   LDFLAGS="$save_LDFLAGS"
6602
6603fi
6604echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6605echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6606
6607if test x"$lt_prog_compiler_static_works" = xyes; then
6608    :
6609else
6610    lt_prog_compiler_static=
6611fi
6612
6613
6614
6615
6616lt_prog_compiler_no_builtin_flag=
6617
6618if test "$GCC" = yes; then
6619  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6620
6621
6622echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6623echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6624if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6625  echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627  lt_cv_prog_compiler_rtti_exceptions=no
6628  ac_outfile=conftest.$ac_objext
6629   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6630   lt_compiler_flag="-fno-rtti -fno-exceptions"
6631   # Insert the option either (1) after the last *FLAGS variable, or
6632   # (2) before a word containing "conftest.", or (3) at the end.
6633   # Note that $ac_compile itself does not contain backslashes and begins
6634   # with a dollar sign (not a hyphen), so the echo should work correctly.
6635   # The option is referenced via a variable to avoid confusing sed.
6636   lt_compile=`echo "$ac_compile" | $SED \
6637   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6638   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6639   -e 's:$: $lt_compiler_flag:'`
6640   (eval echo "\"\$as_me:6640: $lt_compile\"" >&5)
6641   (eval "$lt_compile" 2>conftest.err)
6642   ac_status=$?
6643   cat conftest.err >&5
6644   echo "$as_me:6644: \$? = $ac_status" >&5
6645   if (exit $ac_status) && test -s "$ac_outfile"; then
6646     # The compiler can only warn and ignore the option if not recognized
6647     # So say no if there are warnings other than the usual output.
6648     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6649     $SED '/^$/d' conftest.err >conftest.er2
6650     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6651       lt_cv_prog_compiler_rtti_exceptions=yes
6652     fi
6653   fi
6654   $rm conftest*
6655
6656fi
6657echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6658echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6659
6660if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6661    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6662else
6663    :
6664fi
6665
6666fi
6667
6668lt_prog_compiler_wl=
6669lt_prog_compiler_pic=
6670lt_prog_compiler_static=
6671
6672echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6673echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6674
6675  if test "$GCC" = yes; then
6676    lt_prog_compiler_wl='-Wl,'
6677    lt_prog_compiler_static='-static'
6678
6679    case $host_os in
6680      aix*)
6681      # All AIX code is PIC.
6682      if test "$host_cpu" = ia64; then
6683	# AIX 5 now supports IA64 processor
6684	lt_prog_compiler_static='-Bstatic'
6685      fi
6686      ;;
6687
6688    amigaos*)
6689      # FIXME: we need at least 68020 code to build shared libraries, but
6690      # adding the `-m68020' flag to GCC prevents building anything better,
6691      # like `-m68040'.
6692      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6693      ;;
6694
6695    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6696      # PIC is the default for these OSes.
6697      ;;
6698
6699    mingw* | pw32* | os2*)
6700      # This hack is so that the source file can tell whether it is being
6701      # built for inclusion in a dll (and should export symbols for example).
6702      lt_prog_compiler_pic='-DDLL_EXPORT'
6703      ;;
6704
6705    darwin* | rhapsody*)
6706      # PIC is the default on this platform
6707      # Common symbols not allowed in MH_DYLIB files
6708      lt_prog_compiler_pic='-fno-common'
6709      ;;
6710
6711    msdosdjgpp*)
6712      # Just because we use GCC doesn't mean we suddenly get shared libraries
6713      # on systems that don't support them.
6714      lt_prog_compiler_can_build_shared=no
6715      enable_shared=no
6716      ;;
6717
6718    sysv4*MP*)
6719      if test -d /usr/nec; then
6720	lt_prog_compiler_pic=-Kconform_pic
6721      fi
6722      ;;
6723
6724    hpux*)
6725      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6726      # not for PA HP-UX.
6727      case $host_cpu in
6728      hppa*64*|ia64*)
6729	# +Z the default
6730	;;
6731      *)
6732	lt_prog_compiler_pic='-fPIC'
6733	;;
6734      esac
6735      ;;
6736
6737    *)
6738      lt_prog_compiler_pic='-fPIC'
6739      ;;
6740    esac
6741  else
6742    # PORTME Check for flag to pass linker flags through the system compiler.
6743    case $host_os in
6744    aix*)
6745      lt_prog_compiler_wl='-Wl,'
6746      if test "$host_cpu" = ia64; then
6747	# AIX 5 now supports IA64 processor
6748	lt_prog_compiler_static='-Bstatic'
6749      else
6750	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6751      fi
6752      ;;
6753      darwin*)
6754        # PIC is the default on this platform
6755        # Common symbols not allowed in MH_DYLIB files
6756       case $cc_basename in
6757         xlc*)
6758         lt_prog_compiler_pic='-qnocommon'
6759         lt_prog_compiler_wl='-Wl,'
6760         ;;
6761       esac
6762       ;;
6763
6764    mingw* | pw32* | os2*)
6765      # This hack is so that the source file can tell whether it is being
6766      # built for inclusion in a dll (and should export symbols for example).
6767      lt_prog_compiler_pic='-DDLL_EXPORT'
6768      ;;
6769
6770    hpux9* | hpux10* | hpux11*)
6771      lt_prog_compiler_wl='-Wl,'
6772      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6773      # not for PA HP-UX.
6774      case $host_cpu in
6775      hppa*64*|ia64*)
6776	# +Z the default
6777	;;
6778      *)
6779	lt_prog_compiler_pic='+Z'
6780	;;
6781      esac
6782      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6783      lt_prog_compiler_static='${wl}-a ${wl}archive'
6784      ;;
6785
6786    irix5* | irix6* | nonstopux*)
6787      lt_prog_compiler_wl='-Wl,'
6788      # PIC (with -KPIC) is the default.
6789      lt_prog_compiler_static='-non_shared'
6790      ;;
6791
6792    newsos6)
6793      lt_prog_compiler_pic='-KPIC'
6794      lt_prog_compiler_static='-Bstatic'
6795      ;;
6796
6797    linux*)
6798      case $cc_basename in
6799      icc* | ecc*)
6800	lt_prog_compiler_wl='-Wl,'
6801	lt_prog_compiler_pic='-KPIC'
6802	lt_prog_compiler_static='-static'
6803        ;;
6804      pgcc* | pgf77* | pgf90* | pgf95*)
6805        # Portland Group compilers (*not* the Pentium gcc compiler,
6806	# which looks to be a dead project)
6807	lt_prog_compiler_wl='-Wl,'
6808	lt_prog_compiler_pic='-fpic'
6809	lt_prog_compiler_static='-Bstatic'
6810        ;;
6811      ccc*)
6812        lt_prog_compiler_wl='-Wl,'
6813        # All Alpha code is PIC.
6814        lt_prog_compiler_static='-non_shared'
6815        ;;
6816      esac
6817      ;;
6818
6819    osf3* | osf4* | osf5*)
6820      lt_prog_compiler_wl='-Wl,'
6821      # All OSF/1 code is PIC.
6822      lt_prog_compiler_static='-non_shared'
6823      ;;
6824
6825    sco3.2v5*)
6826      lt_prog_compiler_pic='-Kpic'
6827      lt_prog_compiler_static='-dn'
6828      ;;
6829
6830    solaris*)
6831      lt_prog_compiler_pic='-KPIC'
6832      lt_prog_compiler_static='-Bstatic'
6833      case $cc_basename in
6834      f77* | f90* | f95*)
6835	lt_prog_compiler_wl='-Qoption ld ';;
6836      *)
6837	lt_prog_compiler_wl='-Wl,';;
6838      esac
6839      ;;
6840
6841    sunos4*)
6842      lt_prog_compiler_wl='-Qoption ld '
6843      lt_prog_compiler_pic='-PIC'
6844      lt_prog_compiler_static='-Bstatic'
6845      ;;
6846
6847    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6848      lt_prog_compiler_wl='-Wl,'
6849      lt_prog_compiler_pic='-KPIC'
6850      lt_prog_compiler_static='-Bstatic'
6851      ;;
6852
6853    sysv4*MP*)
6854      if test -d /usr/nec ;then
6855	lt_prog_compiler_pic='-Kconform_pic'
6856	lt_prog_compiler_static='-Bstatic'
6857      fi
6858      ;;
6859
6860    unicos*)
6861      lt_prog_compiler_wl='-Wl,'
6862      lt_prog_compiler_can_build_shared=no
6863      ;;
6864
6865    uts4*)
6866      lt_prog_compiler_pic='-pic'
6867      lt_prog_compiler_static='-Bstatic'
6868      ;;
6869
6870    *)
6871      lt_prog_compiler_can_build_shared=no
6872      ;;
6873    esac
6874  fi
6875
6876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6877echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6878
6879#
6880# Check to make sure the PIC flag actually works.
6881#
6882if test -n "$lt_prog_compiler_pic"; then
6883
6884echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6885echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6886if test "${lt_prog_compiler_pic_works+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  lt_prog_compiler_pic_works=no
6890  ac_outfile=conftest.$ac_objext
6891   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6892   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6893   # Insert the option either (1) after the last *FLAGS variable, or
6894   # (2) before a word containing "conftest.", or (3) at the end.
6895   # Note that $ac_compile itself does not contain backslashes and begins
6896   # with a dollar sign (not a hyphen), so the echo should work correctly.
6897   # The option is referenced via a variable to avoid confusing sed.
6898   lt_compile=`echo "$ac_compile" | $SED \
6899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6901   -e 's:$: $lt_compiler_flag:'`
6902   (eval echo "\"\$as_me:6902: $lt_compile\"" >&5)
6903   (eval "$lt_compile" 2>conftest.err)
6904   ac_status=$?
6905   cat conftest.err >&5
6906   echo "$as_me:6906: \$? = $ac_status" >&5
6907   if (exit $ac_status) && test -s "$ac_outfile"; then
6908     # The compiler can only warn and ignore the option if not recognized
6909     # So say no if there are warnings other than the usual output.
6910     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6911     $SED '/^$/d' conftest.err >conftest.er2
6912     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6913       lt_prog_compiler_pic_works=yes
6914     fi
6915   fi
6916   $rm conftest*
6917
6918fi
6919echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6920echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6921
6922if test x"$lt_prog_compiler_pic_works" = xyes; then
6923    case $lt_prog_compiler_pic in
6924     "" | " "*) ;;
6925     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6926     esac
6927else
6928    lt_prog_compiler_pic=
6929     lt_prog_compiler_can_build_shared=no
6930fi
6931
6932fi
6933case $host_os in
6934  # For platforms which do not support PIC, -DPIC is meaningless:
6935  *djgpp*)
6936    lt_prog_compiler_pic=
6937    ;;
6938  *)
6939    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6940    ;;
6941esac
6942
6943echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6944echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6945if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6946  echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948  lt_cv_prog_compiler_c_o=no
6949   $rm -r conftest 2>/dev/null
6950   mkdir conftest
6951   cd conftest
6952   mkdir out
6953   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6954
6955   lt_compiler_flag="-o out/conftest2.$ac_objext"
6956   # Insert the option either (1) after the last *FLAGS variable, or
6957   # (2) before a word containing "conftest.", or (3) at the end.
6958   # Note that $ac_compile itself does not contain backslashes and begins
6959   # with a dollar sign (not a hyphen), so the echo should work correctly.
6960   lt_compile=`echo "$ac_compile" | $SED \
6961   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6963   -e 's:$: $lt_compiler_flag:'`
6964   (eval echo "\"\$as_me:6964: $lt_compile\"" >&5)
6965   (eval "$lt_compile" 2>out/conftest.err)
6966   ac_status=$?
6967   cat out/conftest.err >&5
6968   echo "$as_me:6968: \$? = $ac_status" >&5
6969   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6970   then
6971     # The compiler can only warn and ignore the option if not recognized
6972     # So say no if there are warnings
6973     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6974     $SED '/^$/d' out/conftest.err >out/conftest.er2
6975     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6976       lt_cv_prog_compiler_c_o=yes
6977     fi
6978   fi
6979   chmod u+w . 2>&5
6980   $rm conftest*
6981   # SGI C++ compiler will create directory out/ii_files/ for
6982   # template instantiation
6983   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6984   $rm out/* && rmdir out
6985   cd ..
6986   rmdir conftest
6987   $rm conftest*
6988
6989fi
6990echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6991echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6992
6993
6994hard_links="nottested"
6995if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6996  # do not overwrite the value of need_locks provided by the user
6997  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6998echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6999  hard_links=yes
7000  $rm conftest*
7001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7002  touch conftest.a
7003  ln conftest.a conftest.b 2>&5 || hard_links=no
7004  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7005  echo "$as_me:$LINENO: result: $hard_links" >&5
7006echo "${ECHO_T}$hard_links" >&6
7007  if test "$hard_links" = no; then
7008    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7009echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7010    need_locks=warn
7011  fi
7012else
7013  need_locks=no
7014fi
7015
7016echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7017echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7018
7019  runpath_var=
7020  allow_undefined_flag=
7021  enable_shared_with_static_runtimes=no
7022  archive_cmds=
7023  archive_expsym_cmds=
7024  old_archive_From_new_cmds=
7025  old_archive_from_expsyms_cmds=
7026  export_dynamic_flag_spec=
7027  whole_archive_flag_spec=
7028  thread_safe_flag_spec=
7029  hardcode_libdir_flag_spec=
7030  hardcode_libdir_flag_spec_ld=
7031  hardcode_libdir_separator=
7032  hardcode_direct=no
7033  hardcode_minus_L=no
7034  hardcode_shlibpath_var=unsupported
7035  link_all_deplibs=unknown
7036  hardcode_automatic=no
7037  module_cmds=
7038  module_expsym_cmds=
7039  always_export_symbols=no
7040  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7041  # include_expsyms should be a list of space-separated symbols to be *always*
7042  # included in the symbol list
7043  include_expsyms=
7044  # exclude_expsyms can be an extended regexp of symbols to exclude
7045  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7046  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7047  # as well as any symbol that contains `d'.
7048  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7049  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7050  # platforms (ab)use it in PIC code, but their linkers get confused if
7051  # the symbol is explicitly referenced.  Since portable code cannot
7052  # rely on this symbol name, it's probably fine to never include it in
7053  # preloaded symbol tables.
7054  extract_expsyms_cmds=
7055  # Just being paranoid about ensuring that cc_basename is set.
7056  for cc_temp in $compiler""; do
7057  case $cc_temp in
7058    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7059    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7060    \-*) ;;
7061    *) break;;
7062  esac
7063done
7064cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7065
7066  case $host_os in
7067  cygwin* | mingw* | pw32*)
7068    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7069    # When not using gcc, we currently assume that we are using
7070    # Microsoft Visual C++.
7071    if test "$GCC" != yes; then
7072      with_gnu_ld=no
7073    fi
7074    ;;
7075  openbsd*)
7076    with_gnu_ld=no
7077    ;;
7078  esac
7079
7080  ld_shlibs=yes
7081  if test "$with_gnu_ld" = yes; then
7082    # If archive_cmds runs LD, not CC, wlarc should be empty
7083    wlarc='${wl}'
7084
7085    # Set some defaults for GNU ld with shared library support. These
7086    # are reset later if shared libraries are not supported. Putting them
7087    # here allows them to be overridden if necessary.
7088    runpath_var=LD_RUN_PATH
7089    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7090    export_dynamic_flag_spec='${wl}--export-dynamic'
7091    # ancient GNU ld didn't support --whole-archive et. al.
7092    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7093	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7094      else
7095  	whole_archive_flag_spec=
7096    fi
7097    supports_anon_versioning=no
7098    case `$LD -v 2>/dev/null` in
7099      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7100      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7101      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7102      *\ 2.11.*) ;; # other 2.11 versions
7103      *) supports_anon_versioning=yes ;;
7104    esac
7105
7106    # See if GNU ld supports shared libraries.
7107    case $host_os in
7108    aix3* | aix4* | aix5*)
7109      # On AIX/PPC, the GNU linker is very broken
7110      if test "$host_cpu" != ia64; then
7111	ld_shlibs=no
7112	cat <<EOF 1>&2
7113
7114*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7115*** to be unable to reliably create shared libraries on AIX.
7116*** Therefore, libtool is disabling shared libraries support.  If you
7117*** really care for shared libraries, you may want to modify your PATH
7118*** so that a non-GNU linker is found, and then restart.
7119
7120EOF
7121      fi
7122      ;;
7123
7124    amigaos*)
7125      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)'
7126      hardcode_libdir_flag_spec='-L$libdir'
7127      hardcode_minus_L=yes
7128
7129      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7130      # that the semantics of dynamic libraries on AmigaOS, at least up
7131      # to version 4, is to share data among multiple programs linked
7132      # with the same dynamic library.  Since this doesn't match the
7133      # behavior of shared libraries on other platforms, we can't use
7134      # them.
7135      ld_shlibs=no
7136      ;;
7137
7138    beos*)
7139      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7140	allow_undefined_flag=unsupported
7141	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7142	# support --undefined.  This deserves some investigation.  FIXME
7143	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7144      else
7145	ld_shlibs=no
7146      fi
7147      ;;
7148
7149    cygwin* | mingw* | pw32*)
7150      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7151      # as there is no search path for DLLs.
7152      hardcode_libdir_flag_spec='-L$libdir'
7153      allow_undefined_flag=unsupported
7154      always_export_symbols=no
7155      enable_shared_with_static_runtimes=yes
7156      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7157
7158      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7159        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
7160	# If the export-symbols file already is a .def file (1st line
7161	# is EXPORTS), use it as is; otherwise, prepend...
7162	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7163	  cp $export_symbols $output_objdir/$soname.def;
7164	else
7165	  echo EXPORTS > $output_objdir/$soname.def;
7166	  cat $export_symbols >> $output_objdir/$soname.def;
7167	fi~
7168	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
7169      else
7170	ld_shlibs=no
7171      fi
7172      ;;
7173
7174    linux*)
7175      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7176	tmp_addflag=
7177	case $cc_basename,$host_cpu in
7178	pgcc*)				# Portland Group C compiler
7179	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7180	  tmp_addflag=' $pic_flag'
7181	  ;;
7182	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7183	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7184	  tmp_addflag=' $pic_flag -Mnomain' ;;
7185	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7186	  tmp_addflag=' -i_dynamic' ;;
7187	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7188	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7189	ifc* | ifort*)			# Intel Fortran compiler
7190	  tmp_addflag=' -nofor_main' ;;
7191	esac
7192	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193
7194	if test $supports_anon_versioning = yes; then
7195	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7196  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7197  $echo "local: *; };" >> $output_objdir/$libname.ver~
7198	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7199	fi
7200      else
7201	ld_shlibs=no
7202      fi
7203      ;;
7204
7205    netbsd*)
7206      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7207	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7208	wlarc=
7209      else
7210	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7211	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7212      fi
7213      ;;
7214
7215    solaris* | sysv5*)
7216      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7217	ld_shlibs=no
7218	cat <<EOF 1>&2
7219
7220*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7221*** create shared libraries on Solaris systems.  Therefore, libtool
7222*** is disabling shared libraries support.  We urge you to upgrade GNU
7223*** binutils to release 2.9.1 or newer.  Another option is to modify
7224*** your PATH or compiler configuration so that the native linker is
7225*** used, and then restart.
7226
7227EOF
7228      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7229	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7230	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7231      else
7232	ld_shlibs=no
7233      fi
7234      ;;
7235
7236    sunos4*)
7237      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7238      wlarc=
7239      hardcode_direct=yes
7240      hardcode_shlibpath_var=no
7241      ;;
7242
7243    *)
7244      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7245	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7246	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7247      else
7248	ld_shlibs=no
7249      fi
7250      ;;
7251    esac
7252
7253    if test "$ld_shlibs" = no; then
7254      runpath_var=
7255      hardcode_libdir_flag_spec=
7256      export_dynamic_flag_spec=
7257      whole_archive_flag_spec=
7258    fi
7259  else
7260    # PORTME fill in a description of your system's linker (not GNU ld)
7261    case $host_os in
7262    aix3*)
7263      allow_undefined_flag=unsupported
7264      always_export_symbols=yes
7265      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'
7266      # Note: this linker hardcodes the directories in LIBPATH if there
7267      # are no directories specified by -L.
7268      hardcode_minus_L=yes
7269      if test "$GCC" = yes && test -z "$link_static_flag"; then
7270	# Neither direct hardcoding nor static linking is supported with a
7271	# broken collect2.
7272	hardcode_direct=unsupported
7273      fi
7274      ;;
7275
7276    aix4* | aix5*)
7277      if test "$host_cpu" = ia64; then
7278	# On IA64, the linker does run time linking by default, so we don't
7279	# have to do anything special.
7280	aix_use_runtimelinking=no
7281	exp_sym_flag='-Bexport'
7282	no_entry_flag=""
7283      else
7284	# If we're using GNU nm, then we don't want the "-C" option.
7285	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7286	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7287	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7288	else
7289	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7290	fi
7291	aix_use_runtimelinking=no
7292
7293	# Test if we are trying to use run time linking or normal
7294	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7295	# need to do runtime linking.
7296	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7297	  for ld_flag in $LDFLAGS; do
7298  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7299  	    aix_use_runtimelinking=yes
7300  	    break
7301  	  fi
7302	  done
7303	esac
7304
7305	exp_sym_flag='-bexport'
7306	no_entry_flag='-bnoentry'
7307      fi
7308
7309      # When large executables or shared objects are built, AIX ld can
7310      # have problems creating the table of contents.  If linking a library
7311      # or program results in "error TOC overflow" add -mminimal-toc to
7312      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7313      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7314
7315      archive_cmds=''
7316      hardcode_direct=yes
7317      hardcode_libdir_separator=':'
7318      link_all_deplibs=yes
7319
7320      if test "$GCC" = yes; then
7321	case $host_os in aix4.[012]|aix4.[012].*)
7322	# We only want to do this on AIX 4.2 and lower, the check
7323	# below for broken collect2 doesn't work under 4.3+
7324	  collect2name=`${CC} -print-prog-name=collect2`
7325	  if test -f "$collect2name" && \
7326  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7327	  then
7328  	  # We have reworked collect2
7329  	  hardcode_direct=yes
7330	  else
7331  	  # We have old collect2
7332  	  hardcode_direct=unsupported
7333  	  # It fails to find uninstalled libraries when the uninstalled
7334  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7335  	  # to unsupported forces relinking
7336  	  hardcode_minus_L=yes
7337  	  hardcode_libdir_flag_spec='-L$libdir'
7338  	  hardcode_libdir_separator=
7339	  fi
7340	esac
7341	shared_flag='-shared'
7342	if test "$aix_use_runtimelinking" = yes; then
7343	  shared_flag="$shared_flag "'${wl}-G'
7344	fi
7345      else
7346	# not using gcc
7347	if test "$host_cpu" = ia64; then
7348  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7349  	# chokes on -Wl,-G. The following line is correct:
7350	  shared_flag='-G'
7351	else
7352  	if test "$aix_use_runtimelinking" = yes; then
7353	    shared_flag='${wl}-G'
7354	  else
7355	    shared_flag='${wl}-bM:SRE'
7356  	fi
7357	fi
7358      fi
7359
7360      # It seems that -bexpall does not export symbols beginning with
7361      # underscore (_), so it is better to generate a list of symbols to export.
7362      always_export_symbols=yes
7363      if test "$aix_use_runtimelinking" = yes; then
7364	# Warning - without using the other runtime loading flags (-brtl),
7365	# -berok will link without error, but may produce a broken library.
7366	allow_undefined_flag='-berok'
7367       # Determine the default libpath from the value encoded in an empty executable.
7368       cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374
7375int
7376main ()
7377{
7378
7379  ;
7380  return 0;
7381}
7382_ACEOF
7383rm -f conftest.$ac_objext conftest$ac_exeext
7384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385  (eval $ac_link) 2>conftest.er1
7386  ac_status=$?
7387  grep -v '^ *+' conftest.er1 >conftest.err
7388  rm -f conftest.er1
7389  cat conftest.err >&5
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); } &&
7392	 { ac_try='test -z "$ac_c_werror_flag"
7393			 || test ! -s conftest.err'
7394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395  (eval $ac_try) 2>&5
7396  ac_status=$?
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); }; } &&
7399	 { ac_try='test -s conftest$ac_exeext'
7400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401  (eval $ac_try) 2>&5
7402  ac_status=$?
7403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404  (exit $ac_status); }; }; then
7405
7406aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7407}'`
7408# Check for a 64-bit object if we didn't find anything.
7409if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7410}'`; fi
7411else
7412  echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5
7414
7415fi
7416rm -f conftest.err conftest.$ac_objext \
7417      conftest$ac_exeext conftest.$ac_ext
7418if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7419
7420       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7422       else
7423	if test "$host_cpu" = ia64; then
7424	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425	  allow_undefined_flag="-z nodefs"
7426	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7427	else
7428	 # Determine the default libpath from the value encoded in an empty executable.
7429	 cat >conftest.$ac_ext <<_ACEOF
7430/* confdefs.h.  */
7431_ACEOF
7432cat confdefs.h >>conftest.$ac_ext
7433cat >>conftest.$ac_ext <<_ACEOF
7434/* end confdefs.h.  */
7435
7436int
7437main ()
7438{
7439
7440  ;
7441  return 0;
7442}
7443_ACEOF
7444rm -f conftest.$ac_objext conftest$ac_exeext
7445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446  (eval $ac_link) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } &&
7453	 { ac_try='test -z "$ac_c_werror_flag"
7454			 || test ! -s conftest.err'
7455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456  (eval $ac_try) 2>&5
7457  ac_status=$?
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); }; } &&
7460	 { ac_try='test -s conftest$ac_exeext'
7461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462  (eval $ac_try) 2>&5
7463  ac_status=$?
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); }; }; then
7466
7467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7468}'`
7469# Check for a 64-bit object if we didn't find anything.
7470if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7471}'`; fi
7472else
7473  echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476fi
7477rm -f conftest.err conftest.$ac_objext \
7478      conftest$ac_exeext conftest.$ac_ext
7479if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7480
7481	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7482	  # Warning - without using the other run time loading flags,
7483	  # -berok will link without error, but may produce a broken library.
7484	  no_undefined_flag=' ${wl}-bernotok'
7485	  allow_undefined_flag=' ${wl}-berok'
7486	  # -bexpall does not export symbols beginning with underscore (_)
7487	  always_export_symbols=yes
7488	  # Exported symbols can be pulled into shared objects from archives
7489	  whole_archive_flag_spec=' '
7490	  archive_cmds_need_lc=yes
7491	  # This is similar to how AIX traditionally builds its shared libraries.
7492	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7493	fi
7494      fi
7495      ;;
7496
7497    amigaos*)
7498      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)'
7499      hardcode_libdir_flag_spec='-L$libdir'
7500      hardcode_minus_L=yes
7501      # see comment about different semantics on the GNU ld section
7502      ld_shlibs=no
7503      ;;
7504
7505    bsdi[45]*)
7506      export_dynamic_flag_spec=-rdynamic
7507      ;;
7508
7509    cygwin* | mingw* | pw32*)
7510      # When not using gcc, we currently assume that we are using
7511      # Microsoft Visual C++.
7512      # hardcode_libdir_flag_spec is actually meaningless, as there is
7513      # no search path for DLLs.
7514      hardcode_libdir_flag_spec=' '
7515      allow_undefined_flag=unsupported
7516      # Tell ltmain to make .lib files, not .a files.
7517      libext=lib
7518      # Tell ltmain to make .dll files, not .so files.
7519      shrext_cmds=".dll"
7520      # FIXME: Setting linknames here is a bad hack.
7521      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7522      # The linker will automatically build a .lib file if we build a DLL.
7523      old_archive_From_new_cmds='true'
7524      # FIXME: Should let the user specify the lib program.
7525      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7526      fix_srcfile_path='`cygpath -w "$srcfile"`'
7527      enable_shared_with_static_runtimes=yes
7528      ;;
7529
7530    darwin* | rhapsody*)
7531      case $host_os in
7532        rhapsody* | darwin1.[012])
7533         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7534         ;;
7535       *) # Darwin 1.3 on
7536         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7537           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7538         else
7539           case ${MACOSX_DEPLOYMENT_TARGET} in
7540             10.[012])
7541               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7542               ;;
7543             10.*)
7544               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7545               ;;
7546           esac
7547         fi
7548         ;;
7549      esac
7550      archive_cmds_need_lc=no
7551      hardcode_direct=no
7552      hardcode_automatic=yes
7553      hardcode_shlibpath_var=unsupported
7554      whole_archive_flag_spec=''
7555      link_all_deplibs=yes
7556    if test "$GCC" = yes ; then
7557    	output_verbose_link_cmd='echo'
7558        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7559      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7560      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7561      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7562      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7563    else
7564      case $cc_basename in
7565        xlc*)
7566         output_verbose_link_cmd='echo'
7567         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7568         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7569          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7570         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7571          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7572          ;;
7573       *)
7574         ld_shlibs=no
7575          ;;
7576      esac
7577    fi
7578      ;;
7579
7580    dgux*)
7581      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7582      hardcode_libdir_flag_spec='-L$libdir'
7583      hardcode_shlibpath_var=no
7584      ;;
7585
7586    freebsd1*)
7587      ld_shlibs=no
7588      ;;
7589
7590    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7591    # support.  Future versions do this automatically, but an explicit c++rt0.o
7592    # does not break anything, and helps significantly (at the cost of a little
7593    # extra space).
7594    freebsd2.2*)
7595      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7596      hardcode_libdir_flag_spec='-R$libdir'
7597      hardcode_direct=yes
7598      hardcode_shlibpath_var=no
7599      ;;
7600
7601    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7602    freebsd2*)
7603      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7604      hardcode_direct=yes
7605      hardcode_minus_L=yes
7606      hardcode_shlibpath_var=no
7607      ;;
7608
7609    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7610    freebsd* | kfreebsd*-gnu | dragonfly*)
7611      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7612      hardcode_libdir_flag_spec='-R$libdir'
7613      hardcode_direct=yes
7614      hardcode_shlibpath_var=no
7615      ;;
7616
7617    hpux9*)
7618      if test "$GCC" = yes; then
7619	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7620      else
7621	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7622      fi
7623      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7624      hardcode_libdir_separator=:
7625      hardcode_direct=yes
7626
7627      # hardcode_minus_L: Not really in the search PATH,
7628      # but as the default location of the library.
7629      hardcode_minus_L=yes
7630      export_dynamic_flag_spec='${wl}-E'
7631      ;;
7632
7633    hpux10* | hpux11*)
7634      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7635	case $host_cpu in
7636	hppa*64*|ia64*)
7637	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638	  ;;
7639	*)
7640	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7641	  ;;
7642	esac
7643      else
7644	case $host_cpu in
7645	hppa*64*|ia64*)
7646	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7647	  ;;
7648	*)
7649	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7650	  ;;
7651	esac
7652      fi
7653      if test "$with_gnu_ld" = no; then
7654	case $host_cpu in
7655	hppa*64*)
7656	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7657	  hardcode_libdir_flag_spec_ld='+b $libdir'
7658	  hardcode_libdir_separator=:
7659	  hardcode_direct=no
7660	  hardcode_shlibpath_var=no
7661	  ;;
7662	ia64*)
7663	  hardcode_libdir_flag_spec='-L$libdir'
7664	  hardcode_direct=no
7665	  hardcode_shlibpath_var=no
7666
7667	  # hardcode_minus_L: Not really in the search PATH,
7668	  # but as the default location of the library.
7669	  hardcode_minus_L=yes
7670	  ;;
7671	*)
7672	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7673	  hardcode_libdir_separator=:
7674	  hardcode_direct=yes
7675	  export_dynamic_flag_spec='${wl}-E'
7676
7677	  # hardcode_minus_L: Not really in the search PATH,
7678	  # but as the default location of the library.
7679	  hardcode_minus_L=yes
7680	  ;;
7681	esac
7682      fi
7683      ;;
7684
7685    irix5* | irix6* | nonstopux*)
7686      if test "$GCC" = yes; then
7687	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7688      else
7689	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7690	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7691      fi
7692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7693      hardcode_libdir_separator=:
7694      link_all_deplibs=yes
7695      ;;
7696
7697    netbsd*)
7698      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7699	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7700      else
7701	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7702      fi
7703      hardcode_libdir_flag_spec='-R$libdir'
7704      hardcode_direct=yes
7705      hardcode_shlibpath_var=no
7706      ;;
7707
7708    newsos6)
7709      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710      hardcode_direct=yes
7711      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7712      hardcode_libdir_separator=:
7713      hardcode_shlibpath_var=no
7714      ;;
7715
7716    openbsd*)
7717      hardcode_direct=yes
7718      hardcode_shlibpath_var=no
7719      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7720	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7721	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7722	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7723	export_dynamic_flag_spec='${wl}-E'
7724      else
7725       case $host_os in
7726	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7727	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7728	   hardcode_libdir_flag_spec='-R$libdir'
7729	   ;;
7730	 *)
7731	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7732	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7733	   ;;
7734       esac
7735      fi
7736      ;;
7737
7738    os2*)
7739      hardcode_libdir_flag_spec='-L$libdir'
7740      hardcode_minus_L=yes
7741      allow_undefined_flag=unsupported
7742      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7743      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7744      ;;
7745
7746    osf3*)
7747      if test "$GCC" = yes; then
7748	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7749	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7750      else
7751	allow_undefined_flag=' -expect_unresolved \*'
7752	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7753      fi
7754      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7755      hardcode_libdir_separator=:
7756      ;;
7757
7758    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7759      if test "$GCC" = yes; then
7760	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7761	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7762	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7763      else
7764	allow_undefined_flag=' -expect_unresolved \*'
7765	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7766	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7767	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7768
7769	# Both c and cxx compiler support -rpath directly
7770	hardcode_libdir_flag_spec='-rpath $libdir'
7771      fi
7772      hardcode_libdir_separator=:
7773      ;;
7774
7775    sco3.2v5*)
7776      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777      hardcode_shlibpath_var=no
7778      export_dynamic_flag_spec='${wl}-Bexport'
7779      runpath_var=LD_RUN_PATH
7780      hardcode_runpath_var=yes
7781      ;;
7782
7783    solaris*)
7784      no_undefined_flag=' -z text'
7785      if test "$GCC" = yes; then
7786	wlarc='${wl}'
7787	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7788	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7790      else
7791	wlarc=''
7792	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7793	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7794  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7795      fi
7796      hardcode_libdir_flag_spec='-R$libdir'
7797      hardcode_shlibpath_var=no
7798      case $host_os in
7799      solaris2.[0-5] | solaris2.[0-5].*) ;;
7800      *)
7801 	# The compiler driver will combine linker options so we
7802 	# cannot just pass the convience library names through
7803 	# without $wl, iff we do not link with $LD.
7804 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7805 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7806 	case $wlarc in
7807 	'')
7808 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7809 	*)
7810 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7811 	esac ;;
7812      esac
7813      link_all_deplibs=yes
7814      ;;
7815
7816    sunos4*)
7817      if test "x$host_vendor" = xsequent; then
7818	# Use $CC to link under sequent, because it throws in some extra .o
7819	# files that make .init and .fini sections work.
7820	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7821      else
7822	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7823      fi
7824      hardcode_libdir_flag_spec='-L$libdir'
7825      hardcode_direct=yes
7826      hardcode_minus_L=yes
7827      hardcode_shlibpath_var=no
7828      ;;
7829
7830    sysv4)
7831      case $host_vendor in
7832	sni)
7833	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834	  hardcode_direct=yes # is this really true???
7835	;;
7836	siemens)
7837	  ## LD is ld it makes a PLAMLIB
7838	  ## CC just makes a GrossModule.
7839	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7840	  reload_cmds='$CC -r -o $output$reload_objs'
7841	  hardcode_direct=no
7842        ;;
7843	motorola)
7844	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7845	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7846	;;
7847      esac
7848      runpath_var='LD_RUN_PATH'
7849      hardcode_shlibpath_var=no
7850      ;;
7851
7852    sysv4.3*)
7853      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7854      hardcode_shlibpath_var=no
7855      export_dynamic_flag_spec='-Bexport'
7856      ;;
7857
7858    sysv4*MP*)
7859      if test -d /usr/nec; then
7860	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861	hardcode_shlibpath_var=no
7862	runpath_var=LD_RUN_PATH
7863	hardcode_runpath_var=yes
7864	ld_shlibs=yes
7865      fi
7866      ;;
7867
7868    sysv4.2uw2*)
7869      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7870      hardcode_direct=yes
7871      hardcode_minus_L=no
7872      hardcode_shlibpath_var=no
7873      hardcode_runpath_var=yes
7874      runpath_var=LD_RUN_PATH
7875      ;;
7876
7877   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7878      no_undefined_flag='${wl}-z ${wl}text'
7879      if test "$GCC" = yes; then
7880	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7881      else
7882	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7883      fi
7884      runpath_var='LD_RUN_PATH'
7885      hardcode_shlibpath_var=no
7886      ;;
7887
7888    sysv5*)
7889      no_undefined_flag=' -z text'
7890      # $CC -shared without GNU ld will not create a library from C++
7891      # object files and a static libstdc++, better avoid it by now
7892      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7893      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7894  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7895      hardcode_libdir_flag_spec=
7896      hardcode_shlibpath_var=no
7897      runpath_var='LD_RUN_PATH'
7898      ;;
7899
7900    uts4*)
7901      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7902      hardcode_libdir_flag_spec='-L$libdir'
7903      hardcode_shlibpath_var=no
7904      ;;
7905
7906    *)
7907      ld_shlibs=no
7908      ;;
7909    esac
7910  fi
7911
7912echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7913echo "${ECHO_T}$ld_shlibs" >&6
7914test "$ld_shlibs" = no && can_build_shared=no
7915
7916variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7917if test "$GCC" = yes; then
7918  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7919fi
7920
7921#
7922# Do we need to explicitly link libc?
7923#
7924case "x$archive_cmds_need_lc" in
7925x|xyes)
7926  # Assume -lc should be added
7927  archive_cmds_need_lc=yes
7928
7929  if test "$enable_shared" = yes && test "$GCC" = yes; then
7930    case $archive_cmds in
7931    *'~'*)
7932      # FIXME: we may have to deal with multi-command sequences.
7933      ;;
7934    '$CC '*)
7935      # Test whether the compiler implicitly links with -lc since on some
7936      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7937      # to ld, don't add -lc before -lgcc.
7938      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7939echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7940      $rm conftest*
7941      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7942
7943      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944  (eval $ac_compile) 2>&5
7945  ac_status=$?
7946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); } 2>conftest.err; then
7948        soname=conftest
7949        lib=conftest
7950        libobjs=conftest.$ac_objext
7951        deplibs=
7952        wl=$lt_prog_compiler_wl
7953        compiler_flags=-v
7954        linker_flags=-v
7955        verstring=
7956        output_objdir=.
7957        libname=conftest
7958        lt_save_allow_undefined_flag=$allow_undefined_flag
7959        allow_undefined_flag=
7960        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7961  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7962  ac_status=$?
7963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964  (exit $ac_status); }
7965        then
7966	  archive_cmds_need_lc=no
7967        else
7968	  archive_cmds_need_lc=yes
7969        fi
7970        allow_undefined_flag=$lt_save_allow_undefined_flag
7971      else
7972        cat conftest.err 1>&5
7973      fi
7974      $rm conftest*
7975      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7976echo "${ECHO_T}$archive_cmds_need_lc" >&6
7977      ;;
7978    esac
7979  fi
7980  ;;
7981esac
7982
7983echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7984echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7985library_names_spec=
7986libname_spec='lib$name'
7987soname_spec=
7988shrext_cmds=".so"
7989postinstall_cmds=
7990postuninstall_cmds=
7991finish_cmds=
7992finish_eval=
7993shlibpath_var=
7994shlibpath_overrides_runpath=unknown
7995version_type=none
7996dynamic_linker="$host_os ld.so"
7997sys_lib_dlsearch_path_spec="/lib /usr/lib"
7998if test "$GCC" = yes; then
7999  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8000  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8001    # if the path contains ";" then we assume it to be the separator
8002    # otherwise default to the standard path separator (i.e. ":") - it is
8003    # assumed that no part of a normal pathname contains ";" but that should
8004    # okay in the real world where ";" in dirpaths is itself problematic.
8005    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8006  else
8007    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8008  fi
8009else
8010  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8011fi
8012need_lib_prefix=unknown
8013hardcode_into_libs=no
8014
8015# when you set need_version to no, make sure it does not cause -set_version
8016# flags to be left without arguments
8017need_version=unknown
8018
8019case $host_os in
8020aix3*)
8021  version_type=linux
8022  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8023  shlibpath_var=LIBPATH
8024
8025  # AIX 3 has no versioning support, so we append a major version to the name.
8026  soname_spec='${libname}${release}${shared_ext}$major'
8027  ;;
8028
8029aix4* | aix5*)
8030  version_type=linux
8031  need_lib_prefix=no
8032  need_version=no
8033  hardcode_into_libs=yes
8034  if test "$host_cpu" = ia64; then
8035    # AIX 5 supports IA64
8036    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8037    shlibpath_var=LD_LIBRARY_PATH
8038  else
8039    # With GCC up to 2.95.x, collect2 would create an import file
8040    # for dependence libraries.  The import file would start with
8041    # the line `#! .'.  This would cause the generated library to
8042    # depend on `.', always an invalid library.  This was fixed in
8043    # development snapshots of GCC prior to 3.0.
8044    case $host_os in
8045      aix4 | aix4.[01] | aix4.[01].*)
8046      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8047	   echo ' yes '
8048	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8049	:
8050      else
8051	can_build_shared=no
8052      fi
8053      ;;
8054    esac
8055    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8056    # soname into executable. Probably we can add versioning support to
8057    # collect2, so additional links can be useful in future.
8058    if test "$aix_use_runtimelinking" = yes; then
8059      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8060      # instead of lib<name>.a to let people know that these are not
8061      # typical AIX shared libraries.
8062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063    else
8064      # We preserve .a as extension for shared libraries through AIX4.2
8065      # and later when we are not doing run time linking.
8066      library_names_spec='${libname}${release}.a $libname.a'
8067      soname_spec='${libname}${release}${shared_ext}$major'
8068    fi
8069    shlibpath_var=LIBPATH
8070  fi
8071  ;;
8072
8073amigaos*)
8074  library_names_spec='$libname.ixlibrary $libname.a'
8075  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8076  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8077  ;;
8078
8079beos*)
8080  library_names_spec='${libname}${shared_ext}'
8081  dynamic_linker="$host_os ld.so"
8082  shlibpath_var=LIBRARY_PATH
8083  ;;
8084
8085bsdi[45]*)
8086  version_type=linux
8087  need_version=no
8088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089  soname_spec='${libname}${release}${shared_ext}$major'
8090  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8091  shlibpath_var=LD_LIBRARY_PATH
8092  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8093  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8094  # the default ld.so.conf also contains /usr/contrib/lib and
8095  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8096  # libtool to hard-code these into programs
8097  ;;
8098
8099cygwin* | mingw* | pw32*)
8100  version_type=windows
8101  shrext_cmds=".dll"
8102  need_version=no
8103  need_lib_prefix=no
8104
8105  case $GCC,$host_os in
8106  yes,cygwin* | yes,mingw* | yes,pw32*)
8107    library_names_spec='$libname.dll.a'
8108    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8109    postinstall_cmds='base_file=`basename \${file}`~
8110      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8111      dldir=$destdir/`dirname \$dlpath`~
8112      test -d \$dldir || mkdir -p \$dldir~
8113      $install_prog $dir/$dlname \$dldir/$dlname~
8114      chmod a+x \$dldir/$dlname'
8115    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8116      dlpath=$dir/\$dldll~
8117       $rm \$dlpath'
8118    shlibpath_overrides_runpath=yes
8119
8120    case $host_os in
8121    cygwin*)
8122      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8123      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8124      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8125      ;;
8126    mingw*)
8127      # MinGW DLLs use traditional 'lib' prefix
8128      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8129      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8130      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8131        # It is most probably a Windows format PATH printed by
8132        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8133        # path with ; separators, and with drive letters. We can handle the
8134        # drive letters (cygwin fileutils understands them), so leave them,
8135        # especially as we might pass files found there to a mingw objdump,
8136        # which wouldn't understand a cygwinified path. Ahh.
8137        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8138      else
8139        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8140      fi
8141      ;;
8142    pw32*)
8143      # pw32 DLLs use 'pw' prefix rather than 'lib'
8144      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8145      ;;
8146    esac
8147    ;;
8148
8149  *)
8150    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8151    ;;
8152  esac
8153  dynamic_linker='Win32 ld.exe'
8154  # FIXME: first we should search . and the directory the executable is in
8155  shlibpath_var=PATH
8156  ;;
8157
8158darwin* | rhapsody*)
8159  dynamic_linker="$host_os dyld"
8160  version_type=darwin
8161  need_lib_prefix=no
8162  need_version=no
8163  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8164  soname_spec='${libname}${release}${major}$shared_ext'
8165  shlibpath_overrides_runpath=yes
8166  shlibpath_var=DYLD_LIBRARY_PATH
8167  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8168  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8169  if test "$GCC" = yes; then
8170    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8171  else
8172    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8173  fi
8174  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8175  ;;
8176
8177dgux*)
8178  version_type=linux
8179  need_lib_prefix=no
8180  need_version=no
8181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8182  soname_spec='${libname}${release}${shared_ext}$major'
8183  shlibpath_var=LD_LIBRARY_PATH
8184  ;;
8185
8186freebsd1*)
8187  dynamic_linker=no
8188  ;;
8189
8190kfreebsd*-gnu)
8191  version_type=linux
8192  need_lib_prefix=no
8193  need_version=no
8194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8195  soname_spec='${libname}${release}${shared_ext}$major'
8196  shlibpath_var=LD_LIBRARY_PATH
8197  shlibpath_overrides_runpath=no
8198  hardcode_into_libs=yes
8199  dynamic_linker='GNU ld.so'
8200  ;;
8201
8202freebsd* | dragonfly*)
8203  # DragonFly does not have aout.  When/if they implement a new
8204  # versioning mechanism, adjust this.
8205  if test -x /usr/bin/objformat; then
8206    objformat=`/usr/bin/objformat`
8207  else
8208    case $host_os in
8209    freebsd[123]*) objformat=aout ;;
8210    *) objformat=elf ;;
8211    esac
8212  fi
8213  version_type=freebsd-$objformat
8214  case $version_type in
8215    freebsd-elf*)
8216      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8217      need_version=no
8218      need_lib_prefix=no
8219      ;;
8220    freebsd-*)
8221      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8222      need_version=yes
8223      ;;
8224  esac
8225  shlibpath_var=LD_LIBRARY_PATH
8226  case $host_os in
8227  freebsd2*)
8228    shlibpath_overrides_runpath=yes
8229    ;;
8230  freebsd3.[01]* | freebsdelf3.[01]*)
8231    shlibpath_overrides_runpath=yes
8232    hardcode_into_libs=yes
8233    ;;
8234  *) # from 3.2 on
8235    shlibpath_overrides_runpath=no
8236    hardcode_into_libs=yes
8237    ;;
8238  esac
8239  ;;
8240
8241gnu*)
8242  version_type=linux
8243  need_lib_prefix=no
8244  need_version=no
8245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8246  soname_spec='${libname}${release}${shared_ext}$major'
8247  shlibpath_var=LD_LIBRARY_PATH
8248  hardcode_into_libs=yes
8249  ;;
8250
8251hpux9* | hpux10* | hpux11*)
8252  # Give a soname corresponding to the major version so that dld.sl refuses to
8253  # link against other versions.
8254  version_type=sunos
8255  need_lib_prefix=no
8256  need_version=no
8257  case $host_cpu in
8258  ia64*)
8259    shrext_cmds='.so'
8260    hardcode_into_libs=yes
8261    dynamic_linker="$host_os dld.so"
8262    shlibpath_var=LD_LIBRARY_PATH
8263    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265    soname_spec='${libname}${release}${shared_ext}$major'
8266    if test "X$HPUX_IA64_MODE" = X32; then
8267      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8268    else
8269      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8270    fi
8271    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8272    ;;
8273   hppa*64*)
8274     shrext_cmds='.sl'
8275     hardcode_into_libs=yes
8276     dynamic_linker="$host_os dld.sl"
8277     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8280     soname_spec='${libname}${release}${shared_ext}$major'
8281     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8283     ;;
8284   *)
8285    shrext_cmds='.sl'
8286    dynamic_linker="$host_os dld.sl"
8287    shlibpath_var=SHLIB_PATH
8288    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290    soname_spec='${libname}${release}${shared_ext}$major'
8291    ;;
8292  esac
8293  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8294  postinstall_cmds='chmod 555 $lib'
8295  ;;
8296
8297irix5* | irix6* | nonstopux*)
8298  case $host_os in
8299    nonstopux*) version_type=nonstopux ;;
8300    *)
8301	if test "$lt_cv_prog_gnu_ld" = yes; then
8302		version_type=linux
8303	else
8304		version_type=irix
8305	fi ;;
8306  esac
8307  need_lib_prefix=no
8308  need_version=no
8309  soname_spec='${libname}${release}${shared_ext}$major'
8310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8311  case $host_os in
8312  irix5* | nonstopux*)
8313    libsuff= shlibsuff=
8314    ;;
8315  *)
8316    case $LD in # libtool.m4 will add one of these switches to LD
8317    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8318      libsuff= shlibsuff= libmagic=32-bit;;
8319    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8320      libsuff=32 shlibsuff=N32 libmagic=N32;;
8321    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8322      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8323    *) libsuff= shlibsuff= libmagic=never-match;;
8324    esac
8325    ;;
8326  esac
8327  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8328  shlibpath_overrides_runpath=no
8329  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8330  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8331  hardcode_into_libs=yes
8332  ;;
8333
8334# No shared lib support for Linux oldld, aout, or coff.
8335linux*oldld* | linux*aout* | linux*coff*)
8336  dynamic_linker=no
8337  ;;
8338
8339# This must be Linux ELF.
8340linux*)
8341  version_type=linux
8342  need_lib_prefix=no
8343  need_version=no
8344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8345  soname_spec='${libname}${release}${shared_ext}$major'
8346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8347  shlibpath_var=LD_LIBRARY_PATH
8348  shlibpath_overrides_runpath=no
8349  # This implies no fast_install, which is unacceptable.
8350  # Some rework will be needed to allow for fast_install
8351  # before this can be enabled.
8352  hardcode_into_libs=yes
8353
8354  # Append ld.so.conf contents to the search path
8355  if test -f /etc/ld.so.conf; then
8356    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8357    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8358  fi
8359
8360  # We used to test for /lib/ld.so.1 and disable shared libraries on
8361  # powerpc, because MkLinux only supported shared libraries with the
8362  # GNU dynamic linker.  Since this was broken with cross compilers,
8363  # most powerpc-linux boxes support dynamic linking these days and
8364  # people can always --disable-shared, the test was removed, and we
8365  # assume the GNU/Linux dynamic linker is in use.
8366  dynamic_linker='GNU/Linux ld.so'
8367  ;;
8368
8369knetbsd*-gnu)
8370  version_type=linux
8371  need_lib_prefix=no
8372  need_version=no
8373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374  soname_spec='${libname}${release}${shared_ext}$major'
8375  shlibpath_var=LD_LIBRARY_PATH
8376  shlibpath_overrides_runpath=no
8377  hardcode_into_libs=yes
8378  dynamic_linker='GNU ld.so'
8379  ;;
8380
8381netbsd*)
8382  version_type=sunos
8383  need_lib_prefix=no
8384  need_version=no
8385  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8386    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8388    dynamic_linker='NetBSD (a.out) ld.so'
8389  else
8390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391    soname_spec='${libname}${release}${shared_ext}$major'
8392    dynamic_linker='NetBSD ld.elf_so'
8393  fi
8394  shlibpath_var=LD_LIBRARY_PATH
8395  shlibpath_overrides_runpath=yes
8396  hardcode_into_libs=yes
8397  ;;
8398
8399newsos6)
8400  version_type=linux
8401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402  shlibpath_var=LD_LIBRARY_PATH
8403  shlibpath_overrides_runpath=yes
8404  ;;
8405
8406nto-qnx*)
8407  version_type=linux
8408  need_lib_prefix=no
8409  need_version=no
8410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8411  soname_spec='${libname}${release}${shared_ext}$major'
8412  shlibpath_var=LD_LIBRARY_PATH
8413  shlibpath_overrides_runpath=yes
8414  ;;
8415
8416openbsd*)
8417  version_type=sunos
8418  need_lib_prefix=no
8419  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8420  case $host_os in
8421    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8422    *)                         need_version=no  ;;
8423  esac
8424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8425  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8426  shlibpath_var=LD_LIBRARY_PATH
8427  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8428    case $host_os in
8429      openbsd2.[89] | openbsd2.[89].*)
8430	shlibpath_overrides_runpath=no
8431	;;
8432      *)
8433	shlibpath_overrides_runpath=yes
8434	;;
8435      esac
8436  else
8437    shlibpath_overrides_runpath=yes
8438  fi
8439  ;;
8440
8441os2*)
8442  libname_spec='$name'
8443  shrext_cmds=".dll"
8444  need_lib_prefix=no
8445  library_names_spec='$libname${shared_ext} $libname.a'
8446  dynamic_linker='OS/2 ld.exe'
8447  shlibpath_var=LIBPATH
8448  ;;
8449
8450osf3* | osf4* | osf5*)
8451  version_type=osf
8452  need_lib_prefix=no
8453  need_version=no
8454  soname_spec='${libname}${release}${shared_ext}$major'
8455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456  shlibpath_var=LD_LIBRARY_PATH
8457  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8458  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8459  ;;
8460
8461sco3.2v5*)
8462  version_type=osf
8463  soname_spec='${libname}${release}${shared_ext}$major'
8464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465  shlibpath_var=LD_LIBRARY_PATH
8466  ;;
8467
8468solaris*)
8469  version_type=linux
8470  need_lib_prefix=no
8471  need_version=no
8472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8473  soname_spec='${libname}${release}${shared_ext}$major'
8474  shlibpath_var=LD_LIBRARY_PATH
8475  shlibpath_overrides_runpath=yes
8476  hardcode_into_libs=yes
8477  # ldd complains unless libraries are executable
8478  postinstall_cmds='chmod +x $lib'
8479  ;;
8480
8481sunos4*)
8482  version_type=sunos
8483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8484  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8485  shlibpath_var=LD_LIBRARY_PATH
8486  shlibpath_overrides_runpath=yes
8487  if test "$with_gnu_ld" = yes; then
8488    need_lib_prefix=no
8489  fi
8490  need_version=yes
8491  ;;
8492
8493sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8494  version_type=linux
8495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8496  soname_spec='${libname}${release}${shared_ext}$major'
8497  shlibpath_var=LD_LIBRARY_PATH
8498  case $host_vendor in
8499    sni)
8500      shlibpath_overrides_runpath=no
8501      need_lib_prefix=no
8502      export_dynamic_flag_spec='${wl}-Blargedynsym'
8503      runpath_var=LD_RUN_PATH
8504      ;;
8505    siemens)
8506      need_lib_prefix=no
8507      ;;
8508    motorola)
8509      need_lib_prefix=no
8510      need_version=no
8511      shlibpath_overrides_runpath=no
8512      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8513      ;;
8514  esac
8515  ;;
8516
8517sysv4*MP*)
8518  if test -d /usr/nec ;then
8519    version_type=linux
8520    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8521    soname_spec='$libname${shared_ext}.$major'
8522    shlibpath_var=LD_LIBRARY_PATH
8523  fi
8524  ;;
8525
8526uts4*)
8527  version_type=linux
8528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8529  soname_spec='${libname}${release}${shared_ext}$major'
8530  shlibpath_var=LD_LIBRARY_PATH
8531  ;;
8532
8533*)
8534  dynamic_linker=no
8535  ;;
8536esac
8537echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8538echo "${ECHO_T}$dynamic_linker" >&6
8539test "$dynamic_linker" = no && can_build_shared=no
8540
8541echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8542echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8543hardcode_action=
8544if test -n "$hardcode_libdir_flag_spec" || \
8545   test -n "$runpath_var" || \
8546   test "X$hardcode_automatic" = "Xyes" ; then
8547
8548  # We can hardcode non-existant directories.
8549  if test "$hardcode_direct" != no &&
8550     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8551     # have to relink, otherwise we might link with an installed library
8552     # when we should be linking with a yet-to-be-installed one
8553     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8554     test "$hardcode_minus_L" != no; then
8555    # Linking always hardcodes the temporary library directory.
8556    hardcode_action=relink
8557  else
8558    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8559    hardcode_action=immediate
8560  fi
8561else
8562  # We cannot hardcode anything, or else we can only hardcode existing
8563  # directories.
8564  hardcode_action=unsupported
8565fi
8566echo "$as_me:$LINENO: result: $hardcode_action" >&5
8567echo "${ECHO_T}$hardcode_action" >&6
8568
8569if test "$hardcode_action" = relink; then
8570  # Fast installation is not supported
8571  enable_fast_install=no
8572elif test "$shlibpath_overrides_runpath" = yes ||
8573     test "$enable_shared" = no; then
8574  # Fast installation is not necessary
8575  enable_fast_install=needless
8576fi
8577
8578striplib=
8579old_striplib=
8580echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8581echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8582if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8583  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8584  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8585  echo "$as_me:$LINENO: result: yes" >&5
8586echo "${ECHO_T}yes" >&6
8587else
8588# FIXME - insert some real tests, host_os isn't really good enough
8589  case $host_os in
8590   darwin*)
8591       if test -n "$STRIP" ; then
8592         striplib="$STRIP -x"
8593         echo "$as_me:$LINENO: result: yes" >&5
8594echo "${ECHO_T}yes" >&6
8595       else
8596  echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
8598fi
8599       ;;
8600   *)
8601  echo "$as_me:$LINENO: result: no" >&5
8602echo "${ECHO_T}no" >&6
8603    ;;
8604  esac
8605fi
8606
8607if test "x$enable_dlopen" != xyes; then
8608  enable_dlopen=unknown
8609  enable_dlopen_self=unknown
8610  enable_dlopen_self_static=unknown
8611else
8612  lt_cv_dlopen=no
8613  lt_cv_dlopen_libs=
8614
8615  case $host_os in
8616  beos*)
8617    lt_cv_dlopen="load_add_on"
8618    lt_cv_dlopen_libs=
8619    lt_cv_dlopen_self=yes
8620    ;;
8621
8622  mingw* | pw32*)
8623    lt_cv_dlopen="LoadLibrary"
8624    lt_cv_dlopen_libs=
8625   ;;
8626
8627  cygwin*)
8628    lt_cv_dlopen="dlopen"
8629    lt_cv_dlopen_libs=
8630   ;;
8631
8632  darwin*)
8633  # if libdl is installed we need to link against it
8634    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8635echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639  ac_check_lib_save_LIBS=$LIBS
8640LIBS="-ldl  $LIBS"
8641cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h.  */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h.  */
8647
8648/* Override any gcc2 internal prototype to avoid an error.  */
8649#ifdef __cplusplus
8650extern "C"
8651#endif
8652/* We use char because int might match the return type of a gcc2
8653   builtin and then its argument prototype would still apply.  */
8654char dlopen ();
8655int
8656main ()
8657{
8658dlopen ();
8659  ;
8660  return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext conftest$ac_exeext
8664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665  (eval $ac_link) 2>conftest.er1
8666  ac_status=$?
8667  grep -v '^ *+' conftest.er1 >conftest.err
8668  rm -f conftest.er1
8669  cat conftest.err >&5
8670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671  (exit $ac_status); } &&
8672	 { ac_try='test -z "$ac_c_werror_flag"
8673			 || test ! -s conftest.err'
8674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675  (eval $ac_try) 2>&5
8676  ac_status=$?
8677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678  (exit $ac_status); }; } &&
8679	 { ac_try='test -s conftest$ac_exeext'
8680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681  (eval $ac_try) 2>&5
8682  ac_status=$?
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); }; }; then
8685  ac_cv_lib_dl_dlopen=yes
8686else
8687  echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690ac_cv_lib_dl_dlopen=no
8691fi
8692rm -f conftest.err conftest.$ac_objext \
8693      conftest$ac_exeext conftest.$ac_ext
8694LIBS=$ac_check_lib_save_LIBS
8695fi
8696echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8698if test $ac_cv_lib_dl_dlopen = yes; then
8699  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8700else
8701
8702    lt_cv_dlopen="dyld"
8703    lt_cv_dlopen_libs=
8704    lt_cv_dlopen_self=yes
8705
8706fi
8707
8708   ;;
8709
8710  *)
8711    echo "$as_me:$LINENO: checking for shl_load" >&5
8712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8713if test "${ac_cv_func_shl_load+set}" = set; then
8714  echo $ECHO_N "(cached) $ECHO_C" >&6
8715else
8716  cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h.  */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h.  */
8722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8723   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8724#define shl_load innocuous_shl_load
8725
8726/* System header to define __stub macros and hopefully few prototypes,
8727    which can conflict with char shl_load (); below.
8728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729    <limits.h> exists even on freestanding compilers.  */
8730
8731#ifdef __STDC__
8732# include <limits.h>
8733#else
8734# include <assert.h>
8735#endif
8736
8737#undef shl_load
8738
8739/* Override any gcc2 internal prototype to avoid an error.  */
8740#ifdef __cplusplus
8741extern "C"
8742{
8743#endif
8744/* We use char because int might match the return type of a gcc2
8745   builtin and then its argument prototype would still apply.  */
8746char shl_load ();
8747/* The GNU C library defines this for functions which it implements
8748    to always fail with ENOSYS.  Some functions are actually named
8749    something starting with __ and the normal name is an alias.  */
8750#if defined (__stub_shl_load) || defined (__stub___shl_load)
8751choke me
8752#else
8753char (*f) () = shl_load;
8754#endif
8755#ifdef __cplusplus
8756}
8757#endif
8758
8759int
8760main ()
8761{
8762return f != shl_load;
8763  ;
8764  return 0;
8765}
8766_ACEOF
8767rm -f conftest.$ac_objext conftest$ac_exeext
8768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769  (eval $ac_link) 2>conftest.er1
8770  ac_status=$?
8771  grep -v '^ *+' conftest.er1 >conftest.err
8772  rm -f conftest.er1
8773  cat conftest.err >&5
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); } &&
8776	 { ac_try='test -z "$ac_c_werror_flag"
8777			 || test ! -s conftest.err'
8778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779  (eval $ac_try) 2>&5
8780  ac_status=$?
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); }; } &&
8783	 { ac_try='test -s conftest$ac_exeext'
8784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785  (eval $ac_try) 2>&5
8786  ac_status=$?
8787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788  (exit $ac_status); }; }; then
8789  ac_cv_func_shl_load=yes
8790else
8791  echo "$as_me: failed program was:" >&5
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
8794ac_cv_func_shl_load=no
8795fi
8796rm -f conftest.err conftest.$ac_objext \
8797      conftest$ac_exeext conftest.$ac_ext
8798fi
8799echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8800echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8801if test $ac_cv_func_shl_load = yes; then
8802  lt_cv_dlopen="shl_load"
8803else
8804  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8805echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8806if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  ac_check_lib_save_LIBS=$LIBS
8810LIBS="-ldld  $LIBS"
8811cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h.  */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h.  */
8817
8818/* Override any gcc2 internal prototype to avoid an error.  */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822/* We use char because int might match the return type of a gcc2
8823   builtin and then its argument prototype would still apply.  */
8824char shl_load ();
8825int
8826main ()
8827{
8828shl_load ();
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835  (eval $ac_link) 2>conftest.er1
8836  ac_status=$?
8837  grep -v '^ *+' conftest.er1 >conftest.err
8838  rm -f conftest.er1
8839  cat conftest.err >&5
8840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841  (exit $ac_status); } &&
8842	 { ac_try='test -z "$ac_c_werror_flag"
8843			 || test ! -s conftest.err'
8844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845  (eval $ac_try) 2>&5
8846  ac_status=$?
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); }; } &&
8849	 { ac_try='test -s conftest$ac_exeext'
8850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851  (eval $ac_try) 2>&5
8852  ac_status=$?
8853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854  (exit $ac_status); }; }; then
8855  ac_cv_lib_dld_shl_load=yes
8856else
8857  echo "$as_me: failed program was:" >&5
8858sed 's/^/| /' conftest.$ac_ext >&5
8859
8860ac_cv_lib_dld_shl_load=no
8861fi
8862rm -f conftest.err conftest.$ac_objext \
8863      conftest$ac_exeext conftest.$ac_ext
8864LIBS=$ac_check_lib_save_LIBS
8865fi
8866echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8867echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8868if test $ac_cv_lib_dld_shl_load = yes; then
8869  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8870else
8871  echo "$as_me:$LINENO: checking for dlopen" >&5
8872echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8873if test "${ac_cv_func_dlopen+set}" = set; then
8874  echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876  cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h.  */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h.  */
8882/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8884#define dlopen innocuous_dlopen
8885
8886/* System header to define __stub macros and hopefully few prototypes,
8887    which can conflict with char dlopen (); below.
8888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889    <limits.h> exists even on freestanding compilers.  */
8890
8891#ifdef __STDC__
8892# include <limits.h>
8893#else
8894# include <assert.h>
8895#endif
8896
8897#undef dlopen
8898
8899/* Override any gcc2 internal prototype to avoid an error.  */
8900#ifdef __cplusplus
8901extern "C"
8902{
8903#endif
8904/* We use char because int might match the return type of a gcc2
8905   builtin and then its argument prototype would still apply.  */
8906char dlopen ();
8907/* The GNU C library defines this for functions which it implements
8908    to always fail with ENOSYS.  Some functions are actually named
8909    something starting with __ and the normal name is an alias.  */
8910#if defined (__stub_dlopen) || defined (__stub___dlopen)
8911choke me
8912#else
8913char (*f) () = dlopen;
8914#endif
8915#ifdef __cplusplus
8916}
8917#endif
8918
8919int
8920main ()
8921{
8922return f != dlopen;
8923  ;
8924  return 0;
8925}
8926_ACEOF
8927rm -f conftest.$ac_objext conftest$ac_exeext
8928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929  (eval $ac_link) 2>conftest.er1
8930  ac_status=$?
8931  grep -v '^ *+' conftest.er1 >conftest.err
8932  rm -f conftest.er1
8933  cat conftest.err >&5
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); } &&
8936	 { ac_try='test -z "$ac_c_werror_flag"
8937			 || test ! -s conftest.err'
8938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939  (eval $ac_try) 2>&5
8940  ac_status=$?
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); }; } &&
8943	 { ac_try='test -s conftest$ac_exeext'
8944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945  (eval $ac_try) 2>&5
8946  ac_status=$?
8947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948  (exit $ac_status); }; }; then
8949  ac_cv_func_dlopen=yes
8950else
8951  echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954ac_cv_func_dlopen=no
8955fi
8956rm -f conftest.err conftest.$ac_objext \
8957      conftest$ac_exeext conftest.$ac_ext
8958fi
8959echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8960echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8961if test $ac_cv_func_dlopen = yes; then
8962  lt_cv_dlopen="dlopen"
8963else
8964  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8965echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8966if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  ac_check_lib_save_LIBS=$LIBS
8970LIBS="-ldl  $LIBS"
8971cat >conftest.$ac_ext <<_ACEOF
8972/* confdefs.h.  */
8973_ACEOF
8974cat confdefs.h >>conftest.$ac_ext
8975cat >>conftest.$ac_ext <<_ACEOF
8976/* end confdefs.h.  */
8977
8978/* Override any gcc2 internal prototype to avoid an error.  */
8979#ifdef __cplusplus
8980extern "C"
8981#endif
8982/* We use char because int might match the return type of a gcc2
8983   builtin and then its argument prototype would still apply.  */
8984char dlopen ();
8985int
8986main ()
8987{
8988dlopen ();
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995  (eval $ac_link) 2>conftest.er1
8996  ac_status=$?
8997  grep -v '^ *+' conftest.er1 >conftest.err
8998  rm -f conftest.er1
8999  cat conftest.err >&5
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); } &&
9002	 { ac_try='test -z "$ac_c_werror_flag"
9003			 || test ! -s conftest.err'
9004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005  (eval $ac_try) 2>&5
9006  ac_status=$?
9007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008  (exit $ac_status); }; } &&
9009	 { ac_try='test -s conftest$ac_exeext'
9010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011  (eval $ac_try) 2>&5
9012  ac_status=$?
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); }; }; then
9015  ac_cv_lib_dl_dlopen=yes
9016else
9017  echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020ac_cv_lib_dl_dlopen=no
9021fi
9022rm -f conftest.err conftest.$ac_objext \
9023      conftest$ac_exeext conftest.$ac_ext
9024LIBS=$ac_check_lib_save_LIBS
9025fi
9026echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9027echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9028if test $ac_cv_lib_dl_dlopen = yes; then
9029  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9030else
9031  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9032echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9033if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036  ac_check_lib_save_LIBS=$LIBS
9037LIBS="-lsvld  $LIBS"
9038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h.  */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h.  */
9044
9045/* Override any gcc2 internal prototype to avoid an error.  */
9046#ifdef __cplusplus
9047extern "C"
9048#endif
9049/* We use char because int might match the return type of a gcc2
9050   builtin and then its argument prototype would still apply.  */
9051char dlopen ();
9052int
9053main ()
9054{
9055dlopen ();
9056  ;
9057  return 0;
9058}
9059_ACEOF
9060rm -f conftest.$ac_objext conftest$ac_exeext
9061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062  (eval $ac_link) 2>conftest.er1
9063  ac_status=$?
9064  grep -v '^ *+' conftest.er1 >conftest.err
9065  rm -f conftest.er1
9066  cat conftest.err >&5
9067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); } &&
9069	 { ac_try='test -z "$ac_c_werror_flag"
9070			 || test ! -s conftest.err'
9071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072  (eval $ac_try) 2>&5
9073  ac_status=$?
9074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075  (exit $ac_status); }; } &&
9076	 { ac_try='test -s conftest$ac_exeext'
9077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078  (eval $ac_try) 2>&5
9079  ac_status=$?
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); }; }; then
9082  ac_cv_lib_svld_dlopen=yes
9083else
9084  echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087ac_cv_lib_svld_dlopen=no
9088fi
9089rm -f conftest.err conftest.$ac_objext \
9090      conftest$ac_exeext conftest.$ac_ext
9091LIBS=$ac_check_lib_save_LIBS
9092fi
9093echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9095if test $ac_cv_lib_svld_dlopen = yes; then
9096  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9097else
9098  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9099echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9100if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9101  echo $ECHO_N "(cached) $ECHO_C" >&6
9102else
9103  ac_check_lib_save_LIBS=$LIBS
9104LIBS="-ldld  $LIBS"
9105cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h.  */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h.  */
9111
9112/* Override any gcc2 internal prototype to avoid an error.  */
9113#ifdef __cplusplus
9114extern "C"
9115#endif
9116/* We use char because int might match the return type of a gcc2
9117   builtin and then its argument prototype would still apply.  */
9118char dld_link ();
9119int
9120main ()
9121{
9122dld_link ();
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
9128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129  (eval $ac_link) 2>conftest.er1
9130  ac_status=$?
9131  grep -v '^ *+' conftest.er1 >conftest.err
9132  rm -f conftest.er1
9133  cat conftest.err >&5
9134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135  (exit $ac_status); } &&
9136	 { ac_try='test -z "$ac_c_werror_flag"
9137			 || test ! -s conftest.err'
9138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139  (eval $ac_try) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }; } &&
9143	 { ac_try='test -s conftest$ac_exeext'
9144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145  (eval $ac_try) 2>&5
9146  ac_status=$?
9147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148  (exit $ac_status); }; }; then
9149  ac_cv_lib_dld_dld_link=yes
9150else
9151  echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154ac_cv_lib_dld_dld_link=no
9155fi
9156rm -f conftest.err conftest.$ac_objext \
9157      conftest$ac_exeext conftest.$ac_ext
9158LIBS=$ac_check_lib_save_LIBS
9159fi
9160echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9161echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9162if test $ac_cv_lib_dld_dld_link = yes; then
9163  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9164fi
9165
9166
9167fi
9168
9169
9170fi
9171
9172
9173fi
9174
9175
9176fi
9177
9178
9179fi
9180
9181    ;;
9182  esac
9183
9184  if test "x$lt_cv_dlopen" != xno; then
9185    enable_dlopen=yes
9186  else
9187    enable_dlopen=no
9188  fi
9189
9190  case $lt_cv_dlopen in
9191  dlopen)
9192    save_CPPFLAGS="$CPPFLAGS"
9193    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9194
9195    save_LDFLAGS="$LDFLAGS"
9196    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9197
9198    save_LIBS="$LIBS"
9199    LIBS="$lt_cv_dlopen_libs $LIBS"
9200
9201    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9202echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9203if test "${lt_cv_dlopen_self+set}" = set; then
9204  echo $ECHO_N "(cached) $ECHO_C" >&6
9205else
9206  	  if test "$cross_compiling" = yes; then :
9207  lt_cv_dlopen_self=cross
9208else
9209  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9210  lt_status=$lt_dlunknown
9211  cat > conftest.$ac_ext <<EOF
9212#line 9212 "configure"
9213#include "confdefs.h"
9214
9215#if HAVE_DLFCN_H
9216#include <dlfcn.h>
9217#endif
9218
9219#include <stdio.h>
9220
9221#ifdef RTLD_GLOBAL
9222#  define LT_DLGLOBAL		RTLD_GLOBAL
9223#else
9224#  ifdef DL_GLOBAL
9225#    define LT_DLGLOBAL		DL_GLOBAL
9226#  else
9227#    define LT_DLGLOBAL		0
9228#  endif
9229#endif
9230
9231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9232   find out it does not work in some platform. */
9233#ifndef LT_DLLAZY_OR_NOW
9234#  ifdef RTLD_LAZY
9235#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9236#  else
9237#    ifdef DL_LAZY
9238#      define LT_DLLAZY_OR_NOW		DL_LAZY
9239#    else
9240#      ifdef RTLD_NOW
9241#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9242#      else
9243#        ifdef DL_NOW
9244#          define LT_DLLAZY_OR_NOW	DL_NOW
9245#        else
9246#          define LT_DLLAZY_OR_NOW	0
9247#        endif
9248#      endif
9249#    endif
9250#  endif
9251#endif
9252
9253#ifdef __cplusplus
9254extern "C" void exit (int);
9255#endif
9256
9257void fnord() { int i=42;}
9258int main ()
9259{
9260  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9261  int status = $lt_dlunknown;
9262
9263  if (self)
9264    {
9265      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9266      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9267      /* dlclose (self); */
9268    }
9269
9270    exit (status);
9271}
9272EOF
9273  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274  (eval $ac_link) 2>&5
9275  ac_status=$?
9276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9278    (./conftest; exit; ) >&5 2>/dev/null
9279    lt_status=$?
9280    case x$lt_status in
9281      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9282      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9283      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9284    esac
9285  else :
9286    # compilation failed
9287    lt_cv_dlopen_self=no
9288  fi
9289fi
9290rm -fr conftest*
9291
9292
9293fi
9294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9295echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9296
9297    if test "x$lt_cv_dlopen_self" = xyes; then
9298      LDFLAGS="$LDFLAGS $link_static_flag"
9299      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9300echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9301if test "${lt_cv_dlopen_self_static+set}" = set; then
9302  echo $ECHO_N "(cached) $ECHO_C" >&6
9303else
9304  	  if test "$cross_compiling" = yes; then :
9305  lt_cv_dlopen_self_static=cross
9306else
9307  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9308  lt_status=$lt_dlunknown
9309  cat > conftest.$ac_ext <<EOF
9310#line 9310 "configure"
9311#include "confdefs.h"
9312
9313#if HAVE_DLFCN_H
9314#include <dlfcn.h>
9315#endif
9316
9317#include <stdio.h>
9318
9319#ifdef RTLD_GLOBAL
9320#  define LT_DLGLOBAL		RTLD_GLOBAL
9321#else
9322#  ifdef DL_GLOBAL
9323#    define LT_DLGLOBAL		DL_GLOBAL
9324#  else
9325#    define LT_DLGLOBAL		0
9326#  endif
9327#endif
9328
9329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9330   find out it does not work in some platform. */
9331#ifndef LT_DLLAZY_OR_NOW
9332#  ifdef RTLD_LAZY
9333#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9334#  else
9335#    ifdef DL_LAZY
9336#      define LT_DLLAZY_OR_NOW		DL_LAZY
9337#    else
9338#      ifdef RTLD_NOW
9339#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9340#      else
9341#        ifdef DL_NOW
9342#          define LT_DLLAZY_OR_NOW	DL_NOW
9343#        else
9344#          define LT_DLLAZY_OR_NOW	0
9345#        endif
9346#      endif
9347#    endif
9348#  endif
9349#endif
9350
9351#ifdef __cplusplus
9352extern "C" void exit (int);
9353#endif
9354
9355void fnord() { int i=42;}
9356int main ()
9357{
9358  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9359  int status = $lt_dlunknown;
9360
9361  if (self)
9362    {
9363      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9364      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9365      /* dlclose (self); */
9366    }
9367
9368    exit (status);
9369}
9370EOF
9371  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372  (eval $ac_link) 2>&5
9373  ac_status=$?
9374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9376    (./conftest; exit; ) >&5 2>/dev/null
9377    lt_status=$?
9378    case x$lt_status in
9379      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9380      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9381      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9382    esac
9383  else :
9384    # compilation failed
9385    lt_cv_dlopen_self_static=no
9386  fi
9387fi
9388rm -fr conftest*
9389
9390
9391fi
9392echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9393echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9394    fi
9395
9396    CPPFLAGS="$save_CPPFLAGS"
9397    LDFLAGS="$save_LDFLAGS"
9398    LIBS="$save_LIBS"
9399    ;;
9400  esac
9401
9402  case $lt_cv_dlopen_self in
9403  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9404  *) enable_dlopen_self=unknown ;;
9405  esac
9406
9407  case $lt_cv_dlopen_self_static in
9408  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9409  *) enable_dlopen_self_static=unknown ;;
9410  esac
9411fi
9412
9413
9414# Report which librarie types wil actually be built
9415echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9417echo "$as_me:$LINENO: result: $can_build_shared" >&5
9418echo "${ECHO_T}$can_build_shared" >&6
9419
9420echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9422test "$can_build_shared" = "no" && enable_shared=no
9423
9424# On AIX, shared libraries and static libraries use the same namespace, and
9425# are all built from PIC.
9426case $host_os in
9427aix3*)
9428  test "$enable_shared" = yes && enable_static=no
9429  if test -n "$RANLIB"; then
9430    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9431    postinstall_cmds='$RANLIB $lib'
9432  fi
9433  ;;
9434
9435aix4* | aix5*)
9436  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9437    test "$enable_shared" = yes && enable_static=no
9438  fi
9439    ;;
9440esac
9441echo "$as_me:$LINENO: result: $enable_shared" >&5
9442echo "${ECHO_T}$enable_shared" >&6
9443
9444echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9445echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9446# Make sure either enable_shared or enable_static is yes.
9447test "$enable_shared" = yes || enable_static=yes
9448echo "$as_me:$LINENO: result: $enable_static" >&5
9449echo "${ECHO_T}$enable_static" >&6
9450
9451# The else clause should only fire when bootstrapping the
9452# libtool distribution, otherwise you forgot to ship ltmain.sh
9453# with your package, and you will get complaints that there are
9454# no rules to generate ltmain.sh.
9455if test -f "$ltmain"; then
9456  # See if we are running on zsh, and set the options which allow our commands through
9457  # without removal of \ escapes.
9458  if test -n "${ZSH_VERSION+set}" ; then
9459    setopt NO_GLOB_SUBST
9460  fi
9461  # Now quote all the things that may contain metacharacters while being
9462  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9463  # variables and quote the copies for generation of the libtool script.
9464  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9465    SED SHELL STRIP \
9466    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9467    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9468    deplibs_check_method reload_flag reload_cmds need_locks \
9469    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9470    lt_cv_sys_global_symbol_to_c_name_address \
9471    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9472    old_postinstall_cmds old_postuninstall_cmds \
9473    compiler \
9474    CC \
9475    LD \
9476    lt_prog_compiler_wl \
9477    lt_prog_compiler_pic \
9478    lt_prog_compiler_static \
9479    lt_prog_compiler_no_builtin_flag \
9480    export_dynamic_flag_spec \
9481    thread_safe_flag_spec \
9482    whole_archive_flag_spec \
9483    enable_shared_with_static_runtimes \
9484    old_archive_cmds \
9485    old_archive_from_new_cmds \
9486    predep_objects \
9487    postdep_objects \
9488    predeps \
9489    postdeps \
9490    compiler_lib_search_path \
9491    archive_cmds \
9492    archive_expsym_cmds \
9493    postinstall_cmds \
9494    postuninstall_cmds \
9495    old_archive_from_expsyms_cmds \
9496    allow_undefined_flag \
9497    no_undefined_flag \
9498    export_symbols_cmds \
9499    hardcode_libdir_flag_spec \
9500    hardcode_libdir_flag_spec_ld \
9501    hardcode_libdir_separator \
9502    hardcode_automatic \
9503    module_cmds \
9504    module_expsym_cmds \
9505    lt_cv_prog_compiler_c_o \
9506    exclude_expsyms \
9507    include_expsyms; do
9508
9509    case $var in
9510    old_archive_cmds | \
9511    old_archive_from_new_cmds | \
9512    archive_cmds | \
9513    archive_expsym_cmds | \
9514    module_cmds | \
9515    module_expsym_cmds | \
9516    old_archive_from_expsyms_cmds | \
9517    export_symbols_cmds | \
9518    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9519    postinstall_cmds | postuninstall_cmds | \
9520    old_postinstall_cmds | old_postuninstall_cmds | \
9521    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9522      # Double-quote double-evaled strings.
9523      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9524      ;;
9525    *)
9526      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9527      ;;
9528    esac
9529  done
9530
9531  case $lt_echo in
9532  *'\$0 --fallback-echo"')
9533    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9534    ;;
9535  esac
9536
9537cfgfile="${ofile}T"
9538  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9539  $rm -f "$cfgfile"
9540  { echo "$as_me:$LINENO: creating $ofile" >&5
9541echo "$as_me: creating $ofile" >&6;}
9542
9543  cat <<__EOF__ >> "$cfgfile"
9544#! $SHELL
9545
9546# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9547# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9548# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9549#
9550# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9551# Free Software Foundation, Inc.
9552#
9553# This file is part of GNU Libtool:
9554# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9555#
9556# This program is free software; you can redistribute it and/or modify
9557# it under the terms of the GNU General Public License as published by
9558# the Free Software Foundation; either version 2 of the License, or
9559# (at your option) any later version.
9560#
9561# This program is distributed in the hope that it will be useful, but
9562# WITHOUT ANY WARRANTY; without even the implied warranty of
9563# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9564# General Public License for more details.
9565#
9566# You should have received a copy of the GNU General Public License
9567# along with this program; if not, write to the Free Software
9568# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9569#
9570# As a special exception to the GNU General Public License, if you
9571# distribute this file as part of a program that contains a
9572# configuration script generated by Autoconf, you may include it under
9573# the same distribution terms that you use for the rest of that program.
9574
9575# A sed program that does not truncate output.
9576SED=$lt_SED
9577
9578# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9579Xsed="$SED -e 1s/^X//"
9580
9581# The HP-UX ksh and POSIX shell print the target directory to stdout
9582# if CDPATH is set.
9583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9584
9585# The names of the tagged configurations supported by this script.
9586available_tags=
9587
9588# ### BEGIN LIBTOOL CONFIG
9589
9590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9591
9592# Shell to use when invoking shell scripts.
9593SHELL=$lt_SHELL
9594
9595# Whether or not to build shared libraries.
9596build_libtool_libs=$enable_shared
9597
9598# Whether or not to build static libraries.
9599build_old_libs=$enable_static
9600
9601# Whether or not to add -lc for building shared libraries.
9602build_libtool_need_lc=$archive_cmds_need_lc
9603
9604# Whether or not to disallow shared libs when runtime libs are static
9605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9606
9607# Whether or not to optimize for fast installation.
9608fast_install=$enable_fast_install
9609
9610# The host system.
9611host_alias=$host_alias
9612host=$host
9613host_os=$host_os
9614
9615# The build system.
9616build_alias=$build_alias
9617build=$build
9618build_os=$build_os
9619
9620# An echo program that does not interpret backslashes.
9621echo=$lt_echo
9622
9623# The archiver.
9624AR=$lt_AR
9625AR_FLAGS=$lt_AR_FLAGS
9626
9627# A C compiler.
9628LTCC=$lt_LTCC
9629
9630# A language-specific compiler.
9631CC=$lt_compiler
9632
9633# Is the compiler the GNU C compiler?
9634with_gcc=$GCC
9635
9636# An ERE matcher.
9637EGREP=$lt_EGREP
9638
9639# The linker used to build libraries.
9640LD=$lt_LD
9641
9642# Whether we need hard or soft links.
9643LN_S=$lt_LN_S
9644
9645# A BSD-compatible nm program.
9646NM=$lt_NM
9647
9648# A symbol stripping program
9649STRIP=$lt_STRIP
9650
9651# Used to examine libraries when file_magic_cmd begins "file"
9652MAGIC_CMD=$MAGIC_CMD
9653
9654# Used on cygwin: DLL creation program.
9655DLLTOOL="$DLLTOOL"
9656
9657# Used on cygwin: object dumper.
9658OBJDUMP="$OBJDUMP"
9659
9660# Used on cygwin: assembler.
9661AS="$AS"
9662
9663# The name of the directory that contains temporary libtool files.
9664objdir=$objdir
9665
9666# How to create reloadable object files.
9667reload_flag=$lt_reload_flag
9668reload_cmds=$lt_reload_cmds
9669
9670# How to pass a linker flag through the compiler.
9671wl=$lt_lt_prog_compiler_wl
9672
9673# Object file suffix (normally "o").
9674objext="$ac_objext"
9675
9676# Old archive suffix (normally "a").
9677libext="$libext"
9678
9679# Shared library suffix (normally ".so").
9680shrext_cmds='$shrext_cmds'
9681
9682# Executable file suffix (normally "").
9683exeext="$exeext"
9684
9685# Additional compiler flags for building library objects.
9686pic_flag=$lt_lt_prog_compiler_pic
9687pic_mode=$pic_mode
9688
9689# What is the maximum length of a command?
9690max_cmd_len=$lt_cv_sys_max_cmd_len
9691
9692# Does compiler simultaneously support -c and -o options?
9693compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9694
9695# Must we lock files when doing compilation?
9696need_locks=$lt_need_locks
9697
9698# Do we need the lib prefix for modules?
9699need_lib_prefix=$need_lib_prefix
9700
9701# Do we need a version for libraries?
9702need_version=$need_version
9703
9704# Whether dlopen is supported.
9705dlopen_support=$enable_dlopen
9706
9707# Whether dlopen of programs is supported.
9708dlopen_self=$enable_dlopen_self
9709
9710# Whether dlopen of statically linked programs is supported.
9711dlopen_self_static=$enable_dlopen_self_static
9712
9713# Compiler flag to prevent dynamic linking.
9714link_static_flag=$lt_lt_prog_compiler_static
9715
9716# Compiler flag to turn off builtin functions.
9717no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9718
9719# Compiler flag to allow reflexive dlopens.
9720export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9721
9722# Compiler flag to generate shared objects directly from archives.
9723whole_archive_flag_spec=$lt_whole_archive_flag_spec
9724
9725# Compiler flag to generate thread-safe objects.
9726thread_safe_flag_spec=$lt_thread_safe_flag_spec
9727
9728# Library versioning type.
9729version_type=$version_type
9730
9731# Format of library name prefix.
9732libname_spec=$lt_libname_spec
9733
9734# List of archive names.  First name is the real one, the rest are links.
9735# The last name is the one that the linker finds with -lNAME.
9736library_names_spec=$lt_library_names_spec
9737
9738# The coded name of the library, if different from the real name.
9739soname_spec=$lt_soname_spec
9740
9741# Commands used to build and install an old-style archive.
9742RANLIB=$lt_RANLIB
9743old_archive_cmds=$lt_old_archive_cmds
9744old_postinstall_cmds=$lt_old_postinstall_cmds
9745old_postuninstall_cmds=$lt_old_postuninstall_cmds
9746
9747# Create an old-style archive from a shared archive.
9748old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9749
9750# Create a temporary old-style archive to link instead of a shared archive.
9751old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9752
9753# Commands used to build and install a shared archive.
9754archive_cmds=$lt_archive_cmds
9755archive_expsym_cmds=$lt_archive_expsym_cmds
9756postinstall_cmds=$lt_postinstall_cmds
9757postuninstall_cmds=$lt_postuninstall_cmds
9758
9759# Commands used to build a loadable module (assumed same as above if empty)
9760module_cmds=$lt_module_cmds
9761module_expsym_cmds=$lt_module_expsym_cmds
9762
9763# Commands to strip libraries.
9764old_striplib=$lt_old_striplib
9765striplib=$lt_striplib
9766
9767# Dependencies to place before the objects being linked to create a
9768# shared library.
9769predep_objects=$lt_predep_objects
9770
9771# Dependencies to place after the objects being linked to create a
9772# shared library.
9773postdep_objects=$lt_postdep_objects
9774
9775# Dependencies to place before the objects being linked to create a
9776# shared library.
9777predeps=$lt_predeps
9778
9779# Dependencies to place after the objects being linked to create a
9780# shared library.
9781postdeps=$lt_postdeps
9782
9783# The library search path used internally by the compiler when linking
9784# a shared library.
9785compiler_lib_search_path=$lt_compiler_lib_search_path
9786
9787# Method to check whether dependent libraries are shared objects.
9788deplibs_check_method=$lt_deplibs_check_method
9789
9790# Command to use when deplibs_check_method == file_magic.
9791file_magic_cmd=$lt_file_magic_cmd
9792
9793# Flag that allows shared libraries with undefined symbols to be built.
9794allow_undefined_flag=$lt_allow_undefined_flag
9795
9796# Flag that forces no undefined symbols.
9797no_undefined_flag=$lt_no_undefined_flag
9798
9799# Commands used to finish a libtool library installation in a directory.
9800finish_cmds=$lt_finish_cmds
9801
9802# Same as above, but a single script fragment to be evaled but not shown.
9803finish_eval=$lt_finish_eval
9804
9805# Take the output of nm and produce a listing of raw symbols and C names.
9806global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9807
9808# Transform the output of nm in a proper C declaration
9809global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9810
9811# Transform the output of nm in a C name address pair
9812global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9813
9814# This is the shared library runtime path variable.
9815runpath_var=$runpath_var
9816
9817# This is the shared library path variable.
9818shlibpath_var=$shlibpath_var
9819
9820# Is shlibpath searched before the hard-coded library search path?
9821shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9822
9823# How to hardcode a shared library path into an executable.
9824hardcode_action=$hardcode_action
9825
9826# Whether we should hardcode library paths into libraries.
9827hardcode_into_libs=$hardcode_into_libs
9828
9829# Flag to hardcode \$libdir into a binary during linking.
9830# This must work even if \$libdir does not exist.
9831hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9832
9833# If ld is used when linking, flag to hardcode \$libdir into
9834# a binary during linking. This must work even if \$libdir does
9835# not exist.
9836hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9837
9838# Whether we need a single -rpath flag with a separated argument.
9839hardcode_libdir_separator=$lt_hardcode_libdir_separator
9840
9841# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9842# resulting binary.
9843hardcode_direct=$hardcode_direct
9844
9845# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9846# resulting binary.
9847hardcode_minus_L=$hardcode_minus_L
9848
9849# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9850# the resulting binary.
9851hardcode_shlibpath_var=$hardcode_shlibpath_var
9852
9853# Set to yes if building a shared library automatically hardcodes DIR into the library
9854# and all subsequent libraries and executables linked against it.
9855hardcode_automatic=$hardcode_automatic
9856
9857# Variables whose values should be saved in libtool wrapper scripts and
9858# restored at relink time.
9859variables_saved_for_relink="$variables_saved_for_relink"
9860
9861# Whether libtool must link a program against all its dependency libraries.
9862link_all_deplibs=$link_all_deplibs
9863
9864# Compile-time system search path for libraries
9865sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9866
9867# Run-time system search path for libraries
9868sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9869
9870# Fix the shell variable \$srcfile for the compiler.
9871fix_srcfile_path="$fix_srcfile_path"
9872
9873# Set to yes if exported symbols are required.
9874always_export_symbols=$always_export_symbols
9875
9876# The commands to list exported symbols.
9877export_symbols_cmds=$lt_export_symbols_cmds
9878
9879# The commands to extract the exported symbol list from a shared archive.
9880extract_expsyms_cmds=$lt_extract_expsyms_cmds
9881
9882# Symbols that should not be listed in the preloaded symbols.
9883exclude_expsyms=$lt_exclude_expsyms
9884
9885# Symbols that must always be exported.
9886include_expsyms=$lt_include_expsyms
9887
9888# ### END LIBTOOL CONFIG
9889
9890__EOF__
9891
9892
9893  case $host_os in
9894  aix3*)
9895    cat <<\EOF >> "$cfgfile"
9896
9897# AIX sometimes has problems with the GCC collect2 program.  For some
9898# reason, if we set the COLLECT_NAMES environment variable, the problems
9899# vanish in a puff of smoke.
9900if test "X${COLLECT_NAMES+set}" != Xset; then
9901  COLLECT_NAMES=
9902  export COLLECT_NAMES
9903fi
9904EOF
9905    ;;
9906  esac
9907
9908  # We use sed instead of cat because bash on DJGPP gets confused if
9909  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9910  # text mode, it properly converts lines to CR/LF.  This bash problem
9911  # is reportedly fixed, but why not run on old versions too?
9912  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9913
9914  mv -f "$cfgfile" "$ofile" || \
9915    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9916  chmod +x "$ofile"
9917
9918else
9919  # If there is no Makefile yet, we rely on a make rule to execute
9920  # `config.status --recheck' to rerun these tests and create the
9921  # libtool script then.
9922  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9923  if test -f "$ltmain_in"; then
9924    test -f Makefile && make "$ltmain"
9925  fi
9926fi
9927
9928
9929ac_ext=c
9930ac_cpp='$CPP $CPPFLAGS'
9931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9933ac_compiler_gnu=$ac_cv_c_compiler_gnu
9934
9935CC="$lt_save_CC"
9936
9937
9938# Check whether --with-tags or --without-tags was given.
9939if test "${with_tags+set}" = set; then
9940  withval="$with_tags"
9941  tagnames="$withval"
9942fi;
9943
9944if test -f "$ltmain" && test -n "$tagnames"; then
9945  if test ! -f "${ofile}"; then
9946    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9947echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9948  fi
9949
9950  if test -z "$LTCC"; then
9951    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9952    if test -z "$LTCC"; then
9953      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9954echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9955    else
9956      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9957echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9958    fi
9959  fi
9960
9961  # Extract list of available tagged configurations in $ofile.
9962  # Note that this assumes the entire list is on one line.
9963  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9964
9965  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9966  for tagname in $tagnames; do
9967    IFS="$lt_save_ifs"
9968    # Check whether tagname contains only valid characters
9969    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9970    "") ;;
9971    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9972echo "$as_me: error: invalid tag name: $tagname" >&2;}
9973   { (exit 1); exit 1; }; }
9974	;;
9975    esac
9976
9977    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9978    then
9979      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9980echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9981   { (exit 1); exit 1; }; }
9982    fi
9983
9984    # Update the list of available tags.
9985    if test -n "$tagname"; then
9986      echo appending configuration tag \"$tagname\" to $ofile
9987
9988      case $tagname in
9989      CXX)
9990	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9991	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9992	    (test "X$CXX" != "Xg++"))) ; then
9993	  ac_ext=cc
9994ac_cpp='$CXXCPP $CPPFLAGS'
9995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9998
9999
10000
10001
10002archive_cmds_need_lc_CXX=no
10003allow_undefined_flag_CXX=
10004always_export_symbols_CXX=no
10005archive_expsym_cmds_CXX=
10006export_dynamic_flag_spec_CXX=
10007hardcode_direct_CXX=no
10008hardcode_libdir_flag_spec_CXX=
10009hardcode_libdir_flag_spec_ld_CXX=
10010hardcode_libdir_separator_CXX=
10011hardcode_minus_L_CXX=no
10012hardcode_automatic_CXX=no
10013module_cmds_CXX=
10014module_expsym_cmds_CXX=
10015link_all_deplibs_CXX=unknown
10016old_archive_cmds_CXX=$old_archive_cmds
10017no_undefined_flag_CXX=
10018whole_archive_flag_spec_CXX=
10019enable_shared_with_static_runtimes_CXX=no
10020
10021# Dependencies to place before and after the object being linked:
10022predep_objects_CXX=
10023postdep_objects_CXX=
10024predeps_CXX=
10025postdeps_CXX=
10026compiler_lib_search_path_CXX=
10027
10028# Source file extension for C++ test sources.
10029ac_ext=cpp
10030
10031# Object file extension for compiled C++ test sources.
10032objext=o
10033objext_CXX=$objext
10034
10035# Code to be used in simple compile tests
10036lt_simple_compile_test_code="int some_variable = 0;\n"
10037
10038# Code to be used in simple link tests
10039lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10040
10041# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10042
10043# If no C compiler was specified, use CC.
10044LTCC=${LTCC-"$CC"}
10045
10046# Allow CC to be a program name with arguments.
10047compiler=$CC
10048
10049
10050# save warnings/boilerplate of simple test code
10051ac_outfile=conftest.$ac_objext
10052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10054_lt_compiler_boilerplate=`cat conftest.err`
10055$rm conftest*
10056
10057ac_outfile=conftest.$ac_objext
10058printf "$lt_simple_link_test_code" >conftest.$ac_ext
10059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10060_lt_linker_boilerplate=`cat conftest.err`
10061$rm conftest*
10062
10063
10064# Allow CC to be a program name with arguments.
10065lt_save_CC=$CC
10066lt_save_LD=$LD
10067lt_save_GCC=$GCC
10068GCC=$GXX
10069lt_save_with_gnu_ld=$with_gnu_ld
10070lt_save_path_LD=$lt_cv_path_LD
10071if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10072  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10073else
10074  unset lt_cv_prog_gnu_ld
10075fi
10076if test -n "${lt_cv_path_LDCXX+set}"; then
10077  lt_cv_path_LD=$lt_cv_path_LDCXX
10078else
10079  unset lt_cv_path_LD
10080fi
10081test -z "${LDCXX+set}" || LD=$LDCXX
10082CC=${CXX-"c++"}
10083compiler=$CC
10084compiler_CXX=$CC
10085for cc_temp in $compiler""; do
10086  case $cc_temp in
10087    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10088    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10089    \-*) ;;
10090    *) break;;
10091  esac
10092done
10093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10094
10095
10096# We don't want -fno-exception wen compiling C++ code, so set the
10097# no_builtin_flag separately
10098if test "$GXX" = yes; then
10099  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10100else
10101  lt_prog_compiler_no_builtin_flag_CXX=
10102fi
10103
10104if test "$GXX" = yes; then
10105  # Set up default GNU C++ configuration
10106
10107
10108# Check whether --with-gnu-ld or --without-gnu-ld was given.
10109if test "${with_gnu_ld+set}" = set; then
10110  withval="$with_gnu_ld"
10111  test "$withval" = no || with_gnu_ld=yes
10112else
10113  with_gnu_ld=no
10114fi;
10115ac_prog=ld
10116if test "$GCC" = yes; then
10117  # Check if gcc -print-prog-name=ld gives a path.
10118  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10119echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10120  case $host in
10121  *-*-mingw*)
10122    # gcc leaves a trailing carriage return which upsets mingw
10123    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10124  *)
10125    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10126  esac
10127  case $ac_prog in
10128    # Accept absolute paths.
10129    [\\/]* | ?:[\\/]*)
10130      re_direlt='/[^/][^/]*/\.\./'
10131      # Canonicalize the pathname of ld
10132      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10133      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10134	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10135      done
10136      test -z "$LD" && LD="$ac_prog"
10137      ;;
10138  "")
10139    # If it fails, then pretend we aren't using GCC.
10140    ac_prog=ld
10141    ;;
10142  *)
10143    # If it is relative, then search for the first ld in PATH.
10144    with_gnu_ld=unknown
10145    ;;
10146  esac
10147elif test "$with_gnu_ld" = yes; then
10148  echo "$as_me:$LINENO: checking for GNU ld" >&5
10149echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10150else
10151  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10152echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10153fi
10154if test "${lt_cv_path_LD+set}" = set; then
10155  echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157  if test -z "$LD"; then
10158  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10159  for ac_dir in $PATH; do
10160    IFS="$lt_save_ifs"
10161    test -z "$ac_dir" && ac_dir=.
10162    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10163      lt_cv_path_LD="$ac_dir/$ac_prog"
10164      # Check to see if the program is GNU ld.  I'd rather use --version,
10165      # but apparently some variants of GNU ld only accept -v.
10166      # Break only if it was the GNU/non-GNU ld that we prefer.
10167      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10168      *GNU* | *'with BFD'*)
10169	test "$with_gnu_ld" != no && break
10170	;;
10171      *)
10172	test "$with_gnu_ld" != yes && break
10173	;;
10174      esac
10175    fi
10176  done
10177  IFS="$lt_save_ifs"
10178else
10179  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10180fi
10181fi
10182
10183LD="$lt_cv_path_LD"
10184if test -n "$LD"; then
10185  echo "$as_me:$LINENO: result: $LD" >&5
10186echo "${ECHO_T}$LD" >&6
10187else
10188  echo "$as_me:$LINENO: result: no" >&5
10189echo "${ECHO_T}no" >&6
10190fi
10191test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10192echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10193   { (exit 1); exit 1; }; }
10194echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10195echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10196if test "${lt_cv_prog_gnu_ld+set}" = set; then
10197  echo $ECHO_N "(cached) $ECHO_C" >&6
10198else
10199  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10200case `$LD -v 2>&1 </dev/null` in
10201*GNU* | *'with BFD'*)
10202  lt_cv_prog_gnu_ld=yes
10203  ;;
10204*)
10205  lt_cv_prog_gnu_ld=no
10206  ;;
10207esac
10208fi
10209echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10210echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10211with_gnu_ld=$lt_cv_prog_gnu_ld
10212
10213
10214
10215  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10216  # archiving commands below assume that GNU ld is being used.
10217  if test "$with_gnu_ld" = yes; then
10218    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220
10221    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10222    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10223
10224    # If archive_cmds runs LD, not CC, wlarc should be empty
10225    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10226    #     investigate it a little bit more. (MM)
10227    wlarc='${wl}'
10228
10229    # ancient GNU ld didn't support --whole-archive et. al.
10230    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10231	grep 'no-whole-archive' > /dev/null; then
10232      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10233    else
10234      whole_archive_flag_spec_CXX=
10235    fi
10236  else
10237    with_gnu_ld=no
10238    wlarc=
10239
10240    # A generic and very simple default shared library creation
10241    # command for GNU C++ for the case where it uses the native
10242    # linker, instead of GNU ld.  If possible, this setting should
10243    # overridden to take advantage of the native linker features on
10244    # the platform it is being used on.
10245    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10246  fi
10247
10248  # Commands to make compiler produce verbose output that lists
10249  # what "hidden" libraries, object files and flags are used when
10250  # linking a shared library.
10251  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10252
10253else
10254  GXX=no
10255  with_gnu_ld=no
10256  wlarc=
10257fi
10258
10259# PORTME: fill in a description of your system's C++ link characteristics
10260echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10261echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10262ld_shlibs_CXX=yes
10263case $host_os in
10264  aix3*)
10265    # FIXME: insert proper C++ library support
10266    ld_shlibs_CXX=no
10267    ;;
10268  aix4* | aix5*)
10269    if test "$host_cpu" = ia64; then
10270      # On IA64, the linker does run time linking by default, so we don't
10271      # have to do anything special.
10272      aix_use_runtimelinking=no
10273      exp_sym_flag='-Bexport'
10274      no_entry_flag=""
10275    else
10276      aix_use_runtimelinking=no
10277
10278      # Test if we are trying to use run time linking or normal
10279      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10280      # need to do runtime linking.
10281      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10282	for ld_flag in $LDFLAGS; do
10283	  case $ld_flag in
10284	  *-brtl*)
10285	    aix_use_runtimelinking=yes
10286	    break
10287	    ;;
10288	  esac
10289	done
10290      esac
10291
10292      exp_sym_flag='-bexport'
10293      no_entry_flag='-bnoentry'
10294    fi
10295
10296    # When large executables or shared objects are built, AIX ld can
10297    # have problems creating the table of contents.  If linking a library
10298    # or program results in "error TOC overflow" add -mminimal-toc to
10299    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10300    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10301
10302    archive_cmds_CXX=''
10303    hardcode_direct_CXX=yes
10304    hardcode_libdir_separator_CXX=':'
10305    link_all_deplibs_CXX=yes
10306
10307    if test "$GXX" = yes; then
10308      case $host_os in aix4.[012]|aix4.[012].*)
10309      # We only want to do this on AIX 4.2 and lower, the check
10310      # below for broken collect2 doesn't work under 4.3+
10311	collect2name=`${CC} -print-prog-name=collect2`
10312	if test -f "$collect2name" && \
10313	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10314	then
10315	  # We have reworked collect2
10316	  hardcode_direct_CXX=yes
10317	else
10318	  # We have old collect2
10319	  hardcode_direct_CXX=unsupported
10320	  # It fails to find uninstalled libraries when the uninstalled
10321	  # path is not listed in the libpath.  Setting hardcode_minus_L
10322	  # to unsupported forces relinking
10323	  hardcode_minus_L_CXX=yes
10324	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10325	  hardcode_libdir_separator_CXX=
10326	fi
10327      esac
10328      shared_flag='-shared'
10329      if test "$aix_use_runtimelinking" = yes; then
10330	shared_flag="$shared_flag "'${wl}-G'
10331      fi
10332    else
10333      # not using gcc
10334      if test "$host_cpu" = ia64; then
10335	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10336	# chokes on -Wl,-G. The following line is correct:
10337	shared_flag='-G'
10338      else
10339	if test "$aix_use_runtimelinking" = yes; then
10340	  shared_flag='${wl}-G'
10341	else
10342	  shared_flag='${wl}-bM:SRE'
10343	fi
10344      fi
10345    fi
10346
10347    # It seems that -bexpall does not export symbols beginning with
10348    # underscore (_), so it is better to generate a list of symbols to export.
10349    always_export_symbols_CXX=yes
10350    if test "$aix_use_runtimelinking" = yes; then
10351      # Warning - without using the other runtime loading flags (-brtl),
10352      # -berok will link without error, but may produce a broken library.
10353      allow_undefined_flag_CXX='-berok'
10354      # Determine the default libpath from the value encoded in an empty executable.
10355      cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h.  */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h.  */
10361
10362int
10363main ()
10364{
10365
10366  ;
10367  return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext conftest$ac_exeext
10371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372  (eval $ac_link) 2>conftest.er1
10373  ac_status=$?
10374  grep -v '^ *+' conftest.er1 >conftest.err
10375  rm -f conftest.er1
10376  cat conftest.err >&5
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); } &&
10379	 { ac_try='test -z "$ac_cxx_werror_flag"
10380			 || test ! -s conftest.err'
10381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382  (eval $ac_try) 2>&5
10383  ac_status=$?
10384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); }; } &&
10386	 { ac_try='test -s conftest$ac_exeext'
10387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388  (eval $ac_try) 2>&5
10389  ac_status=$?
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); }; }; then
10392
10393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10394}'`
10395# Check for a 64-bit object if we didn't find anything.
10396if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10397}'`; fi
10398else
10399  echo "$as_me: failed program was:" >&5
10400sed 's/^/| /' conftest.$ac_ext >&5
10401
10402fi
10403rm -f conftest.err conftest.$ac_objext \
10404      conftest$ac_exeext conftest.$ac_ext
10405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10406
10407      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10408
10409      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10410     else
10411      if test "$host_cpu" = ia64; then
10412	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10413	allow_undefined_flag_CXX="-z nodefs"
10414	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10415      else
10416	# Determine the default libpath from the value encoded in an empty executable.
10417	cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h.  */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h.  */
10423
10424int
10425main ()
10426{
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432rm -f conftest.$ac_objext conftest$ac_exeext
10433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434  (eval $ac_link) 2>conftest.er1
10435  ac_status=$?
10436  grep -v '^ *+' conftest.er1 >conftest.err
10437  rm -f conftest.er1
10438  cat conftest.err >&5
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } &&
10441	 { ac_try='test -z "$ac_cxx_werror_flag"
10442			 || test ! -s conftest.err'
10443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444  (eval $ac_try) 2>&5
10445  ac_status=$?
10446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); }; } &&
10448	 { ac_try='test -s conftest$ac_exeext'
10449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450  (eval $ac_try) 2>&5
10451  ac_status=$?
10452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); }; }; then
10454
10455aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10456}'`
10457# Check for a 64-bit object if we didn't find anything.
10458if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10459}'`; fi
10460else
10461  echo "$as_me: failed program was:" >&5
10462sed 's/^/| /' conftest.$ac_ext >&5
10463
10464fi
10465rm -f conftest.err conftest.$ac_objext \
10466      conftest$ac_exeext conftest.$ac_ext
10467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10468
10469	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10470	# Warning - without using the other run time loading flags,
10471	# -berok will link without error, but may produce a broken library.
10472	no_undefined_flag_CXX=' ${wl}-bernotok'
10473	allow_undefined_flag_CXX=' ${wl}-berok'
10474	# -bexpall does not export symbols beginning with underscore (_)
10475	always_export_symbols_CXX=yes
10476	# Exported symbols can be pulled into shared objects from archives
10477	whole_archive_flag_spec_CXX=' '
10478	archive_cmds_need_lc_CXX=yes
10479	# This is similar to how AIX traditionally builds its shared libraries.
10480	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10481      fi
10482    fi
10483    ;;
10484  chorus*)
10485    case $cc_basename in
10486      *)
10487	# FIXME: insert proper C++ library support
10488	ld_shlibs_CXX=no
10489	;;
10490    esac
10491    ;;
10492
10493
10494  cygwin* | mingw* | pw32*)
10495    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10496    # as there is no search path for DLLs.
10497    hardcode_libdir_flag_spec_CXX='-L$libdir'
10498    allow_undefined_flag_CXX=unsupported
10499    always_export_symbols_CXX=no
10500    enable_shared_with_static_runtimes_CXX=yes
10501
10502    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10503      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
10504      # If the export-symbols file already is a .def file (1st line
10505      # is EXPORTS), use it as is; otherwise, prepend...
10506      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10507	cp $export_symbols $output_objdir/$soname.def;
10508      else
10509	echo EXPORTS > $output_objdir/$soname.def;
10510	cat $export_symbols >> $output_objdir/$soname.def;
10511      fi~
10512      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
10513    else
10514      ld_shlibs_CXX=no
10515    fi
10516  ;;
10517      darwin* | rhapsody*)
10518        case $host_os in
10519        rhapsody* | darwin1.[012])
10520         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10521         ;;
10522       *) # Darwin 1.3 on
10523         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10524           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10525         else
10526           case ${MACOSX_DEPLOYMENT_TARGET} in
10527             10.[012])
10528               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10529               ;;
10530             10.*)
10531               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10532               ;;
10533           esac
10534         fi
10535         ;;
10536        esac
10537      archive_cmds_need_lc_CXX=no
10538      hardcode_direct_CXX=no
10539      hardcode_automatic_CXX=yes
10540      hardcode_shlibpath_var_CXX=unsupported
10541      whole_archive_flag_spec_CXX=''
10542      link_all_deplibs_CXX=yes
10543
10544    if test "$GXX" = yes ; then
10545      lt_int_apple_cc_single_mod=no
10546      output_verbose_link_cmd='echo'
10547      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10548       lt_int_apple_cc_single_mod=yes
10549      fi
10550      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10551       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10552      else
10553          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10554        fi
10555        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10556        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10557          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10558            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10559          else
10560            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10561          fi
10562            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10563      else
10564      case $cc_basename in
10565        xlc*)
10566         output_verbose_link_cmd='echo'
10567          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10568          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10569          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10570          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10571          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10572          ;;
10573       *)
10574         ld_shlibs_CXX=no
10575          ;;
10576      esac
10577      fi
10578        ;;
10579
10580  dgux*)
10581    case $cc_basename in
10582      ec++*)
10583	# FIXME: insert proper C++ library support
10584	ld_shlibs_CXX=no
10585	;;
10586      ghcx*)
10587	# Green Hills C++ Compiler
10588	# FIXME: insert proper C++ library support
10589	ld_shlibs_CXX=no
10590	;;
10591      *)
10592	# FIXME: insert proper C++ library support
10593	ld_shlibs_CXX=no
10594	;;
10595    esac
10596    ;;
10597  freebsd[12]*)
10598    # C++ shared libraries reported to be fairly broken before switch to ELF
10599    ld_shlibs_CXX=no
10600    ;;
10601  freebsd-elf*)
10602    archive_cmds_need_lc_CXX=no
10603    ;;
10604  freebsd* | kfreebsd*-gnu | dragonfly*)
10605    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10606    # conventions
10607    ld_shlibs_CXX=yes
10608    ;;
10609  gnu*)
10610    ;;
10611  hpux9*)
10612    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10613    hardcode_libdir_separator_CXX=:
10614    export_dynamic_flag_spec_CXX='${wl}-E'
10615    hardcode_direct_CXX=yes
10616    hardcode_minus_L_CXX=yes # Not in the search PATH,
10617				# but as the default
10618				# location of the library.
10619
10620    case $cc_basename in
10621    CC*)
10622      # FIXME: insert proper C++ library support
10623      ld_shlibs_CXX=no
10624      ;;
10625    aCC*)
10626      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10627      # Commands to make compiler produce verbose output that lists
10628      # what "hidden" libraries, object files and flags are used when
10629      # linking a shared library.
10630      #
10631      # There doesn't appear to be a way to prevent this compiler from
10632      # explicitly linking system object files so we need to strip them
10633      # from the output so that they don't get included in the library
10634      # dependencies.
10635      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10636      ;;
10637    *)
10638      if test "$GXX" = yes; then
10639        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10640      else
10641        # FIXME: insert proper C++ library support
10642        ld_shlibs_CXX=no
10643      fi
10644      ;;
10645    esac
10646    ;;
10647  hpux10*|hpux11*)
10648    if test $with_gnu_ld = no; then
10649      case $host_cpu in
10650      hppa*64*)
10651	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10652	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10653	hardcode_libdir_separator_CXX=:
10654        ;;
10655      ia64*)
10656	hardcode_libdir_flag_spec_CXX='-L$libdir'
10657        ;;
10658      *)
10659	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10660	hardcode_libdir_separator_CXX=:
10661	export_dynamic_flag_spec_CXX='${wl}-E'
10662        ;;
10663      esac
10664    fi
10665    case $host_cpu in
10666    hppa*64*)
10667      hardcode_direct_CXX=no
10668      hardcode_shlibpath_var_CXX=no
10669      ;;
10670    ia64*)
10671      hardcode_direct_CXX=no
10672      hardcode_shlibpath_var_CXX=no
10673      hardcode_minus_L_CXX=yes # Not in the search PATH,
10674					      # but as the default
10675					      # location of the library.
10676      ;;
10677    *)
10678      hardcode_direct_CXX=yes
10679      hardcode_minus_L_CXX=yes # Not in the search PATH,
10680					      # but as the default
10681					      # location of the library.
10682      ;;
10683    esac
10684
10685    case $cc_basename in
10686      CC*)
10687	# FIXME: insert proper C++ library support
10688	ld_shlibs_CXX=no
10689	;;
10690      aCC*)
10691	case $host_cpu in
10692	hppa*64*|ia64*)
10693	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10694	  ;;
10695	*)
10696	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697	  ;;
10698	esac
10699	# Commands to make compiler produce verbose output that lists
10700	# what "hidden" libraries, object files and flags are used when
10701	# linking a shared library.
10702	#
10703	# There doesn't appear to be a way to prevent this compiler from
10704	# explicitly linking system object files so we need to strip them
10705	# from the output so that they don't get included in the library
10706	# dependencies.
10707	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10708	;;
10709      *)
10710	if test "$GXX" = yes; then
10711	  if test $with_gnu_ld = no; then
10712	    case $host_cpu in
10713	    ia64*|hppa*64*)
10714	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10715	      ;;
10716	    *)
10717	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718	      ;;
10719	    esac
10720	  fi
10721	else
10722	  # FIXME: insert proper C++ library support
10723	  ld_shlibs_CXX=no
10724	fi
10725	;;
10726    esac
10727    ;;
10728  irix5* | irix6*)
10729    case $cc_basename in
10730      CC*)
10731	# SGI C++
10732	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10733
10734	# Archives containing C++ object files must be created using
10735	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10736	# necessary to make sure instantiated templates are included
10737	# in the archive.
10738	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10739	;;
10740      *)
10741	if test "$GXX" = yes; then
10742	  if test "$with_gnu_ld" = no; then
10743	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10744	  else
10745	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10746	  fi
10747	fi
10748	link_all_deplibs_CXX=yes
10749	;;
10750    esac
10751    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10752    hardcode_libdir_separator_CXX=:
10753    ;;
10754  linux*)
10755    case $cc_basename in
10756      KCC*)
10757	# Kuck and Associates, Inc. (KAI) C++ Compiler
10758
10759	# KCC will only create a shared library if the output file
10760	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10761	# to its proper name (with version) after linking.
10762	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10763	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10764	# Commands to make compiler produce verbose output that lists
10765	# what "hidden" libraries, object files and flags are used when
10766	# linking a shared library.
10767	#
10768	# There doesn't appear to be a way to prevent this compiler from
10769	# explicitly linking system object files so we need to strip them
10770	# from the output so that they don't get included in the library
10771	# dependencies.
10772	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10773
10774	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10775	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10776
10777	# Archives containing C++ object files must be created using
10778	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10779	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10780	;;
10781      icpc*)
10782	# Intel C++
10783	with_gnu_ld=yes
10784	# version 8.0 and above of icpc choke on multiply defined symbols
10785	# if we add $predep_objects and $postdep_objects, however 7.1 and
10786	# earlier do not add the objects themselves.
10787	case `$CC -V 2>&1` in
10788	*"Version 7."*)
10789  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10791	  ;;
10792	*)  # Version 8.0 or newer
10793	  tmp_idyn=
10794	  case $host_cpu in
10795	    ia64*) tmp_idyn=' -i_dynamic';;
10796	  esac
10797  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10798	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10799	  ;;
10800	esac
10801	archive_cmds_need_lc_CXX=no
10802	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10803	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10804	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10805	;;
10806      pgCC*)
10807        # Portland Group C++ compiler
10808	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10809  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10810
10811	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10812	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10813	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10814        ;;
10815      cxx*)
10816	# Compaq C++
10817	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10819
10820	runpath_var=LD_RUN_PATH
10821	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10822	hardcode_libdir_separator_CXX=:
10823
10824	# Commands to make compiler produce verbose output that lists
10825	# what "hidden" libraries, object files and flags are used when
10826	# linking a shared library.
10827	#
10828	# There doesn't appear to be a way to prevent this compiler from
10829	# explicitly linking system object files so we need to strip them
10830	# from the output so that they don't get included in the library
10831	# dependencies.
10832	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10833	;;
10834    esac
10835    ;;
10836  lynxos*)
10837    # FIXME: insert proper C++ library support
10838    ld_shlibs_CXX=no
10839    ;;
10840  m88k*)
10841    # FIXME: insert proper C++ library support
10842    ld_shlibs_CXX=no
10843    ;;
10844  mvs*)
10845    case $cc_basename in
10846      cxx*)
10847	# FIXME: insert proper C++ library support
10848	ld_shlibs_CXX=no
10849	;;
10850      *)
10851	# FIXME: insert proper C++ library support
10852	ld_shlibs_CXX=no
10853	;;
10854    esac
10855    ;;
10856  netbsd*)
10857    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10858      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10859      wlarc=
10860      hardcode_libdir_flag_spec_CXX='-R$libdir'
10861      hardcode_direct_CXX=yes
10862      hardcode_shlibpath_var_CXX=no
10863    fi
10864    # Workaround some broken pre-1.5 toolchains
10865    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10866    ;;
10867  openbsd2*)
10868    # C++ shared libraries are fairly broken
10869    ld_shlibs_CXX=no
10870    ;;
10871  openbsd*)
10872    hardcode_direct_CXX=yes
10873    hardcode_shlibpath_var_CXX=no
10874    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10875    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10876    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10877      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10878      export_dynamic_flag_spec_CXX='${wl}-E'
10879      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10880    fi
10881    output_verbose_link_cmd='echo'
10882    ;;
10883  osf3*)
10884    case $cc_basename in
10885      KCC*)
10886	# Kuck and Associates, Inc. (KAI) C++ Compiler
10887
10888	# KCC will only create a shared library if the output file
10889	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10890	# to its proper name (with version) after linking.
10891	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10892
10893	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10894	hardcode_libdir_separator_CXX=:
10895
10896	# Archives containing C++ object files must be created using
10897	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10898	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10899
10900	;;
10901      RCC*)
10902	# Rational C++ 2.4.1
10903	# FIXME: insert proper C++ library support
10904	ld_shlibs_CXX=no
10905	;;
10906      cxx*)
10907	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10908	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10909
10910	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10911	hardcode_libdir_separator_CXX=:
10912
10913	# Commands to make compiler produce verbose output that lists
10914	# what "hidden" libraries, object files and flags are used when
10915	# linking a shared library.
10916	#
10917	# There doesn't appear to be a way to prevent this compiler from
10918	# explicitly linking system object files so we need to strip them
10919	# from the output so that they don't get included in the library
10920	# dependencies.
10921	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10922	;;
10923      *)
10924	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10925	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10926	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10927
10928	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10929	  hardcode_libdir_separator_CXX=:
10930
10931	  # Commands to make compiler produce verbose output that lists
10932	  # what "hidden" libraries, object files and flags are used when
10933	  # linking a shared library.
10934	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10935
10936	else
10937	  # FIXME: insert proper C++ library support
10938	  ld_shlibs_CXX=no
10939	fi
10940	;;
10941    esac
10942    ;;
10943  osf4* | osf5*)
10944    case $cc_basename in
10945      KCC*)
10946	# Kuck and Associates, Inc. (KAI) C++ Compiler
10947
10948	# KCC will only create a shared library if the output file
10949	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10950	# to its proper name (with version) after linking.
10951	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10952
10953	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10954	hardcode_libdir_separator_CXX=:
10955
10956	# Archives containing C++ object files must be created using
10957	# the KAI C++ compiler.
10958	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10959	;;
10960      RCC*)
10961	# Rational C++ 2.4.1
10962	# FIXME: insert proper C++ library support
10963	ld_shlibs_CXX=no
10964	;;
10965      cxx*)
10966	allow_undefined_flag_CXX=' -expect_unresolved \*'
10967	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10968	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10969	  echo "-hidden">> $lib.exp~
10970	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10971	  $rm $lib.exp'
10972
10973	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10974	hardcode_libdir_separator_CXX=:
10975
10976	# Commands to make compiler produce verbose output that lists
10977	# what "hidden" libraries, object files and flags are used when
10978	# linking a shared library.
10979	#
10980	# There doesn't appear to be a way to prevent this compiler from
10981	# explicitly linking system object files so we need to strip them
10982	# from the output so that they don't get included in the library
10983	# dependencies.
10984	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10985	;;
10986      *)
10987	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10988	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10989	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10990
10991	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10992	  hardcode_libdir_separator_CXX=:
10993
10994	  # Commands to make compiler produce verbose output that lists
10995	  # what "hidden" libraries, object files and flags are used when
10996	  # linking a shared library.
10997	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10998
10999	else
11000	  # FIXME: insert proper C++ library support
11001	  ld_shlibs_CXX=no
11002	fi
11003	;;
11004    esac
11005    ;;
11006  psos*)
11007    # FIXME: insert proper C++ library support
11008    ld_shlibs_CXX=no
11009    ;;
11010  sco*)
11011    archive_cmds_need_lc_CXX=no
11012    case $cc_basename in
11013      CC*)
11014	# FIXME: insert proper C++ library support
11015	ld_shlibs_CXX=no
11016	;;
11017      *)
11018	# FIXME: insert proper C++ library support
11019	ld_shlibs_CXX=no
11020	;;
11021    esac
11022    ;;
11023  sunos4*)
11024    case $cc_basename in
11025      CC*)
11026	# Sun C++ 4.x
11027	# FIXME: insert proper C++ library support
11028	ld_shlibs_CXX=no
11029	;;
11030      lcc*)
11031	# Lucid
11032	# FIXME: insert proper C++ library support
11033	ld_shlibs_CXX=no
11034	;;
11035      *)
11036	# FIXME: insert proper C++ library support
11037	ld_shlibs_CXX=no
11038	;;
11039    esac
11040    ;;
11041  solaris*)
11042    case $cc_basename in
11043      CC*)
11044	# Sun C++ 4.2, 5.x and Centerline C++
11045        archive_cmds_need_lc_CXX=yes
11046	no_undefined_flag_CXX=' -zdefs'
11047	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11048	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11049	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11050
11051	hardcode_libdir_flag_spec_CXX='-R$libdir'
11052	hardcode_shlibpath_var_CXX=no
11053	case $host_os in
11054	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11055	  *)
11056	    # The C++ compiler is used as linker so we must use $wl
11057	    # flag to pass the commands to the underlying system
11058	    # linker. We must also pass each convience library through
11059	    # to the system linker between allextract/defaultextract.
11060	    # The C++ compiler will combine linker options so we
11061	    # cannot just pass the convience library names through
11062	    # without $wl.
11063	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11064	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11065	    ;;
11066	esac
11067	link_all_deplibs_CXX=yes
11068
11069	output_verbose_link_cmd='echo'
11070
11071	# Archives containing C++ object files must be created using
11072	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11073	# necessary to make sure instantiated templates are included
11074	# in the archive.
11075	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11076	;;
11077      gcx*)
11078	# Green Hills C++ Compiler
11079	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11080
11081	# The C++ compiler must be used to create the archive.
11082	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11083	;;
11084      *)
11085	# GNU C++ compiler with Solaris linker
11086	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11087	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11088	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11089	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11090	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11091		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11092
11093	    # Commands to make compiler produce verbose output that lists
11094	    # what "hidden" libraries, object files and flags are used when
11095	    # linking a shared library.
11096	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11097	  else
11098	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11099	    # platform.
11100	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11101	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11102		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11103
11104	    # Commands to make compiler produce verbose output that lists
11105	    # what "hidden" libraries, object files and flags are used when
11106	    # linking a shared library.
11107	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11108	  fi
11109
11110	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11111	fi
11112	;;
11113    esac
11114    ;;
11115  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11116    archive_cmds_need_lc_CXX=no
11117    ;;
11118  tandem*)
11119    case $cc_basename in
11120      NCC*)
11121	# NonStop-UX NCC 3.20
11122	# FIXME: insert proper C++ library support
11123	ld_shlibs_CXX=no
11124	;;
11125      *)
11126	# FIXME: insert proper C++ library support
11127	ld_shlibs_CXX=no
11128	;;
11129    esac
11130    ;;
11131  vxworks*)
11132    # FIXME: insert proper C++ library support
11133    ld_shlibs_CXX=no
11134    ;;
11135  *)
11136    # FIXME: insert proper C++ library support
11137    ld_shlibs_CXX=no
11138    ;;
11139esac
11140echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11141echo "${ECHO_T}$ld_shlibs_CXX" >&6
11142test "$ld_shlibs_CXX" = no && can_build_shared=no
11143
11144GCC_CXX="$GXX"
11145LD_CXX="$LD"
11146
11147
11148cat > conftest.$ac_ext <<EOF
11149class Foo
11150{
11151public:
11152  Foo (void) { a = 0; }
11153private:
11154  int a;
11155};
11156EOF
11157
11158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159  (eval $ac_compile) 2>&5
11160  ac_status=$?
11161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162  (exit $ac_status); }; then
11163  # Parse the compiler output and extract the necessary
11164  # objects, libraries and library flags.
11165
11166  # Sentinel used to keep track of whether or not we are before
11167  # the conftest object file.
11168  pre_test_object_deps_done=no
11169
11170  # The `*' in the case matches for architectures that use `case' in
11171  # $output_verbose_cmd can trigger glob expansion during the loop
11172  # eval without this substitution.
11173  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11174
11175  for p in `eval $output_verbose_link_cmd`; do
11176    case $p in
11177
11178    -L* | -R* | -l*)
11179       # Some compilers place space between "-{L,R}" and the path.
11180       # Remove the space.
11181       if test $p = "-L" \
11182	  || test $p = "-R"; then
11183	 prev=$p
11184	 continue
11185       else
11186	 prev=
11187       fi
11188
11189       if test "$pre_test_object_deps_done" = no; then
11190	 case $p in
11191	 -L* | -R*)
11192	   # Internal compiler library paths should come after those
11193	   # provided the user.  The postdeps already come after the
11194	   # user supplied libs so there is no need to process them.
11195	   if test -z "$compiler_lib_search_path_CXX"; then
11196	     compiler_lib_search_path_CXX="${prev}${p}"
11197	   else
11198	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11199	   fi
11200	   ;;
11201	 # The "-l" case would never come before the object being
11202	 # linked, so don't bother handling this case.
11203	 esac
11204       else
11205	 if test -z "$postdeps_CXX"; then
11206	   postdeps_CXX="${prev}${p}"
11207	 else
11208	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11209	 fi
11210       fi
11211       ;;
11212
11213    *.$objext)
11214       # This assumes that the test object file only shows up
11215       # once in the compiler output.
11216       if test "$p" = "conftest.$objext"; then
11217	 pre_test_object_deps_done=yes
11218	 continue
11219       fi
11220
11221       if test "$pre_test_object_deps_done" = no; then
11222	 if test -z "$predep_objects_CXX"; then
11223	   predep_objects_CXX="$p"
11224	 else
11225	   predep_objects_CXX="$predep_objects_CXX $p"
11226	 fi
11227       else
11228	 if test -z "$postdep_objects_CXX"; then
11229	   postdep_objects_CXX="$p"
11230	 else
11231	   postdep_objects_CXX="$postdep_objects_CXX $p"
11232	 fi
11233       fi
11234       ;;
11235
11236    *) ;; # Ignore the rest.
11237
11238    esac
11239  done
11240
11241  # Clean up.
11242  rm -f a.out a.exe
11243else
11244  echo "libtool.m4: error: problem compiling CXX test program"
11245fi
11246
11247$rm -f confest.$objext
11248
11249# PORTME: override above test on systems where it is broken
11250case $host_os in
11251solaris*)
11252  case $cc_basename in
11253  CC*)
11254    # Adding this requires a known-good setup of shared libraries for
11255    # Sun compiler versions before 5.6, else PIC objects from an old
11256    # archive will be linked into the output, leading to subtle bugs.
11257    postdeps_CXX='-lCstd -lCrun'
11258    ;;
11259  esac
11260esac
11261
11262
11263case " $postdeps_CXX " in
11264*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11265esac
11266
11267lt_prog_compiler_wl_CXX=
11268lt_prog_compiler_pic_CXX=
11269lt_prog_compiler_static_CXX=
11270
11271echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11272echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11273
11274  # C++ specific cases for pic, static, wl, etc.
11275  if test "$GXX" = yes; then
11276    lt_prog_compiler_wl_CXX='-Wl,'
11277    lt_prog_compiler_static_CXX='-static'
11278
11279    case $host_os in
11280    aix*)
11281      # All AIX code is PIC.
11282      if test "$host_cpu" = ia64; then
11283	# AIX 5 now supports IA64 processor
11284	lt_prog_compiler_static_CXX='-Bstatic'
11285      fi
11286      ;;
11287    amigaos*)
11288      # FIXME: we need at least 68020 code to build shared libraries, but
11289      # adding the `-m68020' flag to GCC prevents building anything better,
11290      # like `-m68040'.
11291      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11292      ;;
11293    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11294      # PIC is the default for these OSes.
11295      ;;
11296    mingw* | os2* | pw32*)
11297      # This hack is so that the source file can tell whether it is being
11298      # built for inclusion in a dll (and should export symbols for example).
11299      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11300      ;;
11301    darwin* | rhapsody*)
11302      # PIC is the default on this platform
11303      # Common symbols not allowed in MH_DYLIB files
11304      lt_prog_compiler_pic_CXX='-fno-common'
11305      ;;
11306    *djgpp*)
11307      # DJGPP does not support shared libraries at all
11308      lt_prog_compiler_pic_CXX=
11309      ;;
11310    sysv4*MP*)
11311      if test -d /usr/nec; then
11312	lt_prog_compiler_pic_CXX=-Kconform_pic
11313      fi
11314      ;;
11315    hpux*)
11316      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11317      # not for PA HP-UX.
11318      case $host_cpu in
11319      hppa*64*|ia64*)
11320	;;
11321      *)
11322	lt_prog_compiler_pic_CXX='-fPIC'
11323	;;
11324      esac
11325      ;;
11326    *)
11327      lt_prog_compiler_pic_CXX='-fPIC'
11328      ;;
11329    esac
11330  else
11331    case $host_os in
11332      aix4* | aix5*)
11333	# All AIX code is PIC.
11334	if test "$host_cpu" = ia64; then
11335	  # AIX 5 now supports IA64 processor
11336	  lt_prog_compiler_static_CXX='-Bstatic'
11337	else
11338	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11339	fi
11340	;;
11341      chorus*)
11342	case $cc_basename in
11343	cxch68*)
11344	  # Green Hills C++ Compiler
11345	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11346	  ;;
11347	esac
11348	;;
11349       darwin*)
11350         # PIC is the default on this platform
11351         # Common symbols not allowed in MH_DYLIB files
11352         case $cc_basename in
11353           xlc*)
11354           lt_prog_compiler_pic_CXX='-qnocommon'
11355           lt_prog_compiler_wl_CXX='-Wl,'
11356           ;;
11357         esac
11358       ;;
11359      dgux*)
11360	case $cc_basename in
11361	  ec++*)
11362	    lt_prog_compiler_pic_CXX='-KPIC'
11363	    ;;
11364	  ghcx*)
11365	    # Green Hills C++ Compiler
11366	    lt_prog_compiler_pic_CXX='-pic'
11367	    ;;
11368	  *)
11369	    ;;
11370	esac
11371	;;
11372      freebsd* | kfreebsd*-gnu | dragonfly*)
11373	# FreeBSD uses GNU C++
11374	;;
11375      hpux9* | hpux10* | hpux11*)
11376	case $cc_basename in
11377	  CC*)
11378	    lt_prog_compiler_wl_CXX='-Wl,'
11379	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11380	    if test "$host_cpu" != ia64; then
11381	      lt_prog_compiler_pic_CXX='+Z'
11382	    fi
11383	    ;;
11384	  aCC*)
11385	    lt_prog_compiler_wl_CXX='-Wl,'
11386	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11387	    case $host_cpu in
11388	    hppa*64*|ia64*)
11389	      # +Z the default
11390	      ;;
11391	    *)
11392	      lt_prog_compiler_pic_CXX='+Z'
11393	      ;;
11394	    esac
11395	    ;;
11396	  *)
11397	    ;;
11398	esac
11399	;;
11400      irix5* | irix6* | nonstopux*)
11401	case $cc_basename in
11402	  CC*)
11403	    lt_prog_compiler_wl_CXX='-Wl,'
11404	    lt_prog_compiler_static_CXX='-non_shared'
11405	    # CC pic flag -KPIC is the default.
11406	    ;;
11407	  *)
11408	    ;;
11409	esac
11410	;;
11411      linux*)
11412	case $cc_basename in
11413	  KCC*)
11414	    # KAI C++ Compiler
11415	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11416	    lt_prog_compiler_pic_CXX='-fPIC'
11417	    ;;
11418	  icpc* | ecpc*)
11419	    # Intel C++
11420	    lt_prog_compiler_wl_CXX='-Wl,'
11421	    lt_prog_compiler_pic_CXX='-KPIC'
11422	    lt_prog_compiler_static_CXX='-static'
11423	    ;;
11424	  pgCC*)
11425	    # Portland Group C++ compiler.
11426	    lt_prog_compiler_wl_CXX='-Wl,'
11427	    lt_prog_compiler_pic_CXX='-fpic'
11428	    lt_prog_compiler_static_CXX='-Bstatic'
11429	    ;;
11430	  cxx*)
11431	    # Compaq C++
11432	    # Make sure the PIC flag is empty.  It appears that all Alpha
11433	    # Linux and Compaq Tru64 Unix objects are PIC.
11434	    lt_prog_compiler_pic_CXX=
11435	    lt_prog_compiler_static_CXX='-non_shared'
11436	    ;;
11437	  *)
11438	    ;;
11439	esac
11440	;;
11441      lynxos*)
11442	;;
11443      m88k*)
11444	;;
11445      mvs*)
11446	case $cc_basename in
11447	  cxx*)
11448	    lt_prog_compiler_pic_CXX='-W c,exportall'
11449	    ;;
11450	  *)
11451	    ;;
11452	esac
11453	;;
11454      netbsd*)
11455	;;
11456      osf3* | osf4* | osf5*)
11457	case $cc_basename in
11458	  KCC*)
11459	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11460	    ;;
11461	  RCC*)
11462	    # Rational C++ 2.4.1
11463	    lt_prog_compiler_pic_CXX='-pic'
11464	    ;;
11465	  cxx*)
11466	    # Digital/Compaq C++
11467	    lt_prog_compiler_wl_CXX='-Wl,'
11468	    # Make sure the PIC flag is empty.  It appears that all Alpha
11469	    # Linux and Compaq Tru64 Unix objects are PIC.
11470	    lt_prog_compiler_pic_CXX=
11471	    lt_prog_compiler_static_CXX='-non_shared'
11472	    ;;
11473	  *)
11474	    ;;
11475	esac
11476	;;
11477      psos*)
11478	;;
11479      sco*)
11480	case $cc_basename in
11481	  CC*)
11482	    lt_prog_compiler_pic_CXX='-fPIC'
11483	    ;;
11484	  *)
11485	    ;;
11486	esac
11487	;;
11488      solaris*)
11489	case $cc_basename in
11490	  CC*)
11491	    # Sun C++ 4.2, 5.x and Centerline C++
11492	    lt_prog_compiler_pic_CXX='-KPIC'
11493	    lt_prog_compiler_static_CXX='-Bstatic'
11494	    lt_prog_compiler_wl_CXX='-Qoption ld '
11495	    ;;
11496	  gcx*)
11497	    # Green Hills C++ Compiler
11498	    lt_prog_compiler_pic_CXX='-PIC'
11499	    ;;
11500	  *)
11501	    ;;
11502	esac
11503	;;
11504      sunos4*)
11505	case $cc_basename in
11506	  CC*)
11507	    # Sun C++ 4.x
11508	    lt_prog_compiler_pic_CXX='-pic'
11509	    lt_prog_compiler_static_CXX='-Bstatic'
11510	    ;;
11511	  lcc*)
11512	    # Lucid
11513	    lt_prog_compiler_pic_CXX='-pic'
11514	    ;;
11515	  *)
11516	    ;;
11517	esac
11518	;;
11519      tandem*)
11520	case $cc_basename in
11521	  NCC*)
11522	    # NonStop-UX NCC 3.20
11523	    lt_prog_compiler_pic_CXX='-KPIC'
11524	    ;;
11525	  *)
11526	    ;;
11527	esac
11528	;;
11529      unixware*)
11530	;;
11531      vxworks*)
11532	;;
11533      *)
11534	lt_prog_compiler_can_build_shared_CXX=no
11535	;;
11536    esac
11537  fi
11538
11539echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11540echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11541
11542#
11543# Check to make sure the PIC flag actually works.
11544#
11545if test -n "$lt_prog_compiler_pic_CXX"; then
11546
11547echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11548echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11549if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11550  echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552  lt_prog_compiler_pic_works_CXX=no
11553  ac_outfile=conftest.$ac_objext
11554   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11555   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11556   # Insert the option either (1) after the last *FLAGS variable, or
11557   # (2) before a word containing "conftest.", or (3) at the end.
11558   # Note that $ac_compile itself does not contain backslashes and begins
11559   # with a dollar sign (not a hyphen), so the echo should work correctly.
11560   # The option is referenced via a variable to avoid confusing sed.
11561   lt_compile=`echo "$ac_compile" | $SED \
11562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11564   -e 's:$: $lt_compiler_flag:'`
11565   (eval echo "\"\$as_me:11565: $lt_compile\"" >&5)
11566   (eval "$lt_compile" 2>conftest.err)
11567   ac_status=$?
11568   cat conftest.err >&5
11569   echo "$as_me:11569: \$? = $ac_status" >&5
11570   if (exit $ac_status) && test -s "$ac_outfile"; then
11571     # The compiler can only warn and ignore the option if not recognized
11572     # So say no if there are warnings other than the usual output.
11573     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11574     $SED '/^$/d' conftest.err >conftest.er2
11575     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11576       lt_prog_compiler_pic_works_CXX=yes
11577     fi
11578   fi
11579   $rm conftest*
11580
11581fi
11582echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11583echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11584
11585if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11586    case $lt_prog_compiler_pic_CXX in
11587     "" | " "*) ;;
11588     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11589     esac
11590else
11591    lt_prog_compiler_pic_CXX=
11592     lt_prog_compiler_can_build_shared_CXX=no
11593fi
11594
11595fi
11596case $host_os in
11597  # For platforms which do not support PIC, -DPIC is meaningless:
11598  *djgpp*)
11599    lt_prog_compiler_pic_CXX=
11600    ;;
11601  *)
11602    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11603    ;;
11604esac
11605
11606echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11607echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11608if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11609  echo $ECHO_N "(cached) $ECHO_C" >&6
11610else
11611  lt_cv_prog_compiler_c_o_CXX=no
11612   $rm -r conftest 2>/dev/null
11613   mkdir conftest
11614   cd conftest
11615   mkdir out
11616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11617
11618   lt_compiler_flag="-o out/conftest2.$ac_objext"
11619   # Insert the option either (1) after the last *FLAGS variable, or
11620   # (2) before a word containing "conftest.", or (3) at the end.
11621   # Note that $ac_compile itself does not contain backslashes and begins
11622   # with a dollar sign (not a hyphen), so the echo should work correctly.
11623   lt_compile=`echo "$ac_compile" | $SED \
11624   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11626   -e 's:$: $lt_compiler_flag:'`
11627   (eval echo "\"\$as_me:11627: $lt_compile\"" >&5)
11628   (eval "$lt_compile" 2>out/conftest.err)
11629   ac_status=$?
11630   cat out/conftest.err >&5
11631   echo "$as_me:11631: \$? = $ac_status" >&5
11632   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11633   then
11634     # The compiler can only warn and ignore the option if not recognized
11635     # So say no if there are warnings
11636     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11637     $SED '/^$/d' out/conftest.err >out/conftest.er2
11638     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11639       lt_cv_prog_compiler_c_o_CXX=yes
11640     fi
11641   fi
11642   chmod u+w . 2>&5
11643   $rm conftest*
11644   # SGI C++ compiler will create directory out/ii_files/ for
11645   # template instantiation
11646   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11647   $rm out/* && rmdir out
11648   cd ..
11649   rmdir conftest
11650   $rm conftest*
11651
11652fi
11653echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11655
11656
11657hard_links="nottested"
11658if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11659  # do not overwrite the value of need_locks provided by the user
11660  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11662  hard_links=yes
11663  $rm conftest*
11664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665  touch conftest.a
11666  ln conftest.a conftest.b 2>&5 || hard_links=no
11667  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11668  echo "$as_me:$LINENO: result: $hard_links" >&5
11669echo "${ECHO_T}$hard_links" >&6
11670  if test "$hard_links" = no; then
11671    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11673    need_locks=warn
11674  fi
11675else
11676  need_locks=no
11677fi
11678
11679echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11681
11682  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11683  case $host_os in
11684  aix4* | aix5*)
11685    # If we're using GNU nm, then we don't want the "-C" option.
11686    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11687    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11688      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11689    else
11690      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11691    fi
11692    ;;
11693  pw32*)
11694    export_symbols_cmds_CXX="$ltdll_cmds"
11695  ;;
11696  cygwin* | mingw*)
11697    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11698  ;;
11699  *)
11700    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11701  ;;
11702  esac
11703
11704echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11705echo "${ECHO_T}$ld_shlibs_CXX" >&6
11706test "$ld_shlibs_CXX" = no && can_build_shared=no
11707
11708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11709if test "$GCC" = yes; then
11710  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711fi
11712
11713#
11714# Do we need to explicitly link libc?
11715#
11716case "x$archive_cmds_need_lc_CXX" in
11717x|xyes)
11718  # Assume -lc should be added
11719  archive_cmds_need_lc_CXX=yes
11720
11721  if test "$enable_shared" = yes && test "$GCC" = yes; then
11722    case $archive_cmds_CXX in
11723    *'~'*)
11724      # FIXME: we may have to deal with multi-command sequences.
11725      ;;
11726    '$CC '*)
11727      # Test whether the compiler implicitly links with -lc since on some
11728      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11729      # to ld, don't add -lc before -lgcc.
11730      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11731echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11732      $rm conftest*
11733      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11734
11735      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736  (eval $ac_compile) 2>&5
11737  ac_status=$?
11738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); } 2>conftest.err; then
11740        soname=conftest
11741        lib=conftest
11742        libobjs=conftest.$ac_objext
11743        deplibs=
11744        wl=$lt_prog_compiler_wl_CXX
11745        compiler_flags=-v
11746        linker_flags=-v
11747        verstring=
11748        output_objdir=.
11749        libname=conftest
11750        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11751        allow_undefined_flag_CXX=
11752        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11753  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11754  ac_status=$?
11755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756  (exit $ac_status); }
11757        then
11758	  archive_cmds_need_lc_CXX=no
11759        else
11760	  archive_cmds_need_lc_CXX=yes
11761        fi
11762        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11763      else
11764        cat conftest.err 1>&5
11765      fi
11766      $rm conftest*
11767      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11768echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11769      ;;
11770    esac
11771  fi
11772  ;;
11773esac
11774
11775echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11776echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11777library_names_spec=
11778libname_spec='lib$name'
11779soname_spec=
11780shrext_cmds=".so"
11781postinstall_cmds=
11782postuninstall_cmds=
11783finish_cmds=
11784finish_eval=
11785shlibpath_var=
11786shlibpath_overrides_runpath=unknown
11787version_type=none
11788dynamic_linker="$host_os ld.so"
11789sys_lib_dlsearch_path_spec="/lib /usr/lib"
11790if test "$GCC" = yes; then
11791  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11792  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11793    # if the path contains ";" then we assume it to be the separator
11794    # otherwise default to the standard path separator (i.e. ":") - it is
11795    # assumed that no part of a normal pathname contains ";" but that should
11796    # okay in the real world where ";" in dirpaths is itself problematic.
11797    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11798  else
11799    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11800  fi
11801else
11802  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11803fi
11804need_lib_prefix=unknown
11805hardcode_into_libs=no
11806
11807# when you set need_version to no, make sure it does not cause -set_version
11808# flags to be left without arguments
11809need_version=unknown
11810
11811case $host_os in
11812aix3*)
11813  version_type=linux
11814  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11815  shlibpath_var=LIBPATH
11816
11817  # AIX 3 has no versioning support, so we append a major version to the name.
11818  soname_spec='${libname}${release}${shared_ext}$major'
11819  ;;
11820
11821aix4* | aix5*)
11822  version_type=linux
11823  need_lib_prefix=no
11824  need_version=no
11825  hardcode_into_libs=yes
11826  if test "$host_cpu" = ia64; then
11827    # AIX 5 supports IA64
11828    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11829    shlibpath_var=LD_LIBRARY_PATH
11830  else
11831    # With GCC up to 2.95.x, collect2 would create an import file
11832    # for dependence libraries.  The import file would start with
11833    # the line `#! .'.  This would cause the generated library to
11834    # depend on `.', always an invalid library.  This was fixed in
11835    # development snapshots of GCC prior to 3.0.
11836    case $host_os in
11837      aix4 | aix4.[01] | aix4.[01].*)
11838      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11839	   echo ' yes '
11840	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11841	:
11842      else
11843	can_build_shared=no
11844      fi
11845      ;;
11846    esac
11847    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11848    # soname into executable. Probably we can add versioning support to
11849    # collect2, so additional links can be useful in future.
11850    if test "$aix_use_runtimelinking" = yes; then
11851      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11852      # instead of lib<name>.a to let people know that these are not
11853      # typical AIX shared libraries.
11854      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11855    else
11856      # We preserve .a as extension for shared libraries through AIX4.2
11857      # and later when we are not doing run time linking.
11858      library_names_spec='${libname}${release}.a $libname.a'
11859      soname_spec='${libname}${release}${shared_ext}$major'
11860    fi
11861    shlibpath_var=LIBPATH
11862  fi
11863  ;;
11864
11865amigaos*)
11866  library_names_spec='$libname.ixlibrary $libname.a'
11867  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11868  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11869  ;;
11870
11871beos*)
11872  library_names_spec='${libname}${shared_ext}'
11873  dynamic_linker="$host_os ld.so"
11874  shlibpath_var=LIBRARY_PATH
11875  ;;
11876
11877bsdi[45]*)
11878  version_type=linux
11879  need_version=no
11880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881  soname_spec='${libname}${release}${shared_ext}$major'
11882  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11883  shlibpath_var=LD_LIBRARY_PATH
11884  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11885  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11886  # the default ld.so.conf also contains /usr/contrib/lib and
11887  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11888  # libtool to hard-code these into programs
11889  ;;
11890
11891cygwin* | mingw* | pw32*)
11892  version_type=windows
11893  shrext_cmds=".dll"
11894  need_version=no
11895  need_lib_prefix=no
11896
11897  case $GCC,$host_os in
11898  yes,cygwin* | yes,mingw* | yes,pw32*)
11899    library_names_spec='$libname.dll.a'
11900    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11901    postinstall_cmds='base_file=`basename \${file}`~
11902      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11903      dldir=$destdir/`dirname \$dlpath`~
11904      test -d \$dldir || mkdir -p \$dldir~
11905      $install_prog $dir/$dlname \$dldir/$dlname~
11906      chmod a+x \$dldir/$dlname'
11907    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11908      dlpath=$dir/\$dldll~
11909       $rm \$dlpath'
11910    shlibpath_overrides_runpath=yes
11911
11912    case $host_os in
11913    cygwin*)
11914      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11915      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11917      ;;
11918    mingw*)
11919      # MinGW DLLs use traditional 'lib' prefix
11920      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11921      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11922      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11923        # It is most probably a Windows format PATH printed by
11924        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11925        # path with ; separators, and with drive letters. We can handle the
11926        # drive letters (cygwin fileutils understands them), so leave them,
11927        # especially as we might pass files found there to a mingw objdump,
11928        # which wouldn't understand a cygwinified path. Ahh.
11929        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11930      else
11931        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11932      fi
11933      ;;
11934    pw32*)
11935      # pw32 DLLs use 'pw' prefix rather than 'lib'
11936      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11937      ;;
11938    esac
11939    ;;
11940
11941  *)
11942    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11943    ;;
11944  esac
11945  dynamic_linker='Win32 ld.exe'
11946  # FIXME: first we should search . and the directory the executable is in
11947  shlibpath_var=PATH
11948  ;;
11949
11950darwin* | rhapsody*)
11951  dynamic_linker="$host_os dyld"
11952  version_type=darwin
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11956  soname_spec='${libname}${release}${major}$shared_ext'
11957  shlibpath_overrides_runpath=yes
11958  shlibpath_var=DYLD_LIBRARY_PATH
11959  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11960  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11961  if test "$GCC" = yes; then
11962    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11963  else
11964    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11965  fi
11966  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11967  ;;
11968
11969dgux*)
11970  version_type=linux
11971  need_lib_prefix=no
11972  need_version=no
11973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11974  soname_spec='${libname}${release}${shared_ext}$major'
11975  shlibpath_var=LD_LIBRARY_PATH
11976  ;;
11977
11978freebsd1*)
11979  dynamic_linker=no
11980  ;;
11981
11982kfreebsd*-gnu)
11983  version_type=linux
11984  need_lib_prefix=no
11985  need_version=no
11986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11987  soname_spec='${libname}${release}${shared_ext}$major'
11988  shlibpath_var=LD_LIBRARY_PATH
11989  shlibpath_overrides_runpath=no
11990  hardcode_into_libs=yes
11991  dynamic_linker='GNU ld.so'
11992  ;;
11993
11994freebsd* | dragonfly*)
11995  # DragonFly does not have aout.  When/if they implement a new
11996  # versioning mechanism, adjust this.
11997  if test -x /usr/bin/objformat; then
11998    objformat=`/usr/bin/objformat`
11999  else
12000    case $host_os in
12001    freebsd[123]*) objformat=aout ;;
12002    *) objformat=elf ;;
12003    esac
12004  fi
12005  version_type=freebsd-$objformat
12006  case $version_type in
12007    freebsd-elf*)
12008      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12009      need_version=no
12010      need_lib_prefix=no
12011      ;;
12012    freebsd-*)
12013      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12014      need_version=yes
12015      ;;
12016  esac
12017  shlibpath_var=LD_LIBRARY_PATH
12018  case $host_os in
12019  freebsd2*)
12020    shlibpath_overrides_runpath=yes
12021    ;;
12022  freebsd3.[01]* | freebsdelf3.[01]*)
12023    shlibpath_overrides_runpath=yes
12024    hardcode_into_libs=yes
12025    ;;
12026  *) # from 3.2 on
12027    shlibpath_overrides_runpath=no
12028    hardcode_into_libs=yes
12029    ;;
12030  esac
12031  ;;
12032
12033gnu*)
12034  version_type=linux
12035  need_lib_prefix=no
12036  need_version=no
12037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12038  soname_spec='${libname}${release}${shared_ext}$major'
12039  shlibpath_var=LD_LIBRARY_PATH
12040  hardcode_into_libs=yes
12041  ;;
12042
12043hpux9* | hpux10* | hpux11*)
12044  # Give a soname corresponding to the major version so that dld.sl refuses to
12045  # link against other versions.
12046  version_type=sunos
12047  need_lib_prefix=no
12048  need_version=no
12049  case $host_cpu in
12050  ia64*)
12051    shrext_cmds='.so'
12052    hardcode_into_libs=yes
12053    dynamic_linker="$host_os dld.so"
12054    shlibpath_var=LD_LIBRARY_PATH
12055    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057    soname_spec='${libname}${release}${shared_ext}$major'
12058    if test "X$HPUX_IA64_MODE" = X32; then
12059      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12060    else
12061      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12062    fi
12063    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064    ;;
12065   hppa*64*)
12066     shrext_cmds='.sl'
12067     hardcode_into_libs=yes
12068     dynamic_linker="$host_os dld.sl"
12069     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072     soname_spec='${libname}${release}${shared_ext}$major'
12073     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12074     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12075     ;;
12076   *)
12077    shrext_cmds='.sl'
12078    dynamic_linker="$host_os dld.sl"
12079    shlibpath_var=SHLIB_PATH
12080    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082    soname_spec='${libname}${release}${shared_ext}$major'
12083    ;;
12084  esac
12085  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12086  postinstall_cmds='chmod 555 $lib'
12087  ;;
12088
12089irix5* | irix6* | nonstopux*)
12090  case $host_os in
12091    nonstopux*) version_type=nonstopux ;;
12092    *)
12093	if test "$lt_cv_prog_gnu_ld" = yes; then
12094		version_type=linux
12095	else
12096		version_type=irix
12097	fi ;;
12098  esac
12099  need_lib_prefix=no
12100  need_version=no
12101  soname_spec='${libname}${release}${shared_ext}$major'
12102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12103  case $host_os in
12104  irix5* | nonstopux*)
12105    libsuff= shlibsuff=
12106    ;;
12107  *)
12108    case $LD in # libtool.m4 will add one of these switches to LD
12109    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12110      libsuff= shlibsuff= libmagic=32-bit;;
12111    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12112      libsuff=32 shlibsuff=N32 libmagic=N32;;
12113    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12114      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12115    *) libsuff= shlibsuff= libmagic=never-match;;
12116    esac
12117    ;;
12118  esac
12119  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12120  shlibpath_overrides_runpath=no
12121  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12122  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12123  hardcode_into_libs=yes
12124  ;;
12125
12126# No shared lib support for Linux oldld, aout, or coff.
12127linux*oldld* | linux*aout* | linux*coff*)
12128  dynamic_linker=no
12129  ;;
12130
12131# This must be Linux ELF.
12132linux*)
12133  version_type=linux
12134  need_lib_prefix=no
12135  need_version=no
12136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137  soname_spec='${libname}${release}${shared_ext}$major'
12138  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12139  shlibpath_var=LD_LIBRARY_PATH
12140  shlibpath_overrides_runpath=no
12141  # This implies no fast_install, which is unacceptable.
12142  # Some rework will be needed to allow for fast_install
12143  # before this can be enabled.
12144  hardcode_into_libs=yes
12145
12146  # Append ld.so.conf contents to the search path
12147  if test -f /etc/ld.so.conf; then
12148    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12149    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12150  fi
12151
12152  # We used to test for /lib/ld.so.1 and disable shared libraries on
12153  # powerpc, because MkLinux only supported shared libraries with the
12154  # GNU dynamic linker.  Since this was broken with cross compilers,
12155  # most powerpc-linux boxes support dynamic linking these days and
12156  # people can always --disable-shared, the test was removed, and we
12157  # assume the GNU/Linux dynamic linker is in use.
12158  dynamic_linker='GNU/Linux ld.so'
12159  ;;
12160
12161knetbsd*-gnu)
12162  version_type=linux
12163  need_lib_prefix=no
12164  need_version=no
12165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12166  soname_spec='${libname}${release}${shared_ext}$major'
12167  shlibpath_var=LD_LIBRARY_PATH
12168  shlibpath_overrides_runpath=no
12169  hardcode_into_libs=yes
12170  dynamic_linker='GNU ld.so'
12171  ;;
12172
12173netbsd*)
12174  version_type=sunos
12175  need_lib_prefix=no
12176  need_version=no
12177  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12179    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12180    dynamic_linker='NetBSD (a.out) ld.so'
12181  else
12182    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12183    soname_spec='${libname}${release}${shared_ext}$major'
12184    dynamic_linker='NetBSD ld.elf_so'
12185  fi
12186  shlibpath_var=LD_LIBRARY_PATH
12187  shlibpath_overrides_runpath=yes
12188  hardcode_into_libs=yes
12189  ;;
12190
12191newsos6)
12192  version_type=linux
12193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194  shlibpath_var=LD_LIBRARY_PATH
12195  shlibpath_overrides_runpath=yes
12196  ;;
12197
12198nto-qnx*)
12199  version_type=linux
12200  need_lib_prefix=no
12201  need_version=no
12202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12203  soname_spec='${libname}${release}${shared_ext}$major'
12204  shlibpath_var=LD_LIBRARY_PATH
12205  shlibpath_overrides_runpath=yes
12206  ;;
12207
12208openbsd*)
12209  version_type=sunos
12210  need_lib_prefix=no
12211  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12212  case $host_os in
12213    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12214    *)                         need_version=no  ;;
12215  esac
12216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12217  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12218  shlibpath_var=LD_LIBRARY_PATH
12219  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12220    case $host_os in
12221      openbsd2.[89] | openbsd2.[89].*)
12222	shlibpath_overrides_runpath=no
12223	;;
12224      *)
12225	shlibpath_overrides_runpath=yes
12226	;;
12227      esac
12228  else
12229    shlibpath_overrides_runpath=yes
12230  fi
12231  ;;
12232
12233os2*)
12234  libname_spec='$name'
12235  shrext_cmds=".dll"
12236  need_lib_prefix=no
12237  library_names_spec='$libname${shared_ext} $libname.a'
12238  dynamic_linker='OS/2 ld.exe'
12239  shlibpath_var=LIBPATH
12240  ;;
12241
12242osf3* | osf4* | osf5*)
12243  version_type=osf
12244  need_lib_prefix=no
12245  need_version=no
12246  soname_spec='${libname}${release}${shared_ext}$major'
12247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248  shlibpath_var=LD_LIBRARY_PATH
12249  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12250  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12251  ;;
12252
12253sco3.2v5*)
12254  version_type=osf
12255  soname_spec='${libname}${release}${shared_ext}$major'
12256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257  shlibpath_var=LD_LIBRARY_PATH
12258  ;;
12259
12260solaris*)
12261  version_type=linux
12262  need_lib_prefix=no
12263  need_version=no
12264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265  soname_spec='${libname}${release}${shared_ext}$major'
12266  shlibpath_var=LD_LIBRARY_PATH
12267  shlibpath_overrides_runpath=yes
12268  hardcode_into_libs=yes
12269  # ldd complains unless libraries are executable
12270  postinstall_cmds='chmod +x $lib'
12271  ;;
12272
12273sunos4*)
12274  version_type=sunos
12275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12276  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12277  shlibpath_var=LD_LIBRARY_PATH
12278  shlibpath_overrides_runpath=yes
12279  if test "$with_gnu_ld" = yes; then
12280    need_lib_prefix=no
12281  fi
12282  need_version=yes
12283  ;;
12284
12285sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12286  version_type=linux
12287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288  soname_spec='${libname}${release}${shared_ext}$major'
12289  shlibpath_var=LD_LIBRARY_PATH
12290  case $host_vendor in
12291    sni)
12292      shlibpath_overrides_runpath=no
12293      need_lib_prefix=no
12294      export_dynamic_flag_spec='${wl}-Blargedynsym'
12295      runpath_var=LD_RUN_PATH
12296      ;;
12297    siemens)
12298      need_lib_prefix=no
12299      ;;
12300    motorola)
12301      need_lib_prefix=no
12302      need_version=no
12303      shlibpath_overrides_runpath=no
12304      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12305      ;;
12306  esac
12307  ;;
12308
12309sysv4*MP*)
12310  if test -d /usr/nec ;then
12311    version_type=linux
12312    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12313    soname_spec='$libname${shared_ext}.$major'
12314    shlibpath_var=LD_LIBRARY_PATH
12315  fi
12316  ;;
12317
12318uts4*)
12319  version_type=linux
12320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321  soname_spec='${libname}${release}${shared_ext}$major'
12322  shlibpath_var=LD_LIBRARY_PATH
12323  ;;
12324
12325*)
12326  dynamic_linker=no
12327  ;;
12328esac
12329echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12330echo "${ECHO_T}$dynamic_linker" >&6
12331test "$dynamic_linker" = no && can_build_shared=no
12332
12333echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12334echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12335hardcode_action_CXX=
12336if test -n "$hardcode_libdir_flag_spec_CXX" || \
12337   test -n "$runpath_var_CXX" || \
12338   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12339
12340  # We can hardcode non-existant directories.
12341  if test "$hardcode_direct_CXX" != no &&
12342     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12343     # have to relink, otherwise we might link with an installed library
12344     # when we should be linking with a yet-to-be-installed one
12345     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12346     test "$hardcode_minus_L_CXX" != no; then
12347    # Linking always hardcodes the temporary library directory.
12348    hardcode_action_CXX=relink
12349  else
12350    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12351    hardcode_action_CXX=immediate
12352  fi
12353else
12354  # We cannot hardcode anything, or else we can only hardcode existing
12355  # directories.
12356  hardcode_action_CXX=unsupported
12357fi
12358echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12359echo "${ECHO_T}$hardcode_action_CXX" >&6
12360
12361if test "$hardcode_action_CXX" = relink; then
12362  # Fast installation is not supported
12363  enable_fast_install=no
12364elif test "$shlibpath_overrides_runpath" = yes ||
12365     test "$enable_shared" = no; then
12366  # Fast installation is not necessary
12367  enable_fast_install=needless
12368fi
12369
12370striplib=
12371old_striplib=
12372echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12373echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12374if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12375  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12376  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12377  echo "$as_me:$LINENO: result: yes" >&5
12378echo "${ECHO_T}yes" >&6
12379else
12380# FIXME - insert some real tests, host_os isn't really good enough
12381  case $host_os in
12382   darwin*)
12383       if test -n "$STRIP" ; then
12384         striplib="$STRIP -x"
12385         echo "$as_me:$LINENO: result: yes" >&5
12386echo "${ECHO_T}yes" >&6
12387       else
12388  echo "$as_me:$LINENO: result: no" >&5
12389echo "${ECHO_T}no" >&6
12390fi
12391       ;;
12392   *)
12393  echo "$as_me:$LINENO: result: no" >&5
12394echo "${ECHO_T}no" >&6
12395    ;;
12396  esac
12397fi
12398
12399if test "x$enable_dlopen" != xyes; then
12400  enable_dlopen=unknown
12401  enable_dlopen_self=unknown
12402  enable_dlopen_self_static=unknown
12403else
12404  lt_cv_dlopen=no
12405  lt_cv_dlopen_libs=
12406
12407  case $host_os in
12408  beos*)
12409    lt_cv_dlopen="load_add_on"
12410    lt_cv_dlopen_libs=
12411    lt_cv_dlopen_self=yes
12412    ;;
12413
12414  mingw* | pw32*)
12415    lt_cv_dlopen="LoadLibrary"
12416    lt_cv_dlopen_libs=
12417   ;;
12418
12419  cygwin*)
12420    lt_cv_dlopen="dlopen"
12421    lt_cv_dlopen_libs=
12422   ;;
12423
12424  darwin*)
12425  # if libdl is installed we need to link against it
12426    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12427echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12429  echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431  ac_check_lib_save_LIBS=$LIBS
12432LIBS="-ldl  $LIBS"
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h.  */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h.  */
12439
12440/* Override any gcc2 internal prototype to avoid an error.  */
12441#ifdef __cplusplus
12442extern "C"
12443#endif
12444/* We use char because int might match the return type of a gcc2
12445   builtin and then its argument prototype would still apply.  */
12446char dlopen ();
12447int
12448main ()
12449{
12450dlopen ();
12451  ;
12452  return 0;
12453}
12454_ACEOF
12455rm -f conftest.$ac_objext conftest$ac_exeext
12456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457  (eval $ac_link) 2>conftest.er1
12458  ac_status=$?
12459  grep -v '^ *+' conftest.er1 >conftest.err
12460  rm -f conftest.er1
12461  cat conftest.err >&5
12462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463  (exit $ac_status); } &&
12464	 { ac_try='test -z "$ac_cxx_werror_flag"
12465			 || test ! -s conftest.err'
12466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467  (eval $ac_try) 2>&5
12468  ac_status=$?
12469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470  (exit $ac_status); }; } &&
12471	 { ac_try='test -s conftest$ac_exeext'
12472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473  (eval $ac_try) 2>&5
12474  ac_status=$?
12475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476  (exit $ac_status); }; }; then
12477  ac_cv_lib_dl_dlopen=yes
12478else
12479  echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482ac_cv_lib_dl_dlopen=no
12483fi
12484rm -f conftest.err conftest.$ac_objext \
12485      conftest$ac_exeext conftest.$ac_ext
12486LIBS=$ac_check_lib_save_LIBS
12487fi
12488echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12489echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12490if test $ac_cv_lib_dl_dlopen = yes; then
12491  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12492else
12493
12494    lt_cv_dlopen="dyld"
12495    lt_cv_dlopen_libs=
12496    lt_cv_dlopen_self=yes
12497
12498fi
12499
12500   ;;
12501
12502  *)
12503    echo "$as_me:$LINENO: checking for shl_load" >&5
12504echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12505if test "${ac_cv_func_shl_load+set}" = set; then
12506  echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508  cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h.  */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h.  */
12514/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12515   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12516#define shl_load innocuous_shl_load
12517
12518/* System header to define __stub macros and hopefully few prototypes,
12519    which can conflict with char shl_load (); below.
12520    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521    <limits.h> exists even on freestanding compilers.  */
12522
12523#ifdef __STDC__
12524# include <limits.h>
12525#else
12526# include <assert.h>
12527#endif
12528
12529#undef shl_load
12530
12531/* Override any gcc2 internal prototype to avoid an error.  */
12532#ifdef __cplusplus
12533extern "C"
12534{
12535#endif
12536/* We use char because int might match the return type of a gcc2
12537   builtin and then its argument prototype would still apply.  */
12538char shl_load ();
12539/* The GNU C library defines this for functions which it implements
12540    to always fail with ENOSYS.  Some functions are actually named
12541    something starting with __ and the normal name is an alias.  */
12542#if defined (__stub_shl_load) || defined (__stub___shl_load)
12543choke me
12544#else
12545char (*f) () = shl_load;
12546#endif
12547#ifdef __cplusplus
12548}
12549#endif
12550
12551int
12552main ()
12553{
12554return f != shl_load;
12555  ;
12556  return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext conftest$ac_exeext
12560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561  (eval $ac_link) 2>conftest.er1
12562  ac_status=$?
12563  grep -v '^ *+' conftest.er1 >conftest.err
12564  rm -f conftest.er1
12565  cat conftest.err >&5
12566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567  (exit $ac_status); } &&
12568	 { ac_try='test -z "$ac_cxx_werror_flag"
12569			 || test ! -s conftest.err'
12570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571  (eval $ac_try) 2>&5
12572  ac_status=$?
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); }; } &&
12575	 { ac_try='test -s conftest$ac_exeext'
12576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577  (eval $ac_try) 2>&5
12578  ac_status=$?
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); }; }; then
12581  ac_cv_func_shl_load=yes
12582else
12583  echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586ac_cv_func_shl_load=no
12587fi
12588rm -f conftest.err conftest.$ac_objext \
12589      conftest$ac_exeext conftest.$ac_ext
12590fi
12591echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12592echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12593if test $ac_cv_func_shl_load = yes; then
12594  lt_cv_dlopen="shl_load"
12595else
12596  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12597echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12598if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12599  echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601  ac_check_lib_save_LIBS=$LIBS
12602LIBS="-ldld  $LIBS"
12603cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h.  */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h.  */
12609
12610/* Override any gcc2 internal prototype to avoid an error.  */
12611#ifdef __cplusplus
12612extern "C"
12613#endif
12614/* We use char because int might match the return type of a gcc2
12615   builtin and then its argument prototype would still apply.  */
12616char shl_load ();
12617int
12618main ()
12619{
12620shl_load ();
12621  ;
12622  return 0;
12623}
12624_ACEOF
12625rm -f conftest.$ac_objext conftest$ac_exeext
12626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627  (eval $ac_link) 2>conftest.er1
12628  ac_status=$?
12629  grep -v '^ *+' conftest.er1 >conftest.err
12630  rm -f conftest.er1
12631  cat conftest.err >&5
12632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633  (exit $ac_status); } &&
12634	 { ac_try='test -z "$ac_cxx_werror_flag"
12635			 || test ! -s conftest.err'
12636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637  (eval $ac_try) 2>&5
12638  ac_status=$?
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); }; } &&
12641	 { ac_try='test -s conftest$ac_exeext'
12642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643  (eval $ac_try) 2>&5
12644  ac_status=$?
12645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); }; }; then
12647  ac_cv_lib_dld_shl_load=yes
12648else
12649  echo "$as_me: failed program was:" >&5
12650sed 's/^/| /' conftest.$ac_ext >&5
12651
12652ac_cv_lib_dld_shl_load=no
12653fi
12654rm -f conftest.err conftest.$ac_objext \
12655      conftest$ac_exeext conftest.$ac_ext
12656LIBS=$ac_check_lib_save_LIBS
12657fi
12658echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12659echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12660if test $ac_cv_lib_dld_shl_load = yes; then
12661  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12662else
12663  echo "$as_me:$LINENO: checking for dlopen" >&5
12664echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12665if test "${ac_cv_func_dlopen+set}" = set; then
12666  echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668  cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h.  */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h.  */
12674/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12676#define dlopen innocuous_dlopen
12677
12678/* System header to define __stub macros and hopefully few prototypes,
12679    which can conflict with char dlopen (); below.
12680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12681    <limits.h> exists even on freestanding compilers.  */
12682
12683#ifdef __STDC__
12684# include <limits.h>
12685#else
12686# include <assert.h>
12687#endif
12688
12689#undef dlopen
12690
12691/* Override any gcc2 internal prototype to avoid an error.  */
12692#ifdef __cplusplus
12693extern "C"
12694{
12695#endif
12696/* We use char because int might match the return type of a gcc2
12697   builtin and then its argument prototype would still apply.  */
12698char dlopen ();
12699/* The GNU C library defines this for functions which it implements
12700    to always fail with ENOSYS.  Some functions are actually named
12701    something starting with __ and the normal name is an alias.  */
12702#if defined (__stub_dlopen) || defined (__stub___dlopen)
12703choke me
12704#else
12705char (*f) () = dlopen;
12706#endif
12707#ifdef __cplusplus
12708}
12709#endif
12710
12711int
12712main ()
12713{
12714return f != dlopen;
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721  (eval $ac_link) 2>conftest.er1
12722  ac_status=$?
12723  grep -v '^ *+' conftest.er1 >conftest.err
12724  rm -f conftest.er1
12725  cat conftest.err >&5
12726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727  (exit $ac_status); } &&
12728	 { ac_try='test -z "$ac_cxx_werror_flag"
12729			 || test ! -s conftest.err'
12730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731  (eval $ac_try) 2>&5
12732  ac_status=$?
12733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); }; } &&
12735	 { ac_try='test -s conftest$ac_exeext'
12736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737  (eval $ac_try) 2>&5
12738  ac_status=$?
12739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740  (exit $ac_status); }; }; then
12741  ac_cv_func_dlopen=yes
12742else
12743  echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746ac_cv_func_dlopen=no
12747fi
12748rm -f conftest.err conftest.$ac_objext \
12749      conftest$ac_exeext conftest.$ac_ext
12750fi
12751echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12752echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12753if test $ac_cv_func_dlopen = yes; then
12754  lt_cv_dlopen="dlopen"
12755else
12756  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12757echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12758if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12759  echo $ECHO_N "(cached) $ECHO_C" >&6
12760else
12761  ac_check_lib_save_LIBS=$LIBS
12762LIBS="-ldl  $LIBS"
12763cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h.  */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h.  */
12769
12770/* Override any gcc2 internal prototype to avoid an error.  */
12771#ifdef __cplusplus
12772extern "C"
12773#endif
12774/* We use char because int might match the return type of a gcc2
12775   builtin and then its argument prototype would still apply.  */
12776char dlopen ();
12777int
12778main ()
12779{
12780dlopen ();
12781  ;
12782  return 0;
12783}
12784_ACEOF
12785rm -f conftest.$ac_objext conftest$ac_exeext
12786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787  (eval $ac_link) 2>conftest.er1
12788  ac_status=$?
12789  grep -v '^ *+' conftest.er1 >conftest.err
12790  rm -f conftest.er1
12791  cat conftest.err >&5
12792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793  (exit $ac_status); } &&
12794	 { ac_try='test -z "$ac_cxx_werror_flag"
12795			 || test ! -s conftest.err'
12796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797  (eval $ac_try) 2>&5
12798  ac_status=$?
12799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800  (exit $ac_status); }; } &&
12801	 { ac_try='test -s conftest$ac_exeext'
12802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803  (eval $ac_try) 2>&5
12804  ac_status=$?
12805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806  (exit $ac_status); }; }; then
12807  ac_cv_lib_dl_dlopen=yes
12808else
12809  echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812ac_cv_lib_dl_dlopen=no
12813fi
12814rm -f conftest.err conftest.$ac_objext \
12815      conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
12818echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12819echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12820if test $ac_cv_lib_dl_dlopen = yes; then
12821  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12822else
12823  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12824echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12825if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12826  echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828  ac_check_lib_save_LIBS=$LIBS
12829LIBS="-lsvld  $LIBS"
12830cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h.  */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h.  */
12836
12837/* Override any gcc2 internal prototype to avoid an error.  */
12838#ifdef __cplusplus
12839extern "C"
12840#endif
12841/* We use char because int might match the return type of a gcc2
12842   builtin and then its argument prototype would still apply.  */
12843char dlopen ();
12844int
12845main ()
12846{
12847dlopen ();
12848  ;
12849  return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext conftest$ac_exeext
12853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854  (eval $ac_link) 2>conftest.er1
12855  ac_status=$?
12856  grep -v '^ *+' conftest.er1 >conftest.err
12857  rm -f conftest.er1
12858  cat conftest.err >&5
12859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860  (exit $ac_status); } &&
12861	 { ac_try='test -z "$ac_cxx_werror_flag"
12862			 || test ! -s conftest.err'
12863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864  (eval $ac_try) 2>&5
12865  ac_status=$?
12866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867  (exit $ac_status); }; } &&
12868	 { ac_try='test -s conftest$ac_exeext'
12869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870  (eval $ac_try) 2>&5
12871  ac_status=$?
12872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873  (exit $ac_status); }; }; then
12874  ac_cv_lib_svld_dlopen=yes
12875else
12876  echo "$as_me: failed program was:" >&5
12877sed 's/^/| /' conftest.$ac_ext >&5
12878
12879ac_cv_lib_svld_dlopen=no
12880fi
12881rm -f conftest.err conftest.$ac_objext \
12882      conftest$ac_exeext conftest.$ac_ext
12883LIBS=$ac_check_lib_save_LIBS
12884fi
12885echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12886echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12887if test $ac_cv_lib_svld_dlopen = yes; then
12888  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12889else
12890  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12891echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12892if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12893  echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895  ac_check_lib_save_LIBS=$LIBS
12896LIBS="-ldld  $LIBS"
12897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h.  */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h.  */
12903
12904/* Override any gcc2 internal prototype to avoid an error.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908/* We use char because int might match the return type of a gcc2
12909   builtin and then its argument prototype would still apply.  */
12910char dld_link ();
12911int
12912main ()
12913{
12914dld_link ();
12915  ;
12916  return 0;
12917}
12918_ACEOF
12919rm -f conftest.$ac_objext conftest$ac_exeext
12920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921  (eval $ac_link) 2>conftest.er1
12922  ac_status=$?
12923  grep -v '^ *+' conftest.er1 >conftest.err
12924  rm -f conftest.er1
12925  cat conftest.err >&5
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); } &&
12928	 { ac_try='test -z "$ac_cxx_werror_flag"
12929			 || test ! -s conftest.err'
12930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931  (eval $ac_try) 2>&5
12932  ac_status=$?
12933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934  (exit $ac_status); }; } &&
12935	 { ac_try='test -s conftest$ac_exeext'
12936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937  (eval $ac_try) 2>&5
12938  ac_status=$?
12939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940  (exit $ac_status); }; }; then
12941  ac_cv_lib_dld_dld_link=yes
12942else
12943  echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946ac_cv_lib_dld_dld_link=no
12947fi
12948rm -f conftest.err conftest.$ac_objext \
12949      conftest$ac_exeext conftest.$ac_ext
12950LIBS=$ac_check_lib_save_LIBS
12951fi
12952echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12953echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12954if test $ac_cv_lib_dld_dld_link = yes; then
12955  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12956fi
12957
12958
12959fi
12960
12961
12962fi
12963
12964
12965fi
12966
12967
12968fi
12969
12970
12971fi
12972
12973    ;;
12974  esac
12975
12976  if test "x$lt_cv_dlopen" != xno; then
12977    enable_dlopen=yes
12978  else
12979    enable_dlopen=no
12980  fi
12981
12982  case $lt_cv_dlopen in
12983  dlopen)
12984    save_CPPFLAGS="$CPPFLAGS"
12985    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12986
12987    save_LDFLAGS="$LDFLAGS"
12988    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12989
12990    save_LIBS="$LIBS"
12991    LIBS="$lt_cv_dlopen_libs $LIBS"
12992
12993    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12994echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12995if test "${lt_cv_dlopen_self+set}" = set; then
12996  echo $ECHO_N "(cached) $ECHO_C" >&6
12997else
12998  	  if test "$cross_compiling" = yes; then :
12999  lt_cv_dlopen_self=cross
13000else
13001  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13002  lt_status=$lt_dlunknown
13003  cat > conftest.$ac_ext <<EOF
13004#line 13004 "configure"
13005#include "confdefs.h"
13006
13007#if HAVE_DLFCN_H
13008#include <dlfcn.h>
13009#endif
13010
13011#include <stdio.h>
13012
13013#ifdef RTLD_GLOBAL
13014#  define LT_DLGLOBAL		RTLD_GLOBAL
13015#else
13016#  ifdef DL_GLOBAL
13017#    define LT_DLGLOBAL		DL_GLOBAL
13018#  else
13019#    define LT_DLGLOBAL		0
13020#  endif
13021#endif
13022
13023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13024   find out it does not work in some platform. */
13025#ifndef LT_DLLAZY_OR_NOW
13026#  ifdef RTLD_LAZY
13027#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13028#  else
13029#    ifdef DL_LAZY
13030#      define LT_DLLAZY_OR_NOW		DL_LAZY
13031#    else
13032#      ifdef RTLD_NOW
13033#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13034#      else
13035#        ifdef DL_NOW
13036#          define LT_DLLAZY_OR_NOW	DL_NOW
13037#        else
13038#          define LT_DLLAZY_OR_NOW	0
13039#        endif
13040#      endif
13041#    endif
13042#  endif
13043#endif
13044
13045#ifdef __cplusplus
13046extern "C" void exit (int);
13047#endif
13048
13049void fnord() { int i=42;}
13050int main ()
13051{
13052  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13053  int status = $lt_dlunknown;
13054
13055  if (self)
13056    {
13057      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13058      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13059      /* dlclose (self); */
13060    }
13061
13062    exit (status);
13063}
13064EOF
13065  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066  (eval $ac_link) 2>&5
13067  ac_status=$?
13068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13070    (./conftest; exit; ) >&5 2>/dev/null
13071    lt_status=$?
13072    case x$lt_status in
13073      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13074      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13075      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13076    esac
13077  else :
13078    # compilation failed
13079    lt_cv_dlopen_self=no
13080  fi
13081fi
13082rm -fr conftest*
13083
13084
13085fi
13086echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13087echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13088
13089    if test "x$lt_cv_dlopen_self" = xyes; then
13090      LDFLAGS="$LDFLAGS $link_static_flag"
13091      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13092echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13093if test "${lt_cv_dlopen_self_static+set}" = set; then
13094  echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096  	  if test "$cross_compiling" = yes; then :
13097  lt_cv_dlopen_self_static=cross
13098else
13099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13100  lt_status=$lt_dlunknown
13101  cat > conftest.$ac_ext <<EOF
13102#line 13102 "configure"
13103#include "confdefs.h"
13104
13105#if HAVE_DLFCN_H
13106#include <dlfcn.h>
13107#endif
13108
13109#include <stdio.h>
13110
13111#ifdef RTLD_GLOBAL
13112#  define LT_DLGLOBAL		RTLD_GLOBAL
13113#else
13114#  ifdef DL_GLOBAL
13115#    define LT_DLGLOBAL		DL_GLOBAL
13116#  else
13117#    define LT_DLGLOBAL		0
13118#  endif
13119#endif
13120
13121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13122   find out it does not work in some platform. */
13123#ifndef LT_DLLAZY_OR_NOW
13124#  ifdef RTLD_LAZY
13125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13126#  else
13127#    ifdef DL_LAZY
13128#      define LT_DLLAZY_OR_NOW		DL_LAZY
13129#    else
13130#      ifdef RTLD_NOW
13131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13132#      else
13133#        ifdef DL_NOW
13134#          define LT_DLLAZY_OR_NOW	DL_NOW
13135#        else
13136#          define LT_DLLAZY_OR_NOW	0
13137#        endif
13138#      endif
13139#    endif
13140#  endif
13141#endif
13142
13143#ifdef __cplusplus
13144extern "C" void exit (int);
13145#endif
13146
13147void fnord() { int i=42;}
13148int main ()
13149{
13150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13151  int status = $lt_dlunknown;
13152
13153  if (self)
13154    {
13155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13156      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13157      /* dlclose (self); */
13158    }
13159
13160    exit (status);
13161}
13162EOF
13163  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164  (eval $ac_link) 2>&5
13165  ac_status=$?
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13168    (./conftest; exit; ) >&5 2>/dev/null
13169    lt_status=$?
13170    case x$lt_status in
13171      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13172      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13173      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13174    esac
13175  else :
13176    # compilation failed
13177    lt_cv_dlopen_self_static=no
13178  fi
13179fi
13180rm -fr conftest*
13181
13182
13183fi
13184echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13185echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13186    fi
13187
13188    CPPFLAGS="$save_CPPFLAGS"
13189    LDFLAGS="$save_LDFLAGS"
13190    LIBS="$save_LIBS"
13191    ;;
13192  esac
13193
13194  case $lt_cv_dlopen_self in
13195  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13196  *) enable_dlopen_self=unknown ;;
13197  esac
13198
13199  case $lt_cv_dlopen_self_static in
13200  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13201  *) enable_dlopen_self_static=unknown ;;
13202  esac
13203fi
13204
13205
13206# The else clause should only fire when bootstrapping the
13207# libtool distribution, otherwise you forgot to ship ltmain.sh
13208# with your package, and you will get complaints that there are
13209# no rules to generate ltmain.sh.
13210if test -f "$ltmain"; then
13211  # See if we are running on zsh, and set the options which allow our commands through
13212  # without removal of \ escapes.
13213  if test -n "${ZSH_VERSION+set}" ; then
13214    setopt NO_GLOB_SUBST
13215  fi
13216  # Now quote all the things that may contain metacharacters while being
13217  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13218  # variables and quote the copies for generation of the libtool script.
13219  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13220    SED SHELL STRIP \
13221    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13222    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13223    deplibs_check_method reload_flag reload_cmds need_locks \
13224    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13225    lt_cv_sys_global_symbol_to_c_name_address \
13226    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13227    old_postinstall_cmds old_postuninstall_cmds \
13228    compiler_CXX \
13229    CC_CXX \
13230    LD_CXX \
13231    lt_prog_compiler_wl_CXX \
13232    lt_prog_compiler_pic_CXX \
13233    lt_prog_compiler_static_CXX \
13234    lt_prog_compiler_no_builtin_flag_CXX \
13235    export_dynamic_flag_spec_CXX \
13236    thread_safe_flag_spec_CXX \
13237    whole_archive_flag_spec_CXX \
13238    enable_shared_with_static_runtimes_CXX \
13239    old_archive_cmds_CXX \
13240    old_archive_from_new_cmds_CXX \
13241    predep_objects_CXX \
13242    postdep_objects_CXX \
13243    predeps_CXX \
13244    postdeps_CXX \
13245    compiler_lib_search_path_CXX \
13246    archive_cmds_CXX \
13247    archive_expsym_cmds_CXX \
13248    postinstall_cmds_CXX \
13249    postuninstall_cmds_CXX \
13250    old_archive_from_expsyms_cmds_CXX \
13251    allow_undefined_flag_CXX \
13252    no_undefined_flag_CXX \
13253    export_symbols_cmds_CXX \
13254    hardcode_libdir_flag_spec_CXX \
13255    hardcode_libdir_flag_spec_ld_CXX \
13256    hardcode_libdir_separator_CXX \
13257    hardcode_automatic_CXX \
13258    module_cmds_CXX \
13259    module_expsym_cmds_CXX \
13260    lt_cv_prog_compiler_c_o_CXX \
13261    exclude_expsyms_CXX \
13262    include_expsyms_CXX; do
13263
13264    case $var in
13265    old_archive_cmds_CXX | \
13266    old_archive_from_new_cmds_CXX | \
13267    archive_cmds_CXX | \
13268    archive_expsym_cmds_CXX | \
13269    module_cmds_CXX | \
13270    module_expsym_cmds_CXX | \
13271    old_archive_from_expsyms_cmds_CXX | \
13272    export_symbols_cmds_CXX | \
13273    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13274    postinstall_cmds | postuninstall_cmds | \
13275    old_postinstall_cmds | old_postuninstall_cmds | \
13276    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13277      # Double-quote double-evaled strings.
13278      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13279      ;;
13280    *)
13281      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13282      ;;
13283    esac
13284  done
13285
13286  case $lt_echo in
13287  *'\$0 --fallback-echo"')
13288    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13289    ;;
13290  esac
13291
13292cfgfile="$ofile"
13293
13294  cat <<__EOF__ >> "$cfgfile"
13295# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13296
13297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13298
13299# Shell to use when invoking shell scripts.
13300SHELL=$lt_SHELL
13301
13302# Whether or not to build shared libraries.
13303build_libtool_libs=$enable_shared
13304
13305# Whether or not to build static libraries.
13306build_old_libs=$enable_static
13307
13308# Whether or not to add -lc for building shared libraries.
13309build_libtool_need_lc=$archive_cmds_need_lc_CXX
13310
13311# Whether or not to disallow shared libs when runtime libs are static
13312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13313
13314# Whether or not to optimize for fast installation.
13315fast_install=$enable_fast_install
13316
13317# The host system.
13318host_alias=$host_alias
13319host=$host
13320host_os=$host_os
13321
13322# The build system.
13323build_alias=$build_alias
13324build=$build
13325build_os=$build_os
13326
13327# An echo program that does not interpret backslashes.
13328echo=$lt_echo
13329
13330# The archiver.
13331AR=$lt_AR
13332AR_FLAGS=$lt_AR_FLAGS
13333
13334# A C compiler.
13335LTCC=$lt_LTCC
13336
13337# A language-specific compiler.
13338CC=$lt_compiler_CXX
13339
13340# Is the compiler the GNU C compiler?
13341with_gcc=$GCC_CXX
13342
13343# An ERE matcher.
13344EGREP=$lt_EGREP
13345
13346# The linker used to build libraries.
13347LD=$lt_LD_CXX
13348
13349# Whether we need hard or soft links.
13350LN_S=$lt_LN_S
13351
13352# A BSD-compatible nm program.
13353NM=$lt_NM
13354
13355# A symbol stripping program
13356STRIP=$lt_STRIP
13357
13358# Used to examine libraries when file_magic_cmd begins "file"
13359MAGIC_CMD=$MAGIC_CMD
13360
13361# Used on cygwin: DLL creation program.
13362DLLTOOL="$DLLTOOL"
13363
13364# Used on cygwin: object dumper.
13365OBJDUMP="$OBJDUMP"
13366
13367# Used on cygwin: assembler.
13368AS="$AS"
13369
13370# The name of the directory that contains temporary libtool files.
13371objdir=$objdir
13372
13373# How to create reloadable object files.
13374reload_flag=$lt_reload_flag
13375reload_cmds=$lt_reload_cmds
13376
13377# How to pass a linker flag through the compiler.
13378wl=$lt_lt_prog_compiler_wl_CXX
13379
13380# Object file suffix (normally "o").
13381objext="$ac_objext"
13382
13383# Old archive suffix (normally "a").
13384libext="$libext"
13385
13386# Shared library suffix (normally ".so").
13387shrext_cmds='$shrext_cmds'
13388
13389# Executable file suffix (normally "").
13390exeext="$exeext"
13391
13392# Additional compiler flags for building library objects.
13393pic_flag=$lt_lt_prog_compiler_pic_CXX
13394pic_mode=$pic_mode
13395
13396# What is the maximum length of a command?
13397max_cmd_len=$lt_cv_sys_max_cmd_len
13398
13399# Does compiler simultaneously support -c and -o options?
13400compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13401
13402# Must we lock files when doing compilation?
13403need_locks=$lt_need_locks
13404
13405# Do we need the lib prefix for modules?
13406need_lib_prefix=$need_lib_prefix
13407
13408# Do we need a version for libraries?
13409need_version=$need_version
13410
13411# Whether dlopen is supported.
13412dlopen_support=$enable_dlopen
13413
13414# Whether dlopen of programs is supported.
13415dlopen_self=$enable_dlopen_self
13416
13417# Whether dlopen of statically linked programs is supported.
13418dlopen_self_static=$enable_dlopen_self_static
13419
13420# Compiler flag to prevent dynamic linking.
13421link_static_flag=$lt_lt_prog_compiler_static_CXX
13422
13423# Compiler flag to turn off builtin functions.
13424no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13425
13426# Compiler flag to allow reflexive dlopens.
13427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13428
13429# Compiler flag to generate shared objects directly from archives.
13430whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13431
13432# Compiler flag to generate thread-safe objects.
13433thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13434
13435# Library versioning type.
13436version_type=$version_type
13437
13438# Format of library name prefix.
13439libname_spec=$lt_libname_spec
13440
13441# List of archive names.  First name is the real one, the rest are links.
13442# The last name is the one that the linker finds with -lNAME.
13443library_names_spec=$lt_library_names_spec
13444
13445# The coded name of the library, if different from the real name.
13446soname_spec=$lt_soname_spec
13447
13448# Commands used to build and install an old-style archive.
13449RANLIB=$lt_RANLIB
13450old_archive_cmds=$lt_old_archive_cmds_CXX
13451old_postinstall_cmds=$lt_old_postinstall_cmds
13452old_postuninstall_cmds=$lt_old_postuninstall_cmds
13453
13454# Create an old-style archive from a shared archive.
13455old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13456
13457# Create a temporary old-style archive to link instead of a shared archive.
13458old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13459
13460# Commands used to build and install a shared archive.
13461archive_cmds=$lt_archive_cmds_CXX
13462archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13463postinstall_cmds=$lt_postinstall_cmds
13464postuninstall_cmds=$lt_postuninstall_cmds
13465
13466# Commands used to build a loadable module (assumed same as above if empty)
13467module_cmds=$lt_module_cmds_CXX
13468module_expsym_cmds=$lt_module_expsym_cmds_CXX
13469
13470# Commands to strip libraries.
13471old_striplib=$lt_old_striplib
13472striplib=$lt_striplib
13473
13474# Dependencies to place before the objects being linked to create a
13475# shared library.
13476predep_objects=$lt_predep_objects_CXX
13477
13478# Dependencies to place after the objects being linked to create a
13479# shared library.
13480postdep_objects=$lt_postdep_objects_CXX
13481
13482# Dependencies to place before the objects being linked to create a
13483# shared library.
13484predeps=$lt_predeps_CXX
13485
13486# Dependencies to place after the objects being linked to create a
13487# shared library.
13488postdeps=$lt_postdeps_CXX
13489
13490# The library search path used internally by the compiler when linking
13491# a shared library.
13492compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13493
13494# Method to check whether dependent libraries are shared objects.
13495deplibs_check_method=$lt_deplibs_check_method
13496
13497# Command to use when deplibs_check_method == file_magic.
13498file_magic_cmd=$lt_file_magic_cmd
13499
13500# Flag that allows shared libraries with undefined symbols to be built.
13501allow_undefined_flag=$lt_allow_undefined_flag_CXX
13502
13503# Flag that forces no undefined symbols.
13504no_undefined_flag=$lt_no_undefined_flag_CXX
13505
13506# Commands used to finish a libtool library installation in a directory.
13507finish_cmds=$lt_finish_cmds
13508
13509# Same as above, but a single script fragment to be evaled but not shown.
13510finish_eval=$lt_finish_eval
13511
13512# Take the output of nm and produce a listing of raw symbols and C names.
13513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13514
13515# Transform the output of nm in a proper C declaration
13516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13517
13518# Transform the output of nm in a C name address pair
13519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13520
13521# This is the shared library runtime path variable.
13522runpath_var=$runpath_var
13523
13524# This is the shared library path variable.
13525shlibpath_var=$shlibpath_var
13526
13527# Is shlibpath searched before the hard-coded library search path?
13528shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13529
13530# How to hardcode a shared library path into an executable.
13531hardcode_action=$hardcode_action_CXX
13532
13533# Whether we should hardcode library paths into libraries.
13534hardcode_into_libs=$hardcode_into_libs
13535
13536# Flag to hardcode \$libdir into a binary during linking.
13537# This must work even if \$libdir does not exist.
13538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13539
13540# If ld is used when linking, flag to hardcode \$libdir into
13541# a binary during linking. This must work even if \$libdir does
13542# not exist.
13543hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13544
13545# Whether we need a single -rpath flag with a separated argument.
13546hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13547
13548# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13549# resulting binary.
13550hardcode_direct=$hardcode_direct_CXX
13551
13552# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13553# resulting binary.
13554hardcode_minus_L=$hardcode_minus_L_CXX
13555
13556# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13557# the resulting binary.
13558hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13559
13560# Set to yes if building a shared library automatically hardcodes DIR into the library
13561# and all subsequent libraries and executables linked against it.
13562hardcode_automatic=$hardcode_automatic_CXX
13563
13564# Variables whose values should be saved in libtool wrapper scripts and
13565# restored at relink time.
13566variables_saved_for_relink="$variables_saved_for_relink"
13567
13568# Whether libtool must link a program against all its dependency libraries.
13569link_all_deplibs=$link_all_deplibs_CXX
13570
13571# Compile-time system search path for libraries
13572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13573
13574# Run-time system search path for libraries
13575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13576
13577# Fix the shell variable \$srcfile for the compiler.
13578fix_srcfile_path="$fix_srcfile_path_CXX"
13579
13580# Set to yes if exported symbols are required.
13581always_export_symbols=$always_export_symbols_CXX
13582
13583# The commands to list exported symbols.
13584export_symbols_cmds=$lt_export_symbols_cmds_CXX
13585
13586# The commands to extract the exported symbol list from a shared archive.
13587extract_expsyms_cmds=$lt_extract_expsyms_cmds
13588
13589# Symbols that should not be listed in the preloaded symbols.
13590exclude_expsyms=$lt_exclude_expsyms_CXX
13591
13592# Symbols that must always be exported.
13593include_expsyms=$lt_include_expsyms_CXX
13594
13595# ### END LIBTOOL TAG CONFIG: $tagname
13596
13597__EOF__
13598
13599
13600else
13601  # If there is no Makefile yet, we rely on a make rule to execute
13602  # `config.status --recheck' to rerun these tests and create the
13603  # libtool script then.
13604  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13605  if test -f "$ltmain_in"; then
13606    test -f Makefile && make "$ltmain"
13607  fi
13608fi
13609
13610
13611ac_ext=c
13612ac_cpp='$CPP $CPPFLAGS'
13613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13615ac_compiler_gnu=$ac_cv_c_compiler_gnu
13616
13617CC=$lt_save_CC
13618LDCXX=$LD
13619LD=$lt_save_LD
13620GCC=$lt_save_GCC
13621with_gnu_ldcxx=$with_gnu_ld
13622with_gnu_ld=$lt_save_with_gnu_ld
13623lt_cv_path_LDCXX=$lt_cv_path_LD
13624lt_cv_path_LD=$lt_save_path_LD
13625lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13626lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13627
13628	else
13629	  tagname=""
13630	fi
13631	;;
13632
13633      F77)
13634	if test -n "$F77" && test "X$F77" != "Xno"; then
13635
13636ac_ext=f
13637ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13638ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13640
13641
13642archive_cmds_need_lc_F77=no
13643allow_undefined_flag_F77=
13644always_export_symbols_F77=no
13645archive_expsym_cmds_F77=
13646export_dynamic_flag_spec_F77=
13647hardcode_direct_F77=no
13648hardcode_libdir_flag_spec_F77=
13649hardcode_libdir_flag_spec_ld_F77=
13650hardcode_libdir_separator_F77=
13651hardcode_minus_L_F77=no
13652hardcode_automatic_F77=no
13653module_cmds_F77=
13654module_expsym_cmds_F77=
13655link_all_deplibs_F77=unknown
13656old_archive_cmds_F77=$old_archive_cmds
13657no_undefined_flag_F77=
13658whole_archive_flag_spec_F77=
13659enable_shared_with_static_runtimes_F77=no
13660
13661# Source file extension for f77 test sources.
13662ac_ext=f
13663
13664# Object file extension for compiled f77 test sources.
13665objext=o
13666objext_F77=$objext
13667
13668# Code to be used in simple compile tests
13669lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13670
13671# Code to be used in simple link tests
13672lt_simple_link_test_code="      program t\n      end\n"
13673
13674# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13675
13676# If no C compiler was specified, use CC.
13677LTCC=${LTCC-"$CC"}
13678
13679# Allow CC to be a program name with arguments.
13680compiler=$CC
13681
13682
13683# save warnings/boilerplate of simple test code
13684ac_outfile=conftest.$ac_objext
13685printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13686eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13687_lt_compiler_boilerplate=`cat conftest.err`
13688$rm conftest*
13689
13690ac_outfile=conftest.$ac_objext
13691printf "$lt_simple_link_test_code" >conftest.$ac_ext
13692eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13693_lt_linker_boilerplate=`cat conftest.err`
13694$rm conftest*
13695
13696
13697# Allow CC to be a program name with arguments.
13698lt_save_CC="$CC"
13699CC=${F77-"f77"}
13700compiler=$CC
13701compiler_F77=$CC
13702for cc_temp in $compiler""; do
13703  case $cc_temp in
13704    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13705    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13706    \-*) ;;
13707    *) break;;
13708  esac
13709done
13710cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13711
13712
13713echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13714echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13715echo "$as_me:$LINENO: result: $can_build_shared" >&5
13716echo "${ECHO_T}$can_build_shared" >&6
13717
13718echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13719echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13720test "$can_build_shared" = "no" && enable_shared=no
13721
13722# On AIX, shared libraries and static libraries use the same namespace, and
13723# are all built from PIC.
13724case $host_os in
13725aix3*)
13726  test "$enable_shared" = yes && enable_static=no
13727  if test -n "$RANLIB"; then
13728    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13729    postinstall_cmds='$RANLIB $lib'
13730  fi
13731  ;;
13732aix4* | aix5*)
13733  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13734    test "$enable_shared" = yes && enable_static=no
13735  fi
13736  ;;
13737esac
13738echo "$as_me:$LINENO: result: $enable_shared" >&5
13739echo "${ECHO_T}$enable_shared" >&6
13740
13741echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13742echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13743# Make sure either enable_shared or enable_static is yes.
13744test "$enable_shared" = yes || enable_static=yes
13745echo "$as_me:$LINENO: result: $enable_static" >&5
13746echo "${ECHO_T}$enable_static" >&6
13747
13748test "$ld_shlibs_F77" = no && can_build_shared=no
13749
13750GCC_F77="$G77"
13751LD_F77="$LD"
13752
13753lt_prog_compiler_wl_F77=
13754lt_prog_compiler_pic_F77=
13755lt_prog_compiler_static_F77=
13756
13757echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13758echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13759
13760  if test "$GCC" = yes; then
13761    lt_prog_compiler_wl_F77='-Wl,'
13762    lt_prog_compiler_static_F77='-static'
13763
13764    case $host_os in
13765      aix*)
13766      # All AIX code is PIC.
13767      if test "$host_cpu" = ia64; then
13768	# AIX 5 now supports IA64 processor
13769	lt_prog_compiler_static_F77='-Bstatic'
13770      fi
13771      ;;
13772
13773    amigaos*)
13774      # FIXME: we need at least 68020 code to build shared libraries, but
13775      # adding the `-m68020' flag to GCC prevents building anything better,
13776      # like `-m68040'.
13777      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13778      ;;
13779
13780    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13781      # PIC is the default for these OSes.
13782      ;;
13783
13784    mingw* | pw32* | os2*)
13785      # This hack is so that the source file can tell whether it is being
13786      # built for inclusion in a dll (and should export symbols for example).
13787      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13788      ;;
13789
13790    darwin* | rhapsody*)
13791      # PIC is the default on this platform
13792      # Common symbols not allowed in MH_DYLIB files
13793      lt_prog_compiler_pic_F77='-fno-common'
13794      ;;
13795
13796    msdosdjgpp*)
13797      # Just because we use GCC doesn't mean we suddenly get shared libraries
13798      # on systems that don't support them.
13799      lt_prog_compiler_can_build_shared_F77=no
13800      enable_shared=no
13801      ;;
13802
13803    sysv4*MP*)
13804      if test -d /usr/nec; then
13805	lt_prog_compiler_pic_F77=-Kconform_pic
13806      fi
13807      ;;
13808
13809    hpux*)
13810      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13811      # not for PA HP-UX.
13812      case $host_cpu in
13813      hppa*64*|ia64*)
13814	# +Z the default
13815	;;
13816      *)
13817	lt_prog_compiler_pic_F77='-fPIC'
13818	;;
13819      esac
13820      ;;
13821
13822    *)
13823      lt_prog_compiler_pic_F77='-fPIC'
13824      ;;
13825    esac
13826  else
13827    # PORTME Check for flag to pass linker flags through the system compiler.
13828    case $host_os in
13829    aix*)
13830      lt_prog_compiler_wl_F77='-Wl,'
13831      if test "$host_cpu" = ia64; then
13832	# AIX 5 now supports IA64 processor
13833	lt_prog_compiler_static_F77='-Bstatic'
13834      else
13835	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13836      fi
13837      ;;
13838      darwin*)
13839        # PIC is the default on this platform
13840        # Common symbols not allowed in MH_DYLIB files
13841       case $cc_basename in
13842         xlc*)
13843         lt_prog_compiler_pic_F77='-qnocommon'
13844         lt_prog_compiler_wl_F77='-Wl,'
13845         ;;
13846       esac
13847       ;;
13848
13849    mingw* | pw32* | os2*)
13850      # This hack is so that the source file can tell whether it is being
13851      # built for inclusion in a dll (and should export symbols for example).
13852      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13853      ;;
13854
13855    hpux9* | hpux10* | hpux11*)
13856      lt_prog_compiler_wl_F77='-Wl,'
13857      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13858      # not for PA HP-UX.
13859      case $host_cpu in
13860      hppa*64*|ia64*)
13861	# +Z the default
13862	;;
13863      *)
13864	lt_prog_compiler_pic_F77='+Z'
13865	;;
13866      esac
13867      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13868      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13869      ;;
13870
13871    irix5* | irix6* | nonstopux*)
13872      lt_prog_compiler_wl_F77='-Wl,'
13873      # PIC (with -KPIC) is the default.
13874      lt_prog_compiler_static_F77='-non_shared'
13875      ;;
13876
13877    newsos6)
13878      lt_prog_compiler_pic_F77='-KPIC'
13879      lt_prog_compiler_static_F77='-Bstatic'
13880      ;;
13881
13882    linux*)
13883      case $cc_basename in
13884      icc* | ecc*)
13885	lt_prog_compiler_wl_F77='-Wl,'
13886	lt_prog_compiler_pic_F77='-KPIC'
13887	lt_prog_compiler_static_F77='-static'
13888        ;;
13889      pgcc* | pgf77* | pgf90* | pgf95*)
13890        # Portland Group compilers (*not* the Pentium gcc compiler,
13891	# which looks to be a dead project)
13892	lt_prog_compiler_wl_F77='-Wl,'
13893	lt_prog_compiler_pic_F77='-fpic'
13894	lt_prog_compiler_static_F77='-Bstatic'
13895        ;;
13896      ccc*)
13897        lt_prog_compiler_wl_F77='-Wl,'
13898        # All Alpha code is PIC.
13899        lt_prog_compiler_static_F77='-non_shared'
13900        ;;
13901      esac
13902      ;;
13903
13904    osf3* | osf4* | osf5*)
13905      lt_prog_compiler_wl_F77='-Wl,'
13906      # All OSF/1 code is PIC.
13907      lt_prog_compiler_static_F77='-non_shared'
13908      ;;
13909
13910    sco3.2v5*)
13911      lt_prog_compiler_pic_F77='-Kpic'
13912      lt_prog_compiler_static_F77='-dn'
13913      ;;
13914
13915    solaris*)
13916      lt_prog_compiler_pic_F77='-KPIC'
13917      lt_prog_compiler_static_F77='-Bstatic'
13918      case $cc_basename in
13919      f77* | f90* | f95*)
13920	lt_prog_compiler_wl_F77='-Qoption ld ';;
13921      *)
13922	lt_prog_compiler_wl_F77='-Wl,';;
13923      esac
13924      ;;
13925
13926    sunos4*)
13927      lt_prog_compiler_wl_F77='-Qoption ld '
13928      lt_prog_compiler_pic_F77='-PIC'
13929      lt_prog_compiler_static_F77='-Bstatic'
13930      ;;
13931
13932    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13933      lt_prog_compiler_wl_F77='-Wl,'
13934      lt_prog_compiler_pic_F77='-KPIC'
13935      lt_prog_compiler_static_F77='-Bstatic'
13936      ;;
13937
13938    sysv4*MP*)
13939      if test -d /usr/nec ;then
13940	lt_prog_compiler_pic_F77='-Kconform_pic'
13941	lt_prog_compiler_static_F77='-Bstatic'
13942      fi
13943      ;;
13944
13945    unicos*)
13946      lt_prog_compiler_wl_F77='-Wl,'
13947      lt_prog_compiler_can_build_shared_F77=no
13948      ;;
13949
13950    uts4*)
13951      lt_prog_compiler_pic_F77='-pic'
13952      lt_prog_compiler_static_F77='-Bstatic'
13953      ;;
13954
13955    *)
13956      lt_prog_compiler_can_build_shared_F77=no
13957      ;;
13958    esac
13959  fi
13960
13961echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13962echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13963
13964#
13965# Check to make sure the PIC flag actually works.
13966#
13967if test -n "$lt_prog_compiler_pic_F77"; then
13968
13969echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13970echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13971if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13972  echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974  lt_prog_compiler_pic_works_F77=no
13975  ac_outfile=conftest.$ac_objext
13976   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13977   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13978   # Insert the option either (1) after the last *FLAGS variable, or
13979   # (2) before a word containing "conftest.", or (3) at the end.
13980   # Note that $ac_compile itself does not contain backslashes and begins
13981   # with a dollar sign (not a hyphen), so the echo should work correctly.
13982   # The option is referenced via a variable to avoid confusing sed.
13983   lt_compile=`echo "$ac_compile" | $SED \
13984   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13985   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13986   -e 's:$: $lt_compiler_flag:'`
13987   (eval echo "\"\$as_me:13987: $lt_compile\"" >&5)
13988   (eval "$lt_compile" 2>conftest.err)
13989   ac_status=$?
13990   cat conftest.err >&5
13991   echo "$as_me:13991: \$? = $ac_status" >&5
13992   if (exit $ac_status) && test -s "$ac_outfile"; then
13993     # The compiler can only warn and ignore the option if not recognized
13994     # So say no if there are warnings other than the usual output.
13995     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13996     $SED '/^$/d' conftest.err >conftest.er2
13997     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13998       lt_prog_compiler_pic_works_F77=yes
13999     fi
14000   fi
14001   $rm conftest*
14002
14003fi
14004echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14005echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14006
14007if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14008    case $lt_prog_compiler_pic_F77 in
14009     "" | " "*) ;;
14010     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14011     esac
14012else
14013    lt_prog_compiler_pic_F77=
14014     lt_prog_compiler_can_build_shared_F77=no
14015fi
14016
14017fi
14018case $host_os in
14019  # For platforms which do not support PIC, -DPIC is meaningless:
14020  *djgpp*)
14021    lt_prog_compiler_pic_F77=
14022    ;;
14023  *)
14024    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14025    ;;
14026esac
14027
14028echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14029echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14030if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14031  echo $ECHO_N "(cached) $ECHO_C" >&6
14032else
14033  lt_cv_prog_compiler_c_o_F77=no
14034   $rm -r conftest 2>/dev/null
14035   mkdir conftest
14036   cd conftest
14037   mkdir out
14038   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
14040   lt_compiler_flag="-o out/conftest2.$ac_objext"
14041   # Insert the option either (1) after the last *FLAGS variable, or
14042   # (2) before a word containing "conftest.", or (3) at the end.
14043   # Note that $ac_compile itself does not contain backslashes and begins
14044   # with a dollar sign (not a hyphen), so the echo should work correctly.
14045   lt_compile=`echo "$ac_compile" | $SED \
14046   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048   -e 's:$: $lt_compiler_flag:'`
14049   (eval echo "\"\$as_me:14049: $lt_compile\"" >&5)
14050   (eval "$lt_compile" 2>out/conftest.err)
14051   ac_status=$?
14052   cat out/conftest.err >&5
14053   echo "$as_me:14053: \$? = $ac_status" >&5
14054   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14055   then
14056     # The compiler can only warn and ignore the option if not recognized
14057     # So say no if there are warnings
14058     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14059     $SED '/^$/d' out/conftest.err >out/conftest.er2
14060     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061       lt_cv_prog_compiler_c_o_F77=yes
14062     fi
14063   fi
14064   chmod u+w . 2>&5
14065   $rm conftest*
14066   # SGI C++ compiler will create directory out/ii_files/ for
14067   # template instantiation
14068   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14069   $rm out/* && rmdir out
14070   cd ..
14071   rmdir conftest
14072   $rm conftest*
14073
14074fi
14075echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14076echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14077
14078
14079hard_links="nottested"
14080if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14081  # do not overwrite the value of need_locks provided by the user
14082  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14083echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14084  hard_links=yes
14085  $rm conftest*
14086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14087  touch conftest.a
14088  ln conftest.a conftest.b 2>&5 || hard_links=no
14089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14090  echo "$as_me:$LINENO: result: $hard_links" >&5
14091echo "${ECHO_T}$hard_links" >&6
14092  if test "$hard_links" = no; then
14093    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14094echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14095    need_locks=warn
14096  fi
14097else
14098  need_locks=no
14099fi
14100
14101echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14102echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14103
14104  runpath_var=
14105  allow_undefined_flag_F77=
14106  enable_shared_with_static_runtimes_F77=no
14107  archive_cmds_F77=
14108  archive_expsym_cmds_F77=
14109  old_archive_From_new_cmds_F77=
14110  old_archive_from_expsyms_cmds_F77=
14111  export_dynamic_flag_spec_F77=
14112  whole_archive_flag_spec_F77=
14113  thread_safe_flag_spec_F77=
14114  hardcode_libdir_flag_spec_F77=
14115  hardcode_libdir_flag_spec_ld_F77=
14116  hardcode_libdir_separator_F77=
14117  hardcode_direct_F77=no
14118  hardcode_minus_L_F77=no
14119  hardcode_shlibpath_var_F77=unsupported
14120  link_all_deplibs_F77=unknown
14121  hardcode_automatic_F77=no
14122  module_cmds_F77=
14123  module_expsym_cmds_F77=
14124  always_export_symbols_F77=no
14125  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14126  # include_expsyms should be a list of space-separated symbols to be *always*
14127  # included in the symbol list
14128  include_expsyms_F77=
14129  # exclude_expsyms can be an extended regexp of symbols to exclude
14130  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14131  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14132  # as well as any symbol that contains `d'.
14133  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14134  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14135  # platforms (ab)use it in PIC code, but their linkers get confused if
14136  # the symbol is explicitly referenced.  Since portable code cannot
14137  # rely on this symbol name, it's probably fine to never include it in
14138  # preloaded symbol tables.
14139  extract_expsyms_cmds=
14140  # Just being paranoid about ensuring that cc_basename is set.
14141  for cc_temp in $compiler""; do
14142  case $cc_temp in
14143    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14144    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14145    \-*) ;;
14146    *) break;;
14147  esac
14148done
14149cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14150
14151  case $host_os in
14152  cygwin* | mingw* | pw32*)
14153    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14154    # When not using gcc, we currently assume that we are using
14155    # Microsoft Visual C++.
14156    if test "$GCC" != yes; then
14157      with_gnu_ld=no
14158    fi
14159    ;;
14160  openbsd*)
14161    with_gnu_ld=no
14162    ;;
14163  esac
14164
14165  ld_shlibs_F77=yes
14166  if test "$with_gnu_ld" = yes; then
14167    # If archive_cmds runs LD, not CC, wlarc should be empty
14168    wlarc='${wl}'
14169
14170    # Set some defaults for GNU ld with shared library support. These
14171    # are reset later if shared libraries are not supported. Putting them
14172    # here allows them to be overridden if necessary.
14173    runpath_var=LD_RUN_PATH
14174    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14175    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14176    # ancient GNU ld didn't support --whole-archive et. al.
14177    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14178	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14179      else
14180  	whole_archive_flag_spec_F77=
14181    fi
14182    supports_anon_versioning=no
14183    case `$LD -v 2>/dev/null` in
14184      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14185      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14186      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14187      *\ 2.11.*) ;; # other 2.11 versions
14188      *) supports_anon_versioning=yes ;;
14189    esac
14190
14191    # See if GNU ld supports shared libraries.
14192    case $host_os in
14193    aix3* | aix4* | aix5*)
14194      # On AIX/PPC, the GNU linker is very broken
14195      if test "$host_cpu" != ia64; then
14196	ld_shlibs_F77=no
14197	cat <<EOF 1>&2
14198
14199*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14200*** to be unable to reliably create shared libraries on AIX.
14201*** Therefore, libtool is disabling shared libraries support.  If you
14202*** really care for shared libraries, you may want to modify your PATH
14203*** so that a non-GNU linker is found, and then restart.
14204
14205EOF
14206      fi
14207      ;;
14208
14209    amigaos*)
14210      archive_cmds_F77='$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)'
14211      hardcode_libdir_flag_spec_F77='-L$libdir'
14212      hardcode_minus_L_F77=yes
14213
14214      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14215      # that the semantics of dynamic libraries on AmigaOS, at least up
14216      # to version 4, is to share data among multiple programs linked
14217      # with the same dynamic library.  Since this doesn't match the
14218      # behavior of shared libraries on other platforms, we can't use
14219      # them.
14220      ld_shlibs_F77=no
14221      ;;
14222
14223    beos*)
14224      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14225	allow_undefined_flag_F77=unsupported
14226	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14227	# support --undefined.  This deserves some investigation.  FIXME
14228	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229      else
14230	ld_shlibs_F77=no
14231      fi
14232      ;;
14233
14234    cygwin* | mingw* | pw32*)
14235      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14236      # as there is no search path for DLLs.
14237      hardcode_libdir_flag_spec_F77='-L$libdir'
14238      allow_undefined_flag_F77=unsupported
14239      always_export_symbols_F77=no
14240      enable_shared_with_static_runtimes_F77=yes
14241      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14242
14243      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14244        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
14245	# If the export-symbols file already is a .def file (1st line
14246	# is EXPORTS), use it as is; otherwise, prepend...
14247	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14248	  cp $export_symbols $output_objdir/$soname.def;
14249	else
14250	  echo EXPORTS > $output_objdir/$soname.def;
14251	  cat $export_symbols >> $output_objdir/$soname.def;
14252	fi~
14253	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
14254      else
14255	ld_shlibs_F77=no
14256      fi
14257      ;;
14258
14259    linux*)
14260      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14261	tmp_addflag=
14262	case $cc_basename,$host_cpu in
14263	pgcc*)				# Portland Group C compiler
14264	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14265	  tmp_addflag=' $pic_flag'
14266	  ;;
14267	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14268	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14269	  tmp_addflag=' $pic_flag -Mnomain' ;;
14270	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14271	  tmp_addflag=' -i_dynamic' ;;
14272	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14273	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14274	ifc* | ifort*)			# Intel Fortran compiler
14275	  tmp_addflag=' -nofor_main' ;;
14276	esac
14277	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278
14279	if test $supports_anon_versioning = yes; then
14280	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14281  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14282  $echo "local: *; };" >> $output_objdir/$libname.ver~
14283	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14284	fi
14285      else
14286	ld_shlibs_F77=no
14287      fi
14288      ;;
14289
14290    netbsd*)
14291      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14292	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14293	wlarc=
14294      else
14295	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14296	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14297      fi
14298      ;;
14299
14300    solaris* | sysv5*)
14301      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14302	ld_shlibs_F77=no
14303	cat <<EOF 1>&2
14304
14305*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14306*** create shared libraries on Solaris systems.  Therefore, libtool
14307*** is disabling shared libraries support.  We urge you to upgrade GNU
14308*** binutils to release 2.9.1 or newer.  Another option is to modify
14309*** your PATH or compiler configuration so that the native linker is
14310*** used, and then restart.
14311
14312EOF
14313      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14314	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14315	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14316      else
14317	ld_shlibs_F77=no
14318      fi
14319      ;;
14320
14321    sunos4*)
14322      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14323      wlarc=
14324      hardcode_direct_F77=yes
14325      hardcode_shlibpath_var_F77=no
14326      ;;
14327
14328    *)
14329      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14330	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14331	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14332      else
14333	ld_shlibs_F77=no
14334      fi
14335      ;;
14336    esac
14337
14338    if test "$ld_shlibs_F77" = no; then
14339      runpath_var=
14340      hardcode_libdir_flag_spec_F77=
14341      export_dynamic_flag_spec_F77=
14342      whole_archive_flag_spec_F77=
14343    fi
14344  else
14345    # PORTME fill in a description of your system's linker (not GNU ld)
14346    case $host_os in
14347    aix3*)
14348      allow_undefined_flag_F77=unsupported
14349      always_export_symbols_F77=yes
14350      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14351      # Note: this linker hardcodes the directories in LIBPATH if there
14352      # are no directories specified by -L.
14353      hardcode_minus_L_F77=yes
14354      if test "$GCC" = yes && test -z "$link_static_flag"; then
14355	# Neither direct hardcoding nor static linking is supported with a
14356	# broken collect2.
14357	hardcode_direct_F77=unsupported
14358      fi
14359      ;;
14360
14361    aix4* | aix5*)
14362      if test "$host_cpu" = ia64; then
14363	# On IA64, the linker does run time linking by default, so we don't
14364	# have to do anything special.
14365	aix_use_runtimelinking=no
14366	exp_sym_flag='-Bexport'
14367	no_entry_flag=""
14368      else
14369	# If we're using GNU nm, then we don't want the "-C" option.
14370	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14371	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14372	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14373	else
14374	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14375	fi
14376	aix_use_runtimelinking=no
14377
14378	# Test if we are trying to use run time linking or normal
14379	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14380	# need to do runtime linking.
14381	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14382	  for ld_flag in $LDFLAGS; do
14383  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14384  	    aix_use_runtimelinking=yes
14385  	    break
14386  	  fi
14387	  done
14388	esac
14389
14390	exp_sym_flag='-bexport'
14391	no_entry_flag='-bnoentry'
14392      fi
14393
14394      # When large executables or shared objects are built, AIX ld can
14395      # have problems creating the table of contents.  If linking a library
14396      # or program results in "error TOC overflow" add -mminimal-toc to
14397      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14398      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14399
14400      archive_cmds_F77=''
14401      hardcode_direct_F77=yes
14402      hardcode_libdir_separator_F77=':'
14403      link_all_deplibs_F77=yes
14404
14405      if test "$GCC" = yes; then
14406	case $host_os in aix4.[012]|aix4.[012].*)
14407	# We only want to do this on AIX 4.2 and lower, the check
14408	# below for broken collect2 doesn't work under 4.3+
14409	  collect2name=`${CC} -print-prog-name=collect2`
14410	  if test -f "$collect2name" && \
14411  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14412	  then
14413  	  # We have reworked collect2
14414  	  hardcode_direct_F77=yes
14415	  else
14416  	  # We have old collect2
14417  	  hardcode_direct_F77=unsupported
14418  	  # It fails to find uninstalled libraries when the uninstalled
14419  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14420  	  # to unsupported forces relinking
14421  	  hardcode_minus_L_F77=yes
14422  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14423  	  hardcode_libdir_separator_F77=
14424	  fi
14425	esac
14426	shared_flag='-shared'
14427	if test "$aix_use_runtimelinking" = yes; then
14428	  shared_flag="$shared_flag "'${wl}-G'
14429	fi
14430      else
14431	# not using gcc
14432	if test "$host_cpu" = ia64; then
14433  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14434  	# chokes on -Wl,-G. The following line is correct:
14435	  shared_flag='-G'
14436	else
14437  	if test "$aix_use_runtimelinking" = yes; then
14438	    shared_flag='${wl}-G'
14439	  else
14440	    shared_flag='${wl}-bM:SRE'
14441  	fi
14442	fi
14443      fi
14444
14445      # It seems that -bexpall does not export symbols beginning with
14446      # underscore (_), so it is better to generate a list of symbols to export.
14447      always_export_symbols_F77=yes
14448      if test "$aix_use_runtimelinking" = yes; then
14449	# Warning - without using the other runtime loading flags (-brtl),
14450	# -berok will link without error, but may produce a broken library.
14451	allow_undefined_flag_F77='-berok'
14452       # Determine the default libpath from the value encoded in an empty executable.
14453       cat >conftest.$ac_ext <<_ACEOF
14454      program main
14455
14456      end
14457_ACEOF
14458rm -f conftest.$ac_objext conftest$ac_exeext
14459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460  (eval $ac_link) 2>conftest.er1
14461  ac_status=$?
14462  grep -v '^ *+' conftest.er1 >conftest.err
14463  rm -f conftest.er1
14464  cat conftest.err >&5
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); } &&
14467	 { ac_try='test -z "$ac_f77_werror_flag"
14468			 || test ! -s conftest.err'
14469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470  (eval $ac_try) 2>&5
14471  ac_status=$?
14472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473  (exit $ac_status); }; } &&
14474	 { ac_try='test -s conftest$ac_exeext'
14475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476  (eval $ac_try) 2>&5
14477  ac_status=$?
14478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479  (exit $ac_status); }; }; then
14480
14481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14482}'`
14483# Check for a 64-bit object if we didn't find anything.
14484if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14485}'`; fi
14486else
14487  echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490fi
14491rm -f conftest.err conftest.$ac_objext \
14492      conftest$ac_exeext conftest.$ac_ext
14493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14494
14495       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14496	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14497       else
14498	if test "$host_cpu" = ia64; then
14499	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14500	  allow_undefined_flag_F77="-z nodefs"
14501	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14502	else
14503	 # Determine the default libpath from the value encoded in an empty executable.
14504	 cat >conftest.$ac_ext <<_ACEOF
14505      program main
14506
14507      end
14508_ACEOF
14509rm -f conftest.$ac_objext conftest$ac_exeext
14510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511  (eval $ac_link) 2>conftest.er1
14512  ac_status=$?
14513  grep -v '^ *+' conftest.er1 >conftest.err
14514  rm -f conftest.er1
14515  cat conftest.err >&5
14516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517  (exit $ac_status); } &&
14518	 { ac_try='test -z "$ac_f77_werror_flag"
14519			 || test ! -s conftest.err'
14520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521  (eval $ac_try) 2>&5
14522  ac_status=$?
14523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524  (exit $ac_status); }; } &&
14525	 { ac_try='test -s conftest$ac_exeext'
14526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527  (eval $ac_try) 2>&5
14528  ac_status=$?
14529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530  (exit $ac_status); }; }; then
14531
14532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14533}'`
14534# Check for a 64-bit object if we didn't find anything.
14535if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14536}'`; fi
14537else
14538  echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541fi
14542rm -f conftest.err conftest.$ac_objext \
14543      conftest$ac_exeext conftest.$ac_ext
14544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14545
14546	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14547	  # Warning - without using the other run time loading flags,
14548	  # -berok will link without error, but may produce a broken library.
14549	  no_undefined_flag_F77=' ${wl}-bernotok'
14550	  allow_undefined_flag_F77=' ${wl}-berok'
14551	  # -bexpall does not export symbols beginning with underscore (_)
14552	  always_export_symbols_F77=yes
14553	  # Exported symbols can be pulled into shared objects from archives
14554	  whole_archive_flag_spec_F77=' '
14555	  archive_cmds_need_lc_F77=yes
14556	  # This is similar to how AIX traditionally builds its shared libraries.
14557	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14558	fi
14559      fi
14560      ;;
14561
14562    amigaos*)
14563      archive_cmds_F77='$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)'
14564      hardcode_libdir_flag_spec_F77='-L$libdir'
14565      hardcode_minus_L_F77=yes
14566      # see comment about different semantics on the GNU ld section
14567      ld_shlibs_F77=no
14568      ;;
14569
14570    bsdi[45]*)
14571      export_dynamic_flag_spec_F77=-rdynamic
14572      ;;
14573
14574    cygwin* | mingw* | pw32*)
14575      # When not using gcc, we currently assume that we are using
14576      # Microsoft Visual C++.
14577      # hardcode_libdir_flag_spec is actually meaningless, as there is
14578      # no search path for DLLs.
14579      hardcode_libdir_flag_spec_F77=' '
14580      allow_undefined_flag_F77=unsupported
14581      # Tell ltmain to make .lib files, not .a files.
14582      libext=lib
14583      # Tell ltmain to make .dll files, not .so files.
14584      shrext_cmds=".dll"
14585      # FIXME: Setting linknames here is a bad hack.
14586      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14587      # The linker will automatically build a .lib file if we build a DLL.
14588      old_archive_From_new_cmds_F77='true'
14589      # FIXME: Should let the user specify the lib program.
14590      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14591      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14592      enable_shared_with_static_runtimes_F77=yes
14593      ;;
14594
14595    darwin* | rhapsody*)
14596      case $host_os in
14597        rhapsody* | darwin1.[012])
14598         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14599         ;;
14600       *) # Darwin 1.3 on
14601         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14602           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14603         else
14604           case ${MACOSX_DEPLOYMENT_TARGET} in
14605             10.[012])
14606               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14607               ;;
14608             10.*)
14609               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14610               ;;
14611           esac
14612         fi
14613         ;;
14614      esac
14615      archive_cmds_need_lc_F77=no
14616      hardcode_direct_F77=no
14617      hardcode_automatic_F77=yes
14618      hardcode_shlibpath_var_F77=unsupported
14619      whole_archive_flag_spec_F77=''
14620      link_all_deplibs_F77=yes
14621    if test "$GCC" = yes ; then
14622    	output_verbose_link_cmd='echo'
14623        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14624      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14625      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14626      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14627      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14628    else
14629      case $cc_basename in
14630        xlc*)
14631         output_verbose_link_cmd='echo'
14632         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14633         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14634          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14635         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14636          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14637          ;;
14638       *)
14639         ld_shlibs_F77=no
14640          ;;
14641      esac
14642    fi
14643      ;;
14644
14645    dgux*)
14646      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14647      hardcode_libdir_flag_spec_F77='-L$libdir'
14648      hardcode_shlibpath_var_F77=no
14649      ;;
14650
14651    freebsd1*)
14652      ld_shlibs_F77=no
14653      ;;
14654
14655    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14656    # support.  Future versions do this automatically, but an explicit c++rt0.o
14657    # does not break anything, and helps significantly (at the cost of a little
14658    # extra space).
14659    freebsd2.2*)
14660      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14661      hardcode_libdir_flag_spec_F77='-R$libdir'
14662      hardcode_direct_F77=yes
14663      hardcode_shlibpath_var_F77=no
14664      ;;
14665
14666    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14667    freebsd2*)
14668      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14669      hardcode_direct_F77=yes
14670      hardcode_minus_L_F77=yes
14671      hardcode_shlibpath_var_F77=no
14672      ;;
14673
14674    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14675    freebsd* | kfreebsd*-gnu | dragonfly*)
14676      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14677      hardcode_libdir_flag_spec_F77='-R$libdir'
14678      hardcode_direct_F77=yes
14679      hardcode_shlibpath_var_F77=no
14680      ;;
14681
14682    hpux9*)
14683      if test "$GCC" = yes; then
14684	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14685      else
14686	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14687      fi
14688      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14689      hardcode_libdir_separator_F77=:
14690      hardcode_direct_F77=yes
14691
14692      # hardcode_minus_L: Not really in the search PATH,
14693      # but as the default location of the library.
14694      hardcode_minus_L_F77=yes
14695      export_dynamic_flag_spec_F77='${wl}-E'
14696      ;;
14697
14698    hpux10* | hpux11*)
14699      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14700	case $host_cpu in
14701	hppa*64*|ia64*)
14702	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14703	  ;;
14704	*)
14705	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14706	  ;;
14707	esac
14708      else
14709	case $host_cpu in
14710	hppa*64*|ia64*)
14711	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14712	  ;;
14713	*)
14714	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14715	  ;;
14716	esac
14717      fi
14718      if test "$with_gnu_ld" = no; then
14719	case $host_cpu in
14720	hppa*64*)
14721	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14722	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14723	  hardcode_libdir_separator_F77=:
14724	  hardcode_direct_F77=no
14725	  hardcode_shlibpath_var_F77=no
14726	  ;;
14727	ia64*)
14728	  hardcode_libdir_flag_spec_F77='-L$libdir'
14729	  hardcode_direct_F77=no
14730	  hardcode_shlibpath_var_F77=no
14731
14732	  # hardcode_minus_L: Not really in the search PATH,
14733	  # but as the default location of the library.
14734	  hardcode_minus_L_F77=yes
14735	  ;;
14736	*)
14737	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14738	  hardcode_libdir_separator_F77=:
14739	  hardcode_direct_F77=yes
14740	  export_dynamic_flag_spec_F77='${wl}-E'
14741
14742	  # hardcode_minus_L: Not really in the search PATH,
14743	  # but as the default location of the library.
14744	  hardcode_minus_L_F77=yes
14745	  ;;
14746	esac
14747      fi
14748      ;;
14749
14750    irix5* | irix6* | nonstopux*)
14751      if test "$GCC" = yes; then
14752	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14753      else
14754	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14755	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14756      fi
14757      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14758      hardcode_libdir_separator_F77=:
14759      link_all_deplibs_F77=yes
14760      ;;
14761
14762    netbsd*)
14763      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14764	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14765      else
14766	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14767      fi
14768      hardcode_libdir_flag_spec_F77='-R$libdir'
14769      hardcode_direct_F77=yes
14770      hardcode_shlibpath_var_F77=no
14771      ;;
14772
14773    newsos6)
14774      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775      hardcode_direct_F77=yes
14776      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14777      hardcode_libdir_separator_F77=:
14778      hardcode_shlibpath_var_F77=no
14779      ;;
14780
14781    openbsd*)
14782      hardcode_direct_F77=yes
14783      hardcode_shlibpath_var_F77=no
14784      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14785	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14786	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14787	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14788	export_dynamic_flag_spec_F77='${wl}-E'
14789      else
14790       case $host_os in
14791	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14792	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14793	   hardcode_libdir_flag_spec_F77='-R$libdir'
14794	   ;;
14795	 *)
14796	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14797	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14798	   ;;
14799       esac
14800      fi
14801      ;;
14802
14803    os2*)
14804      hardcode_libdir_flag_spec_F77='-L$libdir'
14805      hardcode_minus_L_F77=yes
14806      allow_undefined_flag_F77=unsupported
14807      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14808      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14809      ;;
14810
14811    osf3*)
14812      if test "$GCC" = yes; then
14813	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14814	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14815      else
14816	allow_undefined_flag_F77=' -expect_unresolved \*'
14817	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14818      fi
14819      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820      hardcode_libdir_separator_F77=:
14821      ;;
14822
14823    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14824      if test "$GCC" = yes; then
14825	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14826	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14827	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14828      else
14829	allow_undefined_flag_F77=' -expect_unresolved \*'
14830	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14831	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14832	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14833
14834	# Both c and cxx compiler support -rpath directly
14835	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14836      fi
14837      hardcode_libdir_separator_F77=:
14838      ;;
14839
14840    sco3.2v5*)
14841      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14842      hardcode_shlibpath_var_F77=no
14843      export_dynamic_flag_spec_F77='${wl}-Bexport'
14844      runpath_var=LD_RUN_PATH
14845      hardcode_runpath_var=yes
14846      ;;
14847
14848    solaris*)
14849      no_undefined_flag_F77=' -z text'
14850      if test "$GCC" = yes; then
14851	wlarc='${wl}'
14852	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14854	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14855      else
14856	wlarc=''
14857	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14858	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14859  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14860      fi
14861      hardcode_libdir_flag_spec_F77='-R$libdir'
14862      hardcode_shlibpath_var_F77=no
14863      case $host_os in
14864      solaris2.[0-5] | solaris2.[0-5].*) ;;
14865      *)
14866 	# The compiler driver will combine linker options so we
14867 	# cannot just pass the convience library names through
14868 	# without $wl, iff we do not link with $LD.
14869 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14870 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14871 	case $wlarc in
14872 	'')
14873 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14874 	*)
14875 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14876 	esac ;;
14877      esac
14878      link_all_deplibs_F77=yes
14879      ;;
14880
14881    sunos4*)
14882      if test "x$host_vendor" = xsequent; then
14883	# Use $CC to link under sequent, because it throws in some extra .o
14884	# files that make .init and .fini sections work.
14885	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14886      else
14887	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14888      fi
14889      hardcode_libdir_flag_spec_F77='-L$libdir'
14890      hardcode_direct_F77=yes
14891      hardcode_minus_L_F77=yes
14892      hardcode_shlibpath_var_F77=no
14893      ;;
14894
14895    sysv4)
14896      case $host_vendor in
14897	sni)
14898	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899	  hardcode_direct_F77=yes # is this really true???
14900	;;
14901	siemens)
14902	  ## LD is ld it makes a PLAMLIB
14903	  ## CC just makes a GrossModule.
14904	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14905	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14906	  hardcode_direct_F77=no
14907        ;;
14908	motorola)
14909	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14911	;;
14912      esac
14913      runpath_var='LD_RUN_PATH'
14914      hardcode_shlibpath_var_F77=no
14915      ;;
14916
14917    sysv4.3*)
14918      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919      hardcode_shlibpath_var_F77=no
14920      export_dynamic_flag_spec_F77='-Bexport'
14921      ;;
14922
14923    sysv4*MP*)
14924      if test -d /usr/nec; then
14925	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926	hardcode_shlibpath_var_F77=no
14927	runpath_var=LD_RUN_PATH
14928	hardcode_runpath_var=yes
14929	ld_shlibs_F77=yes
14930      fi
14931      ;;
14932
14933    sysv4.2uw2*)
14934      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14935      hardcode_direct_F77=yes
14936      hardcode_minus_L_F77=no
14937      hardcode_shlibpath_var_F77=no
14938      hardcode_runpath_var=yes
14939      runpath_var=LD_RUN_PATH
14940      ;;
14941
14942   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14943      no_undefined_flag_F77='${wl}-z ${wl}text'
14944      if test "$GCC" = yes; then
14945	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14946      else
14947	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948      fi
14949      runpath_var='LD_RUN_PATH'
14950      hardcode_shlibpath_var_F77=no
14951      ;;
14952
14953    sysv5*)
14954      no_undefined_flag_F77=' -z text'
14955      # $CC -shared without GNU ld will not create a library from C++
14956      # object files and a static libstdc++, better avoid it by now
14957      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14958      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14959  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14960      hardcode_libdir_flag_spec_F77=
14961      hardcode_shlibpath_var_F77=no
14962      runpath_var='LD_RUN_PATH'
14963      ;;
14964
14965    uts4*)
14966      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14967      hardcode_libdir_flag_spec_F77='-L$libdir'
14968      hardcode_shlibpath_var_F77=no
14969      ;;
14970
14971    *)
14972      ld_shlibs_F77=no
14973      ;;
14974    esac
14975  fi
14976
14977echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14978echo "${ECHO_T}$ld_shlibs_F77" >&6
14979test "$ld_shlibs_F77" = no && can_build_shared=no
14980
14981variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14982if test "$GCC" = yes; then
14983  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14984fi
14985
14986#
14987# Do we need to explicitly link libc?
14988#
14989case "x$archive_cmds_need_lc_F77" in
14990x|xyes)
14991  # Assume -lc should be added
14992  archive_cmds_need_lc_F77=yes
14993
14994  if test "$enable_shared" = yes && test "$GCC" = yes; then
14995    case $archive_cmds_F77 in
14996    *'~'*)
14997      # FIXME: we may have to deal with multi-command sequences.
14998      ;;
14999    '$CC '*)
15000      # Test whether the compiler implicitly links with -lc since on some
15001      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15002      # to ld, don't add -lc before -lgcc.
15003      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15004echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15005      $rm conftest*
15006      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15007
15008      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009  (eval $ac_compile) 2>&5
15010  ac_status=$?
15011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012  (exit $ac_status); } 2>conftest.err; then
15013        soname=conftest
15014        lib=conftest
15015        libobjs=conftest.$ac_objext
15016        deplibs=
15017        wl=$lt_prog_compiler_wl_F77
15018        compiler_flags=-v
15019        linker_flags=-v
15020        verstring=
15021        output_objdir=.
15022        libname=conftest
15023        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15024        allow_undefined_flag_F77=
15025        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15026  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15027  ac_status=$?
15028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029  (exit $ac_status); }
15030        then
15031	  archive_cmds_need_lc_F77=no
15032        else
15033	  archive_cmds_need_lc_F77=yes
15034        fi
15035        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15036      else
15037        cat conftest.err 1>&5
15038      fi
15039      $rm conftest*
15040      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15041echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15042      ;;
15043    esac
15044  fi
15045  ;;
15046esac
15047
15048echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15049echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15050library_names_spec=
15051libname_spec='lib$name'
15052soname_spec=
15053shrext_cmds=".so"
15054postinstall_cmds=
15055postuninstall_cmds=
15056finish_cmds=
15057finish_eval=
15058shlibpath_var=
15059shlibpath_overrides_runpath=unknown
15060version_type=none
15061dynamic_linker="$host_os ld.so"
15062sys_lib_dlsearch_path_spec="/lib /usr/lib"
15063if test "$GCC" = yes; then
15064  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15065  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15066    # if the path contains ";" then we assume it to be the separator
15067    # otherwise default to the standard path separator (i.e. ":") - it is
15068    # assumed that no part of a normal pathname contains ";" but that should
15069    # okay in the real world where ";" in dirpaths is itself problematic.
15070    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15071  else
15072    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15073  fi
15074else
15075  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15076fi
15077need_lib_prefix=unknown
15078hardcode_into_libs=no
15079
15080# when you set need_version to no, make sure it does not cause -set_version
15081# flags to be left without arguments
15082need_version=unknown
15083
15084case $host_os in
15085aix3*)
15086  version_type=linux
15087  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15088  shlibpath_var=LIBPATH
15089
15090  # AIX 3 has no versioning support, so we append a major version to the name.
15091  soname_spec='${libname}${release}${shared_ext}$major'
15092  ;;
15093
15094aix4* | aix5*)
15095  version_type=linux
15096  need_lib_prefix=no
15097  need_version=no
15098  hardcode_into_libs=yes
15099  if test "$host_cpu" = ia64; then
15100    # AIX 5 supports IA64
15101    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15102    shlibpath_var=LD_LIBRARY_PATH
15103  else
15104    # With GCC up to 2.95.x, collect2 would create an import file
15105    # for dependence libraries.  The import file would start with
15106    # the line `#! .'.  This would cause the generated library to
15107    # depend on `.', always an invalid library.  This was fixed in
15108    # development snapshots of GCC prior to 3.0.
15109    case $host_os in
15110      aix4 | aix4.[01] | aix4.[01].*)
15111      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15112	   echo ' yes '
15113	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15114	:
15115      else
15116	can_build_shared=no
15117      fi
15118      ;;
15119    esac
15120    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15121    # soname into executable. Probably we can add versioning support to
15122    # collect2, so additional links can be useful in future.
15123    if test "$aix_use_runtimelinking" = yes; then
15124      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15125      # instead of lib<name>.a to let people know that these are not
15126      # typical AIX shared libraries.
15127      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128    else
15129      # We preserve .a as extension for shared libraries through AIX4.2
15130      # and later when we are not doing run time linking.
15131      library_names_spec='${libname}${release}.a $libname.a'
15132      soname_spec='${libname}${release}${shared_ext}$major'
15133    fi
15134    shlibpath_var=LIBPATH
15135  fi
15136  ;;
15137
15138amigaos*)
15139  library_names_spec='$libname.ixlibrary $libname.a'
15140  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15141  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15142  ;;
15143
15144beos*)
15145  library_names_spec='${libname}${shared_ext}'
15146  dynamic_linker="$host_os ld.so"
15147  shlibpath_var=LIBRARY_PATH
15148  ;;
15149
15150bsdi[45]*)
15151  version_type=linux
15152  need_version=no
15153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154  soname_spec='${libname}${release}${shared_ext}$major'
15155  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15156  shlibpath_var=LD_LIBRARY_PATH
15157  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15158  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15159  # the default ld.so.conf also contains /usr/contrib/lib and
15160  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15161  # libtool to hard-code these into programs
15162  ;;
15163
15164cygwin* | mingw* | pw32*)
15165  version_type=windows
15166  shrext_cmds=".dll"
15167  need_version=no
15168  need_lib_prefix=no
15169
15170  case $GCC,$host_os in
15171  yes,cygwin* | yes,mingw* | yes,pw32*)
15172    library_names_spec='$libname.dll.a'
15173    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15174    postinstall_cmds='base_file=`basename \${file}`~
15175      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15176      dldir=$destdir/`dirname \$dlpath`~
15177      test -d \$dldir || mkdir -p \$dldir~
15178      $install_prog $dir/$dlname \$dldir/$dlname~
15179      chmod a+x \$dldir/$dlname'
15180    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15181      dlpath=$dir/\$dldll~
15182       $rm \$dlpath'
15183    shlibpath_overrides_runpath=yes
15184
15185    case $host_os in
15186    cygwin*)
15187      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15188      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15189      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15190      ;;
15191    mingw*)
15192      # MinGW DLLs use traditional 'lib' prefix
15193      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15194      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15195      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15196        # It is most probably a Windows format PATH printed by
15197        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15198        # path with ; separators, and with drive letters. We can handle the
15199        # drive letters (cygwin fileutils understands them), so leave them,
15200        # especially as we might pass files found there to a mingw objdump,
15201        # which wouldn't understand a cygwinified path. Ahh.
15202        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15203      else
15204        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15205      fi
15206      ;;
15207    pw32*)
15208      # pw32 DLLs use 'pw' prefix rather than 'lib'
15209      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15210      ;;
15211    esac
15212    ;;
15213
15214  *)
15215    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15216    ;;
15217  esac
15218  dynamic_linker='Win32 ld.exe'
15219  # FIXME: first we should search . and the directory the executable is in
15220  shlibpath_var=PATH
15221  ;;
15222
15223darwin* | rhapsody*)
15224  dynamic_linker="$host_os dyld"
15225  version_type=darwin
15226  need_lib_prefix=no
15227  need_version=no
15228  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15229  soname_spec='${libname}${release}${major}$shared_ext'
15230  shlibpath_overrides_runpath=yes
15231  shlibpath_var=DYLD_LIBRARY_PATH
15232  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15233  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15234  if test "$GCC" = yes; then
15235    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15236  else
15237    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15238  fi
15239  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15240  ;;
15241
15242dgux*)
15243  version_type=linux
15244  need_lib_prefix=no
15245  need_version=no
15246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15247  soname_spec='${libname}${release}${shared_ext}$major'
15248  shlibpath_var=LD_LIBRARY_PATH
15249  ;;
15250
15251freebsd1*)
15252  dynamic_linker=no
15253  ;;
15254
15255kfreebsd*-gnu)
15256  version_type=linux
15257  need_lib_prefix=no
15258  need_version=no
15259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260  soname_spec='${libname}${release}${shared_ext}$major'
15261  shlibpath_var=LD_LIBRARY_PATH
15262  shlibpath_overrides_runpath=no
15263  hardcode_into_libs=yes
15264  dynamic_linker='GNU ld.so'
15265  ;;
15266
15267freebsd* | dragonfly*)
15268  # DragonFly does not have aout.  When/if they implement a new
15269  # versioning mechanism, adjust this.
15270  if test -x /usr/bin/objformat; then
15271    objformat=`/usr/bin/objformat`
15272  else
15273    case $host_os in
15274    freebsd[123]*) objformat=aout ;;
15275    *) objformat=elf ;;
15276    esac
15277  fi
15278  version_type=freebsd-$objformat
15279  case $version_type in
15280    freebsd-elf*)
15281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15282      need_version=no
15283      need_lib_prefix=no
15284      ;;
15285    freebsd-*)
15286      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15287      need_version=yes
15288      ;;
15289  esac
15290  shlibpath_var=LD_LIBRARY_PATH
15291  case $host_os in
15292  freebsd2*)
15293    shlibpath_overrides_runpath=yes
15294    ;;
15295  freebsd3.[01]* | freebsdelf3.[01]*)
15296    shlibpath_overrides_runpath=yes
15297    hardcode_into_libs=yes
15298    ;;
15299  *) # from 3.2 on
15300    shlibpath_overrides_runpath=no
15301    hardcode_into_libs=yes
15302    ;;
15303  esac
15304  ;;
15305
15306gnu*)
15307  version_type=linux
15308  need_lib_prefix=no
15309  need_version=no
15310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15311  soname_spec='${libname}${release}${shared_ext}$major'
15312  shlibpath_var=LD_LIBRARY_PATH
15313  hardcode_into_libs=yes
15314  ;;
15315
15316hpux9* | hpux10* | hpux11*)
15317  # Give a soname corresponding to the major version so that dld.sl refuses to
15318  # link against other versions.
15319  version_type=sunos
15320  need_lib_prefix=no
15321  need_version=no
15322  case $host_cpu in
15323  ia64*)
15324    shrext_cmds='.so'
15325    hardcode_into_libs=yes
15326    dynamic_linker="$host_os dld.so"
15327    shlibpath_var=LD_LIBRARY_PATH
15328    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330    soname_spec='${libname}${release}${shared_ext}$major'
15331    if test "X$HPUX_IA64_MODE" = X32; then
15332      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15333    else
15334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15335    fi
15336    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15337    ;;
15338   hppa*64*)
15339     shrext_cmds='.sl'
15340     hardcode_into_libs=yes
15341     dynamic_linker="$host_os dld.sl"
15342     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345     soname_spec='${libname}${release}${shared_ext}$major'
15346     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15347     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15348     ;;
15349   *)
15350    shrext_cmds='.sl'
15351    dynamic_linker="$host_os dld.sl"
15352    shlibpath_var=SHLIB_PATH
15353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355    soname_spec='${libname}${release}${shared_ext}$major'
15356    ;;
15357  esac
15358  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15359  postinstall_cmds='chmod 555 $lib'
15360  ;;
15361
15362irix5* | irix6* | nonstopux*)
15363  case $host_os in
15364    nonstopux*) version_type=nonstopux ;;
15365    *)
15366	if test "$lt_cv_prog_gnu_ld" = yes; then
15367		version_type=linux
15368	else
15369		version_type=irix
15370	fi ;;
15371  esac
15372  need_lib_prefix=no
15373  need_version=no
15374  soname_spec='${libname}${release}${shared_ext}$major'
15375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15376  case $host_os in
15377  irix5* | nonstopux*)
15378    libsuff= shlibsuff=
15379    ;;
15380  *)
15381    case $LD in # libtool.m4 will add one of these switches to LD
15382    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15383      libsuff= shlibsuff= libmagic=32-bit;;
15384    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15385      libsuff=32 shlibsuff=N32 libmagic=N32;;
15386    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15387      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15388    *) libsuff= shlibsuff= libmagic=never-match;;
15389    esac
15390    ;;
15391  esac
15392  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15393  shlibpath_overrides_runpath=no
15394  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15395  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15396  hardcode_into_libs=yes
15397  ;;
15398
15399# No shared lib support for Linux oldld, aout, or coff.
15400linux*oldld* | linux*aout* | linux*coff*)
15401  dynamic_linker=no
15402  ;;
15403
15404# This must be Linux ELF.
15405linux*)
15406  version_type=linux
15407  need_lib_prefix=no
15408  need_version=no
15409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410  soname_spec='${libname}${release}${shared_ext}$major'
15411  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15412  shlibpath_var=LD_LIBRARY_PATH
15413  shlibpath_overrides_runpath=no
15414  # This implies no fast_install, which is unacceptable.
15415  # Some rework will be needed to allow for fast_install
15416  # before this can be enabled.
15417  hardcode_into_libs=yes
15418
15419  # Append ld.so.conf contents to the search path
15420  if test -f /etc/ld.so.conf; then
15421    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15422    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15423  fi
15424
15425  # We used to test for /lib/ld.so.1 and disable shared libraries on
15426  # powerpc, because MkLinux only supported shared libraries with the
15427  # GNU dynamic linker.  Since this was broken with cross compilers,
15428  # most powerpc-linux boxes support dynamic linking these days and
15429  # people can always --disable-shared, the test was removed, and we
15430  # assume the GNU/Linux dynamic linker is in use.
15431  dynamic_linker='GNU/Linux ld.so'
15432  ;;
15433
15434knetbsd*-gnu)
15435  version_type=linux
15436  need_lib_prefix=no
15437  need_version=no
15438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15439  soname_spec='${libname}${release}${shared_ext}$major'
15440  shlibpath_var=LD_LIBRARY_PATH
15441  shlibpath_overrides_runpath=no
15442  hardcode_into_libs=yes
15443  dynamic_linker='GNU ld.so'
15444  ;;
15445
15446netbsd*)
15447  version_type=sunos
15448  need_lib_prefix=no
15449  need_version=no
15450  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15451    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15453    dynamic_linker='NetBSD (a.out) ld.so'
15454  else
15455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15456    soname_spec='${libname}${release}${shared_ext}$major'
15457    dynamic_linker='NetBSD ld.elf_so'
15458  fi
15459  shlibpath_var=LD_LIBRARY_PATH
15460  shlibpath_overrides_runpath=yes
15461  hardcode_into_libs=yes
15462  ;;
15463
15464newsos6)
15465  version_type=linux
15466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467  shlibpath_var=LD_LIBRARY_PATH
15468  shlibpath_overrides_runpath=yes
15469  ;;
15470
15471nto-qnx*)
15472  version_type=linux
15473  need_lib_prefix=no
15474  need_version=no
15475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476  soname_spec='${libname}${release}${shared_ext}$major'
15477  shlibpath_var=LD_LIBRARY_PATH
15478  shlibpath_overrides_runpath=yes
15479  ;;
15480
15481openbsd*)
15482  version_type=sunos
15483  need_lib_prefix=no
15484  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15485  case $host_os in
15486    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15487    *)                         need_version=no  ;;
15488  esac
15489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15490  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15491  shlibpath_var=LD_LIBRARY_PATH
15492  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15493    case $host_os in
15494      openbsd2.[89] | openbsd2.[89].*)
15495	shlibpath_overrides_runpath=no
15496	;;
15497      *)
15498	shlibpath_overrides_runpath=yes
15499	;;
15500      esac
15501  else
15502    shlibpath_overrides_runpath=yes
15503  fi
15504  ;;
15505
15506os2*)
15507  libname_spec='$name'
15508  shrext_cmds=".dll"
15509  need_lib_prefix=no
15510  library_names_spec='$libname${shared_ext} $libname.a'
15511  dynamic_linker='OS/2 ld.exe'
15512  shlibpath_var=LIBPATH
15513  ;;
15514
15515osf3* | osf4* | osf5*)
15516  version_type=osf
15517  need_lib_prefix=no
15518  need_version=no
15519  soname_spec='${libname}${release}${shared_ext}$major'
15520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521  shlibpath_var=LD_LIBRARY_PATH
15522  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15523  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15524  ;;
15525
15526sco3.2v5*)
15527  version_type=osf
15528  soname_spec='${libname}${release}${shared_ext}$major'
15529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530  shlibpath_var=LD_LIBRARY_PATH
15531  ;;
15532
15533solaris*)
15534  version_type=linux
15535  need_lib_prefix=no
15536  need_version=no
15537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538  soname_spec='${libname}${release}${shared_ext}$major'
15539  shlibpath_var=LD_LIBRARY_PATH
15540  shlibpath_overrides_runpath=yes
15541  hardcode_into_libs=yes
15542  # ldd complains unless libraries are executable
15543  postinstall_cmds='chmod +x $lib'
15544  ;;
15545
15546sunos4*)
15547  version_type=sunos
15548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15550  shlibpath_var=LD_LIBRARY_PATH
15551  shlibpath_overrides_runpath=yes
15552  if test "$with_gnu_ld" = yes; then
15553    need_lib_prefix=no
15554  fi
15555  need_version=yes
15556  ;;
15557
15558sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15559  version_type=linux
15560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561  soname_spec='${libname}${release}${shared_ext}$major'
15562  shlibpath_var=LD_LIBRARY_PATH
15563  case $host_vendor in
15564    sni)
15565      shlibpath_overrides_runpath=no
15566      need_lib_prefix=no
15567      export_dynamic_flag_spec='${wl}-Blargedynsym'
15568      runpath_var=LD_RUN_PATH
15569      ;;
15570    siemens)
15571      need_lib_prefix=no
15572      ;;
15573    motorola)
15574      need_lib_prefix=no
15575      need_version=no
15576      shlibpath_overrides_runpath=no
15577      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15578      ;;
15579  esac
15580  ;;
15581
15582sysv4*MP*)
15583  if test -d /usr/nec ;then
15584    version_type=linux
15585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15586    soname_spec='$libname${shared_ext}.$major'
15587    shlibpath_var=LD_LIBRARY_PATH
15588  fi
15589  ;;
15590
15591uts4*)
15592  version_type=linux
15593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594  soname_spec='${libname}${release}${shared_ext}$major'
15595  shlibpath_var=LD_LIBRARY_PATH
15596  ;;
15597
15598*)
15599  dynamic_linker=no
15600  ;;
15601esac
15602echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15603echo "${ECHO_T}$dynamic_linker" >&6
15604test "$dynamic_linker" = no && can_build_shared=no
15605
15606echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15607echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15608hardcode_action_F77=
15609if test -n "$hardcode_libdir_flag_spec_F77" || \
15610   test -n "$runpath_var_F77" || \
15611   test "X$hardcode_automatic_F77" = "Xyes" ; then
15612
15613  # We can hardcode non-existant directories.
15614  if test "$hardcode_direct_F77" != no &&
15615     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15616     # have to relink, otherwise we might link with an installed library
15617     # when we should be linking with a yet-to-be-installed one
15618     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15619     test "$hardcode_minus_L_F77" != no; then
15620    # Linking always hardcodes the temporary library directory.
15621    hardcode_action_F77=relink
15622  else
15623    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15624    hardcode_action_F77=immediate
15625  fi
15626else
15627  # We cannot hardcode anything, or else we can only hardcode existing
15628  # directories.
15629  hardcode_action_F77=unsupported
15630fi
15631echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15632echo "${ECHO_T}$hardcode_action_F77" >&6
15633
15634if test "$hardcode_action_F77" = relink; then
15635  # Fast installation is not supported
15636  enable_fast_install=no
15637elif test "$shlibpath_overrides_runpath" = yes ||
15638     test "$enable_shared" = no; then
15639  # Fast installation is not necessary
15640  enable_fast_install=needless
15641fi
15642
15643striplib=
15644old_striplib=
15645echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15646echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15647if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15648  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15649  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15650  echo "$as_me:$LINENO: result: yes" >&5
15651echo "${ECHO_T}yes" >&6
15652else
15653# FIXME - insert some real tests, host_os isn't really good enough
15654  case $host_os in
15655   darwin*)
15656       if test -n "$STRIP" ; then
15657         striplib="$STRIP -x"
15658         echo "$as_me:$LINENO: result: yes" >&5
15659echo "${ECHO_T}yes" >&6
15660       else
15661  echo "$as_me:$LINENO: result: no" >&5
15662echo "${ECHO_T}no" >&6
15663fi
15664       ;;
15665   *)
15666  echo "$as_me:$LINENO: result: no" >&5
15667echo "${ECHO_T}no" >&6
15668    ;;
15669  esac
15670fi
15671
15672
15673
15674# The else clause should only fire when bootstrapping the
15675# libtool distribution, otherwise you forgot to ship ltmain.sh
15676# with your package, and you will get complaints that there are
15677# no rules to generate ltmain.sh.
15678if test -f "$ltmain"; then
15679  # See if we are running on zsh, and set the options which allow our commands through
15680  # without removal of \ escapes.
15681  if test -n "${ZSH_VERSION+set}" ; then
15682    setopt NO_GLOB_SUBST
15683  fi
15684  # Now quote all the things that may contain metacharacters while being
15685  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15686  # variables and quote the copies for generation of the libtool script.
15687  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15688    SED SHELL STRIP \
15689    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15690    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15691    deplibs_check_method reload_flag reload_cmds need_locks \
15692    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15693    lt_cv_sys_global_symbol_to_c_name_address \
15694    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15695    old_postinstall_cmds old_postuninstall_cmds \
15696    compiler_F77 \
15697    CC_F77 \
15698    LD_F77 \
15699    lt_prog_compiler_wl_F77 \
15700    lt_prog_compiler_pic_F77 \
15701    lt_prog_compiler_static_F77 \
15702    lt_prog_compiler_no_builtin_flag_F77 \
15703    export_dynamic_flag_spec_F77 \
15704    thread_safe_flag_spec_F77 \
15705    whole_archive_flag_spec_F77 \
15706    enable_shared_with_static_runtimes_F77 \
15707    old_archive_cmds_F77 \
15708    old_archive_from_new_cmds_F77 \
15709    predep_objects_F77 \
15710    postdep_objects_F77 \
15711    predeps_F77 \
15712    postdeps_F77 \
15713    compiler_lib_search_path_F77 \
15714    archive_cmds_F77 \
15715    archive_expsym_cmds_F77 \
15716    postinstall_cmds_F77 \
15717    postuninstall_cmds_F77 \
15718    old_archive_from_expsyms_cmds_F77 \
15719    allow_undefined_flag_F77 \
15720    no_undefined_flag_F77 \
15721    export_symbols_cmds_F77 \
15722    hardcode_libdir_flag_spec_F77 \
15723    hardcode_libdir_flag_spec_ld_F77 \
15724    hardcode_libdir_separator_F77 \
15725    hardcode_automatic_F77 \
15726    module_cmds_F77 \
15727    module_expsym_cmds_F77 \
15728    lt_cv_prog_compiler_c_o_F77 \
15729    exclude_expsyms_F77 \
15730    include_expsyms_F77; do
15731
15732    case $var in
15733    old_archive_cmds_F77 | \
15734    old_archive_from_new_cmds_F77 | \
15735    archive_cmds_F77 | \
15736    archive_expsym_cmds_F77 | \
15737    module_cmds_F77 | \
15738    module_expsym_cmds_F77 | \
15739    old_archive_from_expsyms_cmds_F77 | \
15740    export_symbols_cmds_F77 | \
15741    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15742    postinstall_cmds | postuninstall_cmds | \
15743    old_postinstall_cmds | old_postuninstall_cmds | \
15744    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15745      # Double-quote double-evaled strings.
15746      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15747      ;;
15748    *)
15749      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15750      ;;
15751    esac
15752  done
15753
15754  case $lt_echo in
15755  *'\$0 --fallback-echo"')
15756    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15757    ;;
15758  esac
15759
15760cfgfile="$ofile"
15761
15762  cat <<__EOF__ >> "$cfgfile"
15763# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15764
15765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15766
15767# Shell to use when invoking shell scripts.
15768SHELL=$lt_SHELL
15769
15770# Whether or not to build shared libraries.
15771build_libtool_libs=$enable_shared
15772
15773# Whether or not to build static libraries.
15774build_old_libs=$enable_static
15775
15776# Whether or not to add -lc for building shared libraries.
15777build_libtool_need_lc=$archive_cmds_need_lc_F77
15778
15779# Whether or not to disallow shared libs when runtime libs are static
15780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15781
15782# Whether or not to optimize for fast installation.
15783fast_install=$enable_fast_install
15784
15785# The host system.
15786host_alias=$host_alias
15787host=$host
15788host_os=$host_os
15789
15790# The build system.
15791build_alias=$build_alias
15792build=$build
15793build_os=$build_os
15794
15795# An echo program that does not interpret backslashes.
15796echo=$lt_echo
15797
15798# The archiver.
15799AR=$lt_AR
15800AR_FLAGS=$lt_AR_FLAGS
15801
15802# A C compiler.
15803LTCC=$lt_LTCC
15804
15805# A language-specific compiler.
15806CC=$lt_compiler_F77
15807
15808# Is the compiler the GNU C compiler?
15809with_gcc=$GCC_F77
15810
15811# An ERE matcher.
15812EGREP=$lt_EGREP
15813
15814# The linker used to build libraries.
15815LD=$lt_LD_F77
15816
15817# Whether we need hard or soft links.
15818LN_S=$lt_LN_S
15819
15820# A BSD-compatible nm program.
15821NM=$lt_NM
15822
15823# A symbol stripping program
15824STRIP=$lt_STRIP
15825
15826# Used to examine libraries when file_magic_cmd begins "file"
15827MAGIC_CMD=$MAGIC_CMD
15828
15829# Used on cygwin: DLL creation program.
15830DLLTOOL="$DLLTOOL"
15831
15832# Used on cygwin: object dumper.
15833OBJDUMP="$OBJDUMP"
15834
15835# Used on cygwin: assembler.
15836AS="$AS"
15837
15838# The name of the directory that contains temporary libtool files.
15839objdir=$objdir
15840
15841# How to create reloadable object files.
15842reload_flag=$lt_reload_flag
15843reload_cmds=$lt_reload_cmds
15844
15845# How to pass a linker flag through the compiler.
15846wl=$lt_lt_prog_compiler_wl_F77
15847
15848# Object file suffix (normally "o").
15849objext="$ac_objext"
15850
15851# Old archive suffix (normally "a").
15852libext="$libext"
15853
15854# Shared library suffix (normally ".so").
15855shrext_cmds='$shrext_cmds'
15856
15857# Executable file suffix (normally "").
15858exeext="$exeext"
15859
15860# Additional compiler flags for building library objects.
15861pic_flag=$lt_lt_prog_compiler_pic_F77
15862pic_mode=$pic_mode
15863
15864# What is the maximum length of a command?
15865max_cmd_len=$lt_cv_sys_max_cmd_len
15866
15867# Does compiler simultaneously support -c and -o options?
15868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15869
15870# Must we lock files when doing compilation?
15871need_locks=$lt_need_locks
15872
15873# Do we need the lib prefix for modules?
15874need_lib_prefix=$need_lib_prefix
15875
15876# Do we need a version for libraries?
15877need_version=$need_version
15878
15879# Whether dlopen is supported.
15880dlopen_support=$enable_dlopen
15881
15882# Whether dlopen of programs is supported.
15883dlopen_self=$enable_dlopen_self
15884
15885# Whether dlopen of statically linked programs is supported.
15886dlopen_self_static=$enable_dlopen_self_static
15887
15888# Compiler flag to prevent dynamic linking.
15889link_static_flag=$lt_lt_prog_compiler_static_F77
15890
15891# Compiler flag to turn off builtin functions.
15892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15893
15894# Compiler flag to allow reflexive dlopens.
15895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15896
15897# Compiler flag to generate shared objects directly from archives.
15898whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15899
15900# Compiler flag to generate thread-safe objects.
15901thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15902
15903# Library versioning type.
15904version_type=$version_type
15905
15906# Format of library name prefix.
15907libname_spec=$lt_libname_spec
15908
15909# List of archive names.  First name is the real one, the rest are links.
15910# The last name is the one that the linker finds with -lNAME.
15911library_names_spec=$lt_library_names_spec
15912
15913# The coded name of the library, if different from the real name.
15914soname_spec=$lt_soname_spec
15915
15916# Commands used to build and install an old-style archive.
15917RANLIB=$lt_RANLIB
15918old_archive_cmds=$lt_old_archive_cmds_F77
15919old_postinstall_cmds=$lt_old_postinstall_cmds
15920old_postuninstall_cmds=$lt_old_postuninstall_cmds
15921
15922# Create an old-style archive from a shared archive.
15923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15924
15925# Create a temporary old-style archive to link instead of a shared archive.
15926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15927
15928# Commands used to build and install a shared archive.
15929archive_cmds=$lt_archive_cmds_F77
15930archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15931postinstall_cmds=$lt_postinstall_cmds
15932postuninstall_cmds=$lt_postuninstall_cmds
15933
15934# Commands used to build a loadable module (assumed same as above if empty)
15935module_cmds=$lt_module_cmds_F77
15936module_expsym_cmds=$lt_module_expsym_cmds_F77
15937
15938# Commands to strip libraries.
15939old_striplib=$lt_old_striplib
15940striplib=$lt_striplib
15941
15942# Dependencies to place before the objects being linked to create a
15943# shared library.
15944predep_objects=$lt_predep_objects_F77
15945
15946# Dependencies to place after the objects being linked to create a
15947# shared library.
15948postdep_objects=$lt_postdep_objects_F77
15949
15950# Dependencies to place before the objects being linked to create a
15951# shared library.
15952predeps=$lt_predeps_F77
15953
15954# Dependencies to place after the objects being linked to create a
15955# shared library.
15956postdeps=$lt_postdeps_F77
15957
15958# The library search path used internally by the compiler when linking
15959# a shared library.
15960compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15961
15962# Method to check whether dependent libraries are shared objects.
15963deplibs_check_method=$lt_deplibs_check_method
15964
15965# Command to use when deplibs_check_method == file_magic.
15966file_magic_cmd=$lt_file_magic_cmd
15967
15968# Flag that allows shared libraries with undefined symbols to be built.
15969allow_undefined_flag=$lt_allow_undefined_flag_F77
15970
15971# Flag that forces no undefined symbols.
15972no_undefined_flag=$lt_no_undefined_flag_F77
15973
15974# Commands used to finish a libtool library installation in a directory.
15975finish_cmds=$lt_finish_cmds
15976
15977# Same as above, but a single script fragment to be evaled but not shown.
15978finish_eval=$lt_finish_eval
15979
15980# Take the output of nm and produce a listing of raw symbols and C names.
15981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15982
15983# Transform the output of nm in a proper C declaration
15984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15985
15986# Transform the output of nm in a C name address pair
15987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15988
15989# This is the shared library runtime path variable.
15990runpath_var=$runpath_var
15991
15992# This is the shared library path variable.
15993shlibpath_var=$shlibpath_var
15994
15995# Is shlibpath searched before the hard-coded library search path?
15996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15997
15998# How to hardcode a shared library path into an executable.
15999hardcode_action=$hardcode_action_F77
16000
16001# Whether we should hardcode library paths into libraries.
16002hardcode_into_libs=$hardcode_into_libs
16003
16004# Flag to hardcode \$libdir into a binary during linking.
16005# This must work even if \$libdir does not exist.
16006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16007
16008# If ld is used when linking, flag to hardcode \$libdir into
16009# a binary during linking. This must work even if \$libdir does
16010# not exist.
16011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16012
16013# Whether we need a single -rpath flag with a separated argument.
16014hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16015
16016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16017# resulting binary.
16018hardcode_direct=$hardcode_direct_F77
16019
16020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16021# resulting binary.
16022hardcode_minus_L=$hardcode_minus_L_F77
16023
16024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16025# the resulting binary.
16026hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16027
16028# Set to yes if building a shared library automatically hardcodes DIR into the library
16029# and all subsequent libraries and executables linked against it.
16030hardcode_automatic=$hardcode_automatic_F77
16031
16032# Variables whose values should be saved in libtool wrapper scripts and
16033# restored at relink time.
16034variables_saved_for_relink="$variables_saved_for_relink"
16035
16036# Whether libtool must link a program against all its dependency libraries.
16037link_all_deplibs=$link_all_deplibs_F77
16038
16039# Compile-time system search path for libraries
16040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16041
16042# Run-time system search path for libraries
16043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16044
16045# Fix the shell variable \$srcfile for the compiler.
16046fix_srcfile_path="$fix_srcfile_path_F77"
16047
16048# Set to yes if exported symbols are required.
16049always_export_symbols=$always_export_symbols_F77
16050
16051# The commands to list exported symbols.
16052export_symbols_cmds=$lt_export_symbols_cmds_F77
16053
16054# The commands to extract the exported symbol list from a shared archive.
16055extract_expsyms_cmds=$lt_extract_expsyms_cmds
16056
16057# Symbols that should not be listed in the preloaded symbols.
16058exclude_expsyms=$lt_exclude_expsyms_F77
16059
16060# Symbols that must always be exported.
16061include_expsyms=$lt_include_expsyms_F77
16062
16063# ### END LIBTOOL TAG CONFIG: $tagname
16064
16065__EOF__
16066
16067
16068else
16069  # If there is no Makefile yet, we rely on a make rule to execute
16070  # `config.status --recheck' to rerun these tests and create the
16071  # libtool script then.
16072  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16073  if test -f "$ltmain_in"; then
16074    test -f Makefile && make "$ltmain"
16075  fi
16076fi
16077
16078
16079ac_ext=c
16080ac_cpp='$CPP $CPPFLAGS'
16081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085CC="$lt_save_CC"
16086
16087	else
16088	  tagname=""
16089	fi
16090	;;
16091
16092      GCJ)
16093	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16094
16095
16096
16097# Source file extension for Java test sources.
16098ac_ext=java
16099
16100# Object file extension for compiled Java test sources.
16101objext=o
16102objext_GCJ=$objext
16103
16104# Code to be used in simple compile tests
16105lt_simple_compile_test_code="class foo {}\n"
16106
16107# Code to be used in simple link tests
16108lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16109
16110# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16111
16112# If no C compiler was specified, use CC.
16113LTCC=${LTCC-"$CC"}
16114
16115# Allow CC to be a program name with arguments.
16116compiler=$CC
16117
16118
16119# save warnings/boilerplate of simple test code
16120ac_outfile=conftest.$ac_objext
16121printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16123_lt_compiler_boilerplate=`cat conftest.err`
16124$rm conftest*
16125
16126ac_outfile=conftest.$ac_objext
16127printf "$lt_simple_link_test_code" >conftest.$ac_ext
16128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16129_lt_linker_boilerplate=`cat conftest.err`
16130$rm conftest*
16131
16132
16133# Allow CC to be a program name with arguments.
16134lt_save_CC="$CC"
16135CC=${GCJ-"gcj"}
16136compiler=$CC
16137compiler_GCJ=$CC
16138for cc_temp in $compiler""; do
16139  case $cc_temp in
16140    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16141    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16142    \-*) ;;
16143    *) break;;
16144  esac
16145done
16146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16147
16148
16149# GCJ did not exist at the time GCC didn't implicitly link libc in.
16150archive_cmds_need_lc_GCJ=no
16151
16152old_archive_cmds_GCJ=$old_archive_cmds
16153
16154
16155lt_prog_compiler_no_builtin_flag_GCJ=
16156
16157if test "$GCC" = yes; then
16158  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16159
16160
16161echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16162echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16163if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16164  echo $ECHO_N "(cached) $ECHO_C" >&6
16165else
16166  lt_cv_prog_compiler_rtti_exceptions=no
16167  ac_outfile=conftest.$ac_objext
16168   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16169   lt_compiler_flag="-fno-rtti -fno-exceptions"
16170   # Insert the option either (1) after the last *FLAGS variable, or
16171   # (2) before a word containing "conftest.", or (3) at the end.
16172   # Note that $ac_compile itself does not contain backslashes and begins
16173   # with a dollar sign (not a hyphen), so the echo should work correctly.
16174   # The option is referenced via a variable to avoid confusing sed.
16175   lt_compile=`echo "$ac_compile" | $SED \
16176   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16177   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16178   -e 's:$: $lt_compiler_flag:'`
16179   (eval echo "\"\$as_me:16179: $lt_compile\"" >&5)
16180   (eval "$lt_compile" 2>conftest.err)
16181   ac_status=$?
16182   cat conftest.err >&5
16183   echo "$as_me:16183: \$? = $ac_status" >&5
16184   if (exit $ac_status) && test -s "$ac_outfile"; then
16185     # The compiler can only warn and ignore the option if not recognized
16186     # So say no if there are warnings other than the usual output.
16187     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16188     $SED '/^$/d' conftest.err >conftest.er2
16189     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16190       lt_cv_prog_compiler_rtti_exceptions=yes
16191     fi
16192   fi
16193   $rm conftest*
16194
16195fi
16196echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16197echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16198
16199if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16200    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16201else
16202    :
16203fi
16204
16205fi
16206
16207lt_prog_compiler_wl_GCJ=
16208lt_prog_compiler_pic_GCJ=
16209lt_prog_compiler_static_GCJ=
16210
16211echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16212echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16213
16214  if test "$GCC" = yes; then
16215    lt_prog_compiler_wl_GCJ='-Wl,'
16216    lt_prog_compiler_static_GCJ='-static'
16217
16218    case $host_os in
16219      aix*)
16220      # All AIX code is PIC.
16221      if test "$host_cpu" = ia64; then
16222	# AIX 5 now supports IA64 processor
16223	lt_prog_compiler_static_GCJ='-Bstatic'
16224      fi
16225      ;;
16226
16227    amigaos*)
16228      # FIXME: we need at least 68020 code to build shared libraries, but
16229      # adding the `-m68020' flag to GCC prevents building anything better,
16230      # like `-m68040'.
16231      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16232      ;;
16233
16234    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16235      # PIC is the default for these OSes.
16236      ;;
16237
16238    mingw* | pw32* | os2*)
16239      # This hack is so that the source file can tell whether it is being
16240      # built for inclusion in a dll (and should export symbols for example).
16241      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16242      ;;
16243
16244    darwin* | rhapsody*)
16245      # PIC is the default on this platform
16246      # Common symbols not allowed in MH_DYLIB files
16247      lt_prog_compiler_pic_GCJ='-fno-common'
16248      ;;
16249
16250    msdosdjgpp*)
16251      # Just because we use GCC doesn't mean we suddenly get shared libraries
16252      # on systems that don't support them.
16253      lt_prog_compiler_can_build_shared_GCJ=no
16254      enable_shared=no
16255      ;;
16256
16257    sysv4*MP*)
16258      if test -d /usr/nec; then
16259	lt_prog_compiler_pic_GCJ=-Kconform_pic
16260      fi
16261      ;;
16262
16263    hpux*)
16264      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16265      # not for PA HP-UX.
16266      case $host_cpu in
16267      hppa*64*|ia64*)
16268	# +Z the default
16269	;;
16270      *)
16271	lt_prog_compiler_pic_GCJ='-fPIC'
16272	;;
16273      esac
16274      ;;
16275
16276    *)
16277      lt_prog_compiler_pic_GCJ='-fPIC'
16278      ;;
16279    esac
16280  else
16281    # PORTME Check for flag to pass linker flags through the system compiler.
16282    case $host_os in
16283    aix*)
16284      lt_prog_compiler_wl_GCJ='-Wl,'
16285      if test "$host_cpu" = ia64; then
16286	# AIX 5 now supports IA64 processor
16287	lt_prog_compiler_static_GCJ='-Bstatic'
16288      else
16289	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16290      fi
16291      ;;
16292      darwin*)
16293        # PIC is the default on this platform
16294        # Common symbols not allowed in MH_DYLIB files
16295       case $cc_basename in
16296         xlc*)
16297         lt_prog_compiler_pic_GCJ='-qnocommon'
16298         lt_prog_compiler_wl_GCJ='-Wl,'
16299         ;;
16300       esac
16301       ;;
16302
16303    mingw* | pw32* | os2*)
16304      # This hack is so that the source file can tell whether it is being
16305      # built for inclusion in a dll (and should export symbols for example).
16306      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16307      ;;
16308
16309    hpux9* | hpux10* | hpux11*)
16310      lt_prog_compiler_wl_GCJ='-Wl,'
16311      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16312      # not for PA HP-UX.
16313      case $host_cpu in
16314      hppa*64*|ia64*)
16315	# +Z the default
16316	;;
16317      *)
16318	lt_prog_compiler_pic_GCJ='+Z'
16319	;;
16320      esac
16321      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16322      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16323      ;;
16324
16325    irix5* | irix6* | nonstopux*)
16326      lt_prog_compiler_wl_GCJ='-Wl,'
16327      # PIC (with -KPIC) is the default.
16328      lt_prog_compiler_static_GCJ='-non_shared'
16329      ;;
16330
16331    newsos6)
16332      lt_prog_compiler_pic_GCJ='-KPIC'
16333      lt_prog_compiler_static_GCJ='-Bstatic'
16334      ;;
16335
16336    linux*)
16337      case $cc_basename in
16338      icc* | ecc*)
16339	lt_prog_compiler_wl_GCJ='-Wl,'
16340	lt_prog_compiler_pic_GCJ='-KPIC'
16341	lt_prog_compiler_static_GCJ='-static'
16342        ;;
16343      pgcc* | pgf77* | pgf90* | pgf95*)
16344        # Portland Group compilers (*not* the Pentium gcc compiler,
16345	# which looks to be a dead project)
16346	lt_prog_compiler_wl_GCJ='-Wl,'
16347	lt_prog_compiler_pic_GCJ='-fpic'
16348	lt_prog_compiler_static_GCJ='-Bstatic'
16349        ;;
16350      ccc*)
16351        lt_prog_compiler_wl_GCJ='-Wl,'
16352        # All Alpha code is PIC.
16353        lt_prog_compiler_static_GCJ='-non_shared'
16354        ;;
16355      esac
16356      ;;
16357
16358    osf3* | osf4* | osf5*)
16359      lt_prog_compiler_wl_GCJ='-Wl,'
16360      # All OSF/1 code is PIC.
16361      lt_prog_compiler_static_GCJ='-non_shared'
16362      ;;
16363
16364    sco3.2v5*)
16365      lt_prog_compiler_pic_GCJ='-Kpic'
16366      lt_prog_compiler_static_GCJ='-dn'
16367      ;;
16368
16369    solaris*)
16370      lt_prog_compiler_pic_GCJ='-KPIC'
16371      lt_prog_compiler_static_GCJ='-Bstatic'
16372      case $cc_basename in
16373      f77* | f90* | f95*)
16374	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16375      *)
16376	lt_prog_compiler_wl_GCJ='-Wl,';;
16377      esac
16378      ;;
16379
16380    sunos4*)
16381      lt_prog_compiler_wl_GCJ='-Qoption ld '
16382      lt_prog_compiler_pic_GCJ='-PIC'
16383      lt_prog_compiler_static_GCJ='-Bstatic'
16384      ;;
16385
16386    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16387      lt_prog_compiler_wl_GCJ='-Wl,'
16388      lt_prog_compiler_pic_GCJ='-KPIC'
16389      lt_prog_compiler_static_GCJ='-Bstatic'
16390      ;;
16391
16392    sysv4*MP*)
16393      if test -d /usr/nec ;then
16394	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16395	lt_prog_compiler_static_GCJ='-Bstatic'
16396      fi
16397      ;;
16398
16399    unicos*)
16400      lt_prog_compiler_wl_GCJ='-Wl,'
16401      lt_prog_compiler_can_build_shared_GCJ=no
16402      ;;
16403
16404    uts4*)
16405      lt_prog_compiler_pic_GCJ='-pic'
16406      lt_prog_compiler_static_GCJ='-Bstatic'
16407      ;;
16408
16409    *)
16410      lt_prog_compiler_can_build_shared_GCJ=no
16411      ;;
16412    esac
16413  fi
16414
16415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16416echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16417
16418#
16419# Check to make sure the PIC flag actually works.
16420#
16421if test -n "$lt_prog_compiler_pic_GCJ"; then
16422
16423echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16424echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16425if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16426  echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428  lt_prog_compiler_pic_works_GCJ=no
16429  ac_outfile=conftest.$ac_objext
16430   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16431   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16432   # Insert the option either (1) after the last *FLAGS variable, or
16433   # (2) before a word containing "conftest.", or (3) at the end.
16434   # Note that $ac_compile itself does not contain backslashes and begins
16435   # with a dollar sign (not a hyphen), so the echo should work correctly.
16436   # The option is referenced via a variable to avoid confusing sed.
16437   lt_compile=`echo "$ac_compile" | $SED \
16438   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16440   -e 's:$: $lt_compiler_flag:'`
16441   (eval echo "\"\$as_me:16441: $lt_compile\"" >&5)
16442   (eval "$lt_compile" 2>conftest.err)
16443   ac_status=$?
16444   cat conftest.err >&5
16445   echo "$as_me:16445: \$? = $ac_status" >&5
16446   if (exit $ac_status) && test -s "$ac_outfile"; then
16447     # The compiler can only warn and ignore the option if not recognized
16448     # So say no if there are warnings other than the usual output.
16449     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16450     $SED '/^$/d' conftest.err >conftest.er2
16451     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16452       lt_prog_compiler_pic_works_GCJ=yes
16453     fi
16454   fi
16455   $rm conftest*
16456
16457fi
16458echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16459echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16460
16461if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16462    case $lt_prog_compiler_pic_GCJ in
16463     "" | " "*) ;;
16464     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16465     esac
16466else
16467    lt_prog_compiler_pic_GCJ=
16468     lt_prog_compiler_can_build_shared_GCJ=no
16469fi
16470
16471fi
16472case $host_os in
16473  # For platforms which do not support PIC, -DPIC is meaningless:
16474  *djgpp*)
16475    lt_prog_compiler_pic_GCJ=
16476    ;;
16477  *)
16478    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16479    ;;
16480esac
16481
16482echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16483echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16484if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16485  echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
16487  lt_cv_prog_compiler_c_o_GCJ=no
16488   $rm -r conftest 2>/dev/null
16489   mkdir conftest
16490   cd conftest
16491   mkdir out
16492   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16493
16494   lt_compiler_flag="-o out/conftest2.$ac_objext"
16495   # Insert the option either (1) after the last *FLAGS variable, or
16496   # (2) before a word containing "conftest.", or (3) at the end.
16497   # Note that $ac_compile itself does not contain backslashes and begins
16498   # with a dollar sign (not a hyphen), so the echo should work correctly.
16499   lt_compile=`echo "$ac_compile" | $SED \
16500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502   -e 's:$: $lt_compiler_flag:'`
16503   (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504   (eval "$lt_compile" 2>out/conftest.err)
16505   ac_status=$?
16506   cat out/conftest.err >&5
16507   echo "$as_me:16507: \$? = $ac_status" >&5
16508   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16509   then
16510     # The compiler can only warn and ignore the option if not recognized
16511     # So say no if there are warnings
16512     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16513     $SED '/^$/d' out/conftest.err >out/conftest.er2
16514     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16515       lt_cv_prog_compiler_c_o_GCJ=yes
16516     fi
16517   fi
16518   chmod u+w . 2>&5
16519   $rm conftest*
16520   # SGI C++ compiler will create directory out/ii_files/ for
16521   # template instantiation
16522   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16523   $rm out/* && rmdir out
16524   cd ..
16525   rmdir conftest
16526   $rm conftest*
16527
16528fi
16529echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16530echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16531
16532
16533hard_links="nottested"
16534if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16535  # do not overwrite the value of need_locks provided by the user
16536  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16537echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16538  hard_links=yes
16539  $rm conftest*
16540  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16541  touch conftest.a
16542  ln conftest.a conftest.b 2>&5 || hard_links=no
16543  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16544  echo "$as_me:$LINENO: result: $hard_links" >&5
16545echo "${ECHO_T}$hard_links" >&6
16546  if test "$hard_links" = no; then
16547    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16548echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16549    need_locks=warn
16550  fi
16551else
16552  need_locks=no
16553fi
16554
16555echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16556echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16557
16558  runpath_var=
16559  allow_undefined_flag_GCJ=
16560  enable_shared_with_static_runtimes_GCJ=no
16561  archive_cmds_GCJ=
16562  archive_expsym_cmds_GCJ=
16563  old_archive_From_new_cmds_GCJ=
16564  old_archive_from_expsyms_cmds_GCJ=
16565  export_dynamic_flag_spec_GCJ=
16566  whole_archive_flag_spec_GCJ=
16567  thread_safe_flag_spec_GCJ=
16568  hardcode_libdir_flag_spec_GCJ=
16569  hardcode_libdir_flag_spec_ld_GCJ=
16570  hardcode_libdir_separator_GCJ=
16571  hardcode_direct_GCJ=no
16572  hardcode_minus_L_GCJ=no
16573  hardcode_shlibpath_var_GCJ=unsupported
16574  link_all_deplibs_GCJ=unknown
16575  hardcode_automatic_GCJ=no
16576  module_cmds_GCJ=
16577  module_expsym_cmds_GCJ=
16578  always_export_symbols_GCJ=no
16579  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16580  # include_expsyms should be a list of space-separated symbols to be *always*
16581  # included in the symbol list
16582  include_expsyms_GCJ=
16583  # exclude_expsyms can be an extended regexp of symbols to exclude
16584  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16585  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16586  # as well as any symbol that contains `d'.
16587  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16588  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16589  # platforms (ab)use it in PIC code, but their linkers get confused if
16590  # the symbol is explicitly referenced.  Since portable code cannot
16591  # rely on this symbol name, it's probably fine to never include it in
16592  # preloaded symbol tables.
16593  extract_expsyms_cmds=
16594  # Just being paranoid about ensuring that cc_basename is set.
16595  for cc_temp in $compiler""; do
16596  case $cc_temp in
16597    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16598    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16599    \-*) ;;
16600    *) break;;
16601  esac
16602done
16603cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16604
16605  case $host_os in
16606  cygwin* | mingw* | pw32*)
16607    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16608    # When not using gcc, we currently assume that we are using
16609    # Microsoft Visual C++.
16610    if test "$GCC" != yes; then
16611      with_gnu_ld=no
16612    fi
16613    ;;
16614  openbsd*)
16615    with_gnu_ld=no
16616    ;;
16617  esac
16618
16619  ld_shlibs_GCJ=yes
16620  if test "$with_gnu_ld" = yes; then
16621    # If archive_cmds runs LD, not CC, wlarc should be empty
16622    wlarc='${wl}'
16623
16624    # Set some defaults for GNU ld with shared library support. These
16625    # are reset later if shared libraries are not supported. Putting them
16626    # here allows them to be overridden if necessary.
16627    runpath_var=LD_RUN_PATH
16628    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16629    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16630    # ancient GNU ld didn't support --whole-archive et. al.
16631    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16632	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16633      else
16634  	whole_archive_flag_spec_GCJ=
16635    fi
16636    supports_anon_versioning=no
16637    case `$LD -v 2>/dev/null` in
16638      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16639      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16640      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16641      *\ 2.11.*) ;; # other 2.11 versions
16642      *) supports_anon_versioning=yes ;;
16643    esac
16644
16645    # See if GNU ld supports shared libraries.
16646    case $host_os in
16647    aix3* | aix4* | aix5*)
16648      # On AIX/PPC, the GNU linker is very broken
16649      if test "$host_cpu" != ia64; then
16650	ld_shlibs_GCJ=no
16651	cat <<EOF 1>&2
16652
16653*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16654*** to be unable to reliably create shared libraries on AIX.
16655*** Therefore, libtool is disabling shared libraries support.  If you
16656*** really care for shared libraries, you may want to modify your PATH
16657*** so that a non-GNU linker is found, and then restart.
16658
16659EOF
16660      fi
16661      ;;
16662
16663    amigaos*)
16664      archive_cmds_GCJ='$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)'
16665      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16666      hardcode_minus_L_GCJ=yes
16667
16668      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16669      # that the semantics of dynamic libraries on AmigaOS, at least up
16670      # to version 4, is to share data among multiple programs linked
16671      # with the same dynamic library.  Since this doesn't match the
16672      # behavior of shared libraries on other platforms, we can't use
16673      # them.
16674      ld_shlibs_GCJ=no
16675      ;;
16676
16677    beos*)
16678      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16679	allow_undefined_flag_GCJ=unsupported
16680	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16681	# support --undefined.  This deserves some investigation.  FIXME
16682	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16683      else
16684	ld_shlibs_GCJ=no
16685      fi
16686      ;;
16687
16688    cygwin* | mingw* | pw32*)
16689      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16690      # as there is no search path for DLLs.
16691      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16692      allow_undefined_flag_GCJ=unsupported
16693      always_export_symbols_GCJ=no
16694      enable_shared_with_static_runtimes_GCJ=yes
16695      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16696
16697      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16698        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
16699	# If the export-symbols file already is a .def file (1st line
16700	# is EXPORTS), use it as is; otherwise, prepend...
16701	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16702	  cp $export_symbols $output_objdir/$soname.def;
16703	else
16704	  echo EXPORTS > $output_objdir/$soname.def;
16705	  cat $export_symbols >> $output_objdir/$soname.def;
16706	fi~
16707	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
16708      else
16709	ld_shlibs_GCJ=no
16710      fi
16711      ;;
16712
16713    linux*)
16714      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16715	tmp_addflag=
16716	case $cc_basename,$host_cpu in
16717	pgcc*)				# Portland Group C compiler
16718	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16719	  tmp_addflag=' $pic_flag'
16720	  ;;
16721	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16722	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16723	  tmp_addflag=' $pic_flag -Mnomain' ;;
16724	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16725	  tmp_addflag=' -i_dynamic' ;;
16726	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16727	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16728	ifc* | ifort*)			# Intel Fortran compiler
16729	  tmp_addflag=' -nofor_main' ;;
16730	esac
16731	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16732
16733	if test $supports_anon_versioning = yes; then
16734	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16735  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16736  $echo "local: *; };" >> $output_objdir/$libname.ver~
16737	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16738	fi
16739      else
16740	ld_shlibs_GCJ=no
16741      fi
16742      ;;
16743
16744    netbsd*)
16745      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16746	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16747	wlarc=
16748      else
16749	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16751      fi
16752      ;;
16753
16754    solaris* | sysv5*)
16755      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16756	ld_shlibs_GCJ=no
16757	cat <<EOF 1>&2
16758
16759*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16760*** create shared libraries on Solaris systems.  Therefore, libtool
16761*** is disabling shared libraries support.  We urge you to upgrade GNU
16762*** binutils to release 2.9.1 or newer.  Another option is to modify
16763*** your PATH or compiler configuration so that the native linker is
16764*** used, and then restart.
16765
16766EOF
16767      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16768	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16769	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16770      else
16771	ld_shlibs_GCJ=no
16772      fi
16773      ;;
16774
16775    sunos4*)
16776      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777      wlarc=
16778      hardcode_direct_GCJ=yes
16779      hardcode_shlibpath_var_GCJ=no
16780      ;;
16781
16782    *)
16783      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16784	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16785	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16786      else
16787	ld_shlibs_GCJ=no
16788      fi
16789      ;;
16790    esac
16791
16792    if test "$ld_shlibs_GCJ" = no; then
16793      runpath_var=
16794      hardcode_libdir_flag_spec_GCJ=
16795      export_dynamic_flag_spec_GCJ=
16796      whole_archive_flag_spec_GCJ=
16797    fi
16798  else
16799    # PORTME fill in a description of your system's linker (not GNU ld)
16800    case $host_os in
16801    aix3*)
16802      allow_undefined_flag_GCJ=unsupported
16803      always_export_symbols_GCJ=yes
16804      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16805      # Note: this linker hardcodes the directories in LIBPATH if there
16806      # are no directories specified by -L.
16807      hardcode_minus_L_GCJ=yes
16808      if test "$GCC" = yes && test -z "$link_static_flag"; then
16809	# Neither direct hardcoding nor static linking is supported with a
16810	# broken collect2.
16811	hardcode_direct_GCJ=unsupported
16812      fi
16813      ;;
16814
16815    aix4* | aix5*)
16816      if test "$host_cpu" = ia64; then
16817	# On IA64, the linker does run time linking by default, so we don't
16818	# have to do anything special.
16819	aix_use_runtimelinking=no
16820	exp_sym_flag='-Bexport'
16821	no_entry_flag=""
16822      else
16823	# If we're using GNU nm, then we don't want the "-C" option.
16824	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16825	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16826	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16827	else
16828	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16829	fi
16830	aix_use_runtimelinking=no
16831
16832	# Test if we are trying to use run time linking or normal
16833	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16834	# need to do runtime linking.
16835	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16836	  for ld_flag in $LDFLAGS; do
16837  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16838  	    aix_use_runtimelinking=yes
16839  	    break
16840  	  fi
16841	  done
16842	esac
16843
16844	exp_sym_flag='-bexport'
16845	no_entry_flag='-bnoentry'
16846      fi
16847
16848      # When large executables or shared objects are built, AIX ld can
16849      # have problems creating the table of contents.  If linking a library
16850      # or program results in "error TOC overflow" add -mminimal-toc to
16851      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16852      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16853
16854      archive_cmds_GCJ=''
16855      hardcode_direct_GCJ=yes
16856      hardcode_libdir_separator_GCJ=':'
16857      link_all_deplibs_GCJ=yes
16858
16859      if test "$GCC" = yes; then
16860	case $host_os in aix4.[012]|aix4.[012].*)
16861	# We only want to do this on AIX 4.2 and lower, the check
16862	# below for broken collect2 doesn't work under 4.3+
16863	  collect2name=`${CC} -print-prog-name=collect2`
16864	  if test -f "$collect2name" && \
16865  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16866	  then
16867  	  # We have reworked collect2
16868  	  hardcode_direct_GCJ=yes
16869	  else
16870  	  # We have old collect2
16871  	  hardcode_direct_GCJ=unsupported
16872  	  # It fails to find uninstalled libraries when the uninstalled
16873  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16874  	  # to unsupported forces relinking
16875  	  hardcode_minus_L_GCJ=yes
16876  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16877  	  hardcode_libdir_separator_GCJ=
16878	  fi
16879	esac
16880	shared_flag='-shared'
16881	if test "$aix_use_runtimelinking" = yes; then
16882	  shared_flag="$shared_flag "'${wl}-G'
16883	fi
16884      else
16885	# not using gcc
16886	if test "$host_cpu" = ia64; then
16887  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16888  	# chokes on -Wl,-G. The following line is correct:
16889	  shared_flag='-G'
16890	else
16891  	if test "$aix_use_runtimelinking" = yes; then
16892	    shared_flag='${wl}-G'
16893	  else
16894	    shared_flag='${wl}-bM:SRE'
16895  	fi
16896	fi
16897      fi
16898
16899      # It seems that -bexpall does not export symbols beginning with
16900      # underscore (_), so it is better to generate a list of symbols to export.
16901      always_export_symbols_GCJ=yes
16902      if test "$aix_use_runtimelinking" = yes; then
16903	# Warning - without using the other runtime loading flags (-brtl),
16904	# -berok will link without error, but may produce a broken library.
16905	allow_undefined_flag_GCJ='-berok'
16906       # Determine the default libpath from the value encoded in an empty executable.
16907       cat >conftest.$ac_ext <<_ACEOF
16908/* confdefs.h.  */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h.  */
16913
16914int
16915main ()
16916{
16917
16918  ;
16919  return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
16923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924  (eval $ac_link) 2>conftest.er1
16925  ac_status=$?
16926  grep -v '^ *+' conftest.er1 >conftest.err
16927  rm -f conftest.er1
16928  cat conftest.err >&5
16929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930  (exit $ac_status); } &&
16931	 { ac_try='test -z "$ac_c_werror_flag"
16932			 || test ! -s conftest.err'
16933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934  (eval $ac_try) 2>&5
16935  ac_status=$?
16936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937  (exit $ac_status); }; } &&
16938	 { ac_try='test -s conftest$ac_exeext'
16939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940  (eval $ac_try) 2>&5
16941  ac_status=$?
16942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943  (exit $ac_status); }; }; then
16944
16945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16946}'`
16947# Check for a 64-bit object if we didn't find anything.
16948if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16949}'`; fi
16950else
16951  echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954fi
16955rm -f conftest.err conftest.$ac_objext \
16956      conftest$ac_exeext conftest.$ac_ext
16957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16958
16959       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16960	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16961       else
16962	if test "$host_cpu" = ia64; then
16963	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16964	  allow_undefined_flag_GCJ="-z nodefs"
16965	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16966	else
16967	 # Determine the default libpath from the value encoded in an empty executable.
16968	 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h.  */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h.  */
16974
16975int
16976main ()
16977{
16978
16979  ;
16980  return 0;
16981}
16982_ACEOF
16983rm -f conftest.$ac_objext conftest$ac_exeext
16984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985  (eval $ac_link) 2>conftest.er1
16986  ac_status=$?
16987  grep -v '^ *+' conftest.er1 >conftest.err
16988  rm -f conftest.er1
16989  cat conftest.err >&5
16990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991  (exit $ac_status); } &&
16992	 { ac_try='test -z "$ac_c_werror_flag"
16993			 || test ! -s conftest.err'
16994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995  (eval $ac_try) 2>&5
16996  ac_status=$?
16997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998  (exit $ac_status); }; } &&
16999	 { ac_try='test -s conftest$ac_exeext'
17000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001  (eval $ac_try) 2>&5
17002  ac_status=$?
17003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004  (exit $ac_status); }; }; then
17005
17006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17007}'`
17008# Check for a 64-bit object if we didn't find anything.
17009if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17010}'`; fi
17011else
17012  echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015fi
17016rm -f conftest.err conftest.$ac_objext \
17017      conftest$ac_exeext conftest.$ac_ext
17018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17019
17020	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17021	  # Warning - without using the other run time loading flags,
17022	  # -berok will link without error, but may produce a broken library.
17023	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17024	  allow_undefined_flag_GCJ=' ${wl}-berok'
17025	  # -bexpall does not export symbols beginning with underscore (_)
17026	  always_export_symbols_GCJ=yes
17027	  # Exported symbols can be pulled into shared objects from archives
17028	  whole_archive_flag_spec_GCJ=' '
17029	  archive_cmds_need_lc_GCJ=yes
17030	  # This is similar to how AIX traditionally builds its shared libraries.
17031	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17032	fi
17033      fi
17034      ;;
17035
17036    amigaos*)
17037      archive_cmds_GCJ='$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)'
17038      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17039      hardcode_minus_L_GCJ=yes
17040      # see comment about different semantics on the GNU ld section
17041      ld_shlibs_GCJ=no
17042      ;;
17043
17044    bsdi[45]*)
17045      export_dynamic_flag_spec_GCJ=-rdynamic
17046      ;;
17047
17048    cygwin* | mingw* | pw32*)
17049      # When not using gcc, we currently assume that we are using
17050      # Microsoft Visual C++.
17051      # hardcode_libdir_flag_spec is actually meaningless, as there is
17052      # no search path for DLLs.
17053      hardcode_libdir_flag_spec_GCJ=' '
17054      allow_undefined_flag_GCJ=unsupported
17055      # Tell ltmain to make .lib files, not .a files.
17056      libext=lib
17057      # Tell ltmain to make .dll files, not .so files.
17058      shrext_cmds=".dll"
17059      # FIXME: Setting linknames here is a bad hack.
17060      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17061      # The linker will automatically build a .lib file if we build a DLL.
17062      old_archive_From_new_cmds_GCJ='true'
17063      # FIXME: Should let the user specify the lib program.
17064      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17065      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17066      enable_shared_with_static_runtimes_GCJ=yes
17067      ;;
17068
17069    darwin* | rhapsody*)
17070      case $host_os in
17071        rhapsody* | darwin1.[012])
17072         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17073         ;;
17074       *) # Darwin 1.3 on
17075         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17076           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17077         else
17078           case ${MACOSX_DEPLOYMENT_TARGET} in
17079             10.[012])
17080               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17081               ;;
17082             10.*)
17083               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17084               ;;
17085           esac
17086         fi
17087         ;;
17088      esac
17089      archive_cmds_need_lc_GCJ=no
17090      hardcode_direct_GCJ=no
17091      hardcode_automatic_GCJ=yes
17092      hardcode_shlibpath_var_GCJ=unsupported
17093      whole_archive_flag_spec_GCJ=''
17094      link_all_deplibs_GCJ=yes
17095    if test "$GCC" = yes ; then
17096    	output_verbose_link_cmd='echo'
17097        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17098      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17099      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17100      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17101      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17102    else
17103      case $cc_basename in
17104        xlc*)
17105         output_verbose_link_cmd='echo'
17106         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17107         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17108          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17109         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17110          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17111          ;;
17112       *)
17113         ld_shlibs_GCJ=no
17114          ;;
17115      esac
17116    fi
17117      ;;
17118
17119    dgux*)
17120      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17121      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17122      hardcode_shlibpath_var_GCJ=no
17123      ;;
17124
17125    freebsd1*)
17126      ld_shlibs_GCJ=no
17127      ;;
17128
17129    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17130    # support.  Future versions do this automatically, but an explicit c++rt0.o
17131    # does not break anything, and helps significantly (at the cost of a little
17132    # extra space).
17133    freebsd2.2*)
17134      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17135      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17136      hardcode_direct_GCJ=yes
17137      hardcode_shlibpath_var_GCJ=no
17138      ;;
17139
17140    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17141    freebsd2*)
17142      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17143      hardcode_direct_GCJ=yes
17144      hardcode_minus_L_GCJ=yes
17145      hardcode_shlibpath_var_GCJ=no
17146      ;;
17147
17148    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17149    freebsd* | kfreebsd*-gnu | dragonfly*)
17150      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17151      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17152      hardcode_direct_GCJ=yes
17153      hardcode_shlibpath_var_GCJ=no
17154      ;;
17155
17156    hpux9*)
17157      if test "$GCC" = yes; then
17158	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17159      else
17160	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17161      fi
17162      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17163      hardcode_libdir_separator_GCJ=:
17164      hardcode_direct_GCJ=yes
17165
17166      # hardcode_minus_L: Not really in the search PATH,
17167      # but as the default location of the library.
17168      hardcode_minus_L_GCJ=yes
17169      export_dynamic_flag_spec_GCJ='${wl}-E'
17170      ;;
17171
17172    hpux10* | hpux11*)
17173      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17174	case $host_cpu in
17175	hppa*64*|ia64*)
17176	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17177	  ;;
17178	*)
17179	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17180	  ;;
17181	esac
17182      else
17183	case $host_cpu in
17184	hppa*64*|ia64*)
17185	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17186	  ;;
17187	*)
17188	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17189	  ;;
17190	esac
17191      fi
17192      if test "$with_gnu_ld" = no; then
17193	case $host_cpu in
17194	hppa*64*)
17195	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17196	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17197	  hardcode_libdir_separator_GCJ=:
17198	  hardcode_direct_GCJ=no
17199	  hardcode_shlibpath_var_GCJ=no
17200	  ;;
17201	ia64*)
17202	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17203	  hardcode_direct_GCJ=no
17204	  hardcode_shlibpath_var_GCJ=no
17205
17206	  # hardcode_minus_L: Not really in the search PATH,
17207	  # but as the default location of the library.
17208	  hardcode_minus_L_GCJ=yes
17209	  ;;
17210	*)
17211	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17212	  hardcode_libdir_separator_GCJ=:
17213	  hardcode_direct_GCJ=yes
17214	  export_dynamic_flag_spec_GCJ='${wl}-E'
17215
17216	  # hardcode_minus_L: Not really in the search PATH,
17217	  # but as the default location of the library.
17218	  hardcode_minus_L_GCJ=yes
17219	  ;;
17220	esac
17221      fi
17222      ;;
17223
17224    irix5* | irix6* | nonstopux*)
17225      if test "$GCC" = yes; then
17226	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17227      else
17228	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17229	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17230      fi
17231      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232      hardcode_libdir_separator_GCJ=:
17233      link_all_deplibs_GCJ=yes
17234      ;;
17235
17236    netbsd*)
17237      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17238	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17239      else
17240	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17241      fi
17242      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17243      hardcode_direct_GCJ=yes
17244      hardcode_shlibpath_var_GCJ=no
17245      ;;
17246
17247    newsos6)
17248      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249      hardcode_direct_GCJ=yes
17250      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17251      hardcode_libdir_separator_GCJ=:
17252      hardcode_shlibpath_var_GCJ=no
17253      ;;
17254
17255    openbsd*)
17256      hardcode_direct_GCJ=yes
17257      hardcode_shlibpath_var_GCJ=no
17258      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17259	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17260	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17261	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17262	export_dynamic_flag_spec_GCJ='${wl}-E'
17263      else
17264       case $host_os in
17265	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17266	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17267	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17268	   ;;
17269	 *)
17270	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17272	   ;;
17273       esac
17274      fi
17275      ;;
17276
17277    os2*)
17278      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279      hardcode_minus_L_GCJ=yes
17280      allow_undefined_flag_GCJ=unsupported
17281      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17282      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17283      ;;
17284
17285    osf3*)
17286      if test "$GCC" = yes; then
17287	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17288	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17289      else
17290	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17291	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17292      fi
17293      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17294      hardcode_libdir_separator_GCJ=:
17295      ;;
17296
17297    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17298      if test "$GCC" = yes; then
17299	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17300	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17301	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17302      else
17303	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17304	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17305	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17306	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17307
17308	# Both c and cxx compiler support -rpath directly
17309	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17310      fi
17311      hardcode_libdir_separator_GCJ=:
17312      ;;
17313
17314    sco3.2v5*)
17315      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17316      hardcode_shlibpath_var_GCJ=no
17317      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17318      runpath_var=LD_RUN_PATH
17319      hardcode_runpath_var=yes
17320      ;;
17321
17322    solaris*)
17323      no_undefined_flag_GCJ=' -z text'
17324      if test "$GCC" = yes; then
17325	wlarc='${wl}'
17326	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17327	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17328	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17329      else
17330	wlarc=''
17331	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17333  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17334      fi
17335      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17336      hardcode_shlibpath_var_GCJ=no
17337      case $host_os in
17338      solaris2.[0-5] | solaris2.[0-5].*) ;;
17339      *)
17340 	# The compiler driver will combine linker options so we
17341 	# cannot just pass the convience library names through
17342 	# without $wl, iff we do not link with $LD.
17343 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17344 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17345 	case $wlarc in
17346 	'')
17347 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17348 	*)
17349 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17350 	esac ;;
17351      esac
17352      link_all_deplibs_GCJ=yes
17353      ;;
17354
17355    sunos4*)
17356      if test "x$host_vendor" = xsequent; then
17357	# Use $CC to link under sequent, because it throws in some extra .o
17358	# files that make .init and .fini sections work.
17359	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17360      else
17361	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17362      fi
17363      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17364      hardcode_direct_GCJ=yes
17365      hardcode_minus_L_GCJ=yes
17366      hardcode_shlibpath_var_GCJ=no
17367      ;;
17368
17369    sysv4)
17370      case $host_vendor in
17371	sni)
17372	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373	  hardcode_direct_GCJ=yes # is this really true???
17374	;;
17375	siemens)
17376	  ## LD is ld it makes a PLAMLIB
17377	  ## CC just makes a GrossModule.
17378	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17379	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17380	  hardcode_direct_GCJ=no
17381        ;;
17382	motorola)
17383	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17385	;;
17386      esac
17387      runpath_var='LD_RUN_PATH'
17388      hardcode_shlibpath_var_GCJ=no
17389      ;;
17390
17391    sysv4.3*)
17392      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393      hardcode_shlibpath_var_GCJ=no
17394      export_dynamic_flag_spec_GCJ='-Bexport'
17395      ;;
17396
17397    sysv4*MP*)
17398      if test -d /usr/nec; then
17399	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17400	hardcode_shlibpath_var_GCJ=no
17401	runpath_var=LD_RUN_PATH
17402	hardcode_runpath_var=yes
17403	ld_shlibs_GCJ=yes
17404      fi
17405      ;;
17406
17407    sysv4.2uw2*)
17408      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17409      hardcode_direct_GCJ=yes
17410      hardcode_minus_L_GCJ=no
17411      hardcode_shlibpath_var_GCJ=no
17412      hardcode_runpath_var=yes
17413      runpath_var=LD_RUN_PATH
17414      ;;
17415
17416   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17417      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17418      if test "$GCC" = yes; then
17419	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17420      else
17421	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17422      fi
17423      runpath_var='LD_RUN_PATH'
17424      hardcode_shlibpath_var_GCJ=no
17425      ;;
17426
17427    sysv5*)
17428      no_undefined_flag_GCJ=' -z text'
17429      # $CC -shared without GNU ld will not create a library from C++
17430      # object files and a static libstdc++, better avoid it by now
17431      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17433  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17434      hardcode_libdir_flag_spec_GCJ=
17435      hardcode_shlibpath_var_GCJ=no
17436      runpath_var='LD_RUN_PATH'
17437      ;;
17438
17439    uts4*)
17440      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17441      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17442      hardcode_shlibpath_var_GCJ=no
17443      ;;
17444
17445    *)
17446      ld_shlibs_GCJ=no
17447      ;;
17448    esac
17449  fi
17450
17451echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17452echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17453test "$ld_shlibs_GCJ" = no && can_build_shared=no
17454
17455variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17456if test "$GCC" = yes; then
17457  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458fi
17459
17460#
17461# Do we need to explicitly link libc?
17462#
17463case "x$archive_cmds_need_lc_GCJ" in
17464x|xyes)
17465  # Assume -lc should be added
17466  archive_cmds_need_lc_GCJ=yes
17467
17468  if test "$enable_shared" = yes && test "$GCC" = yes; then
17469    case $archive_cmds_GCJ in
17470    *'~'*)
17471      # FIXME: we may have to deal with multi-command sequences.
17472      ;;
17473    '$CC '*)
17474      # Test whether the compiler implicitly links with -lc since on some
17475      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17476      # to ld, don't add -lc before -lgcc.
17477      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17478echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17479      $rm conftest*
17480      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17481
17482      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483  (eval $ac_compile) 2>&5
17484  ac_status=$?
17485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486  (exit $ac_status); } 2>conftest.err; then
17487        soname=conftest
17488        lib=conftest
17489        libobjs=conftest.$ac_objext
17490        deplibs=
17491        wl=$lt_prog_compiler_wl_GCJ
17492        compiler_flags=-v
17493        linker_flags=-v
17494        verstring=
17495        output_objdir=.
17496        libname=conftest
17497        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17498        allow_undefined_flag_GCJ=
17499        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17500  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17501  ac_status=$?
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); }
17504        then
17505	  archive_cmds_need_lc_GCJ=no
17506        else
17507	  archive_cmds_need_lc_GCJ=yes
17508        fi
17509        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17510      else
17511        cat conftest.err 1>&5
17512      fi
17513      $rm conftest*
17514      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17515echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17516      ;;
17517    esac
17518  fi
17519  ;;
17520esac
17521
17522echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17523echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17524library_names_spec=
17525libname_spec='lib$name'
17526soname_spec=
17527shrext_cmds=".so"
17528postinstall_cmds=
17529postuninstall_cmds=
17530finish_cmds=
17531finish_eval=
17532shlibpath_var=
17533shlibpath_overrides_runpath=unknown
17534version_type=none
17535dynamic_linker="$host_os ld.so"
17536sys_lib_dlsearch_path_spec="/lib /usr/lib"
17537if test "$GCC" = yes; then
17538  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17539  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17540    # if the path contains ";" then we assume it to be the separator
17541    # otherwise default to the standard path separator (i.e. ":") - it is
17542    # assumed that no part of a normal pathname contains ";" but that should
17543    # okay in the real world where ";" in dirpaths is itself problematic.
17544    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17545  else
17546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17547  fi
17548else
17549  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17550fi
17551need_lib_prefix=unknown
17552hardcode_into_libs=no
17553
17554# when you set need_version to no, make sure it does not cause -set_version
17555# flags to be left without arguments
17556need_version=unknown
17557
17558case $host_os in
17559aix3*)
17560  version_type=linux
17561  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17562  shlibpath_var=LIBPATH
17563
17564  # AIX 3 has no versioning support, so we append a major version to the name.
17565  soname_spec='${libname}${release}${shared_ext}$major'
17566  ;;
17567
17568aix4* | aix5*)
17569  version_type=linux
17570  need_lib_prefix=no
17571  need_version=no
17572  hardcode_into_libs=yes
17573  if test "$host_cpu" = ia64; then
17574    # AIX 5 supports IA64
17575    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17576    shlibpath_var=LD_LIBRARY_PATH
17577  else
17578    # With GCC up to 2.95.x, collect2 would create an import file
17579    # for dependence libraries.  The import file would start with
17580    # the line `#! .'.  This would cause the generated library to
17581    # depend on `.', always an invalid library.  This was fixed in
17582    # development snapshots of GCC prior to 3.0.
17583    case $host_os in
17584      aix4 | aix4.[01] | aix4.[01].*)
17585      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17586	   echo ' yes '
17587	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17588	:
17589      else
17590	can_build_shared=no
17591      fi
17592      ;;
17593    esac
17594    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17595    # soname into executable. Probably we can add versioning support to
17596    # collect2, so additional links can be useful in future.
17597    if test "$aix_use_runtimelinking" = yes; then
17598      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17599      # instead of lib<name>.a to let people know that these are not
17600      # typical AIX shared libraries.
17601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602    else
17603      # We preserve .a as extension for shared libraries through AIX4.2
17604      # and later when we are not doing run time linking.
17605      library_names_spec='${libname}${release}.a $libname.a'
17606      soname_spec='${libname}${release}${shared_ext}$major'
17607    fi
17608    shlibpath_var=LIBPATH
17609  fi
17610  ;;
17611
17612amigaos*)
17613  library_names_spec='$libname.ixlibrary $libname.a'
17614  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17615  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17616  ;;
17617
17618beos*)
17619  library_names_spec='${libname}${shared_ext}'
17620  dynamic_linker="$host_os ld.so"
17621  shlibpath_var=LIBRARY_PATH
17622  ;;
17623
17624bsdi[45]*)
17625  version_type=linux
17626  need_version=no
17627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628  soname_spec='${libname}${release}${shared_ext}$major'
17629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17630  shlibpath_var=LD_LIBRARY_PATH
17631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17633  # the default ld.so.conf also contains /usr/contrib/lib and
17634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17635  # libtool to hard-code these into programs
17636  ;;
17637
17638cygwin* | mingw* | pw32*)
17639  version_type=windows
17640  shrext_cmds=".dll"
17641  need_version=no
17642  need_lib_prefix=no
17643
17644  case $GCC,$host_os in
17645  yes,cygwin* | yes,mingw* | yes,pw32*)
17646    library_names_spec='$libname.dll.a'
17647    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17648    postinstall_cmds='base_file=`basename \${file}`~
17649      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17650      dldir=$destdir/`dirname \$dlpath`~
17651      test -d \$dldir || mkdir -p \$dldir~
17652      $install_prog $dir/$dlname \$dldir/$dlname~
17653      chmod a+x \$dldir/$dlname'
17654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17655      dlpath=$dir/\$dldll~
17656       $rm \$dlpath'
17657    shlibpath_overrides_runpath=yes
17658
17659    case $host_os in
17660    cygwin*)
17661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17662      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17663      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17664      ;;
17665    mingw*)
17666      # MinGW DLLs use traditional 'lib' prefix
17667      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17668      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17669      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17670        # It is most probably a Windows format PATH printed by
17671        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17672        # path with ; separators, and with drive letters. We can handle the
17673        # drive letters (cygwin fileutils understands them), so leave them,
17674        # especially as we might pass files found there to a mingw objdump,
17675        # which wouldn't understand a cygwinified path. Ahh.
17676        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17677      else
17678        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17679      fi
17680      ;;
17681    pw32*)
17682      # pw32 DLLs use 'pw' prefix rather than 'lib'
17683      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17684      ;;
17685    esac
17686    ;;
17687
17688  *)
17689    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17690    ;;
17691  esac
17692  dynamic_linker='Win32 ld.exe'
17693  # FIXME: first we should search . and the directory the executable is in
17694  shlibpath_var=PATH
17695  ;;
17696
17697darwin* | rhapsody*)
17698  dynamic_linker="$host_os dyld"
17699  version_type=darwin
17700  need_lib_prefix=no
17701  need_version=no
17702  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17703  soname_spec='${libname}${release}${major}$shared_ext'
17704  shlibpath_overrides_runpath=yes
17705  shlibpath_var=DYLD_LIBRARY_PATH
17706  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17707  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17708  if test "$GCC" = yes; then
17709    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17710  else
17711    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17712  fi
17713  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17714  ;;
17715
17716dgux*)
17717  version_type=linux
17718  need_lib_prefix=no
17719  need_version=no
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  shlibpath_var=LD_LIBRARY_PATH
17723  ;;
17724
17725freebsd1*)
17726  dynamic_linker=no
17727  ;;
17728
17729kfreebsd*-gnu)
17730  version_type=linux
17731  need_lib_prefix=no
17732  need_version=no
17733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17734  soname_spec='${libname}${release}${shared_ext}$major'
17735  shlibpath_var=LD_LIBRARY_PATH
17736  shlibpath_overrides_runpath=no
17737  hardcode_into_libs=yes
17738  dynamic_linker='GNU ld.so'
17739  ;;
17740
17741freebsd* | dragonfly*)
17742  # DragonFly does not have aout.  When/if they implement a new
17743  # versioning mechanism, adjust this.
17744  if test -x /usr/bin/objformat; then
17745    objformat=`/usr/bin/objformat`
17746  else
17747    case $host_os in
17748    freebsd[123]*) objformat=aout ;;
17749    *) objformat=elf ;;
17750    esac
17751  fi
17752  version_type=freebsd-$objformat
17753  case $version_type in
17754    freebsd-elf*)
17755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17756      need_version=no
17757      need_lib_prefix=no
17758      ;;
17759    freebsd-*)
17760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17761      need_version=yes
17762      ;;
17763  esac
17764  shlibpath_var=LD_LIBRARY_PATH
17765  case $host_os in
17766  freebsd2*)
17767    shlibpath_overrides_runpath=yes
17768    ;;
17769  freebsd3.[01]* | freebsdelf3.[01]*)
17770    shlibpath_overrides_runpath=yes
17771    hardcode_into_libs=yes
17772    ;;
17773  *) # from 3.2 on
17774    shlibpath_overrides_runpath=no
17775    hardcode_into_libs=yes
17776    ;;
17777  esac
17778  ;;
17779
17780gnu*)
17781  version_type=linux
17782  need_lib_prefix=no
17783  need_version=no
17784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17785  soname_spec='${libname}${release}${shared_ext}$major'
17786  shlibpath_var=LD_LIBRARY_PATH
17787  hardcode_into_libs=yes
17788  ;;
17789
17790hpux9* | hpux10* | hpux11*)
17791  # Give a soname corresponding to the major version so that dld.sl refuses to
17792  # link against other versions.
17793  version_type=sunos
17794  need_lib_prefix=no
17795  need_version=no
17796  case $host_cpu in
17797  ia64*)
17798    shrext_cmds='.so'
17799    hardcode_into_libs=yes
17800    dynamic_linker="$host_os dld.so"
17801    shlibpath_var=LD_LIBRARY_PATH
17802    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804    soname_spec='${libname}${release}${shared_ext}$major'
17805    if test "X$HPUX_IA64_MODE" = X32; then
17806      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17807    else
17808      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17809    fi
17810    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17811    ;;
17812   hppa*64*)
17813     shrext_cmds='.sl'
17814     hardcode_into_libs=yes
17815     dynamic_linker="$host_os dld.sl"
17816     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17819     soname_spec='${libname}${release}${shared_ext}$major'
17820     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17821     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17822     ;;
17823   *)
17824    shrext_cmds='.sl'
17825    dynamic_linker="$host_os dld.sl"
17826    shlibpath_var=SHLIB_PATH
17827    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829    soname_spec='${libname}${release}${shared_ext}$major'
17830    ;;
17831  esac
17832  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17833  postinstall_cmds='chmod 555 $lib'
17834  ;;
17835
17836irix5* | irix6* | nonstopux*)
17837  case $host_os in
17838    nonstopux*) version_type=nonstopux ;;
17839    *)
17840	if test "$lt_cv_prog_gnu_ld" = yes; then
17841		version_type=linux
17842	else
17843		version_type=irix
17844	fi ;;
17845  esac
17846  need_lib_prefix=no
17847  need_version=no
17848  soname_spec='${libname}${release}${shared_ext}$major'
17849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17850  case $host_os in
17851  irix5* | nonstopux*)
17852    libsuff= shlibsuff=
17853    ;;
17854  *)
17855    case $LD in # libtool.m4 will add one of these switches to LD
17856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17857      libsuff= shlibsuff= libmagic=32-bit;;
17858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17859      libsuff=32 shlibsuff=N32 libmagic=N32;;
17860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17862    *) libsuff= shlibsuff= libmagic=never-match;;
17863    esac
17864    ;;
17865  esac
17866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17867  shlibpath_overrides_runpath=no
17868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17870  hardcode_into_libs=yes
17871  ;;
17872
17873# No shared lib support for Linux oldld, aout, or coff.
17874linux*oldld* | linux*aout* | linux*coff*)
17875  dynamic_linker=no
17876  ;;
17877
17878# This must be Linux ELF.
17879linux*)
17880  version_type=linux
17881  need_lib_prefix=no
17882  need_version=no
17883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884  soname_spec='${libname}${release}${shared_ext}$major'
17885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17886  shlibpath_var=LD_LIBRARY_PATH
17887  shlibpath_overrides_runpath=no
17888  # This implies no fast_install, which is unacceptable.
17889  # Some rework will be needed to allow for fast_install
17890  # before this can be enabled.
17891  hardcode_into_libs=yes
17892
17893  # Append ld.so.conf contents to the search path
17894  if test -f /etc/ld.so.conf; then
17895    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17896    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17897  fi
17898
17899  # We used to test for /lib/ld.so.1 and disable shared libraries on
17900  # powerpc, because MkLinux only supported shared libraries with the
17901  # GNU dynamic linker.  Since this was broken with cross compilers,
17902  # most powerpc-linux boxes support dynamic linking these days and
17903  # people can always --disable-shared, the test was removed, and we
17904  # assume the GNU/Linux dynamic linker is in use.
17905  dynamic_linker='GNU/Linux ld.so'
17906  ;;
17907
17908knetbsd*-gnu)
17909  version_type=linux
17910  need_lib_prefix=no
17911  need_version=no
17912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17913  soname_spec='${libname}${release}${shared_ext}$major'
17914  shlibpath_var=LD_LIBRARY_PATH
17915  shlibpath_overrides_runpath=no
17916  hardcode_into_libs=yes
17917  dynamic_linker='GNU ld.so'
17918  ;;
17919
17920netbsd*)
17921  version_type=sunos
17922  need_lib_prefix=no
17923  need_version=no
17924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17927    dynamic_linker='NetBSD (a.out) ld.so'
17928  else
17929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17930    soname_spec='${libname}${release}${shared_ext}$major'
17931    dynamic_linker='NetBSD ld.elf_so'
17932  fi
17933  shlibpath_var=LD_LIBRARY_PATH
17934  shlibpath_overrides_runpath=yes
17935  hardcode_into_libs=yes
17936  ;;
17937
17938newsos6)
17939  version_type=linux
17940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941  shlibpath_var=LD_LIBRARY_PATH
17942  shlibpath_overrides_runpath=yes
17943  ;;
17944
17945nto-qnx*)
17946  version_type=linux
17947  need_lib_prefix=no
17948  need_version=no
17949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950  soname_spec='${libname}${release}${shared_ext}$major'
17951  shlibpath_var=LD_LIBRARY_PATH
17952  shlibpath_overrides_runpath=yes
17953  ;;
17954
17955openbsd*)
17956  version_type=sunos
17957  need_lib_prefix=no
17958  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17959  case $host_os in
17960    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17961    *)                         need_version=no  ;;
17962  esac
17963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17964  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17965  shlibpath_var=LD_LIBRARY_PATH
17966  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17967    case $host_os in
17968      openbsd2.[89] | openbsd2.[89].*)
17969	shlibpath_overrides_runpath=no
17970	;;
17971      *)
17972	shlibpath_overrides_runpath=yes
17973	;;
17974      esac
17975  else
17976    shlibpath_overrides_runpath=yes
17977  fi
17978  ;;
17979
17980os2*)
17981  libname_spec='$name'
17982  shrext_cmds=".dll"
17983  need_lib_prefix=no
17984  library_names_spec='$libname${shared_ext} $libname.a'
17985  dynamic_linker='OS/2 ld.exe'
17986  shlibpath_var=LIBPATH
17987  ;;
17988
17989osf3* | osf4* | osf5*)
17990  version_type=osf
17991  need_lib_prefix=no
17992  need_version=no
17993  soname_spec='${libname}${release}${shared_ext}$major'
17994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995  shlibpath_var=LD_LIBRARY_PATH
17996  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17997  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17998  ;;
17999
18000sco3.2v5*)
18001  version_type=osf
18002  soname_spec='${libname}${release}${shared_ext}$major'
18003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004  shlibpath_var=LD_LIBRARY_PATH
18005  ;;
18006
18007solaris*)
18008  version_type=linux
18009  need_lib_prefix=no
18010  need_version=no
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012  soname_spec='${libname}${release}${shared_ext}$major'
18013  shlibpath_var=LD_LIBRARY_PATH
18014  shlibpath_overrides_runpath=yes
18015  hardcode_into_libs=yes
18016  # ldd complains unless libraries are executable
18017  postinstall_cmds='chmod +x $lib'
18018  ;;
18019
18020sunos4*)
18021  version_type=sunos
18022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18023  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  shlibpath_overrides_runpath=yes
18026  if test "$with_gnu_ld" = yes; then
18027    need_lib_prefix=no
18028  fi
18029  need_version=yes
18030  ;;
18031
18032sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18033  version_type=linux
18034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18035  soname_spec='${libname}${release}${shared_ext}$major'
18036  shlibpath_var=LD_LIBRARY_PATH
18037  case $host_vendor in
18038    sni)
18039      shlibpath_overrides_runpath=no
18040      need_lib_prefix=no
18041      export_dynamic_flag_spec='${wl}-Blargedynsym'
18042      runpath_var=LD_RUN_PATH
18043      ;;
18044    siemens)
18045      need_lib_prefix=no
18046      ;;
18047    motorola)
18048      need_lib_prefix=no
18049      need_version=no
18050      shlibpath_overrides_runpath=no
18051      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18052      ;;
18053  esac
18054  ;;
18055
18056sysv4*MP*)
18057  if test -d /usr/nec ;then
18058    version_type=linux
18059    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18060    soname_spec='$libname${shared_ext}.$major'
18061    shlibpath_var=LD_LIBRARY_PATH
18062  fi
18063  ;;
18064
18065uts4*)
18066  version_type=linux
18067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068  soname_spec='${libname}${release}${shared_ext}$major'
18069  shlibpath_var=LD_LIBRARY_PATH
18070  ;;
18071
18072*)
18073  dynamic_linker=no
18074  ;;
18075esac
18076echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18077echo "${ECHO_T}$dynamic_linker" >&6
18078test "$dynamic_linker" = no && can_build_shared=no
18079
18080echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18081echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18082hardcode_action_GCJ=
18083if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18084   test -n "$runpath_var_GCJ" || \
18085   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18086
18087  # We can hardcode non-existant directories.
18088  if test "$hardcode_direct_GCJ" != no &&
18089     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090     # have to relink, otherwise we might link with an installed library
18091     # when we should be linking with a yet-to-be-installed one
18092     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18093     test "$hardcode_minus_L_GCJ" != no; then
18094    # Linking always hardcodes the temporary library directory.
18095    hardcode_action_GCJ=relink
18096  else
18097    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098    hardcode_action_GCJ=immediate
18099  fi
18100else
18101  # We cannot hardcode anything, or else we can only hardcode existing
18102  # directories.
18103  hardcode_action_GCJ=unsupported
18104fi
18105echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18106echo "${ECHO_T}$hardcode_action_GCJ" >&6
18107
18108if test "$hardcode_action_GCJ" = relink; then
18109  # Fast installation is not supported
18110  enable_fast_install=no
18111elif test "$shlibpath_overrides_runpath" = yes ||
18112     test "$enable_shared" = no; then
18113  # Fast installation is not necessary
18114  enable_fast_install=needless
18115fi
18116
18117striplib=
18118old_striplib=
18119echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18120echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18121if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18122  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18123  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18124  echo "$as_me:$LINENO: result: yes" >&5
18125echo "${ECHO_T}yes" >&6
18126else
18127# FIXME - insert some real tests, host_os isn't really good enough
18128  case $host_os in
18129   darwin*)
18130       if test -n "$STRIP" ; then
18131         striplib="$STRIP -x"
18132         echo "$as_me:$LINENO: result: yes" >&5
18133echo "${ECHO_T}yes" >&6
18134       else
18135  echo "$as_me:$LINENO: result: no" >&5
18136echo "${ECHO_T}no" >&6
18137fi
18138       ;;
18139   *)
18140  echo "$as_me:$LINENO: result: no" >&5
18141echo "${ECHO_T}no" >&6
18142    ;;
18143  esac
18144fi
18145
18146if test "x$enable_dlopen" != xyes; then
18147  enable_dlopen=unknown
18148  enable_dlopen_self=unknown
18149  enable_dlopen_self_static=unknown
18150else
18151  lt_cv_dlopen=no
18152  lt_cv_dlopen_libs=
18153
18154  case $host_os in
18155  beos*)
18156    lt_cv_dlopen="load_add_on"
18157    lt_cv_dlopen_libs=
18158    lt_cv_dlopen_self=yes
18159    ;;
18160
18161  mingw* | pw32*)
18162    lt_cv_dlopen="LoadLibrary"
18163    lt_cv_dlopen_libs=
18164   ;;
18165
18166  cygwin*)
18167    lt_cv_dlopen="dlopen"
18168    lt_cv_dlopen_libs=
18169   ;;
18170
18171  darwin*)
18172  # if libdl is installed we need to link against it
18173    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18174echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18175if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18176  echo $ECHO_N "(cached) $ECHO_C" >&6
18177else
18178  ac_check_lib_save_LIBS=$LIBS
18179LIBS="-ldl  $LIBS"
18180cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h.  */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h.  */
18186
18187/* Override any gcc2 internal prototype to avoid an error.  */
18188#ifdef __cplusplus
18189extern "C"
18190#endif
18191/* We use char because int might match the return type of a gcc2
18192   builtin and then its argument prototype would still apply.  */
18193char dlopen ();
18194int
18195main ()
18196{
18197dlopen ();
18198  ;
18199  return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext conftest$ac_exeext
18203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204  (eval $ac_link) 2>conftest.er1
18205  ac_status=$?
18206  grep -v '^ *+' conftest.er1 >conftest.err
18207  rm -f conftest.er1
18208  cat conftest.err >&5
18209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210  (exit $ac_status); } &&
18211	 { ac_try='test -z "$ac_c_werror_flag"
18212			 || test ! -s conftest.err'
18213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214  (eval $ac_try) 2>&5
18215  ac_status=$?
18216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217  (exit $ac_status); }; } &&
18218	 { ac_try='test -s conftest$ac_exeext'
18219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220  (eval $ac_try) 2>&5
18221  ac_status=$?
18222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223  (exit $ac_status); }; }; then
18224  ac_cv_lib_dl_dlopen=yes
18225else
18226  echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229ac_cv_lib_dl_dlopen=no
18230fi
18231rm -f conftest.err conftest.$ac_objext \
18232      conftest$ac_exeext conftest.$ac_ext
18233LIBS=$ac_check_lib_save_LIBS
18234fi
18235echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18236echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18237if test $ac_cv_lib_dl_dlopen = yes; then
18238  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18239else
18240
18241    lt_cv_dlopen="dyld"
18242    lt_cv_dlopen_libs=
18243    lt_cv_dlopen_self=yes
18244
18245fi
18246
18247   ;;
18248
18249  *)
18250    echo "$as_me:$LINENO: checking for shl_load" >&5
18251echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18252if test "${ac_cv_func_shl_load+set}" = set; then
18253  echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255  cat >conftest.$ac_ext <<_ACEOF
18256/* confdefs.h.  */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h.  */
18261/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18262   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18263#define shl_load innocuous_shl_load
18264
18265/* System header to define __stub macros and hopefully few prototypes,
18266    which can conflict with char shl_load (); below.
18267    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18268    <limits.h> exists even on freestanding compilers.  */
18269
18270#ifdef __STDC__
18271# include <limits.h>
18272#else
18273# include <assert.h>
18274#endif
18275
18276#undef shl_load
18277
18278/* Override any gcc2 internal prototype to avoid an error.  */
18279#ifdef __cplusplus
18280extern "C"
18281{
18282#endif
18283/* We use char because int might match the return type of a gcc2
18284   builtin and then its argument prototype would still apply.  */
18285char shl_load ();
18286/* The GNU C library defines this for functions which it implements
18287    to always fail with ENOSYS.  Some functions are actually named
18288    something starting with __ and the normal name is an alias.  */
18289#if defined (__stub_shl_load) || defined (__stub___shl_load)
18290choke me
18291#else
18292char (*f) () = shl_load;
18293#endif
18294#ifdef __cplusplus
18295}
18296#endif
18297
18298int
18299main ()
18300{
18301return f != shl_load;
18302  ;
18303  return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext conftest$ac_exeext
18307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308  (eval $ac_link) 2>conftest.er1
18309  ac_status=$?
18310  grep -v '^ *+' conftest.er1 >conftest.err
18311  rm -f conftest.er1
18312  cat conftest.err >&5
18313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314  (exit $ac_status); } &&
18315	 { ac_try='test -z "$ac_c_werror_flag"
18316			 || test ! -s conftest.err'
18317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318  (eval $ac_try) 2>&5
18319  ac_status=$?
18320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321  (exit $ac_status); }; } &&
18322	 { ac_try='test -s conftest$ac_exeext'
18323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324  (eval $ac_try) 2>&5
18325  ac_status=$?
18326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327  (exit $ac_status); }; }; then
18328  ac_cv_func_shl_load=yes
18329else
18330  echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_cv_func_shl_load=no
18334fi
18335rm -f conftest.err conftest.$ac_objext \
18336      conftest$ac_exeext conftest.$ac_ext
18337fi
18338echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18339echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18340if test $ac_cv_func_shl_load = yes; then
18341  lt_cv_dlopen="shl_load"
18342else
18343  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18344echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18345if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18346  echo $ECHO_N "(cached) $ECHO_C" >&6
18347else
18348  ac_check_lib_save_LIBS=$LIBS
18349LIBS="-ldld  $LIBS"
18350cat >conftest.$ac_ext <<_ACEOF
18351/* confdefs.h.  */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h.  */
18356
18357/* Override any gcc2 internal prototype to avoid an error.  */
18358#ifdef __cplusplus
18359extern "C"
18360#endif
18361/* We use char because int might match the return type of a gcc2
18362   builtin and then its argument prototype would still apply.  */
18363char shl_load ();
18364int
18365main ()
18366{
18367shl_load ();
18368  ;
18369  return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
18373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18374  (eval $ac_link) 2>conftest.er1
18375  ac_status=$?
18376  grep -v '^ *+' conftest.er1 >conftest.err
18377  rm -f conftest.er1
18378  cat conftest.err >&5
18379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380  (exit $ac_status); } &&
18381	 { ac_try='test -z "$ac_c_werror_flag"
18382			 || test ! -s conftest.err'
18383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384  (eval $ac_try) 2>&5
18385  ac_status=$?
18386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); }; } &&
18388	 { ac_try='test -s conftest$ac_exeext'
18389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390  (eval $ac_try) 2>&5
18391  ac_status=$?
18392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393  (exit $ac_status); }; }; then
18394  ac_cv_lib_dld_shl_load=yes
18395else
18396  echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399ac_cv_lib_dld_shl_load=no
18400fi
18401rm -f conftest.err conftest.$ac_objext \
18402      conftest$ac_exeext conftest.$ac_ext
18403LIBS=$ac_check_lib_save_LIBS
18404fi
18405echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18406echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18407if test $ac_cv_lib_dld_shl_load = yes; then
18408  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18409else
18410  echo "$as_me:$LINENO: checking for dlopen" >&5
18411echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18412if test "${ac_cv_func_dlopen+set}" = set; then
18413  echo $ECHO_N "(cached) $ECHO_C" >&6
18414else
18415  cat >conftest.$ac_ext <<_ACEOF
18416/* confdefs.h.  */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h.  */
18421/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18423#define dlopen innocuous_dlopen
18424
18425/* System header to define __stub macros and hopefully few prototypes,
18426    which can conflict with char dlopen (); below.
18427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428    <limits.h> exists even on freestanding compilers.  */
18429
18430#ifdef __STDC__
18431# include <limits.h>
18432#else
18433# include <assert.h>
18434#endif
18435
18436#undef dlopen
18437
18438/* Override any gcc2 internal prototype to avoid an error.  */
18439#ifdef __cplusplus
18440extern "C"
18441{
18442#endif
18443/* We use char because int might match the return type of a gcc2
18444   builtin and then its argument prototype would still apply.  */
18445char dlopen ();
18446/* The GNU C library defines this for functions which it implements
18447    to always fail with ENOSYS.  Some functions are actually named
18448    something starting with __ and the normal name is an alias.  */
18449#if defined (__stub_dlopen) || defined (__stub___dlopen)
18450choke me
18451#else
18452char (*f) () = dlopen;
18453#endif
18454#ifdef __cplusplus
18455}
18456#endif
18457
18458int
18459main ()
18460{
18461return f != dlopen;
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext conftest$ac_exeext
18467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468  (eval $ac_link) 2>conftest.er1
18469  ac_status=$?
18470  grep -v '^ *+' conftest.er1 >conftest.err
18471  rm -f conftest.er1
18472  cat conftest.err >&5
18473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474  (exit $ac_status); } &&
18475	 { ac_try='test -z "$ac_c_werror_flag"
18476			 || test ! -s conftest.err'
18477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478  (eval $ac_try) 2>&5
18479  ac_status=$?
18480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481  (exit $ac_status); }; } &&
18482	 { ac_try='test -s conftest$ac_exeext'
18483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484  (eval $ac_try) 2>&5
18485  ac_status=$?
18486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487  (exit $ac_status); }; }; then
18488  ac_cv_func_dlopen=yes
18489else
18490  echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493ac_cv_func_dlopen=no
18494fi
18495rm -f conftest.err conftest.$ac_objext \
18496      conftest$ac_exeext conftest.$ac_ext
18497fi
18498echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18499echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18500if test $ac_cv_func_dlopen = yes; then
18501  lt_cv_dlopen="dlopen"
18502else
18503  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18504echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18505if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18506  echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508  ac_check_lib_save_LIBS=$LIBS
18509LIBS="-ldl  $LIBS"
18510cat >conftest.$ac_ext <<_ACEOF
18511/* confdefs.h.  */
18512_ACEOF
18513cat confdefs.h >>conftest.$ac_ext
18514cat >>conftest.$ac_ext <<_ACEOF
18515/* end confdefs.h.  */
18516
18517/* Override any gcc2 internal prototype to avoid an error.  */
18518#ifdef __cplusplus
18519extern "C"
18520#endif
18521/* We use char because int might match the return type of a gcc2
18522   builtin and then its argument prototype would still apply.  */
18523char dlopen ();
18524int
18525main ()
18526{
18527dlopen ();
18528  ;
18529  return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext conftest$ac_exeext
18533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534  (eval $ac_link) 2>conftest.er1
18535  ac_status=$?
18536  grep -v '^ *+' conftest.er1 >conftest.err
18537  rm -f conftest.er1
18538  cat conftest.err >&5
18539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540  (exit $ac_status); } &&
18541	 { ac_try='test -z "$ac_c_werror_flag"
18542			 || test ! -s conftest.err'
18543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544  (eval $ac_try) 2>&5
18545  ac_status=$?
18546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547  (exit $ac_status); }; } &&
18548	 { ac_try='test -s conftest$ac_exeext'
18549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550  (eval $ac_try) 2>&5
18551  ac_status=$?
18552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553  (exit $ac_status); }; }; then
18554  ac_cv_lib_dl_dlopen=yes
18555else
18556  echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559ac_cv_lib_dl_dlopen=no
18560fi
18561rm -f conftest.err conftest.$ac_objext \
18562      conftest$ac_exeext conftest.$ac_ext
18563LIBS=$ac_check_lib_save_LIBS
18564fi
18565echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18566echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18567if test $ac_cv_lib_dl_dlopen = yes; then
18568  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18569else
18570  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18571echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18572if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18573  echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575  ac_check_lib_save_LIBS=$LIBS
18576LIBS="-lsvld  $LIBS"
18577cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h.  */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h.  */
18583
18584/* Override any gcc2 internal prototype to avoid an error.  */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588/* We use char because int might match the return type of a gcc2
18589   builtin and then its argument prototype would still apply.  */
18590char dlopen ();
18591int
18592main ()
18593{
18594dlopen ();
18595  ;
18596  return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext conftest$ac_exeext
18600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601  (eval $ac_link) 2>conftest.er1
18602  ac_status=$?
18603  grep -v '^ *+' conftest.er1 >conftest.err
18604  rm -f conftest.er1
18605  cat conftest.err >&5
18606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607  (exit $ac_status); } &&
18608	 { ac_try='test -z "$ac_c_werror_flag"
18609			 || test ! -s conftest.err'
18610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611  (eval $ac_try) 2>&5
18612  ac_status=$?
18613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614  (exit $ac_status); }; } &&
18615	 { ac_try='test -s conftest$ac_exeext'
18616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617  (eval $ac_try) 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; }; then
18621  ac_cv_lib_svld_dlopen=yes
18622else
18623  echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626ac_cv_lib_svld_dlopen=no
18627fi
18628rm -f conftest.err conftest.$ac_objext \
18629      conftest$ac_exeext conftest.$ac_ext
18630LIBS=$ac_check_lib_save_LIBS
18631fi
18632echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18633echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18634if test $ac_cv_lib_svld_dlopen = yes; then
18635  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18636else
18637  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18638echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18639if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18640  echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642  ac_check_lib_save_LIBS=$LIBS
18643LIBS="-ldld  $LIBS"
18644cat >conftest.$ac_ext <<_ACEOF
18645/* confdefs.h.  */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h.  */
18650
18651/* Override any gcc2 internal prototype to avoid an error.  */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655/* We use char because int might match the return type of a gcc2
18656   builtin and then its argument prototype would still apply.  */
18657char dld_link ();
18658int
18659main ()
18660{
18661dld_link ();
18662  ;
18663  return 0;
18664}
18665_ACEOF
18666rm -f conftest.$ac_objext conftest$ac_exeext
18667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668  (eval $ac_link) 2>conftest.er1
18669  ac_status=$?
18670  grep -v '^ *+' conftest.er1 >conftest.err
18671  rm -f conftest.er1
18672  cat conftest.err >&5
18673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674  (exit $ac_status); } &&
18675	 { ac_try='test -z "$ac_c_werror_flag"
18676			 || test ! -s conftest.err'
18677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678  (eval $ac_try) 2>&5
18679  ac_status=$?
18680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681  (exit $ac_status); }; } &&
18682	 { ac_try='test -s conftest$ac_exeext'
18683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684  (eval $ac_try) 2>&5
18685  ac_status=$?
18686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687  (exit $ac_status); }; }; then
18688  ac_cv_lib_dld_dld_link=yes
18689else
18690  echo "$as_me: failed program was:" >&5
18691sed 's/^/| /' conftest.$ac_ext >&5
18692
18693ac_cv_lib_dld_dld_link=no
18694fi
18695rm -f conftest.err conftest.$ac_objext \
18696      conftest$ac_exeext conftest.$ac_ext
18697LIBS=$ac_check_lib_save_LIBS
18698fi
18699echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18700echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18701if test $ac_cv_lib_dld_dld_link = yes; then
18702  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18703fi
18704
18705
18706fi
18707
18708
18709fi
18710
18711
18712fi
18713
18714
18715fi
18716
18717
18718fi
18719
18720    ;;
18721  esac
18722
18723  if test "x$lt_cv_dlopen" != xno; then
18724    enable_dlopen=yes
18725  else
18726    enable_dlopen=no
18727  fi
18728
18729  case $lt_cv_dlopen in
18730  dlopen)
18731    save_CPPFLAGS="$CPPFLAGS"
18732    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18733
18734    save_LDFLAGS="$LDFLAGS"
18735    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18736
18737    save_LIBS="$LIBS"
18738    LIBS="$lt_cv_dlopen_libs $LIBS"
18739
18740    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18741echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18742if test "${lt_cv_dlopen_self+set}" = set; then
18743  echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745  	  if test "$cross_compiling" = yes; then :
18746  lt_cv_dlopen_self=cross
18747else
18748  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18749  lt_status=$lt_dlunknown
18750  cat > conftest.$ac_ext <<EOF
18751#line 18751 "configure"
18752#include "confdefs.h"
18753
18754#if HAVE_DLFCN_H
18755#include <dlfcn.h>
18756#endif
18757
18758#include <stdio.h>
18759
18760#ifdef RTLD_GLOBAL
18761#  define LT_DLGLOBAL		RTLD_GLOBAL
18762#else
18763#  ifdef DL_GLOBAL
18764#    define LT_DLGLOBAL		DL_GLOBAL
18765#  else
18766#    define LT_DLGLOBAL		0
18767#  endif
18768#endif
18769
18770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18771   find out it does not work in some platform. */
18772#ifndef LT_DLLAZY_OR_NOW
18773#  ifdef RTLD_LAZY
18774#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18775#  else
18776#    ifdef DL_LAZY
18777#      define LT_DLLAZY_OR_NOW		DL_LAZY
18778#    else
18779#      ifdef RTLD_NOW
18780#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18781#      else
18782#        ifdef DL_NOW
18783#          define LT_DLLAZY_OR_NOW	DL_NOW
18784#        else
18785#          define LT_DLLAZY_OR_NOW	0
18786#        endif
18787#      endif
18788#    endif
18789#  endif
18790#endif
18791
18792#ifdef __cplusplus
18793extern "C" void exit (int);
18794#endif
18795
18796void fnord() { int i=42;}
18797int main ()
18798{
18799  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18800  int status = $lt_dlunknown;
18801
18802  if (self)
18803    {
18804      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18805      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18806      /* dlclose (self); */
18807    }
18808
18809    exit (status);
18810}
18811EOF
18812  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813  (eval $ac_link) 2>&5
18814  ac_status=$?
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18817    (./conftest; exit; ) >&5 2>/dev/null
18818    lt_status=$?
18819    case x$lt_status in
18820      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18821      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18822      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18823    esac
18824  else :
18825    # compilation failed
18826    lt_cv_dlopen_self=no
18827  fi
18828fi
18829rm -fr conftest*
18830
18831
18832fi
18833echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18834echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18835
18836    if test "x$lt_cv_dlopen_self" = xyes; then
18837      LDFLAGS="$LDFLAGS $link_static_flag"
18838      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18839echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18840if test "${lt_cv_dlopen_self_static+set}" = set; then
18841  echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843  	  if test "$cross_compiling" = yes; then :
18844  lt_cv_dlopen_self_static=cross
18845else
18846  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18847  lt_status=$lt_dlunknown
18848  cat > conftest.$ac_ext <<EOF
18849#line 18849 "configure"
18850#include "confdefs.h"
18851
18852#if HAVE_DLFCN_H
18853#include <dlfcn.h>
18854#endif
18855
18856#include <stdio.h>
18857
18858#ifdef RTLD_GLOBAL
18859#  define LT_DLGLOBAL		RTLD_GLOBAL
18860#else
18861#  ifdef DL_GLOBAL
18862#    define LT_DLGLOBAL		DL_GLOBAL
18863#  else
18864#    define LT_DLGLOBAL		0
18865#  endif
18866#endif
18867
18868/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18869   find out it does not work in some platform. */
18870#ifndef LT_DLLAZY_OR_NOW
18871#  ifdef RTLD_LAZY
18872#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18873#  else
18874#    ifdef DL_LAZY
18875#      define LT_DLLAZY_OR_NOW		DL_LAZY
18876#    else
18877#      ifdef RTLD_NOW
18878#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18879#      else
18880#        ifdef DL_NOW
18881#          define LT_DLLAZY_OR_NOW	DL_NOW
18882#        else
18883#          define LT_DLLAZY_OR_NOW	0
18884#        endif
18885#      endif
18886#    endif
18887#  endif
18888#endif
18889
18890#ifdef __cplusplus
18891extern "C" void exit (int);
18892#endif
18893
18894void fnord() { int i=42;}
18895int main ()
18896{
18897  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18898  int status = $lt_dlunknown;
18899
18900  if (self)
18901    {
18902      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18903      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18904      /* dlclose (self); */
18905    }
18906
18907    exit (status);
18908}
18909EOF
18910  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18911  (eval $ac_link) 2>&5
18912  ac_status=$?
18913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18915    (./conftest; exit; ) >&5 2>/dev/null
18916    lt_status=$?
18917    case x$lt_status in
18918      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18919      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18920      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18921    esac
18922  else :
18923    # compilation failed
18924    lt_cv_dlopen_self_static=no
18925  fi
18926fi
18927rm -fr conftest*
18928
18929
18930fi
18931echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18932echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18933    fi
18934
18935    CPPFLAGS="$save_CPPFLAGS"
18936    LDFLAGS="$save_LDFLAGS"
18937    LIBS="$save_LIBS"
18938    ;;
18939  esac
18940
18941  case $lt_cv_dlopen_self in
18942  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18943  *) enable_dlopen_self=unknown ;;
18944  esac
18945
18946  case $lt_cv_dlopen_self_static in
18947  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18948  *) enable_dlopen_self_static=unknown ;;
18949  esac
18950fi
18951
18952
18953# The else clause should only fire when bootstrapping the
18954# libtool distribution, otherwise you forgot to ship ltmain.sh
18955# with your package, and you will get complaints that there are
18956# no rules to generate ltmain.sh.
18957if test -f "$ltmain"; then
18958  # See if we are running on zsh, and set the options which allow our commands through
18959  # without removal of \ escapes.
18960  if test -n "${ZSH_VERSION+set}" ; then
18961    setopt NO_GLOB_SUBST
18962  fi
18963  # Now quote all the things that may contain metacharacters while being
18964  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18965  # variables and quote the copies for generation of the libtool script.
18966  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18967    SED SHELL STRIP \
18968    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18969    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18970    deplibs_check_method reload_flag reload_cmds need_locks \
18971    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18972    lt_cv_sys_global_symbol_to_c_name_address \
18973    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18974    old_postinstall_cmds old_postuninstall_cmds \
18975    compiler_GCJ \
18976    CC_GCJ \
18977    LD_GCJ \
18978    lt_prog_compiler_wl_GCJ \
18979    lt_prog_compiler_pic_GCJ \
18980    lt_prog_compiler_static_GCJ \
18981    lt_prog_compiler_no_builtin_flag_GCJ \
18982    export_dynamic_flag_spec_GCJ \
18983    thread_safe_flag_spec_GCJ \
18984    whole_archive_flag_spec_GCJ \
18985    enable_shared_with_static_runtimes_GCJ \
18986    old_archive_cmds_GCJ \
18987    old_archive_from_new_cmds_GCJ \
18988    predep_objects_GCJ \
18989    postdep_objects_GCJ \
18990    predeps_GCJ \
18991    postdeps_GCJ \
18992    compiler_lib_search_path_GCJ \
18993    archive_cmds_GCJ \
18994    archive_expsym_cmds_GCJ \
18995    postinstall_cmds_GCJ \
18996    postuninstall_cmds_GCJ \
18997    old_archive_from_expsyms_cmds_GCJ \
18998    allow_undefined_flag_GCJ \
18999    no_undefined_flag_GCJ \
19000    export_symbols_cmds_GCJ \
19001    hardcode_libdir_flag_spec_GCJ \
19002    hardcode_libdir_flag_spec_ld_GCJ \
19003    hardcode_libdir_separator_GCJ \
19004    hardcode_automatic_GCJ \
19005    module_cmds_GCJ \
19006    module_expsym_cmds_GCJ \
19007    lt_cv_prog_compiler_c_o_GCJ \
19008    exclude_expsyms_GCJ \
19009    include_expsyms_GCJ; do
19010
19011    case $var in
19012    old_archive_cmds_GCJ | \
19013    old_archive_from_new_cmds_GCJ | \
19014    archive_cmds_GCJ | \
19015    archive_expsym_cmds_GCJ | \
19016    module_cmds_GCJ | \
19017    module_expsym_cmds_GCJ | \
19018    old_archive_from_expsyms_cmds_GCJ | \
19019    export_symbols_cmds_GCJ | \
19020    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19021    postinstall_cmds | postuninstall_cmds | \
19022    old_postinstall_cmds | old_postuninstall_cmds | \
19023    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19024      # Double-quote double-evaled strings.
19025      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19026      ;;
19027    *)
19028      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19029      ;;
19030    esac
19031  done
19032
19033  case $lt_echo in
19034  *'\$0 --fallback-echo"')
19035    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19036    ;;
19037  esac
19038
19039cfgfile="$ofile"
19040
19041  cat <<__EOF__ >> "$cfgfile"
19042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19043
19044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19045
19046# Shell to use when invoking shell scripts.
19047SHELL=$lt_SHELL
19048
19049# Whether or not to build shared libraries.
19050build_libtool_libs=$enable_shared
19051
19052# Whether or not to build static libraries.
19053build_old_libs=$enable_static
19054
19055# Whether or not to add -lc for building shared libraries.
19056build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19057
19058# Whether or not to disallow shared libs when runtime libs are static
19059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19060
19061# Whether or not to optimize for fast installation.
19062fast_install=$enable_fast_install
19063
19064# The host system.
19065host_alias=$host_alias
19066host=$host
19067host_os=$host_os
19068
19069# The build system.
19070build_alias=$build_alias
19071build=$build
19072build_os=$build_os
19073
19074# An echo program that does not interpret backslashes.
19075echo=$lt_echo
19076
19077# The archiver.
19078AR=$lt_AR
19079AR_FLAGS=$lt_AR_FLAGS
19080
19081# A C compiler.
19082LTCC=$lt_LTCC
19083
19084# A language-specific compiler.
19085CC=$lt_compiler_GCJ
19086
19087# Is the compiler the GNU C compiler?
19088with_gcc=$GCC_GCJ
19089
19090# An ERE matcher.
19091EGREP=$lt_EGREP
19092
19093# The linker used to build libraries.
19094LD=$lt_LD_GCJ
19095
19096# Whether we need hard or soft links.
19097LN_S=$lt_LN_S
19098
19099# A BSD-compatible nm program.
19100NM=$lt_NM
19101
19102# A symbol stripping program
19103STRIP=$lt_STRIP
19104
19105# Used to examine libraries when file_magic_cmd begins "file"
19106MAGIC_CMD=$MAGIC_CMD
19107
19108# Used on cygwin: DLL creation program.
19109DLLTOOL="$DLLTOOL"
19110
19111# Used on cygwin: object dumper.
19112OBJDUMP="$OBJDUMP"
19113
19114# Used on cygwin: assembler.
19115AS="$AS"
19116
19117# The name of the directory that contains temporary libtool files.
19118objdir=$objdir
19119
19120# How to create reloadable object files.
19121reload_flag=$lt_reload_flag
19122reload_cmds=$lt_reload_cmds
19123
19124# How to pass a linker flag through the compiler.
19125wl=$lt_lt_prog_compiler_wl_GCJ
19126
19127# Object file suffix (normally "o").
19128objext="$ac_objext"
19129
19130# Old archive suffix (normally "a").
19131libext="$libext"
19132
19133# Shared library suffix (normally ".so").
19134shrext_cmds='$shrext_cmds'
19135
19136# Executable file suffix (normally "").
19137exeext="$exeext"
19138
19139# Additional compiler flags for building library objects.
19140pic_flag=$lt_lt_prog_compiler_pic_GCJ
19141pic_mode=$pic_mode
19142
19143# What is the maximum length of a command?
19144max_cmd_len=$lt_cv_sys_max_cmd_len
19145
19146# Does compiler simultaneously support -c and -o options?
19147compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19148
19149# Must we lock files when doing compilation?
19150need_locks=$lt_need_locks
19151
19152# Do we need the lib prefix for modules?
19153need_lib_prefix=$need_lib_prefix
19154
19155# Do we need a version for libraries?
19156need_version=$need_version
19157
19158# Whether dlopen is supported.
19159dlopen_support=$enable_dlopen
19160
19161# Whether dlopen of programs is supported.
19162dlopen_self=$enable_dlopen_self
19163
19164# Whether dlopen of statically linked programs is supported.
19165dlopen_self_static=$enable_dlopen_self_static
19166
19167# Compiler flag to prevent dynamic linking.
19168link_static_flag=$lt_lt_prog_compiler_static_GCJ
19169
19170# Compiler flag to turn off builtin functions.
19171no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19172
19173# Compiler flag to allow reflexive dlopens.
19174export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19175
19176# Compiler flag to generate shared objects directly from archives.
19177whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19178
19179# Compiler flag to generate thread-safe objects.
19180thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19181
19182# Library versioning type.
19183version_type=$version_type
19184
19185# Format of library name prefix.
19186libname_spec=$lt_libname_spec
19187
19188# List of archive names.  First name is the real one, the rest are links.
19189# The last name is the one that the linker finds with -lNAME.
19190library_names_spec=$lt_library_names_spec
19191
19192# The coded name of the library, if different from the real name.
19193soname_spec=$lt_soname_spec
19194
19195# Commands used to build and install an old-style archive.
19196RANLIB=$lt_RANLIB
19197old_archive_cmds=$lt_old_archive_cmds_GCJ
19198old_postinstall_cmds=$lt_old_postinstall_cmds
19199old_postuninstall_cmds=$lt_old_postuninstall_cmds
19200
19201# Create an old-style archive from a shared archive.
19202old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19203
19204# Create a temporary old-style archive to link instead of a shared archive.
19205old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19206
19207# Commands used to build and install a shared archive.
19208archive_cmds=$lt_archive_cmds_GCJ
19209archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19210postinstall_cmds=$lt_postinstall_cmds
19211postuninstall_cmds=$lt_postuninstall_cmds
19212
19213# Commands used to build a loadable module (assumed same as above if empty)
19214module_cmds=$lt_module_cmds_GCJ
19215module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19216
19217# Commands to strip libraries.
19218old_striplib=$lt_old_striplib
19219striplib=$lt_striplib
19220
19221# Dependencies to place before the objects being linked to create a
19222# shared library.
19223predep_objects=$lt_predep_objects_GCJ
19224
19225# Dependencies to place after the objects being linked to create a
19226# shared library.
19227postdep_objects=$lt_postdep_objects_GCJ
19228
19229# Dependencies to place before the objects being linked to create a
19230# shared library.
19231predeps=$lt_predeps_GCJ
19232
19233# Dependencies to place after the objects being linked to create a
19234# shared library.
19235postdeps=$lt_postdeps_GCJ
19236
19237# The library search path used internally by the compiler when linking
19238# a shared library.
19239compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19240
19241# Method to check whether dependent libraries are shared objects.
19242deplibs_check_method=$lt_deplibs_check_method
19243
19244# Command to use when deplibs_check_method == file_magic.
19245file_magic_cmd=$lt_file_magic_cmd
19246
19247# Flag that allows shared libraries with undefined symbols to be built.
19248allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19249
19250# Flag that forces no undefined symbols.
19251no_undefined_flag=$lt_no_undefined_flag_GCJ
19252
19253# Commands used to finish a libtool library installation in a directory.
19254finish_cmds=$lt_finish_cmds
19255
19256# Same as above, but a single script fragment to be evaled but not shown.
19257finish_eval=$lt_finish_eval
19258
19259# Take the output of nm and produce a listing of raw symbols and C names.
19260global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19261
19262# Transform the output of nm in a proper C declaration
19263global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19264
19265# Transform the output of nm in a C name address pair
19266global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19267
19268# This is the shared library runtime path variable.
19269runpath_var=$runpath_var
19270
19271# This is the shared library path variable.
19272shlibpath_var=$shlibpath_var
19273
19274# Is shlibpath searched before the hard-coded library search path?
19275shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19276
19277# How to hardcode a shared library path into an executable.
19278hardcode_action=$hardcode_action_GCJ
19279
19280# Whether we should hardcode library paths into libraries.
19281hardcode_into_libs=$hardcode_into_libs
19282
19283# Flag to hardcode \$libdir into a binary during linking.
19284# This must work even if \$libdir does not exist.
19285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19286
19287# If ld is used when linking, flag to hardcode \$libdir into
19288# a binary during linking. This must work even if \$libdir does
19289# not exist.
19290hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19291
19292# Whether we need a single -rpath flag with a separated argument.
19293hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19294
19295# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19296# resulting binary.
19297hardcode_direct=$hardcode_direct_GCJ
19298
19299# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19300# resulting binary.
19301hardcode_minus_L=$hardcode_minus_L_GCJ
19302
19303# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19304# the resulting binary.
19305hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19306
19307# Set to yes if building a shared library automatically hardcodes DIR into the library
19308# and all subsequent libraries and executables linked against it.
19309hardcode_automatic=$hardcode_automatic_GCJ
19310
19311# Variables whose values should be saved in libtool wrapper scripts and
19312# restored at relink time.
19313variables_saved_for_relink="$variables_saved_for_relink"
19314
19315# Whether libtool must link a program against all its dependency libraries.
19316link_all_deplibs=$link_all_deplibs_GCJ
19317
19318# Compile-time system search path for libraries
19319sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19320
19321# Run-time system search path for libraries
19322sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19323
19324# Fix the shell variable \$srcfile for the compiler.
19325fix_srcfile_path="$fix_srcfile_path_GCJ"
19326
19327# Set to yes if exported symbols are required.
19328always_export_symbols=$always_export_symbols_GCJ
19329
19330# The commands to list exported symbols.
19331export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19332
19333# The commands to extract the exported symbol list from a shared archive.
19334extract_expsyms_cmds=$lt_extract_expsyms_cmds
19335
19336# Symbols that should not be listed in the preloaded symbols.
19337exclude_expsyms=$lt_exclude_expsyms_GCJ
19338
19339# Symbols that must always be exported.
19340include_expsyms=$lt_include_expsyms_GCJ
19341
19342# ### END LIBTOOL TAG CONFIG: $tagname
19343
19344__EOF__
19345
19346
19347else
19348  # If there is no Makefile yet, we rely on a make rule to execute
19349  # `config.status --recheck' to rerun these tests and create the
19350  # libtool script then.
19351  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19352  if test -f "$ltmain_in"; then
19353    test -f Makefile && make "$ltmain"
19354  fi
19355fi
19356
19357
19358ac_ext=c
19359ac_cpp='$CPP $CPPFLAGS'
19360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362ac_compiler_gnu=$ac_cv_c_compiler_gnu
19363
19364CC="$lt_save_CC"
19365
19366	else
19367	  tagname=""
19368	fi
19369	;;
19370
19371      RC)
19372
19373
19374
19375# Source file extension for RC test sources.
19376ac_ext=rc
19377
19378# Object file extension for compiled RC test sources.
19379objext=o
19380objext_RC=$objext
19381
19382# Code to be used in simple compile tests
19383lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19384
19385# Code to be used in simple link tests
19386lt_simple_link_test_code="$lt_simple_compile_test_code"
19387
19388# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19389
19390# If no C compiler was specified, use CC.
19391LTCC=${LTCC-"$CC"}
19392
19393# Allow CC to be a program name with arguments.
19394compiler=$CC
19395
19396
19397# save warnings/boilerplate of simple test code
19398ac_outfile=conftest.$ac_objext
19399printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19400eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19401_lt_compiler_boilerplate=`cat conftest.err`
19402$rm conftest*
19403
19404ac_outfile=conftest.$ac_objext
19405printf "$lt_simple_link_test_code" >conftest.$ac_ext
19406eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19407_lt_linker_boilerplate=`cat conftest.err`
19408$rm conftest*
19409
19410
19411# Allow CC to be a program name with arguments.
19412lt_save_CC="$CC"
19413CC=${RC-"windres"}
19414compiler=$CC
19415compiler_RC=$CC
19416for cc_temp in $compiler""; do
19417  case $cc_temp in
19418    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19419    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19420    \-*) ;;
19421    *) break;;
19422  esac
19423done
19424cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19425
19426lt_cv_prog_compiler_c_o_RC=yes
19427
19428# The else clause should only fire when bootstrapping the
19429# libtool distribution, otherwise you forgot to ship ltmain.sh
19430# with your package, and you will get complaints that there are
19431# no rules to generate ltmain.sh.
19432if test -f "$ltmain"; then
19433  # See if we are running on zsh, and set the options which allow our commands through
19434  # without removal of \ escapes.
19435  if test -n "${ZSH_VERSION+set}" ; then
19436    setopt NO_GLOB_SUBST
19437  fi
19438  # Now quote all the things that may contain metacharacters while being
19439  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19440  # variables and quote the copies for generation of the libtool script.
19441  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19442    SED SHELL STRIP \
19443    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19444    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19445    deplibs_check_method reload_flag reload_cmds need_locks \
19446    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19447    lt_cv_sys_global_symbol_to_c_name_address \
19448    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19449    old_postinstall_cmds old_postuninstall_cmds \
19450    compiler_RC \
19451    CC_RC \
19452    LD_RC \
19453    lt_prog_compiler_wl_RC \
19454    lt_prog_compiler_pic_RC \
19455    lt_prog_compiler_static_RC \
19456    lt_prog_compiler_no_builtin_flag_RC \
19457    export_dynamic_flag_spec_RC \
19458    thread_safe_flag_spec_RC \
19459    whole_archive_flag_spec_RC \
19460    enable_shared_with_static_runtimes_RC \
19461    old_archive_cmds_RC \
19462    old_archive_from_new_cmds_RC \
19463    predep_objects_RC \
19464    postdep_objects_RC \
19465    predeps_RC \
19466    postdeps_RC \
19467    compiler_lib_search_path_RC \
19468    archive_cmds_RC \
19469    archive_expsym_cmds_RC \
19470    postinstall_cmds_RC \
19471    postuninstall_cmds_RC \
19472    old_archive_from_expsyms_cmds_RC \
19473    allow_undefined_flag_RC \
19474    no_undefined_flag_RC \
19475    export_symbols_cmds_RC \
19476    hardcode_libdir_flag_spec_RC \
19477    hardcode_libdir_flag_spec_ld_RC \
19478    hardcode_libdir_separator_RC \
19479    hardcode_automatic_RC \
19480    module_cmds_RC \
19481    module_expsym_cmds_RC \
19482    lt_cv_prog_compiler_c_o_RC \
19483    exclude_expsyms_RC \
19484    include_expsyms_RC; do
19485
19486    case $var in
19487    old_archive_cmds_RC | \
19488    old_archive_from_new_cmds_RC | \
19489    archive_cmds_RC | \
19490    archive_expsym_cmds_RC | \
19491    module_cmds_RC | \
19492    module_expsym_cmds_RC | \
19493    old_archive_from_expsyms_cmds_RC | \
19494    export_symbols_cmds_RC | \
19495    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19496    postinstall_cmds | postuninstall_cmds | \
19497    old_postinstall_cmds | old_postuninstall_cmds | \
19498    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19499      # Double-quote double-evaled strings.
19500      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19501      ;;
19502    *)
19503      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19504      ;;
19505    esac
19506  done
19507
19508  case $lt_echo in
19509  *'\$0 --fallback-echo"')
19510    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19511    ;;
19512  esac
19513
19514cfgfile="$ofile"
19515
19516  cat <<__EOF__ >> "$cfgfile"
19517# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19518
19519# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19520
19521# Shell to use when invoking shell scripts.
19522SHELL=$lt_SHELL
19523
19524# Whether or not to build shared libraries.
19525build_libtool_libs=$enable_shared
19526
19527# Whether or not to build static libraries.
19528build_old_libs=$enable_static
19529
19530# Whether or not to add -lc for building shared libraries.
19531build_libtool_need_lc=$archive_cmds_need_lc_RC
19532
19533# Whether or not to disallow shared libs when runtime libs are static
19534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19535
19536# Whether or not to optimize for fast installation.
19537fast_install=$enable_fast_install
19538
19539# The host system.
19540host_alias=$host_alias
19541host=$host
19542host_os=$host_os
19543
19544# The build system.
19545build_alias=$build_alias
19546build=$build
19547build_os=$build_os
19548
19549# An echo program that does not interpret backslashes.
19550echo=$lt_echo
19551
19552# The archiver.
19553AR=$lt_AR
19554AR_FLAGS=$lt_AR_FLAGS
19555
19556# A C compiler.
19557LTCC=$lt_LTCC
19558
19559# A language-specific compiler.
19560CC=$lt_compiler_RC
19561
19562# Is the compiler the GNU C compiler?
19563with_gcc=$GCC_RC
19564
19565# An ERE matcher.
19566EGREP=$lt_EGREP
19567
19568# The linker used to build libraries.
19569LD=$lt_LD_RC
19570
19571# Whether we need hard or soft links.
19572LN_S=$lt_LN_S
19573
19574# A BSD-compatible nm program.
19575NM=$lt_NM
19576
19577# A symbol stripping program
19578STRIP=$lt_STRIP
19579
19580# Used to examine libraries when file_magic_cmd begins "file"
19581MAGIC_CMD=$MAGIC_CMD
19582
19583# Used on cygwin: DLL creation program.
19584DLLTOOL="$DLLTOOL"
19585
19586# Used on cygwin: object dumper.
19587OBJDUMP="$OBJDUMP"
19588
19589# Used on cygwin: assembler.
19590AS="$AS"
19591
19592# The name of the directory that contains temporary libtool files.
19593objdir=$objdir
19594
19595# How to create reloadable object files.
19596reload_flag=$lt_reload_flag
19597reload_cmds=$lt_reload_cmds
19598
19599# How to pass a linker flag through the compiler.
19600wl=$lt_lt_prog_compiler_wl_RC
19601
19602# Object file suffix (normally "o").
19603objext="$ac_objext"
19604
19605# Old archive suffix (normally "a").
19606libext="$libext"
19607
19608# Shared library suffix (normally ".so").
19609shrext_cmds='$shrext_cmds'
19610
19611# Executable file suffix (normally "").
19612exeext="$exeext"
19613
19614# Additional compiler flags for building library objects.
19615pic_flag=$lt_lt_prog_compiler_pic_RC
19616pic_mode=$pic_mode
19617
19618# What is the maximum length of a command?
19619max_cmd_len=$lt_cv_sys_max_cmd_len
19620
19621# Does compiler simultaneously support -c and -o options?
19622compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19623
19624# Must we lock files when doing compilation?
19625need_locks=$lt_need_locks
19626
19627# Do we need the lib prefix for modules?
19628need_lib_prefix=$need_lib_prefix
19629
19630# Do we need a version for libraries?
19631need_version=$need_version
19632
19633# Whether dlopen is supported.
19634dlopen_support=$enable_dlopen
19635
19636# Whether dlopen of programs is supported.
19637dlopen_self=$enable_dlopen_self
19638
19639# Whether dlopen of statically linked programs is supported.
19640dlopen_self_static=$enable_dlopen_self_static
19641
19642# Compiler flag to prevent dynamic linking.
19643link_static_flag=$lt_lt_prog_compiler_static_RC
19644
19645# Compiler flag to turn off builtin functions.
19646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19647
19648# Compiler flag to allow reflexive dlopens.
19649export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19650
19651# Compiler flag to generate shared objects directly from archives.
19652whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19653
19654# Compiler flag to generate thread-safe objects.
19655thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19656
19657# Library versioning type.
19658version_type=$version_type
19659
19660# Format of library name prefix.
19661libname_spec=$lt_libname_spec
19662
19663# List of archive names.  First name is the real one, the rest are links.
19664# The last name is the one that the linker finds with -lNAME.
19665library_names_spec=$lt_library_names_spec
19666
19667# The coded name of the library, if different from the real name.
19668soname_spec=$lt_soname_spec
19669
19670# Commands used to build and install an old-style archive.
19671RANLIB=$lt_RANLIB
19672old_archive_cmds=$lt_old_archive_cmds_RC
19673old_postinstall_cmds=$lt_old_postinstall_cmds
19674old_postuninstall_cmds=$lt_old_postuninstall_cmds
19675
19676# Create an old-style archive from a shared archive.
19677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19678
19679# Create a temporary old-style archive to link instead of a shared archive.
19680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19681
19682# Commands used to build and install a shared archive.
19683archive_cmds=$lt_archive_cmds_RC
19684archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19685postinstall_cmds=$lt_postinstall_cmds
19686postuninstall_cmds=$lt_postuninstall_cmds
19687
19688# Commands used to build a loadable module (assumed same as above if empty)
19689module_cmds=$lt_module_cmds_RC
19690module_expsym_cmds=$lt_module_expsym_cmds_RC
19691
19692# Commands to strip libraries.
19693old_striplib=$lt_old_striplib
19694striplib=$lt_striplib
19695
19696# Dependencies to place before the objects being linked to create a
19697# shared library.
19698predep_objects=$lt_predep_objects_RC
19699
19700# Dependencies to place after the objects being linked to create a
19701# shared library.
19702postdep_objects=$lt_postdep_objects_RC
19703
19704# Dependencies to place before the objects being linked to create a
19705# shared library.
19706predeps=$lt_predeps_RC
19707
19708# Dependencies to place after the objects being linked to create a
19709# shared library.
19710postdeps=$lt_postdeps_RC
19711
19712# The library search path used internally by the compiler when linking
19713# a shared library.
19714compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19715
19716# Method to check whether dependent libraries are shared objects.
19717deplibs_check_method=$lt_deplibs_check_method
19718
19719# Command to use when deplibs_check_method == file_magic.
19720file_magic_cmd=$lt_file_magic_cmd
19721
19722# Flag that allows shared libraries with undefined symbols to be built.
19723allow_undefined_flag=$lt_allow_undefined_flag_RC
19724
19725# Flag that forces no undefined symbols.
19726no_undefined_flag=$lt_no_undefined_flag_RC
19727
19728# Commands used to finish a libtool library installation in a directory.
19729finish_cmds=$lt_finish_cmds
19730
19731# Same as above, but a single script fragment to be evaled but not shown.
19732finish_eval=$lt_finish_eval
19733
19734# Take the output of nm and produce a listing of raw symbols and C names.
19735global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19736
19737# Transform the output of nm in a proper C declaration
19738global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19739
19740# Transform the output of nm in a C name address pair
19741global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19742
19743# This is the shared library runtime path variable.
19744runpath_var=$runpath_var
19745
19746# This is the shared library path variable.
19747shlibpath_var=$shlibpath_var
19748
19749# Is shlibpath searched before the hard-coded library search path?
19750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19751
19752# How to hardcode a shared library path into an executable.
19753hardcode_action=$hardcode_action_RC
19754
19755# Whether we should hardcode library paths into libraries.
19756hardcode_into_libs=$hardcode_into_libs
19757
19758# Flag to hardcode \$libdir into a binary during linking.
19759# This must work even if \$libdir does not exist.
19760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19761
19762# If ld is used when linking, flag to hardcode \$libdir into
19763# a binary during linking. This must work even if \$libdir does
19764# not exist.
19765hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19766
19767# Whether we need a single -rpath flag with a separated argument.
19768hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19769
19770# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19771# resulting binary.
19772hardcode_direct=$hardcode_direct_RC
19773
19774# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19775# resulting binary.
19776hardcode_minus_L=$hardcode_minus_L_RC
19777
19778# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19779# the resulting binary.
19780hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19781
19782# Set to yes if building a shared library automatically hardcodes DIR into the library
19783# and all subsequent libraries and executables linked against it.
19784hardcode_automatic=$hardcode_automatic_RC
19785
19786# Variables whose values should be saved in libtool wrapper scripts and
19787# restored at relink time.
19788variables_saved_for_relink="$variables_saved_for_relink"
19789
19790# Whether libtool must link a program against all its dependency libraries.
19791link_all_deplibs=$link_all_deplibs_RC
19792
19793# Compile-time system search path for libraries
19794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19795
19796# Run-time system search path for libraries
19797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19798
19799# Fix the shell variable \$srcfile for the compiler.
19800fix_srcfile_path="$fix_srcfile_path_RC"
19801
19802# Set to yes if exported symbols are required.
19803always_export_symbols=$always_export_symbols_RC
19804
19805# The commands to list exported symbols.
19806export_symbols_cmds=$lt_export_symbols_cmds_RC
19807
19808# The commands to extract the exported symbol list from a shared archive.
19809extract_expsyms_cmds=$lt_extract_expsyms_cmds
19810
19811# Symbols that should not be listed in the preloaded symbols.
19812exclude_expsyms=$lt_exclude_expsyms_RC
19813
19814# Symbols that must always be exported.
19815include_expsyms=$lt_include_expsyms_RC
19816
19817# ### END LIBTOOL TAG CONFIG: $tagname
19818
19819__EOF__
19820
19821
19822else
19823  # If there is no Makefile yet, we rely on a make rule to execute
19824  # `config.status --recheck' to rerun these tests and create the
19825  # libtool script then.
19826  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19827  if test -f "$ltmain_in"; then
19828    test -f Makefile && make "$ltmain"
19829  fi
19830fi
19831
19832
19833ac_ext=c
19834ac_cpp='$CPP $CPPFLAGS'
19835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839CC="$lt_save_CC"
19840
19841	;;
19842
19843      *)
19844	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19845echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19846   { (exit 1); exit 1; }; }
19847	;;
19848      esac
19849
19850      # Append the new tag name to the list of available tags.
19851      if test -n "$tagname" ; then
19852      available_tags="$available_tags $tagname"
19853    fi
19854    fi
19855  done
19856  IFS="$lt_save_ifs"
19857
19858  # Now substitute the updated list of available tags.
19859  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19860    mv "${ofile}T" "$ofile"
19861    chmod +x "$ofile"
19862  else
19863    rm -f "${ofile}T"
19864    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19865echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19866   { (exit 1); exit 1; }; }
19867  fi
19868fi
19869
19870
19871
19872# This can be used to rebuild libtool when needed
19873LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19874
19875# Always use our own libtool.
19876LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19877
19878# Prevent multiple expansion
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900ac_ext=cc
19901ac_cpp='$CXXCPP $CPPFLAGS'
19902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19905
19906
19907
19908case $host in
19909  *cygwin*)
19910    CXXFLAGS="-DWIN32_LEAN_AND_MEAN -DNOMINMAX -DADR_DECL= -DADR_CALL= $CXXFLAGS"
19911    ;;
19912esac
19913
19914if test "x$GXX" = "xyes" ; then
19915   CXXFLAGS="$CXXFLAGS -Wall -Wno-non-virtual-dtor"
19916fi
19917if test "x$GCC" = "xyes" ; then
19918   CFLAGS="$CFLAGS -Wall -Wno-non-virtual-dtor"
19919fi
19920
19921echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19922echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19923if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19924  echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926  ac_check_lib_save_LIBS=$LIBS
19927LIBS="-lpthread  $LIBS"
19928cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h.  */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h.  */
19934
19935/* Override any gcc2 internal prototype to avoid an error.  */
19936#ifdef __cplusplus
19937extern "C"
19938#endif
19939/* We use char because int might match the return type of a gcc2
19940   builtin and then its argument prototype would still apply.  */
19941char pthread_create ();
19942int
19943main ()
19944{
19945pthread_create ();
19946  ;
19947  return 0;
19948}
19949_ACEOF
19950rm -f conftest.$ac_objext conftest$ac_exeext
19951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19952  (eval $ac_link) 2>conftest.er1
19953  ac_status=$?
19954  grep -v '^ *+' conftest.er1 >conftest.err
19955  rm -f conftest.er1
19956  cat conftest.err >&5
19957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958  (exit $ac_status); } &&
19959	 { ac_try='test -z "$ac_cxx_werror_flag"
19960			 || test ! -s conftest.err'
19961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962  (eval $ac_try) 2>&5
19963  ac_status=$?
19964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965  (exit $ac_status); }; } &&
19966	 { ac_try='test -s conftest$ac_exeext'
19967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968  (eval $ac_try) 2>&5
19969  ac_status=$?
19970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971  (exit $ac_status); }; }; then
19972  ac_cv_lib_pthread_pthread_create=yes
19973else
19974  echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977ac_cv_lib_pthread_pthread_create=no
19978fi
19979rm -f conftest.err conftest.$ac_objext \
19980      conftest$ac_exeext conftest.$ac_ext
19981LIBS=$ac_check_lib_save_LIBS
19982fi
19983echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19984echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19985if test $ac_cv_lib_pthread_pthread_create = yes; then
19986  LIBS="-lpthread $LIBS"
19987    EXTRA_LIBS="-lpthread $EXTRA_LIBS"
19988
19989else
19990  { { echo "$as_me:$LINENO: error: could not find pthread library" >&5
19991echo "$as_me: error: could not find pthread library" >&2;}
19992   { (exit 1); exit 1; }; }
19993fi
19994
19995
19996echo "$as_me:$LINENO: checking for FLAC__seekable_stream_decoder_process_single in -lFLAC" >&5
19997echo $ECHO_N "checking for FLAC__seekable_stream_decoder_process_single in -lFLAC... $ECHO_C" >&6
19998if test "${ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single+set}" = set; then
19999  echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001  ac_check_lib_save_LIBS=$LIBS
20002LIBS="-lFLAC -lm $LIBS"
20003cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h.  */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h.  */
20009
20010/* Override any gcc2 internal prototype to avoid an error.  */
20011#ifdef __cplusplus
20012extern "C"
20013#endif
20014/* We use char because int might match the return type of a gcc2
20015   builtin and then its argument prototype would still apply.  */
20016char FLAC__seekable_stream_decoder_process_single ();
20017int
20018main ()
20019{
20020FLAC__seekable_stream_decoder_process_single ();
20021  ;
20022  return 0;
20023}
20024_ACEOF
20025rm -f conftest.$ac_objext conftest$ac_exeext
20026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20027  (eval $ac_link) 2>conftest.er1
20028  ac_status=$?
20029  grep -v '^ *+' conftest.er1 >conftest.err
20030  rm -f conftest.er1
20031  cat conftest.err >&5
20032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033  (exit $ac_status); } &&
20034	 { ac_try='test -z "$ac_cxx_werror_flag"
20035			 || test ! -s conftest.err'
20036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037  (eval $ac_try) 2>&5
20038  ac_status=$?
20039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040  (exit $ac_status); }; } &&
20041	 { ac_try='test -s conftest$ac_exeext'
20042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043  (eval $ac_try) 2>&5
20044  ac_status=$?
20045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046  (exit $ac_status); }; }; then
20047  ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single=yes
20048else
20049  echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
20051
20052ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single=no
20053fi
20054rm -f conftest.err conftest.$ac_objext \
20055      conftest$ac_exeext conftest.$ac_ext
20056LIBS=$ac_check_lib_save_LIBS
20057fi
20058echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single" >&5
20059echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single" >&6
20060if test $ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_single = yes; then
20061  LIBS="-lFLAC -lm $LIBS"
20062    EXTRA_LIBS="-lFLAC -lm $EXTRA_LIBS"
20063    HAVE_FLAC=true
20064
20065else
20066  { echo "$as_me:$LINENO: WARNING: libFLAC not found.  Install FLAC from http://flac.sourceforge.net/" >&5
20067echo "$as_me: WARNING: libFLAC not found.  Install FLAC from http://flac.sourceforge.net/" >&2;}
20068    { echo "$as_me:$LINENO: WARNING: Disabling FLAC support." >&5
20069echo "$as_me: WARNING: Disabling FLAC support." >&2;}
20070    cat >>confdefs.h <<\_ACEOF
20071#define NO_FLAC 1
20072_ACEOF
20073
20074
20075fi
20076
20077
20078
20079if test "x$HAVE_FLAC" = "xtrue"; then
20080  HAVE_FLAC_TRUE=
20081  HAVE_FLAC_FALSE='#'
20082else
20083  HAVE_FLAC_TRUE='#'
20084  HAVE_FLAC_FALSE=
20085fi
20086
20087
20088echo "$as_me:$LINENO: checking for duh_start_renderer in -ldumb" >&5
20089echo $ECHO_N "checking for duh_start_renderer in -ldumb... $ECHO_C" >&6
20090if test "${ac_cv_lib_dumb_duh_start_renderer+set}" = set; then
20091  echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093  ac_check_lib_save_LIBS=$LIBS
20094LIBS="-ldumb  $LIBS"
20095cat >conftest.$ac_ext <<_ACEOF
20096/* confdefs.h.  */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h.  */
20101
20102/* Override any gcc2 internal prototype to avoid an error.  */
20103#ifdef __cplusplus
20104extern "C"
20105#endif
20106/* We use char because int might match the return type of a gcc2
20107   builtin and then its argument prototype would still apply.  */
20108char duh_start_renderer ();
20109int
20110main ()
20111{
20112duh_start_renderer ();
20113  ;
20114  return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext conftest$ac_exeext
20118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119  (eval $ac_link) 2>conftest.er1
20120  ac_status=$?
20121  grep -v '^ *+' conftest.er1 >conftest.err
20122  rm -f conftest.er1
20123  cat conftest.err >&5
20124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125  (exit $ac_status); } &&
20126	 { ac_try='test -z "$ac_cxx_werror_flag"
20127			 || test ! -s conftest.err'
20128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129  (eval $ac_try) 2>&5
20130  ac_status=$?
20131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132  (exit $ac_status); }; } &&
20133	 { ac_try='test -s conftest$ac_exeext'
20134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135  (eval $ac_try) 2>&5
20136  ac_status=$?
20137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138  (exit $ac_status); }; }; then
20139  ac_cv_lib_dumb_duh_start_renderer=yes
20140else
20141  echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144ac_cv_lib_dumb_duh_start_renderer=no
20145fi
20146rm -f conftest.err conftest.$ac_objext \
20147      conftest$ac_exeext conftest.$ac_ext
20148LIBS=$ac_check_lib_save_LIBS
20149fi
20150echo "$as_me:$LINENO: result: $ac_cv_lib_dumb_duh_start_renderer" >&5
20151echo "${ECHO_T}$ac_cv_lib_dumb_duh_start_renderer" >&6
20152if test $ac_cv_lib_dumb_duh_start_renderer = yes; then
20153  LIBS="-ldumb $LIBS"
20154    EXTRA_LIBS="-ldumb $EXTRA_LIBS"
20155    HAVE_DUMB=true
20156
20157else
20158  { echo "$as_me:$LINENO: WARNING: libdumb not found.  Install DUMB from http://dumb.sourceforge.net/" >&5
20159echo "$as_me: WARNING: libdumb not found.  Install DUMB from http://dumb.sourceforge.net/" >&2;}
20160    { echo "$as_me:$LINENO: WARNING: Disabling DUMB support." >&5
20161echo "$as_me: WARNING: Disabling DUMB support." >&2;}
20162    cat >>confdefs.h <<\_ACEOF
20163#define NO_DUMB 1
20164_ACEOF
20165
20166fi
20167
20168
20169
20170if test "x$HAVE_DUMB" = "xtrue"; then
20171  HAVE_DUMB_TRUE=
20172  HAVE_DUMB_FALSE='#'
20173else
20174  HAVE_DUMB_TRUE='#'
20175  HAVE_DUMB_FALSE=
20176fi
20177
20178
20179echo "$as_me:$LINENO: checking for cd_init_device in -lcdaudio" >&5
20180echo $ECHO_N "checking for cd_init_device in -lcdaudio... $ECHO_C" >&6
20181if test "${ac_cv_lib_cdaudio_cd_init_device+set}" = set; then
20182  echo $ECHO_N "(cached) $ECHO_C" >&6
20183else
20184  ac_check_lib_save_LIBS=$LIBS
20185LIBS="-lcdaudio  $LIBS"
20186cat >conftest.$ac_ext <<_ACEOF
20187/* confdefs.h.  */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
20191/* end confdefs.h.  */
20192
20193/* Override any gcc2 internal prototype to avoid an error.  */
20194#ifdef __cplusplus
20195extern "C"
20196#endif
20197/* We use char because int might match the return type of a gcc2
20198   builtin and then its argument prototype would still apply.  */
20199char cd_init_device ();
20200int
20201main ()
20202{
20203cd_init_device ();
20204  ;
20205  return 0;
20206}
20207_ACEOF
20208rm -f conftest.$ac_objext conftest$ac_exeext
20209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210  (eval $ac_link) 2>conftest.er1
20211  ac_status=$?
20212  grep -v '^ *+' conftest.er1 >conftest.err
20213  rm -f conftest.er1
20214  cat conftest.err >&5
20215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216  (exit $ac_status); } &&
20217	 { ac_try='test -z "$ac_cxx_werror_flag"
20218			 || test ! -s conftest.err'
20219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220  (eval $ac_try) 2>&5
20221  ac_status=$?
20222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223  (exit $ac_status); }; } &&
20224	 { ac_try='test -s conftest$ac_exeext'
20225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226  (eval $ac_try) 2>&5
20227  ac_status=$?
20228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229  (exit $ac_status); }; }; then
20230  ac_cv_lib_cdaudio_cd_init_device=yes
20231else
20232  echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235ac_cv_lib_cdaudio_cd_init_device=no
20236fi
20237rm -f conftest.err conftest.$ac_objext \
20238      conftest$ac_exeext conftest.$ac_ext
20239LIBS=$ac_check_lib_save_LIBS
20240fi
20241echo "$as_me:$LINENO: result: $ac_cv_lib_cdaudio_cd_init_device" >&5
20242echo "${ECHO_T}$ac_cv_lib_cdaudio_cd_init_device" >&6
20243if test $ac_cv_lib_cdaudio_cd_init_device = yes; then
20244  LIBS="-lcdaudio $LIBS"
20245    EXTRA_LIBS="-lcdaudio $EXTRA_LIBS"
20246    HAVE_LIBCDAUDIO=true
20247
20248else
20249  { echo "$as_me:$LINENO: WARNING: libcdaudio not found.  Install it from http://libcdaudio.sf.net/" >&5
20250echo "$as_me: WARNING: libcdaudio not found.  Install it from http://libcdaudio.sf.net/" >&2;}
20251    { echo "$as_me:$LINENO: WARNING: CD audio support might still be possible through another means such as winmm." >&5
20252echo "$as_me: WARNING: CD audio support might still be possible through another means such as winmm." >&2;}
20253fi
20254
20255
20256
20257if test "x$HAVE_LIBCDAUDIO" = "xtrue"; then
20258  HAVE_LIBCDAUDIO_TRUE=
20259  HAVE_LIBCDAUDIO_FALSE='#'
20260else
20261  HAVE_LIBCDAUDIO_TRUE='#'
20262  HAVE_LIBCDAUDIO_FALSE=
20263fi
20264
20265
20266echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
20267echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
20268if test "${ac_cv_search_clock_gettime+set}" = set; then
20269  echo $ECHO_N "(cached) $ECHO_C" >&6
20270else
20271  ac_func_search_save_LIBS=$LIBS
20272ac_cv_search_clock_gettime=no
20273cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h.  */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h.  */
20279
20280/* Override any gcc2 internal prototype to avoid an error.  */
20281#ifdef __cplusplus
20282extern "C"
20283#endif
20284/* We use char because int might match the return type of a gcc2
20285   builtin and then its argument prototype would still apply.  */
20286char clock_gettime ();
20287int
20288main ()
20289{
20290clock_gettime ();
20291  ;
20292  return 0;
20293}
20294_ACEOF
20295rm -f conftest.$ac_objext conftest$ac_exeext
20296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20297  (eval $ac_link) 2>conftest.er1
20298  ac_status=$?
20299  grep -v '^ *+' conftest.er1 >conftest.err
20300  rm -f conftest.er1
20301  cat conftest.err >&5
20302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303  (exit $ac_status); } &&
20304	 { ac_try='test -z "$ac_cxx_werror_flag"
20305			 || test ! -s conftest.err'
20306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307  (eval $ac_try) 2>&5
20308  ac_status=$?
20309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310  (exit $ac_status); }; } &&
20311	 { ac_try='test -s conftest$ac_exeext'
20312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313  (eval $ac_try) 2>&5
20314  ac_status=$?
20315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316  (exit $ac_status); }; }; then
20317  ac_cv_search_clock_gettime="none required"
20318else
20319  echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322fi
20323rm -f conftest.err conftest.$ac_objext \
20324      conftest$ac_exeext conftest.$ac_ext
20325if test "$ac_cv_search_clock_gettime" = no; then
20326  for ac_lib in rt; do
20327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20328    cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h.  */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h.  */
20334
20335/* Override any gcc2 internal prototype to avoid an error.  */
20336#ifdef __cplusplus
20337extern "C"
20338#endif
20339/* We use char because int might match the return type of a gcc2
20340   builtin and then its argument prototype would still apply.  */
20341char clock_gettime ();
20342int
20343main ()
20344{
20345clock_gettime ();
20346  ;
20347  return 0;
20348}
20349_ACEOF
20350rm -f conftest.$ac_objext conftest$ac_exeext
20351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20352  (eval $ac_link) 2>conftest.er1
20353  ac_status=$?
20354  grep -v '^ *+' conftest.er1 >conftest.err
20355  rm -f conftest.er1
20356  cat conftest.err >&5
20357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358  (exit $ac_status); } &&
20359	 { ac_try='test -z "$ac_cxx_werror_flag"
20360			 || test ! -s conftest.err'
20361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362  (eval $ac_try) 2>&5
20363  ac_status=$?
20364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365  (exit $ac_status); }; } &&
20366	 { ac_try='test -s conftest$ac_exeext'
20367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368  (eval $ac_try) 2>&5
20369  ac_status=$?
20370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371  (exit $ac_status); }; }; then
20372  ac_cv_search_clock_gettime="-l$ac_lib"
20373break
20374else
20375  echo "$as_me: failed program was:" >&5
20376sed 's/^/| /' conftest.$ac_ext >&5
20377
20378fi
20379rm -f conftest.err conftest.$ac_objext \
20380      conftest$ac_exeext conftest.$ac_ext
20381  done
20382fi
20383LIBS=$ac_func_search_save_LIBS
20384fi
20385echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
20386echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
20387if test "$ac_cv_search_clock_gettime" != no; then
20388  test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
20389  cat >>confdefs.h <<\_ACEOF
20390#define HAVE_CLOCK_GETTIME 1
20391_ACEOF
20392
20393fi
20394
20395
20396echo "$as_me:$LINENO: checking for alNewConfig in -laudio" >&5
20397echo $ECHO_N "checking for alNewConfig in -laudio... $ECHO_C" >&6
20398if test "${ac_cv_lib_audio_alNewConfig+set}" = set; then
20399  echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401  ac_check_lib_save_LIBS=$LIBS
20402LIBS="-laudio  $LIBS"
20403cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h.  */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h.  */
20409
20410/* Override any gcc2 internal prototype to avoid an error.  */
20411#ifdef __cplusplus
20412extern "C"
20413#endif
20414/* We use char because int might match the return type of a gcc2
20415   builtin and then its argument prototype would still apply.  */
20416char alNewConfig ();
20417int
20418main ()
20419{
20420alNewConfig ();
20421  ;
20422  return 0;
20423}
20424_ACEOF
20425rm -f conftest.$ac_objext conftest$ac_exeext
20426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20427  (eval $ac_link) 2>conftest.er1
20428  ac_status=$?
20429  grep -v '^ *+' conftest.er1 >conftest.err
20430  rm -f conftest.er1
20431  cat conftest.err >&5
20432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433  (exit $ac_status); } &&
20434	 { ac_try='test -z "$ac_cxx_werror_flag"
20435			 || test ! -s conftest.err'
20436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437  (eval $ac_try) 2>&5
20438  ac_status=$?
20439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440  (exit $ac_status); }; } &&
20441	 { ac_try='test -s conftest$ac_exeext'
20442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443  (eval $ac_try) 2>&5
20444  ac_status=$?
20445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446  (exit $ac_status); }; }; then
20447  ac_cv_lib_audio_alNewConfig=yes
20448else
20449  echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452ac_cv_lib_audio_alNewConfig=no
20453fi
20454rm -f conftest.err conftest.$ac_objext \
20455      conftest$ac_exeext conftest.$ac_ext
20456LIBS=$ac_check_lib_save_LIBS
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alNewConfig" >&5
20459echo "${ECHO_T}$ac_cv_lib_audio_alNewConfig" >&6
20460if test $ac_cv_lib_audio_alNewConfig = yes; then
20461  HAVE_AL=true
20462    cat >>confdefs.h <<\_ACEOF
20463#define HAVE_AL 1
20464_ACEOF
20465
20466    LIBS="-laudio $LIBS"
20467    EXTRA_LIBS="-laudio $EXTRA_LIBS"
20468fi
20469
20470
20471
20472if test "x$HAVE_AL" = "xtrue"; then
20473  HAVE_AL_TRUE=
20474  HAVE_AL_FALSE='#'
20475else
20476  HAVE_AL_TRUE='#'
20477  HAVE_AL_FALSE=
20478fi
20479
20480
20481# Extract the first word of "wx-config", so it can be a program name with args.
20482set dummy wx-config; ac_word=$2
20483echo "$as_me:$LINENO: checking for $ac_word" >&5
20484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20485if test "${ac_cv_path_WX_CONFIG+set}" = set; then
20486  echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488  case $WX_CONFIG in
20489  [\\/]* | ?:[\\/]*)
20490  ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
20491  ;;
20492  *)
20493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20494as_dummy="$PATH:/usr/local/bin"
20495for as_dir in $as_dummy
20496do
20497  IFS=$as_save_IFS
20498  test -z "$as_dir" && as_dir=.
20499  for ac_exec_ext in '' $ac_executable_extensions; do
20500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20501    ac_cv_path_WX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20503    break 2
20504  fi
20505done
20506done
20507
20508  test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
20509  ;;
20510esac
20511fi
20512WX_CONFIG=$ac_cv_path_WX_CONFIG
20513
20514if test -n "$WX_CONFIG"; then
20515  echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
20516echo "${ECHO_T}$WX_CONFIG" >&6
20517else
20518  echo "$as_me:$LINENO: result: no" >&5
20519echo "${ECHO_T}no" >&6
20520fi
20521
20522if [ "$WX_CONFIG" = "no" ] ; then
20523    { echo "$as_me:$LINENO: WARNING: wxWindows not found, not building wxPlayer.
20524        See http://www.wxwindows.org/" >&5
20525echo "$as_me: WARNING: wxWindows not found, not building wxPlayer.
20526        See http://www.wxwindows.org/" >&2;}
20527else
20528    old_CXXFLAGS="$CXXFLAGS"
20529    old_LIBS="$LIBS"
20530    WXFLAGS=`$WX_CONFIG --cxxflags`
20531    WXLIBS=`$WX_CONFIG --libs`
20532    CXXFLAGS="$WXFLAGS $CXXFLAGS"
20533    LIBS="$WXLIBS $LIBS"
20534
20535    echo "$as_me:$LINENO: checking if small wxWindows application links" >&5
20536echo $ECHO_N "checking if small wxWindows application links... $ECHO_C" >&6
20537    cat >conftest.$ac_ext <<_ACEOF
20538/* confdefs.h.  */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h.  */
20543
20544        #include <wx/wx.h>
20545        class App : public wxApp {
20546        public:
20547          bool OnInit() {
20548            return false;
20549          }
20550        };
20551        IMPLEMENT_APP(App)
20552
20553
20554_ACEOF
20555rm -f conftest.$ac_objext conftest$ac_exeext
20556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557  (eval $ac_link) 2>conftest.er1
20558  ac_status=$?
20559  grep -v '^ *+' conftest.er1 >conftest.err
20560  rm -f conftest.er1
20561  cat conftest.err >&5
20562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563  (exit $ac_status); } &&
20564	 { ac_try='test -z "$ac_cxx_werror_flag"
20565			 || test ! -s conftest.err'
20566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567  (eval $ac_try) 2>&5
20568  ac_status=$?
20569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570  (exit $ac_status); }; } &&
20571	 { ac_try='test -s conftest$ac_exeext'
20572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573  (eval $ac_try) 2>&5
20574  ac_status=$?
20575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576  (exit $ac_status); }; }; then
20577  echo "$as_me:$LINENO: result: yes" >&5
20578echo "${ECHO_T}yes" >&6
20579        HAVE_WXWINDOWS=true
20580        cat >>confdefs.h <<\_ACEOF
20581#define HAVE_WXWINDOWS 1
20582_ACEOF
20583
20584        WX_LIBS=`$WX_CONFIG --libs`
20585        WX_CPPFLAGS=`$WX_CONFIG --cxxflags`
20586
20587
20588
20589else
20590  echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
20593echo "$as_me:$LINENO: result: no" >&5
20594echo "${ECHO_T}no" >&6
20595        { echo "$as_me:$LINENO: WARNING: wx-config found but linking with wxWindows failed.
20596Maybe wxWindows was compiled with another compiler?" >&5
20597echo "$as_me: WARNING: wx-config found but linking with wxWindows failed.
20598Maybe wxWindows was compiled with another compiler?" >&2;}
20599fi
20600rm -f conftest.err conftest.$ac_objext \
20601      conftest$ac_exeext conftest.$ac_ext
20602
20603    CXXFLAGS="$old_CXXFLAGS"
20604    LIBS="$old_LIBS"
20605fi
20606
20607
20608
20609if test "x$HAVE_WXWINDOWS" = "xtrue"; then
20610  HAVE_WXWINDOWS_TRUE=
20611  HAVE_WXWINDOWS_FALSE='#'
20612else
20613  HAVE_WXWINDOWS_TRUE='#'
20614  HAVE_WXWINDOWS_FALSE=
20615fi
20616
20617
20618
20619
20620echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20621echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20622if test "${ac_cv_header_stdc+set}" = set; then
20623  echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
20625  cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h.  */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h.  */
20631#include <stdlib.h>
20632#include <stdarg.h>
20633#include <string.h>
20634#include <float.h>
20635
20636int
20637main ()
20638{
20639
20640  ;
20641  return 0;
20642}
20643_ACEOF
20644rm -f conftest.$ac_objext
20645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646  (eval $ac_compile) 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } &&
20653	 { ac_try='test -z "$ac_cxx_werror_flag"
20654			 || test ! -s conftest.err'
20655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656  (eval $ac_try) 2>&5
20657  ac_status=$?
20658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659  (exit $ac_status); }; } &&
20660	 { ac_try='test -s conftest.$ac_objext'
20661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662  (eval $ac_try) 2>&5
20663  ac_status=$?
20664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665  (exit $ac_status); }; }; then
20666  ac_cv_header_stdc=yes
20667else
20668  echo "$as_me: failed program was:" >&5
20669sed 's/^/| /' conftest.$ac_ext >&5
20670
20671ac_cv_header_stdc=no
20672fi
20673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674
20675if test $ac_cv_header_stdc = yes; then
20676  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20677  cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h.  */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h.  */
20683#include <string.h>
20684
20685_ACEOF
20686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20687  $EGREP "memchr" >/dev/null 2>&1; then
20688  :
20689else
20690  ac_cv_header_stdc=no
20691fi
20692rm -f conftest*
20693
20694fi
20695
20696if test $ac_cv_header_stdc = yes; then
20697  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20698  cat >conftest.$ac_ext <<_ACEOF
20699/* confdefs.h.  */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
20703/* end confdefs.h.  */
20704#include <stdlib.h>
20705
20706_ACEOF
20707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20708  $EGREP "free" >/dev/null 2>&1; then
20709  :
20710else
20711  ac_cv_header_stdc=no
20712fi
20713rm -f conftest*
20714
20715fi
20716
20717if test $ac_cv_header_stdc = yes; then
20718  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20719  if test "$cross_compiling" = yes; then
20720  :
20721else
20722  cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h.  */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h.  */
20728#include <ctype.h>
20729#if ((' ' & 0x0FF) == 0x020)
20730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20732#else
20733# define ISLOWER(c) \
20734		   (('a' <= (c) && (c) <= 'i') \
20735		     || ('j' <= (c) && (c) <= 'r') \
20736		     || ('s' <= (c) && (c) <= 'z'))
20737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20738#endif
20739
20740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20741int
20742main ()
20743{
20744  int i;
20745  for (i = 0; i < 256; i++)
20746    if (XOR (islower (i), ISLOWER (i))
20747	|| toupper (i) != TOUPPER (i))
20748      exit(2);
20749  exit (0);
20750}
20751_ACEOF
20752rm -f conftest$ac_exeext
20753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20754  (eval $ac_link) 2>&5
20755  ac_status=$?
20756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759  (eval $ac_try) 2>&5
20760  ac_status=$?
20761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762  (exit $ac_status); }; }; then
20763  :
20764else
20765  echo "$as_me: program exited with status $ac_status" >&5
20766echo "$as_me: failed program was:" >&5
20767sed 's/^/| /' conftest.$ac_ext >&5
20768
20769( exit $ac_status )
20770ac_cv_header_stdc=no
20771fi
20772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20773fi
20774fi
20775fi
20776echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20777echo "${ECHO_T}$ac_cv_header_stdc" >&6
20778if test $ac_cv_header_stdc = yes; then
20779
20780cat >>confdefs.h <<\_ACEOF
20781#define STDC_HEADERS 1
20782_ACEOF
20783
20784fi
20785
20786if test "${ac_cv_header_unistd_h+set}" = set; then
20787  echo "$as_me:$LINENO: checking for unistd.h" >&5
20788echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
20789if test "${ac_cv_header_unistd_h+set}" = set; then
20790  echo $ECHO_N "(cached) $ECHO_C" >&6
20791fi
20792echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
20793echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
20794else
20795  # Is the header compilable?
20796echo "$as_me:$LINENO: checking unistd.h usability" >&5
20797echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
20798cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h.  */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h.  */
20804$ac_includes_default
20805#include <unistd.h>
20806_ACEOF
20807rm -f conftest.$ac_objext
20808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809  (eval $ac_compile) 2>conftest.er1
20810  ac_status=$?
20811  grep -v '^ *+' conftest.er1 >conftest.err
20812  rm -f conftest.er1
20813  cat conftest.err >&5
20814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); } &&
20816	 { ac_try='test -z "$ac_cxx_werror_flag"
20817			 || test ! -s conftest.err'
20818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819  (eval $ac_try) 2>&5
20820  ac_status=$?
20821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822  (exit $ac_status); }; } &&
20823	 { ac_try='test -s conftest.$ac_objext'
20824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825  (eval $ac_try) 2>&5
20826  ac_status=$?
20827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828  (exit $ac_status); }; }; then
20829  ac_header_compiler=yes
20830else
20831  echo "$as_me: failed program was:" >&5
20832sed 's/^/| /' conftest.$ac_ext >&5
20833
20834ac_header_compiler=no
20835fi
20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20838echo "${ECHO_T}$ac_header_compiler" >&6
20839
20840# Is the header present?
20841echo "$as_me:$LINENO: checking unistd.h presence" >&5
20842echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
20843cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h.  */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h.  */
20849#include <unistd.h>
20850_ACEOF
20851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20852  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20853  ac_status=$?
20854  grep -v '^ *+' conftest.er1 >conftest.err
20855  rm -f conftest.er1
20856  cat conftest.err >&5
20857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858  (exit $ac_status); } >/dev/null; then
20859  if test -s conftest.err; then
20860    ac_cpp_err=$ac_cxx_preproc_warn_flag
20861    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20862  else
20863    ac_cpp_err=
20864  fi
20865else
20866  ac_cpp_err=yes
20867fi
20868if test -z "$ac_cpp_err"; then
20869  ac_header_preproc=yes
20870else
20871  echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874  ac_header_preproc=no
20875fi
20876rm -f conftest.err conftest.$ac_ext
20877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20878echo "${ECHO_T}$ac_header_preproc" >&6
20879
20880# So?  What about this header?
20881case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20882  yes:no: )
20883    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
20884echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20885    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
20886echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
20887    ac_header_preproc=yes
20888    ;;
20889  no:yes:* )
20890    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
20891echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
20892    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
20893echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
20894    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
20895echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
20896    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
20897echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20898    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
20899echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
20900    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
20901echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
20902    (
20903      cat <<\_ASBOX
20904## ------------------------------------------ ##
20905## Report this to the AC_PACKAGE_NAME lists.  ##
20906## ------------------------------------------ ##
20907_ASBOX
20908    ) |
20909      sed "s/^/$as_me: WARNING:     /" >&2
20910    ;;
20911esac
20912echo "$as_me:$LINENO: checking for unistd.h" >&5
20913echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
20914if test "${ac_cv_header_unistd_h+set}" = set; then
20915  echo $ECHO_N "(cached) $ECHO_C" >&6
20916else
20917  ac_cv_header_unistd_h=$ac_header_preproc
20918fi
20919echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
20920echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
20921
20922fi
20923
20924
20925if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20926  echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20927echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
20928if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20929  echo $ECHO_N "(cached) $ECHO_C" >&6
20930fi
20931echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20932echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
20933else
20934  # Is the header compilable?
20935echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
20936echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
20937cat >conftest.$ac_ext <<_ACEOF
20938/* confdefs.h.  */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h.  */
20943$ac_includes_default
20944#include <sys/soundcard.h>
20945_ACEOF
20946rm -f conftest.$ac_objext
20947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20948  (eval $ac_compile) 2>conftest.er1
20949  ac_status=$?
20950  grep -v '^ *+' conftest.er1 >conftest.err
20951  rm -f conftest.er1
20952  cat conftest.err >&5
20953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954  (exit $ac_status); } &&
20955	 { ac_try='test -z "$ac_cxx_werror_flag"
20956			 || test ! -s conftest.err'
20957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958  (eval $ac_try) 2>&5
20959  ac_status=$?
20960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961  (exit $ac_status); }; } &&
20962	 { ac_try='test -s conftest.$ac_objext'
20963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964  (eval $ac_try) 2>&5
20965  ac_status=$?
20966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967  (exit $ac_status); }; }; then
20968  ac_header_compiler=yes
20969else
20970  echo "$as_me: failed program was:" >&5
20971sed 's/^/| /' conftest.$ac_ext >&5
20972
20973ac_header_compiler=no
20974fi
20975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20977echo "${ECHO_T}$ac_header_compiler" >&6
20978
20979# Is the header present?
20980echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
20981echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
20982cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h.  */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h.  */
20988#include <sys/soundcard.h>
20989_ACEOF
20990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20991  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20992  ac_status=$?
20993  grep -v '^ *+' conftest.er1 >conftest.err
20994  rm -f conftest.er1
20995  cat conftest.err >&5
20996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997  (exit $ac_status); } >/dev/null; then
20998  if test -s conftest.err; then
20999    ac_cpp_err=$ac_cxx_preproc_warn_flag
21000    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21001  else
21002    ac_cpp_err=
21003  fi
21004else
21005  ac_cpp_err=yes
21006fi
21007if test -z "$ac_cpp_err"; then
21008  ac_header_preproc=yes
21009else
21010  echo "$as_me: failed program was:" >&5
21011sed 's/^/| /' conftest.$ac_ext >&5
21012
21013  ac_header_preproc=no
21014fi
21015rm -f conftest.err conftest.$ac_ext
21016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21017echo "${ECHO_T}$ac_header_preproc" >&6
21018
21019# So?  What about this header?
21020case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21021  yes:no: )
21022    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
21023echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21024    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
21025echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
21026    ac_header_preproc=yes
21027    ;;
21028  no:yes:* )
21029    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
21030echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
21031    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
21032echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
21033    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
21034echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
21035    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
21036echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21037    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
21038echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
21039    { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
21040echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
21041    (
21042      cat <<\_ASBOX
21043## ------------------------------------------ ##
21044## Report this to the AC_PACKAGE_NAME lists.  ##
21045## ------------------------------------------ ##
21046_ASBOX
21047    ) |
21048      sed "s/^/$as_me: WARNING:     /" >&2
21049    ;;
21050esac
21051echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
21052echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
21053if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
21054  echo $ECHO_N "(cached) $ECHO_C" >&6
21055else
21056  ac_cv_header_sys_soundcard_h=$ac_header_preproc
21057fi
21058echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
21059echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
21060
21061fi
21062if test $ac_cv_header_sys_soundcard_h = yes; then
21063  HAVE_OSS=true
21064    cat >>confdefs.h <<\_ACEOF
21065#define HAVE_OSS 1
21066_ACEOF
21067
21068fi
21069
21070
21071
21072
21073if test "x$HAVE_OSS" = "xtrue"; then
21074  HAVE_OSS_TRUE=
21075  HAVE_OSS_FALSE='#'
21076else
21077  HAVE_OSS_TRUE='#'
21078  HAVE_OSS_FALSE=
21079fi
21080
21081
21082if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
21083  echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
21084echo $ECHO_N "checking for vorbis/vorbisfile.h... $ECHO_C" >&6
21085if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
21086  echo $ECHO_N "(cached) $ECHO_C" >&6
21087fi
21088echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
21089echo "${ECHO_T}$ac_cv_header_vorbis_vorbisfile_h" >&6
21090else
21091  # Is the header compilable?
21092echo "$as_me:$LINENO: checking vorbis/vorbisfile.h usability" >&5
21093echo $ECHO_N "checking vorbis/vorbisfile.h usability... $ECHO_C" >&6
21094cat >conftest.$ac_ext <<_ACEOF
21095/* confdefs.h.  */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h.  */
21100$ac_includes_default
21101#include <vorbis/vorbisfile.h>
21102_ACEOF
21103rm -f conftest.$ac_objext
21104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105  (eval $ac_compile) 2>conftest.er1
21106  ac_status=$?
21107  grep -v '^ *+' conftest.er1 >conftest.err
21108  rm -f conftest.er1
21109  cat conftest.err >&5
21110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111  (exit $ac_status); } &&
21112	 { ac_try='test -z "$ac_cxx_werror_flag"
21113			 || test ! -s conftest.err'
21114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115  (eval $ac_try) 2>&5
21116  ac_status=$?
21117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118  (exit $ac_status); }; } &&
21119	 { ac_try='test -s conftest.$ac_objext'
21120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121  (eval $ac_try) 2>&5
21122  ac_status=$?
21123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124  (exit $ac_status); }; }; then
21125  ac_header_compiler=yes
21126else
21127  echo "$as_me: failed program was:" >&5
21128sed 's/^/| /' conftest.$ac_ext >&5
21129
21130ac_header_compiler=no
21131fi
21132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21134echo "${ECHO_T}$ac_header_compiler" >&6
21135
21136# Is the header present?
21137echo "$as_me:$LINENO: checking vorbis/vorbisfile.h presence" >&5
21138echo $ECHO_N "checking vorbis/vorbisfile.h presence... $ECHO_C" >&6
21139cat >conftest.$ac_ext <<_ACEOF
21140/* confdefs.h.  */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
21144/* end confdefs.h.  */
21145#include <vorbis/vorbisfile.h>
21146_ACEOF
21147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21149  ac_status=$?
21150  grep -v '^ *+' conftest.er1 >conftest.err
21151  rm -f conftest.er1
21152  cat conftest.err >&5
21153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154  (exit $ac_status); } >/dev/null; then
21155  if test -s conftest.err; then
21156    ac_cpp_err=$ac_cxx_preproc_warn_flag
21157    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21158  else
21159    ac_cpp_err=
21160  fi
21161else
21162  ac_cpp_err=yes
21163fi
21164if test -z "$ac_cpp_err"; then
21165  ac_header_preproc=yes
21166else
21167  echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170  ac_header_preproc=no
21171fi
21172rm -f conftest.err conftest.$ac_ext
21173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174echo "${ECHO_T}$ac_header_preproc" >&6
21175
21176# So?  What about this header?
21177case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21178  yes:no: )
21179    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&5
21180echo "$as_me: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&5
21182echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&2;}
21183    ac_header_preproc=yes
21184    ;;
21185  no:yes:* )
21186    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&5
21187echo "$as_me: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&2;}
21188    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h:     check for missing prerequisite headers?" >&5
21189echo "$as_me: WARNING: vorbis/vorbisfile.h:     check for missing prerequisite headers?" >&2;}
21190    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&5
21191echo "$as_me: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&2;}
21192    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&5
21193echo "$as_me: WARNING: vorbis/vorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21194    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&5
21195echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&2;}
21196    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&5
21197echo "$as_me: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&2;}
21198    (
21199      cat <<\_ASBOX
21200## ------------------------------------------ ##
21201## Report this to the AC_PACKAGE_NAME lists.  ##
21202## ------------------------------------------ ##
21203_ASBOX
21204    ) |
21205      sed "s/^/$as_me: WARNING:     /" >&2
21206    ;;
21207esac
21208echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
21209echo $ECHO_N "checking for vorbis/vorbisfile.h... $ECHO_C" >&6
21210if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
21211  echo $ECHO_N "(cached) $ECHO_C" >&6
21212else
21213  ac_cv_header_vorbis_vorbisfile_h=$ac_header_preproc
21214fi
21215echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
21216echo "${ECHO_T}$ac_cv_header_vorbis_vorbisfile_h" >&6
21217
21218fi
21219if test $ac_cv_header_vorbis_vorbisfile_h = yes; then
21220  HAVE_OGG=true
21221    LIBS="-lvorbisfile -lvorbis -logg $LIBS"
21222    EXTRA_LIBS="-lvorbisfile -lvorbis -logg $EXTRA_LIBS"
21223
21224else
21225  { echo "$as_me:$LINENO: WARNING: Could not find vorbisfile header.  You do not appear to have libvorbis installed.
21226Get libvorbis from http://www.vorbis.com/" >&5
21227echo "$as_me: WARNING: Could not find vorbisfile header.  You do not appear to have libvorbis installed.
21228Get libvorbis from http://www.vorbis.com/" >&2;}
21229    { echo "$as_me:$LINENO: WARNING: Disabling Ogg Vorbis support." >&5
21230echo "$as_me: WARNING: Disabling Ogg Vorbis support." >&2;}
21231    cat >>confdefs.h <<\_ACEOF
21232#define NO_OGG 1
21233_ACEOF
21234
21235fi
21236
21237
21238
21239
21240if test "x$HAVE_OGG" = "xtrue"; then
21241  HAVE_OGG_TRUE=
21242  HAVE_OGG_FALSE='#'
21243else
21244  HAVE_OGG_TRUE='#'
21245  HAVE_OGG_FALSE=
21246fi
21247
21248
21249if test "${ac_cv_header_speex_h+set}" = set; then
21250  echo "$as_me:$LINENO: checking for speex.h" >&5
21251echo $ECHO_N "checking for speex.h... $ECHO_C" >&6
21252if test "${ac_cv_header_speex_h+set}" = set; then
21253  echo $ECHO_N "(cached) $ECHO_C" >&6
21254fi
21255echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5
21256echo "${ECHO_T}$ac_cv_header_speex_h" >&6
21257else
21258  # Is the header compilable?
21259echo "$as_me:$LINENO: checking speex.h usability" >&5
21260echo $ECHO_N "checking speex.h usability... $ECHO_C" >&6
21261cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h.  */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h.  */
21267$ac_includes_default
21268#include <speex.h>
21269_ACEOF
21270rm -f conftest.$ac_objext
21271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272  (eval $ac_compile) 2>conftest.er1
21273  ac_status=$?
21274  grep -v '^ *+' conftest.er1 >conftest.err
21275  rm -f conftest.er1
21276  cat conftest.err >&5
21277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278  (exit $ac_status); } &&
21279	 { ac_try='test -z "$ac_cxx_werror_flag"
21280			 || test ! -s conftest.err'
21281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282  (eval $ac_try) 2>&5
21283  ac_status=$?
21284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285  (exit $ac_status); }; } &&
21286	 { ac_try='test -s conftest.$ac_objext'
21287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288  (eval $ac_try) 2>&5
21289  ac_status=$?
21290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291  (exit $ac_status); }; }; then
21292  ac_header_compiler=yes
21293else
21294  echo "$as_me: failed program was:" >&5
21295sed 's/^/| /' conftest.$ac_ext >&5
21296
21297ac_header_compiler=no
21298fi
21299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21301echo "${ECHO_T}$ac_header_compiler" >&6
21302
21303# Is the header present?
21304echo "$as_me:$LINENO: checking speex.h presence" >&5
21305echo $ECHO_N "checking speex.h presence... $ECHO_C" >&6
21306cat >conftest.$ac_ext <<_ACEOF
21307/* confdefs.h.  */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
21311/* end confdefs.h.  */
21312#include <speex.h>
21313_ACEOF
21314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21315  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21316  ac_status=$?
21317  grep -v '^ *+' conftest.er1 >conftest.err
21318  rm -f conftest.er1
21319  cat conftest.err >&5
21320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321  (exit $ac_status); } >/dev/null; then
21322  if test -s conftest.err; then
21323    ac_cpp_err=$ac_cxx_preproc_warn_flag
21324    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21325  else
21326    ac_cpp_err=
21327  fi
21328else
21329  ac_cpp_err=yes
21330fi
21331if test -z "$ac_cpp_err"; then
21332  ac_header_preproc=yes
21333else
21334  echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
21337  ac_header_preproc=no
21338fi
21339rm -f conftest.err conftest.$ac_ext
21340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21341echo "${ECHO_T}$ac_header_preproc" >&6
21342
21343# So?  What about this header?
21344case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21345  yes:no: )
21346    { echo "$as_me:$LINENO: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21347echo "$as_me: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21348    { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the compiler's result" >&5
21349echo "$as_me: WARNING: speex.h: proceeding with the compiler's result" >&2;}
21350    ac_header_preproc=yes
21351    ;;
21352  no:yes:* )
21353    { echo "$as_me:$LINENO: WARNING: speex.h: present but cannot be compiled" >&5
21354echo "$as_me: WARNING: speex.h: present but cannot be compiled" >&2;}
21355    { echo "$as_me:$LINENO: WARNING: speex.h:     check for missing prerequisite headers?" >&5
21356echo "$as_me: WARNING: speex.h:     check for missing prerequisite headers?" >&2;}
21357    { echo "$as_me:$LINENO: WARNING: speex.h: see the Autoconf documentation" >&5
21358echo "$as_me: WARNING: speex.h: see the Autoconf documentation" >&2;}
21359    { echo "$as_me:$LINENO: WARNING: speex.h:     section \"Present But Cannot Be Compiled\"" >&5
21360echo "$as_me: WARNING: speex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21361    { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the preprocessor's result" >&5
21362echo "$as_me: WARNING: speex.h: proceeding with the preprocessor's result" >&2;}
21363    { echo "$as_me:$LINENO: WARNING: speex.h: in the future, the compiler will take precedence" >&5
21364echo "$as_me: WARNING: speex.h: in the future, the compiler will take precedence" >&2;}
21365    (
21366      cat <<\_ASBOX
21367## ------------------------------------------ ##
21368## Report this to the AC_PACKAGE_NAME lists.  ##
21369## ------------------------------------------ ##
21370_ASBOX
21371    ) |
21372      sed "s/^/$as_me: WARNING:     /" >&2
21373    ;;
21374esac
21375echo "$as_me:$LINENO: checking for speex.h" >&5
21376echo $ECHO_N "checking for speex.h... $ECHO_C" >&6
21377if test "${ac_cv_header_speex_h+set}" = set; then
21378  echo $ECHO_N "(cached) $ECHO_C" >&6
21379else
21380  ac_cv_header_speex_h=$ac_header_preproc
21381fi
21382echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5
21383echo "${ECHO_T}$ac_cv_header_speex_h" >&6
21384
21385fi
21386if test $ac_cv_header_speex_h = yes; then
21387  HAVE_SPEEX=true
21388    LIBS="-lspeex $LIBS"
21389    EXTRA_LIBS="-lspeex $EXTRA_LIBS"
21390
21391else
21392  { echo "$as_me:$LINENO: WARNING: Could not find speex header.  You do not appear to have libspeex installed.
21393Get libspeex from http://www.speex.org/" >&5
21394echo "$as_me: WARNING: Could not find speex header.  You do not appear to have libspeex installed.
21395Get libspeex from http://www.speex.org/" >&2;}
21396    { echo "$as_me:$LINENO: WARNING: Disabling speex support." >&5
21397echo "$as_me: WARNING: Disabling speex support." >&2;}
21398    cat >>confdefs.h <<\_ACEOF
21399#define NO_SPEEX 1
21400_ACEOF
21401
21402fi
21403
21404
21405
21406
21407if test "x$HAVE_SPEEX" = "xtrue"; then
21408  HAVE_SPEEX_TRUE=
21409  HAVE_SPEEX_FALSE='#'
21410else
21411  HAVE_SPEEX_TRUE='#'
21412  HAVE_SPEEX_FALSE=
21413fi
21414
21415
21416if test "${ac_cv_header_dsound_h+set}" = set; then
21417  echo "$as_me:$LINENO: checking for dsound.h" >&5
21418echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6
21419if test "${ac_cv_header_dsound_h+set}" = set; then
21420  echo $ECHO_N "(cached) $ECHO_C" >&6
21421fi
21422echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
21423echo "${ECHO_T}$ac_cv_header_dsound_h" >&6
21424else
21425  # Is the header compilable?
21426echo "$as_me:$LINENO: checking dsound.h usability" >&5
21427echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6
21428cat >conftest.$ac_ext <<_ACEOF
21429/* confdefs.h.  */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h.  */
21434$ac_includes_default
21435#include <dsound.h>
21436_ACEOF
21437rm -f conftest.$ac_objext
21438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21439  (eval $ac_compile) 2>conftest.er1
21440  ac_status=$?
21441  grep -v '^ *+' conftest.er1 >conftest.err
21442  rm -f conftest.er1
21443  cat conftest.err >&5
21444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445  (exit $ac_status); } &&
21446	 { ac_try='test -z "$ac_cxx_werror_flag"
21447			 || test ! -s conftest.err'
21448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449  (eval $ac_try) 2>&5
21450  ac_status=$?
21451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452  (exit $ac_status); }; } &&
21453	 { ac_try='test -s conftest.$ac_objext'
21454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455  (eval $ac_try) 2>&5
21456  ac_status=$?
21457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458  (exit $ac_status); }; }; then
21459  ac_header_compiler=yes
21460else
21461  echo "$as_me: failed program was:" >&5
21462sed 's/^/| /' conftest.$ac_ext >&5
21463
21464ac_header_compiler=no
21465fi
21466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468echo "${ECHO_T}$ac_header_compiler" >&6
21469
21470# Is the header present?
21471echo "$as_me:$LINENO: checking dsound.h presence" >&5
21472echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6
21473cat >conftest.$ac_ext <<_ACEOF
21474/* confdefs.h.  */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h.  */
21479#include <dsound.h>
21480_ACEOF
21481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21483  ac_status=$?
21484  grep -v '^ *+' conftest.er1 >conftest.err
21485  rm -f conftest.er1
21486  cat conftest.err >&5
21487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488  (exit $ac_status); } >/dev/null; then
21489  if test -s conftest.err; then
21490    ac_cpp_err=$ac_cxx_preproc_warn_flag
21491    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21492  else
21493    ac_cpp_err=
21494  fi
21495else
21496  ac_cpp_err=yes
21497fi
21498if test -z "$ac_cpp_err"; then
21499  ac_header_preproc=yes
21500else
21501  echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504  ac_header_preproc=no
21505fi
21506rm -f conftest.err conftest.$ac_ext
21507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21508echo "${ECHO_T}$ac_header_preproc" >&6
21509
21510# So?  What about this header?
21511case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21512  yes:no: )
21513    { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
21514echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21515    { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
21516echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
21517    ac_header_preproc=yes
21518    ;;
21519  no:yes:* )
21520    { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
21521echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
21522    { echo "$as_me:$LINENO: WARNING: dsound.h:     check for missing prerequisite headers?" >&5
21523echo "$as_me: WARNING: dsound.h:     check for missing prerequisite headers?" >&2;}
21524    { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
21525echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
21526    { echo "$as_me:$LINENO: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&5
21527echo "$as_me: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21528    { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
21529echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
21530    { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
21531echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
21532    (
21533      cat <<\_ASBOX
21534## ------------------------------------------ ##
21535## Report this to the AC_PACKAGE_NAME lists.  ##
21536## ------------------------------------------ ##
21537_ASBOX
21538    ) |
21539      sed "s/^/$as_me: WARNING:     /" >&2
21540    ;;
21541esac
21542echo "$as_me:$LINENO: checking for dsound.h" >&5
21543echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6
21544if test "${ac_cv_header_dsound_h+set}" = set; then
21545  echo $ECHO_N "(cached) $ECHO_C" >&6
21546else
21547  ac_cv_header_dsound_h=$ac_header_preproc
21548fi
21549echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
21550echo "${ECHO_T}$ac_cv_header_dsound_h" >&6
21551
21552fi
21553if test $ac_cv_header_dsound_h = yes; then
21554  HAVE_DSOUND=true
21555    cat >>confdefs.h <<\_ACEOF
21556#define HAVE_DSOUND 1
21557_ACEOF
21558
21559    LIBS="-ldsound -lole32 -lrpcrt4 $LIBS"
21560    EXTRA_LIBS="-ldsound -lole32 -lrpcrt4 $EXTRA_LIBS"
21561fi
21562
21563
21564
21565
21566if test "x$HAVE_DSOUND" = "xtrue"; then
21567  HAVE_DSOUND_TRUE=
21568  HAVE_DSOUND_FALSE='#'
21569else
21570  HAVE_DSOUND_TRUE='#'
21571  HAVE_DSOUND_FALSE=
21572fi
21573
21574
21575echo "$as_me:$LINENO: checking for mmsystem.h" >&5
21576echo $ECHO_N "checking for mmsystem.h... $ECHO_C" >&6
21577if test "${ac_cv_header_mmsystem_h+set}" = set; then
21578  echo $ECHO_N "(cached) $ECHO_C" >&6
21579else
21580  cat >conftest.$ac_ext <<_ACEOF
21581/* confdefs.h.  */
21582_ACEOF
21583cat confdefs.h >>conftest.$ac_ext
21584cat >>conftest.$ac_ext <<_ACEOF
21585/* end confdefs.h.  */
21586#include <windows.h>
21587
21588#include <mmsystem.h>
21589_ACEOF
21590rm -f conftest.$ac_objext
21591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21592  (eval $ac_compile) 2>conftest.er1
21593  ac_status=$?
21594  grep -v '^ *+' conftest.er1 >conftest.err
21595  rm -f conftest.er1
21596  cat conftest.err >&5
21597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598  (exit $ac_status); } &&
21599	 { ac_try='test -z "$ac_cxx_werror_flag"
21600			 || test ! -s conftest.err'
21601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602  (eval $ac_try) 2>&5
21603  ac_status=$?
21604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605  (exit $ac_status); }; } &&
21606	 { ac_try='test -s conftest.$ac_objext'
21607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608  (eval $ac_try) 2>&5
21609  ac_status=$?
21610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611  (exit $ac_status); }; }; then
21612  ac_cv_header_mmsystem_h=yes
21613else
21614  echo "$as_me: failed program was:" >&5
21615sed 's/^/| /' conftest.$ac_ext >&5
21616
21617ac_cv_header_mmsystem_h=no
21618fi
21619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620fi
21621echo "$as_me:$LINENO: result: $ac_cv_header_mmsystem_h" >&5
21622echo "${ECHO_T}$ac_cv_header_mmsystem_h" >&6
21623if test $ac_cv_header_mmsystem_h = yes; then
21624  HAVE_WINMM=true
21625    cat >>confdefs.h <<\_ACEOF
21626#define HAVE_WINMM 1
21627_ACEOF
21628
21629    LIBS="-lwinmm $LIBS"
21630    EXTRA_LIBS="-lwinmm $EXTRA_LIBS"
21631
21632fi
21633
21634
21635
21636
21637if test "x$HAVE_WINMM" = "xtrue"; then
21638  HAVE_WINMM_TRUE=
21639  HAVE_WINMM_FALSE='#'
21640else
21641  HAVE_WINMM_TRUE='#'
21642  HAVE_WINMM_FALSE=
21643fi
21644
21645
21646
21647echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21648echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21649if test "${ac_cv_c_bigendian+set}" = set; then
21650  echo $ECHO_N "(cached) $ECHO_C" >&6
21651else
21652  # See if sys/param.h defines the BYTE_ORDER macro.
21653cat >conftest.$ac_ext <<_ACEOF
21654/* confdefs.h.  */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h.  */
21659#include <sys/types.h>
21660#include <sys/param.h>
21661
21662int
21663main ()
21664{
21665#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21666 bogus endian macros
21667#endif
21668
21669  ;
21670  return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21675  (eval $ac_compile) 2>conftest.er1
21676  ac_status=$?
21677  grep -v '^ *+' conftest.er1 >conftest.err
21678  rm -f conftest.er1
21679  cat conftest.err >&5
21680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681  (exit $ac_status); } &&
21682	 { ac_try='test -z "$ac_cxx_werror_flag"
21683			 || test ! -s conftest.err'
21684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685  (eval $ac_try) 2>&5
21686  ac_status=$?
21687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688  (exit $ac_status); }; } &&
21689	 { ac_try='test -s conftest.$ac_objext'
21690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691  (eval $ac_try) 2>&5
21692  ac_status=$?
21693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694  (exit $ac_status); }; }; then
21695  # It does; now see whether it defined to BIG_ENDIAN or not.
21696cat >conftest.$ac_ext <<_ACEOF
21697/* confdefs.h.  */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h.  */
21702#include <sys/types.h>
21703#include <sys/param.h>
21704
21705int
21706main ()
21707{
21708#if BYTE_ORDER != BIG_ENDIAN
21709 not big endian
21710#endif
21711
21712  ;
21713  return 0;
21714}
21715_ACEOF
21716rm -f conftest.$ac_objext
21717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718  (eval $ac_compile) 2>conftest.er1
21719  ac_status=$?
21720  grep -v '^ *+' conftest.er1 >conftest.err
21721  rm -f conftest.er1
21722  cat conftest.err >&5
21723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724  (exit $ac_status); } &&
21725	 { ac_try='test -z "$ac_cxx_werror_flag"
21726			 || test ! -s conftest.err'
21727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728  (eval $ac_try) 2>&5
21729  ac_status=$?
21730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731  (exit $ac_status); }; } &&
21732	 { ac_try='test -s conftest.$ac_objext'
21733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734  (eval $ac_try) 2>&5
21735  ac_status=$?
21736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737  (exit $ac_status); }; }; then
21738  ac_cv_c_bigendian=yes
21739else
21740  echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743ac_cv_c_bigendian=no
21744fi
21745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746else
21747  echo "$as_me: failed program was:" >&5
21748sed 's/^/| /' conftest.$ac_ext >&5
21749
21750# It does not; compile a test program.
21751if test "$cross_compiling" = yes; then
21752  # try to guess the endianness by grepping values into an object file
21753  ac_cv_c_bigendian=unknown
21754  cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h.  */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h.  */
21760short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21761short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21762void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21763short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21764short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21765void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21766int
21767main ()
21768{
21769 _ascii (); _ebcdic ();
21770  ;
21771  return 0;
21772}
21773_ACEOF
21774rm -f conftest.$ac_objext
21775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21776  (eval $ac_compile) 2>conftest.er1
21777  ac_status=$?
21778  grep -v '^ *+' conftest.er1 >conftest.err
21779  rm -f conftest.er1
21780  cat conftest.err >&5
21781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782  (exit $ac_status); } &&
21783	 { ac_try='test -z "$ac_cxx_werror_flag"
21784			 || test ! -s conftest.err'
21785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786  (eval $ac_try) 2>&5
21787  ac_status=$?
21788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789  (exit $ac_status); }; } &&
21790	 { ac_try='test -s conftest.$ac_objext'
21791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792  (eval $ac_try) 2>&5
21793  ac_status=$?
21794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795  (exit $ac_status); }; }; then
21796  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21797  ac_cv_c_bigendian=yes
21798fi
21799if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21800  if test "$ac_cv_c_bigendian" = unknown; then
21801    ac_cv_c_bigendian=no
21802  else
21803    # finding both strings is unlikely to happen, but who knows?
21804    ac_cv_c_bigendian=unknown
21805  fi
21806fi
21807else
21808  echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811fi
21812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21813else
21814  cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h.  */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h.  */
21820int
21821main ()
21822{
21823  /* Are we little or big endian?  From Harbison&Steele.  */
21824  union
21825  {
21826    long l;
21827    char c[sizeof (long)];
21828  } u;
21829  u.l = 1;
21830  exit (u.c[sizeof (long) - 1] == 1);
21831}
21832_ACEOF
21833rm -f conftest$ac_exeext
21834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21835  (eval $ac_link) 2>&5
21836  ac_status=$?
21837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840  (eval $ac_try) 2>&5
21841  ac_status=$?
21842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843  (exit $ac_status); }; }; then
21844  ac_cv_c_bigendian=no
21845else
21846  echo "$as_me: program exited with status $ac_status" >&5
21847echo "$as_me: failed program was:" >&5
21848sed 's/^/| /' conftest.$ac_ext >&5
21849
21850( exit $ac_status )
21851ac_cv_c_bigendian=yes
21852fi
21853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21854fi
21855fi
21856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21857fi
21858echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21859echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21860case $ac_cv_c_bigendian in
21861  yes)
21862
21863cat >>confdefs.h <<\_ACEOF
21864#define WORDS_BIGENDIAN 1
21865_ACEOF
21866 ;;
21867  no)
21868     ;;
21869  *)
21870    { { echo "$as_me:$LINENO: error: unknown endianness
21871presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21872echo "$as_me: error: unknown endianness
21873presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21874   { (exit 1); exit 1; }; } ;;
21875esac
21876
21877
21878
21879
21880
21881                                                                                                                                                      ac_config_files="$ac_config_files audiere-config Makefile doc/Makefile examples/Makefile examples/simple/Makefile examples/wxPlayer/Makefile src/Makefile src/mpaudec/Makefile test/Makefile test/buffer/Makefile test/callback/Makefile test/device/Makefile test/formats/Makefile test/interactive/Makefile test/performance/Makefile"
21882          ac_config_commands="$ac_config_commands default"
21883cat >confcache <<\_ACEOF
21884# This file is a shell script that caches the results of configure
21885# tests run on this system so they can be shared between configure
21886# scripts and configure runs, see configure's option --config-cache.
21887# It is not useful on other systems.  If it contains results you don't
21888# want to keep, you may remove or edit it.
21889#
21890# config.status only pays attention to the cache file if you give it
21891# the --recheck option to rerun configure.
21892#
21893# `ac_cv_env_foo' variables (set or unset) will be overridden when
21894# loading this file, other *unset* `ac_cv_foo' will be assigned the
21895# following values.
21896
21897_ACEOF
21898
21899# The following way of writing the cache mishandles newlines in values,
21900# but we know of no workaround that is simple, portable, and efficient.
21901# So, don't put newlines in cache variables' values.
21902# Ultrix sh set writes to stderr and can't be redirected directly,
21903# and sets the high bit in the cache file unless we assign to the vars.
21904{
21905  (set) 2>&1 |
21906    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21907    *ac_space=\ *)
21908      # `set' does not quote correctly, so add quotes (double-quote
21909      # substitution turns \\\\ into \\, and sed turns \\ into \).
21910      sed -n \
21911	"s/'/'\\\\''/g;
21912	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21913      ;;
21914    *)
21915      # `set' quotes correctly as required by POSIX, so do not add quotes.
21916      sed -n \
21917	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21918      ;;
21919    esac;
21920} |
21921  sed '
21922     t clear
21923     : clear
21924     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21925     t end
21926     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21927     : end' >>confcache
21928if diff $cache_file confcache >/dev/null 2>&1; then :; else
21929  if test -w $cache_file; then
21930    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21931    cat confcache >$cache_file
21932  else
21933    echo "not updating unwritable cache $cache_file"
21934  fi
21935fi
21936rm -f confcache
21937
21938test "x$prefix" = xNONE && prefix=$ac_default_prefix
21939# Let make expand exec_prefix.
21940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21941
21942# VPATH may cause trouble with some makes, so we remove $(srcdir),
21943# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21944# trailing colons and then remove the whole line if VPATH becomes empty
21945# (actually we leave an empty line to preserve line numbers).
21946if test "x$srcdir" = x.; then
21947  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21948s/:*\$(srcdir):*/:/;
21949s/:*\${srcdir}:*/:/;
21950s/:*@srcdir@:*/:/;
21951s/^\([^=]*=[	 ]*\):*/\1/;
21952s/:*$//;
21953s/^[^=]*=[	 ]*$//;
21954}'
21955fi
21956
21957# Transform confdefs.h into DEFS.
21958# Protect against shell expansion while executing Makefile rules.
21959# Protect against Makefile macro expansion.
21960#
21961# If the first sed substitution is executed (which looks for macros that
21962# take arguments), then we branch to the quote section.  Otherwise,
21963# look for a macro that doesn't take arguments.
21964cat >confdef2opt.sed <<\_ACEOF
21965t clear
21966: clear
21967s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21968t quote
21969s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21970t quote
21971d
21972: quote
21973s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21974s,\[,\\&,g
21975s,\],\\&,g
21976s,\$,$$,g
21977p
21978_ACEOF
21979# We use echo to avoid assuming a particular line-breaking character.
21980# The extra dot is to prevent the shell from consuming trailing
21981# line-breaks from the sub-command output.  A line-break within
21982# single-quotes doesn't work because, if this script is created in a
21983# platform that uses two characters for line-breaks (e.g., DOS), tr
21984# would break.
21985ac_LF_and_DOT=`echo; echo .`
21986DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21987rm -f confdef2opt.sed
21988
21989
21990ac_libobjs=
21991ac_ltlibobjs=
21992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21993  # 1. Remove the extension, and $U if already installed.
21994  ac_i=`echo "$ac_i" |
21995	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21996  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21997  #    will be set to the directory where LIBOBJS objects are built.
21998  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21999  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22000done
22001LIBOBJS=$ac_libobjs
22002
22003LTLIBOBJS=$ac_ltlibobjs
22004
22005
22006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22007  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22008Usually this means the macro was only invoked conditionally." >&5
22009echo "$as_me: error: conditional \"AMDEP\" was never defined.
22010Usually this means the macro was only invoked conditionally." >&2;}
22011   { (exit 1); exit 1; }; }
22012fi
22013if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22014  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22015Usually this means the macro was only invoked conditionally." >&5
22016echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22017Usually this means the macro was only invoked conditionally." >&2;}
22018   { (exit 1); exit 1; }; }
22019fi
22020if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22021  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22022Usually this means the macro was only invoked conditionally." >&5
22023echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22024Usually this means the macro was only invoked conditionally." >&2;}
22025   { (exit 1); exit 1; }; }
22026fi
22027if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
22028  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLAC\" was never defined.
22029Usually this means the macro was only invoked conditionally." >&5
22030echo "$as_me: error: conditional \"HAVE_FLAC\" was never defined.
22031Usually this means the macro was only invoked conditionally." >&2;}
22032   { (exit 1); exit 1; }; }
22033fi
22034if test -z "${HAVE_DUMB_TRUE}" && test -z "${HAVE_DUMB_FALSE}"; then
22035  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DUMB\" was never defined.
22036Usually this means the macro was only invoked conditionally." >&5
22037echo "$as_me: error: conditional \"HAVE_DUMB\" was never defined.
22038Usually this means the macro was only invoked conditionally." >&2;}
22039   { (exit 1); exit 1; }; }
22040fi
22041if test -z "${HAVE_LIBCDAUDIO_TRUE}" && test -z "${HAVE_LIBCDAUDIO_FALSE}"; then
22042  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCDAUDIO\" was never defined.
22043Usually this means the macro was only invoked conditionally." >&5
22044echo "$as_me: error: conditional \"HAVE_LIBCDAUDIO\" was never defined.
22045Usually this means the macro was only invoked conditionally." >&2;}
22046   { (exit 1); exit 1; }; }
22047fi
22048if test -z "${HAVE_AL_TRUE}" && test -z "${HAVE_AL_FALSE}"; then
22049  { { echo "$as_me:$LINENO: error: conditional \"HAVE_AL\" was never defined.
22050Usually this means the macro was only invoked conditionally." >&5
22051echo "$as_me: error: conditional \"HAVE_AL\" was never defined.
22052Usually this means the macro was only invoked conditionally." >&2;}
22053   { (exit 1); exit 1; }; }
22054fi
22055if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
22056  { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
22057Usually this means the macro was only invoked conditionally." >&5
22058echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
22059Usually this means the macro was only invoked conditionally." >&2;}
22060   { (exit 1); exit 1; }; }
22061fi
22062if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
22063  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OSS\" was never defined.
22064Usually this means the macro was only invoked conditionally." >&5
22065echo "$as_me: error: conditional \"HAVE_OSS\" was never defined.
22066Usually this means the macro was only invoked conditionally." >&2;}
22067   { (exit 1); exit 1; }; }
22068fi
22069if test -z "${HAVE_OGG_TRUE}" && test -z "${HAVE_OGG_FALSE}"; then
22070  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OGG\" was never defined.
22071Usually this means the macro was only invoked conditionally." >&5
22072echo "$as_me: error: conditional \"HAVE_OGG\" was never defined.
22073Usually this means the macro was only invoked conditionally." >&2;}
22074   { (exit 1); exit 1; }; }
22075fi
22076if test -z "${HAVE_SPEEX_TRUE}" && test -z "${HAVE_SPEEX_FALSE}"; then
22077  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SPEEX\" was never defined.
22078Usually this means the macro was only invoked conditionally." >&5
22079echo "$as_me: error: conditional \"HAVE_SPEEX\" was never defined.
22080Usually this means the macro was only invoked conditionally." >&2;}
22081   { (exit 1); exit 1; }; }
22082fi
22083if test -z "${HAVE_DSOUND_TRUE}" && test -z "${HAVE_DSOUND_FALSE}"; then
22084  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DSOUND\" was never defined.
22085Usually this means the macro was only invoked conditionally." >&5
22086echo "$as_me: error: conditional \"HAVE_DSOUND\" was never defined.
22087Usually this means the macro was only invoked conditionally." >&2;}
22088   { (exit 1); exit 1; }; }
22089fi
22090if test -z "${HAVE_WINMM_TRUE}" && test -z "${HAVE_WINMM_FALSE}"; then
22091  { { echo "$as_me:$LINENO: error: conditional \"HAVE_WINMM\" was never defined.
22092Usually this means the macro was only invoked conditionally." >&5
22093echo "$as_me: error: conditional \"HAVE_WINMM\" was never defined.
22094Usually this means the macro was only invoked conditionally." >&2;}
22095   { (exit 1); exit 1; }; }
22096fi
22097
22098: ${CONFIG_STATUS=./config.status}
22099ac_clean_files_save=$ac_clean_files
22100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22101{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22102echo "$as_me: creating $CONFIG_STATUS" >&6;}
22103cat >$CONFIG_STATUS <<_ACEOF
22104#! $SHELL
22105# Generated by $as_me.
22106# Run this file to recreate the current configuration.
22107# Compiler output produced by configure, useful for debugging
22108# configure, is in config.log if it exists.
22109
22110debug=false
22111ac_cs_recheck=false
22112ac_cs_silent=false
22113SHELL=\${CONFIG_SHELL-$SHELL}
22114_ACEOF
22115
22116cat >>$CONFIG_STATUS <<\_ACEOF
22117## --------------------- ##
22118## M4sh Initialization.  ##
22119## --------------------- ##
22120
22121# Be Bourne compatible
22122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22123  emulate sh
22124  NULLCMD=:
22125  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22126  # is contrary to our usage.  Disable this feature.
22127  alias -g '${1+"$@"}'='"$@"'
22128elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22129  set -o posix
22130fi
22131DUALCASE=1; export DUALCASE # for MKS sh
22132
22133# Support unset when possible.
22134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22135  as_unset=unset
22136else
22137  as_unset=false
22138fi
22139
22140
22141# Work around bugs in pre-3.0 UWIN ksh.
22142$as_unset ENV MAIL MAILPATH
22143PS1='$ '
22144PS2='> '
22145PS4='+ '
22146
22147# NLS nuisances.
22148for as_var in \
22149  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22150  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22151  LC_TELEPHONE LC_TIME
22152do
22153  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22154    eval $as_var=C; export $as_var
22155  else
22156    $as_unset $as_var
22157  fi
22158done
22159
22160# Required to use basename.
22161if expr a : '\(a\)' >/dev/null 2>&1; then
22162  as_expr=expr
22163else
22164  as_expr=false
22165fi
22166
22167if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22168  as_basename=basename
22169else
22170  as_basename=false
22171fi
22172
22173
22174# Name of the executable.
22175as_me=`$as_basename "$0" ||
22176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22177	 X"$0" : 'X\(//\)$' \| \
22178	 X"$0" : 'X\(/\)$' \| \
22179	 .     : '\(.\)' 2>/dev/null ||
22180echo X/"$0" |
22181    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22182  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22183  	  /^X\/\(\/\).*/{ s//\1/; q; }
22184  	  s/.*/./; q'`
22185
22186
22187# PATH needs CR, and LINENO needs CR and PATH.
22188# Avoid depending upon Character Ranges.
22189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22192as_cr_digits='0123456789'
22193as_cr_alnum=$as_cr_Letters$as_cr_digits
22194
22195# The user is always right.
22196if test "${PATH_SEPARATOR+set}" != set; then
22197  echo "#! /bin/sh" >conf$$.sh
22198  echo  "exit 0"   >>conf$$.sh
22199  chmod +x conf$$.sh
22200  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22201    PATH_SEPARATOR=';'
22202  else
22203    PATH_SEPARATOR=:
22204  fi
22205  rm -f conf$$.sh
22206fi
22207
22208
22209  as_lineno_1=$LINENO
22210  as_lineno_2=$LINENO
22211  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22212  test "x$as_lineno_1" != "x$as_lineno_2" &&
22213  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22214  # Find who we are.  Look in the path if we contain no path at all
22215  # relative or not.
22216  case $0 in
22217    *[\\/]* ) as_myself=$0 ;;
22218    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22219for as_dir in $PATH
22220do
22221  IFS=$as_save_IFS
22222  test -z "$as_dir" && as_dir=.
22223  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22224done
22225
22226       ;;
22227  esac
22228  # We did not find ourselves, most probably we were run as `sh COMMAND'
22229  # in which case we are not to be found in the path.
22230  if test "x$as_myself" = x; then
22231    as_myself=$0
22232  fi
22233  if test ! -f "$as_myself"; then
22234    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22235echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22236   { (exit 1); exit 1; }; }
22237  fi
22238  case $CONFIG_SHELL in
22239  '')
22240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22242do
22243  IFS=$as_save_IFS
22244  test -z "$as_dir" && as_dir=.
22245  for as_base in sh bash ksh sh5; do
22246	 case $as_dir in
22247	 /*)
22248	   if ("$as_dir/$as_base" -c '
22249  as_lineno_1=$LINENO
22250  as_lineno_2=$LINENO
22251  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22252  test "x$as_lineno_1" != "x$as_lineno_2" &&
22253  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22254	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22255	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22256	     CONFIG_SHELL=$as_dir/$as_base
22257	     export CONFIG_SHELL
22258	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22259	   fi;;
22260	 esac
22261       done
22262done
22263;;
22264  esac
22265
22266  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22267  # uniformly replaced by the line number.  The first 'sed' inserts a
22268  # line-number line before each line; the second 'sed' does the real
22269  # work.  The second script uses 'N' to pair each line-number line
22270  # with the numbered line, and appends trailing '-' during
22271  # substitution so that $LINENO is not a special case at line end.
22272  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22273  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22274  sed '=' <$as_myself |
22275    sed '
22276      N
22277      s,$,-,
22278      : loop
22279      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22280      t loop
22281      s,-$,,
22282      s,^['$as_cr_digits']*\n,,
22283    ' >$as_me.lineno &&
22284  chmod +x $as_me.lineno ||
22285    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22286echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22287   { (exit 1); exit 1; }; }
22288
22289  # Don't try to exec as it changes $[0], causing all sort of problems
22290  # (the dirname of $[0] is not the place where we might find the
22291  # original and so on.  Autoconf is especially sensible to this).
22292  . ./$as_me.lineno
22293  # Exit status is that of the last command.
22294  exit
22295}
22296
22297
22298case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22299  *c*,-n*) ECHO_N= ECHO_C='
22300' ECHO_T='	' ;;
22301  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22302  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22303esac
22304
22305if expr a : '\(a\)' >/dev/null 2>&1; then
22306  as_expr=expr
22307else
22308  as_expr=false
22309fi
22310
22311rm -f conf$$ conf$$.exe conf$$.file
22312echo >conf$$.file
22313if ln -s conf$$.file conf$$ 2>/dev/null; then
22314  # We could just check for DJGPP; but this test a) works b) is more generic
22315  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22316  if test -f conf$$.exe; then
22317    # Don't use ln at all; we don't have any links
22318    as_ln_s='cp -p'
22319  else
22320    as_ln_s='ln -s'
22321  fi
22322elif ln conf$$.file conf$$ 2>/dev/null; then
22323  as_ln_s=ln
22324else
22325  as_ln_s='cp -p'
22326fi
22327rm -f conf$$ conf$$.exe conf$$.file
22328
22329if mkdir -p . 2>/dev/null; then
22330  as_mkdir_p=:
22331else
22332  test -d ./-p && rmdir ./-p
22333  as_mkdir_p=false
22334fi
22335
22336as_executable_p="test -f"
22337
22338# Sed expression to map a string onto a valid CPP name.
22339as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22340
22341# Sed expression to map a string onto a valid variable name.
22342as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22343
22344
22345# IFS
22346# We need space, tab and new line, in precisely that order.
22347as_nl='
22348'
22349IFS=" 	$as_nl"
22350
22351# CDPATH.
22352$as_unset CDPATH
22353
22354exec 6>&1
22355
22356# Open the log real soon, to keep \$[0] and so on meaningful, and to
22357# report actual input values of CONFIG_FILES etc. instead of their
22358# values after options handling.  Logging --version etc. is OK.
22359exec 5>>config.log
22360{
22361  echo
22362  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22363## Running $as_me. ##
22364_ASBOX
22365} >&5
22366cat >&5 <<_CSEOF
22367
22368This file was extended by $as_me, which was
22369generated by GNU Autoconf 2.59.  Invocation command line was
22370
22371  CONFIG_FILES    = $CONFIG_FILES
22372  CONFIG_HEADERS  = $CONFIG_HEADERS
22373  CONFIG_LINKS    = $CONFIG_LINKS
22374  CONFIG_COMMANDS = $CONFIG_COMMANDS
22375  $ $0 $@
22376
22377_CSEOF
22378echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22379echo >&5
22380_ACEOF
22381
22382# Files that config.status was made for.
22383if test -n "$ac_config_files"; then
22384  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22385fi
22386
22387if test -n "$ac_config_headers"; then
22388  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22389fi
22390
22391if test -n "$ac_config_links"; then
22392  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22393fi
22394
22395if test -n "$ac_config_commands"; then
22396  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22397fi
22398
22399cat >>$CONFIG_STATUS <<\_ACEOF
22400
22401ac_cs_usage="\
22402\`$as_me' instantiates files from templates according to the
22403current configuration.
22404
22405Usage: $0 [OPTIONS] [FILE]...
22406
22407  -h, --help       print this help, then exit
22408  -V, --version    print version number, then exit
22409  -q, --quiet      do not print progress messages
22410  -d, --debug      don't remove temporary files
22411      --recheck    update $as_me by reconfiguring in the same conditions
22412  --file=FILE[:TEMPLATE]
22413		   instantiate the configuration file FILE
22414
22415Configuration files:
22416$config_files
22417
22418Configuration commands:
22419$config_commands
22420
22421Report bugs to <bug-autoconf@gnu.org>."
22422_ACEOF
22423
22424cat >>$CONFIG_STATUS <<_ACEOF
22425ac_cs_version="\\
22426config.status
22427configured by $0, generated by GNU Autoconf 2.59,
22428  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22429
22430Copyright (C) 2003 Free Software Foundation, Inc.
22431This config.status script is free software; the Free Software Foundation
22432gives unlimited permission to copy, distribute and modify it."
22433srcdir=$srcdir
22434INSTALL="$INSTALL"
22435_ACEOF
22436
22437cat >>$CONFIG_STATUS <<\_ACEOF
22438# If no file are specified by the user, then we need to provide default
22439# value.  By we need to know if files were specified by the user.
22440ac_need_defaults=:
22441while test $# != 0
22442do
22443  case $1 in
22444  --*=*)
22445    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22446    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22447    ac_shift=:
22448    ;;
22449  -*)
22450    ac_option=$1
22451    ac_optarg=$2
22452    ac_shift=shift
22453    ;;
22454  *) # This is not an option, so the user has probably given explicit
22455     # arguments.
22456     ac_option=$1
22457     ac_need_defaults=false;;
22458  esac
22459
22460  case $ac_option in
22461  # Handling of the options.
22462_ACEOF
22463cat >>$CONFIG_STATUS <<\_ACEOF
22464  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22465    ac_cs_recheck=: ;;
22466  --version | --vers* | -V )
22467    echo "$ac_cs_version"; exit 0 ;;
22468  --he | --h)
22469    # Conflict between --help and --header
22470    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22471Try \`$0 --help' for more information." >&5
22472echo "$as_me: error: ambiguous option: $1
22473Try \`$0 --help' for more information." >&2;}
22474   { (exit 1); exit 1; }; };;
22475  --help | --hel | -h )
22476    echo "$ac_cs_usage"; exit 0 ;;
22477  --debug | --d* | -d )
22478    debug=: ;;
22479  --file | --fil | --fi | --f )
22480    $ac_shift
22481    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22482    ac_need_defaults=false;;
22483  --header | --heade | --head | --hea )
22484    $ac_shift
22485    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22486    ac_need_defaults=false;;
22487  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22488  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22489    ac_cs_silent=: ;;
22490
22491  # This is an error.
22492  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22493Try \`$0 --help' for more information." >&5
22494echo "$as_me: error: unrecognized option: $1
22495Try \`$0 --help' for more information." >&2;}
22496   { (exit 1); exit 1; }; } ;;
22497
22498  *) ac_config_targets="$ac_config_targets $1" ;;
22499
22500  esac
22501  shift
22502done
22503
22504ac_configure_extra_args=
22505
22506if $ac_cs_silent; then
22507  exec 6>/dev/null
22508  ac_configure_extra_args="$ac_configure_extra_args --silent"
22509fi
22510
22511_ACEOF
22512cat >>$CONFIG_STATUS <<_ACEOF
22513if \$ac_cs_recheck; then
22514  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22515  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22516fi
22517
22518_ACEOF
22519
22520cat >>$CONFIG_STATUS <<_ACEOF
22521#
22522# INIT-COMMANDS section.
22523#
22524
22525AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22526
22527_ACEOF
22528
22529
22530
22531cat >>$CONFIG_STATUS <<\_ACEOF
22532for ac_config_target in $ac_config_targets
22533do
22534  case "$ac_config_target" in
22535  # Handling of arguments.
22536  "audiere-config" ) CONFIG_FILES="$CONFIG_FILES audiere-config" ;;
22537  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22538  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22539  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22540  "examples/simple/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simple/Makefile" ;;
22541  "examples/wxPlayer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/wxPlayer/Makefile" ;;
22542  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22543  "src/mpaudec/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpaudec/Makefile" ;;
22544  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22545  "test/buffer/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/buffer/Makefile" ;;
22546  "test/callback/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/callback/Makefile" ;;
22547  "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
22548  "test/formats/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/formats/Makefile" ;;
22549  "test/interactive/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/interactive/Makefile" ;;
22550  "test/performance/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/performance/Makefile" ;;
22551  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22552  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22553  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22554echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22555   { (exit 1); exit 1; }; };;
22556  esac
22557done
22558
22559# If the user did not use the arguments to specify the items to instantiate,
22560# then the envvar interface is used.  Set only those that are not.
22561# We use the long form for the default assignment because of an extremely
22562# bizarre bug on SunOS 4.1.3.
22563if $ac_need_defaults; then
22564  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22565  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22566fi
22567
22568# Have a temporary directory for convenience.  Make it in the build tree
22569# simply because there is no reason to put it here, and in addition,
22570# creating and moving files from /tmp can sometimes cause problems.
22571# Create a temporary directory, and hook for its removal unless debugging.
22572$debug ||
22573{
22574  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22575  trap '{ (exit 1); exit 1; }' 1 2 13 15
22576}
22577
22578# Create a (secure) tmp directory for tmp files.
22579
22580{
22581  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22582  test -n "$tmp" && test -d "$tmp"
22583}  ||
22584{
22585  tmp=./confstat$$-$RANDOM
22586  (umask 077 && mkdir $tmp)
22587} ||
22588{
22589   echo "$me: cannot create a temporary directory in ." >&2
22590   { (exit 1); exit 1; }
22591}
22592
22593_ACEOF
22594
22595cat >>$CONFIG_STATUS <<_ACEOF
22596
22597#
22598# CONFIG_FILES section.
22599#
22600
22601# No need to generate the scripts if there are no CONFIG_FILES.
22602# This happens for instance when ./config.status config.h
22603if test -n "\$CONFIG_FILES"; then
22604  # Protect against being on the right side of a sed subst in config.status.
22605  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22606   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22607s,@SHELL@,$SHELL,;t t
22608s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22609s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22610s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22611s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22612s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22613s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22614s,@exec_prefix@,$exec_prefix,;t t
22615s,@prefix@,$prefix,;t t
22616s,@program_transform_name@,$program_transform_name,;t t
22617s,@bindir@,$bindir,;t t
22618s,@sbindir@,$sbindir,;t t
22619s,@libexecdir@,$libexecdir,;t t
22620s,@datadir@,$datadir,;t t
22621s,@sysconfdir@,$sysconfdir,;t t
22622s,@sharedstatedir@,$sharedstatedir,;t t
22623s,@localstatedir@,$localstatedir,;t t
22624s,@libdir@,$libdir,;t t
22625s,@includedir@,$includedir,;t t
22626s,@oldincludedir@,$oldincludedir,;t t
22627s,@infodir@,$infodir,;t t
22628s,@mandir@,$mandir,;t t
22629s,@build_alias@,$build_alias,;t t
22630s,@host_alias@,$host_alias,;t t
22631s,@target_alias@,$target_alias,;t t
22632s,@DEFS@,$DEFS,;t t
22633s,@ECHO_C@,$ECHO_C,;t t
22634s,@ECHO_N@,$ECHO_N,;t t
22635s,@ECHO_T@,$ECHO_T,;t t
22636s,@LIBS@,$LIBS,;t t
22637s,@build@,$build,;t t
22638s,@build_cpu@,$build_cpu,;t t
22639s,@build_vendor@,$build_vendor,;t t
22640s,@build_os@,$build_os,;t t
22641s,@host@,$host,;t t
22642s,@host_cpu@,$host_cpu,;t t
22643s,@host_vendor@,$host_vendor,;t t
22644s,@host_os@,$host_os,;t t
22645s,@target@,$target,;t t
22646s,@target_cpu@,$target_cpu,;t t
22647s,@target_vendor@,$target_vendor,;t t
22648s,@target_os@,$target_os,;t t
22649s,@VERSION@,$VERSION,;t t
22650s,@PACKAGE@,$PACKAGE,;t t
22651s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22652s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22653s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22654s,@CYGPATH_W@,$CYGPATH_W,;t t
22655s,@ACLOCAL@,$ACLOCAL,;t t
22656s,@AUTOCONF@,$AUTOCONF,;t t
22657s,@AUTOMAKE@,$AUTOMAKE,;t t
22658s,@AUTOHEADER@,$AUTOHEADER,;t t
22659s,@MAKEINFO@,$MAKEINFO,;t t
22660s,@install_sh@,$install_sh,;t t
22661s,@STRIP@,$STRIP,;t t
22662s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22663s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22664s,@mkdir_p@,$mkdir_p,;t t
22665s,@AWK@,$AWK,;t t
22666s,@SET_MAKE@,$SET_MAKE,;t t
22667s,@am__leading_dot@,$am__leading_dot,;t t
22668s,@AMTAR@,$AMTAR,;t t
22669s,@am__tar@,$am__tar,;t t
22670s,@am__untar@,$am__untar,;t t
22671s,@CC@,$CC,;t t
22672s,@CFLAGS@,$CFLAGS,;t t
22673s,@LDFLAGS@,$LDFLAGS,;t t
22674s,@CPPFLAGS@,$CPPFLAGS,;t t
22675s,@ac_ct_CC@,$ac_ct_CC,;t t
22676s,@EXEEXT@,$EXEEXT,;t t
22677s,@OBJEXT@,$OBJEXT,;t t
22678s,@DEPDIR@,$DEPDIR,;t t
22679s,@am__include@,$am__include,;t t
22680s,@am__quote@,$am__quote,;t t
22681s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22682s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22683s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22684s,@CCDEPMODE@,$CCDEPMODE,;t t
22685s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22686s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22687s,@CPP@,$CPP,;t t
22688s,@CXX@,$CXX,;t t
22689s,@CXXFLAGS@,$CXXFLAGS,;t t
22690s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22691s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22692s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22693s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22694s,@CXXCPP@,$CXXCPP,;t t
22695s,@EGREP@,$EGREP,;t t
22696s,@LN_S@,$LN_S,;t t
22697s,@ECHO@,$ECHO,;t t
22698s,@AR@,$AR,;t t
22699s,@ac_ct_AR@,$ac_ct_AR,;t t
22700s,@RANLIB@,$RANLIB,;t t
22701s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22702s,@F77@,$F77,;t t
22703s,@FFLAGS@,$FFLAGS,;t t
22704s,@ac_ct_F77@,$ac_ct_F77,;t t
22705s,@LIBTOOL@,$LIBTOOL,;t t
22706s,@HAVE_FLAC_TRUE@,$HAVE_FLAC_TRUE,;t t
22707s,@HAVE_FLAC_FALSE@,$HAVE_FLAC_FALSE,;t t
22708s,@HAVE_DUMB_TRUE@,$HAVE_DUMB_TRUE,;t t
22709s,@HAVE_DUMB_FALSE@,$HAVE_DUMB_FALSE,;t t
22710s,@HAVE_LIBCDAUDIO_TRUE@,$HAVE_LIBCDAUDIO_TRUE,;t t
22711s,@HAVE_LIBCDAUDIO_FALSE@,$HAVE_LIBCDAUDIO_FALSE,;t t
22712s,@HAVE_AL_TRUE@,$HAVE_AL_TRUE,;t t
22713s,@HAVE_AL_FALSE@,$HAVE_AL_FALSE,;t t
22714s,@WX_CONFIG@,$WX_CONFIG,;t t
22715s,@WX_LIBS@,$WX_LIBS,;t t
22716s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
22717s,@HAVE_WXWINDOWS_TRUE@,$HAVE_WXWINDOWS_TRUE,;t t
22718s,@HAVE_WXWINDOWS_FALSE@,$HAVE_WXWINDOWS_FALSE,;t t
22719s,@HAVE_OSS_TRUE@,$HAVE_OSS_TRUE,;t t
22720s,@HAVE_OSS_FALSE@,$HAVE_OSS_FALSE,;t t
22721s,@HAVE_OGG_TRUE@,$HAVE_OGG_TRUE,;t t
22722s,@HAVE_OGG_FALSE@,$HAVE_OGG_FALSE,;t t
22723s,@HAVE_SPEEX_TRUE@,$HAVE_SPEEX_TRUE,;t t
22724s,@HAVE_SPEEX_FALSE@,$HAVE_SPEEX_FALSE,;t t
22725s,@HAVE_DSOUND_TRUE@,$HAVE_DSOUND_TRUE,;t t
22726s,@HAVE_DSOUND_FALSE@,$HAVE_DSOUND_FALSE,;t t
22727s,@HAVE_WINMM_TRUE@,$HAVE_WINMM_TRUE,;t t
22728s,@HAVE_WINMM_FALSE@,$HAVE_WINMM_FALSE,;t t
22729s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
22730s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
22731s,@LIBOBJS@,$LIBOBJS,;t t
22732s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22733CEOF
22734
22735_ACEOF
22736
22737  cat >>$CONFIG_STATUS <<\_ACEOF
22738  # Split the substitutions into bite-sized pieces for seds with
22739  # small command number limits, like on Digital OSF/1 and HP-UX.
22740  ac_max_sed_lines=48
22741  ac_sed_frag=1 # Number of current file.
22742  ac_beg=1 # First line for current file.
22743  ac_end=$ac_max_sed_lines # Line after last line for current file.
22744  ac_more_lines=:
22745  ac_sed_cmds=
22746  while $ac_more_lines; do
22747    if test $ac_beg -gt 1; then
22748      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22749    else
22750      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22751    fi
22752    if test ! -s $tmp/subs.frag; then
22753      ac_more_lines=false
22754    else
22755      # The purpose of the label and of the branching condition is to
22756      # speed up the sed processing (if there are no `@' at all, there
22757      # is no need to browse any of the substitutions).
22758      # These are the two extra sed commands mentioned above.
22759      (echo ':t
22760  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22761      if test -z "$ac_sed_cmds"; then
22762	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22763      else
22764	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22765      fi
22766      ac_sed_frag=`expr $ac_sed_frag + 1`
22767      ac_beg=$ac_end
22768      ac_end=`expr $ac_end + $ac_max_sed_lines`
22769    fi
22770  done
22771  if test -z "$ac_sed_cmds"; then
22772    ac_sed_cmds=cat
22773  fi
22774fi # test -n "$CONFIG_FILES"
22775
22776_ACEOF
22777cat >>$CONFIG_STATUS <<\_ACEOF
22778for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22779  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22780  case $ac_file in
22781  - | *:- | *:-:* ) # input from stdin
22782	cat >$tmp/stdin
22783	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22784	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22785  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22786	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22787  * )   ac_file_in=$ac_file.in ;;
22788  esac
22789
22790  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22791  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793	 X"$ac_file" : 'X\(//\)[^/]' \| \
22794	 X"$ac_file" : 'X\(//\)$' \| \
22795	 X"$ac_file" : 'X\(/\)' \| \
22796	 .     : '\(.\)' 2>/dev/null ||
22797echo X"$ac_file" |
22798    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800  	  /^X\(\/\/\)$/{ s//\1/; q; }
22801  	  /^X\(\/\).*/{ s//\1/; q; }
22802  	  s/.*/./; q'`
22803  { if $as_mkdir_p; then
22804    mkdir -p "$ac_dir"
22805  else
22806    as_dir="$ac_dir"
22807    as_dirs=
22808    while test ! -d "$as_dir"; do
22809      as_dirs="$as_dir $as_dirs"
22810      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22812	 X"$as_dir" : 'X\(//\)[^/]' \| \
22813	 X"$as_dir" : 'X\(//\)$' \| \
22814	 X"$as_dir" : 'X\(/\)' \| \
22815	 .     : '\(.\)' 2>/dev/null ||
22816echo X"$as_dir" |
22817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22818  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22819  	  /^X\(\/\/\)$/{ s//\1/; q; }
22820  	  /^X\(\/\).*/{ s//\1/; q; }
22821  	  s/.*/./; q'`
22822    done
22823    test ! -n "$as_dirs" || mkdir $as_dirs
22824  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22826   { (exit 1); exit 1; }; }; }
22827
22828  ac_builddir=.
22829
22830if test "$ac_dir" != .; then
22831  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22832  # A "../" for each directory in $ac_dir_suffix.
22833  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22834else
22835  ac_dir_suffix= ac_top_builddir=
22836fi
22837
22838case $srcdir in
22839  .)  # No --srcdir option.  We are building in place.
22840    ac_srcdir=.
22841    if test -z "$ac_top_builddir"; then
22842       ac_top_srcdir=.
22843    else
22844       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22845    fi ;;
22846  [\\/]* | ?:[\\/]* )  # Absolute path.
22847    ac_srcdir=$srcdir$ac_dir_suffix;
22848    ac_top_srcdir=$srcdir ;;
22849  *) # Relative path.
22850    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22851    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22852esac
22853
22854# Do not use `cd foo && pwd` to compute absolute paths, because
22855# the directories may not exist.
22856case `pwd` in
22857.) ac_abs_builddir="$ac_dir";;
22858*)
22859  case "$ac_dir" in
22860  .) ac_abs_builddir=`pwd`;;
22861  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22862  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22863  esac;;
22864esac
22865case $ac_abs_builddir in
22866.) ac_abs_top_builddir=${ac_top_builddir}.;;
22867*)
22868  case ${ac_top_builddir}. in
22869  .) ac_abs_top_builddir=$ac_abs_builddir;;
22870  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22871  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22872  esac;;
22873esac
22874case $ac_abs_builddir in
22875.) ac_abs_srcdir=$ac_srcdir;;
22876*)
22877  case $ac_srcdir in
22878  .) ac_abs_srcdir=$ac_abs_builddir;;
22879  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22880  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22881  esac;;
22882esac
22883case $ac_abs_builddir in
22884.) ac_abs_top_srcdir=$ac_top_srcdir;;
22885*)
22886  case $ac_top_srcdir in
22887  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22888  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22889  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22890  esac;;
22891esac
22892
22893
22894  case $INSTALL in
22895  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22896  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22897  esac
22898
22899  if test x"$ac_file" != x-; then
22900    { echo "$as_me:$LINENO: creating $ac_file" >&5
22901echo "$as_me: creating $ac_file" >&6;}
22902    rm -f "$ac_file"
22903  fi
22904  # Let's still pretend it is `configure' which instantiates (i.e., don't
22905  # use $as_me), people would be surprised to read:
22906  #    /* config.h.  Generated by config.status.  */
22907  if test x"$ac_file" = x-; then
22908    configure_input=
22909  else
22910    configure_input="$ac_file.  "
22911  fi
22912  configure_input=$configure_input"Generated from `echo $ac_file_in |
22913				     sed 's,.*/,,'` by configure."
22914
22915  # First look for the input files in the build tree, otherwise in the
22916  # src tree.
22917  ac_file_inputs=`IFS=:
22918    for f in $ac_file_in; do
22919      case $f in
22920      -) echo $tmp/stdin ;;
22921      [\\/$]*)
22922	 # Absolute (can't be DOS-style, as IFS=:)
22923	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22924echo "$as_me: error: cannot find input file: $f" >&2;}
22925   { (exit 1); exit 1; }; }
22926	 echo "$f";;
22927      *) # Relative
22928	 if test -f "$f"; then
22929	   # Build tree
22930	   echo "$f"
22931	 elif test -f "$srcdir/$f"; then
22932	   # Source tree
22933	   echo "$srcdir/$f"
22934	 else
22935	   # /dev/null tree
22936	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22937echo "$as_me: error: cannot find input file: $f" >&2;}
22938   { (exit 1); exit 1; }; }
22939	 fi;;
22940      esac
22941    done` || { (exit 1); exit 1; }
22942_ACEOF
22943cat >>$CONFIG_STATUS <<_ACEOF
22944  sed "$ac_vpsub
22945$extrasub
22946_ACEOF
22947cat >>$CONFIG_STATUS <<\_ACEOF
22948:t
22949/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22950s,@configure_input@,$configure_input,;t t
22951s,@srcdir@,$ac_srcdir,;t t
22952s,@abs_srcdir@,$ac_abs_srcdir,;t t
22953s,@top_srcdir@,$ac_top_srcdir,;t t
22954s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22955s,@builddir@,$ac_builddir,;t t
22956s,@abs_builddir@,$ac_abs_builddir,;t t
22957s,@top_builddir@,$ac_top_builddir,;t t
22958s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22959s,@INSTALL@,$ac_INSTALL,;t t
22960" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22961  rm -f $tmp/stdin
22962  if test x"$ac_file" != x-; then
22963    mv $tmp/out $ac_file
22964  else
22965    cat $tmp/out
22966    rm -f $tmp/out
22967  fi
22968
22969done
22970_ACEOF
22971cat >>$CONFIG_STATUS <<\_ACEOF
22972
22973#
22974# CONFIG_COMMANDS section.
22975#
22976for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22977  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22978  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22980$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22981	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22982	 X"$ac_dest" : 'X\(//\)$' \| \
22983	 X"$ac_dest" : 'X\(/\)' \| \
22984	 .     : '\(.\)' 2>/dev/null ||
22985echo X"$ac_dest" |
22986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22987  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22988  	  /^X\(\/\/\)$/{ s//\1/; q; }
22989  	  /^X\(\/\).*/{ s//\1/; q; }
22990  	  s/.*/./; q'`
22991  { if $as_mkdir_p; then
22992    mkdir -p "$ac_dir"
22993  else
22994    as_dir="$ac_dir"
22995    as_dirs=
22996    while test ! -d "$as_dir"; do
22997      as_dirs="$as_dir $as_dirs"
22998      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22999$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23000	 X"$as_dir" : 'X\(//\)[^/]' \| \
23001	 X"$as_dir" : 'X\(//\)$' \| \
23002	 X"$as_dir" : 'X\(/\)' \| \
23003	 .     : '\(.\)' 2>/dev/null ||
23004echo X"$as_dir" |
23005    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23006  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23007  	  /^X\(\/\/\)$/{ s//\1/; q; }
23008  	  /^X\(\/\).*/{ s//\1/; q; }
23009  	  s/.*/./; q'`
23010    done
23011    test ! -n "$as_dirs" || mkdir $as_dirs
23012  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23013echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23014   { (exit 1); exit 1; }; }; }
23015
23016  ac_builddir=.
23017
23018if test "$ac_dir" != .; then
23019  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23020  # A "../" for each directory in $ac_dir_suffix.
23021  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23022else
23023  ac_dir_suffix= ac_top_builddir=
23024fi
23025
23026case $srcdir in
23027  .)  # No --srcdir option.  We are building in place.
23028    ac_srcdir=.
23029    if test -z "$ac_top_builddir"; then
23030       ac_top_srcdir=.
23031    else
23032       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23033    fi ;;
23034  [\\/]* | ?:[\\/]* )  # Absolute path.
23035    ac_srcdir=$srcdir$ac_dir_suffix;
23036    ac_top_srcdir=$srcdir ;;
23037  *) # Relative path.
23038    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23039    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23040esac
23041
23042# Do not use `cd foo && pwd` to compute absolute paths, because
23043# the directories may not exist.
23044case `pwd` in
23045.) ac_abs_builddir="$ac_dir";;
23046*)
23047  case "$ac_dir" in
23048  .) ac_abs_builddir=`pwd`;;
23049  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23050  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23051  esac;;
23052esac
23053case $ac_abs_builddir in
23054.) ac_abs_top_builddir=${ac_top_builddir}.;;
23055*)
23056  case ${ac_top_builddir}. in
23057  .) ac_abs_top_builddir=$ac_abs_builddir;;
23058  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23059  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23060  esac;;
23061esac
23062case $ac_abs_builddir in
23063.) ac_abs_srcdir=$ac_srcdir;;
23064*)
23065  case $ac_srcdir in
23066  .) ac_abs_srcdir=$ac_abs_builddir;;
23067  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23068  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23069  esac;;
23070esac
23071case $ac_abs_builddir in
23072.) ac_abs_top_srcdir=$ac_top_srcdir;;
23073*)
23074  case $ac_top_srcdir in
23075  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23076  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23077  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23078  esac;;
23079esac
23080
23081
23082  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23083echo "$as_me: executing $ac_dest commands" >&6;}
23084  case $ac_dest in
23085    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23086  # Strip MF so we end up with the name of the file.
23087  mf=`echo "$mf" | sed -e 's/:.*$//'`
23088  # Check whether this is an Automake generated Makefile or not.
23089  # We used to match only the files named `Makefile.in', but
23090  # some people rename them; so instead we look at the file content.
23091  # Grep'ing the first line is not enough: some people post-process
23092  # each Makefile.in and add a new line on top of each file to say so.
23093  # So let's grep whole file.
23094  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23095    dirpart=`(dirname "$mf") 2>/dev/null ||
23096$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097	 X"$mf" : 'X\(//\)[^/]' \| \
23098	 X"$mf" : 'X\(//\)$' \| \
23099	 X"$mf" : 'X\(/\)' \| \
23100	 .     : '\(.\)' 2>/dev/null ||
23101echo X"$mf" |
23102    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23103  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23104  	  /^X\(\/\/\)$/{ s//\1/; q; }
23105  	  /^X\(\/\).*/{ s//\1/; q; }
23106  	  s/.*/./; q'`
23107  else
23108    continue
23109  fi
23110  # Extract the definition of DEPDIR, am__include, and am__quote
23111  # from the Makefile without running `make'.
23112  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23113  test -z "$DEPDIR" && continue
23114  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23115  test -z "am__include" && continue
23116  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23117  # When using ansi2knr, U may be empty or an underscore; expand it
23118  U=`sed -n 's/^U = //p' < "$mf"`
23119  # Find all dependency output files, they are included files with
23120  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23121  # simplest approach to changing $(DEPDIR) to its actual value in the
23122  # expansion.
23123  for file in `sed -n "
23124    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23125       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23126    # Make sure the directory exists.
23127    test -f "$dirpart/$file" && continue
23128    fdir=`(dirname "$file") 2>/dev/null ||
23129$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23130	 X"$file" : 'X\(//\)[^/]' \| \
23131	 X"$file" : 'X\(//\)$' \| \
23132	 X"$file" : 'X\(/\)' \| \
23133	 .     : '\(.\)' 2>/dev/null ||
23134echo X"$file" |
23135    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23136  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23137  	  /^X\(\/\/\)$/{ s//\1/; q; }
23138  	  /^X\(\/\).*/{ s//\1/; q; }
23139  	  s/.*/./; q'`
23140    { if $as_mkdir_p; then
23141    mkdir -p $dirpart/$fdir
23142  else
23143    as_dir=$dirpart/$fdir
23144    as_dirs=
23145    while test ! -d "$as_dir"; do
23146      as_dirs="$as_dir $as_dirs"
23147      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23148$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23149	 X"$as_dir" : 'X\(//\)[^/]' \| \
23150	 X"$as_dir" : 'X\(//\)$' \| \
23151	 X"$as_dir" : 'X\(/\)' \| \
23152	 .     : '\(.\)' 2>/dev/null ||
23153echo X"$as_dir" |
23154    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23155  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23156  	  /^X\(\/\/\)$/{ s//\1/; q; }
23157  	  /^X\(\/\).*/{ s//\1/; q; }
23158  	  s/.*/./; q'`
23159    done
23160    test ! -n "$as_dirs" || mkdir $as_dirs
23161  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23162echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23163   { (exit 1); exit 1; }; }; }
23164
23165    # echo "creating $dirpart/$file"
23166    echo '# dummy' > "$dirpart/$file"
23167  done
23168done
23169 ;;
23170    default ) chmod a+x audiere-config ;;
23171  esac
23172done
23173_ACEOF
23174
23175cat >>$CONFIG_STATUS <<\_ACEOF
23176
23177{ (exit 0); exit 0; }
23178_ACEOF
23179chmod +x $CONFIG_STATUS
23180ac_clean_files=$ac_clean_files_save
23181
23182
23183# configure is writing to config.log, and then calls config.status.
23184# config.status does its own redirection, appending to config.log.
23185# Unfortunately, on DOS this fails, as config.log is still kept open
23186# by configure, so config.status won't be able to write to it; its
23187# output is simply discarded.  So we exec the FD to /dev/null,
23188# effectively closing config.log, so it can be properly (re)opened and
23189# appended to by config.status.  When coming back to configure, we
23190# need to make the FD available again.
23191if test "$no_create" != yes; then
23192  ac_cs_success=:
23193  ac_config_status_args=
23194  test "$silent" = yes &&
23195    ac_config_status_args="$ac_config_status_args --quiet"
23196  exec 5>/dev/null
23197  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23198  exec 5>>config.log
23199  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23200  # would make configure fail if this is the last instruction.
23201  $ac_cs_success || { (exit 1); exit 1; }
23202fi
23203
23204