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="README"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT YACC XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR HAVE_XMMS_TRUE HAVE_XMMS_FALSE SDL_CONFIG SDL_CFLAGS SDL_LIBS HAVE_SDL_TRUE HAVE_SDL_FALSE MACFOLDER CCAS CCASFLAGS HAVE_MMX_TRUE HAVE_MMX_FALSE HAVE_PPC_TRUE HAVE_PPC_FALSE MACTARGET_TRUE MACTARGET_FALSE PTHREAD_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_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --enable-static[=PKGS]
1027                          build static libraries [default=no]
1028  --enable-shared[=PKGS]
1029                          build shared libraries [default=yes]
1030  --enable-fast-install[=PKGS]
1031                          optimize for fast installation [default=yes]
1032  --disable-dependency-tracking  speeds up one-time build
1033  --enable-dependency-tracking   do not reject slow dependency extractors
1034  --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --disable-sdltest       Do not try to compile and run a test SDL program
1036
1037Optional Packages:
1038  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041  --with-pic              try to use only PIC/non-PIC objects [default=use
1042                          both]
1043  --with-tags[=TAGS]
1044                          include additional configurations [automatic]
1045  --with-xmms-prefix=PFX  Prefix where XMMS is installed (optional)
1046  --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)
1047  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1048  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1049
1050Some influential environment variables:
1051  CC          C compiler command
1052  CFLAGS      C compiler flags
1053  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054              nonstandard directory <lib dir>
1055  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056              headers in a nonstandard directory <include dir>
1057  CPP         C preprocessor
1058  CXX         C++ compiler command
1059  CXXFLAGS    C++ compiler flags
1060  CXXCPP      C++ preprocessor
1061  F77         Fortran 77 compiler command
1062  FFLAGS      Fortran 77 compiler flags
1063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071  # If there are subdirs, report their specific --help.
1072  ac_popdir=`pwd`
1073  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074    test -d $ac_dir || continue
1075    ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079  # A "../" for each directory in $ac_dir_suffix.
1080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082  ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086  .)  # No --srcdir option.  We are building in place.
1087    ac_srcdir=.
1088    if test -z "$ac_top_builddir"; then
1089       ac_top_srcdir=.
1090    else
1091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092    fi ;;
1093  [\\/]* | ?:[\\/]* )  # Absolute path.
1094    ac_srcdir=$srcdir$ac_dir_suffix;
1095    ac_top_srcdir=$srcdir ;;
1096  *) # Relative path.
1097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106  case "$ac_dir" in
1107  .) ac_abs_builddir=`pwd`;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110  esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115  case ${ac_top_builddir}. in
1116  .) ac_abs_top_builddir=$ac_abs_builddir;;
1117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119  esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124  case $ac_srcdir in
1125  .) ac_abs_srcdir=$ac_abs_builddir;;
1126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128  esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133  case $ac_top_srcdir in
1134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137  esac;;
1138esac
1139
1140    cd $ac_dir
1141    # Check for guested configure; otherwise get Cygnus style configure.
1142    if test -f $ac_srcdir/configure.gnu; then
1143      echo
1144      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145    elif test -f $ac_srcdir/configure; then
1146      echo
1147      $SHELL $ac_srcdir/configure  --help=recursive
1148    elif test -f $ac_srcdir/configure.ac ||
1149	   test -f $ac_srcdir/configure.in; then
1150      echo
1151      $ac_configure --help
1152    else
1153      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154    fi
1155    cd $ac_popdir
1156  done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161  cat <<\_ACEOF
1162
1163Copyright (C) 2003 Free Software Foundation, Inc.
1164This configure script is free software; the Free Software Foundation
1165gives unlimited permission to copy, distribute and modify it.
1166_ACEOF
1167  exit 0
1168fi
1169exec 5>config.log
1170cat >&5 <<_ACEOF
1171This file contains any messages produced by compilers while
1172running configure, to aid debugging if configure makes a mistake.
1173
1174It was created by $as_me, which was
1175generated by GNU Autoconf 2.59.  Invocation command line was
1176
1177  $ $0 $@
1178
1179_ACEOF
1180{
1181cat <<_ASUNAME
1182## --------- ##
1183## Platform. ##
1184## --------- ##
1185
1186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1194
1195/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1196/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1199/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1200/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1201/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1202
1203_ASUNAME
1204
1205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206for as_dir in $PATH
1207do
1208  IFS=$as_save_IFS
1209  test -z "$as_dir" && as_dir=.
1210  echo "PATH: $as_dir"
1211done
1212
1213} >&5
1214
1215cat >&5 <<_ACEOF
1216
1217
1218## ----------- ##
1219## Core tests. ##
1220## ----------- ##
1221
1222_ACEOF
1223
1224
1225# Keep a trace of the command line.
1226# Strip out --no-create and --no-recursion so they do not pile up.
1227# Strip out --silent because we don't want to record it for future runs.
1228# Also quote any args containing shell meta-characters.
1229# Make two passes to allow for proper duplicate-argument suppression.
1230ac_configure_args=
1231ac_configure_args0=
1232ac_configure_args1=
1233ac_sep=
1234ac_must_keep_next=false
1235for ac_pass in 1 2
1236do
1237  for ac_arg
1238  do
1239    case $ac_arg in
1240    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242    | -silent | --silent | --silen | --sile | --sil)
1243      continue ;;
1244    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246    esac
1247    case $ac_pass in
1248    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249    2)
1250      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251      if test $ac_must_keep_next = true; then
1252	ac_must_keep_next=false # Got value, back to normal.
1253      else
1254	case $ac_arg in
1255	  *=* | --config-cache | -C | -disable-* | --disable-* \
1256	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258	  | -with-* | --with-* | -without-* | --without-* | --x)
1259	    case "$ac_configure_args0 " in
1260	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261	    esac
1262	    ;;
1263	  -* ) ac_must_keep_next=true ;;
1264	esac
1265      fi
1266      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267      # Get rid of the leading space.
1268      ac_sep=" "
1269      ;;
1270    esac
1271  done
1272done
1273$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276# When interrupted or exit'd, cleanup temporary files, and complete
1277# config.log.  We remove comments because anyway the quotes in there
1278# would cause problems or look ugly.
1279# WARNING: Be sure not to use single quotes in there, as some shells,
1280# such as our DU 5.0 friend, will then `close' the trap.
1281trap 'exit_status=$?
1282  # Save into config.log some information that might help in debugging.
1283  {
1284    echo
1285
1286    cat <<\_ASBOX
1287## ---------------- ##
1288## Cache variables. ##
1289## ---------------- ##
1290_ASBOX
1291    echo
1292    # The following way of writing the cache mishandles newlines in values,
1293{
1294  (set) 2>&1 |
1295    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296    *ac_space=\ *)
1297      sed -n \
1298	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300      ;;
1301    *)
1302      sed -n \
1303	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1304      ;;
1305    esac;
1306}
1307    echo
1308
1309    cat <<\_ASBOX
1310## ----------------- ##
1311## Output variables. ##
1312## ----------------- ##
1313_ASBOX
1314    echo
1315    for ac_var in $ac_subst_vars
1316    do
1317      eval ac_val=$`echo $ac_var`
1318      echo "$ac_var='"'"'$ac_val'"'"'"
1319    done | sort
1320    echo
1321
1322    if test -n "$ac_subst_files"; then
1323      cat <<\_ASBOX
1324## ------------- ##
1325## Output files. ##
1326## ------------- ##
1327_ASBOX
1328      echo
1329      for ac_var in $ac_subst_files
1330      do
1331	eval ac_val=$`echo $ac_var`
1332	echo "$ac_var='"'"'$ac_val'"'"'"
1333      done | sort
1334      echo
1335    fi
1336
1337    if test -s confdefs.h; then
1338      cat <<\_ASBOX
1339## ----------- ##
1340## confdefs.h. ##
1341## ----------- ##
1342_ASBOX
1343      echo
1344      sed "/^$/d" confdefs.h | sort
1345      echo
1346    fi
1347    test "$ac_signal" != 0 &&
1348      echo "$as_me: caught signal $ac_signal"
1349    echo "$as_me: exit $exit_status"
1350  } >&5
1351  rm -f core *.core &&
1352  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353    exit $exit_status
1354     ' 0
1355for ac_signal in 1 2 13 15; do
1356  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357done
1358ac_signal=0
1359
1360# confdefs.h avoids OS command line length limits that DEFS can exceed.
1361rm -rf conftest* confdefs.h
1362# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363echo >confdefs.h
1364
1365# Predefined preprocessor variables.
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_NAME "$PACKAGE_NAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_VERSION "$PACKAGE_VERSION"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_STRING "$PACKAGE_STRING"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389_ACEOF
1390
1391
1392# Let the site file select an alternate cache file if it wants to.
1393# Prefer explicitly selected file to automatically selected ones.
1394if test -z "$CONFIG_SITE"; then
1395  if test "x$prefix" != xNONE; then
1396    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397  else
1398    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399  fi
1400fi
1401for ac_site_file in $CONFIG_SITE; do
1402  if test -r "$ac_site_file"; then
1403    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404echo "$as_me: loading site script $ac_site_file" >&6;}
1405    sed 's/^/| /' "$ac_site_file" >&5
1406    . "$ac_site_file"
1407  fi
1408done
1409
1410if test -r "$cache_file"; then
1411  # Some versions of bash will fail to source /dev/null (special
1412  # files actually), so we avoid doing that.
1413  if test -f "$cache_file"; then
1414    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415echo "$as_me: loading cache $cache_file" >&6;}
1416    case $cache_file in
1417      [\\/]* | ?:[\\/]* ) . $cache_file;;
1418      *)                      . ./$cache_file;;
1419    esac
1420  fi
1421else
1422  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423echo "$as_me: creating cache $cache_file" >&6;}
1424  >$cache_file
1425fi
1426
1427# Check that the precious variables saved in the cache have kept the same
1428# value.
1429ac_cache_corrupted=false
1430for ac_var in `(set) 2>&1 |
1431	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433  eval ac_new_set=\$ac_env_${ac_var}_set
1434  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435  eval ac_new_val="\$ac_env_${ac_var}_value"
1436  case $ac_old_set,$ac_new_set in
1437    set,)
1438      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440      ac_cache_corrupted=: ;;
1441    ,set)
1442      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444      ac_cache_corrupted=: ;;
1445    ,);;
1446    *)
1447      if test "x$ac_old_val" != "x$ac_new_val"; then
1448	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1451echo "$as_me:   former value:  $ac_old_val" >&2;}
1452	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1453echo "$as_me:   current value: $ac_new_val" >&2;}
1454	ac_cache_corrupted=:
1455      fi;;
1456  esac
1457  # Pass precious variables to config.status.
1458  if test "$ac_new_set" = set; then
1459    case $ac_new_val in
1460    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462    *) ac_arg=$ac_var=$ac_new_val ;;
1463    esac
1464    case " $ac_configure_args " in
1465      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1466      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467    esac
1468  fi
1469done
1470if $ac_cache_corrupted; then
1471  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475   { (exit 1); exit 1; }; }
1476fi
1477
1478ac_ext=c
1479ac_cpp='$CPP $CPPFLAGS'
1480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503# Check whether --enable-static or --disable-static was given.
1504if test "${enable_static+set}" = set; then
1505  enableval="$enable_static"
1506  p=${PACKAGE-default}
1507    case $enableval in
1508    yes) enable_static=yes ;;
1509    no) enable_static=no ;;
1510    *)
1511     enable_static=no
1512      # Look at the argument we got.  We use all the common list separators.
1513      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1514      for pkg in $enableval; do
1515	IFS="$lt_save_ifs"
1516	if test "X$pkg" = "X$p"; then
1517	  enable_static=yes
1518	fi
1519      done
1520      IFS="$lt_save_ifs"
1521      ;;
1522    esac
1523else
1524  enable_static=no
1525fi;
1526
1527
1528am__api_version="1.9"
1529ac_aux_dir=
1530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531  if test -f $ac_dir/install-sh; then
1532    ac_aux_dir=$ac_dir
1533    ac_install_sh="$ac_aux_dir/install-sh -c"
1534    break
1535  elif test -f $ac_dir/install.sh; then
1536    ac_aux_dir=$ac_dir
1537    ac_install_sh="$ac_aux_dir/install.sh -c"
1538    break
1539  elif test -f $ac_dir/shtool; then
1540    ac_aux_dir=$ac_dir
1541    ac_install_sh="$ac_aux_dir/shtool install -c"
1542    break
1543  fi
1544done
1545if test -z "$ac_aux_dir"; then
1546  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548   { (exit 1); exit 1; }; }
1549fi
1550ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554# Find a good install program.  We prefer a C program (faster),
1555# so one script is as good as another.  But avoid the broken or
1556# incompatible versions:
1557# SysV /etc/install, /usr/sbin/install
1558# SunOS /usr/etc/install
1559# IRIX /sbin/install
1560# AIX /bin/install
1561# AmigaOS /C/install, which installs bootblocks on floppy discs
1562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1565# OS/2's system install, which has a completely different semantic
1566# ./install, which can be erroneously created by make from ./install.sh.
1567echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1569if test -z "$INSTALL"; then
1570if test "${ac_cv_path_install+set}" = set; then
1571  echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574for as_dir in $PATH
1575do
1576  IFS=$as_save_IFS
1577  test -z "$as_dir" && as_dir=.
1578  # Account for people who put trailing slashes in PATH elements.
1579case $as_dir/ in
1580  ./ | .// | /cC/* | \
1581  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1582  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1583  /usr/ucb/* ) ;;
1584  *)
1585    # OSF1 and SCO ODT 3.0 have their own names for install.
1586    # Don't use installbsd from OSF since it installs stuff as root
1587    # by default.
1588    for ac_prog in ginstall scoinst install; do
1589      for ac_exec_ext in '' $ac_executable_extensions; do
1590	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1591	  if test $ac_prog = install &&
1592	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1593	    # AIX install.  It has an incompatible calling convention.
1594	    :
1595	  elif test $ac_prog = install &&
1596	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597	    # program-specific install script used by HP pwplus--don't use.
1598	    :
1599	  else
1600	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1601	    break 3
1602	  fi
1603	fi
1604      done
1605    done
1606    ;;
1607esac
1608done
1609
1610
1611fi
1612  if test "${ac_cv_path_install+set}" = set; then
1613    INSTALL=$ac_cv_path_install
1614  else
1615    # As a last resort, use the slow shell script.  We don't cache a
1616    # path for INSTALL within a source directory, because that will
1617    # break other packages using the cache if that directory is
1618    # removed, or if the path is relative.
1619    INSTALL=$ac_install_sh
1620  fi
1621fi
1622echo "$as_me:$LINENO: result: $INSTALL" >&5
1623echo "${ECHO_T}$INSTALL" >&6
1624
1625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626# It thinks the first close brace ends the variable substitution.
1627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628
1629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1630
1631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632
1633echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1634echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1635# Just in case
1636sleep 1
1637echo timestamp > conftest.file
1638# Do `set' in a subshell so we don't clobber the current shell's
1639# arguments.  Must try -L first in case configure is actually a
1640# symlink; some systems play weird games with the mod time of symlinks
1641# (eg FreeBSD returns the mod time of the symlink's containing
1642# directory).
1643if (
1644   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1645   if test "$*" = "X"; then
1646      # -L didn't work.
1647      set X `ls -t $srcdir/configure conftest.file`
1648   fi
1649   rm -f conftest.file
1650   if test "$*" != "X $srcdir/configure conftest.file" \
1651      && test "$*" != "X conftest.file $srcdir/configure"; then
1652
1653      # If neither matched, then we have a broken ls.  This can happen
1654      # if, for instance, CONFIG_SHELL is bash and it inherits a
1655      # broken ls alias from the environment.  This has actually
1656      # happened.  Such a system could not be considered "sane".
1657      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1658alias in your environment" >&5
1659echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1660alias in your environment" >&2;}
1661   { (exit 1); exit 1; }; }
1662   fi
1663
1664   test "$2" = conftest.file
1665   )
1666then
1667   # Ok.
1668   :
1669else
1670   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1671Check your system clock" >&5
1672echo "$as_me: error: newly created file is older than distributed files!
1673Check your system clock" >&2;}
1674   { (exit 1); exit 1; }; }
1675fi
1676echo "$as_me:$LINENO: result: yes" >&5
1677echo "${ECHO_T}yes" >&6
1678test "$program_prefix" != NONE &&
1679  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1680# Use a double $ so make ignores it.
1681test "$program_suffix" != NONE &&
1682  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683# Double any \ or $.  echo might interpret backslashes.
1684# By default was `s,x,x', remove it if useless.
1685cat <<\_ACEOF >conftest.sed
1686s/[\\$]/&&/g;s/;s,x,x,$//
1687_ACEOF
1688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1689rm conftest.sed
1690
1691# expand $ac_aux_dir to an absolute path
1692am_aux_dir=`cd $ac_aux_dir && pwd`
1693
1694test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1695# Use eval to expand $SHELL
1696if eval "$MISSING --run true"; then
1697  am_missing_run="$MISSING --run "
1698else
1699  am_missing_run=
1700  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1701echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1702fi
1703
1704if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1705  # We used to keeping the `.' as first argument, in order to
1706  # allow $(mkdir_p) to be used without argument.  As in
1707  #   $(mkdir_p) $(somedir)
1708  # where $(somedir) is conditionally defined.  However this is wrong
1709  # for two reasons:
1710  #  1. if the package is installed by a user who cannot write `.'
1711  #     make install will fail,
1712  #  2. the above comment should most certainly read
1713  #     $(mkdir_p) $(DESTDIR)$(somedir)
1714  #     so it does not work when $(somedir) is undefined and
1715  #     $(DESTDIR) is not.
1716  #  To support the latter case, we have to write
1717  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1718  #  so the `.' trick is pointless.
1719  mkdir_p='mkdir -p --'
1720else
1721  # On NextStep and OpenStep, the `mkdir' command does not
1722  # recognize any option.  It will interpret all options as
1723  # directories to create, and then abort because `.' already
1724  # exists.
1725  for d in ./-p ./--version;
1726  do
1727    test -d $d && rmdir $d
1728  done
1729  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1730  if test -f "$ac_aux_dir/mkinstalldirs"; then
1731    mkdir_p='$(mkinstalldirs)'
1732  else
1733    mkdir_p='$(install_sh) -d'
1734  fi
1735fi
1736
1737for ac_prog in gawk mawk nawk awk
1738do
1739  # Extract the first word of "$ac_prog", so it can be a program name with args.
1740set dummy $ac_prog; ac_word=$2
1741echo "$as_me:$LINENO: checking for $ac_word" >&5
1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_AWK+set}" = set; then
1744  echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746  if test -n "$AWK"; then
1747  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1748else
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752  IFS=$as_save_IFS
1753  test -z "$as_dir" && as_dir=.
1754  for ac_exec_ext in '' $ac_executable_extensions; do
1755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756    ac_cv_prog_AWK="$ac_prog"
1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758    break 2
1759  fi
1760done
1761done
1762
1763fi
1764fi
1765AWK=$ac_cv_prog_AWK
1766if test -n "$AWK"; then
1767  echo "$as_me:$LINENO: result: $AWK" >&5
1768echo "${ECHO_T}$AWK" >&6
1769else
1770  echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
1772fi
1773
1774  test -n "$AWK" && break
1775done
1776
1777echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1778echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1779set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1780if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  cat >conftest.make <<\_ACEOF
1784all:
1785	@echo 'ac_maketemp="$(MAKE)"'
1786_ACEOF
1787# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1788eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1789if test -n "$ac_maketemp"; then
1790  eval ac_cv_prog_make_${ac_make}_set=yes
1791else
1792  eval ac_cv_prog_make_${ac_make}_set=no
1793fi
1794rm -f conftest.make
1795fi
1796if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1797  echo "$as_me:$LINENO: result: yes" >&5
1798echo "${ECHO_T}yes" >&6
1799  SET_MAKE=
1800else
1801  echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803  SET_MAKE="MAKE=${MAKE-make}"
1804fi
1805
1806rm -rf .tst 2>/dev/null
1807mkdir .tst 2>/dev/null
1808if test -d .tst; then
1809  am__leading_dot=.
1810else
1811  am__leading_dot=_
1812fi
1813rmdir .tst 2>/dev/null
1814
1815# test to see if srcdir already configured
1816if test "`cd $srcdir && pwd`" != "`pwd`" &&
1817   test -f $srcdir/config.status; then
1818  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1819echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1820   { (exit 1); exit 1; }; }
1821fi
1822
1823# test whether we have cygpath
1824if test -z "$CYGPATH_W"; then
1825  if (cygpath --version) >/dev/null 2>/dev/null; then
1826    CYGPATH_W='cygpath -w'
1827  else
1828    CYGPATH_W=echo
1829  fi
1830fi
1831
1832
1833# Define the identity of the package.
1834 PACKAGE=SDL_Goom
1835 VERSION=2k4
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE "$PACKAGE"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define VERSION "$VERSION"
1845_ACEOF
1846
1847# Some tools Automake needs.
1848
1849ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1850
1851
1852AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1853
1854
1855AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1856
1857
1858AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1859
1860
1861MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1862
1863install_sh=${install_sh-"$am_aux_dir/install-sh"}
1864
1865# Installed binaries are usually stripped using `strip' when the user
1866# run `make install-strip'.  However `strip' might not be the right
1867# tool to use in cross-compilation environments, therefore Automake
1868# will honor the `STRIP' environment variable to overrule this program.
1869if test "$cross_compiling" != no; then
1870  if test -n "$ac_tool_prefix"; then
1871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1872set dummy ${ac_tool_prefix}strip; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_STRIP+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$STRIP"; then
1879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897STRIP=$ac_cv_prog_STRIP
1898if test -n "$STRIP"; then
1899  echo "$as_me:$LINENO: result: $STRIP" >&5
1900echo "${ECHO_T}$STRIP" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906fi
1907if test -z "$ac_cv_prog_STRIP"; then
1908  ac_ct_STRIP=$STRIP
1909  # Extract the first word of "strip", so it can be a program name with args.
1910set dummy strip; ac_word=$2
1911echo "$as_me:$LINENO: checking for $ac_word" >&5
1912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1914  echo $ECHO_N "(cached) $ECHO_C" >&6
1915else
1916  if test -n "$ac_ct_STRIP"; then
1917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1918else
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922  IFS=$as_save_IFS
1923  test -z "$as_dir" && as_dir=.
1924  for ac_exec_ext in '' $ac_executable_extensions; do
1925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926    ac_cv_prog_ac_ct_STRIP="strip"
1927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928    break 2
1929  fi
1930done
1931done
1932
1933  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1934fi
1935fi
1936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1937if test -n "$ac_ct_STRIP"; then
1938  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1939echo "${ECHO_T}$ac_ct_STRIP" >&6
1940else
1941  echo "$as_me:$LINENO: result: no" >&5
1942echo "${ECHO_T}no" >&6
1943fi
1944
1945  STRIP=$ac_ct_STRIP
1946else
1947  STRIP="$ac_cv_prog_STRIP"
1948fi
1949
1950fi
1951INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1952
1953# We need awk for the "check" target.  The system "awk" is bad on
1954# some platforms.
1955# Always define AMTAR for backward compatibility.
1956
1957AMTAR=${AMTAR-"${am_missing_run}tar"}
1958
1959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1960
1961
1962
1963
1964
1965
1966ACLOCAL="$ACLOCAL -I m4"
1967
1968# Check whether --enable-shared or --disable-shared was given.
1969if test "${enable_shared+set}" = set; then
1970  enableval="$enable_shared"
1971  p=${PACKAGE-default}
1972    case $enableval in
1973    yes) enable_shared=yes ;;
1974    no) enable_shared=no ;;
1975    *)
1976      enable_shared=no
1977      # Look at the argument we got.  We use all the common list separators.
1978      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1979      for pkg in $enableval; do
1980	IFS="$lt_save_ifs"
1981	if test "X$pkg" = "X$p"; then
1982	  enable_shared=yes
1983	fi
1984      done
1985      IFS="$lt_save_ifs"
1986      ;;
1987    esac
1988else
1989  enable_shared=yes
1990fi;
1991
1992# Check whether --enable-fast-install or --disable-fast-install was given.
1993if test "${enable_fast_install+set}" = set; then
1994  enableval="$enable_fast_install"
1995  p=${PACKAGE-default}
1996    case $enableval in
1997    yes) enable_fast_install=yes ;;
1998    no) enable_fast_install=no ;;
1999    *)
2000      enable_fast_install=no
2001      # Look at the argument we got.  We use all the common list separators.
2002      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2003      for pkg in $enableval; do
2004	IFS="$lt_save_ifs"
2005	if test "X$pkg" = "X$p"; then
2006	  enable_fast_install=yes
2007	fi
2008      done
2009      IFS="$lt_save_ifs"
2010      ;;
2011    esac
2012else
2013  enable_fast_install=yes
2014fi;
2015
2016# Make sure we can run config.sub.
2017$ac_config_sub sun4 >/dev/null 2>&1 ||
2018  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2019echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2020   { (exit 1); exit 1; }; }
2021
2022echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6
2024if test "${ac_cv_build+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  ac_cv_build_alias=$build_alias
2028test -z "$ac_cv_build_alias" &&
2029  ac_cv_build_alias=`$ac_config_guess`
2030test -z "$ac_cv_build_alias" &&
2031  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033   { (exit 1); exit 1; }; }
2034ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2035  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2036echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2037   { (exit 1); exit 1; }; }
2038
2039fi
2040echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6
2042build=$ac_cv_build
2043build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2044build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2045build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2046
2047
2048echo "$as_me:$LINENO: checking host system type" >&5
2049echo $ECHO_N "checking host system type... $ECHO_C" >&6
2050if test "${ac_cv_host+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  ac_cv_host_alias=$host_alias
2054test -z "$ac_cv_host_alias" &&
2055  ac_cv_host_alias=$ac_cv_build_alias
2056ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2057  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2058echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2059   { (exit 1); exit 1; }; }
2060
2061fi
2062echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2063echo "${ECHO_T}$ac_cv_host" >&6
2064host=$ac_cv_host
2065host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2066host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2067host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2068
2069
2070DEPDIR="${am__leading_dot}deps"
2071
2072          ac_config_commands="$ac_config_commands depfiles"
2073
2074
2075am_make=${MAKE-make}
2076cat > confinc << 'END'
2077am__doit:
2078	@echo done
2079.PHONY: am__doit
2080END
2081# If we don't find an include directive, just comment out the code.
2082echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2083echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2084am__include="#"
2085am__quote=
2086_am_result=none
2087# First try GNU make style include.
2088echo "include confinc" > confmf
2089# We grep out `Entering directory' and `Leaving directory'
2090# messages which can occur if `w' ends up in MAKEFLAGS.
2091# In particular we don't look at `^make:' because GNU make might
2092# be invoked under some other name (usually "gmake"), in which
2093# case it prints its new name instead of `make'.
2094if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2095   am__include=include
2096   am__quote=
2097   _am_result=GNU
2098fi
2099# Now try BSD make style include.
2100if test "$am__include" = "#"; then
2101   echo '.include "confinc"' > confmf
2102   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2103      am__include=.include
2104      am__quote="\""
2105      _am_result=BSD
2106   fi
2107fi
2108
2109
2110echo "$as_me:$LINENO: result: $_am_result" >&5
2111echo "${ECHO_T}$_am_result" >&6
2112rm -f confinc confmf
2113
2114# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2115if test "${enable_dependency_tracking+set}" = set; then
2116  enableval="$enable_dependency_tracking"
2117
2118fi;
2119if test "x$enable_dependency_tracking" != xno; then
2120  am_depcomp="$ac_aux_dir/depcomp"
2121  AMDEPBACKSLASH='\'
2122fi
2123
2124
2125if test "x$enable_dependency_tracking" != xno; then
2126  AMDEP_TRUE=
2127  AMDEP_FALSE='#'
2128else
2129  AMDEP_TRUE='#'
2130  AMDEP_FALSE=
2131fi
2132
2133
2134
2135ac_ext=c
2136ac_cpp='$CPP $CPPFLAGS'
2137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140if test -n "$ac_tool_prefix"; then
2141  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145if test "${ac_cv_prog_CC+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  if test -n "$CC"; then
2149  ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  for ac_exec_ext in '' $ac_executable_extensions; do
2157  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160    break 2
2161  fi
2162done
2163done
2164
2165fi
2166fi
2167CC=$ac_cv_prog_CC
2168if test -n "$CC"; then
2169  echo "$as_me:$LINENO: result: $CC" >&5
2170echo "${ECHO_T}$CC" >&6
2171else
2172  echo "$as_me:$LINENO: result: no" >&5
2173echo "${ECHO_T}no" >&6
2174fi
2175
2176fi
2177if test -z "$ac_cv_prog_CC"; then
2178  ac_ct_CC=$CC
2179  # Extract the first word of "gcc", so it can be a program name with args.
2180set dummy gcc; ac_word=$2
2181echo "$as_me:$LINENO: checking for $ac_word" >&5
2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184  echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186  if test -n "$ac_ct_CC"; then
2187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188else
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192  IFS=$as_save_IFS
2193  test -z "$as_dir" && as_dir=.
2194  for ac_exec_ext in '' $ac_executable_extensions; do
2195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196    ac_cv_prog_ac_ct_CC="gcc"
2197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198    break 2
2199  fi
2200done
2201done
2202
2203fi
2204fi
2205ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206if test -n "$ac_ct_CC"; then
2207  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208echo "${ECHO_T}$ac_ct_CC" >&6
2209else
2210  echo "$as_me:$LINENO: result: no" >&5
2211echo "${ECHO_T}no" >&6
2212fi
2213
2214  CC=$ac_ct_CC
2215else
2216  CC="$ac_cv_prog_CC"
2217fi
2218
2219if test -z "$CC"; then
2220  if test -n "$ac_tool_prefix"; then
2221  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222set dummy ${ac_tool_prefix}cc; ac_word=$2
2223echo "$as_me:$LINENO: checking for $ac_word" >&5
2224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225if test "${ac_cv_prog_CC+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test -n "$CC"; then
2229  ac_cv_prog_CC="$CC" # Let the user override the test.
2230else
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236  for ac_exec_ext in '' $ac_executable_extensions; do
2237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238    ac_cv_prog_CC="${ac_tool_prefix}cc"
2239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240    break 2
2241  fi
2242done
2243done
2244
2245fi
2246fi
2247CC=$ac_cv_prog_CC
2248if test -n "$CC"; then
2249  echo "$as_me:$LINENO: result: $CC" >&5
2250echo "${ECHO_T}$CC" >&6
2251else
2252  echo "$as_me:$LINENO: result: no" >&5
2253echo "${ECHO_T}no" >&6
2254fi
2255
2256fi
2257if test -z "$ac_cv_prog_CC"; then
2258  ac_ct_CC=$CC
2259  # Extract the first word of "cc", so it can be a program name with args.
2260set dummy cc; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  if test -n "$ac_ct_CC"; then
2267  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274  for ac_exec_ext in '' $ac_executable_extensions; do
2275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276    ac_cv_prog_ac_ct_CC="cc"
2277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278    break 2
2279  fi
2280done
2281done
2282
2283fi
2284fi
2285ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286if test -n "$ac_ct_CC"; then
2287  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288echo "${ECHO_T}$ac_ct_CC" >&6
2289else
2290  echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
2292fi
2293
2294  CC=$ac_ct_CC
2295else
2296  CC="$ac_cv_prog_CC"
2297fi
2298
2299fi
2300if test -z "$CC"; then
2301  # Extract the first word of "cc", so it can be a program name with args.
2302set dummy cc; ac_word=$2
2303echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305if test "${ac_cv_prog_CC+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  if test -n "$CC"; then
2309  ac_cv_prog_CC="$CC" # Let the user override the test.
2310else
2311  ac_prog_rejected=no
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317  for ac_exec_ext in '' $ac_executable_extensions; do
2318  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320       ac_prog_rejected=yes
2321       continue
2322     fi
2323    ac_cv_prog_CC="cc"
2324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325    break 2
2326  fi
2327done
2328done
2329
2330if test $ac_prog_rejected = yes; then
2331  # We found a bogon in the path, so make sure we never use it.
2332  set dummy $ac_cv_prog_CC
2333  shift
2334  if test $# != 0; then
2335    # We chose a different compiler from the bogus one.
2336    # However, it has the same basename, so the bogon will be chosen
2337    # first if we set CC to just the basename; use the full file name.
2338    shift
2339    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2340  fi
2341fi
2342fi
2343fi
2344CC=$ac_cv_prog_CC
2345if test -n "$CC"; then
2346  echo "$as_me:$LINENO: result: $CC" >&5
2347echo "${ECHO_T}$CC" >&6
2348else
2349  echo "$as_me:$LINENO: result: no" >&5
2350echo "${ECHO_T}no" >&6
2351fi
2352
2353fi
2354if test -z "$CC"; then
2355  if test -n "$ac_tool_prefix"; then
2356  for ac_prog in cl
2357  do
2358    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362if test "${ac_cv_prog_CC+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  if test -n "$CC"; then
2366  ac_cv_prog_CC="$CC" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371  IFS=$as_save_IFS
2372  test -z "$as_dir" && as_dir=.
2373  for ac_exec_ext in '' $ac_executable_extensions; do
2374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377    break 2
2378  fi
2379done
2380done
2381
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
2386  echo "$as_me:$LINENO: result: $CC" >&5
2387echo "${ECHO_T}$CC" >&6
2388else
2389  echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6
2391fi
2392
2393    test -n "$CC" && break
2394  done
2395fi
2396if test -z "$CC"; then
2397  ac_ct_CC=$CC
2398  for ac_prog in cl
2399do
2400  # Extract the first word of "$ac_prog", so it can be a program name with args.
2401set dummy $ac_prog; ac_word=$2
2402echo "$as_me:$LINENO: checking for $ac_word" >&5
2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405  echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407  if test -n "$ac_ct_CC"; then
2408  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413  IFS=$as_save_IFS
2414  test -z "$as_dir" && as_dir=.
2415  for ac_exec_ext in '' $ac_executable_extensions; do
2416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417    ac_cv_prog_ac_ct_CC="$ac_prog"
2418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419    break 2
2420  fi
2421done
2422done
2423
2424fi
2425fi
2426ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427if test -n "$ac_ct_CC"; then
2428  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429echo "${ECHO_T}$ac_ct_CC" >&6
2430else
2431  echo "$as_me:$LINENO: result: no" >&5
2432echo "${ECHO_T}no" >&6
2433fi
2434
2435  test -n "$ac_ct_CC" && break
2436done
2437
2438  CC=$ac_ct_CC
2439fi
2440
2441fi
2442
2443
2444test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445See \`config.log' for more details." >&5
2446echo "$as_me: error: no acceptable C compiler found in \$PATH
2447See \`config.log' for more details." >&2;}
2448   { (exit 1); exit 1; }; }
2449
2450# Provide some information about the compiler.
2451echo "$as_me:$LINENO:" \
2452     "checking for C compiler version" >&5
2453ac_compiler=`set X $ac_compile; echo $2`
2454{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2455  (eval $ac_compiler --version </dev/null >&5) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }
2459{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2460  (eval $ac_compiler -v </dev/null >&5) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }
2464{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2465  (eval $ac_compiler -V </dev/null >&5) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }
2469
2470cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485ac_clean_files_save=$ac_clean_files
2486ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487# Try to create an executable without -o first, disregard a.out.
2488# It will help us diagnose broken compilers, and finding out an intuition
2489# of exeext.
2490echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494  (eval $ac_link_default) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; then
2498  # Find the output, starting from the most likely.  This scheme is
2499# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500# resort.
2501
2502# Be careful to initialize this variable, since it used to be cached.
2503# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504ac_cv_exeext=
2505# b.out is created by i960 compilers.
2506for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507do
2508  test -f "$ac_file" || continue
2509  case $ac_file in
2510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511	;;
2512    conftest.$ac_ext )
2513	# This is the source file.
2514	;;
2515    [ab].out )
2516	# We found the default executable, but exeext='' is most
2517	# certainly right.
2518	break;;
2519    *.* )
2520	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521	# FIXME: I believe we export ac_cv_exeext for Libtool,
2522	# but it would be cool to find out if it's true.  Does anybody
2523	# maintain Libtool? --akim.
2524	export ac_cv_exeext
2525	break;;
2526    * )
2527	break;;
2528  esac
2529done
2530else
2531  echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2535See \`config.log' for more details." >&5
2536echo "$as_me: error: C compiler cannot create executables
2537See \`config.log' for more details." >&2;}
2538   { (exit 77); exit 77; }; }
2539fi
2540
2541ac_exeext=$ac_cv_exeext
2542echo "$as_me:$LINENO: result: $ac_file" >&5
2543echo "${ECHO_T}$ac_file" >&6
2544
2545# Check the compiler produces executables we can run.  If not, either
2546# the compiler is broken, or we cross compile.
2547echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2548echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2549# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2550# If not cross compiling, check that we can run a simple program.
2551if test "$cross_compiling" != yes; then
2552  if { ac_try='./$ac_file'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558    cross_compiling=no
2559  else
2560    if test "$cross_compiling" = maybe; then
2561	cross_compiling=yes
2562    else
2563	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564If you meant to cross compile, use \`--host'.
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: cannot run C compiled programs.
2567If you meant to cross compile, use \`--host'.
2568See \`config.log' for more details." >&2;}
2569   { (exit 1); exit 1; }; }
2570    fi
2571  fi
2572fi
2573echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
2575
2576rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577ac_clean_files=$ac_clean_files_save
2578# Check the compiler produces executables we can run.  If not, either
2579# the compiler is broken, or we cross compile.
2580echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2582echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583echo "${ECHO_T}$cross_compiling" >&6
2584
2585echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588  (eval $ac_link) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; then
2592  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2594# work properly (i.e., refer to `conftest.exe'), while it won't with
2595# `rm'.
2596for ac_file in conftest.exe conftest conftest.*; do
2597  test -f "$ac_file" || continue
2598  case $ac_file in
2599    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2600    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601	  export ac_cv_exeext
2602	  break;;
2603    * ) break;;
2604  esac
2605done
2606else
2607  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608See \`config.log' for more details." >&5
2609echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610See \`config.log' for more details." >&2;}
2611   { (exit 1); exit 1; }; }
2612fi
2613
2614rm -f conftest$ac_cv_exeext
2615echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616echo "${ECHO_T}$ac_cv_exeext" >&6
2617
2618rm -f conftest.$ac_ext
2619EXEEXT=$ac_cv_exeext
2620ac_exeext=$EXEEXT
2621echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2623if test "${ac_cv_objext+set}" = set; then
2624  echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626  cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632
2633int
2634main ()
2635{
2636
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.o conftest.obj
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; then
2647  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2648  case $ac_file in
2649    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2650    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2651       break;;
2652  esac
2653done
2654else
2655  echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
2658{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661See \`config.log' for more details." >&2;}
2662   { (exit 1); exit 1; }; }
2663fi
2664
2665rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666fi
2667echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668echo "${ECHO_T}$ac_cv_objext" >&6
2669OBJEXT=$ac_cv_objext
2670ac_objext=$OBJEXT
2671echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2673if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674  echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682
2683int
2684main ()
2685{
2686#ifndef __GNUC__
2687       choke me
2688#endif
2689
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696  (eval $ac_compile) 2>conftest.er1
2697  ac_status=$?
2698  grep -v '^ *+' conftest.er1 >conftest.err
2699  rm -f conftest.er1
2700  cat conftest.err >&5
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); } &&
2703	 { ac_try='test -z "$ac_c_werror_flag"
2704			 || test ! -s conftest.err'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; } &&
2710	 { ac_try='test -s conftest.$ac_objext'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; }; then
2716  ac_compiler_gnu=yes
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721ac_compiler_gnu=no
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725
2726fi
2727echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729GCC=`test $ac_compiler_gnu = yes && echo yes`
2730ac_test_CFLAGS=${CFLAGS+set}
2731ac_save_CFLAGS=$CFLAGS
2732CFLAGS="-g"
2733echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735if test "${ac_cv_prog_cc_g+set}" = set; then
2736  echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738  cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h.  */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h.  */
2744
2745int
2746main ()
2747{
2748
2749  ;
2750  return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755  (eval $ac_compile) 2>conftest.er1
2756  ac_status=$?
2757  grep -v '^ *+' conftest.er1 >conftest.err
2758  rm -f conftest.er1
2759  cat conftest.err >&5
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); } &&
2762	 { ac_try='test -z "$ac_c_werror_flag"
2763			 || test ! -s conftest.err'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; } &&
2769	 { ac_try='test -s conftest.$ac_objext'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; }; then
2775  ac_cv_prog_cc_g=yes
2776else
2777  echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780ac_cv_prog_cc_g=no
2781fi
2782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783fi
2784echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2785echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2786if test "$ac_test_CFLAGS" = set; then
2787  CFLAGS=$ac_save_CFLAGS
2788elif test $ac_cv_prog_cc_g = yes; then
2789  if test "$GCC" = yes; then
2790    CFLAGS="-g -O2"
2791  else
2792    CFLAGS="-g"
2793  fi
2794else
2795  if test "$GCC" = yes; then
2796    CFLAGS="-O2"
2797  else
2798    CFLAGS=
2799  fi
2800fi
2801echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2802echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2803if test "${ac_cv_prog_cc_stdc+set}" = set; then
2804  echo $ECHO_N "(cached) $ECHO_C" >&6
2805else
2806  ac_cv_prog_cc_stdc=no
2807ac_save_CC=$CC
2808cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h.  */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h.  */
2814#include <stdarg.h>
2815#include <stdio.h>
2816#include <sys/types.h>
2817#include <sys/stat.h>
2818/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2819struct buf { int x; };
2820FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821static char *e (p, i)
2822     char **p;
2823     int i;
2824{
2825  return p[i];
2826}
2827static char *f (char * (*g) (char **, int), char **p, ...)
2828{
2829  char *s;
2830  va_list v;
2831  va_start (v,p);
2832  s = g (p, va_arg (v,int));
2833  va_end (v);
2834  return s;
2835}
2836
2837/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2838   function prototypes and stuff, but not '\xHH' hex character constants.
2839   These don't provoke an error unfortunately, instead are silently treated
2840   as 'x'.  The following induces an error, until -std1 is added to get
2841   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2842   array size at least.  It's necessary to write '\x00'==0 to get something
2843   that's true only with -std1.  */
2844int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845
2846int test (int i, double x);
2847struct s1 {int (*f) (int a);};
2848struct s2 {int (*f) (double a);};
2849int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2850int argc;
2851char **argv;
2852int
2853main ()
2854{
2855return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2856  ;
2857  return 0;
2858}
2859_ACEOF
2860# Don't try gcc -ansi; that turns off useful extensions and
2861# breaks some systems' header files.
2862# AIX			-qlanglvl=ansi
2863# Ultrix and OSF/1	-std1
2864# HP-UX 10.20 and later	-Ae
2865# HP-UX older versions	-Aa -D_HPUX_SOURCE
2866# SVR4			-Xc -D__EXTENSIONS__
2867for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2868do
2869  CC="$ac_save_CC $ac_arg"
2870  rm -f conftest.$ac_objext
2871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872  (eval $ac_compile) 2>conftest.er1
2873  ac_status=$?
2874  grep -v '^ *+' conftest.er1 >conftest.err
2875  rm -f conftest.er1
2876  cat conftest.err >&5
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); } &&
2879	 { ac_try='test -z "$ac_c_werror_flag"
2880			 || test ! -s conftest.err'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; } &&
2886	 { ac_try='test -s conftest.$ac_objext'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; }; then
2892  ac_cv_prog_cc_stdc=$ac_arg
2893break
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext
2900done
2901rm -f conftest.$ac_ext conftest.$ac_objext
2902CC=$ac_save_CC
2903
2904fi
2905
2906case "x$ac_cv_prog_cc_stdc" in
2907  x|xno)
2908    echo "$as_me:$LINENO: result: none needed" >&5
2909echo "${ECHO_T}none needed" >&6 ;;
2910  *)
2911    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2912echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2913    CC="$CC $ac_cv_prog_cc_stdc" ;;
2914esac
2915
2916# Some people use a C++ compiler to compile C.  Since we use `exit',
2917# in C++ we need to declare it.  In case someone uses the same compiler
2918# for both compiling C and C++ we need to have the C++ compiler decide
2919# the declaration of exit, since it's the most demanding environment.
2920cat >conftest.$ac_ext <<_ACEOF
2921#ifndef __cplusplus
2922  choke me
2923#endif
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927  (eval $ac_compile) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934	 { ac_try='test -z "$ac_c_werror_flag"
2935			 || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941	 { ac_try='test -s conftest.$ac_objext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  for ac_declaration in \
2948   '' \
2949   'extern "C" void std::exit (int) throw (); using std::exit;' \
2950   'extern "C" void std::exit (int); using std::exit;' \
2951   'extern "C" void exit (int) throw ();' \
2952   'extern "C" void exit (int);' \
2953   'void exit (int);'
2954do
2955  cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961$ac_declaration
2962#include <stdlib.h>
2963int
2964main ()
2965{
2966exit (42);
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext
2972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973  (eval $ac_compile) 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980	 { ac_try='test -z "$ac_c_werror_flag"
2981			 || test ! -s conftest.err'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; } &&
2987	 { ac_try='test -s conftest.$ac_objext'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; }; then
2993  :
2994else
2995  echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998continue
2999fi
3000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001  cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007$ac_declaration
3008int
3009main ()
3010{
3011exit (42);
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext
3017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018  (eval $ac_compile) 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } &&
3025	 { ac_try='test -z "$ac_c_werror_flag"
3026			 || test ! -s conftest.err'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; } &&
3032	 { ac_try='test -s conftest.$ac_objext'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; }; then
3038  break
3039else
3040  echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043fi
3044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045done
3046rm -f conftest*
3047if test -n "$ac_declaration"; then
3048  echo '#ifdef __cplusplus' >>confdefs.h
3049  echo $ac_declaration      >>confdefs.h
3050  echo '#endif'             >>confdefs.h
3051fi
3052
3053else
3054  echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057fi
3058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059ac_ext=c
3060ac_cpp='$CPP $CPPFLAGS'
3061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
3065depcc="$CC"   am_compiler_list=
3066
3067echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3069if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3070  echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073  # We make a subdir and do the tests there.  Otherwise we can end up
3074  # making bogus files that we don't know about and never remove.  For
3075  # instance it was reported that on HP-UX the gcc test will end up
3076  # making a dummy file named `D' -- because `-MD' means `put the output
3077  # in D'.
3078  mkdir conftest.dir
3079  # Copy depcomp to subdir because otherwise we won't find it if we're
3080  # using a relative directory.
3081  cp "$am_depcomp" conftest.dir
3082  cd conftest.dir
3083  # We will build objects and dependencies in a subdirectory because
3084  # it helps to detect inapplicable dependency modes.  For instance
3085  # both Tru64's cc and ICC support -MD to output dependencies as a
3086  # side effect of compilation, but ICC will put the dependencies in
3087  # the current directory while Tru64 will put them in the object
3088  # directory.
3089  mkdir sub
3090
3091  am_cv_CC_dependencies_compiler_type=none
3092  if test "$am_compiler_list" = ""; then
3093     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3094  fi
3095  for depmode in $am_compiler_list; do
3096    # Setup a source with many dependencies, because some compilers
3097    # like to wrap large dependency lists on column 80 (with \), and
3098    # we should not choose a depcomp mode which is confused by this.
3099    #
3100    # We need to recreate these files for each test, as the compiler may
3101    # overwrite some of them when testing with obscure command lines.
3102    # This happens at least with the AIX C compiler.
3103    : > sub/conftest.c
3104    for i in 1 2 3 4 5 6; do
3105      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107      # Solaris 8's {/usr,}/bin/sh.
3108      touch sub/conftst$i.h
3109    done
3110    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3111
3112    case $depmode in
3113    nosideeffect)
3114      # after this tag, mechanisms are not by side-effect, so they'll
3115      # only be used when explicitly requested
3116      if test "x$enable_dependency_tracking" = xyes; then
3117	continue
3118      else
3119	break
3120      fi
3121      ;;
3122    none) break ;;
3123    esac
3124    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125    # mode.  It turns out that the SunPro C++ compiler does not properly
3126    # handle `-M -o', and we need to detect this.
3127    if depmode=$depmode \
3128       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131         >/dev/null 2>conftest.err &&
3132       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3133       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3134       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135      # icc doesn't choke on unknown options, it will just issue warnings
3136      # or remarks (even with -Werror).  So we grep stderr for any message
3137      # that says an option was ignored or not supported.
3138      # When given -MP, icc 7.0 and 7.1 complain thusly:
3139      #   icc: Command line warning: ignoring option '-M'; no argument required
3140      # The diagnosis changed in icc 8.0:
3141      #   icc: Command line remark: option '-MP' not supported
3142      if (grep 'ignoring option' conftest.err ||
3143          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3144        am_cv_CC_dependencies_compiler_type=$depmode
3145        break
3146      fi
3147    fi
3148  done
3149
3150  cd ..
3151  rm -rf conftest.dir
3152else
3153  am_cv_CC_dependencies_compiler_type=none
3154fi
3155
3156fi
3157echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3160
3161
3162
3163if
3164  test "x$enable_dependency_tracking" != xno \
3165  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3166  am__fastdepCC_TRUE=
3167  am__fastdepCC_FALSE='#'
3168else
3169  am__fastdepCC_TRUE='#'
3170  am__fastdepCC_FALSE=
3171fi
3172
3173
3174echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3175echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3176if test "${lt_cv_path_SED+set}" = set; then
3177  echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179  # Loop through the user's path and test for sed and gsed.
3180# Then use that list of sed's as ones to test for truncation.
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186  for lt_ac_prog in sed gsed; do
3187    for ac_exec_ext in '' $ac_executable_extensions; do
3188      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3189        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3190      fi
3191    done
3192  done
3193done
3194lt_ac_max=0
3195lt_ac_count=0
3196# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3197# along with /bin/sed that truncates output.
3198for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3199  test ! -f $lt_ac_sed && break
3200  cat /dev/null > conftest.in
3201  lt_ac_count=0
3202  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3203  # Check for GNU sed and select it if it is found.
3204  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3205    lt_cv_path_SED=$lt_ac_sed
3206    break
3207  fi
3208  while true; do
3209    cat conftest.in conftest.in >conftest.tmp
3210    mv conftest.tmp conftest.in
3211    cp conftest.in conftest.nl
3212    echo >>conftest.nl
3213    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3214    cmp -s conftest.out conftest.nl || break
3215    # 10000 chars as input seems more than enough
3216    test $lt_ac_count -gt 10 && break
3217    lt_ac_count=`expr $lt_ac_count + 1`
3218    if test $lt_ac_count -gt $lt_ac_max; then
3219      lt_ac_max=$lt_ac_count
3220      lt_cv_path_SED=$lt_ac_sed
3221    fi
3222  done
3223done
3224
3225fi
3226
3227SED=$lt_cv_path_SED
3228echo "$as_me:$LINENO: result: $SED" >&5
3229echo "${ECHO_T}$SED" >&6
3230
3231echo "$as_me:$LINENO: checking for egrep" >&5
3232echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3233if test "${ac_cv_prog_egrep+set}" = set; then
3234  echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3237    then ac_cv_prog_egrep='grep -E'
3238    else ac_cv_prog_egrep='egrep'
3239    fi
3240fi
3241echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3242echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3243 EGREP=$ac_cv_prog_egrep
3244
3245
3246
3247# Check whether --with-gnu-ld or --without-gnu-ld was given.
3248if test "${with_gnu_ld+set}" = set; then
3249  withval="$with_gnu_ld"
3250  test "$withval" = no || with_gnu_ld=yes
3251else
3252  with_gnu_ld=no
3253fi;
3254ac_prog=ld
3255if test "$GCC" = yes; then
3256  # Check if gcc -print-prog-name=ld gives a path.
3257  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3258echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3259  case $host in
3260  *-*-mingw*)
3261    # gcc leaves a trailing carriage return which upsets mingw
3262    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3263  *)
3264    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3265  esac
3266  case $ac_prog in
3267    # Accept absolute paths.
3268    [\\/]* | ?:[\\/]*)
3269      re_direlt='/[^/][^/]*/\.\./'
3270      # Canonicalize the pathname of ld
3271      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3272      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3273	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3274      done
3275      test -z "$LD" && LD="$ac_prog"
3276      ;;
3277  "")
3278    # If it fails, then pretend we aren't using GCC.
3279    ac_prog=ld
3280    ;;
3281  *)
3282    # If it is relative, then search for the first ld in PATH.
3283    with_gnu_ld=unknown
3284    ;;
3285  esac
3286elif test "$with_gnu_ld" = yes; then
3287  echo "$as_me:$LINENO: checking for GNU ld" >&5
3288echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3289else
3290  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3291echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3292fi
3293if test "${lt_cv_path_LD+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  if test -z "$LD"; then
3297  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3298  for ac_dir in $PATH; do
3299    IFS="$lt_save_ifs"
3300    test -z "$ac_dir" && ac_dir=.
3301    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3302      lt_cv_path_LD="$ac_dir/$ac_prog"
3303      # Check to see if the program is GNU ld.  I'd rather use --version,
3304      # but apparently some GNU ld's only accept -v.
3305      # Break only if it was the GNU/non-GNU ld that we prefer.
3306      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3307      *GNU* | *'with BFD'*)
3308	test "$with_gnu_ld" != no && break
3309	;;
3310      *)
3311	test "$with_gnu_ld" != yes && break
3312	;;
3313      esac
3314    fi
3315  done
3316  IFS="$lt_save_ifs"
3317else
3318  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3319fi
3320fi
3321
3322LD="$lt_cv_path_LD"
3323if test -n "$LD"; then
3324  echo "$as_me:$LINENO: result: $LD" >&5
3325echo "${ECHO_T}$LD" >&6
3326else
3327  echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3331echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3332   { (exit 1); exit 1; }; }
3333echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3334echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3335if test "${lt_cv_prog_gnu_ld+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3339case `$LD -v 2>&1 </dev/null` in
3340*GNU* | *'with BFD'*)
3341  lt_cv_prog_gnu_ld=yes
3342  ;;
3343*)
3344  lt_cv_prog_gnu_ld=no
3345  ;;
3346esac
3347fi
3348echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3349echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3350with_gnu_ld=$lt_cv_prog_gnu_ld
3351
3352
3353echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3354echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3355if test "${lt_cv_ld_reload_flag+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  lt_cv_ld_reload_flag='-r'
3359fi
3360echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3361echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3362reload_flag=$lt_cv_ld_reload_flag
3363case $reload_flag in
3364"" | " "*) ;;
3365*) reload_flag=" $reload_flag" ;;
3366esac
3367reload_cmds='$LD$reload_flag -o $output$reload_objs'
3368case $host_os in
3369  darwin*)
3370    if test "$GCC" = yes; then
3371      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3372    else
3373      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3374    fi
3375    ;;
3376esac
3377
3378echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3379echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3380if test "${lt_cv_path_NM+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  if test -n "$NM"; then
3384  # Let the user override the test.
3385  lt_cv_path_NM="$NM"
3386else
3387  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3388  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3389    IFS="$lt_save_ifs"
3390    test -z "$ac_dir" && ac_dir=.
3391    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3392    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3393      # Check to see if the nm accepts a BSD-compat flag.
3394      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3395      #   nm: unknown option "B" ignored
3396      # Tru64's nm complains that /dev/null is an invalid object file
3397      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3398      */dev/null* | *'Invalid file or object type'*)
3399	lt_cv_path_NM="$tmp_nm -B"
3400	break
3401        ;;
3402      *)
3403	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3404	*/dev/null*)
3405	  lt_cv_path_NM="$tmp_nm -p"
3406	  break
3407	  ;;
3408	*)
3409	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3410	  continue # so that we can try to find one that supports BSD flags
3411	  ;;
3412	esac
3413      esac
3414    fi
3415  done
3416  IFS="$lt_save_ifs"
3417  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3418fi
3419fi
3420echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3421echo "${ECHO_T}$lt_cv_path_NM" >&6
3422NM="$lt_cv_path_NM"
3423
3424echo "$as_me:$LINENO: checking whether ln -s works" >&5
3425echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3426LN_S=$as_ln_s
3427if test "$LN_S" = "ln -s"; then
3428  echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430else
3431  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3432echo "${ECHO_T}no, using $LN_S" >&6
3433fi
3434
3435echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3436echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3437if test "${lt_cv_deplibs_check_method+set}" = set; then
3438  echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440  lt_cv_file_magic_cmd='$MAGIC_CMD'
3441lt_cv_file_magic_test_file=
3442lt_cv_deplibs_check_method='unknown'
3443# Need to set the preceding variable on all platforms that support
3444# interlibrary dependencies.
3445# 'none' -- dependencies not supported.
3446# `unknown' -- same as none, but documents that we really don't know.
3447# 'pass_all' -- all dependencies passed with no checks.
3448# 'test_compile' -- check by making test program.
3449# 'file_magic [[regex]]' -- check by looking for files in library path
3450# which responds to the $file_magic_cmd with a given extended regex.
3451# If you have `file' or equivalent on your system and you're not sure
3452# whether `pass_all' will *always* work, you probably want this one.
3453
3454case $host_os in
3455aix4* | aix5*)
3456  lt_cv_deplibs_check_method=pass_all
3457  ;;
3458
3459beos*)
3460  lt_cv_deplibs_check_method=pass_all
3461  ;;
3462
3463bsdi[45]*)
3464  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3465  lt_cv_file_magic_cmd='/usr/bin/file -L'
3466  lt_cv_file_magic_test_file=/shlib/libc.so
3467  ;;
3468
3469cygwin*)
3470  # func_win32_libid is a shell function defined in ltmain.sh
3471  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3472  lt_cv_file_magic_cmd='func_win32_libid'
3473  ;;
3474
3475mingw* | pw32*)
3476  # Base MSYS/MinGW do not provide the 'file' command needed by
3477  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3478  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3479  lt_cv_file_magic_cmd='$OBJDUMP -f'
3480  ;;
3481
3482darwin* | rhapsody*)
3483  lt_cv_deplibs_check_method=pass_all
3484  ;;
3485
3486freebsd* | kfreebsd*-gnu)
3487  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3488    case $host_cpu in
3489    i*86 )
3490      # Not sure whether the presence of OpenBSD here was a mistake.
3491      # Let's accept both of them until this is cleared up.
3492      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3493      lt_cv_file_magic_cmd=/usr/bin/file
3494      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3495      ;;
3496    esac
3497  else
3498    lt_cv_deplibs_check_method=pass_all
3499  fi
3500  ;;
3501
3502gnu*)
3503  lt_cv_deplibs_check_method=pass_all
3504  ;;
3505
3506hpux10.20* | hpux11*)
3507  lt_cv_file_magic_cmd=/usr/bin/file
3508  case "$host_cpu" in
3509  ia64*)
3510    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3511    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3512    ;;
3513  hppa*64*)
3514    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]'
3515    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3516    ;;
3517  *)
3518    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3519    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3520    ;;
3521  esac
3522  ;;
3523
3524irix5* | irix6* | nonstopux*)
3525  case $LD in
3526  *-32|*"-32 ") libmagic=32-bit;;
3527  *-n32|*"-n32 ") libmagic=N32;;
3528  *-64|*"-64 ") libmagic=64-bit;;
3529  *) libmagic=never-match;;
3530  esac
3531  lt_cv_deplibs_check_method=pass_all
3532  ;;
3533
3534# This must be Linux ELF.
3535linux*)
3536  lt_cv_deplibs_check_method=pass_all
3537  ;;
3538
3539netbsd*)
3540  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3541    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3542  else
3543    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3544  fi
3545  ;;
3546
3547newos6*)
3548  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3549  lt_cv_file_magic_cmd=/usr/bin/file
3550  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3551  ;;
3552
3553nto-qnx*)
3554  lt_cv_deplibs_check_method=unknown
3555  ;;
3556
3557openbsd*)
3558  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3559    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3560  else
3561    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3562  fi
3563  ;;
3564
3565osf3* | osf4* | osf5*)
3566  lt_cv_deplibs_check_method=pass_all
3567  ;;
3568
3569sco3.2v5*)
3570  lt_cv_deplibs_check_method=pass_all
3571  ;;
3572
3573solaris*)
3574  lt_cv_deplibs_check_method=pass_all
3575  ;;
3576
3577sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3578  case $host_vendor in
3579  motorola)
3580    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]'
3581    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3582    ;;
3583  ncr)
3584    lt_cv_deplibs_check_method=pass_all
3585    ;;
3586  sequent)
3587    lt_cv_file_magic_cmd='/bin/file'
3588    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3589    ;;
3590  sni)
3591    lt_cv_file_magic_cmd='/bin/file'
3592    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3593    lt_cv_file_magic_test_file=/lib/libc.so
3594    ;;
3595  siemens)
3596    lt_cv_deplibs_check_method=pass_all
3597    ;;
3598  esac
3599  ;;
3600
3601sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3602  lt_cv_deplibs_check_method=pass_all
3603  ;;
3604esac
3605
3606fi
3607echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3608echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3609file_magic_cmd=$lt_cv_file_magic_cmd
3610deplibs_check_method=$lt_cv_deplibs_check_method
3611test -z "$deplibs_check_method" && deplibs_check_method=unknown
3612
3613
3614
3615
3616# If no C compiler was specified, use CC.
3617LTCC=${LTCC-"$CC"}
3618
3619# Allow CC to be a program name with arguments.
3620compiler=$CC
3621
3622
3623# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3624if test "${enable_libtool_lock+set}" = set; then
3625  enableval="$enable_libtool_lock"
3626
3627fi;
3628test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3629
3630# Some flags need to be propagated to the compiler or linker for good
3631# libtool support.
3632case $host in
3633ia64-*-hpux*)
3634  # Find out which ABI we are using.
3635  echo 'int i;' > conftest.$ac_ext
3636  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637  (eval $ac_compile) 2>&5
3638  ac_status=$?
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); }; then
3641    case `/usr/bin/file conftest.$ac_objext` in
3642    *ELF-32*)
3643      HPUX_IA64_MODE="32"
3644      ;;
3645    *ELF-64*)
3646      HPUX_IA64_MODE="64"
3647      ;;
3648    esac
3649  fi
3650  rm -rf conftest*
3651  ;;
3652*-*-irix6*)
3653  # Find out which ABI we are using.
3654  echo '#line 3654 "configure"' > conftest.$ac_ext
3655  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656  (eval $ac_compile) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; then
3660   if test "$lt_cv_prog_gnu_ld" = yes; then
3661    case `/usr/bin/file conftest.$ac_objext` in
3662    *32-bit*)
3663      LD="${LD-ld} -melf32bsmip"
3664      ;;
3665    *N32*)
3666      LD="${LD-ld} -melf32bmipn32"
3667      ;;
3668    *64-bit*)
3669      LD="${LD-ld} -melf64bmip"
3670      ;;
3671    esac
3672   else
3673    case `/usr/bin/file conftest.$ac_objext` in
3674    *32-bit*)
3675      LD="${LD-ld} -32"
3676      ;;
3677    *N32*)
3678      LD="${LD-ld} -n32"
3679      ;;
3680    *64-bit*)
3681      LD="${LD-ld} -64"
3682      ;;
3683    esac
3684   fi
3685  fi
3686  rm -rf conftest*
3687  ;;
3688
3689x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3690  # Find out which ABI we are using.
3691  echo 'int i;' > conftest.$ac_ext
3692  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>&5
3694  ac_status=$?
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); }; then
3697    case "`/usr/bin/file conftest.o`" in
3698    *32-bit*)
3699      case $host in
3700        x86_64-*linux*)
3701          LD="${LD-ld} -m elf_i386"
3702          ;;
3703        ppc64-*linux*|powerpc64-*linux*)
3704          LD="${LD-ld} -m elf32ppclinux"
3705          ;;
3706        s390x-*linux*)
3707          LD="${LD-ld} -m elf_s390"
3708          ;;
3709        sparc64-*linux*)
3710          LD="${LD-ld} -m elf32_sparc"
3711          ;;
3712      esac
3713      ;;
3714    *64-bit*)
3715      case $host in
3716        x86_64-*linux*)
3717          LD="${LD-ld} -m elf_x86_64"
3718          ;;
3719        ppc*-*linux*|powerpc*-*linux*)
3720          LD="${LD-ld} -m elf64ppc"
3721          ;;
3722        s390*-*linux*)
3723          LD="${LD-ld} -m elf64_s390"
3724          ;;
3725        sparc*-*linux*)
3726          LD="${LD-ld} -m elf64_sparc"
3727          ;;
3728      esac
3729      ;;
3730    esac
3731  fi
3732  rm -rf conftest*
3733  ;;
3734
3735*-*-sco3.2v5*)
3736  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3737  SAVE_CFLAGS="$CFLAGS"
3738  CFLAGS="$CFLAGS -belf"
3739  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3740echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3741if test "${lt_cv_cc_needs_belf+set}" = set; then
3742  echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744  ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750     cat >conftest.$ac_ext <<_ACEOF
3751/* confdefs.h.  */
3752_ACEOF
3753cat confdefs.h >>conftest.$ac_ext
3754cat >>conftest.$ac_ext <<_ACEOF
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767  (eval $ac_link) 2>conftest.er1
3768  ac_status=$?
3769  grep -v '^ *+' conftest.er1 >conftest.err
3770  rm -f conftest.er1
3771  cat conftest.err >&5
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); } &&
3774	 { ac_try='test -z "$ac_c_werror_flag"
3775			 || test ! -s conftest.err'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; } &&
3781	 { ac_try='test -s conftest$ac_exeext'
3782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783  (eval $ac_try) 2>&5
3784  ac_status=$?
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; }; then
3787  lt_cv_cc_needs_belf=yes
3788else
3789  echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792lt_cv_cc_needs_belf=no
3793fi
3794rm -f conftest.err conftest.$ac_objext \
3795      conftest$ac_exeext conftest.$ac_ext
3796     ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
3802fi
3803echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3804echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3805  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3806    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3807    CFLAGS="$SAVE_CFLAGS"
3808  fi
3809  ;;
3810
3811esac
3812
3813need_locks="$enable_libtool_lock"
3814
3815
3816ac_ext=c
3817ac_cpp='$CPP $CPPFLAGS'
3818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3822echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3823# On Suns, sometimes $CPP names a directory.
3824if test -n "$CPP" && test -d "$CPP"; then
3825  CPP=
3826fi
3827if test -z "$CPP"; then
3828  if test "${ac_cv_prog_CPP+set}" = set; then
3829  echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831      # Double quotes because CPP needs to be expanded
3832    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3833    do
3834      ac_preproc_ok=false
3835for ac_c_preproc_warn_flag in '' yes
3836do
3837  # Use a header file that comes with gcc, so configuring glibc
3838  # with a fresh cross-compiler works.
3839  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840  # <limits.h> exists even on freestanding compilers.
3841  # On the NeXT, cc -E runs the code through the compiler's parser,
3842  # not just through cpp. "Syntax error" is here to catch this case.
3843  cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h.  */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h.  */
3849#ifdef __STDC__
3850# include <limits.h>
3851#else
3852# include <assert.h>
3853#endif
3854		     Syntax error
3855_ACEOF
3856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858  ac_status=$?
3859  grep -v '^ *+' conftest.er1 >conftest.err
3860  rm -f conftest.er1
3861  cat conftest.err >&5
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); } >/dev/null; then
3864  if test -s conftest.err; then
3865    ac_cpp_err=$ac_c_preproc_warn_flag
3866    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867  else
3868    ac_cpp_err=
3869  fi
3870else
3871  ac_cpp_err=yes
3872fi
3873if test -z "$ac_cpp_err"; then
3874  :
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879  # Broken: fails on valid input.
3880continue
3881fi
3882rm -f conftest.err conftest.$ac_ext
3883
3884  # OK, works on sane cases.  Now check whether non-existent headers
3885  # can be detected and how.
3886  cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h.  */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h.  */
3892#include <ac_nonexistent.h>
3893_ACEOF
3894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896  ac_status=$?
3897  grep -v '^ *+' conftest.er1 >conftest.err
3898  rm -f conftest.er1
3899  cat conftest.err >&5
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); } >/dev/null; then
3902  if test -s conftest.err; then
3903    ac_cpp_err=$ac_c_preproc_warn_flag
3904    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905  else
3906    ac_cpp_err=
3907  fi
3908else
3909  ac_cpp_err=yes
3910fi
3911if test -z "$ac_cpp_err"; then
3912  # Broken: success on invalid input.
3913continue
3914else
3915  echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918  # Passes both tests.
3919ac_preproc_ok=:
3920break
3921fi
3922rm -f conftest.err conftest.$ac_ext
3923
3924done
3925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926rm -f conftest.err conftest.$ac_ext
3927if $ac_preproc_ok; then
3928  break
3929fi
3930
3931    done
3932    ac_cv_prog_CPP=$CPP
3933
3934fi
3935  CPP=$ac_cv_prog_CPP
3936else
3937  ac_cv_prog_CPP=$CPP
3938fi
3939echo "$as_me:$LINENO: result: $CPP" >&5
3940echo "${ECHO_T}$CPP" >&6
3941ac_preproc_ok=false
3942for ac_c_preproc_warn_flag in '' yes
3943do
3944  # Use a header file that comes with gcc, so configuring glibc
3945  # with a fresh cross-compiler works.
3946  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947  # <limits.h> exists even on freestanding compilers.
3948  # On the NeXT, cc -E runs the code through the compiler's parser,
3949  # not just through cpp. "Syntax error" is here to catch this case.
3950  cat >conftest.$ac_ext <<_ACEOF
3951/* confdefs.h.  */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h.  */
3956#ifdef __STDC__
3957# include <limits.h>
3958#else
3959# include <assert.h>
3960#endif
3961		     Syntax error
3962_ACEOF
3963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965  ac_status=$?
3966  grep -v '^ *+' conftest.er1 >conftest.err
3967  rm -f conftest.er1
3968  cat conftest.err >&5
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); } >/dev/null; then
3971  if test -s conftest.err; then
3972    ac_cpp_err=$ac_c_preproc_warn_flag
3973    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974  else
3975    ac_cpp_err=
3976  fi
3977else
3978  ac_cpp_err=yes
3979fi
3980if test -z "$ac_cpp_err"; then
3981  :
3982else
3983  echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986  # Broken: fails on valid input.
3987continue
3988fi
3989rm -f conftest.err conftest.$ac_ext
3990
3991  # OK, works on sane cases.  Now check whether non-existent headers
3992  # can be detected and how.
3993  cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999#include <ac_nonexistent.h>
4000_ACEOF
4001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003  ac_status=$?
4004  grep -v '^ *+' conftest.er1 >conftest.err
4005  rm -f conftest.er1
4006  cat conftest.err >&5
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); } >/dev/null; then
4009  if test -s conftest.err; then
4010    ac_cpp_err=$ac_c_preproc_warn_flag
4011    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012  else
4013    ac_cpp_err=
4014  fi
4015else
4016  ac_cpp_err=yes
4017fi
4018if test -z "$ac_cpp_err"; then
4019  # Broken: success on invalid input.
4020continue
4021else
4022  echo "$as_me: failed program was:" >&5
4023sed 's/^/| /' conftest.$ac_ext >&5
4024
4025  # Passes both tests.
4026ac_preproc_ok=:
4027break
4028fi
4029rm -f conftest.err conftest.$ac_ext
4030
4031done
4032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033rm -f conftest.err conftest.$ac_ext
4034if $ac_preproc_ok; then
4035  :
4036else
4037  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4038See \`config.log' for more details." >&5
4039echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4040See \`config.log' for more details." >&2;}
4041   { (exit 1); exit 1; }; }
4042fi
4043
4044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049
4050
4051echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4052echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4053if test "${ac_cv_header_stdc+set}" = set; then
4054  echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056  cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h.  */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h.  */
4062#include <stdlib.h>
4063#include <stdarg.h>
4064#include <string.h>
4065#include <float.h>
4066
4067int
4068main ()
4069{
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext
4076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077  (eval $ac_compile) 2>conftest.er1
4078  ac_status=$?
4079  grep -v '^ *+' conftest.er1 >conftest.err
4080  rm -f conftest.er1
4081  cat conftest.err >&5
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); } &&
4084	 { ac_try='test -z "$ac_c_werror_flag"
4085			 || test ! -s conftest.err'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; } &&
4091	 { ac_try='test -s conftest.$ac_objext'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; }; then
4097  ac_cv_header_stdc=yes
4098else
4099  echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102ac_cv_header_stdc=no
4103fi
4104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108  cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114#include <string.h>
4115
4116_ACEOF
4117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118  $EGREP "memchr" >/dev/null 2>&1; then
4119  :
4120else
4121  ac_cv_header_stdc=no
4122fi
4123rm -f conftest*
4124
4125fi
4126
4127if test $ac_cv_header_stdc = yes; then
4128  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4129  cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135#include <stdlib.h>
4136
4137_ACEOF
4138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139  $EGREP "free" >/dev/null 2>&1; then
4140  :
4141else
4142  ac_cv_header_stdc=no
4143fi
4144rm -f conftest*
4145
4146fi
4147
4148if test $ac_cv_header_stdc = yes; then
4149  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150  if test "$cross_compiling" = yes; then
4151  :
4152else
4153  cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h.  */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h.  */
4159#include <ctype.h>
4160#if ((' ' & 0x0FF) == 0x020)
4161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163#else
4164# define ISLOWER(c) \
4165		   (('a' <= (c) && (c) <= 'i') \
4166		     || ('j' <= (c) && (c) <= 'r') \
4167		     || ('s' <= (c) && (c) <= 'z'))
4168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4169#endif
4170
4171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4172int
4173main ()
4174{
4175  int i;
4176  for (i = 0; i < 256; i++)
4177    if (XOR (islower (i), ISLOWER (i))
4178	|| toupper (i) != TOUPPER (i))
4179      exit(2);
4180  exit (0);
4181}
4182_ACEOF
4183rm -f conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185  (eval $ac_link) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190  (eval $ac_try) 2>&5
4191  ac_status=$?
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); }; }; then
4194  :
4195else
4196  echo "$as_me: program exited with status $ac_status" >&5
4197echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200( exit $ac_status )
4201ac_cv_header_stdc=no
4202fi
4203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204fi
4205fi
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4208echo "${ECHO_T}$ac_cv_header_stdc" >&6
4209if test $ac_cv_header_stdc = yes; then
4210
4211cat >>confdefs.h <<\_ACEOF
4212#define STDC_HEADERS 1
4213_ACEOF
4214
4215fi
4216
4217# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4228		  inttypes.h stdint.h unistd.h
4229do
4230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4231echo "$as_me:$LINENO: checking for $ac_header" >&5
4232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4233if eval "test \"\${$as_ac_Header+set}\" = set"; then
4234  echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236  cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h.  */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h.  */
4242$ac_includes_default
4243
4244#include <$ac_header>
4245_ACEOF
4246rm -f conftest.$ac_objext
4247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248  (eval $ac_compile) 2>conftest.er1
4249  ac_status=$?
4250  grep -v '^ *+' conftest.er1 >conftest.err
4251  rm -f conftest.er1
4252  cat conftest.err >&5
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); } &&
4255	 { ac_try='test -z "$ac_c_werror_flag"
4256			 || test ! -s conftest.err'
4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258  (eval $ac_try) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; } &&
4262	 { ac_try='test -s conftest.$ac_objext'
4263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264  (eval $ac_try) 2>&5
4265  ac_status=$?
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); }; }; then
4268  eval "$as_ac_Header=yes"
4269else
4270  echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273eval "$as_ac_Header=no"
4274fi
4275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276fi
4277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4279if test `eval echo '${'$as_ac_Header'}'` = yes; then
4280  cat >>confdefs.h <<_ACEOF
4281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4282_ACEOF
4283
4284fi
4285
4286done
4287
4288
4289
4290for ac_header in dlfcn.h
4291do
4292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4293if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294  echo "$as_me:$LINENO: checking for $ac_header" >&5
4295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297  echo $ECHO_N "(cached) $ECHO_C" >&6
4298fi
4299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301else
4302  # Is the header compilable?
4303echo "$as_me:$LINENO: checking $ac_header usability" >&5
4304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4305cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312#include <$ac_header>
4313_ACEOF
4314rm -f conftest.$ac_objext
4315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316  (eval $ac_compile) 2>conftest.er1
4317  ac_status=$?
4318  grep -v '^ *+' conftest.er1 >conftest.err
4319  rm -f conftest.er1
4320  cat conftest.err >&5
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); } &&
4323	 { ac_try='test -z "$ac_c_werror_flag"
4324			 || test ! -s conftest.err'
4325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326  (eval $ac_try) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }; } &&
4330	 { ac_try='test -s conftest.$ac_objext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  ac_header_compiler=yes
4337else
4338  echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341ac_header_compiler=no
4342fi
4343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4345echo "${ECHO_T}$ac_header_compiler" >&6
4346
4347# Is the header present?
4348echo "$as_me:$LINENO: checking $ac_header presence" >&5
4349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4350cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h.  */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h.  */
4356#include <$ac_header>
4357_ACEOF
4358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360  ac_status=$?
4361  grep -v '^ *+' conftest.er1 >conftest.err
4362  rm -f conftest.er1
4363  cat conftest.err >&5
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); } >/dev/null; then
4366  if test -s conftest.err; then
4367    ac_cpp_err=$ac_c_preproc_warn_flag
4368    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369  else
4370    ac_cpp_err=
4371  fi
4372else
4373  ac_cpp_err=yes
4374fi
4375if test -z "$ac_cpp_err"; then
4376  ac_header_preproc=yes
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381  ac_header_preproc=no
4382fi
4383rm -f conftest.err conftest.$ac_ext
4384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4385echo "${ECHO_T}$ac_header_preproc" >&6
4386
4387# So?  What about this header?
4388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4389  yes:no: )
4390    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4392    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4394    ac_header_preproc=yes
4395    ;;
4396  no:yes:* )
4397    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4399    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4400echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4401    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4403    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4404echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4407    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4409    (
4410      cat <<\_ASBOX
4411## ------------------------------------------ ##
4412## Report this to the AC_PACKAGE_NAME lists.  ##
4413## ------------------------------------------ ##
4414_ASBOX
4415    ) |
4416      sed "s/^/$as_me: WARNING:     /" >&2
4417    ;;
4418esac
4419echo "$as_me:$LINENO: checking for $ac_header" >&5
4420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4421if eval "test \"\${$as_ac_Header+set}\" = set"; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  eval "$as_ac_Header=\$ac_header_preproc"
4425fi
4426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4428
4429fi
4430if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431  cat >>confdefs.h <<_ACEOF
4432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433_ACEOF
4434
4435fi
4436
4437done
4438
4439ac_ext=cc
4440ac_cpp='$CXXCPP $CPPFLAGS'
4441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4444if test -n "$ac_tool_prefix"; then
4445  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4446  do
4447    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4448set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4449echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451if test "${ac_cv_prog_CXX+set}" = set; then
4452  echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454  if test -n "$CXX"; then
4455  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462  for ac_exec_ext in '' $ac_executable_extensions; do
4463  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469done
4470
4471fi
4472fi
4473CXX=$ac_cv_prog_CXX
4474if test -n "$CXX"; then
4475  echo "$as_me:$LINENO: result: $CXX" >&5
4476echo "${ECHO_T}$CXX" >&6
4477else
4478  echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480fi
4481
4482    test -n "$CXX" && break
4483  done
4484fi
4485if test -z "$CXX"; then
4486  ac_ct_CXX=$CXX
4487  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4488do
4489  # Extract the first word of "$ac_prog", so it can be a program name with args.
4490set dummy $ac_prog; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4494  echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496  if test -n "$ac_ct_CXX"; then
4497  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502  IFS=$as_save_IFS
4503  test -z "$as_dir" && as_dir=.
4504  for ac_exec_ext in '' $ac_executable_extensions; do
4505  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506    ac_cv_prog_ac_ct_CXX="$ac_prog"
4507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508    break 2
4509  fi
4510done
4511done
4512
4513fi
4514fi
4515ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4516if test -n "$ac_ct_CXX"; then
4517  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4518echo "${ECHO_T}$ac_ct_CXX" >&6
4519else
4520  echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524  test -n "$ac_ct_CXX" && break
4525done
4526test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4527
4528  CXX=$ac_ct_CXX
4529fi
4530
4531
4532# Provide some information about the compiler.
4533echo "$as_me:$LINENO:" \
4534     "checking for C++ compiler version" >&5
4535ac_compiler=`set X $ac_compile; echo $2`
4536{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4537  (eval $ac_compiler --version </dev/null >&5) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }
4541{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4542  (eval $ac_compiler -v </dev/null >&5) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }
4546{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4547  (eval $ac_compiler -V </dev/null >&5) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }
4551
4552echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4553echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4554if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h.  */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h.  */
4563
4564int
4565main ()
4566{
4567#ifndef __GNUC__
4568       choke me
4569#endif
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext
4576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577  (eval $ac_compile) 2>conftest.er1
4578  ac_status=$?
4579  grep -v '^ *+' conftest.er1 >conftest.err
4580  rm -f conftest.er1
4581  cat conftest.err >&5
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); } &&
4584	 { ac_try='test -z "$ac_cxx_werror_flag"
4585			 || test ! -s conftest.err'
4586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587  (eval $ac_try) 2>&5
4588  ac_status=$?
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); }; } &&
4591	 { ac_try='test -s conftest.$ac_objext'
4592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593  (eval $ac_try) 2>&5
4594  ac_status=$?
4595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596  (exit $ac_status); }; }; then
4597  ac_compiler_gnu=yes
4598else
4599  echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602ac_compiler_gnu=no
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4606
4607fi
4608echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4609echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4610GXX=`test $ac_compiler_gnu = yes && echo yes`
4611ac_test_CXXFLAGS=${CXXFLAGS+set}
4612ac_save_CXXFLAGS=$CXXFLAGS
4613CXXFLAGS="-g"
4614echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4615echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4616if test "${ac_cv_prog_cxx_g+set}" = set; then
4617  echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619  cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h.  */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h.  */
4625
4626int
4627main ()
4628{
4629
4630  ;
4631  return 0;
4632}
4633_ACEOF
4634rm -f conftest.$ac_objext
4635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636  (eval $ac_compile) 2>conftest.er1
4637  ac_status=$?
4638  grep -v '^ *+' conftest.er1 >conftest.err
4639  rm -f conftest.er1
4640  cat conftest.err >&5
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); } &&
4643	 { ac_try='test -z "$ac_cxx_werror_flag"
4644			 || test ! -s conftest.err'
4645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646  (eval $ac_try) 2>&5
4647  ac_status=$?
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); }; } &&
4650	 { ac_try='test -s conftest.$ac_objext'
4651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652  (eval $ac_try) 2>&5
4653  ac_status=$?
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); }; }; then
4656  ac_cv_prog_cxx_g=yes
4657else
4658  echo "$as_me: failed program was:" >&5
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661ac_cv_prog_cxx_g=no
4662fi
4663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664fi
4665echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4666echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4667if test "$ac_test_CXXFLAGS" = set; then
4668  CXXFLAGS=$ac_save_CXXFLAGS
4669elif test $ac_cv_prog_cxx_g = yes; then
4670  if test "$GXX" = yes; then
4671    CXXFLAGS="-g -O2"
4672  else
4673    CXXFLAGS="-g"
4674  fi
4675else
4676  if test "$GXX" = yes; then
4677    CXXFLAGS="-O2"
4678  else
4679    CXXFLAGS=
4680  fi
4681fi
4682for ac_declaration in \
4683   '' \
4684   'extern "C" void std::exit (int) throw (); using std::exit;' \
4685   'extern "C" void std::exit (int); using std::exit;' \
4686   'extern "C" void exit (int) throw ();' \
4687   'extern "C" void exit (int);' \
4688   'void exit (int);'
4689do
4690  cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h.  */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h.  */
4696$ac_declaration
4697#include <stdlib.h>
4698int
4699main ()
4700{
4701exit (42);
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708  (eval $ac_compile) 2>conftest.er1
4709  ac_status=$?
4710  grep -v '^ *+' conftest.er1 >conftest.err
4711  rm -f conftest.er1
4712  cat conftest.err >&5
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); } &&
4715	 { ac_try='test -z "$ac_cxx_werror_flag"
4716			 || test ! -s conftest.err'
4717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718  (eval $ac_try) 2>&5
4719  ac_status=$?
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); }; } &&
4722	 { ac_try='test -s conftest.$ac_objext'
4723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724  (eval $ac_try) 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; }; then
4728  :
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733continue
4734fi
4735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736  cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742$ac_declaration
4743int
4744main ()
4745{
4746exit (42);
4747  ;
4748  return 0;
4749}
4750_ACEOF
4751rm -f conftest.$ac_objext
4752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753  (eval $ac_compile) 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } &&
4760	 { ac_try='test -z "$ac_cxx_werror_flag"
4761			 || test ! -s conftest.err'
4762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763  (eval $ac_try) 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); }; } &&
4767	 { ac_try='test -s conftest.$ac_objext'
4768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769  (eval $ac_try) 2>&5
4770  ac_status=$?
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); }; }; then
4773  break
4774else
4775  echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778fi
4779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780done
4781rm -f conftest*
4782if test -n "$ac_declaration"; then
4783  echo '#ifdef __cplusplus' >>confdefs.h
4784  echo $ac_declaration      >>confdefs.h
4785  echo '#endif'             >>confdefs.h
4786fi
4787
4788ac_ext=cc
4789ac_cpp='$CXXCPP $CPPFLAGS'
4790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4793
4794depcc="$CXX"  am_compiler_list=
4795
4796echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4797echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4798if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4799  echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4802  # We make a subdir and do the tests there.  Otherwise we can end up
4803  # making bogus files that we don't know about and never remove.  For
4804  # instance it was reported that on HP-UX the gcc test will end up
4805  # making a dummy file named `D' -- because `-MD' means `put the output
4806  # in D'.
4807  mkdir conftest.dir
4808  # Copy depcomp to subdir because otherwise we won't find it if we're
4809  # using a relative directory.
4810  cp "$am_depcomp" conftest.dir
4811  cd conftest.dir
4812  # We will build objects and dependencies in a subdirectory because
4813  # it helps to detect inapplicable dependency modes.  For instance
4814  # both Tru64's cc and ICC support -MD to output dependencies as a
4815  # side effect of compilation, but ICC will put the dependencies in
4816  # the current directory while Tru64 will put them in the object
4817  # directory.
4818  mkdir sub
4819
4820  am_cv_CXX_dependencies_compiler_type=none
4821  if test "$am_compiler_list" = ""; then
4822     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4823  fi
4824  for depmode in $am_compiler_list; do
4825    # Setup a source with many dependencies, because some compilers
4826    # like to wrap large dependency lists on column 80 (with \), and
4827    # we should not choose a depcomp mode which is confused by this.
4828    #
4829    # We need to recreate these files for each test, as the compiler may
4830    # overwrite some of them when testing with obscure command lines.
4831    # This happens at least with the AIX C compiler.
4832    : > sub/conftest.c
4833    for i in 1 2 3 4 5 6; do
4834      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4835      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4836      # Solaris 8's {/usr,}/bin/sh.
4837      touch sub/conftst$i.h
4838    done
4839    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4840
4841    case $depmode in
4842    nosideeffect)
4843      # after this tag, mechanisms are not by side-effect, so they'll
4844      # only be used when explicitly requested
4845      if test "x$enable_dependency_tracking" = xyes; then
4846	continue
4847      else
4848	break
4849      fi
4850      ;;
4851    none) break ;;
4852    esac
4853    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4854    # mode.  It turns out that the SunPro C++ compiler does not properly
4855    # handle `-M -o', and we need to detect this.
4856    if depmode=$depmode \
4857       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4858       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4859       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4860         >/dev/null 2>conftest.err &&
4861       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4862       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4863       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4864      # icc doesn't choke on unknown options, it will just issue warnings
4865      # or remarks (even with -Werror).  So we grep stderr for any message
4866      # that says an option was ignored or not supported.
4867      # When given -MP, icc 7.0 and 7.1 complain thusly:
4868      #   icc: Command line warning: ignoring option '-M'; no argument required
4869      # The diagnosis changed in icc 8.0:
4870      #   icc: Command line remark: option '-MP' not supported
4871      if (grep 'ignoring option' conftest.err ||
4872          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4873        am_cv_CXX_dependencies_compiler_type=$depmode
4874        break
4875      fi
4876    fi
4877  done
4878
4879  cd ..
4880  rm -rf conftest.dir
4881else
4882  am_cv_CXX_dependencies_compiler_type=none
4883fi
4884
4885fi
4886echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4887echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4888CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4889
4890
4891
4892if
4893  test "x$enable_dependency_tracking" != xno \
4894  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4895  am__fastdepCXX_TRUE=
4896  am__fastdepCXX_FALSE='#'
4897else
4898  am__fastdepCXX_TRUE='#'
4899  am__fastdepCXX_FALSE=
4900fi
4901
4902
4903
4904
4905if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4906    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4907    (test "X$CXX" != "Xg++"))) ; then
4908  ac_ext=cc
4909ac_cpp='$CXXCPP $CPPFLAGS'
4910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4914echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4915if test -z "$CXXCPP"; then
4916  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919      # Double quotes because CXXCPP needs to be expanded
4920    for CXXCPP in "$CXX -E" "/lib/cpp"
4921    do
4922      ac_preproc_ok=false
4923for ac_cxx_preproc_warn_flag in '' yes
4924do
4925  # Use a header file that comes with gcc, so configuring glibc
4926  # with a fresh cross-compiler works.
4927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928  # <limits.h> exists even on freestanding compilers.
4929  # On the NeXT, cc -E runs the code through the compiler's parser,
4930  # not just through cpp. "Syntax error" is here to catch this case.
4931  cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h.  */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h.  */
4937#ifdef __STDC__
4938# include <limits.h>
4939#else
4940# include <assert.h>
4941#endif
4942		     Syntax error
4943_ACEOF
4944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946  ac_status=$?
4947  grep -v '^ *+' conftest.er1 >conftest.err
4948  rm -f conftest.er1
4949  cat conftest.err >&5
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } >/dev/null; then
4952  if test -s conftest.err; then
4953    ac_cpp_err=$ac_cxx_preproc_warn_flag
4954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4955  else
4956    ac_cpp_err=
4957  fi
4958else
4959  ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962  :
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967  # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.$ac_ext
4971
4972  # OK, works on sane cases.  Now check whether non-existent headers
4973  # can be detected and how.
4974  cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980#include <ac_nonexistent.h>
4981_ACEOF
4982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } >/dev/null; then
4990  if test -s conftest.err; then
4991    ac_cpp_err=$ac_cxx_preproc_warn_flag
4992    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4993  else
4994    ac_cpp_err=
4995  fi
4996else
4997  ac_cpp_err=yes
4998fi
4999if test -z "$ac_cpp_err"; then
5000  # Broken: success on invalid input.
5001continue
5002else
5003  echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006  # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016  break
5017fi
5018
5019    done
5020    ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023  CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025  ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032  # Use a header file that comes with gcc, so configuring glibc
5033  # with a fresh cross-compiler works.
5034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035  # <limits.h> exists even on freestanding compilers.
5036  # On the NeXT, cc -E runs the code through the compiler's parser,
5037  # not just through cpp. "Syntax error" is here to catch this case.
5038  cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h.  */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h.  */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049		     Syntax error
5050_ACEOF
5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053  ac_status=$?
5054  grep -v '^ *+' conftest.er1 >conftest.err
5055  rm -f conftest.er1
5056  cat conftest.err >&5
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); } >/dev/null; then
5059  if test -s conftest.err; then
5060    ac_cpp_err=$ac_cxx_preproc_warn_flag
5061    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062  else
5063    ac_cpp_err=
5064  fi
5065else
5066  ac_cpp_err=yes
5067fi
5068if test -z "$ac_cpp_err"; then
5069  :
5070else
5071  echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074  # Broken: fails on valid input.
5075continue
5076fi
5077rm -f conftest.err conftest.$ac_ext
5078
5079  # OK, works on sane cases.  Now check whether non-existent headers
5080  # can be detected and how.
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087#include <ac_nonexistent.h>
5088_ACEOF
5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } >/dev/null; then
5097  if test -s conftest.err; then
5098    ac_cpp_err=$ac_cxx_preproc_warn_flag
5099    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5100  else
5101    ac_cpp_err=
5102  fi
5103else
5104  ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
5107  # Broken: success on invalid input.
5108continue
5109else
5110  echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113  # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then
5123  :
5124else
5125  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&5
5127echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5128See \`config.log' for more details." >&2;}
5129   { (exit 1); exit 1; }; }
5130fi
5131
5132ac_ext=cc
5133ac_cpp='$CXXCPP $CPPFLAGS'
5134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137
5138fi
5139
5140
5141ac_ext=f
5142ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5143ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5145if test -n "$ac_tool_prefix"; then
5146  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5147  do
5148    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_F77+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  if test -n "$F77"; then
5156  ac_cv_prog_F77="$F77" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163  for ac_exec_ext in '' $ac_executable_extensions; do
5164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167    break 2
5168  fi
5169done
5170done
5171
5172fi
5173fi
5174F77=$ac_cv_prog_F77
5175if test -n "$F77"; then
5176  echo "$as_me:$LINENO: result: $F77" >&5
5177echo "${ECHO_T}$F77" >&6
5178else
5179  echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183    test -n "$F77" && break
5184  done
5185fi
5186if test -z "$F77"; then
5187  ac_ct_F77=$F77
5188  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5189do
5190  # Extract the first word of "$ac_prog", so it can be a program name with args.
5191set dummy $ac_prog; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  if test -n "$ac_ct_F77"; then
5198  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for ac_exec_ext in '' $ac_executable_extensions; do
5206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207    ac_cv_prog_ac_ct_F77="$ac_prog"
5208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212done
5213
5214fi
5215fi
5216ac_ct_F77=$ac_cv_prog_ac_ct_F77
5217if test -n "$ac_ct_F77"; then
5218  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5219echo "${ECHO_T}$ac_ct_F77" >&6
5220else
5221  echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225  test -n "$ac_ct_F77" && break
5226done
5227
5228  F77=$ac_ct_F77
5229fi
5230
5231
5232# Provide some information about the compiler.
5233echo "$as_me:5233:" \
5234     "checking for Fortran 77 compiler version" >&5
5235ac_compiler=`set X $ac_compile; echo $2`
5236{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5237  (eval $ac_compiler --version </dev/null >&5) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }
5241{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5242  (eval $ac_compiler -v </dev/null >&5) 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }
5246{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5247  (eval $ac_compiler -V </dev/null >&5) 2>&5
5248  ac_status=$?
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); }
5251rm -f a.out
5252
5253# If we don't use `.F' as extension, the preprocessor is not run on the
5254# input file.  (Note that this only needs to work for GNU compilers.)
5255ac_save_ext=$ac_ext
5256ac_ext=F
5257echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5258echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5259if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  cat >conftest.$ac_ext <<_ACEOF
5263      program main
5264#ifndef __GNUC__
5265       choke me
5266#endif
5267
5268      end
5269_ACEOF
5270rm -f conftest.$ac_objext
5271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272  (eval $ac_compile) 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } &&
5279	 { ac_try='test -z "$ac_f77_werror_flag"
5280			 || test ! -s conftest.err'
5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282  (eval $ac_try) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; } &&
5286	 { ac_try='test -s conftest.$ac_objext'
5287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288  (eval $ac_try) 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); }; }; then
5292  ac_compiler_gnu=yes
5293else
5294  echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297ac_compiler_gnu=no
5298fi
5299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5301
5302fi
5303echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5304echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5305ac_ext=$ac_save_ext
5306ac_test_FFLAGS=${FFLAGS+set}
5307ac_save_FFLAGS=$FFLAGS
5308FFLAGS=
5309echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5310echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5311if test "${ac_cv_prog_f77_g+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  FFLAGS=-g
5315cat >conftest.$ac_ext <<_ACEOF
5316      program main
5317
5318      end
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322  (eval $ac_compile) 2>conftest.er1
5323  ac_status=$?
5324  grep -v '^ *+' conftest.er1 >conftest.err
5325  rm -f conftest.er1
5326  cat conftest.err >&5
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); } &&
5329	 { ac_try='test -z "$ac_f77_werror_flag"
5330			 || test ! -s conftest.err'
5331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332  (eval $ac_try) 2>&5
5333  ac_status=$?
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); }; } &&
5336	 { ac_try='test -s conftest.$ac_objext'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; }; then
5342  ac_cv_prog_f77_g=yes
5343else
5344  echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347ac_cv_prog_f77_g=no
5348fi
5349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5350
5351fi
5352echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5353echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5354if test "$ac_test_FFLAGS" = set; then
5355  FFLAGS=$ac_save_FFLAGS
5356elif test $ac_cv_prog_f77_g = yes; then
5357  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5358    FFLAGS="-g -O2"
5359  else
5360    FFLAGS="-g"
5361  fi
5362else
5363  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5364    FFLAGS="-O2"
5365  else
5366    FFLAGS=
5367  fi
5368fi
5369
5370G77=`test $ac_compiler_gnu = yes && echo yes`
5371ac_ext=c
5372ac_cpp='$CPP $CPPFLAGS'
5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
5377
5378
5379# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5380
5381# find the maximum length of command line arguments
5382echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5383echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5384if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387    i=0
5388  teststring="ABCD"
5389
5390  case $build_os in
5391  msdosdjgpp*)
5392    # On DJGPP, this test can blow up pretty badly due to problems in libc
5393    # (any single argument exceeding 2000 bytes causes a buffer overrun
5394    # during glob expansion).  Even if it were fixed, the result of this
5395    # check would be larger than it should be.
5396    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5397    ;;
5398
5399  gnu*)
5400    # Under GNU Hurd, this test is not required because there is
5401    # no limit to the length of command line arguments.
5402    # Libtool will interpret -1 as no limit whatsoever
5403    lt_cv_sys_max_cmd_len=-1;
5404    ;;
5405
5406  cygwin* | mingw*)
5407    # On Win9x/ME, this test blows up -- it succeeds, but takes
5408    # about 5 minutes as the teststring grows exponentially.
5409    # Worse, since 9x/ME are not pre-emptively multitasking,
5410    # you end up with a "frozen" computer, even though with patience
5411    # the test eventually succeeds (with a max line length of 256k).
5412    # Instead, let's just punt: use the minimum linelength reported by
5413    # all of the supported platforms: 8192 (on NT/2K/XP).
5414    lt_cv_sys_max_cmd_len=8192;
5415    ;;
5416
5417  amigaos*)
5418    # On AmigaOS with pdksh, this test takes hours, literally.
5419    # So we just punt and use a minimum line length of 8192.
5420    lt_cv_sys_max_cmd_len=8192;
5421    ;;
5422
5423  netbsd* | freebsd* | openbsd* | darwin* )
5424    # This has been around since 386BSD, at least.  Likely further.
5425    if test -x /sbin/sysctl; then
5426      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5427    elif test -x /usr/sbin/sysctl; then
5428      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5429    else
5430      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5431    fi
5432    # And add a safety zone
5433    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5434    ;;
5435
5436 *)
5437    # If test is not a shell built-in, we'll probably end up computing a
5438    # maximum length that is only half of the actual maximum length, but
5439    # we can't tell.
5440    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5441    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5442	       = "XX$teststring") >/dev/null 2>&1 &&
5443	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5444	    lt_cv_sys_max_cmd_len=$new_result &&
5445	    test $i != 17 # 1/2 MB should be enough
5446    do
5447      i=`expr $i + 1`
5448      teststring=$teststring$teststring
5449    done
5450    teststring=
5451    # Add a significant safety factor because C++ compilers can tack on massive
5452    # amounts of additional arguments before passing them to the linker.
5453    # It appears as though 1/2 is a usable value.
5454    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5455    ;;
5456  esac
5457
5458fi
5459
5460if test -n $lt_cv_sys_max_cmd_len ; then
5461  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5462echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5463else
5464  echo "$as_me:$LINENO: result: none" >&5
5465echo "${ECHO_T}none" >&6
5466fi
5467
5468
5469
5470
5471# Check for command to grab the raw symbol name followed by C symbol from nm.
5472echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5473echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5474if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5475  echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477
5478# These are sane defaults that work on at least a few old systems.
5479# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5480
5481# Character class describing NM global symbol codes.
5482symcode='[BCDEGRST]'
5483
5484# Regexp to match symbols that can be accessed directly from C.
5485sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5486
5487# Transform the above into a raw symbol and a C symbol.
5488symxfrm='\1 \2\3 \3'
5489
5490# Transform an extracted symbol line into a proper C declaration
5491lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5492
5493# Transform an extracted symbol line into symbol name and symbol address
5494lt_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'"
5495
5496# Define system-specific variables.
5497case $host_os in
5498aix*)
5499  symcode='[BCDT]'
5500  ;;
5501cygwin* | mingw* | pw32*)
5502  symcode='[ABCDGISTW]'
5503  ;;
5504hpux*) # Its linker distinguishes data from code symbols
5505  if test "$host_cpu" = ia64; then
5506    symcode='[ABCDEGRST]'
5507  fi
5508  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5509  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'"
5510  ;;
5511linux*)
5512  if test "$host_cpu" = ia64; then
5513    symcode='[ABCDGIRSTW]'
5514    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515    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'"
5516  fi
5517  ;;
5518irix* | nonstopux*)
5519  symcode='[BCDEGRST]'
5520  ;;
5521osf*)
5522  symcode='[BCDEGQRST]'
5523  ;;
5524solaris* | sysv5*)
5525  symcode='[BDRT]'
5526  ;;
5527sysv4)
5528  symcode='[DFNSTU]'
5529  ;;
5530esac
5531
5532# Handle CRLF in mingw tool chain
5533opt_cr=
5534case $build_os in
5535mingw*)
5536  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5537  ;;
5538esac
5539
5540# If we're using GNU nm, then use its standard symbol codes.
5541case `$NM -V 2>&1` in
5542*GNU* | *'with BFD'*)
5543  symcode='[ABCDGIRSTW]' ;;
5544esac
5545
5546# Try without a prefix undercore, then with it.
5547for ac_symprfx in "" "_"; do
5548
5549  # Write the raw and C identifiers.
5550  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5551
5552  # Check to see that the pipe works correctly.
5553  pipe_works=no
5554
5555  rm -f conftest*
5556  cat > conftest.$ac_ext <<EOF
5557#ifdef __cplusplus
5558extern "C" {
5559#endif
5560char nm_test_var;
5561void nm_test_func(){}
5562#ifdef __cplusplus
5563}
5564#endif
5565int main(){nm_test_var='a';nm_test_func();return(0);}
5566EOF
5567
5568  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569  (eval $ac_compile) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; then
5573    # Now try to grab the symbols.
5574    nlist=conftest.nm
5575    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5576  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577  ac_status=$?
5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579  (exit $ac_status); } && test -s "$nlist"; then
5580      # Try sorting and uniquifying the output.
5581      if sort "$nlist" | uniq > "$nlist"T; then
5582	mv -f "$nlist"T "$nlist"
5583      else
5584	rm -f "$nlist"T
5585      fi
5586
5587      # Make sure that we snagged all the symbols we need.
5588      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5589	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5590	  cat <<EOF > conftest.$ac_ext
5591#ifdef __cplusplus
5592extern "C" {
5593#endif
5594
5595EOF
5596	  # Now generate the symbol file.
5597	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5598
5599	  cat <<EOF >> conftest.$ac_ext
5600#if defined (__STDC__) && __STDC__
5601# define lt_ptr_t void *
5602#else
5603# define lt_ptr_t char *
5604# define const
5605#endif
5606
5607/* The mapping between symbol names and symbols. */
5608const struct {
5609  const char *name;
5610  lt_ptr_t address;
5611}
5612lt_preloaded_symbols[] =
5613{
5614EOF
5615	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5616	  cat <<\EOF >> conftest.$ac_ext
5617  {0, (lt_ptr_t) 0}
5618};
5619
5620#ifdef __cplusplus
5621}
5622#endif
5623EOF
5624	  # Now try linking the two files.
5625	  mv conftest.$ac_objext conftstm.$ac_objext
5626	  lt_save_LIBS="$LIBS"
5627	  lt_save_CFLAGS="$CFLAGS"
5628	  LIBS="conftstm.$ac_objext"
5629	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631  (eval $ac_link) 2>&5
5632  ac_status=$?
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5635	    pipe_works=yes
5636	  fi
5637	  LIBS="$lt_save_LIBS"
5638	  CFLAGS="$lt_save_CFLAGS"
5639	else
5640	  echo "cannot find nm_test_func in $nlist" >&5
5641	fi
5642      else
5643	echo "cannot find nm_test_var in $nlist" >&5
5644      fi
5645    else
5646      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647    fi
5648  else
5649    echo "$progname: failed program was:" >&5
5650    cat conftest.$ac_ext >&5
5651  fi
5652  rm -f conftest* conftst*
5653
5654  # Do not use the global_symbol_pipe unless it works.
5655  if test "$pipe_works" = yes; then
5656    break
5657  else
5658    lt_cv_sys_global_symbol_pipe=
5659  fi
5660done
5661
5662fi
5663
5664if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665  lt_cv_sys_global_symbol_to_cdecl=
5666fi
5667if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668  echo "$as_me:$LINENO: result: failed" >&5
5669echo "${ECHO_T}failed" >&6
5670else
5671  echo "$as_me:$LINENO: result: ok" >&5
5672echo "${ECHO_T}ok" >&6
5673fi
5674
5675echo "$as_me:$LINENO: checking for objdir" >&5
5676echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5677if test "${lt_cv_objdir+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  rm -f .libs 2>/dev/null
5681mkdir .libs 2>/dev/null
5682if test -d .libs; then
5683  lt_cv_objdir=.libs
5684else
5685  # MS-DOS does not allow filenames that begin with a dot.
5686  lt_cv_objdir=_libs
5687fi
5688rmdir .libs 2>/dev/null
5689fi
5690echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5691echo "${ECHO_T}$lt_cv_objdir" >&6
5692objdir=$lt_cv_objdir
5693
5694
5695
5696
5697
5698case $host_os in
5699aix3*)
5700  # AIX sometimes has problems with the GCC collect2 program.  For some
5701  # reason, if we set the COLLECT_NAMES environment variable, the problems
5702  # vanish in a puff of smoke.
5703  if test "X${COLLECT_NAMES+set}" != Xset; then
5704    COLLECT_NAMES=
5705    export COLLECT_NAMES
5706  fi
5707  ;;
5708esac
5709
5710# Sed substitution that helps us do robust quoting.  It backslashifies
5711# metacharacters that are still active within double-quoted strings.
5712Xsed='sed -e s/^X//'
5713sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5714
5715# Same as above, but do not quote variable references.
5716double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5717
5718# Sed substitution to delay expansion of an escaped shell variable in a
5719# double_quote_subst'ed string.
5720delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721
5722# Sed substitution to avoid accidental globbing in evaled expressions
5723no_glob_subst='s/\*/\\\*/g'
5724
5725# Constants:
5726rm="rm -f"
5727
5728# Global variables:
5729default_ofile=libtool
5730can_build_shared=yes
5731
5732# All known linkers require a `.a' archive for static linking (except M$VC,
5733# which needs '.lib').
5734libext=a
5735ltmain="$ac_aux_dir/ltmain.sh"
5736ofile="$default_ofile"
5737with_gnu_ld="$lt_cv_prog_gnu_ld"
5738
5739if test -n "$ac_tool_prefix"; then
5740  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5741set dummy ${ac_tool_prefix}ar; ac_word=$2
5742echo "$as_me:$LINENO: checking for $ac_word" >&5
5743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744if test "${ac_cv_prog_AR+set}" = set; then
5745  echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747  if test -n "$AR"; then
5748  ac_cv_prog_AR="$AR" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755  for ac_exec_ext in '' $ac_executable_extensions; do
5756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_AR="${ac_tool_prefix}ar"
5758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762done
5763
5764fi
5765fi
5766AR=$ac_cv_prog_AR
5767if test -n "$AR"; then
5768  echo "$as_me:$LINENO: result: $AR" >&5
5769echo "${ECHO_T}$AR" >&6
5770else
5771  echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773fi
5774
5775fi
5776if test -z "$ac_cv_prog_AR"; then
5777  ac_ct_AR=$AR
5778  # Extract the first word of "ar", so it can be a program name with args.
5779set dummy ar; ac_word=$2
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  if test -n "$ac_ct_AR"; then
5786  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793  for ac_exec_ext in '' $ac_executable_extensions; do
5794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_ac_ct_AR="ar"
5796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800done
5801
5802  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5803fi
5804fi
5805ac_ct_AR=$ac_cv_prog_ac_ct_AR
5806if test -n "$ac_ct_AR"; then
5807  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5808echo "${ECHO_T}$ac_ct_AR" >&6
5809else
5810  echo "$as_me:$LINENO: result: no" >&5
5811echo "${ECHO_T}no" >&6
5812fi
5813
5814  AR=$ac_ct_AR
5815else
5816  AR="$ac_cv_prog_AR"
5817fi
5818
5819if test -n "$ac_tool_prefix"; then
5820  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5821set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5822echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824if test "${ac_cv_prog_RANLIB+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  if test -n "$RANLIB"; then
5828  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835  for ac_exec_ext in '' $ac_executable_extensions; do
5836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842done
5843
5844fi
5845fi
5846RANLIB=$ac_cv_prog_RANLIB
5847if test -n "$RANLIB"; then
5848  echo "$as_me:$LINENO: result: $RANLIB" >&5
5849echo "${ECHO_T}$RANLIB" >&6
5850else
5851  echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
5853fi
5854
5855fi
5856if test -z "$ac_cv_prog_RANLIB"; then
5857  ac_ct_RANLIB=$RANLIB
5858  # Extract the first word of "ranlib", so it can be a program name with args.
5859set dummy ranlib; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$ac_ct_RANLIB"; then
5866  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875    ac_cv_prog_ac_ct_RANLIB="ranlib"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881
5882  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5883fi
5884fi
5885ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5886if test -n "$ac_ct_RANLIB"; then
5887  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5888echo "${ECHO_T}$ac_ct_RANLIB" >&6
5889else
5890  echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
5892fi
5893
5894  RANLIB=$ac_ct_RANLIB
5895else
5896  RANLIB="$ac_cv_prog_RANLIB"
5897fi
5898
5899if test -n "$ac_tool_prefix"; then
5900  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901set dummy ${ac_tool_prefix}strip; ac_word=$2
5902echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904if test "${ac_cv_prog_STRIP+set}" = set; then
5905  echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907  if test -n "$STRIP"; then
5908  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915  for ac_exec_ext in '' $ac_executable_extensions; do
5916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922done
5923
5924fi
5925fi
5926STRIP=$ac_cv_prog_STRIP
5927if test -n "$STRIP"; then
5928  echo "$as_me:$LINENO: result: $STRIP" >&5
5929echo "${ECHO_T}$STRIP" >&6
5930else
5931  echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
5933fi
5934
5935fi
5936if test -z "$ac_cv_prog_STRIP"; then
5937  ac_ct_STRIP=$STRIP
5938  # Extract the first word of "strip", so it can be a program name with args.
5939set dummy strip; ac_word=$2
5940echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  if test -n "$ac_ct_STRIP"; then
5946  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5947else
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951  IFS=$as_save_IFS
5952  test -z "$as_dir" && as_dir=.
5953  for ac_exec_ext in '' $ac_executable_extensions; do
5954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955    ac_cv_prog_ac_ct_STRIP="strip"
5956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957    break 2
5958  fi
5959done
5960done
5961
5962  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5963fi
5964fi
5965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5966if test -n "$ac_ct_STRIP"; then
5967  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5968echo "${ECHO_T}$ac_ct_STRIP" >&6
5969else
5970  echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6
5972fi
5973
5974  STRIP=$ac_ct_STRIP
5975else
5976  STRIP="$ac_cv_prog_STRIP"
5977fi
5978
5979
5980old_CC="$CC"
5981old_CFLAGS="$CFLAGS"
5982
5983# Set sane defaults for various variables
5984test -z "$AR" && AR=ar
5985test -z "$AR_FLAGS" && AR_FLAGS=cru
5986test -z "$AS" && AS=as
5987test -z "$CC" && CC=cc
5988test -z "$LTCC" && LTCC=$CC
5989test -z "$DLLTOOL" && DLLTOOL=dlltool
5990test -z "$LD" && LD=ld
5991test -z "$LN_S" && LN_S="ln -s"
5992test -z "$MAGIC_CMD" && MAGIC_CMD=file
5993test -z "$NM" && NM=nm
5994test -z "$SED" && SED=sed
5995test -z "$OBJDUMP" && OBJDUMP=objdump
5996test -z "$RANLIB" && RANLIB=:
5997test -z "$STRIP" && STRIP=:
5998test -z "$ac_objext" && ac_objext=o
5999
6000# Determine commands to create old-style static archives.
6001old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6002old_postinstall_cmds='chmod 644 $oldlib'
6003old_postuninstall_cmds=
6004
6005if test -n "$RANLIB"; then
6006  case $host_os in
6007  openbsd*)
6008    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6009    ;;
6010  *)
6011    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6012    ;;
6013  esac
6014  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6015fi
6016
6017cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6018
6019# Only perform the check for file, if the check method requires it
6020case $deplibs_check_method in
6021file_magic*)
6022  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6023    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6024echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6025if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6026  echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028  case $MAGIC_CMD in
6029[\\/*] |  ?:[\\/]*)
6030  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6031  ;;
6032*)
6033  lt_save_MAGIC_CMD="$MAGIC_CMD"
6034  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6036  for ac_dir in $ac_dummy; do
6037    IFS="$lt_save_ifs"
6038    test -z "$ac_dir" && ac_dir=.
6039    if test -f $ac_dir/${ac_tool_prefix}file; then
6040      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6041      if test -n "$file_magic_test_file"; then
6042	case $deplibs_check_method in
6043	"file_magic "*)
6044	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6045	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6046	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6047	    $EGREP "$file_magic_regex" > /dev/null; then
6048	    :
6049	  else
6050	    cat <<EOF 1>&2
6051
6052*** Warning: the command libtool uses to detect shared libraries,
6053*** $file_magic_cmd, produces output that libtool cannot recognize.
6054*** The result is that libtool may fail to recognize shared libraries
6055*** as such.  This will affect the creation of libtool libraries that
6056*** depend on shared libraries, but programs linked with such libtool
6057*** libraries will work regardless of this problem.  Nevertheless, you
6058*** may want to report the problem to your system manager and/or to
6059*** bug-libtool@gnu.org
6060
6061EOF
6062	  fi ;;
6063	esac
6064      fi
6065      break
6066    fi
6067  done
6068  IFS="$lt_save_ifs"
6069  MAGIC_CMD="$lt_save_MAGIC_CMD"
6070  ;;
6071esac
6072fi
6073
6074MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6075if test -n "$MAGIC_CMD"; then
6076  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6077echo "${ECHO_T}$MAGIC_CMD" >&6
6078else
6079  echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6
6081fi
6082
6083if test -z "$lt_cv_path_MAGIC_CMD"; then
6084  if test -n "$ac_tool_prefix"; then
6085    echo "$as_me:$LINENO: checking for file" >&5
6086echo $ECHO_N "checking for file... $ECHO_C" >&6
6087if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  case $MAGIC_CMD in
6091[\\/*] |  ?:[\\/]*)
6092  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6093  ;;
6094*)
6095  lt_save_MAGIC_CMD="$MAGIC_CMD"
6096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6097  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6098  for ac_dir in $ac_dummy; do
6099    IFS="$lt_save_ifs"
6100    test -z "$ac_dir" && ac_dir=.
6101    if test -f $ac_dir/file; then
6102      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6103      if test -n "$file_magic_test_file"; then
6104	case $deplibs_check_method in
6105	"file_magic "*)
6106	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6107	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6109	    $EGREP "$file_magic_regex" > /dev/null; then
6110	    :
6111	  else
6112	    cat <<EOF 1>&2
6113
6114*** Warning: the command libtool uses to detect shared libraries,
6115*** $file_magic_cmd, produces output that libtool cannot recognize.
6116*** The result is that libtool may fail to recognize shared libraries
6117*** as such.  This will affect the creation of libtool libraries that
6118*** depend on shared libraries, but programs linked with such libtool
6119*** libraries will work regardless of this problem.  Nevertheless, you
6120*** may want to report the problem to your system manager and/or to
6121*** bug-libtool@gnu.org
6122
6123EOF
6124	  fi ;;
6125	esac
6126      fi
6127      break
6128    fi
6129  done
6130  IFS="$lt_save_ifs"
6131  MAGIC_CMD="$lt_save_MAGIC_CMD"
6132  ;;
6133esac
6134fi
6135
6136MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137if test -n "$MAGIC_CMD"; then
6138  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6139echo "${ECHO_T}$MAGIC_CMD" >&6
6140else
6141  echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143fi
6144
6145  else
6146    MAGIC_CMD=:
6147  fi
6148fi
6149
6150  fi
6151  ;;
6152esac
6153
6154enable_dlopen=no
6155enable_win32_dll=no
6156
6157# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6158if test "${enable_libtool_lock+set}" = set; then
6159  enableval="$enable_libtool_lock"
6160
6161fi;
6162test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6163
6164
6165# Check whether --with-pic or --without-pic was given.
6166if test "${with_pic+set}" = set; then
6167  withval="$with_pic"
6168  pic_mode="$withval"
6169else
6170  pic_mode=default
6171fi;
6172test -z "$pic_mode" && pic_mode=default
6173
6174# Use C for the default configuration in the libtool script
6175tagname=
6176lt_save_CC="$CC"
6177ac_ext=c
6178ac_cpp='$CPP $CPPFLAGS'
6179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6181ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182
6183
6184# Source file extension for C test sources.
6185ac_ext=c
6186
6187# Object file extension for compiled C test sources.
6188objext=o
6189objext=$objext
6190
6191# Code to be used in simple compile tests
6192lt_simple_compile_test_code="int some_variable = 0;\n"
6193
6194# Code to be used in simple link tests
6195lt_simple_link_test_code='int main(){return(0);}\n'
6196
6197
6198# If no C compiler was specified, use CC.
6199LTCC=${LTCC-"$CC"}
6200
6201# Allow CC to be a program name with arguments.
6202compiler=$CC
6203
6204
6205#
6206# Check for any special shared library compilation flags.
6207#
6208lt_prog_cc_shlib=
6209if test "$GCC" = no; then
6210  case $host_os in
6211  sco3.2v5*)
6212    lt_prog_cc_shlib='-belf'
6213    ;;
6214  esac
6215fi
6216if test -n "$lt_prog_cc_shlib"; then
6217  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6218echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6219  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6220  else
6221    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6222echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6223    lt_cv_prog_cc_can_build_shared=no
6224  fi
6225fi
6226
6227
6228#
6229# Check to make sure the static flag actually works.
6230#
6231echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6232echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6233if test "${lt_prog_compiler_static_works+set}" = set; then
6234  echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236  lt_prog_compiler_static_works=no
6237   save_LDFLAGS="$LDFLAGS"
6238   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6239   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6240   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6241     # The compiler can only warn and ignore the option if not recognized
6242     # So say no if there are warnings
6243     if test -s conftest.err; then
6244       # Append any errors to the config.log.
6245       cat conftest.err 1>&5
6246     else
6247       lt_prog_compiler_static_works=yes
6248     fi
6249   fi
6250   $rm conftest*
6251   LDFLAGS="$save_LDFLAGS"
6252
6253fi
6254echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6255echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6256
6257if test x"$lt_prog_compiler_static_works" = xyes; then
6258    :
6259else
6260    lt_prog_compiler_static=
6261fi
6262
6263
6264
6265
6266lt_prog_compiler_no_builtin_flag=
6267
6268if test "$GCC" = yes; then
6269  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6270
6271
6272echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6273echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6274if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6275  echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277  lt_cv_prog_compiler_rtti_exceptions=no
6278  ac_outfile=conftest.$ac_objext
6279   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6280   lt_compiler_flag="-fno-rtti -fno-exceptions"
6281   # Insert the option either (1) after the last *FLAGS variable, or
6282   # (2) before a word containing "conftest.", or (3) at the end.
6283   # Note that $ac_compile itself does not contain backslashes and begins
6284   # with a dollar sign (not a hyphen), so the echo should work correctly.
6285   # The option is referenced via a variable to avoid confusing sed.
6286   lt_compile=`echo "$ac_compile" | $SED \
6287   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6288   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6289   -e 's:$: $lt_compiler_flag:'`
6290   (eval echo "\"\$as_me:6290: $lt_compile\"" >&5)
6291   (eval "$lt_compile" 2>conftest.err)
6292   ac_status=$?
6293   cat conftest.err >&5
6294   echo "$as_me:6294: \$? = $ac_status" >&5
6295   if (exit $ac_status) && test -s "$ac_outfile"; then
6296     # The compiler can only warn and ignore the option if not recognized
6297     # So say no if there are warnings
6298     if test ! -s conftest.err; then
6299       lt_cv_prog_compiler_rtti_exceptions=yes
6300     fi
6301   fi
6302   $rm conftest*
6303
6304fi
6305echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6306echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6307
6308if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6309    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6310else
6311    :
6312fi
6313
6314fi
6315
6316lt_prog_compiler_wl=
6317lt_prog_compiler_pic=
6318lt_prog_compiler_static=
6319
6320echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6321echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6322
6323  if test "$GCC" = yes; then
6324    lt_prog_compiler_wl='-Wl,'
6325    lt_prog_compiler_static='-static'
6326
6327    case $host_os in
6328      aix*)
6329      # All AIX code is PIC.
6330      if test "$host_cpu" = ia64; then
6331	# AIX 5 now supports IA64 processor
6332	lt_prog_compiler_static='-Bstatic'
6333      fi
6334      ;;
6335
6336    amigaos*)
6337      # FIXME: we need at least 68020 code to build shared libraries, but
6338      # adding the `-m68020' flag to GCC prevents building anything better,
6339      # like `-m68040'.
6340      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6341      ;;
6342
6343    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6344      # PIC is the default for these OSes.
6345      ;;
6346
6347    mingw* | pw32* | os2*)
6348      # This hack is so that the source file can tell whether it is being
6349      # built for inclusion in a dll (and should export symbols for example).
6350      lt_prog_compiler_pic='-DDLL_EXPORT'
6351      ;;
6352
6353    darwin* | rhapsody*)
6354      # PIC is the default on this platform
6355      # Common symbols not allowed in MH_DYLIB files
6356      lt_prog_compiler_pic='-fno-common'
6357      ;;
6358
6359    msdosdjgpp*)
6360      # Just because we use GCC doesn't mean we suddenly get shared libraries
6361      # on systems that don't support them.
6362      lt_prog_compiler_can_build_shared=no
6363      enable_shared=no
6364      ;;
6365
6366    sysv4*MP*)
6367      if test -d /usr/nec; then
6368	lt_prog_compiler_pic=-Kconform_pic
6369      fi
6370      ;;
6371
6372    hpux*)
6373      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6374      # not for PA HP-UX.
6375      case "$host_cpu" in
6376      hppa*64*|ia64*)
6377	# +Z the default
6378	;;
6379      *)
6380	lt_prog_compiler_pic='-fPIC'
6381	;;
6382      esac
6383      ;;
6384
6385    *)
6386      lt_prog_compiler_pic='-fPIC'
6387      ;;
6388    esac
6389  else
6390    # PORTME Check for flag to pass linker flags through the system compiler.
6391    case $host_os in
6392    aix*)
6393      lt_prog_compiler_wl='-Wl,'
6394      if test "$host_cpu" = ia64; then
6395	# AIX 5 now supports IA64 processor
6396	lt_prog_compiler_static='-Bstatic'
6397      else
6398	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6399      fi
6400      ;;
6401      darwin*)
6402        # PIC is the default on this platform
6403        # Common symbols not allowed in MH_DYLIB files
6404       case "$cc_basename" in
6405         xlc*)
6406         lt_prog_compiler_pic='-qnocommon'
6407         lt_prog_compiler_wl='-Wl,'
6408         ;;
6409       esac
6410       ;;
6411
6412    mingw* | pw32* | os2*)
6413      # This hack is so that the source file can tell whether it is being
6414      # built for inclusion in a dll (and should export symbols for example).
6415      lt_prog_compiler_pic='-DDLL_EXPORT'
6416      ;;
6417
6418    hpux9* | hpux10* | hpux11*)
6419      lt_prog_compiler_wl='-Wl,'
6420      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6421      # not for PA HP-UX.
6422      case "$host_cpu" in
6423      hppa*64*|ia64*)
6424	# +Z the default
6425	;;
6426      *)
6427	lt_prog_compiler_pic='+Z'
6428	;;
6429      esac
6430      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6431      lt_prog_compiler_static='${wl}-a ${wl}archive'
6432      ;;
6433
6434    irix5* | irix6* | nonstopux*)
6435      lt_prog_compiler_wl='-Wl,'
6436      # PIC (with -KPIC) is the default.
6437      lt_prog_compiler_static='-non_shared'
6438      ;;
6439
6440    newsos6)
6441      lt_prog_compiler_pic='-KPIC'
6442      lt_prog_compiler_static='-Bstatic'
6443      ;;
6444
6445    linux*)
6446      case $CC in
6447      icc* | ecc*)
6448	lt_prog_compiler_wl='-Wl,'
6449	lt_prog_compiler_pic='-KPIC'
6450	lt_prog_compiler_static='-static'
6451        ;;
6452      ccc*)
6453        lt_prog_compiler_wl='-Wl,'
6454        # All Alpha code is PIC.
6455        lt_prog_compiler_static='-non_shared'
6456        ;;
6457      esac
6458      ;;
6459
6460    osf3* | osf4* | osf5*)
6461      lt_prog_compiler_wl='-Wl,'
6462      # All OSF/1 code is PIC.
6463      lt_prog_compiler_static='-non_shared'
6464      ;;
6465
6466    sco3.2v5*)
6467      lt_prog_compiler_pic='-Kpic'
6468      lt_prog_compiler_static='-dn'
6469      ;;
6470
6471    solaris*)
6472      lt_prog_compiler_wl='-Wl,'
6473      lt_prog_compiler_pic='-KPIC'
6474      lt_prog_compiler_static='-Bstatic'
6475      ;;
6476
6477    sunos4*)
6478      lt_prog_compiler_wl='-Qoption ld '
6479      lt_prog_compiler_pic='-PIC'
6480      lt_prog_compiler_static='-Bstatic'
6481      ;;
6482
6483    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6484      lt_prog_compiler_wl='-Wl,'
6485      lt_prog_compiler_pic='-KPIC'
6486      lt_prog_compiler_static='-Bstatic'
6487      ;;
6488
6489    sysv4*MP*)
6490      if test -d /usr/nec ;then
6491	lt_prog_compiler_pic='-Kconform_pic'
6492	lt_prog_compiler_static='-Bstatic'
6493      fi
6494      ;;
6495
6496    uts4*)
6497      lt_prog_compiler_pic='-pic'
6498      lt_prog_compiler_static='-Bstatic'
6499      ;;
6500
6501    *)
6502      lt_prog_compiler_can_build_shared=no
6503      ;;
6504    esac
6505  fi
6506
6507echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6508echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6509
6510#
6511# Check to make sure the PIC flag actually works.
6512#
6513if test -n "$lt_prog_compiler_pic"; then
6514
6515echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6516echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6517if test "${lt_prog_compiler_pic_works+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  lt_prog_compiler_pic_works=no
6521  ac_outfile=conftest.$ac_objext
6522   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6523   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6524   # Insert the option either (1) after the last *FLAGS variable, or
6525   # (2) before a word containing "conftest.", or (3) at the end.
6526   # Note that $ac_compile itself does not contain backslashes and begins
6527   # with a dollar sign (not a hyphen), so the echo should work correctly.
6528   # The option is referenced via a variable to avoid confusing sed.
6529   lt_compile=`echo "$ac_compile" | $SED \
6530   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6532   -e 's:$: $lt_compiler_flag:'`
6533   (eval echo "\"\$as_me:6533: $lt_compile\"" >&5)
6534   (eval "$lt_compile" 2>conftest.err)
6535   ac_status=$?
6536   cat conftest.err >&5
6537   echo "$as_me:6537: \$? = $ac_status" >&5
6538   if (exit $ac_status) && test -s "$ac_outfile"; then
6539     # The compiler can only warn and ignore the option if not recognized
6540     # So say no if there are warnings
6541     if test ! -s conftest.err; then
6542       lt_prog_compiler_pic_works=yes
6543     fi
6544   fi
6545   $rm conftest*
6546
6547fi
6548echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6549echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6550
6551if test x"$lt_prog_compiler_pic_works" = xyes; then
6552    case $lt_prog_compiler_pic in
6553     "" | " "*) ;;
6554     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6555     esac
6556else
6557    lt_prog_compiler_pic=
6558     lt_prog_compiler_can_build_shared=no
6559fi
6560
6561fi
6562case "$host_os" in
6563  # For platforms which do not support PIC, -DPIC is meaningless:
6564  *djgpp*)
6565    lt_prog_compiler_pic=
6566    ;;
6567  *)
6568    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6569    ;;
6570esac
6571
6572echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6573echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6574if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577  lt_cv_prog_compiler_c_o=no
6578   $rm -r conftest 2>/dev/null
6579   mkdir conftest
6580   cd conftest
6581   mkdir out
6582   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6583
6584   lt_compiler_flag="-o out/conftest2.$ac_objext"
6585   # Insert the option either (1) after the last *FLAGS variable, or
6586   # (2) before a word containing "conftest.", or (3) at the end.
6587   # Note that $ac_compile itself does not contain backslashes and begins
6588   # with a dollar sign (not a hyphen), so the echo should work correctly.
6589   lt_compile=`echo "$ac_compile" | $SED \
6590   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6591   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592   -e 's:$: $lt_compiler_flag:'`
6593   (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
6594   (eval "$lt_compile" 2>out/conftest.err)
6595   ac_status=$?
6596   cat out/conftest.err >&5
6597   echo "$as_me:6597: \$? = $ac_status" >&5
6598   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6599   then
6600     # The compiler can only warn and ignore the option if not recognized
6601     # So say no if there are warnings
6602     if test ! -s out/conftest.err; then
6603       lt_cv_prog_compiler_c_o=yes
6604     fi
6605   fi
6606   chmod u+w .
6607   $rm conftest*
6608   # SGI C++ compiler will create directory out/ii_files/ for
6609   # template instantiation
6610   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6611   $rm out/* && rmdir out
6612   cd ..
6613   rmdir conftest
6614   $rm conftest*
6615
6616fi
6617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6619
6620
6621hard_links="nottested"
6622if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6623  # do not overwrite the value of need_locks provided by the user
6624  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6625echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6626  hard_links=yes
6627  $rm conftest*
6628  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6629  touch conftest.a
6630  ln conftest.a conftest.b 2>&5 || hard_links=no
6631  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6632  echo "$as_me:$LINENO: result: $hard_links" >&5
6633echo "${ECHO_T}$hard_links" >&6
6634  if test "$hard_links" = no; then
6635    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6636echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6637    need_locks=warn
6638  fi
6639else
6640  need_locks=no
6641fi
6642
6643echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6644echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6645
6646  runpath_var=
6647  allow_undefined_flag=
6648  enable_shared_with_static_runtimes=no
6649  archive_cmds=
6650  archive_expsym_cmds=
6651  old_archive_From_new_cmds=
6652  old_archive_from_expsyms_cmds=
6653  export_dynamic_flag_spec=
6654  whole_archive_flag_spec=
6655  thread_safe_flag_spec=
6656  hardcode_libdir_flag_spec=
6657  hardcode_libdir_flag_spec_ld=
6658  hardcode_libdir_separator=
6659  hardcode_direct=no
6660  hardcode_minus_L=no
6661  hardcode_shlibpath_var=unsupported
6662  link_all_deplibs=unknown
6663  hardcode_automatic=no
6664  module_cmds=
6665  module_expsym_cmds=
6666  always_export_symbols=no
6667  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6668  # include_expsyms should be a list of space-separated symbols to be *always*
6669  # included in the symbol list
6670  include_expsyms=
6671  # exclude_expsyms can be an extended regexp of symbols to exclude
6672  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6673  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6674  # as well as any symbol that contains `d'.
6675  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6676  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6677  # platforms (ab)use it in PIC code, but their linkers get confused if
6678  # the symbol is explicitly referenced.  Since portable code cannot
6679  # rely on this symbol name, it's probably fine to never include it in
6680  # preloaded symbol tables.
6681  extract_expsyms_cmds=
6682
6683  case $host_os in
6684  cygwin* | mingw* | pw32*)
6685    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6686    # When not using gcc, we currently assume that we are using
6687    # Microsoft Visual C++.
6688    if test "$GCC" != yes; then
6689      with_gnu_ld=no
6690    fi
6691    ;;
6692  openbsd*)
6693    with_gnu_ld=no
6694    ;;
6695  esac
6696
6697  ld_shlibs=yes
6698  if test "$with_gnu_ld" = yes; then
6699    # If archive_cmds runs LD, not CC, wlarc should be empty
6700    wlarc='${wl}'
6701
6702    # See if GNU ld supports shared libraries.
6703    case $host_os in
6704    aix3* | aix4* | aix5*)
6705      # On AIX/PPC, the GNU linker is very broken
6706      if test "$host_cpu" != ia64; then
6707	ld_shlibs=no
6708	cat <<EOF 1>&2
6709
6710*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6711*** to be unable to reliably create shared libraries on AIX.
6712*** Therefore, libtool is disabling shared libraries support.  If you
6713*** really care for shared libraries, you may want to modify your PATH
6714*** so that a non-GNU linker is found, and then restart.
6715
6716EOF
6717      fi
6718      ;;
6719
6720    amigaos*)
6721      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)'
6722      hardcode_libdir_flag_spec='-L$libdir'
6723      hardcode_minus_L=yes
6724
6725      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6726      # that the semantics of dynamic libraries on AmigaOS, at least up
6727      # to version 4, is to share data among multiple programs linked
6728      # with the same dynamic library.  Since this doesn't match the
6729      # behavior of shared libraries on other platforms, we can't use
6730      # them.
6731      ld_shlibs=no
6732      ;;
6733
6734    beos*)
6735      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736	allow_undefined_flag=unsupported
6737	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6738	# support --undefined.  This deserves some investigation.  FIXME
6739	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740      else
6741	ld_shlibs=no
6742      fi
6743      ;;
6744
6745    cygwin* | mingw* | pw32*)
6746      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6747      # as there is no search path for DLLs.
6748      hardcode_libdir_flag_spec='-L$libdir'
6749      allow_undefined_flag=unsupported
6750      always_export_symbols=no
6751      enable_shared_with_static_runtimes=yes
6752      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6753
6754      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6755        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6756	# If the export-symbols file already is a .def file (1st line
6757	# is EXPORTS), use it as is; otherwise, prepend...
6758	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759	  cp $export_symbols $output_objdir/$soname.def;
6760	else
6761	  echo EXPORTS > $output_objdir/$soname.def;
6762	  cat $export_symbols >> $output_objdir/$soname.def;
6763	fi~
6764	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6765      else
6766	ld_shlibs=no
6767      fi
6768      ;;
6769
6770    netbsd*)
6771      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6772	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6773	wlarc=
6774      else
6775	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777      fi
6778      ;;
6779
6780    solaris* | sysv5*)
6781      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6782	ld_shlibs=no
6783	cat <<EOF 1>&2
6784
6785*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6786*** create shared libraries on Solaris systems.  Therefore, libtool
6787*** is disabling shared libraries support.  We urge you to upgrade GNU
6788*** binutils to release 2.9.1 or newer.  Another option is to modify
6789*** your PATH or compiler configuration so that the native linker is
6790*** used, and then restart.
6791
6792EOF
6793      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796      else
6797	ld_shlibs=no
6798      fi
6799      ;;
6800
6801    sunos4*)
6802      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6803      wlarc=
6804      hardcode_direct=yes
6805      hardcode_shlibpath_var=no
6806      ;;
6807
6808  linux*)
6809    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6810        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6811	archive_cmds="$tmp_archive_cmds"
6812      supports_anon_versioning=no
6813      case `$LD -v 2>/dev/null` in
6814        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6815        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6816        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6817        *\ 2.11.*) ;; # other 2.11 versions
6818        *) supports_anon_versioning=yes ;;
6819      esac
6820      if test $supports_anon_versioning = yes; then
6821        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6822cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6823$echo "local: *; };" >> $output_objdir/$libname.ver~
6824        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6825      else
6826        archive_expsym_cmds="$tmp_archive_cmds"
6827      fi
6828    else
6829      ld_shlibs=no
6830    fi
6831    ;;
6832
6833    *)
6834      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6835	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6836	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6837      else
6838	ld_shlibs=no
6839      fi
6840      ;;
6841    esac
6842
6843    if test "$ld_shlibs" = yes; then
6844      runpath_var=LD_RUN_PATH
6845      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6846      export_dynamic_flag_spec='${wl}--export-dynamic'
6847      # ancient GNU ld didn't support --whole-archive et. al.
6848      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6849 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6850      else
6851  	whole_archive_flag_spec=
6852      fi
6853    fi
6854  else
6855    # PORTME fill in a description of your system's linker (not GNU ld)
6856    case $host_os in
6857    aix3*)
6858      allow_undefined_flag=unsupported
6859      always_export_symbols=yes
6860      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'
6861      # Note: this linker hardcodes the directories in LIBPATH if there
6862      # are no directories specified by -L.
6863      hardcode_minus_L=yes
6864      if test "$GCC" = yes && test -z "$link_static_flag"; then
6865	# Neither direct hardcoding nor static linking is supported with a
6866	# broken collect2.
6867	hardcode_direct=unsupported
6868      fi
6869      ;;
6870
6871    aix4* | aix5*)
6872      if test "$host_cpu" = ia64; then
6873	# On IA64, the linker does run time linking by default, so we don't
6874	# have to do anything special.
6875	aix_use_runtimelinking=no
6876	exp_sym_flag='-Bexport'
6877	no_entry_flag=""
6878      else
6879	# If we're using GNU nm, then we don't want the "-C" option.
6880	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6881	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6882	  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'
6883	else
6884	  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'
6885	fi
6886	aix_use_runtimelinking=no
6887
6888	# Test if we are trying to use run time linking or normal
6889	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6890	# need to do runtime linking.
6891	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6892	  for ld_flag in $LDFLAGS; do
6893  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6894  	    aix_use_runtimelinking=yes
6895  	    break
6896  	  fi
6897	  done
6898	esac
6899
6900	exp_sym_flag='-bexport'
6901	no_entry_flag='-bnoentry'
6902      fi
6903
6904      # When large executables or shared objects are built, AIX ld can
6905      # have problems creating the table of contents.  If linking a library
6906      # or program results in "error TOC overflow" add -mminimal-toc to
6907      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6908      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6909
6910      archive_cmds=''
6911      hardcode_direct=yes
6912      hardcode_libdir_separator=':'
6913      link_all_deplibs=yes
6914
6915      if test "$GCC" = yes; then
6916	case $host_os in aix4.012|aix4.012.*)
6917	# We only want to do this on AIX 4.2 and lower, the check
6918	# below for broken collect2 doesn't work under 4.3+
6919	  collect2name=`${CC} -print-prog-name=collect2`
6920	  if test -f "$collect2name" && \
6921  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6922	  then
6923  	  # We have reworked collect2
6924  	  hardcode_direct=yes
6925	  else
6926  	  # We have old collect2
6927  	  hardcode_direct=unsupported
6928  	  # It fails to find uninstalled libraries when the uninstalled
6929  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6930  	  # to unsupported forces relinking
6931  	  hardcode_minus_L=yes
6932  	  hardcode_libdir_flag_spec='-L$libdir'
6933  	  hardcode_libdir_separator=
6934	  fi
6935	esac
6936	shared_flag='-shared'
6937      else
6938	# not using gcc
6939	if test "$host_cpu" = ia64; then
6940  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6941  	# chokes on -Wl,-G. The following line is correct:
6942	  shared_flag='-G'
6943	else
6944  	if test "$aix_use_runtimelinking" = yes; then
6945	    shared_flag='${wl}-G'
6946	  else
6947	    shared_flag='${wl}-bM:SRE'
6948  	fi
6949	fi
6950      fi
6951
6952      # It seems that -bexpall does not export symbols beginning with
6953      # underscore (_), so it is better to generate a list of symbols to export.
6954      always_export_symbols=yes
6955      if test "$aix_use_runtimelinking" = yes; then
6956	# Warning - without using the other runtime loading flags (-brtl),
6957	# -berok will link without error, but may produce a broken library.
6958	allow_undefined_flag='-berok'
6959       # Determine the default libpath from the value encoded in an empty executable.
6960       cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h.  */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h.  */
6966
6967int
6968main ()
6969{
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975rm -f conftest.$ac_objext conftest$ac_exeext
6976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977  (eval $ac_link) 2>conftest.er1
6978  ac_status=$?
6979  grep -v '^ *+' conftest.er1 >conftest.err
6980  rm -f conftest.er1
6981  cat conftest.err >&5
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } &&
6984	 { ac_try='test -z "$ac_c_werror_flag"
6985			 || test ! -s conftest.err'
6986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987  (eval $ac_try) 2>&5
6988  ac_status=$?
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); }; } &&
6991	 { ac_try='test -s conftest$ac_exeext'
6992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993  (eval $ac_try) 2>&5
6994  ac_status=$?
6995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996  (exit $ac_status); }; }; then
6997
6998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6999}'`
7000# Check for a 64-bit object if we didn't find anything.
7001if 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; }
7002}'`; fi
7003else
7004  echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007fi
7008rm -f conftest.err conftest.$ac_objext \
7009      conftest$ac_exeext conftest.$ac_ext
7010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7011
7012       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7013	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"
7014       else
7015	if test "$host_cpu" = ia64; then
7016	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7017	  allow_undefined_flag="-z nodefs"
7018	  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"
7019	else
7020	 # Determine the default libpath from the value encoded in an empty executable.
7021	 cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h.  */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h.  */
7027
7028int
7029main ()
7030{
7031
7032  ;
7033  return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext conftest$ac_exeext
7037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038  (eval $ac_link) 2>conftest.er1
7039  ac_status=$?
7040  grep -v '^ *+' conftest.er1 >conftest.err
7041  rm -f conftest.er1
7042  cat conftest.err >&5
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); } &&
7045	 { ac_try='test -z "$ac_c_werror_flag"
7046			 || test ! -s conftest.err'
7047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048  (eval $ac_try) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }; } &&
7052	 { ac_try='test -s conftest$ac_exeext'
7053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054  (eval $ac_try) 2>&5
7055  ac_status=$?
7056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057  (exit $ac_status); }; }; then
7058
7059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7060}'`
7061# Check for a 64-bit object if we didn't find anything.
7062if 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; }
7063}'`; fi
7064else
7065  echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068fi
7069rm -f conftest.err conftest.$ac_objext \
7070      conftest$ac_exeext conftest.$ac_ext
7071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7072
7073	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7074	  # Warning - without using the other run time loading flags,
7075	  # -berok will link without error, but may produce a broken library.
7076	  no_undefined_flag=' ${wl}-bernotok'
7077	  allow_undefined_flag=' ${wl}-berok'
7078	  # -bexpall does not export symbols beginning with underscore (_)
7079	  always_export_symbols=yes
7080	  # Exported symbols can be pulled into shared objects from archives
7081	  whole_archive_flag_spec=' '
7082	  archive_cmds_need_lc=yes
7083	  # This is similar to how AIX traditionally builds it's shared libraries.
7084	  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'
7085	fi
7086      fi
7087      ;;
7088
7089    amigaos*)
7090      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)'
7091      hardcode_libdir_flag_spec='-L$libdir'
7092      hardcode_minus_L=yes
7093      # see comment about different semantics on the GNU ld section
7094      ld_shlibs=no
7095      ;;
7096
7097    bsdi[45]*)
7098      export_dynamic_flag_spec=-rdynamic
7099      ;;
7100
7101    cygwin* | mingw* | pw32*)
7102      # When not using gcc, we currently assume that we are using
7103      # Microsoft Visual C++.
7104      # hardcode_libdir_flag_spec is actually meaningless, as there is
7105      # no search path for DLLs.
7106      hardcode_libdir_flag_spec=' '
7107      allow_undefined_flag=unsupported
7108      # Tell ltmain to make .lib files, not .a files.
7109      libext=lib
7110      # Tell ltmain to make .dll files, not .so files.
7111      shrext_cmds=".dll"
7112      # FIXME: Setting linknames here is a bad hack.
7113      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114      # The linker will automatically build a .lib file if we build a DLL.
7115      old_archive_From_new_cmds='true'
7116      # FIXME: Should let the user specify the lib program.
7117      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7118      fix_srcfile_path='`cygpath -w "$srcfile"`'
7119      enable_shared_with_static_runtimes=yes
7120      ;;
7121
7122    darwin* | rhapsody*)
7123      case "$host_os" in
7124        rhapsody* | darwin1.[012])
7125         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7126         ;;
7127       *) # Darwin 1.3 on
7128         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7129           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7130         else
7131           case ${MACOSX_DEPLOYMENT_TARGET} in
7132             10.[012])
7133               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7134               ;;
7135             10.*)
7136               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7137               ;;
7138           esac
7139         fi
7140         ;;
7141      esac
7142      archive_cmds_need_lc=no
7143      hardcode_direct=no
7144      hardcode_automatic=yes
7145      hardcode_shlibpath_var=unsupported
7146      whole_archive_flag_spec=''
7147      link_all_deplibs=yes
7148    if test "$GCC" = yes ; then
7149    	output_verbose_link_cmd='echo'
7150        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7151      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7152      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7153      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}'
7154      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}'
7155    else
7156      case "$cc_basename" in
7157        xlc*)
7158         output_verbose_link_cmd='echo'
7159         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7160         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7161          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7162         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}'
7163          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}'
7164          ;;
7165       *)
7166         ld_shlibs=no
7167          ;;
7168      esac
7169    fi
7170      ;;
7171
7172    dgux*)
7173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174      hardcode_libdir_flag_spec='-L$libdir'
7175      hardcode_shlibpath_var=no
7176      ;;
7177
7178    freebsd1*)
7179      ld_shlibs=no
7180      ;;
7181
7182    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7183    # support.  Future versions do this automatically, but an explicit c++rt0.o
7184    # does not break anything, and helps significantly (at the cost of a little
7185    # extra space).
7186    freebsd2.2*)
7187      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7188      hardcode_libdir_flag_spec='-R$libdir'
7189      hardcode_direct=yes
7190      hardcode_shlibpath_var=no
7191      ;;
7192
7193    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7194    freebsd2*)
7195      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7196      hardcode_direct=yes
7197      hardcode_minus_L=yes
7198      hardcode_shlibpath_var=no
7199      ;;
7200
7201    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7202    freebsd* | kfreebsd*-gnu)
7203      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7204      hardcode_libdir_flag_spec='-R$libdir'
7205      hardcode_direct=yes
7206      hardcode_shlibpath_var=no
7207      ;;
7208
7209    hpux9*)
7210      if test "$GCC" = yes; then
7211	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'
7212      else
7213	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'
7214      fi
7215      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7216      hardcode_libdir_separator=:
7217      hardcode_direct=yes
7218
7219      # hardcode_minus_L: Not really in the search PATH,
7220      # but as the default location of the library.
7221      hardcode_minus_L=yes
7222      export_dynamic_flag_spec='${wl}-E'
7223      ;;
7224
7225    hpux10* | hpux11*)
7226      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7227	case "$host_cpu" in
7228	hppa*64*|ia64*)
7229	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7230	  ;;
7231	*)
7232	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7233	  ;;
7234	esac
7235      else
7236	case "$host_cpu" in
7237	hppa*64*|ia64*)
7238	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7239	  ;;
7240	*)
7241	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7242	  ;;
7243	esac
7244      fi
7245      if test "$with_gnu_ld" = no; then
7246	case "$host_cpu" in
7247	hppa*64*)
7248	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249	  hardcode_libdir_flag_spec_ld='+b $libdir'
7250	  hardcode_libdir_separator=:
7251	  hardcode_direct=no
7252	  hardcode_shlibpath_var=no
7253	  ;;
7254	ia64*)
7255	  hardcode_libdir_flag_spec='-L$libdir'
7256	  hardcode_direct=no
7257	  hardcode_shlibpath_var=no
7258
7259	  # hardcode_minus_L: Not really in the search PATH,
7260	  # but as the default location of the library.
7261	  hardcode_minus_L=yes
7262	  ;;
7263	*)
7264	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265	  hardcode_libdir_separator=:
7266	  hardcode_direct=yes
7267	  export_dynamic_flag_spec='${wl}-E'
7268
7269	  # hardcode_minus_L: Not really in the search PATH,
7270	  # but as the default location of the library.
7271	  hardcode_minus_L=yes
7272	  ;;
7273	esac
7274      fi
7275      ;;
7276
7277    irix5* | irix6* | nonstopux*)
7278      if test "$GCC" = yes; then
7279	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'
7280      else
7281	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'
7282	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7283      fi
7284      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285      hardcode_libdir_separator=:
7286      link_all_deplibs=yes
7287      ;;
7288
7289    netbsd*)
7290      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7292      else
7293	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7294      fi
7295      hardcode_libdir_flag_spec='-R$libdir'
7296      hardcode_direct=yes
7297      hardcode_shlibpath_var=no
7298      ;;
7299
7300    newsos6)
7301      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302      hardcode_direct=yes
7303      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304      hardcode_libdir_separator=:
7305      hardcode_shlibpath_var=no
7306      ;;
7307
7308    openbsd*)
7309      hardcode_direct=yes
7310      hardcode_shlibpath_var=no
7311      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7314	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7315	export_dynamic_flag_spec='${wl}-E'
7316      else
7317       case $host_os in
7318	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7319	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7320	   hardcode_libdir_flag_spec='-R$libdir'
7321	   ;;
7322	 *)
7323	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7324	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7325	   ;;
7326       esac
7327      fi
7328      ;;
7329
7330    os2*)
7331      hardcode_libdir_flag_spec='-L$libdir'
7332      hardcode_minus_L=yes
7333      allow_undefined_flag=unsupported
7334      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'
7335      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7336      ;;
7337
7338    osf3*)
7339      if test "$GCC" = yes; then
7340	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7341	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'
7342      else
7343	allow_undefined_flag=' -expect_unresolved \*'
7344	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'
7345      fi
7346      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7347      hardcode_libdir_separator=:
7348      ;;
7349
7350    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7351      if test "$GCC" = yes; then
7352	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7353	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'
7354	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7355      else
7356	allow_undefined_flag=' -expect_unresolved \*'
7357	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'
7358	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7359	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7360
7361	# Both c and cxx compiler support -rpath directly
7362	hardcode_libdir_flag_spec='-rpath $libdir'
7363      fi
7364      hardcode_libdir_separator=:
7365      ;;
7366
7367    sco3.2v5*)
7368      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369      hardcode_shlibpath_var=no
7370      export_dynamic_flag_spec='${wl}-Bexport'
7371      runpath_var=LD_RUN_PATH
7372      hardcode_runpath_var=yes
7373      ;;
7374
7375    solaris*)
7376      no_undefined_flag=' -z text'
7377      if test "$GCC" = yes; then
7378	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7379	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7381      else
7382	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7384  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7385      fi
7386      hardcode_libdir_flag_spec='-R$libdir'
7387      hardcode_shlibpath_var=no
7388      case $host_os in
7389      solaris2.[0-5] | solaris2.[0-5].*) ;;
7390      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7391	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7392      esac
7393      link_all_deplibs=yes
7394      ;;
7395
7396    sunos4*)
7397      if test "x$host_vendor" = xsequent; then
7398	# Use $CC to link under sequent, because it throws in some extra .o
7399	# files that make .init and .fini sections work.
7400	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7401      else
7402	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7403      fi
7404      hardcode_libdir_flag_spec='-L$libdir'
7405      hardcode_direct=yes
7406      hardcode_minus_L=yes
7407      hardcode_shlibpath_var=no
7408      ;;
7409
7410    sysv4)
7411      case $host_vendor in
7412	sni)
7413	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414	  hardcode_direct=yes # is this really true???
7415	;;
7416	siemens)
7417	  ## LD is ld it makes a PLAMLIB
7418	  ## CC just makes a GrossModule.
7419	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7420	  reload_cmds='$CC -r -o $output$reload_objs'
7421	  hardcode_direct=no
7422        ;;
7423	motorola)
7424	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7426	;;
7427      esac
7428      runpath_var='LD_RUN_PATH'
7429      hardcode_shlibpath_var=no
7430      ;;
7431
7432    sysv4.3*)
7433      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434      hardcode_shlibpath_var=no
7435      export_dynamic_flag_spec='-Bexport'
7436      ;;
7437
7438    sysv4*MP*)
7439      if test -d /usr/nec; then
7440	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7441	hardcode_shlibpath_var=no
7442	runpath_var=LD_RUN_PATH
7443	hardcode_runpath_var=yes
7444	ld_shlibs=yes
7445      fi
7446      ;;
7447
7448    sysv4.2uw2*)
7449      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450      hardcode_direct=yes
7451      hardcode_minus_L=no
7452      hardcode_shlibpath_var=no
7453      hardcode_runpath_var=yes
7454      runpath_var=LD_RUN_PATH
7455      ;;
7456
7457   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7458      no_undefined_flag='${wl}-z ${wl}text'
7459      if test "$GCC" = yes; then
7460	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461      else
7462	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463      fi
7464      runpath_var='LD_RUN_PATH'
7465      hardcode_shlibpath_var=no
7466      ;;
7467
7468    sysv5*)
7469      no_undefined_flag=' -z text'
7470      # $CC -shared without GNU ld will not create a library from C++
7471      # object files and a static libstdc++, better avoid it by now
7472      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7474  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7475      hardcode_libdir_flag_spec=
7476      hardcode_shlibpath_var=no
7477      runpath_var='LD_RUN_PATH'
7478      ;;
7479
7480    uts4*)
7481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482      hardcode_libdir_flag_spec='-L$libdir'
7483      hardcode_shlibpath_var=no
7484      ;;
7485
7486    *)
7487      ld_shlibs=no
7488      ;;
7489    esac
7490  fi
7491
7492echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7493echo "${ECHO_T}$ld_shlibs" >&6
7494test "$ld_shlibs" = no && can_build_shared=no
7495
7496variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7497if test "$GCC" = yes; then
7498  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7499fi
7500
7501#
7502# Do we need to explicitly link libc?
7503#
7504case "x$archive_cmds_need_lc" in
7505x|xyes)
7506  # Assume -lc should be added
7507  archive_cmds_need_lc=yes
7508
7509  if test "$enable_shared" = yes && test "$GCC" = yes; then
7510    case $archive_cmds in
7511    *'~'*)
7512      # FIXME: we may have to deal with multi-command sequences.
7513      ;;
7514    '$CC '*)
7515      # Test whether the compiler implicitly links with -lc since on some
7516      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7517      # to ld, don't add -lc before -lgcc.
7518      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7519echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7520      $rm conftest*
7521      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522
7523      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524  (eval $ac_compile) 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } 2>conftest.err; then
7528        soname=conftest
7529        lib=conftest
7530        libobjs=conftest.$ac_objext
7531        deplibs=
7532        wl=$lt_prog_compiler_wl
7533        compiler_flags=-v
7534        linker_flags=-v
7535        verstring=
7536        output_objdir=.
7537        libname=conftest
7538        lt_save_allow_undefined_flag=$allow_undefined_flag
7539        allow_undefined_flag=
7540        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7541  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7542  ac_status=$?
7543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544  (exit $ac_status); }
7545        then
7546	  archive_cmds_need_lc=no
7547        else
7548	  archive_cmds_need_lc=yes
7549        fi
7550        allow_undefined_flag=$lt_save_allow_undefined_flag
7551      else
7552        cat conftest.err 1>&5
7553      fi
7554      $rm conftest*
7555      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7556echo "${ECHO_T}$archive_cmds_need_lc" >&6
7557      ;;
7558    esac
7559  fi
7560  ;;
7561esac
7562
7563echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7565library_names_spec=
7566libname_spec='lib$name'
7567soname_spec=
7568shrext_cmds=".so"
7569postinstall_cmds=
7570postuninstall_cmds=
7571finish_cmds=
7572finish_eval=
7573shlibpath_var=
7574shlibpath_overrides_runpath=unknown
7575version_type=none
7576dynamic_linker="$host_os ld.so"
7577sys_lib_dlsearch_path_spec="/lib /usr/lib"
7578if test "$GCC" = yes; then
7579  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7580  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7581    # if the path contains ";" then we assume it to be the separator
7582    # otherwise default to the standard path separator (i.e. ":") - it is
7583    # assumed that no part of a normal pathname contains ";" but that should
7584    # okay in the real world where ";" in dirpaths is itself problematic.
7585    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7586  else
7587    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7588  fi
7589else
7590  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7591fi
7592need_lib_prefix=unknown
7593hardcode_into_libs=no
7594
7595# when you set need_version to no, make sure it does not cause -set_version
7596# flags to be left without arguments
7597need_version=unknown
7598
7599case $host_os in
7600aix3*)
7601  version_type=linux
7602  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7603  shlibpath_var=LIBPATH
7604
7605  # AIX 3 has no versioning support, so we append a major version to the name.
7606  soname_spec='${libname}${release}${shared_ext}$major'
7607  ;;
7608
7609aix4* | aix5*)
7610  version_type=linux
7611  need_lib_prefix=no
7612  need_version=no
7613  hardcode_into_libs=yes
7614  if test "$host_cpu" = ia64; then
7615    # AIX 5 supports IA64
7616    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7617    shlibpath_var=LD_LIBRARY_PATH
7618  else
7619    # With GCC up to 2.95.x, collect2 would create an import file
7620    # for dependence libraries.  The import file would start with
7621    # the line `#! .'.  This would cause the generated library to
7622    # depend on `.', always an invalid library.  This was fixed in
7623    # development snapshots of GCC prior to 3.0.
7624    case $host_os in
7625      aix4 | aix4.[01] | aix4.[01].*)
7626      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7627	   echo ' yes '
7628	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7629	:
7630      else
7631	can_build_shared=no
7632      fi
7633      ;;
7634    esac
7635    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7636    # soname into executable. Probably we can add versioning support to
7637    # collect2, so additional links can be useful in future.
7638    if test "$aix_use_runtimelinking" = yes; then
7639      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7640      # instead of lib<name>.a to let people know that these are not
7641      # typical AIX shared libraries.
7642      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7643    else
7644      # We preserve .a as extension for shared libraries through AIX4.2
7645      # and later when we are not doing run time linking.
7646      library_names_spec='${libname}${release}.a $libname.a'
7647      soname_spec='${libname}${release}${shared_ext}$major'
7648    fi
7649    shlibpath_var=LIBPATH
7650  fi
7651  ;;
7652
7653amigaos*)
7654  library_names_spec='$libname.ixlibrary $libname.a'
7655  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7656  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'
7657  ;;
7658
7659beos*)
7660  library_names_spec='${libname}${shared_ext}'
7661  dynamic_linker="$host_os ld.so"
7662  shlibpath_var=LIBRARY_PATH
7663  ;;
7664
7665bsdi[45]*)
7666  version_type=linux
7667  need_version=no
7668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669  soname_spec='${libname}${release}${shared_ext}$major'
7670  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7671  shlibpath_var=LD_LIBRARY_PATH
7672  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7673  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7674  # the default ld.so.conf also contains /usr/contrib/lib and
7675  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7676  # libtool to hard-code these into programs
7677  ;;
7678
7679cygwin* | mingw* | pw32*)
7680  version_type=windows
7681  shrext_cmds=".dll"
7682  need_version=no
7683  need_lib_prefix=no
7684
7685  case $GCC,$host_os in
7686  yes,cygwin* | yes,mingw* | yes,pw32*)
7687    library_names_spec='$libname.dll.a'
7688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7689    postinstall_cmds='base_file=`basename \${file}`~
7690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7691      dldir=$destdir/`dirname \$dlpath`~
7692      test -d \$dldir || mkdir -p \$dldir~
7693      $install_prog $dir/$dlname \$dldir/$dlname'
7694    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7695      dlpath=$dir/\$dldll~
7696       $rm \$dlpath'
7697    shlibpath_overrides_runpath=yes
7698
7699    case $host_os in
7700    cygwin*)
7701      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7702      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7703      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7704      ;;
7705    mingw*)
7706      # MinGW DLLs use traditional 'lib' prefix
7707      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7708      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7709      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7710        # It is most probably a Windows format PATH printed by
7711        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7712        # path with ; separators, and with drive letters. We can handle the
7713        # drive letters (cygwin fileutils understands them), so leave them,
7714        # especially as we might pass files found there to a mingw objdump,
7715        # which wouldn't understand a cygwinified path. Ahh.
7716        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7717      else
7718        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7719      fi
7720      ;;
7721    pw32*)
7722      # pw32 DLLs use 'pw' prefix rather than 'lib'
7723      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7724      ;;
7725    esac
7726    ;;
7727
7728  *)
7729    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7730    ;;
7731  esac
7732  dynamic_linker='Win32 ld.exe'
7733  # FIXME: first we should search . and the directory the executable is in
7734  shlibpath_var=PATH
7735  ;;
7736
7737darwin* | rhapsody*)
7738  dynamic_linker="$host_os dyld"
7739  version_type=darwin
7740  need_lib_prefix=no
7741  need_version=no
7742  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7743  soname_spec='${libname}${release}${major}$shared_ext'
7744  shlibpath_overrides_runpath=yes
7745  shlibpath_var=DYLD_LIBRARY_PATH
7746  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7747  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7748  if test "$GCC" = yes; then
7749    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"`
7750  else
7751    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7752  fi
7753  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7754  ;;
7755
7756dgux*)
7757  version_type=linux
7758  need_lib_prefix=no
7759  need_version=no
7760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7761  soname_spec='${libname}${release}${shared_ext}$major'
7762  shlibpath_var=LD_LIBRARY_PATH
7763  ;;
7764
7765freebsd1*)
7766  dynamic_linker=no
7767  ;;
7768
7769kfreebsd*-gnu)
7770  version_type=linux
7771  need_lib_prefix=no
7772  need_version=no
7773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7774  soname_spec='${libname}${release}${shared_ext}$major'
7775  shlibpath_var=LD_LIBRARY_PATH
7776  shlibpath_overrides_runpath=no
7777  hardcode_into_libs=yes
7778  dynamic_linker='GNU ld.so'
7779  ;;
7780
7781freebsd*)
7782  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7783  version_type=freebsd-$objformat
7784  case $version_type in
7785    freebsd-elf*)
7786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7787      need_version=no
7788      need_lib_prefix=no
7789      ;;
7790    freebsd-*)
7791      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7792      need_version=yes
7793      ;;
7794  esac
7795  shlibpath_var=LD_LIBRARY_PATH
7796  case $host_os in
7797  freebsd2*)
7798    shlibpath_overrides_runpath=yes
7799    ;;
7800  freebsd3.01* | freebsdelf3.01*)
7801    shlibpath_overrides_runpath=yes
7802    hardcode_into_libs=yes
7803    ;;
7804  *) # from 3.2 on
7805    shlibpath_overrides_runpath=no
7806    hardcode_into_libs=yes
7807    ;;
7808  esac
7809  ;;
7810
7811gnu*)
7812  version_type=linux
7813  need_lib_prefix=no
7814  need_version=no
7815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7816  soname_spec='${libname}${release}${shared_ext}$major'
7817  shlibpath_var=LD_LIBRARY_PATH
7818  hardcode_into_libs=yes
7819  ;;
7820
7821hpux9* | hpux10* | hpux11*)
7822  # Give a soname corresponding to the major version so that dld.sl refuses to
7823  # link against other versions.
7824  version_type=sunos
7825  need_lib_prefix=no
7826  need_version=no
7827  case "$host_cpu" in
7828  ia64*)
7829    shrext_cmds='.so'
7830    hardcode_into_libs=yes
7831    dynamic_linker="$host_os dld.so"
7832    shlibpath_var=LD_LIBRARY_PATH
7833    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835    soname_spec='${libname}${release}${shared_ext}$major'
7836    if test "X$HPUX_IA64_MODE" = X32; then
7837      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7838    else
7839      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7840    fi
7841    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842    ;;
7843   hppa*64*)
7844     shrext_cmds='.sl'
7845     hardcode_into_libs=yes
7846     dynamic_linker="$host_os dld.sl"
7847     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850     soname_spec='${libname}${release}${shared_ext}$major'
7851     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7853     ;;
7854   *)
7855    shrext_cmds='.sl'
7856    dynamic_linker="$host_os dld.sl"
7857    shlibpath_var=SHLIB_PATH
7858    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7859    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860    soname_spec='${libname}${release}${shared_ext}$major'
7861    ;;
7862  esac
7863  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7864  postinstall_cmds='chmod 555 $lib'
7865  ;;
7866
7867irix5* | irix6* | nonstopux*)
7868  case $host_os in
7869    nonstopux*) version_type=nonstopux ;;
7870    *)
7871	if test "$lt_cv_prog_gnu_ld" = yes; then
7872		version_type=linux
7873	else
7874		version_type=irix
7875	fi ;;
7876  esac
7877  need_lib_prefix=no
7878  need_version=no
7879  soname_spec='${libname}${release}${shared_ext}$major'
7880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7881  case $host_os in
7882  irix5* | nonstopux*)
7883    libsuff= shlibsuff=
7884    ;;
7885  *)
7886    case $LD in # libtool.m4 will add one of these switches to LD
7887    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7888      libsuff= shlibsuff= libmagic=32-bit;;
7889    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7890      libsuff=32 shlibsuff=N32 libmagic=N32;;
7891    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7892      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7893    *) libsuff= shlibsuff= libmagic=never-match;;
7894    esac
7895    ;;
7896  esac
7897  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7898  shlibpath_overrides_runpath=no
7899  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7900  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7901  hardcode_into_libs=yes
7902  ;;
7903
7904# No shared lib support for Linux oldld, aout, or coff.
7905linux*oldld* | linux*aout* | linux*coff*)
7906  dynamic_linker=no
7907  ;;
7908
7909# This must be Linux ELF.
7910linux*)
7911  version_type=linux
7912  need_lib_prefix=no
7913  need_version=no
7914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915  soname_spec='${libname}${release}${shared_ext}$major'
7916  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7917  shlibpath_var=LD_LIBRARY_PATH
7918  shlibpath_overrides_runpath=no
7919  # This implies no fast_install, which is unacceptable.
7920  # Some rework will be needed to allow for fast_install
7921  # before this can be enabled.
7922  hardcode_into_libs=yes
7923
7924  # Append ld.so.conf contents to the search path
7925  if test -f /etc/ld.so.conf; then
7926    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7927    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7928  fi
7929
7930  # We used to test for /lib/ld.so.1 and disable shared libraries on
7931  # powerpc, because MkLinux only supported shared libraries with the
7932  # GNU dynamic linker.  Since this was broken with cross compilers,
7933  # most powerpc-linux boxes support dynamic linking these days and
7934  # people can always --disable-shared, the test was removed, and we
7935  # assume the GNU/Linux dynamic linker is in use.
7936  dynamic_linker='GNU/Linux ld.so'
7937  ;;
7938
7939knetbsd*-gnu)
7940  version_type=linux
7941  need_lib_prefix=no
7942  need_version=no
7943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7944  soname_spec='${libname}${release}${shared_ext}$major'
7945  shlibpath_var=LD_LIBRARY_PATH
7946  shlibpath_overrides_runpath=no
7947  hardcode_into_libs=yes
7948  dynamic_linker='GNU ld.so'
7949  ;;
7950
7951netbsd*)
7952  version_type=sunos
7953  need_lib_prefix=no
7954  need_version=no
7955  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7957    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7958    dynamic_linker='NetBSD (a.out) ld.so'
7959  else
7960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7961    soname_spec='${libname}${release}${shared_ext}$major'
7962    dynamic_linker='NetBSD ld.elf_so'
7963  fi
7964  shlibpath_var=LD_LIBRARY_PATH
7965  shlibpath_overrides_runpath=yes
7966  hardcode_into_libs=yes
7967  ;;
7968
7969newsos6)
7970  version_type=linux
7971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972  shlibpath_var=LD_LIBRARY_PATH
7973  shlibpath_overrides_runpath=yes
7974  ;;
7975
7976nto-qnx*)
7977  version_type=linux
7978  need_lib_prefix=no
7979  need_version=no
7980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981  soname_spec='${libname}${release}${shared_ext}$major'
7982  shlibpath_var=LD_LIBRARY_PATH
7983  shlibpath_overrides_runpath=yes
7984  ;;
7985
7986openbsd*)
7987  version_type=sunos
7988  need_lib_prefix=no
7989  need_version=no
7990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7992  shlibpath_var=LD_LIBRARY_PATH
7993  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7994    case $host_os in
7995      openbsd2.[89] | openbsd2.[89].*)
7996	shlibpath_overrides_runpath=no
7997	;;
7998      *)
7999	shlibpath_overrides_runpath=yes
8000	;;
8001      esac
8002  else
8003    shlibpath_overrides_runpath=yes
8004  fi
8005  ;;
8006
8007os2*)
8008  libname_spec='$name'
8009  shrext_cmds=".dll"
8010  need_lib_prefix=no
8011  library_names_spec='$libname${shared_ext} $libname.a'
8012  dynamic_linker='OS/2 ld.exe'
8013  shlibpath_var=LIBPATH
8014  ;;
8015
8016osf3* | osf4* | osf5*)
8017  version_type=osf
8018  need_lib_prefix=no
8019  need_version=no
8020  soname_spec='${libname}${release}${shared_ext}$major'
8021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022  shlibpath_var=LD_LIBRARY_PATH
8023  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8024  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8025  ;;
8026
8027sco3.2v5*)
8028  version_type=osf
8029  soname_spec='${libname}${release}${shared_ext}$major'
8030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031  shlibpath_var=LD_LIBRARY_PATH
8032  ;;
8033
8034solaris*)
8035  version_type=linux
8036  need_lib_prefix=no
8037  need_version=no
8038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039  soname_spec='${libname}${release}${shared_ext}$major'
8040  shlibpath_var=LD_LIBRARY_PATH
8041  shlibpath_overrides_runpath=yes
8042  hardcode_into_libs=yes
8043  # ldd complains unless libraries are executable
8044  postinstall_cmds='chmod +x $lib'
8045  ;;
8046
8047sunos4*)
8048  version_type=sunos
8049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8050  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8051  shlibpath_var=LD_LIBRARY_PATH
8052  shlibpath_overrides_runpath=yes
8053  if test "$with_gnu_ld" = yes; then
8054    need_lib_prefix=no
8055  fi
8056  need_version=yes
8057  ;;
8058
8059sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8060  version_type=linux
8061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062  soname_spec='${libname}${release}${shared_ext}$major'
8063  shlibpath_var=LD_LIBRARY_PATH
8064  case $host_vendor in
8065    sni)
8066      shlibpath_overrides_runpath=no
8067      need_lib_prefix=no
8068      export_dynamic_flag_spec='${wl}-Blargedynsym'
8069      runpath_var=LD_RUN_PATH
8070      ;;
8071    siemens)
8072      need_lib_prefix=no
8073      ;;
8074    motorola)
8075      need_lib_prefix=no
8076      need_version=no
8077      shlibpath_overrides_runpath=no
8078      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8079      ;;
8080  esac
8081  ;;
8082
8083sysv4*MP*)
8084  if test -d /usr/nec ;then
8085    version_type=linux
8086    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8087    soname_spec='$libname${shared_ext}.$major'
8088    shlibpath_var=LD_LIBRARY_PATH
8089  fi
8090  ;;
8091
8092uts4*)
8093  version_type=linux
8094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095  soname_spec='${libname}${release}${shared_ext}$major'
8096  shlibpath_var=LD_LIBRARY_PATH
8097  ;;
8098
8099*)
8100  dynamic_linker=no
8101  ;;
8102esac
8103echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8104echo "${ECHO_T}$dynamic_linker" >&6
8105test "$dynamic_linker" = no && can_build_shared=no
8106
8107echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8108echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8109hardcode_action=
8110if test -n "$hardcode_libdir_flag_spec" || \
8111   test -n "$runpath_var" || \
8112   test "X$hardcode_automatic" = "Xyes" ; then
8113
8114  # We can hardcode non-existant directories.
8115  if test "$hardcode_direct" != no &&
8116     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8117     # have to relink, otherwise we might link with an installed library
8118     # when we should be linking with a yet-to-be-installed one
8119     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8120     test "$hardcode_minus_L" != no; then
8121    # Linking always hardcodes the temporary library directory.
8122    hardcode_action=relink
8123  else
8124    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8125    hardcode_action=immediate
8126  fi
8127else
8128  # We cannot hardcode anything, or else we can only hardcode existing
8129  # directories.
8130  hardcode_action=unsupported
8131fi
8132echo "$as_me:$LINENO: result: $hardcode_action" >&5
8133echo "${ECHO_T}$hardcode_action" >&6
8134
8135if test "$hardcode_action" = relink; then
8136  # Fast installation is not supported
8137  enable_fast_install=no
8138elif test "$shlibpath_overrides_runpath" = yes ||
8139     test "$enable_shared" = no; then
8140  # Fast installation is not necessary
8141  enable_fast_install=needless
8142fi
8143
8144striplib=
8145old_striplib=
8146echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8147echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8148if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8149  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8150  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8151  echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
8153else
8154# FIXME - insert some real tests, host_os isn't really good enough
8155  case $host_os in
8156   darwin*)
8157       if test -n "$STRIP" ; then
8158         striplib="$STRIP -x"
8159         echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161       else
8162  echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164fi
8165       ;;
8166   *)
8167  echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6
8169    ;;
8170  esac
8171fi
8172
8173if test "x$enable_dlopen" != xyes; then
8174  enable_dlopen=unknown
8175  enable_dlopen_self=unknown
8176  enable_dlopen_self_static=unknown
8177else
8178  lt_cv_dlopen=no
8179  lt_cv_dlopen_libs=
8180
8181  case $host_os in
8182  beos*)
8183    lt_cv_dlopen="load_add_on"
8184    lt_cv_dlopen_libs=
8185    lt_cv_dlopen_self=yes
8186    ;;
8187
8188  mingw* | pw32*)
8189    lt_cv_dlopen="LoadLibrary"
8190    lt_cv_dlopen_libs=
8191   ;;
8192
8193  cygwin*)
8194    lt_cv_dlopen="dlopen"
8195    lt_cv_dlopen_libs=
8196   ;;
8197
8198  darwin*)
8199  # if libdl is installed we need to link against it
8200    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8201echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8202if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8203  echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205  ac_check_lib_save_LIBS=$LIBS
8206LIBS="-ldl  $LIBS"
8207cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h.  */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h.  */
8213
8214/* Override any gcc2 internal prototype to avoid an error.  */
8215#ifdef __cplusplus
8216extern "C"
8217#endif
8218/* We use char because int might match the return type of a gcc2
8219   builtin and then its argument prototype would still apply.  */
8220char dlopen ();
8221int
8222main ()
8223{
8224dlopen ();
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231  (eval $ac_link) 2>conftest.er1
8232  ac_status=$?
8233  grep -v '^ *+' conftest.er1 >conftest.err
8234  rm -f conftest.er1
8235  cat conftest.err >&5
8236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237  (exit $ac_status); } &&
8238	 { ac_try='test -z "$ac_c_werror_flag"
8239			 || test ! -s conftest.err'
8240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241  (eval $ac_try) 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); }; } &&
8245	 { ac_try='test -s conftest$ac_exeext'
8246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247  (eval $ac_try) 2>&5
8248  ac_status=$?
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); }; }; then
8251  ac_cv_lib_dl_dlopen=yes
8252else
8253  echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256ac_cv_lib_dl_dlopen=no
8257fi
8258rm -f conftest.err conftest.$ac_objext \
8259      conftest$ac_exeext conftest.$ac_ext
8260LIBS=$ac_check_lib_save_LIBS
8261fi
8262echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8263echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8264if test $ac_cv_lib_dl_dlopen = yes; then
8265  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8266else
8267
8268    lt_cv_dlopen="dyld"
8269    lt_cv_dlopen_libs=
8270    lt_cv_dlopen_self=yes
8271
8272fi
8273
8274   ;;
8275
8276  *)
8277    echo "$as_me:$LINENO: checking for shl_load" >&5
8278echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8279if test "${ac_cv_func_shl_load+set}" = set; then
8280  echo $ECHO_N "(cached) $ECHO_C" >&6
8281else
8282  cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h.  */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h.  */
8288/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8289   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8290#define shl_load innocuous_shl_load
8291
8292/* System header to define __stub macros and hopefully few prototypes,
8293    which can conflict with char shl_load (); below.
8294    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295    <limits.h> exists even on freestanding compilers.  */
8296
8297#ifdef __STDC__
8298# include <limits.h>
8299#else
8300# include <assert.h>
8301#endif
8302
8303#undef shl_load
8304
8305/* Override any gcc2 internal prototype to avoid an error.  */
8306#ifdef __cplusplus
8307extern "C"
8308{
8309#endif
8310/* We use char because int might match the return type of a gcc2
8311   builtin and then its argument prototype would still apply.  */
8312char shl_load ();
8313/* The GNU C library defines this for functions which it implements
8314    to always fail with ENOSYS.  Some functions are actually named
8315    something starting with __ and the normal name is an alias.  */
8316#if defined (__stub_shl_load) || defined (__stub___shl_load)
8317choke me
8318#else
8319char (*f) () = shl_load;
8320#endif
8321#ifdef __cplusplus
8322}
8323#endif
8324
8325int
8326main ()
8327{
8328return f != shl_load;
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext conftest$ac_exeext
8334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335  (eval $ac_link) 2>conftest.er1
8336  ac_status=$?
8337  grep -v '^ *+' conftest.er1 >conftest.err
8338  rm -f conftest.er1
8339  cat conftest.err >&5
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); } &&
8342	 { ac_try='test -z "$ac_c_werror_flag"
8343			 || test ! -s conftest.err'
8344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345  (eval $ac_try) 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; } &&
8349	 { ac_try='test -s conftest$ac_exeext'
8350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351  (eval $ac_try) 2>&5
8352  ac_status=$?
8353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354  (exit $ac_status); }; }; then
8355  ac_cv_func_shl_load=yes
8356else
8357  echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360ac_cv_func_shl_load=no
8361fi
8362rm -f conftest.err conftest.$ac_objext \
8363      conftest$ac_exeext conftest.$ac_ext
8364fi
8365echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8366echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8367if test $ac_cv_func_shl_load = yes; then
8368  lt_cv_dlopen="shl_load"
8369else
8370  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8371echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8372if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8373  echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375  ac_check_lib_save_LIBS=$LIBS
8376LIBS="-ldld  $LIBS"
8377cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h.  */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h.  */
8383
8384/* Override any gcc2 internal prototype to avoid an error.  */
8385#ifdef __cplusplus
8386extern "C"
8387#endif
8388/* We use char because int might match the return type of a gcc2
8389   builtin and then its argument prototype would still apply.  */
8390char shl_load ();
8391int
8392main ()
8393{
8394shl_load ();
8395  ;
8396  return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext conftest$ac_exeext
8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401  (eval $ac_link) 2>conftest.er1
8402  ac_status=$?
8403  grep -v '^ *+' conftest.er1 >conftest.err
8404  rm -f conftest.er1
8405  cat conftest.err >&5
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); } &&
8408	 { ac_try='test -z "$ac_c_werror_flag"
8409			 || test ! -s conftest.err'
8410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411  (eval $ac_try) 2>&5
8412  ac_status=$?
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); }; } &&
8415	 { ac_try='test -s conftest$ac_exeext'
8416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417  (eval $ac_try) 2>&5
8418  ac_status=$?
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); }; }; then
8421  ac_cv_lib_dld_shl_load=yes
8422else
8423  echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426ac_cv_lib_dld_shl_load=no
8427fi
8428rm -f conftest.err conftest.$ac_objext \
8429      conftest$ac_exeext conftest.$ac_ext
8430LIBS=$ac_check_lib_save_LIBS
8431fi
8432echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8433echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8434if test $ac_cv_lib_dld_shl_load = yes; then
8435  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8436else
8437  echo "$as_me:$LINENO: checking for dlopen" >&5
8438echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8439if test "${ac_cv_func_dlopen+set}" = set; then
8440  echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442  cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h.  */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h.  */
8448/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8449   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8450#define dlopen innocuous_dlopen
8451
8452/* System header to define __stub macros and hopefully few prototypes,
8453    which can conflict with char dlopen (); below.
8454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455    <limits.h> exists even on freestanding compilers.  */
8456
8457#ifdef __STDC__
8458# include <limits.h>
8459#else
8460# include <assert.h>
8461#endif
8462
8463#undef dlopen
8464
8465/* Override any gcc2 internal prototype to avoid an error.  */
8466#ifdef __cplusplus
8467extern "C"
8468{
8469#endif
8470/* We use char because int might match the return type of a gcc2
8471   builtin and then its argument prototype would still apply.  */
8472char dlopen ();
8473/* The GNU C library defines this for functions which it implements
8474    to always fail with ENOSYS.  Some functions are actually named
8475    something starting with __ and the normal name is an alias.  */
8476#if defined (__stub_dlopen) || defined (__stub___dlopen)
8477choke me
8478#else
8479char (*f) () = dlopen;
8480#endif
8481#ifdef __cplusplus
8482}
8483#endif
8484
8485int
8486main ()
8487{
8488return f != dlopen;
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493rm -f conftest.$ac_objext conftest$ac_exeext
8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495  (eval $ac_link) 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } &&
8502	 { ac_try='test -z "$ac_c_werror_flag"
8503			 || test ! -s conftest.err'
8504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505  (eval $ac_try) 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509	 { ac_try='test -s conftest$ac_exeext'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; }; then
8515  ac_cv_func_dlopen=yes
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520ac_cv_func_dlopen=no
8521fi
8522rm -f conftest.err conftest.$ac_objext \
8523      conftest$ac_exeext conftest.$ac_ext
8524fi
8525echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8526echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8527if test $ac_cv_func_dlopen = yes; then
8528  lt_cv_dlopen="dlopen"
8529else
8530  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8533  echo $ECHO_N "(cached) $ECHO_C" >&6
8534else
8535  ac_check_lib_save_LIBS=$LIBS
8536LIBS="-ldl  $LIBS"
8537cat >conftest.$ac_ext <<_ACEOF
8538/* confdefs.h.  */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h.  */
8543
8544/* Override any gcc2 internal prototype to avoid an error.  */
8545#ifdef __cplusplus
8546extern "C"
8547#endif
8548/* We use char because int might match the return type of a gcc2
8549   builtin and then its argument prototype would still apply.  */
8550char dlopen ();
8551int
8552main ()
8553{
8554dlopen ();
8555  ;
8556  return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561  (eval $ac_link) 2>conftest.er1
8562  ac_status=$?
8563  grep -v '^ *+' conftest.er1 >conftest.err
8564  rm -f conftest.er1
8565  cat conftest.err >&5
8566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567  (exit $ac_status); } &&
8568	 { ac_try='test -z "$ac_c_werror_flag"
8569			 || test ! -s conftest.err'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; } &&
8575	 { ac_try='test -s conftest$ac_exeext'
8576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577  (eval $ac_try) 2>&5
8578  ac_status=$?
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); }; }; then
8581  ac_cv_lib_dl_dlopen=yes
8582else
8583  echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586ac_cv_lib_dl_dlopen=no
8587fi
8588rm -f conftest.err conftest.$ac_objext \
8589      conftest$ac_exeext conftest.$ac_ext
8590LIBS=$ac_check_lib_save_LIBS
8591fi
8592echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8593echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8594if test $ac_cv_lib_dl_dlopen = yes; then
8595  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8596else
8597  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8598echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8599if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8600  echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602  ac_check_lib_save_LIBS=$LIBS
8603LIBS="-lsvld  $LIBS"
8604cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h.  */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h.  */
8610
8611/* Override any gcc2 internal prototype to avoid an error.  */
8612#ifdef __cplusplus
8613extern "C"
8614#endif
8615/* We use char because int might match the return type of a gcc2
8616   builtin and then its argument prototype would still apply.  */
8617char dlopen ();
8618int
8619main ()
8620{
8621dlopen ();
8622  ;
8623  return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext conftest$ac_exeext
8627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628  (eval $ac_link) 2>conftest.er1
8629  ac_status=$?
8630  grep -v '^ *+' conftest.er1 >conftest.err
8631  rm -f conftest.er1
8632  cat conftest.err >&5
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); } &&
8635	 { ac_try='test -z "$ac_c_werror_flag"
8636			 || test ! -s conftest.err'
8637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638  (eval $ac_try) 2>&5
8639  ac_status=$?
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); }; } &&
8642	 { ac_try='test -s conftest$ac_exeext'
8643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644  (eval $ac_try) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  ac_cv_lib_svld_dlopen=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653ac_cv_lib_svld_dlopen=no
8654fi
8655rm -f conftest.err conftest.$ac_objext \
8656      conftest$ac_exeext conftest.$ac_ext
8657LIBS=$ac_check_lib_save_LIBS
8658fi
8659echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8660echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8661if test $ac_cv_lib_svld_dlopen = yes; then
8662  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8663else
8664  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8665echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8666if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8667  echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669  ac_check_lib_save_LIBS=$LIBS
8670LIBS="-ldld  $LIBS"
8671cat >conftest.$ac_ext <<_ACEOF
8672/* confdefs.h.  */
8673_ACEOF
8674cat confdefs.h >>conftest.$ac_ext
8675cat >>conftest.$ac_ext <<_ACEOF
8676/* end confdefs.h.  */
8677
8678/* Override any gcc2 internal prototype to avoid an error.  */
8679#ifdef __cplusplus
8680extern "C"
8681#endif
8682/* We use char because int might match the return type of a gcc2
8683   builtin and then its argument prototype would still apply.  */
8684char dld_link ();
8685int
8686main ()
8687{
8688dld_link ();
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695  (eval $ac_link) 2>conftest.er1
8696  ac_status=$?
8697  grep -v '^ *+' conftest.er1 >conftest.err
8698  rm -f conftest.er1
8699  cat conftest.err >&5
8700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701  (exit $ac_status); } &&
8702	 { ac_try='test -z "$ac_c_werror_flag"
8703			 || test ! -s conftest.err'
8704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705  (eval $ac_try) 2>&5
8706  ac_status=$?
8707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708  (exit $ac_status); }; } &&
8709	 { ac_try='test -s conftest$ac_exeext'
8710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711  (eval $ac_try) 2>&5
8712  ac_status=$?
8713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714  (exit $ac_status); }; }; then
8715  ac_cv_lib_dld_dld_link=yes
8716else
8717  echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720ac_cv_lib_dld_dld_link=no
8721fi
8722rm -f conftest.err conftest.$ac_objext \
8723      conftest$ac_exeext conftest.$ac_ext
8724LIBS=$ac_check_lib_save_LIBS
8725fi
8726echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8727echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8728if test $ac_cv_lib_dld_dld_link = yes; then
8729  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8730fi
8731
8732
8733fi
8734
8735
8736fi
8737
8738
8739fi
8740
8741
8742fi
8743
8744
8745fi
8746
8747    ;;
8748  esac
8749
8750  if test "x$lt_cv_dlopen" != xno; then
8751    enable_dlopen=yes
8752  else
8753    enable_dlopen=no
8754  fi
8755
8756  case $lt_cv_dlopen in
8757  dlopen)
8758    save_CPPFLAGS="$CPPFLAGS"
8759    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8760
8761    save_LDFLAGS="$LDFLAGS"
8762    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8763
8764    save_LIBS="$LIBS"
8765    LIBS="$lt_cv_dlopen_libs $LIBS"
8766
8767    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8768echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8769if test "${lt_cv_dlopen_self+set}" = set; then
8770  echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772  	  if test "$cross_compiling" = yes; then :
8773  lt_cv_dlopen_self=cross
8774else
8775  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8776  lt_status=$lt_dlunknown
8777  cat > conftest.$ac_ext <<EOF
8778#line 8778 "configure"
8779#include "confdefs.h"
8780
8781#if HAVE_DLFCN_H
8782#include <dlfcn.h>
8783#endif
8784
8785#include <stdio.h>
8786
8787#ifdef RTLD_GLOBAL
8788#  define LT_DLGLOBAL		RTLD_GLOBAL
8789#else
8790#  ifdef DL_GLOBAL
8791#    define LT_DLGLOBAL		DL_GLOBAL
8792#  else
8793#    define LT_DLGLOBAL		0
8794#  endif
8795#endif
8796
8797/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8798   find out it does not work in some platform. */
8799#ifndef LT_DLLAZY_OR_NOW
8800#  ifdef RTLD_LAZY
8801#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8802#  else
8803#    ifdef DL_LAZY
8804#      define LT_DLLAZY_OR_NOW		DL_LAZY
8805#    else
8806#      ifdef RTLD_NOW
8807#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8808#      else
8809#        ifdef DL_NOW
8810#          define LT_DLLAZY_OR_NOW	DL_NOW
8811#        else
8812#          define LT_DLLAZY_OR_NOW	0
8813#        endif
8814#      endif
8815#    endif
8816#  endif
8817#endif
8818
8819#ifdef __cplusplus
8820extern "C" void exit (int);
8821#endif
8822
8823void fnord() { int i=42;}
8824int main ()
8825{
8826  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8827  int status = $lt_dlunknown;
8828
8829  if (self)
8830    {
8831      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8832      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8833      /* dlclose (self); */
8834    }
8835
8836    exit (status);
8837}
8838EOF
8839  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840  (eval $ac_link) 2>&5
8841  ac_status=$?
8842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8844    (./conftest; exit; ) 2>/dev/null
8845    lt_status=$?
8846    case x$lt_status in
8847      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8848      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8849      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8850    esac
8851  else :
8852    # compilation failed
8853    lt_cv_dlopen_self=no
8854  fi
8855fi
8856rm -fr conftest*
8857
8858
8859fi
8860echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8861echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8862
8863    if test "x$lt_cv_dlopen_self" = xyes; then
8864      LDFLAGS="$LDFLAGS $link_static_flag"
8865      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8866echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8867if test "${lt_cv_dlopen_self_static+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  	  if test "$cross_compiling" = yes; then :
8871  lt_cv_dlopen_self_static=cross
8872else
8873  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8874  lt_status=$lt_dlunknown
8875  cat > conftest.$ac_ext <<EOF
8876#line 8876 "configure"
8877#include "confdefs.h"
8878
8879#if HAVE_DLFCN_H
8880#include <dlfcn.h>
8881#endif
8882
8883#include <stdio.h>
8884
8885#ifdef RTLD_GLOBAL
8886#  define LT_DLGLOBAL		RTLD_GLOBAL
8887#else
8888#  ifdef DL_GLOBAL
8889#    define LT_DLGLOBAL		DL_GLOBAL
8890#  else
8891#    define LT_DLGLOBAL		0
8892#  endif
8893#endif
8894
8895/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8896   find out it does not work in some platform. */
8897#ifndef LT_DLLAZY_OR_NOW
8898#  ifdef RTLD_LAZY
8899#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8900#  else
8901#    ifdef DL_LAZY
8902#      define LT_DLLAZY_OR_NOW		DL_LAZY
8903#    else
8904#      ifdef RTLD_NOW
8905#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8906#      else
8907#        ifdef DL_NOW
8908#          define LT_DLLAZY_OR_NOW	DL_NOW
8909#        else
8910#          define LT_DLLAZY_OR_NOW	0
8911#        endif
8912#      endif
8913#    endif
8914#  endif
8915#endif
8916
8917#ifdef __cplusplus
8918extern "C" void exit (int);
8919#endif
8920
8921void fnord() { int i=42;}
8922int main ()
8923{
8924  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8925  int status = $lt_dlunknown;
8926
8927  if (self)
8928    {
8929      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8930      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8931      /* dlclose (self); */
8932    }
8933
8934    exit (status);
8935}
8936EOF
8937  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938  (eval $ac_link) 2>&5
8939  ac_status=$?
8940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8942    (./conftest; exit; ) 2>/dev/null
8943    lt_status=$?
8944    case x$lt_status in
8945      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8946      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8947      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8948    esac
8949  else :
8950    # compilation failed
8951    lt_cv_dlopen_self_static=no
8952  fi
8953fi
8954rm -fr conftest*
8955
8956
8957fi
8958echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8959echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8960    fi
8961
8962    CPPFLAGS="$save_CPPFLAGS"
8963    LDFLAGS="$save_LDFLAGS"
8964    LIBS="$save_LIBS"
8965    ;;
8966  esac
8967
8968  case $lt_cv_dlopen_self in
8969  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8970  *) enable_dlopen_self=unknown ;;
8971  esac
8972
8973  case $lt_cv_dlopen_self_static in
8974  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8975  *) enable_dlopen_self_static=unknown ;;
8976  esac
8977fi
8978
8979
8980# Report which librarie types wil actually be built
8981echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8982echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8983echo "$as_me:$LINENO: result: $can_build_shared" >&5
8984echo "${ECHO_T}$can_build_shared" >&6
8985
8986echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8987echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8988test "$can_build_shared" = "no" && enable_shared=no
8989
8990# On AIX, shared libraries and static libraries use the same namespace, and
8991# are all built from PIC.
8992case "$host_os" in
8993aix3*)
8994  test "$enable_shared" = yes && enable_static=no
8995  if test -n "$RANLIB"; then
8996    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8997    postinstall_cmds='$RANLIB $lib'
8998  fi
8999  ;;
9000
9001aix4* | aix5*)
9002  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9003    test "$enable_shared" = yes && enable_static=no
9004  fi
9005    ;;
9006esac
9007echo "$as_me:$LINENO: result: $enable_shared" >&5
9008echo "${ECHO_T}$enable_shared" >&6
9009
9010echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9011echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9012# Make sure either enable_shared or enable_static is yes.
9013test "$enable_shared" = yes || enable_static=yes
9014echo "$as_me:$LINENO: result: $enable_static" >&5
9015echo "${ECHO_T}$enable_static" >&6
9016
9017# The else clause should only fire when bootstrapping the
9018# libtool distribution, otherwise you forgot to ship ltmain.sh
9019# with your package, and you will get complaints that there are
9020# no rules to generate ltmain.sh.
9021if test -f "$ltmain"; then
9022  # See if we are running on zsh, and set the options which allow our commands through
9023  # without removal of \ escapes.
9024  if test -n "${ZSH_VERSION+set}" ; then
9025    setopt NO_GLOB_SUBST
9026  fi
9027  # Now quote all the things that may contain metacharacters while being
9028  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9029  # variables and quote the copies for generation of the libtool script.
9030  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9031    SED SHELL STRIP \
9032    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9033    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9034    deplibs_check_method reload_flag reload_cmds need_locks \
9035    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9036    lt_cv_sys_global_symbol_to_c_name_address \
9037    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9038    old_postinstall_cmds old_postuninstall_cmds \
9039    compiler \
9040    CC \
9041    LD \
9042    lt_prog_compiler_wl \
9043    lt_prog_compiler_pic \
9044    lt_prog_compiler_static \
9045    lt_prog_compiler_no_builtin_flag \
9046    export_dynamic_flag_spec \
9047    thread_safe_flag_spec \
9048    whole_archive_flag_spec \
9049    enable_shared_with_static_runtimes \
9050    old_archive_cmds \
9051    old_archive_from_new_cmds \
9052    predep_objects \
9053    postdep_objects \
9054    predeps \
9055    postdeps \
9056    compiler_lib_search_path \
9057    archive_cmds \
9058    archive_expsym_cmds \
9059    postinstall_cmds \
9060    postuninstall_cmds \
9061    old_archive_from_expsyms_cmds \
9062    allow_undefined_flag \
9063    no_undefined_flag \
9064    export_symbols_cmds \
9065    hardcode_libdir_flag_spec \
9066    hardcode_libdir_flag_spec_ld \
9067    hardcode_libdir_separator \
9068    hardcode_automatic \
9069    module_cmds \
9070    module_expsym_cmds \
9071    lt_cv_prog_compiler_c_o \
9072    exclude_expsyms \
9073    include_expsyms; do
9074
9075    case $var in
9076    old_archive_cmds | \
9077    old_archive_from_new_cmds | \
9078    archive_cmds | \
9079    archive_expsym_cmds | \
9080    module_cmds | \
9081    module_expsym_cmds | \
9082    old_archive_from_expsyms_cmds | \
9083    export_symbols_cmds | \
9084    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9085    postinstall_cmds | postuninstall_cmds | \
9086    old_postinstall_cmds | old_postuninstall_cmds | \
9087    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9088      # Double-quote double-evaled strings.
9089      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9090      ;;
9091    *)
9092      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9093      ;;
9094    esac
9095  done
9096
9097  case $lt_echo in
9098  *'\$0 --fallback-echo"')
9099    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9100    ;;
9101  esac
9102
9103cfgfile="${ofile}T"
9104  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9105  $rm -f "$cfgfile"
9106  { echo "$as_me:$LINENO: creating $ofile" >&5
9107echo "$as_me: creating $ofile" >&6;}
9108
9109  cat <<__EOF__ >> "$cfgfile"
9110#! $SHELL
9111
9112# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9113# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9114# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9115#
9116# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9117# Free Software Foundation, Inc.
9118#
9119# This file is part of GNU Libtool:
9120# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9121#
9122# This program is free software; you can redistribute it and/or modify
9123# it under the terms of the GNU General Public License as published by
9124# the Free Software Foundation; either version 2 of the License, or
9125# (at your option) any later version.
9126#
9127# This program is distributed in the hope that it will be useful, but
9128# WITHOUT ANY WARRANTY; without even the implied warranty of
9129# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9130# General Public License for more details.
9131#
9132# You should have received a copy of the GNU General Public License
9133# along with this program; if not, write to the Free Software
9134# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9135#
9136# As a special exception to the GNU General Public License, if you
9137# distribute this file as part of a program that contains a
9138# configuration script generated by Autoconf, you may include it under
9139# the same distribution terms that you use for the rest of that program.
9140
9141# A sed program that does not truncate output.
9142SED=$lt_SED
9143
9144# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9145Xsed="$SED -e s/^X//"
9146
9147# The HP-UX ksh and POSIX shell print the target directory to stdout
9148# if CDPATH is set.
9149(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9150
9151# The names of the tagged configurations supported by this script.
9152available_tags=
9153
9154# ### BEGIN LIBTOOL CONFIG
9155
9156# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9157
9158# Shell to use when invoking shell scripts.
9159SHELL=$lt_SHELL
9160
9161# Whether or not to build shared libraries.
9162build_libtool_libs=$enable_shared
9163
9164# Whether or not to build static libraries.
9165build_old_libs=$enable_static
9166
9167# Whether or not to add -lc for building shared libraries.
9168build_libtool_need_lc=$archive_cmds_need_lc
9169
9170# Whether or not to disallow shared libs when runtime libs are static
9171allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9172
9173# Whether or not to optimize for fast installation.
9174fast_install=$enable_fast_install
9175
9176# The host system.
9177host_alias=$host_alias
9178host=$host
9179
9180# An echo program that does not interpret backslashes.
9181echo=$lt_echo
9182
9183# The archiver.
9184AR=$lt_AR
9185AR_FLAGS=$lt_AR_FLAGS
9186
9187# A C compiler.
9188LTCC=$lt_LTCC
9189
9190# A language-specific compiler.
9191CC=$lt_compiler
9192
9193# Is the compiler the GNU C compiler?
9194with_gcc=$GCC
9195
9196# An ERE matcher.
9197EGREP=$lt_EGREP
9198
9199# The linker used to build libraries.
9200LD=$lt_LD
9201
9202# Whether we need hard or soft links.
9203LN_S=$lt_LN_S
9204
9205# A BSD-compatible nm program.
9206NM=$lt_NM
9207
9208# A symbol stripping program
9209STRIP=$lt_STRIP
9210
9211# Used to examine libraries when file_magic_cmd begins "file"
9212MAGIC_CMD=$MAGIC_CMD
9213
9214# Used on cygwin: DLL creation program.
9215DLLTOOL="$DLLTOOL"
9216
9217# Used on cygwin: object dumper.
9218OBJDUMP="$OBJDUMP"
9219
9220# Used on cygwin: assembler.
9221AS="$AS"
9222
9223# The name of the directory that contains temporary libtool files.
9224objdir=$objdir
9225
9226# How to create reloadable object files.
9227reload_flag=$lt_reload_flag
9228reload_cmds=$lt_reload_cmds
9229
9230# How to pass a linker flag through the compiler.
9231wl=$lt_lt_prog_compiler_wl
9232
9233# Object file suffix (normally "o").
9234objext="$ac_objext"
9235
9236# Old archive suffix (normally "a").
9237libext="$libext"
9238
9239# Shared library suffix (normally ".so").
9240shrext_cmds='$shrext_cmds'
9241
9242# Executable file suffix (normally "").
9243exeext="$exeext"
9244
9245# Additional compiler flags for building library objects.
9246pic_flag=$lt_lt_prog_compiler_pic
9247pic_mode=$pic_mode
9248
9249# What is the maximum length of a command?
9250max_cmd_len=$lt_cv_sys_max_cmd_len
9251
9252# Does compiler simultaneously support -c and -o options?
9253compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9254
9255# Must we lock files when doing compilation ?
9256need_locks=$lt_need_locks
9257
9258# Do we need the lib prefix for modules?
9259need_lib_prefix=$need_lib_prefix
9260
9261# Do we need a version for libraries?
9262need_version=$need_version
9263
9264# Whether dlopen is supported.
9265dlopen_support=$enable_dlopen
9266
9267# Whether dlopen of programs is supported.
9268dlopen_self=$enable_dlopen_self
9269
9270# Whether dlopen of statically linked programs is supported.
9271dlopen_self_static=$enable_dlopen_self_static
9272
9273# Compiler flag to prevent dynamic linking.
9274link_static_flag=$lt_lt_prog_compiler_static
9275
9276# Compiler flag to turn off builtin functions.
9277no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9278
9279# Compiler flag to allow reflexive dlopens.
9280export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9281
9282# Compiler flag to generate shared objects directly from archives.
9283whole_archive_flag_spec=$lt_whole_archive_flag_spec
9284
9285# Compiler flag to generate thread-safe objects.
9286thread_safe_flag_spec=$lt_thread_safe_flag_spec
9287
9288# Library versioning type.
9289version_type=$version_type
9290
9291# Format of library name prefix.
9292libname_spec=$lt_libname_spec
9293
9294# List of archive names.  First name is the real one, the rest are links.
9295# The last name is the one that the linker finds with -lNAME.
9296library_names_spec=$lt_library_names_spec
9297
9298# The coded name of the library, if different from the real name.
9299soname_spec=$lt_soname_spec
9300
9301# Commands used to build and install an old-style archive.
9302RANLIB=$lt_RANLIB
9303old_archive_cmds=$lt_old_archive_cmds
9304old_postinstall_cmds=$lt_old_postinstall_cmds
9305old_postuninstall_cmds=$lt_old_postuninstall_cmds
9306
9307# Create an old-style archive from a shared archive.
9308old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9309
9310# Create a temporary old-style archive to link instead of a shared archive.
9311old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9312
9313# Commands used to build and install a shared archive.
9314archive_cmds=$lt_archive_cmds
9315archive_expsym_cmds=$lt_archive_expsym_cmds
9316postinstall_cmds=$lt_postinstall_cmds
9317postuninstall_cmds=$lt_postuninstall_cmds
9318
9319# Commands used to build a loadable module (assumed same as above if empty)
9320module_cmds=$lt_module_cmds
9321module_expsym_cmds=$lt_module_expsym_cmds
9322
9323# Commands to strip libraries.
9324old_striplib=$lt_old_striplib
9325striplib=$lt_striplib
9326
9327# Dependencies to place before the objects being linked to create a
9328# shared library.
9329predep_objects=$lt_predep_objects
9330
9331# Dependencies to place after the objects being linked to create a
9332# shared library.
9333postdep_objects=$lt_postdep_objects
9334
9335# Dependencies to place before the objects being linked to create a
9336# shared library.
9337predeps=$lt_predeps
9338
9339# Dependencies to place after the objects being linked to create a
9340# shared library.
9341postdeps=$lt_postdeps
9342
9343# The library search path used internally by the compiler when linking
9344# a shared library.
9345compiler_lib_search_path=$lt_compiler_lib_search_path
9346
9347# Method to check whether dependent libraries are shared objects.
9348deplibs_check_method=$lt_deplibs_check_method
9349
9350# Command to use when deplibs_check_method == file_magic.
9351file_magic_cmd=$lt_file_magic_cmd
9352
9353# Flag that allows shared libraries with undefined symbols to be built.
9354allow_undefined_flag=$lt_allow_undefined_flag
9355
9356# Flag that forces no undefined symbols.
9357no_undefined_flag=$lt_no_undefined_flag
9358
9359# Commands used to finish a libtool library installation in a directory.
9360finish_cmds=$lt_finish_cmds
9361
9362# Same as above, but a single script fragment to be evaled but not shown.
9363finish_eval=$lt_finish_eval
9364
9365# Take the output of nm and produce a listing of raw symbols and C names.
9366global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9367
9368# Transform the output of nm in a proper C declaration
9369global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9370
9371# Transform the output of nm in a C name address pair
9372global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9373
9374# This is the shared library runtime path variable.
9375runpath_var=$runpath_var
9376
9377# This is the shared library path variable.
9378shlibpath_var=$shlibpath_var
9379
9380# Is shlibpath searched before the hard-coded library search path?
9381shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9382
9383# How to hardcode a shared library path into an executable.
9384hardcode_action=$hardcode_action
9385
9386# Whether we should hardcode library paths into libraries.
9387hardcode_into_libs=$hardcode_into_libs
9388
9389# Flag to hardcode \$libdir into a binary during linking.
9390# This must work even if \$libdir does not exist.
9391hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9392
9393# If ld is used when linking, flag to hardcode \$libdir into
9394# a binary during linking. This must work even if \$libdir does
9395# not exist.
9396hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9397
9398# Whether we need a single -rpath flag with a separated argument.
9399hardcode_libdir_separator=$lt_hardcode_libdir_separator
9400
9401# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9402# resulting binary.
9403hardcode_direct=$hardcode_direct
9404
9405# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9406# resulting binary.
9407hardcode_minus_L=$hardcode_minus_L
9408
9409# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9410# the resulting binary.
9411hardcode_shlibpath_var=$hardcode_shlibpath_var
9412
9413# Set to yes if building a shared library automatically hardcodes DIR into the library
9414# and all subsequent libraries and executables linked against it.
9415hardcode_automatic=$hardcode_automatic
9416
9417# Variables whose values should be saved in libtool wrapper scripts and
9418# restored at relink time.
9419variables_saved_for_relink="$variables_saved_for_relink"
9420
9421# Whether libtool must link a program against all its dependency libraries.
9422link_all_deplibs=$link_all_deplibs
9423
9424# Compile-time system search path for libraries
9425sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9426
9427# Run-time system search path for libraries
9428sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9429
9430# Fix the shell variable \$srcfile for the compiler.
9431fix_srcfile_path="$fix_srcfile_path"
9432
9433# Set to yes if exported symbols are required.
9434always_export_symbols=$always_export_symbols
9435
9436# The commands to list exported symbols.
9437export_symbols_cmds=$lt_export_symbols_cmds
9438
9439# The commands to extract the exported symbol list from a shared archive.
9440extract_expsyms_cmds=$lt_extract_expsyms_cmds
9441
9442# Symbols that should not be listed in the preloaded symbols.
9443exclude_expsyms=$lt_exclude_expsyms
9444
9445# Symbols that must always be exported.
9446include_expsyms=$lt_include_expsyms
9447
9448# ### END LIBTOOL CONFIG
9449
9450__EOF__
9451
9452
9453  case $host_os in
9454  aix3*)
9455    cat <<\EOF >> "$cfgfile"
9456
9457# AIX sometimes has problems with the GCC collect2 program.  For some
9458# reason, if we set the COLLECT_NAMES environment variable, the problems
9459# vanish in a puff of smoke.
9460if test "X${COLLECT_NAMES+set}" != Xset; then
9461  COLLECT_NAMES=
9462  export COLLECT_NAMES
9463fi
9464EOF
9465    ;;
9466  esac
9467
9468  # We use sed instead of cat because bash on DJGPP gets confused if
9469  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9470  # text mode, it properly converts lines to CR/LF.  This bash problem
9471  # is reportedly fixed, but why not run on old versions too?
9472  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9473
9474  mv -f "$cfgfile" "$ofile" || \
9475    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9476  chmod +x "$ofile"
9477
9478else
9479  # If there is no Makefile yet, we rely on a make rule to execute
9480  # `config.status --recheck' to rerun these tests and create the
9481  # libtool script then.
9482  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9483  if test -f "$ltmain_in"; then
9484    test -f Makefile && make "$ltmain"
9485  fi
9486fi
9487
9488
9489ac_ext=c
9490ac_cpp='$CPP $CPPFLAGS'
9491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493ac_compiler_gnu=$ac_cv_c_compiler_gnu
9494
9495CC="$lt_save_CC"
9496
9497
9498# Check whether --with-tags or --without-tags was given.
9499if test "${with_tags+set}" = set; then
9500  withval="$with_tags"
9501  tagnames="$withval"
9502fi;
9503
9504if test -f "$ltmain" && test -n "$tagnames"; then
9505  if test ! -f "${ofile}"; then
9506    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9507echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9508  fi
9509
9510  if test -z "$LTCC"; then
9511    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9512    if test -z "$LTCC"; then
9513      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9514echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9515    else
9516      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9517echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9518    fi
9519  fi
9520
9521  # Extract list of available tagged configurations in $ofile.
9522  # Note that this assumes the entire list is on one line.
9523  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9524
9525  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9526  for tagname in $tagnames; do
9527    IFS="$lt_save_ifs"
9528    # Check whether tagname contains only valid characters
9529    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9530    "") ;;
9531    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9532echo "$as_me: error: invalid tag name: $tagname" >&2;}
9533   { (exit 1); exit 1; }; }
9534	;;
9535    esac
9536
9537    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9538    then
9539      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9540echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9541   { (exit 1); exit 1; }; }
9542    fi
9543
9544    # Update the list of available tags.
9545    if test -n "$tagname"; then
9546      echo appending configuration tag \"$tagname\" to $ofile
9547
9548      case $tagname in
9549      CXX)
9550	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9551	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9552	    (test "X$CXX" != "Xg++"))) ; then
9553	  ac_ext=cc
9554ac_cpp='$CXXCPP $CPPFLAGS'
9555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9558
9559
9560
9561
9562archive_cmds_need_lc_CXX=no
9563allow_undefined_flag_CXX=
9564always_export_symbols_CXX=no
9565archive_expsym_cmds_CXX=
9566export_dynamic_flag_spec_CXX=
9567hardcode_direct_CXX=no
9568hardcode_libdir_flag_spec_CXX=
9569hardcode_libdir_flag_spec_ld_CXX=
9570hardcode_libdir_separator_CXX=
9571hardcode_minus_L_CXX=no
9572hardcode_automatic_CXX=no
9573module_cmds_CXX=
9574module_expsym_cmds_CXX=
9575link_all_deplibs_CXX=unknown
9576old_archive_cmds_CXX=$old_archive_cmds
9577no_undefined_flag_CXX=
9578whole_archive_flag_spec_CXX=
9579enable_shared_with_static_runtimes_CXX=no
9580
9581# Dependencies to place before and after the object being linked:
9582predep_objects_CXX=
9583postdep_objects_CXX=
9584predeps_CXX=
9585postdeps_CXX=
9586compiler_lib_search_path_CXX=
9587
9588# Source file extension for C++ test sources.
9589ac_ext=cc
9590
9591# Object file extension for compiled C++ test sources.
9592objext=o
9593objext_CXX=$objext
9594
9595# Code to be used in simple compile tests
9596lt_simple_compile_test_code="int some_variable = 0;\n"
9597
9598# Code to be used in simple link tests
9599lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9600
9601# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9602
9603# If no C compiler was specified, use CC.
9604LTCC=${LTCC-"$CC"}
9605
9606# Allow CC to be a program name with arguments.
9607compiler=$CC
9608
9609
9610# Allow CC to be a program name with arguments.
9611lt_save_CC=$CC
9612lt_save_LD=$LD
9613lt_save_GCC=$GCC
9614GCC=$GXX
9615lt_save_with_gnu_ld=$with_gnu_ld
9616lt_save_path_LD=$lt_cv_path_LD
9617if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9618  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9619else
9620  unset lt_cv_prog_gnu_ld
9621fi
9622if test -n "${lt_cv_path_LDCXX+set}"; then
9623  lt_cv_path_LD=$lt_cv_path_LDCXX
9624else
9625  unset lt_cv_path_LD
9626fi
9627test -z "${LDCXX+set}" || LD=$LDCXX
9628CC=${CXX-"c++"}
9629compiler=$CC
9630compiler_CXX=$CC
9631cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9632
9633# We don't want -fno-exception wen compiling C++ code, so set the
9634# no_builtin_flag separately
9635if test "$GXX" = yes; then
9636  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9637else
9638  lt_prog_compiler_no_builtin_flag_CXX=
9639fi
9640
9641if test "$GXX" = yes; then
9642  # Set up default GNU C++ configuration
9643
9644
9645# Check whether --with-gnu-ld or --without-gnu-ld was given.
9646if test "${with_gnu_ld+set}" = set; then
9647  withval="$with_gnu_ld"
9648  test "$withval" = no || with_gnu_ld=yes
9649else
9650  with_gnu_ld=no
9651fi;
9652ac_prog=ld
9653if test "$GCC" = yes; then
9654  # Check if gcc -print-prog-name=ld gives a path.
9655  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9656echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9657  case $host in
9658  *-*-mingw*)
9659    # gcc leaves a trailing carriage return which upsets mingw
9660    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9661  *)
9662    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9663  esac
9664  case $ac_prog in
9665    # Accept absolute paths.
9666    [\\/]* | ?:[\\/]*)
9667      re_direlt='/[^/][^/]*/\.\./'
9668      # Canonicalize the pathname of ld
9669      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9670      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9671	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9672      done
9673      test -z "$LD" && LD="$ac_prog"
9674      ;;
9675  "")
9676    # If it fails, then pretend we aren't using GCC.
9677    ac_prog=ld
9678    ;;
9679  *)
9680    # If it is relative, then search for the first ld in PATH.
9681    with_gnu_ld=unknown
9682    ;;
9683  esac
9684elif test "$with_gnu_ld" = yes; then
9685  echo "$as_me:$LINENO: checking for GNU ld" >&5
9686echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9687else
9688  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9689echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9690fi
9691if test "${lt_cv_path_LD+set}" = set; then
9692  echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694  if test -z "$LD"; then
9695  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9696  for ac_dir in $PATH; do
9697    IFS="$lt_save_ifs"
9698    test -z "$ac_dir" && ac_dir=.
9699    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9700      lt_cv_path_LD="$ac_dir/$ac_prog"
9701      # Check to see if the program is GNU ld.  I'd rather use --version,
9702      # but apparently some GNU ld's only accept -v.
9703      # Break only if it was the GNU/non-GNU ld that we prefer.
9704      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9705      *GNU* | *'with BFD'*)
9706	test "$with_gnu_ld" != no && break
9707	;;
9708      *)
9709	test "$with_gnu_ld" != yes && break
9710	;;
9711      esac
9712    fi
9713  done
9714  IFS="$lt_save_ifs"
9715else
9716  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9717fi
9718fi
9719
9720LD="$lt_cv_path_LD"
9721if test -n "$LD"; then
9722  echo "$as_me:$LINENO: result: $LD" >&5
9723echo "${ECHO_T}$LD" >&6
9724else
9725  echo "$as_me:$LINENO: result: no" >&5
9726echo "${ECHO_T}no" >&6
9727fi
9728test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9729echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9730   { (exit 1); exit 1; }; }
9731echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9732echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9733if test "${lt_cv_prog_gnu_ld+set}" = set; then
9734  echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9737case `$LD -v 2>&1 </dev/null` in
9738*GNU* | *'with BFD'*)
9739  lt_cv_prog_gnu_ld=yes
9740  ;;
9741*)
9742  lt_cv_prog_gnu_ld=no
9743  ;;
9744esac
9745fi
9746echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9747echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9748with_gnu_ld=$lt_cv_prog_gnu_ld
9749
9750
9751
9752  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9753  # archiving commands below assume that GNU ld is being used.
9754  if test "$with_gnu_ld" = yes; then
9755    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9756    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'
9757
9758    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9759    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9760
9761    # If archive_cmds runs LD, not CC, wlarc should be empty
9762    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9763    #     investigate it a little bit more. (MM)
9764    wlarc='${wl}'
9765
9766    # ancient GNU ld didn't support --whole-archive et. al.
9767    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9768	grep 'no-whole-archive' > /dev/null; then
9769      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9770    else
9771      whole_archive_flag_spec_CXX=
9772    fi
9773  else
9774    with_gnu_ld=no
9775    wlarc=
9776
9777    # A generic and very simple default shared library creation
9778    # command for GNU C++ for the case where it uses the native
9779    # linker, instead of GNU ld.  If possible, this setting should
9780    # overridden to take advantage of the native linker features on
9781    # the platform it is being used on.
9782    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9783  fi
9784
9785  # Commands to make compiler produce verbose output that lists
9786  # what "hidden" libraries, object files and flags are used when
9787  # linking a shared library.
9788  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9789
9790else
9791  GXX=no
9792  with_gnu_ld=no
9793  wlarc=
9794fi
9795
9796# PORTME: fill in a description of your system's C++ link characteristics
9797echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9799ld_shlibs_CXX=yes
9800case $host_os in
9801  aix3*)
9802    # FIXME: insert proper C++ library support
9803    ld_shlibs_CXX=no
9804    ;;
9805  aix4* | aix5*)
9806    if test "$host_cpu" = ia64; then
9807      # On IA64, the linker does run time linking by default, so we don't
9808      # have to do anything special.
9809      aix_use_runtimelinking=no
9810      exp_sym_flag='-Bexport'
9811      no_entry_flag=""
9812    else
9813      aix_use_runtimelinking=no
9814
9815      # Test if we are trying to use run time linking or normal
9816      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9817      # need to do runtime linking.
9818      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9819	for ld_flag in $LDFLAGS; do
9820	  case $ld_flag in
9821	  *-brtl*)
9822	    aix_use_runtimelinking=yes
9823	    break
9824	    ;;
9825	  esac
9826	done
9827      esac
9828
9829      exp_sym_flag='-bexport'
9830      no_entry_flag='-bnoentry'
9831    fi
9832
9833    # When large executables or shared objects are built, AIX ld can
9834    # have problems creating the table of contents.  If linking a library
9835    # or program results in "error TOC overflow" add -mminimal-toc to
9836    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9837    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9838
9839    archive_cmds_CXX=''
9840    hardcode_direct_CXX=yes
9841    hardcode_libdir_separator_CXX=':'
9842    link_all_deplibs_CXX=yes
9843
9844    if test "$GXX" = yes; then
9845      case $host_os in aix4.012|aix4.012.*)
9846      # We only want to do this on AIX 4.2 and lower, the check
9847      # below for broken collect2 doesn't work under 4.3+
9848	collect2name=`${CC} -print-prog-name=collect2`
9849	if test -f "$collect2name" && \
9850	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9851	then
9852	  # We have reworked collect2
9853	  hardcode_direct_CXX=yes
9854	else
9855	  # We have old collect2
9856	  hardcode_direct_CXX=unsupported
9857	  # It fails to find uninstalled libraries when the uninstalled
9858	  # path is not listed in the libpath.  Setting hardcode_minus_L
9859	  # to unsupported forces relinking
9860	  hardcode_minus_L_CXX=yes
9861	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9862	  hardcode_libdir_separator_CXX=
9863	fi
9864      esac
9865      shared_flag='-shared'
9866    else
9867      # not using gcc
9868      if test "$host_cpu" = ia64; then
9869	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9870	# chokes on -Wl,-G. The following line is correct:
9871	shared_flag='-G'
9872      else
9873	if test "$aix_use_runtimelinking" = yes; then
9874	  shared_flag='${wl}-G'
9875	else
9876	  shared_flag='${wl}-bM:SRE'
9877	fi
9878      fi
9879    fi
9880
9881    # It seems that -bexpall does not export symbols beginning with
9882    # underscore (_), so it is better to generate a list of symbols to export.
9883    always_export_symbols_CXX=yes
9884    if test "$aix_use_runtimelinking" = yes; then
9885      # Warning - without using the other runtime loading flags (-brtl),
9886      # -berok will link without error, but may produce a broken library.
9887      allow_undefined_flag_CXX='-berok'
9888      # Determine the default libpath from the value encoded in an empty executable.
9889      cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h.  */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h.  */
9895
9896int
9897main ()
9898{
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906  (eval $ac_link) 2>conftest.er1
9907  ac_status=$?
9908  grep -v '^ *+' conftest.er1 >conftest.err
9909  rm -f conftest.er1
9910  cat conftest.err >&5
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); } &&
9913	 { ac_try='test -z "$ac_cxx_werror_flag"
9914			 || test ! -s conftest.err'
9915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916  (eval $ac_try) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); }; } &&
9920	 { ac_try='test -s conftest$ac_exeext'
9921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922  (eval $ac_try) 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926
9927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928}'`
9929# Check for a 64-bit object if we didn't find anything.
9930if 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; }
9931}'`; fi
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936fi
9937rm -f conftest.err conftest.$ac_objext \
9938      conftest$ac_exeext conftest.$ac_ext
9939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9942
9943      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"
9944     else
9945      if test "$host_cpu" = ia64; then
9946	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9947	allow_undefined_flag_CXX="-z nodefs"
9948	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"
9949      else
9950	# Determine the default libpath from the value encoded in an empty executable.
9951	cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957
9958int
9959main ()
9960{
9961
9962  ;
9963  return 0;
9964}
9965_ACEOF
9966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968  (eval $ac_link) 2>conftest.er1
9969  ac_status=$?
9970  grep -v '^ *+' conftest.er1 >conftest.err
9971  rm -f conftest.er1
9972  cat conftest.err >&5
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); } &&
9975	 { ac_try='test -z "$ac_cxx_werror_flag"
9976			 || test ! -s conftest.err'
9977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978  (eval $ac_try) 2>&5
9979  ac_status=$?
9980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981  (exit $ac_status); }; } &&
9982	 { ac_try='test -s conftest$ac_exeext'
9983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984  (eval $ac_try) 2>&5
9985  ac_status=$?
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); }; }; then
9988
9989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9990}'`
9991# Check for a 64-bit object if we didn't find anything.
9992if 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; }
9993}'`; fi
9994else
9995  echo "$as_me: failed program was:" >&5
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
9998fi
9999rm -f conftest.err conftest.$ac_objext \
10000      conftest$ac_exeext conftest.$ac_ext
10001if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10002
10003	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10004	# Warning - without using the other run time loading flags,
10005	# -berok will link without error, but may produce a broken library.
10006	no_undefined_flag_CXX=' ${wl}-bernotok'
10007	allow_undefined_flag_CXX=' ${wl}-berok'
10008	# -bexpall does not export symbols beginning with underscore (_)
10009	always_export_symbols_CXX=yes
10010	# Exported symbols can be pulled into shared objects from archives
10011	whole_archive_flag_spec_CXX=' '
10012	archive_cmds_need_lc_CXX=yes
10013	# This is similar to how AIX traditionally builds it's shared libraries.
10014	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'
10015      fi
10016    fi
10017    ;;
10018  chorus*)
10019    case $cc_basename in
10020      *)
10021	# FIXME: insert proper C++ library support
10022	ld_shlibs_CXX=no
10023	;;
10024    esac
10025    ;;
10026
10027
10028  cygwin* | mingw* | pw32*)
10029    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10030    # as there is no search path for DLLs.
10031    hardcode_libdir_flag_spec_CXX='-L$libdir'
10032    allow_undefined_flag_CXX=unsupported
10033    always_export_symbols_CXX=no
10034    enable_shared_with_static_runtimes_CXX=yes
10035
10036    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10037      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10038      # If the export-symbols file already is a .def file (1st line
10039      # is EXPORTS), use it as is; otherwise, prepend...
10040      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10041	cp $export_symbols $output_objdir/$soname.def;
10042      else
10043	echo EXPORTS > $output_objdir/$soname.def;
10044	cat $export_symbols >> $output_objdir/$soname.def;
10045      fi~
10046      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10047    else
10048      ld_shlibs_CXX=no
10049    fi
10050  ;;
10051      darwin* | rhapsody*)
10052        case "$host_os" in
10053        rhapsody* | darwin1.[012])
10054         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10055         ;;
10056       *) # Darwin 1.3 on
10057         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10058           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10059         else
10060           case ${MACOSX_DEPLOYMENT_TARGET} in
10061             10.[012])
10062               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10063               ;;
10064             10.*)
10065               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10066               ;;
10067           esac
10068         fi
10069         ;;
10070        esac
10071      archive_cmds_need_lc_CXX=no
10072      hardcode_direct_CXX=no
10073      hardcode_automatic_CXX=yes
10074      hardcode_shlibpath_var_CXX=unsupported
10075      whole_archive_flag_spec_CXX=''
10076      link_all_deplibs_CXX=yes
10077
10078    if test "$GXX" = yes ; then
10079      lt_int_apple_cc_single_mod=no
10080      output_verbose_link_cmd='echo'
10081      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10082       lt_int_apple_cc_single_mod=yes
10083      fi
10084      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10085       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10086      else
10087          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'
10088        fi
10089        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10090        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10091          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10092            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}'
10093          else
10094            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}'
10095          fi
10096            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}'
10097      else
10098      case "$cc_basename" in
10099        xlc*)
10100         output_verbose_link_cmd='echo'
10101          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'
10102          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10103          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10104          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}'
10105          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}'
10106          ;;
10107       *)
10108         ld_shlibs_CXX=no
10109          ;;
10110      esac
10111      fi
10112        ;;
10113
10114  dgux*)
10115    case $cc_basename in
10116      ec++)
10117	# FIXME: insert proper C++ library support
10118	ld_shlibs_CXX=no
10119	;;
10120      ghcx)
10121	# Green Hills C++ Compiler
10122	# FIXME: insert proper C++ library support
10123	ld_shlibs_CXX=no
10124	;;
10125      *)
10126	# FIXME: insert proper C++ library support
10127	ld_shlibs_CXX=no
10128	;;
10129    esac
10130    ;;
10131  freebsd12*)
10132    # C++ shared libraries reported to be fairly broken before switch to ELF
10133    ld_shlibs_CXX=no
10134    ;;
10135  freebsd-elf*)
10136    archive_cmds_need_lc_CXX=no
10137    ;;
10138  freebsd* | kfreebsd*-gnu)
10139    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10140    # conventions
10141    ld_shlibs_CXX=yes
10142    ;;
10143  gnu*)
10144    ;;
10145  hpux9*)
10146    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10147    hardcode_libdir_separator_CXX=:
10148    export_dynamic_flag_spec_CXX='${wl}-E'
10149    hardcode_direct_CXX=yes
10150    hardcode_minus_L_CXX=yes # Not in the search PATH,
10151				# but as the default
10152				# location of the library.
10153
10154    case $cc_basename in
10155    CC)
10156      # FIXME: insert proper C++ library support
10157      ld_shlibs_CXX=no
10158      ;;
10159    aCC)
10160      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'
10161      # Commands to make compiler produce verbose output that lists
10162      # what "hidden" libraries, object files and flags are used when
10163      # linking a shared library.
10164      #
10165      # There doesn't appear to be a way to prevent this compiler from
10166      # explicitly linking system object files so we need to strip them
10167      # from the output so that they don't get included in the library
10168      # dependencies.
10169      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'
10170      ;;
10171    *)
10172      if test "$GXX" = yes; then
10173        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'
10174      else
10175        # FIXME: insert proper C++ library support
10176        ld_shlibs_CXX=no
10177      fi
10178      ;;
10179    esac
10180    ;;
10181  hpux10*|hpux11*)
10182    if test $with_gnu_ld = no; then
10183      case "$host_cpu" in
10184      hppa*64*)
10185	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10187	hardcode_libdir_separator_CXX=:
10188        ;;
10189      ia64*)
10190	hardcode_libdir_flag_spec_CXX='-L$libdir'
10191        ;;
10192      *)
10193	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10194	hardcode_libdir_separator_CXX=:
10195	export_dynamic_flag_spec_CXX='${wl}-E'
10196        ;;
10197      esac
10198    fi
10199    case "$host_cpu" in
10200    hppa*64*)
10201      hardcode_direct_CXX=no
10202      hardcode_shlibpath_var_CXX=no
10203      ;;
10204    ia64*)
10205      hardcode_direct_CXX=no
10206      hardcode_shlibpath_var_CXX=no
10207      hardcode_minus_L_CXX=yes # Not in the search PATH,
10208					      # but as the default
10209					      # location of the library.
10210      ;;
10211    *)
10212      hardcode_direct_CXX=yes
10213      hardcode_minus_L_CXX=yes # Not in the search PATH,
10214					      # but as the default
10215					      # location of the library.
10216      ;;
10217    esac
10218
10219    case $cc_basename in
10220      CC)
10221	# FIXME: insert proper C++ library support
10222	ld_shlibs_CXX=no
10223	;;
10224      aCC)
10225	case "$host_cpu" in
10226	hppa*64*|ia64*)
10227	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10228	  ;;
10229	*)
10230	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10231	  ;;
10232	esac
10233	# Commands to make compiler produce verbose output that lists
10234	# what "hidden" libraries, object files and flags are used when
10235	# linking a shared library.
10236	#
10237	# There doesn't appear to be a way to prevent this compiler from
10238	# explicitly linking system object files so we need to strip them
10239	# from the output so that they don't get included in the library
10240	# dependencies.
10241	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'
10242	;;
10243      *)
10244	if test "$GXX" = yes; then
10245	  if test $with_gnu_ld = no; then
10246	    case "$host_cpu" in
10247	    ia64*|hppa*64*)
10248	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10249	      ;;
10250	    *)
10251	      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'
10252	      ;;
10253	    esac
10254	  fi
10255	else
10256	  # FIXME: insert proper C++ library support
10257	  ld_shlibs_CXX=no
10258	fi
10259	;;
10260    esac
10261    ;;
10262  irix5* | irix6*)
10263    case $cc_basename in
10264      CC)
10265	# SGI C++
10266	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 ${objdir}/so_locations -o $lib'
10267
10268	# Archives containing C++ object files must be created using
10269	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10270	# necessary to make sure instantiated templates are included
10271	# in the archive.
10272	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10273	;;
10274      *)
10275	if test "$GXX" = yes; then
10276	  if test "$with_gnu_ld" = no; then
10277	    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}${objdir}/so_locations -o $lib'
10278	  else
10279	    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'
10280	  fi
10281	fi
10282	link_all_deplibs_CXX=yes
10283	;;
10284    esac
10285    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10286    hardcode_libdir_separator_CXX=:
10287    ;;
10288  linux*)
10289    case $cc_basename in
10290      KCC)
10291	# Kuck and Associates, Inc. (KAI) C++ Compiler
10292
10293	# KCC will only create a shared library if the output file
10294	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10295	# to its proper name (with version) after linking.
10296	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'
10297	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'
10298	# Commands to make compiler produce verbose output that lists
10299	# what "hidden" libraries, object files and flags are used when
10300	# linking a shared library.
10301	#
10302	# There doesn't appear to be a way to prevent this compiler from
10303	# explicitly linking system object files so we need to strip them
10304	# from the output so that they don't get included in the library
10305	# dependencies.
10306	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'
10307
10308	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10309	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310
10311	# Archives containing C++ object files must be created using
10312	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10313	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10314	;;
10315      icpc)
10316	# Intel C++
10317	with_gnu_ld=yes
10318	# version 8.0 and above of icpc choke on multiply defined symbols
10319	# if we add $predep_objects and $postdep_objects, however 7.1 and
10320	# earlier do not add the objects themselves.
10321	case `$CC -V 2>&1` in
10322	*"Version 7."*)
10323  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324  	  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'
10325	  ;;
10326	*)  # Version 8.0 or newer
10327  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10329	  ;;
10330	esac
10331	archive_cmds_need_lc_CXX=no
10332	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10335	;;
10336      cxx)
10337	# Compaq C++
10338	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339	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'
10340
10341	runpath_var=LD_RUN_PATH
10342	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10343	hardcode_libdir_separator_CXX=:
10344
10345	# Commands to make compiler produce verbose output that lists
10346	# what "hidden" libraries, object files and flags are used when
10347	# linking a shared library.
10348	#
10349	# There doesn't appear to be a way to prevent this compiler from
10350	# explicitly linking system object files so we need to strip them
10351	# from the output so that they don't get included in the library
10352	# dependencies.
10353	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'
10354	;;
10355    esac
10356    ;;
10357  lynxos*)
10358    # FIXME: insert proper C++ library support
10359    ld_shlibs_CXX=no
10360    ;;
10361  m88k*)
10362    # FIXME: insert proper C++ library support
10363    ld_shlibs_CXX=no
10364    ;;
10365  mvs*)
10366    case $cc_basename in
10367      cxx)
10368	# FIXME: insert proper C++ library support
10369	ld_shlibs_CXX=no
10370	;;
10371      *)
10372	# FIXME: insert proper C++ library support
10373	ld_shlibs_CXX=no
10374	;;
10375    esac
10376    ;;
10377  netbsd*)
10378    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10379      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10380      wlarc=
10381      hardcode_libdir_flag_spec_CXX='-R$libdir'
10382      hardcode_direct_CXX=yes
10383      hardcode_shlibpath_var_CXX=no
10384    fi
10385    # Workaround some broken pre-1.5 toolchains
10386    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10387    ;;
10388  openbsd2*)
10389    # C++ shared libraries are fairly broken
10390    ld_shlibs_CXX=no
10391    ;;
10392  openbsd*)
10393    hardcode_direct_CXX=yes
10394    hardcode_shlibpath_var_CXX=no
10395    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10396    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10397    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10399      export_dynamic_flag_spec_CXX='${wl}-E'
10400      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10401    fi
10402    output_verbose_link_cmd='echo'
10403    ;;
10404  osf3*)
10405    case $cc_basename in
10406      KCC)
10407	# Kuck and Associates, Inc. (KAI) C++ Compiler
10408
10409	# KCC will only create a shared library if the output file
10410	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10411	# to its proper name (with version) after linking.
10412	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'
10413
10414	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10415	hardcode_libdir_separator_CXX=:
10416
10417	# Archives containing C++ object files must be created using
10418	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10419	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10420
10421	;;
10422      RCC)
10423	# Rational C++ 2.4.1
10424	# FIXME: insert proper C++ library support
10425	ld_shlibs_CXX=no
10426	;;
10427      cxx)
10428	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10429	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 ${objdir}/so_locations -o $lib'
10430
10431	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10432	hardcode_libdir_separator_CXX=:
10433
10434	# Commands to make compiler produce verbose output that lists
10435	# what "hidden" libraries, object files and flags are used when
10436	# linking a shared library.
10437	#
10438	# There doesn't appear to be a way to prevent this compiler from
10439	# explicitly linking system object files so we need to strip them
10440	# from the output so that they don't get included in the library
10441	# dependencies.
10442	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'
10443	;;
10444      *)
10445	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10446	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10447	  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}${objdir}/so_locations -o $lib'
10448
10449	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10450	  hardcode_libdir_separator_CXX=:
10451
10452	  # Commands to make compiler produce verbose output that lists
10453	  # what "hidden" libraries, object files and flags are used when
10454	  # linking a shared library.
10455	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10456
10457	else
10458	  # FIXME: insert proper C++ library support
10459	  ld_shlibs_CXX=no
10460	fi
10461	;;
10462    esac
10463    ;;
10464  osf4* | osf5*)
10465    case $cc_basename in
10466      KCC)
10467	# Kuck and Associates, Inc. (KAI) C++ Compiler
10468
10469	# KCC will only create a shared library if the output file
10470	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10471	# to its proper name (with version) after linking.
10472	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'
10473
10474	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10475	hardcode_libdir_separator_CXX=:
10476
10477	# Archives containing C++ object files must be created using
10478	# the KAI C++ compiler.
10479	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10480	;;
10481      RCC)
10482	# Rational C++ 2.4.1
10483	# FIXME: insert proper C++ library support
10484	ld_shlibs_CXX=no
10485	;;
10486      cxx)
10487	allow_undefined_flag_CXX=' -expect_unresolved \*'
10488	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 ${objdir}/so_locations -o $lib'
10489	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10490	  echo "-hidden">> $lib.exp~
10491	  $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 $objdir/so_locations -o $lib~
10492	  $rm $lib.exp'
10493
10494	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10495	hardcode_libdir_separator_CXX=:
10496
10497	# Commands to make compiler produce verbose output that lists
10498	# what "hidden" libraries, object files and flags are used when
10499	# linking a shared library.
10500	#
10501	# There doesn't appear to be a way to prevent this compiler from
10502	# explicitly linking system object files so we need to strip them
10503	# from the output so that they don't get included in the library
10504	# dependencies.
10505	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'
10506	;;
10507      *)
10508	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10509	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10510	 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}${objdir}/so_locations -o $lib'
10511
10512	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10513	  hardcode_libdir_separator_CXX=:
10514
10515	  # Commands to make compiler produce verbose output that lists
10516	  # what "hidden" libraries, object files and flags are used when
10517	  # linking a shared library.
10518	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519
10520	else
10521	  # FIXME: insert proper C++ library support
10522	  ld_shlibs_CXX=no
10523	fi
10524	;;
10525    esac
10526    ;;
10527  psos*)
10528    # FIXME: insert proper C++ library support
10529    ld_shlibs_CXX=no
10530    ;;
10531  sco*)
10532    archive_cmds_need_lc_CXX=no
10533    case $cc_basename in
10534      CC)
10535	# FIXME: insert proper C++ library support
10536	ld_shlibs_CXX=no
10537	;;
10538      *)
10539	# FIXME: insert proper C++ library support
10540	ld_shlibs_CXX=no
10541	;;
10542    esac
10543    ;;
10544  sunos4*)
10545    case $cc_basename in
10546      CC)
10547	# Sun C++ 4.x
10548	# FIXME: insert proper C++ library support
10549	ld_shlibs_CXX=no
10550	;;
10551      lcc)
10552	# Lucid
10553	# FIXME: insert proper C++ library support
10554	ld_shlibs_CXX=no
10555	;;
10556      *)
10557	# FIXME: insert proper C++ library support
10558	ld_shlibs_CXX=no
10559	;;
10560    esac
10561    ;;
10562  solaris*)
10563    case $cc_basename in
10564      CC)
10565	# Sun C++ 4.2, 5.x and Centerline C++
10566	no_undefined_flag_CXX=' -zdefs'
10567	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10568	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10569	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10570
10571	hardcode_libdir_flag_spec_CXX='-R$libdir'
10572	hardcode_shlibpath_var_CXX=no
10573	case $host_os in
10574	  solaris2.0-5 | solaris2.0-5.*) ;;
10575	  *)
10576	    # The C++ compiler is used as linker so we must use $wl
10577	    # flag to pass the commands to the underlying system
10578	    # linker.
10579	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10580	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10581	    ;;
10582	esac
10583	link_all_deplibs_CXX=yes
10584
10585	# Commands to make compiler produce verbose output that lists
10586	# what "hidden" libraries, object files and flags are used when
10587	# linking a shared library.
10588	#
10589	# There doesn't appear to be a way to prevent this compiler from
10590	# explicitly linking system object files so we need to strip them
10591	# from the output so that they don't get included in the library
10592	# dependencies.
10593	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10594
10595	# Archives containing C++ object files must be created using
10596	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10597	# necessary to make sure instantiated templates are included
10598	# in the archive.
10599	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10600	;;
10601      gcx)
10602	# Green Hills C++ Compiler
10603	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10604
10605	# The C++ compiler must be used to create the archive.
10606	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10607	;;
10608      *)
10609	# GNU C++ compiler with Solaris linker
10610	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10611	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10612	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10613	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10614	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10615		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10616
10617	    # Commands to make compiler produce verbose output that lists
10618	    # what "hidden" libraries, object files and flags are used when
10619	    # linking a shared library.
10620	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10621	  else
10622	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10623	    # platform.
10624	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10625	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10627
10628	    # Commands to make compiler produce verbose output that lists
10629	    # what "hidden" libraries, object files and flags are used when
10630	    # linking a shared library.
10631	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10632	  fi
10633
10634	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10635	fi
10636	;;
10637    esac
10638    ;;
10639  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10640    archive_cmds_need_lc_CXX=no
10641    ;;
10642  tandem*)
10643    case $cc_basename in
10644      NCC)
10645	# NonStop-UX NCC 3.20
10646	# FIXME: insert proper C++ library support
10647	ld_shlibs_CXX=no
10648	;;
10649      *)
10650	# FIXME: insert proper C++ library support
10651	ld_shlibs_CXX=no
10652	;;
10653    esac
10654    ;;
10655  vxworks*)
10656    # FIXME: insert proper C++ library support
10657    ld_shlibs_CXX=no
10658    ;;
10659  *)
10660    # FIXME: insert proper C++ library support
10661    ld_shlibs_CXX=no
10662    ;;
10663esac
10664echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10665echo "${ECHO_T}$ld_shlibs_CXX" >&6
10666test "$ld_shlibs_CXX" = no && can_build_shared=no
10667
10668GCC_CXX="$GXX"
10669LD_CXX="$LD"
10670
10671
10672cat > conftest.$ac_ext <<EOF
10673class Foo
10674{
10675public:
10676  Foo (void) { a = 0; }
10677private:
10678  int a;
10679};
10680EOF
10681
10682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683  (eval $ac_compile) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; then
10687  # Parse the compiler output and extract the necessary
10688  # objects, libraries and library flags.
10689
10690  # Sentinel used to keep track of whether or not we are before
10691  # the conftest object file.
10692  pre_test_object_deps_done=no
10693
10694  # The `*' in the case matches for architectures that use `case' in
10695  # $output_verbose_cmd can trigger glob expansion during the loop
10696  # eval without this substitution.
10697  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10698
10699  for p in `eval $output_verbose_link_cmd`; do
10700    case $p in
10701
10702    -L* | -R* | -l*)
10703       # Some compilers place space between "-{L,R}" and the path.
10704       # Remove the space.
10705       if test $p = "-L" \
10706	  || test $p = "-R"; then
10707	 prev=$p
10708	 continue
10709       else
10710	 prev=
10711       fi
10712
10713       if test "$pre_test_object_deps_done" = no; then
10714	 case $p in
10715	 -L* | -R*)
10716	   # Internal compiler library paths should come after those
10717	   # provided the user.  The postdeps already come after the
10718	   # user supplied libs so there is no need to process them.
10719	   if test -z "$compiler_lib_search_path_CXX"; then
10720	     compiler_lib_search_path_CXX="${prev}${p}"
10721	   else
10722	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10723	   fi
10724	   ;;
10725	 # The "-l" case would never come before the object being
10726	 # linked, so don't bother handling this case.
10727	 esac
10728       else
10729	 if test -z "$postdeps_CXX"; then
10730	   postdeps_CXX="${prev}${p}"
10731	 else
10732	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10733	 fi
10734       fi
10735       ;;
10736
10737    *.$objext)
10738       # This assumes that the test object file only shows up
10739       # once in the compiler output.
10740       if test "$p" = "conftest.$objext"; then
10741	 pre_test_object_deps_done=yes
10742	 continue
10743       fi
10744
10745       if test "$pre_test_object_deps_done" = no; then
10746	 if test -z "$predep_objects_CXX"; then
10747	   predep_objects_CXX="$p"
10748	 else
10749	   predep_objects_CXX="$predep_objects_CXX $p"
10750	 fi
10751       else
10752	 if test -z "$postdep_objects_CXX"; then
10753	   postdep_objects_CXX="$p"
10754	 else
10755	   postdep_objects_CXX="$postdep_objects_CXX $p"
10756	 fi
10757       fi
10758       ;;
10759
10760    *) ;; # Ignore the rest.
10761
10762    esac
10763  done
10764
10765  # Clean up.
10766  rm -f a.out a.exe
10767else
10768  echo "libtool.m4: error: problem compiling CXX test program"
10769fi
10770
10771$rm -f confest.$objext
10772
10773case " $postdeps_CXX " in
10774*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10775esac
10776
10777lt_prog_compiler_wl_CXX=
10778lt_prog_compiler_pic_CXX=
10779lt_prog_compiler_static_CXX=
10780
10781echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10782echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10783
10784  # C++ specific cases for pic, static, wl, etc.
10785  if test "$GXX" = yes; then
10786    lt_prog_compiler_wl_CXX='-Wl,'
10787    lt_prog_compiler_static_CXX='-static'
10788
10789    case $host_os in
10790    aix*)
10791      # All AIX code is PIC.
10792      if test "$host_cpu" = ia64; then
10793	# AIX 5 now supports IA64 processor
10794	lt_prog_compiler_static_CXX='-Bstatic'
10795      fi
10796      ;;
10797    amigaos*)
10798      # FIXME: we need at least 68020 code to build shared libraries, but
10799      # adding the `-m68020' flag to GCC prevents building anything better,
10800      # like `-m68040'.
10801      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10802      ;;
10803    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10804      # PIC is the default for these OSes.
10805      ;;
10806    mingw* | os2* | pw32*)
10807      # This hack is so that the source file can tell whether it is being
10808      # built for inclusion in a dll (and should export symbols for example).
10809      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10810      ;;
10811    darwin* | rhapsody*)
10812      # PIC is the default on this platform
10813      # Common symbols not allowed in MH_DYLIB files
10814      lt_prog_compiler_pic_CXX='-fno-common'
10815      ;;
10816    *djgpp*)
10817      # DJGPP does not support shared libraries at all
10818      lt_prog_compiler_pic_CXX=
10819      ;;
10820    sysv4*MP*)
10821      if test -d /usr/nec; then
10822	lt_prog_compiler_pic_CXX=-Kconform_pic
10823      fi
10824      ;;
10825    hpux*)
10826      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10827      # not for PA HP-UX.
10828      case "$host_cpu" in
10829      hppa*64*|ia64*)
10830	;;
10831      *)
10832	lt_prog_compiler_pic_CXX='-fPIC'
10833	;;
10834      esac
10835      ;;
10836    *)
10837      lt_prog_compiler_pic_CXX='-fPIC'
10838      ;;
10839    esac
10840  else
10841    case $host_os in
10842      aix4* | aix5*)
10843	# All AIX code is PIC.
10844	if test "$host_cpu" = ia64; then
10845	  # AIX 5 now supports IA64 processor
10846	  lt_prog_compiler_static_CXX='-Bstatic'
10847	else
10848	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10849	fi
10850	;;
10851      chorus*)
10852	case $cc_basename in
10853	cxch68)
10854	  # Green Hills C++ Compiler
10855	  # _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"
10856	  ;;
10857	esac
10858	;;
10859       darwin*)
10860         # PIC is the default on this platform
10861         # Common symbols not allowed in MH_DYLIB files
10862         case "$cc_basename" in
10863           xlc*)
10864           lt_prog_compiler_pic_CXX='-qnocommon'
10865           lt_prog_compiler_wl_CXX='-Wl,'
10866           ;;
10867         esac
10868       ;;
10869      dgux*)
10870	case $cc_basename in
10871	  ec++)
10872	    lt_prog_compiler_pic_CXX='-KPIC'
10873	    ;;
10874	  ghcx)
10875	    # Green Hills C++ Compiler
10876	    lt_prog_compiler_pic_CXX='-pic'
10877	    ;;
10878	  *)
10879	    ;;
10880	esac
10881	;;
10882      freebsd* | kfreebsd*-gnu)
10883	# FreeBSD uses GNU C++
10884	;;
10885      hpux9* | hpux10* | hpux11*)
10886	case $cc_basename in
10887	  CC)
10888	    lt_prog_compiler_wl_CXX='-Wl,'
10889	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10890	    if test "$host_cpu" != ia64; then
10891	      lt_prog_compiler_pic_CXX='+Z'
10892	    fi
10893	    ;;
10894	  aCC)
10895	    lt_prog_compiler_wl_CXX='-Wl,'
10896	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10897	    case "$host_cpu" in
10898	    hppa*64*|ia64*)
10899	      # +Z the default
10900	      ;;
10901	    *)
10902	      lt_prog_compiler_pic_CXX='+Z'
10903	      ;;
10904	    esac
10905	    ;;
10906	  *)
10907	    ;;
10908	esac
10909	;;
10910      irix5* | irix6* | nonstopux*)
10911	case $cc_basename in
10912	  CC)
10913	    lt_prog_compiler_wl_CXX='-Wl,'
10914	    lt_prog_compiler_static_CXX='-non_shared'
10915	    # CC pic flag -KPIC is the default.
10916	    ;;
10917	  *)
10918	    ;;
10919	esac
10920	;;
10921      linux*)
10922	case $cc_basename in
10923	  KCC)
10924	    # KAI C++ Compiler
10925	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10926	    lt_prog_compiler_pic_CXX='-fPIC'
10927	    ;;
10928	  icpc)
10929	    # Intel C++
10930	    lt_prog_compiler_wl_CXX='-Wl,'
10931	    lt_prog_compiler_pic_CXX='-KPIC'
10932	    lt_prog_compiler_static_CXX='-static'
10933	    ;;
10934	  cxx)
10935	    # Compaq C++
10936	    # Make sure the PIC flag is empty.  It appears that all Alpha
10937	    # Linux and Compaq Tru64 Unix objects are PIC.
10938	    lt_prog_compiler_pic_CXX=
10939	    lt_prog_compiler_static_CXX='-non_shared'
10940	    ;;
10941	  *)
10942	    ;;
10943	esac
10944	;;
10945      lynxos*)
10946	;;
10947      m88k*)
10948	;;
10949      mvs*)
10950	case $cc_basename in
10951	  cxx)
10952	    lt_prog_compiler_pic_CXX='-W c,exportall'
10953	    ;;
10954	  *)
10955	    ;;
10956	esac
10957	;;
10958      netbsd*)
10959	;;
10960      osf3* | osf4* | osf5*)
10961	case $cc_basename in
10962	  KCC)
10963	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10964	    ;;
10965	  RCC)
10966	    # Rational C++ 2.4.1
10967	    lt_prog_compiler_pic_CXX='-pic'
10968	    ;;
10969	  cxx)
10970	    # Digital/Compaq C++
10971	    lt_prog_compiler_wl_CXX='-Wl,'
10972	    # Make sure the PIC flag is empty.  It appears that all Alpha
10973	    # Linux and Compaq Tru64 Unix objects are PIC.
10974	    lt_prog_compiler_pic_CXX=
10975	    lt_prog_compiler_static_CXX='-non_shared'
10976	    ;;
10977	  *)
10978	    ;;
10979	esac
10980	;;
10981      psos*)
10982	;;
10983      sco*)
10984	case $cc_basename in
10985	  CC)
10986	    lt_prog_compiler_pic_CXX='-fPIC'
10987	    ;;
10988	  *)
10989	    ;;
10990	esac
10991	;;
10992      solaris*)
10993	case $cc_basename in
10994	  CC)
10995	    # Sun C++ 4.2, 5.x and Centerline C++
10996	    lt_prog_compiler_pic_CXX='-KPIC'
10997	    lt_prog_compiler_static_CXX='-Bstatic'
10998	    lt_prog_compiler_wl_CXX='-Qoption ld '
10999	    ;;
11000	  gcx)
11001	    # Green Hills C++ Compiler
11002	    lt_prog_compiler_pic_CXX='-PIC'
11003	    ;;
11004	  *)
11005	    ;;
11006	esac
11007	;;
11008      sunos4*)
11009	case $cc_basename in
11010	  CC)
11011	    # Sun C++ 4.x
11012	    lt_prog_compiler_pic_CXX='-pic'
11013	    lt_prog_compiler_static_CXX='-Bstatic'
11014	    ;;
11015	  lcc)
11016	    # Lucid
11017	    lt_prog_compiler_pic_CXX='-pic'
11018	    ;;
11019	  *)
11020	    ;;
11021	esac
11022	;;
11023      tandem*)
11024	case $cc_basename in
11025	  NCC)
11026	    # NonStop-UX NCC 3.20
11027	    lt_prog_compiler_pic_CXX='-KPIC'
11028	    ;;
11029	  *)
11030	    ;;
11031	esac
11032	;;
11033      unixware*)
11034	;;
11035      vxworks*)
11036	;;
11037      *)
11038	lt_prog_compiler_can_build_shared_CXX=no
11039	;;
11040    esac
11041  fi
11042
11043echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11044echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11045
11046#
11047# Check to make sure the PIC flag actually works.
11048#
11049if test -n "$lt_prog_compiler_pic_CXX"; then
11050
11051echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11052echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11053if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11054  echo $ECHO_N "(cached) $ECHO_C" >&6
11055else
11056  lt_prog_compiler_pic_works_CXX=no
11057  ac_outfile=conftest.$ac_objext
11058   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11059   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11060   # Insert the option either (1) after the last *FLAGS variable, or
11061   # (2) before a word containing "conftest.", or (3) at the end.
11062   # Note that $ac_compile itself does not contain backslashes and begins
11063   # with a dollar sign (not a hyphen), so the echo should work correctly.
11064   # The option is referenced via a variable to avoid confusing sed.
11065   lt_compile=`echo "$ac_compile" | $SED \
11066   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11068   -e 's:$: $lt_compiler_flag:'`
11069   (eval echo "\"\$as_me:11069: $lt_compile\"" >&5)
11070   (eval "$lt_compile" 2>conftest.err)
11071   ac_status=$?
11072   cat conftest.err >&5
11073   echo "$as_me:11073: \$? = $ac_status" >&5
11074   if (exit $ac_status) && test -s "$ac_outfile"; then
11075     # The compiler can only warn and ignore the option if not recognized
11076     # So say no if there are warnings
11077     if test ! -s conftest.err; then
11078       lt_prog_compiler_pic_works_CXX=yes
11079     fi
11080   fi
11081   $rm conftest*
11082
11083fi
11084echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11085echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11086
11087if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11088    case $lt_prog_compiler_pic_CXX in
11089     "" | " "*) ;;
11090     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11091     esac
11092else
11093    lt_prog_compiler_pic_CXX=
11094     lt_prog_compiler_can_build_shared_CXX=no
11095fi
11096
11097fi
11098case "$host_os" in
11099  # For platforms which do not support PIC, -DPIC is meaningless:
11100  *djgpp*)
11101    lt_prog_compiler_pic_CXX=
11102    ;;
11103  *)
11104    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11105    ;;
11106esac
11107
11108echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11109echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11110if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11111  echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113  lt_cv_prog_compiler_c_o_CXX=no
11114   $rm -r conftest 2>/dev/null
11115   mkdir conftest
11116   cd conftest
11117   mkdir out
11118   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11119
11120   lt_compiler_flag="-o out/conftest2.$ac_objext"
11121   # Insert the option either (1) after the last *FLAGS variable, or
11122   # (2) before a word containing "conftest.", or (3) at the end.
11123   # Note that $ac_compile itself does not contain backslashes and begins
11124   # with a dollar sign (not a hyphen), so the echo should work correctly.
11125   lt_compile=`echo "$ac_compile" | $SED \
11126   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11128   -e 's:$: $lt_compiler_flag:'`
11129   (eval echo "\"\$as_me:11129: $lt_compile\"" >&5)
11130   (eval "$lt_compile" 2>out/conftest.err)
11131   ac_status=$?
11132   cat out/conftest.err >&5
11133   echo "$as_me:11133: \$? = $ac_status" >&5
11134   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11135   then
11136     # The compiler can only warn and ignore the option if not recognized
11137     # So say no if there are warnings
11138     if test ! -s out/conftest.err; then
11139       lt_cv_prog_compiler_c_o_CXX=yes
11140     fi
11141   fi
11142   chmod u+w .
11143   $rm conftest*
11144   # SGI C++ compiler will create directory out/ii_files/ for
11145   # template instantiation
11146   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11147   $rm out/* && rmdir out
11148   cd ..
11149   rmdir conftest
11150   $rm conftest*
11151
11152fi
11153echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11154echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11155
11156
11157hard_links="nottested"
11158if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11159  # do not overwrite the value of need_locks provided by the user
11160  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11161echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11162  hard_links=yes
11163  $rm conftest*
11164  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11165  touch conftest.a
11166  ln conftest.a conftest.b 2>&5 || hard_links=no
11167  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11168  echo "$as_me:$LINENO: result: $hard_links" >&5
11169echo "${ECHO_T}$hard_links" >&6
11170  if test "$hard_links" = no; then
11171    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11172echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11173    need_locks=warn
11174  fi
11175else
11176  need_locks=no
11177fi
11178
11179echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11180echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11181
11182  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11183  case $host_os in
11184  aix4* | aix5*)
11185    # If we're using GNU nm, then we don't want the "-C" option.
11186    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11187    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11188      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'
11189    else
11190      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'
11191    fi
11192    ;;
11193  pw32*)
11194    export_symbols_cmds_CXX="$ltdll_cmds"
11195  ;;
11196  cygwin* | mingw*)
11197    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11198  ;;
11199  *)
11200    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11201  ;;
11202  esac
11203
11204echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11205echo "${ECHO_T}$ld_shlibs_CXX" >&6
11206test "$ld_shlibs_CXX" = no && can_build_shared=no
11207
11208variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11209if test "$GCC" = yes; then
11210  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11211fi
11212
11213#
11214# Do we need to explicitly link libc?
11215#
11216case "x$archive_cmds_need_lc_CXX" in
11217x|xyes)
11218  # Assume -lc should be added
11219  archive_cmds_need_lc_CXX=yes
11220
11221  if test "$enable_shared" = yes && test "$GCC" = yes; then
11222    case $archive_cmds_CXX in
11223    *'~'*)
11224      # FIXME: we may have to deal with multi-command sequences.
11225      ;;
11226    '$CC '*)
11227      # Test whether the compiler implicitly links with -lc since on some
11228      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11229      # to ld, don't add -lc before -lgcc.
11230      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11231echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11232      $rm conftest*
11233      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11234
11235      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236  (eval $ac_compile) 2>&5
11237  ac_status=$?
11238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239  (exit $ac_status); } 2>conftest.err; then
11240        soname=conftest
11241        lib=conftest
11242        libobjs=conftest.$ac_objext
11243        deplibs=
11244        wl=$lt_prog_compiler_wl_CXX
11245        compiler_flags=-v
11246        linker_flags=-v
11247        verstring=
11248        output_objdir=.
11249        libname=conftest
11250        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11251        allow_undefined_flag_CXX=
11252        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11253  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11254  ac_status=$?
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); }
11257        then
11258	  archive_cmds_need_lc_CXX=no
11259        else
11260	  archive_cmds_need_lc_CXX=yes
11261        fi
11262        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11263      else
11264        cat conftest.err 1>&5
11265      fi
11266      $rm conftest*
11267      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11268echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11269      ;;
11270    esac
11271  fi
11272  ;;
11273esac
11274
11275echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11276echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11277library_names_spec=
11278libname_spec='lib$name'
11279soname_spec=
11280shrext_cmds=".so"
11281postinstall_cmds=
11282postuninstall_cmds=
11283finish_cmds=
11284finish_eval=
11285shlibpath_var=
11286shlibpath_overrides_runpath=unknown
11287version_type=none
11288dynamic_linker="$host_os ld.so"
11289sys_lib_dlsearch_path_spec="/lib /usr/lib"
11290if test "$GCC" = yes; then
11291  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11292  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11293    # if the path contains ";" then we assume it to be the separator
11294    # otherwise default to the standard path separator (i.e. ":") - it is
11295    # assumed that no part of a normal pathname contains ";" but that should
11296    # okay in the real world where ";" in dirpaths is itself problematic.
11297    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11298  else
11299    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11300  fi
11301else
11302  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11303fi
11304need_lib_prefix=unknown
11305hardcode_into_libs=no
11306
11307# when you set need_version to no, make sure it does not cause -set_version
11308# flags to be left without arguments
11309need_version=unknown
11310
11311case $host_os in
11312aix3*)
11313  version_type=linux
11314  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11315  shlibpath_var=LIBPATH
11316
11317  # AIX 3 has no versioning support, so we append a major version to the name.
11318  soname_spec='${libname}${release}${shared_ext}$major'
11319  ;;
11320
11321aix4* | aix5*)
11322  version_type=linux
11323  need_lib_prefix=no
11324  need_version=no
11325  hardcode_into_libs=yes
11326  if test "$host_cpu" = ia64; then
11327    # AIX 5 supports IA64
11328    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11329    shlibpath_var=LD_LIBRARY_PATH
11330  else
11331    # With GCC up to 2.95.x, collect2 would create an import file
11332    # for dependence libraries.  The import file would start with
11333    # the line `#! .'.  This would cause the generated library to
11334    # depend on `.', always an invalid library.  This was fixed in
11335    # development snapshots of GCC prior to 3.0.
11336    case $host_os in
11337      aix4 | aix4.[01] | aix4.[01].*)
11338      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11339	   echo ' yes '
11340	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11341	:
11342      else
11343	can_build_shared=no
11344      fi
11345      ;;
11346    esac
11347    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11348    # soname into executable. Probably we can add versioning support to
11349    # collect2, so additional links can be useful in future.
11350    if test "$aix_use_runtimelinking" = yes; then
11351      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11352      # instead of lib<name>.a to let people know that these are not
11353      # typical AIX shared libraries.
11354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355    else
11356      # We preserve .a as extension for shared libraries through AIX4.2
11357      # and later when we are not doing run time linking.
11358      library_names_spec='${libname}${release}.a $libname.a'
11359      soname_spec='${libname}${release}${shared_ext}$major'
11360    fi
11361    shlibpath_var=LIBPATH
11362  fi
11363  ;;
11364
11365amigaos*)
11366  library_names_spec='$libname.ixlibrary $libname.a'
11367  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11368  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'
11369  ;;
11370
11371beos*)
11372  library_names_spec='${libname}${shared_ext}'
11373  dynamic_linker="$host_os ld.so"
11374  shlibpath_var=LIBRARY_PATH
11375  ;;
11376
11377bsdi[45]*)
11378  version_type=linux
11379  need_version=no
11380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381  soname_spec='${libname}${release}${shared_ext}$major'
11382  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11383  shlibpath_var=LD_LIBRARY_PATH
11384  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11385  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11386  # the default ld.so.conf also contains /usr/contrib/lib and
11387  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11388  # libtool to hard-code these into programs
11389  ;;
11390
11391cygwin* | mingw* | pw32*)
11392  version_type=windows
11393  shrext_cmds=".dll"
11394  need_version=no
11395  need_lib_prefix=no
11396
11397  case $GCC,$host_os in
11398  yes,cygwin* | yes,mingw* | yes,pw32*)
11399    library_names_spec='$libname.dll.a'
11400    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11401    postinstall_cmds='base_file=`basename \${file}`~
11402      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11403      dldir=$destdir/`dirname \$dlpath`~
11404      test -d \$dldir || mkdir -p \$dldir~
11405      $install_prog $dir/$dlname \$dldir/$dlname'
11406    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11407      dlpath=$dir/\$dldll~
11408       $rm \$dlpath'
11409    shlibpath_overrides_runpath=yes
11410
11411    case $host_os in
11412    cygwin*)
11413      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11414      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11415      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11416      ;;
11417    mingw*)
11418      # MinGW DLLs use traditional 'lib' prefix
11419      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11421      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11422        # It is most probably a Windows format PATH printed by
11423        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11424        # path with ; separators, and with drive letters. We can handle the
11425        # drive letters (cygwin fileutils understands them), so leave them,
11426        # especially as we might pass files found there to a mingw objdump,
11427        # which wouldn't understand a cygwinified path. Ahh.
11428        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11429      else
11430        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11431      fi
11432      ;;
11433    pw32*)
11434      # pw32 DLLs use 'pw' prefix rather than 'lib'
11435      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11436      ;;
11437    esac
11438    ;;
11439
11440  *)
11441    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11442    ;;
11443  esac
11444  dynamic_linker='Win32 ld.exe'
11445  # FIXME: first we should search . and the directory the executable is in
11446  shlibpath_var=PATH
11447  ;;
11448
11449darwin* | rhapsody*)
11450  dynamic_linker="$host_os dyld"
11451  version_type=darwin
11452  need_lib_prefix=no
11453  need_version=no
11454  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11455  soname_spec='${libname}${release}${major}$shared_ext'
11456  shlibpath_overrides_runpath=yes
11457  shlibpath_var=DYLD_LIBRARY_PATH
11458  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11459  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11460  if test "$GCC" = yes; then
11461    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"`
11462  else
11463    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11464  fi
11465  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11466  ;;
11467
11468dgux*)
11469  version_type=linux
11470  need_lib_prefix=no
11471  need_version=no
11472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11473  soname_spec='${libname}${release}${shared_ext}$major'
11474  shlibpath_var=LD_LIBRARY_PATH
11475  ;;
11476
11477freebsd1*)
11478  dynamic_linker=no
11479  ;;
11480
11481kfreebsd*-gnu)
11482  version_type=linux
11483  need_lib_prefix=no
11484  need_version=no
11485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11486  soname_spec='${libname}${release}${shared_ext}$major'
11487  shlibpath_var=LD_LIBRARY_PATH
11488  shlibpath_overrides_runpath=no
11489  hardcode_into_libs=yes
11490  dynamic_linker='GNU ld.so'
11491  ;;
11492
11493freebsd*)
11494  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11495  version_type=freebsd-$objformat
11496  case $version_type in
11497    freebsd-elf*)
11498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499      need_version=no
11500      need_lib_prefix=no
11501      ;;
11502    freebsd-*)
11503      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11504      need_version=yes
11505      ;;
11506  esac
11507  shlibpath_var=LD_LIBRARY_PATH
11508  case $host_os in
11509  freebsd2*)
11510    shlibpath_overrides_runpath=yes
11511    ;;
11512  freebsd3.01* | freebsdelf3.01*)
11513    shlibpath_overrides_runpath=yes
11514    hardcode_into_libs=yes
11515    ;;
11516  *) # from 3.2 on
11517    shlibpath_overrides_runpath=no
11518    hardcode_into_libs=yes
11519    ;;
11520  esac
11521  ;;
11522
11523gnu*)
11524  version_type=linux
11525  need_lib_prefix=no
11526  need_version=no
11527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11528  soname_spec='${libname}${release}${shared_ext}$major'
11529  shlibpath_var=LD_LIBRARY_PATH
11530  hardcode_into_libs=yes
11531  ;;
11532
11533hpux9* | hpux10* | hpux11*)
11534  # Give a soname corresponding to the major version so that dld.sl refuses to
11535  # link against other versions.
11536  version_type=sunos
11537  need_lib_prefix=no
11538  need_version=no
11539  case "$host_cpu" in
11540  ia64*)
11541    shrext_cmds='.so'
11542    hardcode_into_libs=yes
11543    dynamic_linker="$host_os dld.so"
11544    shlibpath_var=LD_LIBRARY_PATH
11545    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547    soname_spec='${libname}${release}${shared_ext}$major'
11548    if test "X$HPUX_IA64_MODE" = X32; then
11549      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11550    else
11551      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11552    fi
11553    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554    ;;
11555   hppa*64*)
11556     shrext_cmds='.sl'
11557     hardcode_into_libs=yes
11558     dynamic_linker="$host_os dld.sl"
11559     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562     soname_spec='${libname}${release}${shared_ext}$major'
11563     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565     ;;
11566   *)
11567    shrext_cmds='.sl'
11568    dynamic_linker="$host_os dld.sl"
11569    shlibpath_var=SHLIB_PATH
11570    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572    soname_spec='${libname}${release}${shared_ext}$major'
11573    ;;
11574  esac
11575  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11576  postinstall_cmds='chmod 555 $lib'
11577  ;;
11578
11579irix5* | irix6* | nonstopux*)
11580  case $host_os in
11581    nonstopux*) version_type=nonstopux ;;
11582    *)
11583	if test "$lt_cv_prog_gnu_ld" = yes; then
11584		version_type=linux
11585	else
11586		version_type=irix
11587	fi ;;
11588  esac
11589  need_lib_prefix=no
11590  need_version=no
11591  soname_spec='${libname}${release}${shared_ext}$major'
11592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11593  case $host_os in
11594  irix5* | nonstopux*)
11595    libsuff= shlibsuff=
11596    ;;
11597  *)
11598    case $LD in # libtool.m4 will add one of these switches to LD
11599    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11600      libsuff= shlibsuff= libmagic=32-bit;;
11601    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11602      libsuff=32 shlibsuff=N32 libmagic=N32;;
11603    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11604      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11605    *) libsuff= shlibsuff= libmagic=never-match;;
11606    esac
11607    ;;
11608  esac
11609  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11610  shlibpath_overrides_runpath=no
11611  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11612  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11613  hardcode_into_libs=yes
11614  ;;
11615
11616# No shared lib support for Linux oldld, aout, or coff.
11617linux*oldld* | linux*aout* | linux*coff*)
11618  dynamic_linker=no
11619  ;;
11620
11621# This must be Linux ELF.
11622linux*)
11623  version_type=linux
11624  need_lib_prefix=no
11625  need_version=no
11626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627  soname_spec='${libname}${release}${shared_ext}$major'
11628  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11629  shlibpath_var=LD_LIBRARY_PATH
11630  shlibpath_overrides_runpath=no
11631  # This implies no fast_install, which is unacceptable.
11632  # Some rework will be needed to allow for fast_install
11633  # before this can be enabled.
11634  hardcode_into_libs=yes
11635
11636  # Append ld.so.conf contents to the search path
11637  if test -f /etc/ld.so.conf; then
11638    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11639    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11640  fi
11641
11642  # We used to test for /lib/ld.so.1 and disable shared libraries on
11643  # powerpc, because MkLinux only supported shared libraries with the
11644  # GNU dynamic linker.  Since this was broken with cross compilers,
11645  # most powerpc-linux boxes support dynamic linking these days and
11646  # people can always --disable-shared, the test was removed, and we
11647  # assume the GNU/Linux dynamic linker is in use.
11648  dynamic_linker='GNU/Linux ld.so'
11649  ;;
11650
11651knetbsd*-gnu)
11652  version_type=linux
11653  need_lib_prefix=no
11654  need_version=no
11655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656  soname_spec='${libname}${release}${shared_ext}$major'
11657  shlibpath_var=LD_LIBRARY_PATH
11658  shlibpath_overrides_runpath=no
11659  hardcode_into_libs=yes
11660  dynamic_linker='GNU ld.so'
11661  ;;
11662
11663netbsd*)
11664  version_type=sunos
11665  need_lib_prefix=no
11666  need_version=no
11667  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11668    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11669    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11670    dynamic_linker='NetBSD (a.out) ld.so'
11671  else
11672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11673    soname_spec='${libname}${release}${shared_ext}$major'
11674    dynamic_linker='NetBSD ld.elf_so'
11675  fi
11676  shlibpath_var=LD_LIBRARY_PATH
11677  shlibpath_overrides_runpath=yes
11678  hardcode_into_libs=yes
11679  ;;
11680
11681newsos6)
11682  version_type=linux
11683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11684  shlibpath_var=LD_LIBRARY_PATH
11685  shlibpath_overrides_runpath=yes
11686  ;;
11687
11688nto-qnx*)
11689  version_type=linux
11690  need_lib_prefix=no
11691  need_version=no
11692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693  soname_spec='${libname}${release}${shared_ext}$major'
11694  shlibpath_var=LD_LIBRARY_PATH
11695  shlibpath_overrides_runpath=yes
11696  ;;
11697
11698openbsd*)
11699  version_type=sunos
11700  need_lib_prefix=no
11701  need_version=no
11702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11703  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11704  shlibpath_var=LD_LIBRARY_PATH
11705  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11706    case $host_os in
11707      openbsd2.[89] | openbsd2.[89].*)
11708	shlibpath_overrides_runpath=no
11709	;;
11710      *)
11711	shlibpath_overrides_runpath=yes
11712	;;
11713      esac
11714  else
11715    shlibpath_overrides_runpath=yes
11716  fi
11717  ;;
11718
11719os2*)
11720  libname_spec='$name'
11721  shrext_cmds=".dll"
11722  need_lib_prefix=no
11723  library_names_spec='$libname${shared_ext} $libname.a'
11724  dynamic_linker='OS/2 ld.exe'
11725  shlibpath_var=LIBPATH
11726  ;;
11727
11728osf3* | osf4* | osf5*)
11729  version_type=osf
11730  need_lib_prefix=no
11731  need_version=no
11732  soname_spec='${libname}${release}${shared_ext}$major'
11733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11736  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11737  ;;
11738
11739sco3.2v5*)
11740  version_type=osf
11741  soname_spec='${libname}${release}${shared_ext}$major'
11742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743  shlibpath_var=LD_LIBRARY_PATH
11744  ;;
11745
11746solaris*)
11747  version_type=linux
11748  need_lib_prefix=no
11749  need_version=no
11750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751  soname_spec='${libname}${release}${shared_ext}$major'
11752  shlibpath_var=LD_LIBRARY_PATH
11753  shlibpath_overrides_runpath=yes
11754  hardcode_into_libs=yes
11755  # ldd complains unless libraries are executable
11756  postinstall_cmds='chmod +x $lib'
11757  ;;
11758
11759sunos4*)
11760  version_type=sunos
11761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11763  shlibpath_var=LD_LIBRARY_PATH
11764  shlibpath_overrides_runpath=yes
11765  if test "$with_gnu_ld" = yes; then
11766    need_lib_prefix=no
11767  fi
11768  need_version=yes
11769  ;;
11770
11771sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11772  version_type=linux
11773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774  soname_spec='${libname}${release}${shared_ext}$major'
11775  shlibpath_var=LD_LIBRARY_PATH
11776  case $host_vendor in
11777    sni)
11778      shlibpath_overrides_runpath=no
11779      need_lib_prefix=no
11780      export_dynamic_flag_spec='${wl}-Blargedynsym'
11781      runpath_var=LD_RUN_PATH
11782      ;;
11783    siemens)
11784      need_lib_prefix=no
11785      ;;
11786    motorola)
11787      need_lib_prefix=no
11788      need_version=no
11789      shlibpath_overrides_runpath=no
11790      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11791      ;;
11792  esac
11793  ;;
11794
11795sysv4*MP*)
11796  if test -d /usr/nec ;then
11797    version_type=linux
11798    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11799    soname_spec='$libname${shared_ext}.$major'
11800    shlibpath_var=LD_LIBRARY_PATH
11801  fi
11802  ;;
11803
11804uts4*)
11805  version_type=linux
11806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807  soname_spec='${libname}${release}${shared_ext}$major'
11808  shlibpath_var=LD_LIBRARY_PATH
11809  ;;
11810
11811*)
11812  dynamic_linker=no
11813  ;;
11814esac
11815echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11816echo "${ECHO_T}$dynamic_linker" >&6
11817test "$dynamic_linker" = no && can_build_shared=no
11818
11819echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11820echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11821hardcode_action_CXX=
11822if test -n "$hardcode_libdir_flag_spec_CXX" || \
11823   test -n "$runpath_var_CXX" || \
11824   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11825
11826  # We can hardcode non-existant directories.
11827  if test "$hardcode_direct_CXX" != no &&
11828     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11829     # have to relink, otherwise we might link with an installed library
11830     # when we should be linking with a yet-to-be-installed one
11831     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11832     test "$hardcode_minus_L_CXX" != no; then
11833    # Linking always hardcodes the temporary library directory.
11834    hardcode_action_CXX=relink
11835  else
11836    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11837    hardcode_action_CXX=immediate
11838  fi
11839else
11840  # We cannot hardcode anything, or else we can only hardcode existing
11841  # directories.
11842  hardcode_action_CXX=unsupported
11843fi
11844echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11845echo "${ECHO_T}$hardcode_action_CXX" >&6
11846
11847if test "$hardcode_action_CXX" = relink; then
11848  # Fast installation is not supported
11849  enable_fast_install=no
11850elif test "$shlibpath_overrides_runpath" = yes ||
11851     test "$enable_shared" = no; then
11852  # Fast installation is not necessary
11853  enable_fast_install=needless
11854fi
11855
11856striplib=
11857old_striplib=
11858echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11859echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11860if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11861  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11862  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11863  echo "$as_me:$LINENO: result: yes" >&5
11864echo "${ECHO_T}yes" >&6
11865else
11866# FIXME - insert some real tests, host_os isn't really good enough
11867  case $host_os in
11868   darwin*)
11869       if test -n "$STRIP" ; then
11870         striplib="$STRIP -x"
11871         echo "$as_me:$LINENO: result: yes" >&5
11872echo "${ECHO_T}yes" >&6
11873       else
11874  echo "$as_me:$LINENO: result: no" >&5
11875echo "${ECHO_T}no" >&6
11876fi
11877       ;;
11878   *)
11879  echo "$as_me:$LINENO: result: no" >&5
11880echo "${ECHO_T}no" >&6
11881    ;;
11882  esac
11883fi
11884
11885if test "x$enable_dlopen" != xyes; then
11886  enable_dlopen=unknown
11887  enable_dlopen_self=unknown
11888  enable_dlopen_self_static=unknown
11889else
11890  lt_cv_dlopen=no
11891  lt_cv_dlopen_libs=
11892
11893  case $host_os in
11894  beos*)
11895    lt_cv_dlopen="load_add_on"
11896    lt_cv_dlopen_libs=
11897    lt_cv_dlopen_self=yes
11898    ;;
11899
11900  mingw* | pw32*)
11901    lt_cv_dlopen="LoadLibrary"
11902    lt_cv_dlopen_libs=
11903   ;;
11904
11905  cygwin*)
11906    lt_cv_dlopen="dlopen"
11907    lt_cv_dlopen_libs=
11908   ;;
11909
11910  darwin*)
11911  # if libdl is installed we need to link against it
11912    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11913echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11915  echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917  ac_check_lib_save_LIBS=$LIBS
11918LIBS="-ldl  $LIBS"
11919cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h.  */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h.  */
11925
11926/* Override any gcc2 internal prototype to avoid an error.  */
11927#ifdef __cplusplus
11928extern "C"
11929#endif
11930/* We use char because int might match the return type of a gcc2
11931   builtin and then its argument prototype would still apply.  */
11932char dlopen ();
11933int
11934main ()
11935{
11936dlopen ();
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext conftest$ac_exeext
11942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943  (eval $ac_link) 2>conftest.er1
11944  ac_status=$?
11945  grep -v '^ *+' conftest.er1 >conftest.err
11946  rm -f conftest.er1
11947  cat conftest.err >&5
11948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949  (exit $ac_status); } &&
11950	 { ac_try='test -z "$ac_cxx_werror_flag"
11951			 || test ! -s conftest.err'
11952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953  (eval $ac_try) 2>&5
11954  ac_status=$?
11955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956  (exit $ac_status); }; } &&
11957	 { ac_try='test -s conftest$ac_exeext'
11958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959  (eval $ac_try) 2>&5
11960  ac_status=$?
11961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962  (exit $ac_status); }; }; then
11963  ac_cv_lib_dl_dlopen=yes
11964else
11965  echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968ac_cv_lib_dl_dlopen=no
11969fi
11970rm -f conftest.err conftest.$ac_objext \
11971      conftest$ac_exeext conftest.$ac_ext
11972LIBS=$ac_check_lib_save_LIBS
11973fi
11974echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11976if test $ac_cv_lib_dl_dlopen = yes; then
11977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11978else
11979
11980    lt_cv_dlopen="dyld"
11981    lt_cv_dlopen_libs=
11982    lt_cv_dlopen_self=yes
11983
11984fi
11985
11986   ;;
11987
11988  *)
11989    echo "$as_me:$LINENO: checking for shl_load" >&5
11990echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11991if test "${ac_cv_func_shl_load+set}" = set; then
11992  echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994  cat >conftest.$ac_ext <<_ACEOF
11995/* confdefs.h.  */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h.  */
12000/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12002#define shl_load innocuous_shl_load
12003
12004/* System header to define __stub macros and hopefully few prototypes,
12005    which can conflict with char shl_load (); below.
12006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12007    <limits.h> exists even on freestanding compilers.  */
12008
12009#ifdef __STDC__
12010# include <limits.h>
12011#else
12012# include <assert.h>
12013#endif
12014
12015#undef shl_load
12016
12017/* Override any gcc2 internal prototype to avoid an error.  */
12018#ifdef __cplusplus
12019extern "C"
12020{
12021#endif
12022/* We use char because int might match the return type of a gcc2
12023   builtin and then its argument prototype would still apply.  */
12024char shl_load ();
12025/* The GNU C library defines this for functions which it implements
12026    to always fail with ENOSYS.  Some functions are actually named
12027    something starting with __ and the normal name is an alias.  */
12028#if defined (__stub_shl_load) || defined (__stub___shl_load)
12029choke me
12030#else
12031char (*f) () = shl_load;
12032#endif
12033#ifdef __cplusplus
12034}
12035#endif
12036
12037int
12038main ()
12039{
12040return f != shl_load;
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047  (eval $ac_link) 2>conftest.er1
12048  ac_status=$?
12049  grep -v '^ *+' conftest.er1 >conftest.err
12050  rm -f conftest.er1
12051  cat conftest.err >&5
12052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); } &&
12054	 { ac_try='test -z "$ac_cxx_werror_flag"
12055			 || test ! -s conftest.err'
12056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057  (eval $ac_try) 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; } &&
12061	 { ac_try='test -s conftest$ac_exeext'
12062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063  (eval $ac_try) 2>&5
12064  ac_status=$?
12065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066  (exit $ac_status); }; }; then
12067  ac_cv_func_shl_load=yes
12068else
12069  echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072ac_cv_func_shl_load=no
12073fi
12074rm -f conftest.err conftest.$ac_objext \
12075      conftest$ac_exeext conftest.$ac_ext
12076fi
12077echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12078echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12079if test $ac_cv_func_shl_load = yes; then
12080  lt_cv_dlopen="shl_load"
12081else
12082  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12083echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12084if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12085  echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087  ac_check_lib_save_LIBS=$LIBS
12088LIBS="-ldld  $LIBS"
12089cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h.  */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h.  */
12095
12096/* Override any gcc2 internal prototype to avoid an error.  */
12097#ifdef __cplusplus
12098extern "C"
12099#endif
12100/* We use char because int might match the return type of a gcc2
12101   builtin and then its argument prototype would still apply.  */
12102char shl_load ();
12103int
12104main ()
12105{
12106shl_load ();
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext conftest$ac_exeext
12112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113  (eval $ac_link) 2>conftest.er1
12114  ac_status=$?
12115  grep -v '^ *+' conftest.er1 >conftest.err
12116  rm -f conftest.er1
12117  cat conftest.err >&5
12118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119  (exit $ac_status); } &&
12120	 { ac_try='test -z "$ac_cxx_werror_flag"
12121			 || test ! -s conftest.err'
12122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123  (eval $ac_try) 2>&5
12124  ac_status=$?
12125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); }; } &&
12127	 { ac_try='test -s conftest$ac_exeext'
12128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129  (eval $ac_try) 2>&5
12130  ac_status=$?
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); }; }; then
12133  ac_cv_lib_dld_shl_load=yes
12134else
12135  echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138ac_cv_lib_dld_shl_load=no
12139fi
12140rm -f conftest.err conftest.$ac_objext \
12141      conftest$ac_exeext conftest.$ac_ext
12142LIBS=$ac_check_lib_save_LIBS
12143fi
12144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12145echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12146if test $ac_cv_lib_dld_shl_load = yes; then
12147  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12148else
12149  echo "$as_me:$LINENO: checking for dlopen" >&5
12150echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12151if test "${ac_cv_func_dlopen+set}" = set; then
12152  echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154  cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h.  */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h.  */
12160/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12162#define dlopen innocuous_dlopen
12163
12164/* System header to define __stub macros and hopefully few prototypes,
12165    which can conflict with char dlopen (); below.
12166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167    <limits.h> exists even on freestanding compilers.  */
12168
12169#ifdef __STDC__
12170# include <limits.h>
12171#else
12172# include <assert.h>
12173#endif
12174
12175#undef dlopen
12176
12177/* Override any gcc2 internal prototype to avoid an error.  */
12178#ifdef __cplusplus
12179extern "C"
12180{
12181#endif
12182/* We use char because int might match the return type of a gcc2
12183   builtin and then its argument prototype would still apply.  */
12184char dlopen ();
12185/* The GNU C library defines this for functions which it implements
12186    to always fail with ENOSYS.  Some functions are actually named
12187    something starting with __ and the normal name is an alias.  */
12188#if defined (__stub_dlopen) || defined (__stub___dlopen)
12189choke me
12190#else
12191char (*f) () = dlopen;
12192#endif
12193#ifdef __cplusplus
12194}
12195#endif
12196
12197int
12198main ()
12199{
12200return f != dlopen;
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207  (eval $ac_link) 2>conftest.er1
12208  ac_status=$?
12209  grep -v '^ *+' conftest.er1 >conftest.err
12210  rm -f conftest.er1
12211  cat conftest.err >&5
12212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213  (exit $ac_status); } &&
12214	 { ac_try='test -z "$ac_cxx_werror_flag"
12215			 || test ! -s conftest.err'
12216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217  (eval $ac_try) 2>&5
12218  ac_status=$?
12219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220  (exit $ac_status); }; } &&
12221	 { ac_try='test -s conftest$ac_exeext'
12222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223  (eval $ac_try) 2>&5
12224  ac_status=$?
12225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226  (exit $ac_status); }; }; then
12227  ac_cv_func_dlopen=yes
12228else
12229  echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_func_dlopen=no
12233fi
12234rm -f conftest.err conftest.$ac_objext \
12235      conftest$ac_exeext conftest.$ac_ext
12236fi
12237echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12238echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12239if test $ac_cv_func_dlopen = yes; then
12240  lt_cv_dlopen="dlopen"
12241else
12242  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12243echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12244if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12245  echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247  ac_check_lib_save_LIBS=$LIBS
12248LIBS="-ldl  $LIBS"
12249cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h.  */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h.  */
12255
12256/* Override any gcc2 internal prototype to avoid an error.  */
12257#ifdef __cplusplus
12258extern "C"
12259#endif
12260/* We use char because int might match the return type of a gcc2
12261   builtin and then its argument prototype would still apply.  */
12262char dlopen ();
12263int
12264main ()
12265{
12266dlopen ();
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271rm -f conftest.$ac_objext conftest$ac_exeext
12272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273  (eval $ac_link) 2>conftest.er1
12274  ac_status=$?
12275  grep -v '^ *+' conftest.er1 >conftest.err
12276  rm -f conftest.er1
12277  cat conftest.err >&5
12278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279  (exit $ac_status); } &&
12280	 { ac_try='test -z "$ac_cxx_werror_flag"
12281			 || test ! -s conftest.err'
12282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283  (eval $ac_try) 2>&5
12284  ac_status=$?
12285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286  (exit $ac_status); }; } &&
12287	 { ac_try='test -s conftest$ac_exeext'
12288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289  (eval $ac_try) 2>&5
12290  ac_status=$?
12291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292  (exit $ac_status); }; }; then
12293  ac_cv_lib_dl_dlopen=yes
12294else
12295  echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298ac_cv_lib_dl_dlopen=no
12299fi
12300rm -f conftest.err conftest.$ac_objext \
12301      conftest$ac_exeext conftest.$ac_ext
12302LIBS=$ac_check_lib_save_LIBS
12303fi
12304echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12306if test $ac_cv_lib_dl_dlopen = yes; then
12307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12308else
12309  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12310echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12311if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12312  echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314  ac_check_lib_save_LIBS=$LIBS
12315LIBS="-lsvld  $LIBS"
12316cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h.  */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h.  */
12322
12323/* Override any gcc2 internal prototype to avoid an error.  */
12324#ifdef __cplusplus
12325extern "C"
12326#endif
12327/* We use char because int might match the return type of a gcc2
12328   builtin and then its argument prototype would still apply.  */
12329char dlopen ();
12330int
12331main ()
12332{
12333dlopen ();
12334  ;
12335  return 0;
12336}
12337_ACEOF
12338rm -f conftest.$ac_objext conftest$ac_exeext
12339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340  (eval $ac_link) 2>conftest.er1
12341  ac_status=$?
12342  grep -v '^ *+' conftest.er1 >conftest.err
12343  rm -f conftest.er1
12344  cat conftest.err >&5
12345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346  (exit $ac_status); } &&
12347	 { ac_try='test -z "$ac_cxx_werror_flag"
12348			 || test ! -s conftest.err'
12349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350  (eval $ac_try) 2>&5
12351  ac_status=$?
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); }; } &&
12354	 { ac_try='test -s conftest$ac_exeext'
12355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356  (eval $ac_try) 2>&5
12357  ac_status=$?
12358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359  (exit $ac_status); }; }; then
12360  ac_cv_lib_svld_dlopen=yes
12361else
12362  echo "$as_me: failed program was:" >&5
12363sed 's/^/| /' conftest.$ac_ext >&5
12364
12365ac_cv_lib_svld_dlopen=no
12366fi
12367rm -f conftest.err conftest.$ac_objext \
12368      conftest$ac_exeext conftest.$ac_ext
12369LIBS=$ac_check_lib_save_LIBS
12370fi
12371echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12372echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12373if test $ac_cv_lib_svld_dlopen = yes; then
12374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12375else
12376  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12377echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12378if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12379  echo $ECHO_N "(cached) $ECHO_C" >&6
12380else
12381  ac_check_lib_save_LIBS=$LIBS
12382LIBS="-ldld  $LIBS"
12383cat >conftest.$ac_ext <<_ACEOF
12384/* confdefs.h.  */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h.  */
12389
12390/* Override any gcc2 internal prototype to avoid an error.  */
12391#ifdef __cplusplus
12392extern "C"
12393#endif
12394/* We use char because int might match the return type of a gcc2
12395   builtin and then its argument prototype would still apply.  */
12396char dld_link ();
12397int
12398main ()
12399{
12400dld_link ();
12401  ;
12402  return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext conftest$ac_exeext
12406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407  (eval $ac_link) 2>conftest.er1
12408  ac_status=$?
12409  grep -v '^ *+' conftest.er1 >conftest.err
12410  rm -f conftest.er1
12411  cat conftest.err >&5
12412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413  (exit $ac_status); } &&
12414	 { ac_try='test -z "$ac_cxx_werror_flag"
12415			 || test ! -s conftest.err'
12416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417  (eval $ac_try) 2>&5
12418  ac_status=$?
12419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420  (exit $ac_status); }; } &&
12421	 { ac_try='test -s conftest$ac_exeext'
12422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423  (eval $ac_try) 2>&5
12424  ac_status=$?
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); }; }; then
12427  ac_cv_lib_dld_dld_link=yes
12428else
12429  echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432ac_cv_lib_dld_dld_link=no
12433fi
12434rm -f conftest.err conftest.$ac_objext \
12435      conftest$ac_exeext conftest.$ac_ext
12436LIBS=$ac_check_lib_save_LIBS
12437fi
12438echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12439echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12440if test $ac_cv_lib_dld_dld_link = yes; then
12441  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12442fi
12443
12444
12445fi
12446
12447
12448fi
12449
12450
12451fi
12452
12453
12454fi
12455
12456
12457fi
12458
12459    ;;
12460  esac
12461
12462  if test "x$lt_cv_dlopen" != xno; then
12463    enable_dlopen=yes
12464  else
12465    enable_dlopen=no
12466  fi
12467
12468  case $lt_cv_dlopen in
12469  dlopen)
12470    save_CPPFLAGS="$CPPFLAGS"
12471    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12472
12473    save_LDFLAGS="$LDFLAGS"
12474    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12475
12476    save_LIBS="$LIBS"
12477    LIBS="$lt_cv_dlopen_libs $LIBS"
12478
12479    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12480echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12481if test "${lt_cv_dlopen_self+set}" = set; then
12482  echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484  	  if test "$cross_compiling" = yes; then :
12485  lt_cv_dlopen_self=cross
12486else
12487  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12488  lt_status=$lt_dlunknown
12489  cat > conftest.$ac_ext <<EOF
12490#line 12490 "configure"
12491#include "confdefs.h"
12492
12493#if HAVE_DLFCN_H
12494#include <dlfcn.h>
12495#endif
12496
12497#include <stdio.h>
12498
12499#ifdef RTLD_GLOBAL
12500#  define LT_DLGLOBAL		RTLD_GLOBAL
12501#else
12502#  ifdef DL_GLOBAL
12503#    define LT_DLGLOBAL		DL_GLOBAL
12504#  else
12505#    define LT_DLGLOBAL		0
12506#  endif
12507#endif
12508
12509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12510   find out it does not work in some platform. */
12511#ifndef LT_DLLAZY_OR_NOW
12512#  ifdef RTLD_LAZY
12513#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12514#  else
12515#    ifdef DL_LAZY
12516#      define LT_DLLAZY_OR_NOW		DL_LAZY
12517#    else
12518#      ifdef RTLD_NOW
12519#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12520#      else
12521#        ifdef DL_NOW
12522#          define LT_DLLAZY_OR_NOW	DL_NOW
12523#        else
12524#          define LT_DLLAZY_OR_NOW	0
12525#        endif
12526#      endif
12527#    endif
12528#  endif
12529#endif
12530
12531#ifdef __cplusplus
12532extern "C" void exit (int);
12533#endif
12534
12535void fnord() { int i=42;}
12536int main ()
12537{
12538  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12539  int status = $lt_dlunknown;
12540
12541  if (self)
12542    {
12543      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12544      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12545      /* dlclose (self); */
12546    }
12547
12548    exit (status);
12549}
12550EOF
12551  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12552  (eval $ac_link) 2>&5
12553  ac_status=$?
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12556    (./conftest; exit; ) 2>/dev/null
12557    lt_status=$?
12558    case x$lt_status in
12559      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12560      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12561      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12562    esac
12563  else :
12564    # compilation failed
12565    lt_cv_dlopen_self=no
12566  fi
12567fi
12568rm -fr conftest*
12569
12570
12571fi
12572echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12573echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12574
12575    if test "x$lt_cv_dlopen_self" = xyes; then
12576      LDFLAGS="$LDFLAGS $link_static_flag"
12577      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12578echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12579if test "${lt_cv_dlopen_self_static+set}" = set; then
12580  echo $ECHO_N "(cached) $ECHO_C" >&6
12581else
12582  	  if test "$cross_compiling" = yes; then :
12583  lt_cv_dlopen_self_static=cross
12584else
12585  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12586  lt_status=$lt_dlunknown
12587  cat > conftest.$ac_ext <<EOF
12588#line 12588 "configure"
12589#include "confdefs.h"
12590
12591#if HAVE_DLFCN_H
12592#include <dlfcn.h>
12593#endif
12594
12595#include <stdio.h>
12596
12597#ifdef RTLD_GLOBAL
12598#  define LT_DLGLOBAL		RTLD_GLOBAL
12599#else
12600#  ifdef DL_GLOBAL
12601#    define LT_DLGLOBAL		DL_GLOBAL
12602#  else
12603#    define LT_DLGLOBAL		0
12604#  endif
12605#endif
12606
12607/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12608   find out it does not work in some platform. */
12609#ifndef LT_DLLAZY_OR_NOW
12610#  ifdef RTLD_LAZY
12611#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12612#  else
12613#    ifdef DL_LAZY
12614#      define LT_DLLAZY_OR_NOW		DL_LAZY
12615#    else
12616#      ifdef RTLD_NOW
12617#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12618#      else
12619#        ifdef DL_NOW
12620#          define LT_DLLAZY_OR_NOW	DL_NOW
12621#        else
12622#          define LT_DLLAZY_OR_NOW	0
12623#        endif
12624#      endif
12625#    endif
12626#  endif
12627#endif
12628
12629#ifdef __cplusplus
12630extern "C" void exit (int);
12631#endif
12632
12633void fnord() { int i=42;}
12634int main ()
12635{
12636  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12637  int status = $lt_dlunknown;
12638
12639  if (self)
12640    {
12641      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12642      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12643      /* dlclose (self); */
12644    }
12645
12646    exit (status);
12647}
12648EOF
12649  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650  (eval $ac_link) 2>&5
12651  ac_status=$?
12652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12654    (./conftest; exit; ) 2>/dev/null
12655    lt_status=$?
12656    case x$lt_status in
12657      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12658      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12659      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12660    esac
12661  else :
12662    # compilation failed
12663    lt_cv_dlopen_self_static=no
12664  fi
12665fi
12666rm -fr conftest*
12667
12668
12669fi
12670echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12671echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12672    fi
12673
12674    CPPFLAGS="$save_CPPFLAGS"
12675    LDFLAGS="$save_LDFLAGS"
12676    LIBS="$save_LIBS"
12677    ;;
12678  esac
12679
12680  case $lt_cv_dlopen_self in
12681  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12682  *) enable_dlopen_self=unknown ;;
12683  esac
12684
12685  case $lt_cv_dlopen_self_static in
12686  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12687  *) enable_dlopen_self_static=unknown ;;
12688  esac
12689fi
12690
12691
12692# The else clause should only fire when bootstrapping the
12693# libtool distribution, otherwise you forgot to ship ltmain.sh
12694# with your package, and you will get complaints that there are
12695# no rules to generate ltmain.sh.
12696if test -f "$ltmain"; then
12697  # See if we are running on zsh, and set the options which allow our commands through
12698  # without removal of \ escapes.
12699  if test -n "${ZSH_VERSION+set}" ; then
12700    setopt NO_GLOB_SUBST
12701  fi
12702  # Now quote all the things that may contain metacharacters while being
12703  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12704  # variables and quote the copies for generation of the libtool script.
12705  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12706    SED SHELL STRIP \
12707    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12708    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12709    deplibs_check_method reload_flag reload_cmds need_locks \
12710    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12711    lt_cv_sys_global_symbol_to_c_name_address \
12712    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12713    old_postinstall_cmds old_postuninstall_cmds \
12714    compiler_CXX \
12715    CC_CXX \
12716    LD_CXX \
12717    lt_prog_compiler_wl_CXX \
12718    lt_prog_compiler_pic_CXX \
12719    lt_prog_compiler_static_CXX \
12720    lt_prog_compiler_no_builtin_flag_CXX \
12721    export_dynamic_flag_spec_CXX \
12722    thread_safe_flag_spec_CXX \
12723    whole_archive_flag_spec_CXX \
12724    enable_shared_with_static_runtimes_CXX \
12725    old_archive_cmds_CXX \
12726    old_archive_from_new_cmds_CXX \
12727    predep_objects_CXX \
12728    postdep_objects_CXX \
12729    predeps_CXX \
12730    postdeps_CXX \
12731    compiler_lib_search_path_CXX \
12732    archive_cmds_CXX \
12733    archive_expsym_cmds_CXX \
12734    postinstall_cmds_CXX \
12735    postuninstall_cmds_CXX \
12736    old_archive_from_expsyms_cmds_CXX \
12737    allow_undefined_flag_CXX \
12738    no_undefined_flag_CXX \
12739    export_symbols_cmds_CXX \
12740    hardcode_libdir_flag_spec_CXX \
12741    hardcode_libdir_flag_spec_ld_CXX \
12742    hardcode_libdir_separator_CXX \
12743    hardcode_automatic_CXX \
12744    module_cmds_CXX \
12745    module_expsym_cmds_CXX \
12746    lt_cv_prog_compiler_c_o_CXX \
12747    exclude_expsyms_CXX \
12748    include_expsyms_CXX; do
12749
12750    case $var in
12751    old_archive_cmds_CXX | \
12752    old_archive_from_new_cmds_CXX | \
12753    archive_cmds_CXX | \
12754    archive_expsym_cmds_CXX | \
12755    module_cmds_CXX | \
12756    module_expsym_cmds_CXX | \
12757    old_archive_from_expsyms_cmds_CXX | \
12758    export_symbols_cmds_CXX | \
12759    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12760    postinstall_cmds | postuninstall_cmds | \
12761    old_postinstall_cmds | old_postuninstall_cmds | \
12762    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12763      # Double-quote double-evaled strings.
12764      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12765      ;;
12766    *)
12767      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12768      ;;
12769    esac
12770  done
12771
12772  case $lt_echo in
12773  *'\$0 --fallback-echo"')
12774    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12775    ;;
12776  esac
12777
12778cfgfile="$ofile"
12779
12780  cat <<__EOF__ >> "$cfgfile"
12781# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12782
12783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12784
12785# Shell to use when invoking shell scripts.
12786SHELL=$lt_SHELL
12787
12788# Whether or not to build shared libraries.
12789build_libtool_libs=$enable_shared
12790
12791# Whether or not to build static libraries.
12792build_old_libs=$enable_static
12793
12794# Whether or not to add -lc for building shared libraries.
12795build_libtool_need_lc=$archive_cmds_need_lc_CXX
12796
12797# Whether or not to disallow shared libs when runtime libs are static
12798allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12799
12800# Whether or not to optimize for fast installation.
12801fast_install=$enable_fast_install
12802
12803# The host system.
12804host_alias=$host_alias
12805host=$host
12806
12807# An echo program that does not interpret backslashes.
12808echo=$lt_echo
12809
12810# The archiver.
12811AR=$lt_AR
12812AR_FLAGS=$lt_AR_FLAGS
12813
12814# A C compiler.
12815LTCC=$lt_LTCC
12816
12817# A language-specific compiler.
12818CC=$lt_compiler_CXX
12819
12820# Is the compiler the GNU C compiler?
12821with_gcc=$GCC_CXX
12822
12823# An ERE matcher.
12824EGREP=$lt_EGREP
12825
12826# The linker used to build libraries.
12827LD=$lt_LD_CXX
12828
12829# Whether we need hard or soft links.
12830LN_S=$lt_LN_S
12831
12832# A BSD-compatible nm program.
12833NM=$lt_NM
12834
12835# A symbol stripping program
12836STRIP=$lt_STRIP
12837
12838# Used to examine libraries when file_magic_cmd begins "file"
12839MAGIC_CMD=$MAGIC_CMD
12840
12841# Used on cygwin: DLL creation program.
12842DLLTOOL="$DLLTOOL"
12843
12844# Used on cygwin: object dumper.
12845OBJDUMP="$OBJDUMP"
12846
12847# Used on cygwin: assembler.
12848AS="$AS"
12849
12850# The name of the directory that contains temporary libtool files.
12851objdir=$objdir
12852
12853# How to create reloadable object files.
12854reload_flag=$lt_reload_flag
12855reload_cmds=$lt_reload_cmds
12856
12857# How to pass a linker flag through the compiler.
12858wl=$lt_lt_prog_compiler_wl_CXX
12859
12860# Object file suffix (normally "o").
12861objext="$ac_objext"
12862
12863# Old archive suffix (normally "a").
12864libext="$libext"
12865
12866# Shared library suffix (normally ".so").
12867shrext_cmds='$shrext_cmds'
12868
12869# Executable file suffix (normally "").
12870exeext="$exeext"
12871
12872# Additional compiler flags for building library objects.
12873pic_flag=$lt_lt_prog_compiler_pic_CXX
12874pic_mode=$pic_mode
12875
12876# What is the maximum length of a command?
12877max_cmd_len=$lt_cv_sys_max_cmd_len
12878
12879# Does compiler simultaneously support -c and -o options?
12880compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12881
12882# Must we lock files when doing compilation ?
12883need_locks=$lt_need_locks
12884
12885# Do we need the lib prefix for modules?
12886need_lib_prefix=$need_lib_prefix
12887
12888# Do we need a version for libraries?
12889need_version=$need_version
12890
12891# Whether dlopen is supported.
12892dlopen_support=$enable_dlopen
12893
12894# Whether dlopen of programs is supported.
12895dlopen_self=$enable_dlopen_self
12896
12897# Whether dlopen of statically linked programs is supported.
12898dlopen_self_static=$enable_dlopen_self_static
12899
12900# Compiler flag to prevent dynamic linking.
12901link_static_flag=$lt_lt_prog_compiler_static_CXX
12902
12903# Compiler flag to turn off builtin functions.
12904no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12905
12906# Compiler flag to allow reflexive dlopens.
12907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12908
12909# Compiler flag to generate shared objects directly from archives.
12910whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12911
12912# Compiler flag to generate thread-safe objects.
12913thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12914
12915# Library versioning type.
12916version_type=$version_type
12917
12918# Format of library name prefix.
12919libname_spec=$lt_libname_spec
12920
12921# List of archive names.  First name is the real one, the rest are links.
12922# The last name is the one that the linker finds with -lNAME.
12923library_names_spec=$lt_library_names_spec
12924
12925# The coded name of the library, if different from the real name.
12926soname_spec=$lt_soname_spec
12927
12928# Commands used to build and install an old-style archive.
12929RANLIB=$lt_RANLIB
12930old_archive_cmds=$lt_old_archive_cmds_CXX
12931old_postinstall_cmds=$lt_old_postinstall_cmds
12932old_postuninstall_cmds=$lt_old_postuninstall_cmds
12933
12934# Create an old-style archive from a shared archive.
12935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12936
12937# Create a temporary old-style archive to link instead of a shared archive.
12938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12939
12940# Commands used to build and install a shared archive.
12941archive_cmds=$lt_archive_cmds_CXX
12942archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12943postinstall_cmds=$lt_postinstall_cmds
12944postuninstall_cmds=$lt_postuninstall_cmds
12945
12946# Commands used to build a loadable module (assumed same as above if empty)
12947module_cmds=$lt_module_cmds_CXX
12948module_expsym_cmds=$lt_module_expsym_cmds_CXX
12949
12950# Commands to strip libraries.
12951old_striplib=$lt_old_striplib
12952striplib=$lt_striplib
12953
12954# Dependencies to place before the objects being linked to create a
12955# shared library.
12956predep_objects=$lt_predep_objects_CXX
12957
12958# Dependencies to place after the objects being linked to create a
12959# shared library.
12960postdep_objects=$lt_postdep_objects_CXX
12961
12962# Dependencies to place before the objects being linked to create a
12963# shared library.
12964predeps=$lt_predeps_CXX
12965
12966# Dependencies to place after the objects being linked to create a
12967# shared library.
12968postdeps=$lt_postdeps_CXX
12969
12970# The library search path used internally by the compiler when linking
12971# a shared library.
12972compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12973
12974# Method to check whether dependent libraries are shared objects.
12975deplibs_check_method=$lt_deplibs_check_method
12976
12977# Command to use when deplibs_check_method == file_magic.
12978file_magic_cmd=$lt_file_magic_cmd
12979
12980# Flag that allows shared libraries with undefined symbols to be built.
12981allow_undefined_flag=$lt_allow_undefined_flag_CXX
12982
12983# Flag that forces no undefined symbols.
12984no_undefined_flag=$lt_no_undefined_flag_CXX
12985
12986# Commands used to finish a libtool library installation in a directory.
12987finish_cmds=$lt_finish_cmds
12988
12989# Same as above, but a single script fragment to be evaled but not shown.
12990finish_eval=$lt_finish_eval
12991
12992# Take the output of nm and produce a listing of raw symbols and C names.
12993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12994
12995# Transform the output of nm in a proper C declaration
12996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12997
12998# Transform the output of nm in a C name address pair
12999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13000
13001# This is the shared library runtime path variable.
13002runpath_var=$runpath_var
13003
13004# This is the shared library path variable.
13005shlibpath_var=$shlibpath_var
13006
13007# Is shlibpath searched before the hard-coded library search path?
13008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13009
13010# How to hardcode a shared library path into an executable.
13011hardcode_action=$hardcode_action_CXX
13012
13013# Whether we should hardcode library paths into libraries.
13014hardcode_into_libs=$hardcode_into_libs
13015
13016# Flag to hardcode \$libdir into a binary during linking.
13017# This must work even if \$libdir does not exist.
13018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13019
13020# If ld is used when linking, flag to hardcode \$libdir into
13021# a binary during linking. This must work even if \$libdir does
13022# not exist.
13023hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13024
13025# Whether we need a single -rpath flag with a separated argument.
13026hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13027
13028# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13029# resulting binary.
13030hardcode_direct=$hardcode_direct_CXX
13031
13032# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13033# resulting binary.
13034hardcode_minus_L=$hardcode_minus_L_CXX
13035
13036# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13037# the resulting binary.
13038hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13039
13040# Set to yes if building a shared library automatically hardcodes DIR into the library
13041# and all subsequent libraries and executables linked against it.
13042hardcode_automatic=$hardcode_automatic_CXX
13043
13044# Variables whose values should be saved in libtool wrapper scripts and
13045# restored at relink time.
13046variables_saved_for_relink="$variables_saved_for_relink"
13047
13048# Whether libtool must link a program against all its dependency libraries.
13049link_all_deplibs=$link_all_deplibs_CXX
13050
13051# Compile-time system search path for libraries
13052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13053
13054# Run-time system search path for libraries
13055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13056
13057# Fix the shell variable \$srcfile for the compiler.
13058fix_srcfile_path="$fix_srcfile_path_CXX"
13059
13060# Set to yes if exported symbols are required.
13061always_export_symbols=$always_export_symbols_CXX
13062
13063# The commands to list exported symbols.
13064export_symbols_cmds=$lt_export_symbols_cmds_CXX
13065
13066# The commands to extract the exported symbol list from a shared archive.
13067extract_expsyms_cmds=$lt_extract_expsyms_cmds
13068
13069# Symbols that should not be listed in the preloaded symbols.
13070exclude_expsyms=$lt_exclude_expsyms_CXX
13071
13072# Symbols that must always be exported.
13073include_expsyms=$lt_include_expsyms_CXX
13074
13075# ### END LIBTOOL TAG CONFIG: $tagname
13076
13077__EOF__
13078
13079
13080else
13081  # If there is no Makefile yet, we rely on a make rule to execute
13082  # `config.status --recheck' to rerun these tests and create the
13083  # libtool script then.
13084  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13085  if test -f "$ltmain_in"; then
13086    test -f Makefile && make "$ltmain"
13087  fi
13088fi
13089
13090
13091ac_ext=c
13092ac_cpp='$CPP $CPPFLAGS'
13093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097CC=$lt_save_CC
13098LDCXX=$LD
13099LD=$lt_save_LD
13100GCC=$lt_save_GCC
13101with_gnu_ldcxx=$with_gnu_ld
13102with_gnu_ld=$lt_save_with_gnu_ld
13103lt_cv_path_LDCXX=$lt_cv_path_LD
13104lt_cv_path_LD=$lt_save_path_LD
13105lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13106lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13107
13108	else
13109	  tagname=""
13110	fi
13111	;;
13112
13113      F77)
13114	if test -n "$F77" && test "X$F77" != "Xno"; then
13115
13116ac_ext=f
13117ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13118ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13119ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13120
13121
13122archive_cmds_need_lc_F77=no
13123allow_undefined_flag_F77=
13124always_export_symbols_F77=no
13125archive_expsym_cmds_F77=
13126export_dynamic_flag_spec_F77=
13127hardcode_direct_F77=no
13128hardcode_libdir_flag_spec_F77=
13129hardcode_libdir_flag_spec_ld_F77=
13130hardcode_libdir_separator_F77=
13131hardcode_minus_L_F77=no
13132hardcode_automatic_F77=no
13133module_cmds_F77=
13134module_expsym_cmds_F77=
13135link_all_deplibs_F77=unknown
13136old_archive_cmds_F77=$old_archive_cmds
13137no_undefined_flag_F77=
13138whole_archive_flag_spec_F77=
13139enable_shared_with_static_runtimes_F77=no
13140
13141# Source file extension for f77 test sources.
13142ac_ext=f
13143
13144# Object file extension for compiled f77 test sources.
13145objext=o
13146objext_F77=$objext
13147
13148# Code to be used in simple compile tests
13149lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13150
13151# Code to be used in simple link tests
13152lt_simple_link_test_code="      program t\n      end\n"
13153
13154# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13155
13156# If no C compiler was specified, use CC.
13157LTCC=${LTCC-"$CC"}
13158
13159# Allow CC to be a program name with arguments.
13160compiler=$CC
13161
13162
13163# Allow CC to be a program name with arguments.
13164lt_save_CC="$CC"
13165CC=${F77-"f77"}
13166compiler=$CC
13167compiler_F77=$CC
13168cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13169
13170echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13171echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13172echo "$as_me:$LINENO: result: $can_build_shared" >&5
13173echo "${ECHO_T}$can_build_shared" >&6
13174
13175echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13176echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13177test "$can_build_shared" = "no" && enable_shared=no
13178
13179# On AIX, shared libraries and static libraries use the same namespace, and
13180# are all built from PIC.
13181case "$host_os" in
13182aix3*)
13183  test "$enable_shared" = yes && enable_static=no
13184  if test -n "$RANLIB"; then
13185    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13186    postinstall_cmds='$RANLIB $lib'
13187  fi
13188  ;;
13189aix4* | aix5*)
13190  test "$enable_shared" = yes && enable_static=no
13191  ;;
13192esac
13193echo "$as_me:$LINENO: result: $enable_shared" >&5
13194echo "${ECHO_T}$enable_shared" >&6
13195
13196echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13197echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13198# Make sure either enable_shared or enable_static is yes.
13199test "$enable_shared" = yes || enable_static=yes
13200echo "$as_me:$LINENO: result: $enable_static" >&5
13201echo "${ECHO_T}$enable_static" >&6
13202
13203test "$ld_shlibs_F77" = no && can_build_shared=no
13204
13205GCC_F77="$G77"
13206LD_F77="$LD"
13207
13208lt_prog_compiler_wl_F77=
13209lt_prog_compiler_pic_F77=
13210lt_prog_compiler_static_F77=
13211
13212echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13213echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13214
13215  if test "$GCC" = yes; then
13216    lt_prog_compiler_wl_F77='-Wl,'
13217    lt_prog_compiler_static_F77='-static'
13218
13219    case $host_os in
13220      aix*)
13221      # All AIX code is PIC.
13222      if test "$host_cpu" = ia64; then
13223	# AIX 5 now supports IA64 processor
13224	lt_prog_compiler_static_F77='-Bstatic'
13225      fi
13226      ;;
13227
13228    amigaos*)
13229      # FIXME: we need at least 68020 code to build shared libraries, but
13230      # adding the `-m68020' flag to GCC prevents building anything better,
13231      # like `-m68040'.
13232      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13233      ;;
13234
13235    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13236      # PIC is the default for these OSes.
13237      ;;
13238
13239    mingw* | pw32* | os2*)
13240      # This hack is so that the source file can tell whether it is being
13241      # built for inclusion in a dll (and should export symbols for example).
13242      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13243      ;;
13244
13245    darwin* | rhapsody*)
13246      # PIC is the default on this platform
13247      # Common symbols not allowed in MH_DYLIB files
13248      lt_prog_compiler_pic_F77='-fno-common'
13249      ;;
13250
13251    msdosdjgpp*)
13252      # Just because we use GCC doesn't mean we suddenly get shared libraries
13253      # on systems that don't support them.
13254      lt_prog_compiler_can_build_shared_F77=no
13255      enable_shared=no
13256      ;;
13257
13258    sysv4*MP*)
13259      if test -d /usr/nec; then
13260	lt_prog_compiler_pic_F77=-Kconform_pic
13261      fi
13262      ;;
13263
13264    hpux*)
13265      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13266      # not for PA HP-UX.
13267      case "$host_cpu" in
13268      hppa*64*|ia64*)
13269	# +Z the default
13270	;;
13271      *)
13272	lt_prog_compiler_pic_F77='-fPIC'
13273	;;
13274      esac
13275      ;;
13276
13277    *)
13278      lt_prog_compiler_pic_F77='-fPIC'
13279      ;;
13280    esac
13281  else
13282    # PORTME Check for flag to pass linker flags through the system compiler.
13283    case $host_os in
13284    aix*)
13285      lt_prog_compiler_wl_F77='-Wl,'
13286      if test "$host_cpu" = ia64; then
13287	# AIX 5 now supports IA64 processor
13288	lt_prog_compiler_static_F77='-Bstatic'
13289      else
13290	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13291      fi
13292      ;;
13293      darwin*)
13294        # PIC is the default on this platform
13295        # Common symbols not allowed in MH_DYLIB files
13296       case "$cc_basename" in
13297         xlc*)
13298         lt_prog_compiler_pic_F77='-qnocommon'
13299         lt_prog_compiler_wl_F77='-Wl,'
13300         ;;
13301       esac
13302       ;;
13303
13304    mingw* | pw32* | os2*)
13305      # This hack is so that the source file can tell whether it is being
13306      # built for inclusion in a dll (and should export symbols for example).
13307      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13308      ;;
13309
13310    hpux9* | hpux10* | hpux11*)
13311      lt_prog_compiler_wl_F77='-Wl,'
13312      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313      # not for PA HP-UX.
13314      case "$host_cpu" in
13315      hppa*64*|ia64*)
13316	# +Z the default
13317	;;
13318      *)
13319	lt_prog_compiler_pic_F77='+Z'
13320	;;
13321      esac
13322      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13323      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13324      ;;
13325
13326    irix5* | irix6* | nonstopux*)
13327      lt_prog_compiler_wl_F77='-Wl,'
13328      # PIC (with -KPIC) is the default.
13329      lt_prog_compiler_static_F77='-non_shared'
13330      ;;
13331
13332    newsos6)
13333      lt_prog_compiler_pic_F77='-KPIC'
13334      lt_prog_compiler_static_F77='-Bstatic'
13335      ;;
13336
13337    linux*)
13338      case $CC in
13339      icc* | ecc*)
13340	lt_prog_compiler_wl_F77='-Wl,'
13341	lt_prog_compiler_pic_F77='-KPIC'
13342	lt_prog_compiler_static_F77='-static'
13343        ;;
13344      ccc*)
13345        lt_prog_compiler_wl_F77='-Wl,'
13346        # All Alpha code is PIC.
13347        lt_prog_compiler_static_F77='-non_shared'
13348        ;;
13349      esac
13350      ;;
13351
13352    osf3* | osf4* | osf5*)
13353      lt_prog_compiler_wl_F77='-Wl,'
13354      # All OSF/1 code is PIC.
13355      lt_prog_compiler_static_F77='-non_shared'
13356      ;;
13357
13358    sco3.2v5*)
13359      lt_prog_compiler_pic_F77='-Kpic'
13360      lt_prog_compiler_static_F77='-dn'
13361      ;;
13362
13363    solaris*)
13364      lt_prog_compiler_wl_F77='-Wl,'
13365      lt_prog_compiler_pic_F77='-KPIC'
13366      lt_prog_compiler_static_F77='-Bstatic'
13367      ;;
13368
13369    sunos4*)
13370      lt_prog_compiler_wl_F77='-Qoption ld '
13371      lt_prog_compiler_pic_F77='-PIC'
13372      lt_prog_compiler_static_F77='-Bstatic'
13373      ;;
13374
13375    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13376      lt_prog_compiler_wl_F77='-Wl,'
13377      lt_prog_compiler_pic_F77='-KPIC'
13378      lt_prog_compiler_static_F77='-Bstatic'
13379      ;;
13380
13381    sysv4*MP*)
13382      if test -d /usr/nec ;then
13383	lt_prog_compiler_pic_F77='-Kconform_pic'
13384	lt_prog_compiler_static_F77='-Bstatic'
13385      fi
13386      ;;
13387
13388    uts4*)
13389      lt_prog_compiler_pic_F77='-pic'
13390      lt_prog_compiler_static_F77='-Bstatic'
13391      ;;
13392
13393    *)
13394      lt_prog_compiler_can_build_shared_F77=no
13395      ;;
13396    esac
13397  fi
13398
13399echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13400echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13401
13402#
13403# Check to make sure the PIC flag actually works.
13404#
13405if test -n "$lt_prog_compiler_pic_F77"; then
13406
13407echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13408echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13409if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13410  echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412  lt_prog_compiler_pic_works_F77=no
13413  ac_outfile=conftest.$ac_objext
13414   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13415   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13416   # Insert the option either (1) after the last *FLAGS variable, or
13417   # (2) before a word containing "conftest.", or (3) at the end.
13418   # Note that $ac_compile itself does not contain backslashes and begins
13419   # with a dollar sign (not a hyphen), so the echo should work correctly.
13420   # The option is referenced via a variable to avoid confusing sed.
13421   lt_compile=`echo "$ac_compile" | $SED \
13422   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13424   -e 's:$: $lt_compiler_flag:'`
13425   (eval echo "\"\$as_me:13425: $lt_compile\"" >&5)
13426   (eval "$lt_compile" 2>conftest.err)
13427   ac_status=$?
13428   cat conftest.err >&5
13429   echo "$as_me:13429: \$? = $ac_status" >&5
13430   if (exit $ac_status) && test -s "$ac_outfile"; then
13431     # The compiler can only warn and ignore the option if not recognized
13432     # So say no if there are warnings
13433     if test ! -s conftest.err; then
13434       lt_prog_compiler_pic_works_F77=yes
13435     fi
13436   fi
13437   $rm conftest*
13438
13439fi
13440echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13441echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13442
13443if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13444    case $lt_prog_compiler_pic_F77 in
13445     "" | " "*) ;;
13446     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13447     esac
13448else
13449    lt_prog_compiler_pic_F77=
13450     lt_prog_compiler_can_build_shared_F77=no
13451fi
13452
13453fi
13454case "$host_os" in
13455  # For platforms which do not support PIC, -DPIC is meaningless:
13456  *djgpp*)
13457    lt_prog_compiler_pic_F77=
13458    ;;
13459  *)
13460    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13461    ;;
13462esac
13463
13464echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13465echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13466if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13467  echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
13469  lt_cv_prog_compiler_c_o_F77=no
13470   $rm -r conftest 2>/dev/null
13471   mkdir conftest
13472   cd conftest
13473   mkdir out
13474   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475
13476   lt_compiler_flag="-o out/conftest2.$ac_objext"
13477   # Insert the option either (1) after the last *FLAGS variable, or
13478   # (2) before a word containing "conftest.", or (3) at the end.
13479   # Note that $ac_compile itself does not contain backslashes and begins
13480   # with a dollar sign (not a hyphen), so the echo should work correctly.
13481   lt_compile=`echo "$ac_compile" | $SED \
13482   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484   -e 's:$: $lt_compiler_flag:'`
13485   (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486   (eval "$lt_compile" 2>out/conftest.err)
13487   ac_status=$?
13488   cat out/conftest.err >&5
13489   echo "$as_me:13489: \$? = $ac_status" >&5
13490   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13491   then
13492     # The compiler can only warn and ignore the option if not recognized
13493     # So say no if there are warnings
13494     if test ! -s out/conftest.err; then
13495       lt_cv_prog_compiler_c_o_F77=yes
13496     fi
13497   fi
13498   chmod u+w .
13499   $rm conftest*
13500   # SGI C++ compiler will create directory out/ii_files/ for
13501   # template instantiation
13502   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13503   $rm out/* && rmdir out
13504   cd ..
13505   rmdir conftest
13506   $rm conftest*
13507
13508fi
13509echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13510echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13511
13512
13513hard_links="nottested"
13514if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13515  # do not overwrite the value of need_locks provided by the user
13516  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13517echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13518  hard_links=yes
13519  $rm conftest*
13520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13521  touch conftest.a
13522  ln conftest.a conftest.b 2>&5 || hard_links=no
13523  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13524  echo "$as_me:$LINENO: result: $hard_links" >&5
13525echo "${ECHO_T}$hard_links" >&6
13526  if test "$hard_links" = no; then
13527    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13528echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13529    need_locks=warn
13530  fi
13531else
13532  need_locks=no
13533fi
13534
13535echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13536echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13537
13538  runpath_var=
13539  allow_undefined_flag_F77=
13540  enable_shared_with_static_runtimes_F77=no
13541  archive_cmds_F77=
13542  archive_expsym_cmds_F77=
13543  old_archive_From_new_cmds_F77=
13544  old_archive_from_expsyms_cmds_F77=
13545  export_dynamic_flag_spec_F77=
13546  whole_archive_flag_spec_F77=
13547  thread_safe_flag_spec_F77=
13548  hardcode_libdir_flag_spec_F77=
13549  hardcode_libdir_flag_spec_ld_F77=
13550  hardcode_libdir_separator_F77=
13551  hardcode_direct_F77=no
13552  hardcode_minus_L_F77=no
13553  hardcode_shlibpath_var_F77=unsupported
13554  link_all_deplibs_F77=unknown
13555  hardcode_automatic_F77=no
13556  module_cmds_F77=
13557  module_expsym_cmds_F77=
13558  always_export_symbols_F77=no
13559  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560  # include_expsyms should be a list of space-separated symbols to be *always*
13561  # included in the symbol list
13562  include_expsyms_F77=
13563  # exclude_expsyms can be an extended regexp of symbols to exclude
13564  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13565  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13566  # as well as any symbol that contains `d'.
13567  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13568  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13569  # platforms (ab)use it in PIC code, but their linkers get confused if
13570  # the symbol is explicitly referenced.  Since portable code cannot
13571  # rely on this symbol name, it's probably fine to never include it in
13572  # preloaded symbol tables.
13573  extract_expsyms_cmds=
13574
13575  case $host_os in
13576  cygwin* | mingw* | pw32*)
13577    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13578    # When not using gcc, we currently assume that we are using
13579    # Microsoft Visual C++.
13580    if test "$GCC" != yes; then
13581      with_gnu_ld=no
13582    fi
13583    ;;
13584  openbsd*)
13585    with_gnu_ld=no
13586    ;;
13587  esac
13588
13589  ld_shlibs_F77=yes
13590  if test "$with_gnu_ld" = yes; then
13591    # If archive_cmds runs LD, not CC, wlarc should be empty
13592    wlarc='${wl}'
13593
13594    # See if GNU ld supports shared libraries.
13595    case $host_os in
13596    aix3* | aix4* | aix5*)
13597      # On AIX/PPC, the GNU linker is very broken
13598      if test "$host_cpu" != ia64; then
13599	ld_shlibs_F77=no
13600	cat <<EOF 1>&2
13601
13602*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13603*** to be unable to reliably create shared libraries on AIX.
13604*** Therefore, libtool is disabling shared libraries support.  If you
13605*** really care for shared libraries, you may want to modify your PATH
13606*** so that a non-GNU linker is found, and then restart.
13607
13608EOF
13609      fi
13610      ;;
13611
13612    amigaos*)
13613      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)'
13614      hardcode_libdir_flag_spec_F77='-L$libdir'
13615      hardcode_minus_L_F77=yes
13616
13617      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13618      # that the semantics of dynamic libraries on AmigaOS, at least up
13619      # to version 4, is to share data among multiple programs linked
13620      # with the same dynamic library.  Since this doesn't match the
13621      # behavior of shared libraries on other platforms, we can't use
13622      # them.
13623      ld_shlibs_F77=no
13624      ;;
13625
13626    beos*)
13627      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13628	allow_undefined_flag_F77=unsupported
13629	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13630	# support --undefined.  This deserves some investigation.  FIXME
13631	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632      else
13633	ld_shlibs_F77=no
13634      fi
13635      ;;
13636
13637    cygwin* | mingw* | pw32*)
13638      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13639      # as there is no search path for DLLs.
13640      hardcode_libdir_flag_spec_F77='-L$libdir'
13641      allow_undefined_flag_F77=unsupported
13642      always_export_symbols_F77=no
13643      enable_shared_with_static_runtimes_F77=yes
13644      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13645
13646      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13647        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13648	# If the export-symbols file already is a .def file (1st line
13649	# is EXPORTS), use it as is; otherwise, prepend...
13650	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13651	  cp $export_symbols $output_objdir/$soname.def;
13652	else
13653	  echo EXPORTS > $output_objdir/$soname.def;
13654	  cat $export_symbols >> $output_objdir/$soname.def;
13655	fi~
13656	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13657      else
13658	ld_shlibs=no
13659      fi
13660      ;;
13661
13662    netbsd*)
13663      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13664	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13665	wlarc=
13666      else
13667	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13669      fi
13670      ;;
13671
13672    solaris* | sysv5*)
13673      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13674	ld_shlibs_F77=no
13675	cat <<EOF 1>&2
13676
13677*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13678*** create shared libraries on Solaris systems.  Therefore, libtool
13679*** is disabling shared libraries support.  We urge you to upgrade GNU
13680*** binutils to release 2.9.1 or newer.  Another option is to modify
13681*** your PATH or compiler configuration so that the native linker is
13682*** used, and then restart.
13683
13684EOF
13685      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13686	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13688      else
13689	ld_shlibs_F77=no
13690      fi
13691      ;;
13692
13693    sunos4*)
13694      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695      wlarc=
13696      hardcode_direct_F77=yes
13697      hardcode_shlibpath_var_F77=no
13698      ;;
13699
13700  linux*)
13701    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13702        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703	archive_cmds_F77="$tmp_archive_cmds"
13704      supports_anon_versioning=no
13705      case `$LD -v 2>/dev/null` in
13706        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13707        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13708        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13709        *\ 2.11.*) ;; # other 2.11 versions
13710        *) supports_anon_versioning=yes ;;
13711      esac
13712      if test $supports_anon_versioning = yes; then
13713        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13714cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13715$echo "local: *; };" >> $output_objdir/$libname.ver~
13716        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13717      else
13718        archive_expsym_cmds_F77="$tmp_archive_cmds"
13719      fi
13720    else
13721      ld_shlibs_F77=no
13722    fi
13723    ;;
13724
13725    *)
13726      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13727	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13728	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13729      else
13730	ld_shlibs_F77=no
13731      fi
13732      ;;
13733    esac
13734
13735    if test "$ld_shlibs_F77" = yes; then
13736      runpath_var=LD_RUN_PATH
13737      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13738      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13739      # ancient GNU ld didn't support --whole-archive et. al.
13740      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13741 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13742      else
13743  	whole_archive_flag_spec_F77=
13744      fi
13745    fi
13746  else
13747    # PORTME fill in a description of your system's linker (not GNU ld)
13748    case $host_os in
13749    aix3*)
13750      allow_undefined_flag_F77=unsupported
13751      always_export_symbols_F77=yes
13752      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'
13753      # Note: this linker hardcodes the directories in LIBPATH if there
13754      # are no directories specified by -L.
13755      hardcode_minus_L_F77=yes
13756      if test "$GCC" = yes && test -z "$link_static_flag"; then
13757	# Neither direct hardcoding nor static linking is supported with a
13758	# broken collect2.
13759	hardcode_direct_F77=unsupported
13760      fi
13761      ;;
13762
13763    aix4* | aix5*)
13764      if test "$host_cpu" = ia64; then
13765	# On IA64, the linker does run time linking by default, so we don't
13766	# have to do anything special.
13767	aix_use_runtimelinking=no
13768	exp_sym_flag='-Bexport'
13769	no_entry_flag=""
13770      else
13771	# If we're using GNU nm, then we don't want the "-C" option.
13772	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13773	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13774	  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'
13775	else
13776	  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'
13777	fi
13778	aix_use_runtimelinking=no
13779
13780	# Test if we are trying to use run time linking or normal
13781	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13782	# need to do runtime linking.
13783	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13784	  for ld_flag in $LDFLAGS; do
13785  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13786  	    aix_use_runtimelinking=yes
13787  	    break
13788  	  fi
13789	  done
13790	esac
13791
13792	exp_sym_flag='-bexport'
13793	no_entry_flag='-bnoentry'
13794      fi
13795
13796      # When large executables or shared objects are built, AIX ld can
13797      # have problems creating the table of contents.  If linking a library
13798      # or program results in "error TOC overflow" add -mminimal-toc to
13799      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13800      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13801
13802      archive_cmds_F77=''
13803      hardcode_direct_F77=yes
13804      hardcode_libdir_separator_F77=':'
13805      link_all_deplibs_F77=yes
13806
13807      if test "$GCC" = yes; then
13808	case $host_os in aix4.012|aix4.012.*)
13809	# We only want to do this on AIX 4.2 and lower, the check
13810	# below for broken collect2 doesn't work under 4.3+
13811	  collect2name=`${CC} -print-prog-name=collect2`
13812	  if test -f "$collect2name" && \
13813  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13814	  then
13815  	  # We have reworked collect2
13816  	  hardcode_direct_F77=yes
13817	  else
13818  	  # We have old collect2
13819  	  hardcode_direct_F77=unsupported
13820  	  # It fails to find uninstalled libraries when the uninstalled
13821  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13822  	  # to unsupported forces relinking
13823  	  hardcode_minus_L_F77=yes
13824  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13825  	  hardcode_libdir_separator_F77=
13826	  fi
13827	esac
13828	shared_flag='-shared'
13829      else
13830	# not using gcc
13831	if test "$host_cpu" = ia64; then
13832  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13833  	# chokes on -Wl,-G. The following line is correct:
13834	  shared_flag='-G'
13835	else
13836  	if test "$aix_use_runtimelinking" = yes; then
13837	    shared_flag='${wl}-G'
13838	  else
13839	    shared_flag='${wl}-bM:SRE'
13840  	fi
13841	fi
13842      fi
13843
13844      # It seems that -bexpall does not export symbols beginning with
13845      # underscore (_), so it is better to generate a list of symbols to export.
13846      always_export_symbols_F77=yes
13847      if test "$aix_use_runtimelinking" = yes; then
13848	# Warning - without using the other runtime loading flags (-brtl),
13849	# -berok will link without error, but may produce a broken library.
13850	allow_undefined_flag_F77='-berok'
13851       # Determine the default libpath from the value encoded in an empty executable.
13852       cat >conftest.$ac_ext <<_ACEOF
13853      program main
13854
13855      end
13856_ACEOF
13857rm -f conftest.$ac_objext conftest$ac_exeext
13858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859  (eval $ac_link) 2>conftest.er1
13860  ac_status=$?
13861  grep -v '^ *+' conftest.er1 >conftest.err
13862  rm -f conftest.er1
13863  cat conftest.err >&5
13864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865  (exit $ac_status); } &&
13866	 { ac_try='test -z "$ac_f77_werror_flag"
13867			 || test ! -s conftest.err'
13868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869  (eval $ac_try) 2>&5
13870  ac_status=$?
13871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872  (exit $ac_status); }; } &&
13873	 { ac_try='test -s conftest$ac_exeext'
13874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875  (eval $ac_try) 2>&5
13876  ac_status=$?
13877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878  (exit $ac_status); }; }; then
13879
13880aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13881}'`
13882# Check for a 64-bit object if we didn't find anything.
13883if 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; }
13884}'`; fi
13885else
13886  echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889fi
13890rm -f conftest.err conftest.$ac_objext \
13891      conftest$ac_exeext conftest.$ac_ext
13892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13893
13894       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13895	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"
13896       else
13897	if test "$host_cpu" = ia64; then
13898	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13899	  allow_undefined_flag_F77="-z nodefs"
13900	  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"
13901	else
13902	 # Determine the default libpath from the value encoded in an empty executable.
13903	 cat >conftest.$ac_ext <<_ACEOF
13904      program main
13905
13906      end
13907_ACEOF
13908rm -f conftest.$ac_objext conftest$ac_exeext
13909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910  (eval $ac_link) 2>conftest.er1
13911  ac_status=$?
13912  grep -v '^ *+' conftest.er1 >conftest.err
13913  rm -f conftest.er1
13914  cat conftest.err >&5
13915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916  (exit $ac_status); } &&
13917	 { ac_try='test -z "$ac_f77_werror_flag"
13918			 || test ! -s conftest.err'
13919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920  (eval $ac_try) 2>&5
13921  ac_status=$?
13922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923  (exit $ac_status); }; } &&
13924	 { ac_try='test -s conftest$ac_exeext'
13925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926  (eval $ac_try) 2>&5
13927  ac_status=$?
13928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929  (exit $ac_status); }; }; then
13930
13931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13932}'`
13933# Check for a 64-bit object if we didn't find anything.
13934if 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; }
13935}'`; fi
13936else
13937  echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940fi
13941rm -f conftest.err conftest.$ac_objext \
13942      conftest$ac_exeext conftest.$ac_ext
13943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13944
13945	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13946	  # Warning - without using the other run time loading flags,
13947	  # -berok will link without error, but may produce a broken library.
13948	  no_undefined_flag_F77=' ${wl}-bernotok'
13949	  allow_undefined_flag_F77=' ${wl}-berok'
13950	  # -bexpall does not export symbols beginning with underscore (_)
13951	  always_export_symbols_F77=yes
13952	  # Exported symbols can be pulled into shared objects from archives
13953	  whole_archive_flag_spec_F77=' '
13954	  archive_cmds_need_lc_F77=yes
13955	  # This is similar to how AIX traditionally builds it's shared libraries.
13956	  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'
13957	fi
13958      fi
13959      ;;
13960
13961    amigaos*)
13962      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)'
13963      hardcode_libdir_flag_spec_F77='-L$libdir'
13964      hardcode_minus_L_F77=yes
13965      # see comment about different semantics on the GNU ld section
13966      ld_shlibs_F77=no
13967      ;;
13968
13969    bsdi[45]*)
13970      export_dynamic_flag_spec_F77=-rdynamic
13971      ;;
13972
13973    cygwin* | mingw* | pw32*)
13974      # When not using gcc, we currently assume that we are using
13975      # Microsoft Visual C++.
13976      # hardcode_libdir_flag_spec is actually meaningless, as there is
13977      # no search path for DLLs.
13978      hardcode_libdir_flag_spec_F77=' '
13979      allow_undefined_flag_F77=unsupported
13980      # Tell ltmain to make .lib files, not .a files.
13981      libext=lib
13982      # Tell ltmain to make .dll files, not .so files.
13983      shrext_cmds=".dll"
13984      # FIXME: Setting linknames here is a bad hack.
13985      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13986      # The linker will automatically build a .lib file if we build a DLL.
13987      old_archive_From_new_cmds_F77='true'
13988      # FIXME: Should let the user specify the lib program.
13989      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13990      fix_srcfile_path='`cygpath -w "$srcfile"`'
13991      enable_shared_with_static_runtimes_F77=yes
13992      ;;
13993
13994    darwin* | rhapsody*)
13995      case "$host_os" in
13996        rhapsody* | darwin1.[012])
13997         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13998         ;;
13999       *) # Darwin 1.3 on
14000         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14001           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14002         else
14003           case ${MACOSX_DEPLOYMENT_TARGET} in
14004             10.[012])
14005               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14006               ;;
14007             10.*)
14008               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14009               ;;
14010           esac
14011         fi
14012         ;;
14013      esac
14014      archive_cmds_need_lc_F77=no
14015      hardcode_direct_F77=no
14016      hardcode_automatic_F77=yes
14017      hardcode_shlibpath_var_F77=unsupported
14018      whole_archive_flag_spec_F77=''
14019      link_all_deplibs_F77=yes
14020    if test "$GCC" = yes ; then
14021    	output_verbose_link_cmd='echo'
14022        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14023      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14024      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14025      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}'
14026      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}'
14027    else
14028      case "$cc_basename" in
14029        xlc*)
14030         output_verbose_link_cmd='echo'
14031         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14032         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14033          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14034         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}'
14035          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}'
14036          ;;
14037       *)
14038         ld_shlibs_F77=no
14039          ;;
14040      esac
14041    fi
14042      ;;
14043
14044    dgux*)
14045      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14046      hardcode_libdir_flag_spec_F77='-L$libdir'
14047      hardcode_shlibpath_var_F77=no
14048      ;;
14049
14050    freebsd1*)
14051      ld_shlibs_F77=no
14052      ;;
14053
14054    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14055    # support.  Future versions do this automatically, but an explicit c++rt0.o
14056    # does not break anything, and helps significantly (at the cost of a little
14057    # extra space).
14058    freebsd2.2*)
14059      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14060      hardcode_libdir_flag_spec_F77='-R$libdir'
14061      hardcode_direct_F77=yes
14062      hardcode_shlibpath_var_F77=no
14063      ;;
14064
14065    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14066    freebsd2*)
14067      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14068      hardcode_direct_F77=yes
14069      hardcode_minus_L_F77=yes
14070      hardcode_shlibpath_var_F77=no
14071      ;;
14072
14073    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14074    freebsd* | kfreebsd*-gnu)
14075      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14076      hardcode_libdir_flag_spec_F77='-R$libdir'
14077      hardcode_direct_F77=yes
14078      hardcode_shlibpath_var_F77=no
14079      ;;
14080
14081    hpux9*)
14082      if test "$GCC" = yes; then
14083	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'
14084      else
14085	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'
14086      fi
14087      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14088      hardcode_libdir_separator_F77=:
14089      hardcode_direct_F77=yes
14090
14091      # hardcode_minus_L: Not really in the search PATH,
14092      # but as the default location of the library.
14093      hardcode_minus_L_F77=yes
14094      export_dynamic_flag_spec_F77='${wl}-E'
14095      ;;
14096
14097    hpux10* | hpux11*)
14098      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14099	case "$host_cpu" in
14100	hppa*64*|ia64*)
14101	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14102	  ;;
14103	*)
14104	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14105	  ;;
14106	esac
14107      else
14108	case "$host_cpu" in
14109	hppa*64*|ia64*)
14110	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14111	  ;;
14112	*)
14113	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14114	  ;;
14115	esac
14116      fi
14117      if test "$with_gnu_ld" = no; then
14118	case "$host_cpu" in
14119	hppa*64*)
14120	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14121	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14122	  hardcode_libdir_separator_F77=:
14123	  hardcode_direct_F77=no
14124	  hardcode_shlibpath_var_F77=no
14125	  ;;
14126	ia64*)
14127	  hardcode_libdir_flag_spec_F77='-L$libdir'
14128	  hardcode_direct_F77=no
14129	  hardcode_shlibpath_var_F77=no
14130
14131	  # hardcode_minus_L: Not really in the search PATH,
14132	  # but as the default location of the library.
14133	  hardcode_minus_L_F77=yes
14134	  ;;
14135	*)
14136	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14137	  hardcode_libdir_separator_F77=:
14138	  hardcode_direct_F77=yes
14139	  export_dynamic_flag_spec_F77='${wl}-E'
14140
14141	  # hardcode_minus_L: Not really in the search PATH,
14142	  # but as the default location of the library.
14143	  hardcode_minus_L_F77=yes
14144	  ;;
14145	esac
14146      fi
14147      ;;
14148
14149    irix5* | irix6* | nonstopux*)
14150      if test "$GCC" = yes; then
14151	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'
14152      else
14153	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'
14154	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14155      fi
14156      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14157      hardcode_libdir_separator_F77=:
14158      link_all_deplibs_F77=yes
14159      ;;
14160
14161    netbsd*)
14162      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14163	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14164      else
14165	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14166      fi
14167      hardcode_libdir_flag_spec_F77='-R$libdir'
14168      hardcode_direct_F77=yes
14169      hardcode_shlibpath_var_F77=no
14170      ;;
14171
14172    newsos6)
14173      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14174      hardcode_direct_F77=yes
14175      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14176      hardcode_libdir_separator_F77=:
14177      hardcode_shlibpath_var_F77=no
14178      ;;
14179
14180    openbsd*)
14181      hardcode_direct_F77=yes
14182      hardcode_shlibpath_var_F77=no
14183      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14184	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14185	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14186	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14187	export_dynamic_flag_spec_F77='${wl}-E'
14188      else
14189       case $host_os in
14190	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14191	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14192	   hardcode_libdir_flag_spec_F77='-R$libdir'
14193	   ;;
14194	 *)
14195	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14196	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14197	   ;;
14198       esac
14199      fi
14200      ;;
14201
14202    os2*)
14203      hardcode_libdir_flag_spec_F77='-L$libdir'
14204      hardcode_minus_L_F77=yes
14205      allow_undefined_flag_F77=unsupported
14206      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'
14207      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14208      ;;
14209
14210    osf3*)
14211      if test "$GCC" = yes; then
14212	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14213	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'
14214      else
14215	allow_undefined_flag_F77=' -expect_unresolved \*'
14216	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'
14217      fi
14218      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14219      hardcode_libdir_separator_F77=:
14220      ;;
14221
14222    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14223      if test "$GCC" = yes; then
14224	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14225	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'
14226	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14227      else
14228	allow_undefined_flag_F77=' -expect_unresolved \*'
14229	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'
14230	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~
14231	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14232
14233	# Both c and cxx compiler support -rpath directly
14234	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14235      fi
14236      hardcode_libdir_separator_F77=:
14237      ;;
14238
14239    sco3.2v5*)
14240      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241      hardcode_shlibpath_var_F77=no
14242      export_dynamic_flag_spec_F77='${wl}-Bexport'
14243      runpath_var=LD_RUN_PATH
14244      hardcode_runpath_var=yes
14245      ;;
14246
14247    solaris*)
14248      no_undefined_flag_F77=' -z text'
14249      if test "$GCC" = yes; then
14250	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14251	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14252	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14253      else
14254	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14256  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14257      fi
14258      hardcode_libdir_flag_spec_F77='-R$libdir'
14259      hardcode_shlibpath_var_F77=no
14260      case $host_os in
14261      solaris2.[0-5] | solaris2.[0-5].*) ;;
14262      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14263	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14264      esac
14265      link_all_deplibs_F77=yes
14266      ;;
14267
14268    sunos4*)
14269      if test "x$host_vendor" = xsequent; then
14270	# Use $CC to link under sequent, because it throws in some extra .o
14271	# files that make .init and .fini sections work.
14272	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14273      else
14274	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14275      fi
14276      hardcode_libdir_flag_spec_F77='-L$libdir'
14277      hardcode_direct_F77=yes
14278      hardcode_minus_L_F77=yes
14279      hardcode_shlibpath_var_F77=no
14280      ;;
14281
14282    sysv4)
14283      case $host_vendor in
14284	sni)
14285	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286	  hardcode_direct_F77=yes # is this really true???
14287	;;
14288	siemens)
14289	  ## LD is ld it makes a PLAMLIB
14290	  ## CC just makes a GrossModule.
14291	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14293	  hardcode_direct_F77=no
14294        ;;
14295	motorola)
14296	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14298	;;
14299      esac
14300      runpath_var='LD_RUN_PATH'
14301      hardcode_shlibpath_var_F77=no
14302      ;;
14303
14304    sysv4.3*)
14305      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14306      hardcode_shlibpath_var_F77=no
14307      export_dynamic_flag_spec_F77='-Bexport'
14308      ;;
14309
14310    sysv4*MP*)
14311      if test -d /usr/nec; then
14312	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313	hardcode_shlibpath_var_F77=no
14314	runpath_var=LD_RUN_PATH
14315	hardcode_runpath_var=yes
14316	ld_shlibs_F77=yes
14317      fi
14318      ;;
14319
14320    sysv4.2uw2*)
14321      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14322      hardcode_direct_F77=yes
14323      hardcode_minus_L_F77=no
14324      hardcode_shlibpath_var_F77=no
14325      hardcode_runpath_var=yes
14326      runpath_var=LD_RUN_PATH
14327      ;;
14328
14329   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14330      no_undefined_flag_F77='${wl}-z ${wl}text'
14331      if test "$GCC" = yes; then
14332	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333      else
14334	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335      fi
14336      runpath_var='LD_RUN_PATH'
14337      hardcode_shlibpath_var_F77=no
14338      ;;
14339
14340    sysv5*)
14341      no_undefined_flag_F77=' -z text'
14342      # $CC -shared without GNU ld will not create a library from C++
14343      # object files and a static libstdc++, better avoid it by now
14344      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14346  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14347      hardcode_libdir_flag_spec_F77=
14348      hardcode_shlibpath_var_F77=no
14349      runpath_var='LD_RUN_PATH'
14350      ;;
14351
14352    uts4*)
14353      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354      hardcode_libdir_flag_spec_F77='-L$libdir'
14355      hardcode_shlibpath_var_F77=no
14356      ;;
14357
14358    *)
14359      ld_shlibs_F77=no
14360      ;;
14361    esac
14362  fi
14363
14364echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14365echo "${ECHO_T}$ld_shlibs_F77" >&6
14366test "$ld_shlibs_F77" = no && can_build_shared=no
14367
14368variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14369if test "$GCC" = yes; then
14370  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14371fi
14372
14373#
14374# Do we need to explicitly link libc?
14375#
14376case "x$archive_cmds_need_lc_F77" in
14377x|xyes)
14378  # Assume -lc should be added
14379  archive_cmds_need_lc_F77=yes
14380
14381  if test "$enable_shared" = yes && test "$GCC" = yes; then
14382    case $archive_cmds_F77 in
14383    *'~'*)
14384      # FIXME: we may have to deal with multi-command sequences.
14385      ;;
14386    '$CC '*)
14387      # Test whether the compiler implicitly links with -lc since on some
14388      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14389      # to ld, don't add -lc before -lgcc.
14390      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14391echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14392      $rm conftest*
14393      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14394
14395      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14396  (eval $ac_compile) 2>&5
14397  ac_status=$?
14398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399  (exit $ac_status); } 2>conftest.err; then
14400        soname=conftest
14401        lib=conftest
14402        libobjs=conftest.$ac_objext
14403        deplibs=
14404        wl=$lt_prog_compiler_wl_F77
14405        compiler_flags=-v
14406        linker_flags=-v
14407        verstring=
14408        output_objdir=.
14409        libname=conftest
14410        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14411        allow_undefined_flag_F77=
14412        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14413  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14414  ac_status=$?
14415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416  (exit $ac_status); }
14417        then
14418	  archive_cmds_need_lc_F77=no
14419        else
14420	  archive_cmds_need_lc_F77=yes
14421        fi
14422        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14423      else
14424        cat conftest.err 1>&5
14425      fi
14426      $rm conftest*
14427      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14428echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14429      ;;
14430    esac
14431  fi
14432  ;;
14433esac
14434
14435echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14436echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14437library_names_spec=
14438libname_spec='lib$name'
14439soname_spec=
14440shrext_cmds=".so"
14441postinstall_cmds=
14442postuninstall_cmds=
14443finish_cmds=
14444finish_eval=
14445shlibpath_var=
14446shlibpath_overrides_runpath=unknown
14447version_type=none
14448dynamic_linker="$host_os ld.so"
14449sys_lib_dlsearch_path_spec="/lib /usr/lib"
14450if test "$GCC" = yes; then
14451  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14452  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14453    # if the path contains ";" then we assume it to be the separator
14454    # otherwise default to the standard path separator (i.e. ":") - it is
14455    # assumed that no part of a normal pathname contains ";" but that should
14456    # okay in the real world where ";" in dirpaths is itself problematic.
14457    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14458  else
14459    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14460  fi
14461else
14462  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14463fi
14464need_lib_prefix=unknown
14465hardcode_into_libs=no
14466
14467# when you set need_version to no, make sure it does not cause -set_version
14468# flags to be left without arguments
14469need_version=unknown
14470
14471case $host_os in
14472aix3*)
14473  version_type=linux
14474  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14475  shlibpath_var=LIBPATH
14476
14477  # AIX 3 has no versioning support, so we append a major version to the name.
14478  soname_spec='${libname}${release}${shared_ext}$major'
14479  ;;
14480
14481aix4* | aix5*)
14482  version_type=linux
14483  need_lib_prefix=no
14484  need_version=no
14485  hardcode_into_libs=yes
14486  if test "$host_cpu" = ia64; then
14487    # AIX 5 supports IA64
14488    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14489    shlibpath_var=LD_LIBRARY_PATH
14490  else
14491    # With GCC up to 2.95.x, collect2 would create an import file
14492    # for dependence libraries.  The import file would start with
14493    # the line `#! .'.  This would cause the generated library to
14494    # depend on `.', always an invalid library.  This was fixed in
14495    # development snapshots of GCC prior to 3.0.
14496    case $host_os in
14497      aix4 | aix4.[01] | aix4.[01].*)
14498      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14499	   echo ' yes '
14500	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501	:
14502      else
14503	can_build_shared=no
14504      fi
14505      ;;
14506    esac
14507    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14508    # soname into executable. Probably we can add versioning support to
14509    # collect2, so additional links can be useful in future.
14510    if test "$aix_use_runtimelinking" = yes; then
14511      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14512      # instead of lib<name>.a to let people know that these are not
14513      # typical AIX shared libraries.
14514      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515    else
14516      # We preserve .a as extension for shared libraries through AIX4.2
14517      # and later when we are not doing run time linking.
14518      library_names_spec='${libname}${release}.a $libname.a'
14519      soname_spec='${libname}${release}${shared_ext}$major'
14520    fi
14521    shlibpath_var=LIBPATH
14522  fi
14523  ;;
14524
14525amigaos*)
14526  library_names_spec='$libname.ixlibrary $libname.a'
14527  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14528  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'
14529  ;;
14530
14531beos*)
14532  library_names_spec='${libname}${shared_ext}'
14533  dynamic_linker="$host_os ld.so"
14534  shlibpath_var=LIBRARY_PATH
14535  ;;
14536
14537bsdi[45]*)
14538  version_type=linux
14539  need_version=no
14540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541  soname_spec='${libname}${release}${shared_ext}$major'
14542  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14543  shlibpath_var=LD_LIBRARY_PATH
14544  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14545  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14546  # the default ld.so.conf also contains /usr/contrib/lib and
14547  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14548  # libtool to hard-code these into programs
14549  ;;
14550
14551cygwin* | mingw* | pw32*)
14552  version_type=windows
14553  shrext_cmds=".dll"
14554  need_version=no
14555  need_lib_prefix=no
14556
14557  case $GCC,$host_os in
14558  yes,cygwin* | yes,mingw* | yes,pw32*)
14559    library_names_spec='$libname.dll.a'
14560    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14561    postinstall_cmds='base_file=`basename \${file}`~
14562      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14563      dldir=$destdir/`dirname \$dlpath`~
14564      test -d \$dldir || mkdir -p \$dldir~
14565      $install_prog $dir/$dlname \$dldir/$dlname'
14566    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14567      dlpath=$dir/\$dldll~
14568       $rm \$dlpath'
14569    shlibpath_overrides_runpath=yes
14570
14571    case $host_os in
14572    cygwin*)
14573      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14574      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14576      ;;
14577    mingw*)
14578      # MinGW DLLs use traditional 'lib' prefix
14579      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14581      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14582        # It is most probably a Windows format PATH printed by
14583        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14584        # path with ; separators, and with drive letters. We can handle the
14585        # drive letters (cygwin fileutils understands them), so leave them,
14586        # especially as we might pass files found there to a mingw objdump,
14587        # which wouldn't understand a cygwinified path. Ahh.
14588        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14589      else
14590        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14591      fi
14592      ;;
14593    pw32*)
14594      # pw32 DLLs use 'pw' prefix rather than 'lib'
14595      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14596      ;;
14597    esac
14598    ;;
14599
14600  *)
14601    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14602    ;;
14603  esac
14604  dynamic_linker='Win32 ld.exe'
14605  # FIXME: first we should search . and the directory the executable is in
14606  shlibpath_var=PATH
14607  ;;
14608
14609darwin* | rhapsody*)
14610  dynamic_linker="$host_os dyld"
14611  version_type=darwin
14612  need_lib_prefix=no
14613  need_version=no
14614  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14615  soname_spec='${libname}${release}${major}$shared_ext'
14616  shlibpath_overrides_runpath=yes
14617  shlibpath_var=DYLD_LIBRARY_PATH
14618  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14619  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14620  if test "$GCC" = yes; then
14621    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"`
14622  else
14623    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14624  fi
14625  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14626  ;;
14627
14628dgux*)
14629  version_type=linux
14630  need_lib_prefix=no
14631  need_version=no
14632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14633  soname_spec='${libname}${release}${shared_ext}$major'
14634  shlibpath_var=LD_LIBRARY_PATH
14635  ;;
14636
14637freebsd1*)
14638  dynamic_linker=no
14639  ;;
14640
14641kfreebsd*-gnu)
14642  version_type=linux
14643  need_lib_prefix=no
14644  need_version=no
14645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14646  soname_spec='${libname}${release}${shared_ext}$major'
14647  shlibpath_var=LD_LIBRARY_PATH
14648  shlibpath_overrides_runpath=no
14649  hardcode_into_libs=yes
14650  dynamic_linker='GNU ld.so'
14651  ;;
14652
14653freebsd*)
14654  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14655  version_type=freebsd-$objformat
14656  case $version_type in
14657    freebsd-elf*)
14658      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14659      need_version=no
14660      need_lib_prefix=no
14661      ;;
14662    freebsd-*)
14663      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14664      need_version=yes
14665      ;;
14666  esac
14667  shlibpath_var=LD_LIBRARY_PATH
14668  case $host_os in
14669  freebsd2*)
14670    shlibpath_overrides_runpath=yes
14671    ;;
14672  freebsd3.01* | freebsdelf3.01*)
14673    shlibpath_overrides_runpath=yes
14674    hardcode_into_libs=yes
14675    ;;
14676  *) # from 3.2 on
14677    shlibpath_overrides_runpath=no
14678    hardcode_into_libs=yes
14679    ;;
14680  esac
14681  ;;
14682
14683gnu*)
14684  version_type=linux
14685  need_lib_prefix=no
14686  need_version=no
14687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14688  soname_spec='${libname}${release}${shared_ext}$major'
14689  shlibpath_var=LD_LIBRARY_PATH
14690  hardcode_into_libs=yes
14691  ;;
14692
14693hpux9* | hpux10* | hpux11*)
14694  # Give a soname corresponding to the major version so that dld.sl refuses to
14695  # link against other versions.
14696  version_type=sunos
14697  need_lib_prefix=no
14698  need_version=no
14699  case "$host_cpu" in
14700  ia64*)
14701    shrext_cmds='.so'
14702    hardcode_into_libs=yes
14703    dynamic_linker="$host_os dld.so"
14704    shlibpath_var=LD_LIBRARY_PATH
14705    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707    soname_spec='${libname}${release}${shared_ext}$major'
14708    if test "X$HPUX_IA64_MODE" = X32; then
14709      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14710    else
14711      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14712    fi
14713    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14714    ;;
14715   hppa*64*)
14716     shrext_cmds='.sl'
14717     hardcode_into_libs=yes
14718     dynamic_linker="$host_os dld.sl"
14719     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14720     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722     soname_spec='${libname}${release}${shared_ext}$major'
14723     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14725     ;;
14726   *)
14727    shrext_cmds='.sl'
14728    dynamic_linker="$host_os dld.sl"
14729    shlibpath_var=SHLIB_PATH
14730    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14731    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732    soname_spec='${libname}${release}${shared_ext}$major'
14733    ;;
14734  esac
14735  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14736  postinstall_cmds='chmod 555 $lib'
14737  ;;
14738
14739irix5* | irix6* | nonstopux*)
14740  case $host_os in
14741    nonstopux*) version_type=nonstopux ;;
14742    *)
14743	if test "$lt_cv_prog_gnu_ld" = yes; then
14744		version_type=linux
14745	else
14746		version_type=irix
14747	fi ;;
14748  esac
14749  need_lib_prefix=no
14750  need_version=no
14751  soname_spec='${libname}${release}${shared_ext}$major'
14752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14753  case $host_os in
14754  irix5* | nonstopux*)
14755    libsuff= shlibsuff=
14756    ;;
14757  *)
14758    case $LD in # libtool.m4 will add one of these switches to LD
14759    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14760      libsuff= shlibsuff= libmagic=32-bit;;
14761    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14762      libsuff=32 shlibsuff=N32 libmagic=N32;;
14763    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14764      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14765    *) libsuff= shlibsuff= libmagic=never-match;;
14766    esac
14767    ;;
14768  esac
14769  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14770  shlibpath_overrides_runpath=no
14771  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14772  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14773  hardcode_into_libs=yes
14774  ;;
14775
14776# No shared lib support for Linux oldld, aout, or coff.
14777linux*oldld* | linux*aout* | linux*coff*)
14778  dynamic_linker=no
14779  ;;
14780
14781# This must be Linux ELF.
14782linux*)
14783  version_type=linux
14784  need_lib_prefix=no
14785  need_version=no
14786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787  soname_spec='${libname}${release}${shared_ext}$major'
14788  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14789  shlibpath_var=LD_LIBRARY_PATH
14790  shlibpath_overrides_runpath=no
14791  # This implies no fast_install, which is unacceptable.
14792  # Some rework will be needed to allow for fast_install
14793  # before this can be enabled.
14794  hardcode_into_libs=yes
14795
14796  # Append ld.so.conf contents to the search path
14797  if test -f /etc/ld.so.conf; then
14798    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14799    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14800  fi
14801
14802  # We used to test for /lib/ld.so.1 and disable shared libraries on
14803  # powerpc, because MkLinux only supported shared libraries with the
14804  # GNU dynamic linker.  Since this was broken with cross compilers,
14805  # most powerpc-linux boxes support dynamic linking these days and
14806  # people can always --disable-shared, the test was removed, and we
14807  # assume the GNU/Linux dynamic linker is in use.
14808  dynamic_linker='GNU/Linux ld.so'
14809  ;;
14810
14811knetbsd*-gnu)
14812  version_type=linux
14813  need_lib_prefix=no
14814  need_version=no
14815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14816  soname_spec='${libname}${release}${shared_ext}$major'
14817  shlibpath_var=LD_LIBRARY_PATH
14818  shlibpath_overrides_runpath=no
14819  hardcode_into_libs=yes
14820  dynamic_linker='GNU ld.so'
14821  ;;
14822
14823netbsd*)
14824  version_type=sunos
14825  need_lib_prefix=no
14826  need_version=no
14827  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14830    dynamic_linker='NetBSD (a.out) ld.so'
14831  else
14832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14833    soname_spec='${libname}${release}${shared_ext}$major'
14834    dynamic_linker='NetBSD ld.elf_so'
14835  fi
14836  shlibpath_var=LD_LIBRARY_PATH
14837  shlibpath_overrides_runpath=yes
14838  hardcode_into_libs=yes
14839  ;;
14840
14841newsos6)
14842  version_type=linux
14843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844  shlibpath_var=LD_LIBRARY_PATH
14845  shlibpath_overrides_runpath=yes
14846  ;;
14847
14848nto-qnx*)
14849  version_type=linux
14850  need_lib_prefix=no
14851  need_version=no
14852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853  soname_spec='${libname}${release}${shared_ext}$major'
14854  shlibpath_var=LD_LIBRARY_PATH
14855  shlibpath_overrides_runpath=yes
14856  ;;
14857
14858openbsd*)
14859  version_type=sunos
14860  need_lib_prefix=no
14861  need_version=no
14862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14864  shlibpath_var=LD_LIBRARY_PATH
14865  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866    case $host_os in
14867      openbsd2.[89] | openbsd2.[89].*)
14868	shlibpath_overrides_runpath=no
14869	;;
14870      *)
14871	shlibpath_overrides_runpath=yes
14872	;;
14873      esac
14874  else
14875    shlibpath_overrides_runpath=yes
14876  fi
14877  ;;
14878
14879os2*)
14880  libname_spec='$name'
14881  shrext_cmds=".dll"
14882  need_lib_prefix=no
14883  library_names_spec='$libname${shared_ext} $libname.a'
14884  dynamic_linker='OS/2 ld.exe'
14885  shlibpath_var=LIBPATH
14886  ;;
14887
14888osf3* | osf4* | osf5*)
14889  version_type=osf
14890  need_lib_prefix=no
14891  need_version=no
14892  soname_spec='${libname}${release}${shared_ext}$major'
14893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894  shlibpath_var=LD_LIBRARY_PATH
14895  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14896  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14897  ;;
14898
14899sco3.2v5*)
14900  version_type=osf
14901  soname_spec='${libname}${release}${shared_ext}$major'
14902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903  shlibpath_var=LD_LIBRARY_PATH
14904  ;;
14905
14906solaris*)
14907  version_type=linux
14908  need_lib_prefix=no
14909  need_version=no
14910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911  soname_spec='${libname}${release}${shared_ext}$major'
14912  shlibpath_var=LD_LIBRARY_PATH
14913  shlibpath_overrides_runpath=yes
14914  hardcode_into_libs=yes
14915  # ldd complains unless libraries are executable
14916  postinstall_cmds='chmod +x $lib'
14917  ;;
14918
14919sunos4*)
14920  version_type=sunos
14921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14923  shlibpath_var=LD_LIBRARY_PATH
14924  shlibpath_overrides_runpath=yes
14925  if test "$with_gnu_ld" = yes; then
14926    need_lib_prefix=no
14927  fi
14928  need_version=yes
14929  ;;
14930
14931sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14932  version_type=linux
14933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934  soname_spec='${libname}${release}${shared_ext}$major'
14935  shlibpath_var=LD_LIBRARY_PATH
14936  case $host_vendor in
14937    sni)
14938      shlibpath_overrides_runpath=no
14939      need_lib_prefix=no
14940      export_dynamic_flag_spec='${wl}-Blargedynsym'
14941      runpath_var=LD_RUN_PATH
14942      ;;
14943    siemens)
14944      need_lib_prefix=no
14945      ;;
14946    motorola)
14947      need_lib_prefix=no
14948      need_version=no
14949      shlibpath_overrides_runpath=no
14950      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14951      ;;
14952  esac
14953  ;;
14954
14955sysv4*MP*)
14956  if test -d /usr/nec ;then
14957    version_type=linux
14958    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14959    soname_spec='$libname${shared_ext}.$major'
14960    shlibpath_var=LD_LIBRARY_PATH
14961  fi
14962  ;;
14963
14964uts4*)
14965  version_type=linux
14966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967  soname_spec='${libname}${release}${shared_ext}$major'
14968  shlibpath_var=LD_LIBRARY_PATH
14969  ;;
14970
14971*)
14972  dynamic_linker=no
14973  ;;
14974esac
14975echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14976echo "${ECHO_T}$dynamic_linker" >&6
14977test "$dynamic_linker" = no && can_build_shared=no
14978
14979echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14980echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14981hardcode_action_F77=
14982if test -n "$hardcode_libdir_flag_spec_F77" || \
14983   test -n "$runpath_var_F77" || \
14984   test "X$hardcode_automatic_F77" = "Xyes" ; then
14985
14986  # We can hardcode non-existant directories.
14987  if test "$hardcode_direct_F77" != no &&
14988     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14989     # have to relink, otherwise we might link with an installed library
14990     # when we should be linking with a yet-to-be-installed one
14991     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14992     test "$hardcode_minus_L_F77" != no; then
14993    # Linking always hardcodes the temporary library directory.
14994    hardcode_action_F77=relink
14995  else
14996    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14997    hardcode_action_F77=immediate
14998  fi
14999else
15000  # We cannot hardcode anything, or else we can only hardcode existing
15001  # directories.
15002  hardcode_action_F77=unsupported
15003fi
15004echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15005echo "${ECHO_T}$hardcode_action_F77" >&6
15006
15007if test "$hardcode_action_F77" = relink; then
15008  # Fast installation is not supported
15009  enable_fast_install=no
15010elif test "$shlibpath_overrides_runpath" = yes ||
15011     test "$enable_shared" = no; then
15012  # Fast installation is not necessary
15013  enable_fast_install=needless
15014fi
15015
15016striplib=
15017old_striplib=
15018echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15019echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15020if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15021  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15022  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15023  echo "$as_me:$LINENO: result: yes" >&5
15024echo "${ECHO_T}yes" >&6
15025else
15026# FIXME - insert some real tests, host_os isn't really good enough
15027  case $host_os in
15028   darwin*)
15029       if test -n "$STRIP" ; then
15030         striplib="$STRIP -x"
15031         echo "$as_me:$LINENO: result: yes" >&5
15032echo "${ECHO_T}yes" >&6
15033       else
15034  echo "$as_me:$LINENO: result: no" >&5
15035echo "${ECHO_T}no" >&6
15036fi
15037       ;;
15038   *)
15039  echo "$as_me:$LINENO: result: no" >&5
15040echo "${ECHO_T}no" >&6
15041    ;;
15042  esac
15043fi
15044
15045
15046
15047# The else clause should only fire when bootstrapping the
15048# libtool distribution, otherwise you forgot to ship ltmain.sh
15049# with your package, and you will get complaints that there are
15050# no rules to generate ltmain.sh.
15051if test -f "$ltmain"; then
15052  # See if we are running on zsh, and set the options which allow our commands through
15053  # without removal of \ escapes.
15054  if test -n "${ZSH_VERSION+set}" ; then
15055    setopt NO_GLOB_SUBST
15056  fi
15057  # Now quote all the things that may contain metacharacters while being
15058  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15059  # variables and quote the copies for generation of the libtool script.
15060  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15061    SED SHELL STRIP \
15062    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15063    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15064    deplibs_check_method reload_flag reload_cmds need_locks \
15065    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15066    lt_cv_sys_global_symbol_to_c_name_address \
15067    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15068    old_postinstall_cmds old_postuninstall_cmds \
15069    compiler_F77 \
15070    CC_F77 \
15071    LD_F77 \
15072    lt_prog_compiler_wl_F77 \
15073    lt_prog_compiler_pic_F77 \
15074    lt_prog_compiler_static_F77 \
15075    lt_prog_compiler_no_builtin_flag_F77 \
15076    export_dynamic_flag_spec_F77 \
15077    thread_safe_flag_spec_F77 \
15078    whole_archive_flag_spec_F77 \
15079    enable_shared_with_static_runtimes_F77 \
15080    old_archive_cmds_F77 \
15081    old_archive_from_new_cmds_F77 \
15082    predep_objects_F77 \
15083    postdep_objects_F77 \
15084    predeps_F77 \
15085    postdeps_F77 \
15086    compiler_lib_search_path_F77 \
15087    archive_cmds_F77 \
15088    archive_expsym_cmds_F77 \
15089    postinstall_cmds_F77 \
15090    postuninstall_cmds_F77 \
15091    old_archive_from_expsyms_cmds_F77 \
15092    allow_undefined_flag_F77 \
15093    no_undefined_flag_F77 \
15094    export_symbols_cmds_F77 \
15095    hardcode_libdir_flag_spec_F77 \
15096    hardcode_libdir_flag_spec_ld_F77 \
15097    hardcode_libdir_separator_F77 \
15098    hardcode_automatic_F77 \
15099    module_cmds_F77 \
15100    module_expsym_cmds_F77 \
15101    lt_cv_prog_compiler_c_o_F77 \
15102    exclude_expsyms_F77 \
15103    include_expsyms_F77; do
15104
15105    case $var in
15106    old_archive_cmds_F77 | \
15107    old_archive_from_new_cmds_F77 | \
15108    archive_cmds_F77 | \
15109    archive_expsym_cmds_F77 | \
15110    module_cmds_F77 | \
15111    module_expsym_cmds_F77 | \
15112    old_archive_from_expsyms_cmds_F77 | \
15113    export_symbols_cmds_F77 | \
15114    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15115    postinstall_cmds | postuninstall_cmds | \
15116    old_postinstall_cmds | old_postuninstall_cmds | \
15117    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15118      # Double-quote double-evaled strings.
15119      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15120      ;;
15121    *)
15122      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15123      ;;
15124    esac
15125  done
15126
15127  case $lt_echo in
15128  *'\$0 --fallback-echo"')
15129    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15130    ;;
15131  esac
15132
15133cfgfile="$ofile"
15134
15135  cat <<__EOF__ >> "$cfgfile"
15136# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15137
15138# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15139
15140# Shell to use when invoking shell scripts.
15141SHELL=$lt_SHELL
15142
15143# Whether or not to build shared libraries.
15144build_libtool_libs=$enable_shared
15145
15146# Whether or not to build static libraries.
15147build_old_libs=$enable_static
15148
15149# Whether or not to add -lc for building shared libraries.
15150build_libtool_need_lc=$archive_cmds_need_lc_F77
15151
15152# Whether or not to disallow shared libs when runtime libs are static
15153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15154
15155# Whether or not to optimize for fast installation.
15156fast_install=$enable_fast_install
15157
15158# The host system.
15159host_alias=$host_alias
15160host=$host
15161
15162# An echo program that does not interpret backslashes.
15163echo=$lt_echo
15164
15165# The archiver.
15166AR=$lt_AR
15167AR_FLAGS=$lt_AR_FLAGS
15168
15169# A C compiler.
15170LTCC=$lt_LTCC
15171
15172# A language-specific compiler.
15173CC=$lt_compiler_F77
15174
15175# Is the compiler the GNU C compiler?
15176with_gcc=$GCC_F77
15177
15178# An ERE matcher.
15179EGREP=$lt_EGREP
15180
15181# The linker used to build libraries.
15182LD=$lt_LD_F77
15183
15184# Whether we need hard or soft links.
15185LN_S=$lt_LN_S
15186
15187# A BSD-compatible nm program.
15188NM=$lt_NM
15189
15190# A symbol stripping program
15191STRIP=$lt_STRIP
15192
15193# Used to examine libraries when file_magic_cmd begins "file"
15194MAGIC_CMD=$MAGIC_CMD
15195
15196# Used on cygwin: DLL creation program.
15197DLLTOOL="$DLLTOOL"
15198
15199# Used on cygwin: object dumper.
15200OBJDUMP="$OBJDUMP"
15201
15202# Used on cygwin: assembler.
15203AS="$AS"
15204
15205# The name of the directory that contains temporary libtool files.
15206objdir=$objdir
15207
15208# How to create reloadable object files.
15209reload_flag=$lt_reload_flag
15210reload_cmds=$lt_reload_cmds
15211
15212# How to pass a linker flag through the compiler.
15213wl=$lt_lt_prog_compiler_wl_F77
15214
15215# Object file suffix (normally "o").
15216objext="$ac_objext"
15217
15218# Old archive suffix (normally "a").
15219libext="$libext"
15220
15221# Shared library suffix (normally ".so").
15222shrext_cmds='$shrext_cmds'
15223
15224# Executable file suffix (normally "").
15225exeext="$exeext"
15226
15227# Additional compiler flags for building library objects.
15228pic_flag=$lt_lt_prog_compiler_pic_F77
15229pic_mode=$pic_mode
15230
15231# What is the maximum length of a command?
15232max_cmd_len=$lt_cv_sys_max_cmd_len
15233
15234# Does compiler simultaneously support -c and -o options?
15235compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15236
15237# Must we lock files when doing compilation ?
15238need_locks=$lt_need_locks
15239
15240# Do we need the lib prefix for modules?
15241need_lib_prefix=$need_lib_prefix
15242
15243# Do we need a version for libraries?
15244need_version=$need_version
15245
15246# Whether dlopen is supported.
15247dlopen_support=$enable_dlopen
15248
15249# Whether dlopen of programs is supported.
15250dlopen_self=$enable_dlopen_self
15251
15252# Whether dlopen of statically linked programs is supported.
15253dlopen_self_static=$enable_dlopen_self_static
15254
15255# Compiler flag to prevent dynamic linking.
15256link_static_flag=$lt_lt_prog_compiler_static_F77
15257
15258# Compiler flag to turn off builtin functions.
15259no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15260
15261# Compiler flag to allow reflexive dlopens.
15262export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15263
15264# Compiler flag to generate shared objects directly from archives.
15265whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15266
15267# Compiler flag to generate thread-safe objects.
15268thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15269
15270# Library versioning type.
15271version_type=$version_type
15272
15273# Format of library name prefix.
15274libname_spec=$lt_libname_spec
15275
15276# List of archive names.  First name is the real one, the rest are links.
15277# The last name is the one that the linker finds with -lNAME.
15278library_names_spec=$lt_library_names_spec
15279
15280# The coded name of the library, if different from the real name.
15281soname_spec=$lt_soname_spec
15282
15283# Commands used to build and install an old-style archive.
15284RANLIB=$lt_RANLIB
15285old_archive_cmds=$lt_old_archive_cmds_F77
15286old_postinstall_cmds=$lt_old_postinstall_cmds
15287old_postuninstall_cmds=$lt_old_postuninstall_cmds
15288
15289# Create an old-style archive from a shared archive.
15290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15291
15292# Create a temporary old-style archive to link instead of a shared archive.
15293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15294
15295# Commands used to build and install a shared archive.
15296archive_cmds=$lt_archive_cmds_F77
15297archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15298postinstall_cmds=$lt_postinstall_cmds
15299postuninstall_cmds=$lt_postuninstall_cmds
15300
15301# Commands used to build a loadable module (assumed same as above if empty)
15302module_cmds=$lt_module_cmds_F77
15303module_expsym_cmds=$lt_module_expsym_cmds_F77
15304
15305# Commands to strip libraries.
15306old_striplib=$lt_old_striplib
15307striplib=$lt_striplib
15308
15309# Dependencies to place before the objects being linked to create a
15310# shared library.
15311predep_objects=$lt_predep_objects_F77
15312
15313# Dependencies to place after the objects being linked to create a
15314# shared library.
15315postdep_objects=$lt_postdep_objects_F77
15316
15317# Dependencies to place before the objects being linked to create a
15318# shared library.
15319predeps=$lt_predeps_F77
15320
15321# Dependencies to place after the objects being linked to create a
15322# shared library.
15323postdeps=$lt_postdeps_F77
15324
15325# The library search path used internally by the compiler when linking
15326# a shared library.
15327compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15328
15329# Method to check whether dependent libraries are shared objects.
15330deplibs_check_method=$lt_deplibs_check_method
15331
15332# Command to use when deplibs_check_method == file_magic.
15333file_magic_cmd=$lt_file_magic_cmd
15334
15335# Flag that allows shared libraries with undefined symbols to be built.
15336allow_undefined_flag=$lt_allow_undefined_flag_F77
15337
15338# Flag that forces no undefined symbols.
15339no_undefined_flag=$lt_no_undefined_flag_F77
15340
15341# Commands used to finish a libtool library installation in a directory.
15342finish_cmds=$lt_finish_cmds
15343
15344# Same as above, but a single script fragment to be evaled but not shown.
15345finish_eval=$lt_finish_eval
15346
15347# Take the output of nm and produce a listing of raw symbols and C names.
15348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15349
15350# Transform the output of nm in a proper C declaration
15351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15352
15353# Transform the output of nm in a C name address pair
15354global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15355
15356# This is the shared library runtime path variable.
15357runpath_var=$runpath_var
15358
15359# This is the shared library path variable.
15360shlibpath_var=$shlibpath_var
15361
15362# Is shlibpath searched before the hard-coded library search path?
15363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15364
15365# How to hardcode a shared library path into an executable.
15366hardcode_action=$hardcode_action_F77
15367
15368# Whether we should hardcode library paths into libraries.
15369hardcode_into_libs=$hardcode_into_libs
15370
15371# Flag to hardcode \$libdir into a binary during linking.
15372# This must work even if \$libdir does not exist.
15373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15374
15375# If ld is used when linking, flag to hardcode \$libdir into
15376# a binary during linking. This must work even if \$libdir does
15377# not exist.
15378hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15379
15380# Whether we need a single -rpath flag with a separated argument.
15381hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15382
15383# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15384# resulting binary.
15385hardcode_direct=$hardcode_direct_F77
15386
15387# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15388# resulting binary.
15389hardcode_minus_L=$hardcode_minus_L_F77
15390
15391# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15392# the resulting binary.
15393hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15394
15395# Set to yes if building a shared library automatically hardcodes DIR into the library
15396# and all subsequent libraries and executables linked against it.
15397hardcode_automatic=$hardcode_automatic_F77
15398
15399# Variables whose values should be saved in libtool wrapper scripts and
15400# restored at relink time.
15401variables_saved_for_relink="$variables_saved_for_relink"
15402
15403# Whether libtool must link a program against all its dependency libraries.
15404link_all_deplibs=$link_all_deplibs_F77
15405
15406# Compile-time system search path for libraries
15407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15408
15409# Run-time system search path for libraries
15410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15411
15412# Fix the shell variable \$srcfile for the compiler.
15413fix_srcfile_path="$fix_srcfile_path_F77"
15414
15415# Set to yes if exported symbols are required.
15416always_export_symbols=$always_export_symbols_F77
15417
15418# The commands to list exported symbols.
15419export_symbols_cmds=$lt_export_symbols_cmds_F77
15420
15421# The commands to extract the exported symbol list from a shared archive.
15422extract_expsyms_cmds=$lt_extract_expsyms_cmds
15423
15424# Symbols that should not be listed in the preloaded symbols.
15425exclude_expsyms=$lt_exclude_expsyms_F77
15426
15427# Symbols that must always be exported.
15428include_expsyms=$lt_include_expsyms_F77
15429
15430# ### END LIBTOOL TAG CONFIG: $tagname
15431
15432__EOF__
15433
15434
15435else
15436  # If there is no Makefile yet, we rely on a make rule to execute
15437  # `config.status --recheck' to rerun these tests and create the
15438  # libtool script then.
15439  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15440  if test -f "$ltmain_in"; then
15441    test -f Makefile && make "$ltmain"
15442  fi
15443fi
15444
15445
15446ac_ext=c
15447ac_cpp='$CPP $CPPFLAGS'
15448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450ac_compiler_gnu=$ac_cv_c_compiler_gnu
15451
15452CC="$lt_save_CC"
15453
15454	else
15455	  tagname=""
15456	fi
15457	;;
15458
15459      GCJ)
15460	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15461
15462
15463
15464# Source file extension for Java test sources.
15465ac_ext=java
15466
15467# Object file extension for compiled Java test sources.
15468objext=o
15469objext_GCJ=$objext
15470
15471# Code to be used in simple compile tests
15472lt_simple_compile_test_code="class foo {}\n"
15473
15474# Code to be used in simple link tests
15475lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15476
15477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15478
15479# If no C compiler was specified, use CC.
15480LTCC=${LTCC-"$CC"}
15481
15482# Allow CC to be a program name with arguments.
15483compiler=$CC
15484
15485
15486# Allow CC to be a program name with arguments.
15487lt_save_CC="$CC"
15488CC=${GCJ-"gcj"}
15489compiler=$CC
15490compiler_GCJ=$CC
15491
15492# GCJ did not exist at the time GCC didn't implicitly link libc in.
15493archive_cmds_need_lc_GCJ=no
15494
15495
15496lt_prog_compiler_no_builtin_flag_GCJ=
15497
15498if test "$GCC" = yes; then
15499  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15500
15501
15502echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15503echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15504if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15505  echo $ECHO_N "(cached) $ECHO_C" >&6
15506else
15507  lt_cv_prog_compiler_rtti_exceptions=no
15508  ac_outfile=conftest.$ac_objext
15509   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510   lt_compiler_flag="-fno-rtti -fno-exceptions"
15511   # Insert the option either (1) after the last *FLAGS variable, or
15512   # (2) before a word containing "conftest.", or (3) at the end.
15513   # Note that $ac_compile itself does not contain backslashes and begins
15514   # with a dollar sign (not a hyphen), so the echo should work correctly.
15515   # The option is referenced via a variable to avoid confusing sed.
15516   lt_compile=`echo "$ac_compile" | $SED \
15517   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519   -e 's:$: $lt_compiler_flag:'`
15520   (eval echo "\"\$as_me:15520: $lt_compile\"" >&5)
15521   (eval "$lt_compile" 2>conftest.err)
15522   ac_status=$?
15523   cat conftest.err >&5
15524   echo "$as_me:15524: \$? = $ac_status" >&5
15525   if (exit $ac_status) && test -s "$ac_outfile"; then
15526     # The compiler can only warn and ignore the option if not recognized
15527     # So say no if there are warnings
15528     if test ! -s conftest.err; then
15529       lt_cv_prog_compiler_rtti_exceptions=yes
15530     fi
15531   fi
15532   $rm conftest*
15533
15534fi
15535echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15536echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15537
15538if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15539    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15540else
15541    :
15542fi
15543
15544fi
15545
15546lt_prog_compiler_wl_GCJ=
15547lt_prog_compiler_pic_GCJ=
15548lt_prog_compiler_static_GCJ=
15549
15550echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15551echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15552
15553  if test "$GCC" = yes; then
15554    lt_prog_compiler_wl_GCJ='-Wl,'
15555    lt_prog_compiler_static_GCJ='-static'
15556
15557    case $host_os in
15558      aix*)
15559      # All AIX code is PIC.
15560      if test "$host_cpu" = ia64; then
15561	# AIX 5 now supports IA64 processor
15562	lt_prog_compiler_static_GCJ='-Bstatic'
15563      fi
15564      ;;
15565
15566    amigaos*)
15567      # FIXME: we need at least 68020 code to build shared libraries, but
15568      # adding the `-m68020' flag to GCC prevents building anything better,
15569      # like `-m68040'.
15570      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15571      ;;
15572
15573    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15574      # PIC is the default for these OSes.
15575      ;;
15576
15577    mingw* | pw32* | os2*)
15578      # This hack is so that the source file can tell whether it is being
15579      # built for inclusion in a dll (and should export symbols for example).
15580      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15581      ;;
15582
15583    darwin* | rhapsody*)
15584      # PIC is the default on this platform
15585      # Common symbols not allowed in MH_DYLIB files
15586      lt_prog_compiler_pic_GCJ='-fno-common'
15587      ;;
15588
15589    msdosdjgpp*)
15590      # Just because we use GCC doesn't mean we suddenly get shared libraries
15591      # on systems that don't support them.
15592      lt_prog_compiler_can_build_shared_GCJ=no
15593      enable_shared=no
15594      ;;
15595
15596    sysv4*MP*)
15597      if test -d /usr/nec; then
15598	lt_prog_compiler_pic_GCJ=-Kconform_pic
15599      fi
15600      ;;
15601
15602    hpux*)
15603      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15604      # not for PA HP-UX.
15605      case "$host_cpu" in
15606      hppa*64*|ia64*)
15607	# +Z the default
15608	;;
15609      *)
15610	lt_prog_compiler_pic_GCJ='-fPIC'
15611	;;
15612      esac
15613      ;;
15614
15615    *)
15616      lt_prog_compiler_pic_GCJ='-fPIC'
15617      ;;
15618    esac
15619  else
15620    # PORTME Check for flag to pass linker flags through the system compiler.
15621    case $host_os in
15622    aix*)
15623      lt_prog_compiler_wl_GCJ='-Wl,'
15624      if test "$host_cpu" = ia64; then
15625	# AIX 5 now supports IA64 processor
15626	lt_prog_compiler_static_GCJ='-Bstatic'
15627      else
15628	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15629      fi
15630      ;;
15631      darwin*)
15632        # PIC is the default on this platform
15633        # Common symbols not allowed in MH_DYLIB files
15634       case "$cc_basename" in
15635         xlc*)
15636         lt_prog_compiler_pic_GCJ='-qnocommon'
15637         lt_prog_compiler_wl_GCJ='-Wl,'
15638         ;;
15639       esac
15640       ;;
15641
15642    mingw* | pw32* | os2*)
15643      # This hack is so that the source file can tell whether it is being
15644      # built for inclusion in a dll (and should export symbols for example).
15645      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15646      ;;
15647
15648    hpux9* | hpux10* | hpux11*)
15649      lt_prog_compiler_wl_GCJ='-Wl,'
15650      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15651      # not for PA HP-UX.
15652      case "$host_cpu" in
15653      hppa*64*|ia64*)
15654	# +Z the default
15655	;;
15656      *)
15657	lt_prog_compiler_pic_GCJ='+Z'
15658	;;
15659      esac
15660      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15661      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15662      ;;
15663
15664    irix5* | irix6* | nonstopux*)
15665      lt_prog_compiler_wl_GCJ='-Wl,'
15666      # PIC (with -KPIC) is the default.
15667      lt_prog_compiler_static_GCJ='-non_shared'
15668      ;;
15669
15670    newsos6)
15671      lt_prog_compiler_pic_GCJ='-KPIC'
15672      lt_prog_compiler_static_GCJ='-Bstatic'
15673      ;;
15674
15675    linux*)
15676      case $CC in
15677      icc* | ecc*)
15678	lt_prog_compiler_wl_GCJ='-Wl,'
15679	lt_prog_compiler_pic_GCJ='-KPIC'
15680	lt_prog_compiler_static_GCJ='-static'
15681        ;;
15682      ccc*)
15683        lt_prog_compiler_wl_GCJ='-Wl,'
15684        # All Alpha code is PIC.
15685        lt_prog_compiler_static_GCJ='-non_shared'
15686        ;;
15687      esac
15688      ;;
15689
15690    osf3* | osf4* | osf5*)
15691      lt_prog_compiler_wl_GCJ='-Wl,'
15692      # All OSF/1 code is PIC.
15693      lt_prog_compiler_static_GCJ='-non_shared'
15694      ;;
15695
15696    sco3.2v5*)
15697      lt_prog_compiler_pic_GCJ='-Kpic'
15698      lt_prog_compiler_static_GCJ='-dn'
15699      ;;
15700
15701    solaris*)
15702      lt_prog_compiler_wl_GCJ='-Wl,'
15703      lt_prog_compiler_pic_GCJ='-KPIC'
15704      lt_prog_compiler_static_GCJ='-Bstatic'
15705      ;;
15706
15707    sunos4*)
15708      lt_prog_compiler_wl_GCJ='-Qoption ld '
15709      lt_prog_compiler_pic_GCJ='-PIC'
15710      lt_prog_compiler_static_GCJ='-Bstatic'
15711      ;;
15712
15713    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15714      lt_prog_compiler_wl_GCJ='-Wl,'
15715      lt_prog_compiler_pic_GCJ='-KPIC'
15716      lt_prog_compiler_static_GCJ='-Bstatic'
15717      ;;
15718
15719    sysv4*MP*)
15720      if test -d /usr/nec ;then
15721	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15722	lt_prog_compiler_static_GCJ='-Bstatic'
15723      fi
15724      ;;
15725
15726    uts4*)
15727      lt_prog_compiler_pic_GCJ='-pic'
15728      lt_prog_compiler_static_GCJ='-Bstatic'
15729      ;;
15730
15731    *)
15732      lt_prog_compiler_can_build_shared_GCJ=no
15733      ;;
15734    esac
15735  fi
15736
15737echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15738echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15739
15740#
15741# Check to make sure the PIC flag actually works.
15742#
15743if test -n "$lt_prog_compiler_pic_GCJ"; then
15744
15745echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15746echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15747if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15748  echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
15750  lt_prog_compiler_pic_works_GCJ=no
15751  ac_outfile=conftest.$ac_objext
15752   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15753   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15754   # Insert the option either (1) after the last *FLAGS variable, or
15755   # (2) before a word containing "conftest.", or (3) at the end.
15756   # Note that $ac_compile itself does not contain backslashes and begins
15757   # with a dollar sign (not a hyphen), so the echo should work correctly.
15758   # The option is referenced via a variable to avoid confusing sed.
15759   lt_compile=`echo "$ac_compile" | $SED \
15760   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15761   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15762   -e 's:$: $lt_compiler_flag:'`
15763   (eval echo "\"\$as_me:15763: $lt_compile\"" >&5)
15764   (eval "$lt_compile" 2>conftest.err)
15765   ac_status=$?
15766   cat conftest.err >&5
15767   echo "$as_me:15767: \$? = $ac_status" >&5
15768   if (exit $ac_status) && test -s "$ac_outfile"; then
15769     # The compiler can only warn and ignore the option if not recognized
15770     # So say no if there are warnings
15771     if test ! -s conftest.err; then
15772       lt_prog_compiler_pic_works_GCJ=yes
15773     fi
15774   fi
15775   $rm conftest*
15776
15777fi
15778echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15779echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15780
15781if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15782    case $lt_prog_compiler_pic_GCJ in
15783     "" | " "*) ;;
15784     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15785     esac
15786else
15787    lt_prog_compiler_pic_GCJ=
15788     lt_prog_compiler_can_build_shared_GCJ=no
15789fi
15790
15791fi
15792case "$host_os" in
15793  # For platforms which do not support PIC, -DPIC is meaningless:
15794  *djgpp*)
15795    lt_prog_compiler_pic_GCJ=
15796    ;;
15797  *)
15798    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15799    ;;
15800esac
15801
15802echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15803echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15804if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15805  echo $ECHO_N "(cached) $ECHO_C" >&6
15806else
15807  lt_cv_prog_compiler_c_o_GCJ=no
15808   $rm -r conftest 2>/dev/null
15809   mkdir conftest
15810   cd conftest
15811   mkdir out
15812   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15813
15814   lt_compiler_flag="-o out/conftest2.$ac_objext"
15815   # Insert the option either (1) after the last *FLAGS variable, or
15816   # (2) before a word containing "conftest.", or (3) at the end.
15817   # Note that $ac_compile itself does not contain backslashes and begins
15818   # with a dollar sign (not a hyphen), so the echo should work correctly.
15819   lt_compile=`echo "$ac_compile" | $SED \
15820   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15821   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15822   -e 's:$: $lt_compiler_flag:'`
15823   (eval echo "\"\$as_me:15823: $lt_compile\"" >&5)
15824   (eval "$lt_compile" 2>out/conftest.err)
15825   ac_status=$?
15826   cat out/conftest.err >&5
15827   echo "$as_me:15827: \$? = $ac_status" >&5
15828   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15829   then
15830     # The compiler can only warn and ignore the option if not recognized
15831     # So say no if there are warnings
15832     if test ! -s out/conftest.err; then
15833       lt_cv_prog_compiler_c_o_GCJ=yes
15834     fi
15835   fi
15836   chmod u+w .
15837   $rm conftest*
15838   # SGI C++ compiler will create directory out/ii_files/ for
15839   # template instantiation
15840   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15841   $rm out/* && rmdir out
15842   cd ..
15843   rmdir conftest
15844   $rm conftest*
15845
15846fi
15847echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15848echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15849
15850
15851hard_links="nottested"
15852if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15853  # do not overwrite the value of need_locks provided by the user
15854  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15855echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15856  hard_links=yes
15857  $rm conftest*
15858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15859  touch conftest.a
15860  ln conftest.a conftest.b 2>&5 || hard_links=no
15861  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862  echo "$as_me:$LINENO: result: $hard_links" >&5
15863echo "${ECHO_T}$hard_links" >&6
15864  if test "$hard_links" = no; then
15865    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15866echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15867    need_locks=warn
15868  fi
15869else
15870  need_locks=no
15871fi
15872
15873echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15874echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15875
15876  runpath_var=
15877  allow_undefined_flag_GCJ=
15878  enable_shared_with_static_runtimes_GCJ=no
15879  archive_cmds_GCJ=
15880  archive_expsym_cmds_GCJ=
15881  old_archive_From_new_cmds_GCJ=
15882  old_archive_from_expsyms_cmds_GCJ=
15883  export_dynamic_flag_spec_GCJ=
15884  whole_archive_flag_spec_GCJ=
15885  thread_safe_flag_spec_GCJ=
15886  hardcode_libdir_flag_spec_GCJ=
15887  hardcode_libdir_flag_spec_ld_GCJ=
15888  hardcode_libdir_separator_GCJ=
15889  hardcode_direct_GCJ=no
15890  hardcode_minus_L_GCJ=no
15891  hardcode_shlibpath_var_GCJ=unsupported
15892  link_all_deplibs_GCJ=unknown
15893  hardcode_automatic_GCJ=no
15894  module_cmds_GCJ=
15895  module_expsym_cmds_GCJ=
15896  always_export_symbols_GCJ=no
15897  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15898  # include_expsyms should be a list of space-separated symbols to be *always*
15899  # included in the symbol list
15900  include_expsyms_GCJ=
15901  # exclude_expsyms can be an extended regexp of symbols to exclude
15902  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904  # as well as any symbol that contains `d'.
15905  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15906  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907  # platforms (ab)use it in PIC code, but their linkers get confused if
15908  # the symbol is explicitly referenced.  Since portable code cannot
15909  # rely on this symbol name, it's probably fine to never include it in
15910  # preloaded symbol tables.
15911  extract_expsyms_cmds=
15912
15913  case $host_os in
15914  cygwin* | mingw* | pw32*)
15915    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15916    # When not using gcc, we currently assume that we are using
15917    # Microsoft Visual C++.
15918    if test "$GCC" != yes; then
15919      with_gnu_ld=no
15920    fi
15921    ;;
15922  openbsd*)
15923    with_gnu_ld=no
15924    ;;
15925  esac
15926
15927  ld_shlibs_GCJ=yes
15928  if test "$with_gnu_ld" = yes; then
15929    # If archive_cmds runs LD, not CC, wlarc should be empty
15930    wlarc='${wl}'
15931
15932    # See if GNU ld supports shared libraries.
15933    case $host_os in
15934    aix3* | aix4* | aix5*)
15935      # On AIX/PPC, the GNU linker is very broken
15936      if test "$host_cpu" != ia64; then
15937	ld_shlibs_GCJ=no
15938	cat <<EOF 1>&2
15939
15940*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15941*** to be unable to reliably create shared libraries on AIX.
15942*** Therefore, libtool is disabling shared libraries support.  If you
15943*** really care for shared libraries, you may want to modify your PATH
15944*** so that a non-GNU linker is found, and then restart.
15945
15946EOF
15947      fi
15948      ;;
15949
15950    amigaos*)
15951      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)'
15952      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15953      hardcode_minus_L_GCJ=yes
15954
15955      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15956      # that the semantics of dynamic libraries on AmigaOS, at least up
15957      # to version 4, is to share data among multiple programs linked
15958      # with the same dynamic library.  Since this doesn't match the
15959      # behavior of shared libraries on other platforms, we can't use
15960      # them.
15961      ld_shlibs_GCJ=no
15962      ;;
15963
15964    beos*)
15965      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15966	allow_undefined_flag_GCJ=unsupported
15967	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15968	# support --undefined.  This deserves some investigation.  FIXME
15969	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970      else
15971	ld_shlibs_GCJ=no
15972      fi
15973      ;;
15974
15975    cygwin* | mingw* | pw32*)
15976      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15977      # as there is no search path for DLLs.
15978      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15979      allow_undefined_flag_GCJ=unsupported
15980      always_export_symbols_GCJ=no
15981      enable_shared_with_static_runtimes_GCJ=yes
15982      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15983
15984      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15985        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15986	# If the export-symbols file already is a .def file (1st line
15987	# is EXPORTS), use it as is; otherwise, prepend...
15988	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15989	  cp $export_symbols $output_objdir/$soname.def;
15990	else
15991	  echo EXPORTS > $output_objdir/$soname.def;
15992	  cat $export_symbols >> $output_objdir/$soname.def;
15993	fi~
15994	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15995      else
15996	ld_shlibs=no
15997      fi
15998      ;;
15999
16000    netbsd*)
16001      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16003	wlarc=
16004      else
16005	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16007      fi
16008      ;;
16009
16010    solaris* | sysv5*)
16011      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16012	ld_shlibs_GCJ=no
16013	cat <<EOF 1>&2
16014
16015*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16016*** create shared libraries on Solaris systems.  Therefore, libtool
16017*** is disabling shared libraries support.  We urge you to upgrade GNU
16018*** binutils to release 2.9.1 or newer.  Another option is to modify
16019*** your PATH or compiler configuration so that the native linker is
16020*** used, and then restart.
16021
16022EOF
16023      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16024	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16026      else
16027	ld_shlibs_GCJ=no
16028      fi
16029      ;;
16030
16031    sunos4*)
16032      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033      wlarc=
16034      hardcode_direct_GCJ=yes
16035      hardcode_shlibpath_var_GCJ=no
16036      ;;
16037
16038  linux*)
16039    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16040        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041	archive_cmds_GCJ="$tmp_archive_cmds"
16042      supports_anon_versioning=no
16043      case `$LD -v 2>/dev/null` in
16044        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16045        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16046        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16047        *\ 2.11.*) ;; # other 2.11 versions
16048        *) supports_anon_versioning=yes ;;
16049      esac
16050      if test $supports_anon_versioning = yes; then
16051        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16052cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16053$echo "local: *; };" >> $output_objdir/$libname.ver~
16054        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055      else
16056        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16057      fi
16058    else
16059      ld_shlibs_GCJ=no
16060    fi
16061    ;;
16062
16063    *)
16064      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16065	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16067      else
16068	ld_shlibs_GCJ=no
16069      fi
16070      ;;
16071    esac
16072
16073    if test "$ld_shlibs_GCJ" = yes; then
16074      runpath_var=LD_RUN_PATH
16075      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16076      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16077      # ancient GNU ld didn't support --whole-archive et. al.
16078      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16079 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16080      else
16081  	whole_archive_flag_spec_GCJ=
16082      fi
16083    fi
16084  else
16085    # PORTME fill in a description of your system's linker (not GNU ld)
16086    case $host_os in
16087    aix3*)
16088      allow_undefined_flag_GCJ=unsupported
16089      always_export_symbols_GCJ=yes
16090      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'
16091      # Note: this linker hardcodes the directories in LIBPATH if there
16092      # are no directories specified by -L.
16093      hardcode_minus_L_GCJ=yes
16094      if test "$GCC" = yes && test -z "$link_static_flag"; then
16095	# Neither direct hardcoding nor static linking is supported with a
16096	# broken collect2.
16097	hardcode_direct_GCJ=unsupported
16098      fi
16099      ;;
16100
16101    aix4* | aix5*)
16102      if test "$host_cpu" = ia64; then
16103	# On IA64, the linker does run time linking by default, so we don't
16104	# have to do anything special.
16105	aix_use_runtimelinking=no
16106	exp_sym_flag='-Bexport'
16107	no_entry_flag=""
16108      else
16109	# If we're using GNU nm, then we don't want the "-C" option.
16110	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16111	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16112	  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'
16113	else
16114	  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'
16115	fi
16116	aix_use_runtimelinking=no
16117
16118	# Test if we are trying to use run time linking or normal
16119	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16120	# need to do runtime linking.
16121	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16122	  for ld_flag in $LDFLAGS; do
16123  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16124  	    aix_use_runtimelinking=yes
16125  	    break
16126  	  fi
16127	  done
16128	esac
16129
16130	exp_sym_flag='-bexport'
16131	no_entry_flag='-bnoentry'
16132      fi
16133
16134      # When large executables or shared objects are built, AIX ld can
16135      # have problems creating the table of contents.  If linking a library
16136      # or program results in "error TOC overflow" add -mminimal-toc to
16137      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16138      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16139
16140      archive_cmds_GCJ=''
16141      hardcode_direct_GCJ=yes
16142      hardcode_libdir_separator_GCJ=':'
16143      link_all_deplibs_GCJ=yes
16144
16145      if test "$GCC" = yes; then
16146	case $host_os in aix4.012|aix4.012.*)
16147	# We only want to do this on AIX 4.2 and lower, the check
16148	# below for broken collect2 doesn't work under 4.3+
16149	  collect2name=`${CC} -print-prog-name=collect2`
16150	  if test -f "$collect2name" && \
16151  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16152	  then
16153  	  # We have reworked collect2
16154  	  hardcode_direct_GCJ=yes
16155	  else
16156  	  # We have old collect2
16157  	  hardcode_direct_GCJ=unsupported
16158  	  # It fails to find uninstalled libraries when the uninstalled
16159  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16160  	  # to unsupported forces relinking
16161  	  hardcode_minus_L_GCJ=yes
16162  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16163  	  hardcode_libdir_separator_GCJ=
16164	  fi
16165	esac
16166	shared_flag='-shared'
16167      else
16168	# not using gcc
16169	if test "$host_cpu" = ia64; then
16170  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16171  	# chokes on -Wl,-G. The following line is correct:
16172	  shared_flag='-G'
16173	else
16174  	if test "$aix_use_runtimelinking" = yes; then
16175	    shared_flag='${wl}-G'
16176	  else
16177	    shared_flag='${wl}-bM:SRE'
16178  	fi
16179	fi
16180      fi
16181
16182      # It seems that -bexpall does not export symbols beginning with
16183      # underscore (_), so it is better to generate a list of symbols to export.
16184      always_export_symbols_GCJ=yes
16185      if test "$aix_use_runtimelinking" = yes; then
16186	# Warning - without using the other runtime loading flags (-brtl),
16187	# -berok will link without error, but may produce a broken library.
16188	allow_undefined_flag_GCJ='-berok'
16189       # Determine the default libpath from the value encoded in an empty executable.
16190       cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h.  */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h.  */
16196
16197int
16198main ()
16199{
16200
16201  ;
16202  return 0;
16203}
16204_ACEOF
16205rm -f conftest.$ac_objext conftest$ac_exeext
16206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16207  (eval $ac_link) 2>conftest.er1
16208  ac_status=$?
16209  grep -v '^ *+' conftest.er1 >conftest.err
16210  rm -f conftest.er1
16211  cat conftest.err >&5
16212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213  (exit $ac_status); } &&
16214	 { ac_try='test -z "$ac_c_werror_flag"
16215			 || test ! -s conftest.err'
16216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217  (eval $ac_try) 2>&5
16218  ac_status=$?
16219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220  (exit $ac_status); }; } &&
16221	 { ac_try='test -s conftest$ac_exeext'
16222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223  (eval $ac_try) 2>&5
16224  ac_status=$?
16225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226  (exit $ac_status); }; }; then
16227
16228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16229}'`
16230# Check for a 64-bit object if we didn't find anything.
16231if 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; }
16232}'`; fi
16233else
16234  echo "$as_me: failed program was:" >&5
16235sed 's/^/| /' conftest.$ac_ext >&5
16236
16237fi
16238rm -f conftest.err conftest.$ac_objext \
16239      conftest$ac_exeext conftest.$ac_ext
16240if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16241
16242       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16243	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"
16244       else
16245	if test "$host_cpu" = ia64; then
16246	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16247	  allow_undefined_flag_GCJ="-z nodefs"
16248	  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"
16249	else
16250	 # Determine the default libpath from the value encoded in an empty executable.
16251	 cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h.  */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h.  */
16257
16258int
16259main ()
16260{
16261
16262  ;
16263  return 0;
16264}
16265_ACEOF
16266rm -f conftest.$ac_objext conftest$ac_exeext
16267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268  (eval $ac_link) 2>conftest.er1
16269  ac_status=$?
16270  grep -v '^ *+' conftest.er1 >conftest.err
16271  rm -f conftest.er1
16272  cat conftest.err >&5
16273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274  (exit $ac_status); } &&
16275	 { ac_try='test -z "$ac_c_werror_flag"
16276			 || test ! -s conftest.err'
16277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278  (eval $ac_try) 2>&5
16279  ac_status=$?
16280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281  (exit $ac_status); }; } &&
16282	 { ac_try='test -s conftest$ac_exeext'
16283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284  (eval $ac_try) 2>&5
16285  ac_status=$?
16286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287  (exit $ac_status); }; }; then
16288
16289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16290}'`
16291# Check for a 64-bit object if we didn't find anything.
16292if 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; }
16293}'`; fi
16294else
16295  echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
16297
16298fi
16299rm -f conftest.err conftest.$ac_objext \
16300      conftest$ac_exeext conftest.$ac_ext
16301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16302
16303	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16304	  # Warning - without using the other run time loading flags,
16305	  # -berok will link without error, but may produce a broken library.
16306	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16307	  allow_undefined_flag_GCJ=' ${wl}-berok'
16308	  # -bexpall does not export symbols beginning with underscore (_)
16309	  always_export_symbols_GCJ=yes
16310	  # Exported symbols can be pulled into shared objects from archives
16311	  whole_archive_flag_spec_GCJ=' '
16312	  archive_cmds_need_lc_GCJ=yes
16313	  # This is similar to how AIX traditionally builds it's shared libraries.
16314	  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'
16315	fi
16316      fi
16317      ;;
16318
16319    amigaos*)
16320      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)'
16321      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16322      hardcode_minus_L_GCJ=yes
16323      # see comment about different semantics on the GNU ld section
16324      ld_shlibs_GCJ=no
16325      ;;
16326
16327    bsdi[45]*)
16328      export_dynamic_flag_spec_GCJ=-rdynamic
16329      ;;
16330
16331    cygwin* | mingw* | pw32*)
16332      # When not using gcc, we currently assume that we are using
16333      # Microsoft Visual C++.
16334      # hardcode_libdir_flag_spec is actually meaningless, as there is
16335      # no search path for DLLs.
16336      hardcode_libdir_flag_spec_GCJ=' '
16337      allow_undefined_flag_GCJ=unsupported
16338      # Tell ltmain to make .lib files, not .a files.
16339      libext=lib
16340      # Tell ltmain to make .dll files, not .so files.
16341      shrext_cmds=".dll"
16342      # FIXME: Setting linknames here is a bad hack.
16343      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16344      # The linker will automatically build a .lib file if we build a DLL.
16345      old_archive_From_new_cmds_GCJ='true'
16346      # FIXME: Should let the user specify the lib program.
16347      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16348      fix_srcfile_path='`cygpath -w "$srcfile"`'
16349      enable_shared_with_static_runtimes_GCJ=yes
16350      ;;
16351
16352    darwin* | rhapsody*)
16353      case "$host_os" in
16354        rhapsody* | darwin1.[012])
16355         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16356         ;;
16357       *) # Darwin 1.3 on
16358         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16359           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16360         else
16361           case ${MACOSX_DEPLOYMENT_TARGET} in
16362             10.[012])
16363               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16364               ;;
16365             10.*)
16366               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16367               ;;
16368           esac
16369         fi
16370         ;;
16371      esac
16372      archive_cmds_need_lc_GCJ=no
16373      hardcode_direct_GCJ=no
16374      hardcode_automatic_GCJ=yes
16375      hardcode_shlibpath_var_GCJ=unsupported
16376      whole_archive_flag_spec_GCJ=''
16377      link_all_deplibs_GCJ=yes
16378    if test "$GCC" = yes ; then
16379    	output_verbose_link_cmd='echo'
16380        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16381      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16382      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16383      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}'
16384      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}'
16385    else
16386      case "$cc_basename" in
16387        xlc*)
16388         output_verbose_link_cmd='echo'
16389         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16390         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16391          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16392         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}'
16393          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}'
16394          ;;
16395       *)
16396         ld_shlibs_GCJ=no
16397          ;;
16398      esac
16399    fi
16400      ;;
16401
16402    dgux*)
16403      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16404      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16405      hardcode_shlibpath_var_GCJ=no
16406      ;;
16407
16408    freebsd1*)
16409      ld_shlibs_GCJ=no
16410      ;;
16411
16412    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16413    # support.  Future versions do this automatically, but an explicit c++rt0.o
16414    # does not break anything, and helps significantly (at the cost of a little
16415    # extra space).
16416    freebsd2.2*)
16417      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16418      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16419      hardcode_direct_GCJ=yes
16420      hardcode_shlibpath_var_GCJ=no
16421      ;;
16422
16423    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16424    freebsd2*)
16425      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16426      hardcode_direct_GCJ=yes
16427      hardcode_minus_L_GCJ=yes
16428      hardcode_shlibpath_var_GCJ=no
16429      ;;
16430
16431    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16432    freebsd* | kfreebsd*-gnu)
16433      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16434      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16435      hardcode_direct_GCJ=yes
16436      hardcode_shlibpath_var_GCJ=no
16437      ;;
16438
16439    hpux9*)
16440      if test "$GCC" = yes; then
16441	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'
16442      else
16443	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'
16444      fi
16445      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16446      hardcode_libdir_separator_GCJ=:
16447      hardcode_direct_GCJ=yes
16448
16449      # hardcode_minus_L: Not really in the search PATH,
16450      # but as the default location of the library.
16451      hardcode_minus_L_GCJ=yes
16452      export_dynamic_flag_spec_GCJ='${wl}-E'
16453      ;;
16454
16455    hpux10* | hpux11*)
16456      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16457	case "$host_cpu" in
16458	hppa*64*|ia64*)
16459	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16460	  ;;
16461	*)
16462	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463	  ;;
16464	esac
16465      else
16466	case "$host_cpu" in
16467	hppa*64*|ia64*)
16468	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16469	  ;;
16470	*)
16471	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16472	  ;;
16473	esac
16474      fi
16475      if test "$with_gnu_ld" = no; then
16476	case "$host_cpu" in
16477	hppa*64*)
16478	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16479	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16480	  hardcode_libdir_separator_GCJ=:
16481	  hardcode_direct_GCJ=no
16482	  hardcode_shlibpath_var_GCJ=no
16483	  ;;
16484	ia64*)
16485	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16486	  hardcode_direct_GCJ=no
16487	  hardcode_shlibpath_var_GCJ=no
16488
16489	  # hardcode_minus_L: Not really in the search PATH,
16490	  # but as the default location of the library.
16491	  hardcode_minus_L_GCJ=yes
16492	  ;;
16493	*)
16494	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16495	  hardcode_libdir_separator_GCJ=:
16496	  hardcode_direct_GCJ=yes
16497	  export_dynamic_flag_spec_GCJ='${wl}-E'
16498
16499	  # hardcode_minus_L: Not really in the search PATH,
16500	  # but as the default location of the library.
16501	  hardcode_minus_L_GCJ=yes
16502	  ;;
16503	esac
16504      fi
16505      ;;
16506
16507    irix5* | irix6* | nonstopux*)
16508      if test "$GCC" = yes; then
16509	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'
16510      else
16511	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'
16512	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16513      fi
16514      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16515      hardcode_libdir_separator_GCJ=:
16516      link_all_deplibs_GCJ=yes
16517      ;;
16518
16519    netbsd*)
16520      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16521	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16522      else
16523	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16524      fi
16525      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16526      hardcode_direct_GCJ=yes
16527      hardcode_shlibpath_var_GCJ=no
16528      ;;
16529
16530    newsos6)
16531      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532      hardcode_direct_GCJ=yes
16533      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16534      hardcode_libdir_separator_GCJ=:
16535      hardcode_shlibpath_var_GCJ=no
16536      ;;
16537
16538    openbsd*)
16539      hardcode_direct_GCJ=yes
16540      hardcode_shlibpath_var_GCJ=no
16541      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16542	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16543	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16544	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16545	export_dynamic_flag_spec_GCJ='${wl}-E'
16546      else
16547       case $host_os in
16548	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16549	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16550	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16551	   ;;
16552	 *)
16553	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16554	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16555	   ;;
16556       esac
16557      fi
16558      ;;
16559
16560    os2*)
16561      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16562      hardcode_minus_L_GCJ=yes
16563      allow_undefined_flag_GCJ=unsupported
16564      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'
16565      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16566      ;;
16567
16568    osf3*)
16569      if test "$GCC" = yes; then
16570	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16571	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'
16572      else
16573	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16574	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'
16575      fi
16576      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16577      hardcode_libdir_separator_GCJ=:
16578      ;;
16579
16580    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16581      if test "$GCC" = yes; then
16582	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16583	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'
16584	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16585      else
16586	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16587	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'
16588	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~
16589	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16590
16591	# Both c and cxx compiler support -rpath directly
16592	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16593      fi
16594      hardcode_libdir_separator_GCJ=:
16595      ;;
16596
16597    sco3.2v5*)
16598      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599      hardcode_shlibpath_var_GCJ=no
16600      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16601      runpath_var=LD_RUN_PATH
16602      hardcode_runpath_var=yes
16603      ;;
16604
16605    solaris*)
16606      no_undefined_flag_GCJ=' -z text'
16607      if test "$GCC" = yes; then
16608	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16611      else
16612	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16614  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16615      fi
16616      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617      hardcode_shlibpath_var_GCJ=no
16618      case $host_os in
16619      solaris2.[0-5] | solaris2.[0-5].*) ;;
16620      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16621	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16622      esac
16623      link_all_deplibs_GCJ=yes
16624      ;;
16625
16626    sunos4*)
16627      if test "x$host_vendor" = xsequent; then
16628	# Use $CC to link under sequent, because it throws in some extra .o
16629	# files that make .init and .fini sections work.
16630	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16631      else
16632	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16633      fi
16634      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635      hardcode_direct_GCJ=yes
16636      hardcode_minus_L_GCJ=yes
16637      hardcode_shlibpath_var_GCJ=no
16638      ;;
16639
16640    sysv4)
16641      case $host_vendor in
16642	sni)
16643	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644	  hardcode_direct_GCJ=yes # is this really true???
16645	;;
16646	siemens)
16647	  ## LD is ld it makes a PLAMLIB
16648	  ## CC just makes a GrossModule.
16649	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16651	  hardcode_direct_GCJ=no
16652        ;;
16653	motorola)
16654	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16656	;;
16657      esac
16658      runpath_var='LD_RUN_PATH'
16659      hardcode_shlibpath_var_GCJ=no
16660      ;;
16661
16662    sysv4.3*)
16663      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664      hardcode_shlibpath_var_GCJ=no
16665      export_dynamic_flag_spec_GCJ='-Bexport'
16666      ;;
16667
16668    sysv4*MP*)
16669      if test -d /usr/nec; then
16670	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671	hardcode_shlibpath_var_GCJ=no
16672	runpath_var=LD_RUN_PATH
16673	hardcode_runpath_var=yes
16674	ld_shlibs_GCJ=yes
16675      fi
16676      ;;
16677
16678    sysv4.2uw2*)
16679      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16680      hardcode_direct_GCJ=yes
16681      hardcode_minus_L_GCJ=no
16682      hardcode_shlibpath_var_GCJ=no
16683      hardcode_runpath_var=yes
16684      runpath_var=LD_RUN_PATH
16685      ;;
16686
16687   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16688      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16689      if test "$GCC" = yes; then
16690	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691      else
16692	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693      fi
16694      runpath_var='LD_RUN_PATH'
16695      hardcode_shlibpath_var_GCJ=no
16696      ;;
16697
16698    sysv5*)
16699      no_undefined_flag_GCJ=' -z text'
16700      # $CC -shared without GNU ld will not create a library from C++
16701      # object files and a static libstdc++, better avoid it by now
16702      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16705      hardcode_libdir_flag_spec_GCJ=
16706      hardcode_shlibpath_var_GCJ=no
16707      runpath_var='LD_RUN_PATH'
16708      ;;
16709
16710    uts4*)
16711      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16713      hardcode_shlibpath_var_GCJ=no
16714      ;;
16715
16716    *)
16717      ld_shlibs_GCJ=no
16718      ;;
16719    esac
16720  fi
16721
16722echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16723echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16724test "$ld_shlibs_GCJ" = no && can_build_shared=no
16725
16726variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16727if test "$GCC" = yes; then
16728  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16729fi
16730
16731#
16732# Do we need to explicitly link libc?
16733#
16734case "x$archive_cmds_need_lc_GCJ" in
16735x|xyes)
16736  # Assume -lc should be added
16737  archive_cmds_need_lc_GCJ=yes
16738
16739  if test "$enable_shared" = yes && test "$GCC" = yes; then
16740    case $archive_cmds_GCJ in
16741    *'~'*)
16742      # FIXME: we may have to deal with multi-command sequences.
16743      ;;
16744    '$CC '*)
16745      # Test whether the compiler implicitly links with -lc since on some
16746      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16747      # to ld, don't add -lc before -lgcc.
16748      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16749echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16750      $rm conftest*
16751      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16752
16753      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754  (eval $ac_compile) 2>&5
16755  ac_status=$?
16756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757  (exit $ac_status); } 2>conftest.err; then
16758        soname=conftest
16759        lib=conftest
16760        libobjs=conftest.$ac_objext
16761        deplibs=
16762        wl=$lt_prog_compiler_wl_GCJ
16763        compiler_flags=-v
16764        linker_flags=-v
16765        verstring=
16766        output_objdir=.
16767        libname=conftest
16768        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16769        allow_undefined_flag_GCJ=
16770        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16771  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16772  ac_status=$?
16773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774  (exit $ac_status); }
16775        then
16776	  archive_cmds_need_lc_GCJ=no
16777        else
16778	  archive_cmds_need_lc_GCJ=yes
16779        fi
16780        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16781      else
16782        cat conftest.err 1>&5
16783      fi
16784      $rm conftest*
16785      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16786echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16787      ;;
16788    esac
16789  fi
16790  ;;
16791esac
16792
16793echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16794echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16795library_names_spec=
16796libname_spec='lib$name'
16797soname_spec=
16798shrext_cmds=".so"
16799postinstall_cmds=
16800postuninstall_cmds=
16801finish_cmds=
16802finish_eval=
16803shlibpath_var=
16804shlibpath_overrides_runpath=unknown
16805version_type=none
16806dynamic_linker="$host_os ld.so"
16807sys_lib_dlsearch_path_spec="/lib /usr/lib"
16808if test "$GCC" = yes; then
16809  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16810  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16811    # if the path contains ";" then we assume it to be the separator
16812    # otherwise default to the standard path separator (i.e. ":") - it is
16813    # assumed that no part of a normal pathname contains ";" but that should
16814    # okay in the real world where ";" in dirpaths is itself problematic.
16815    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16816  else
16817    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16818  fi
16819else
16820  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16821fi
16822need_lib_prefix=unknown
16823hardcode_into_libs=no
16824
16825# when you set need_version to no, make sure it does not cause -set_version
16826# flags to be left without arguments
16827need_version=unknown
16828
16829case $host_os in
16830aix3*)
16831  version_type=linux
16832  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16833  shlibpath_var=LIBPATH
16834
16835  # AIX 3 has no versioning support, so we append a major version to the name.
16836  soname_spec='${libname}${release}${shared_ext}$major'
16837  ;;
16838
16839aix4* | aix5*)
16840  version_type=linux
16841  need_lib_prefix=no
16842  need_version=no
16843  hardcode_into_libs=yes
16844  if test "$host_cpu" = ia64; then
16845    # AIX 5 supports IA64
16846    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16847    shlibpath_var=LD_LIBRARY_PATH
16848  else
16849    # With GCC up to 2.95.x, collect2 would create an import file
16850    # for dependence libraries.  The import file would start with
16851    # the line `#! .'.  This would cause the generated library to
16852    # depend on `.', always an invalid library.  This was fixed in
16853    # development snapshots of GCC prior to 3.0.
16854    case $host_os in
16855      aix4 | aix4.[01] | aix4.[01].*)
16856      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16857	   echo ' yes '
16858	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16859	:
16860      else
16861	can_build_shared=no
16862      fi
16863      ;;
16864    esac
16865    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16866    # soname into executable. Probably we can add versioning support to
16867    # collect2, so additional links can be useful in future.
16868    if test "$aix_use_runtimelinking" = yes; then
16869      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16870      # instead of lib<name>.a to let people know that these are not
16871      # typical AIX shared libraries.
16872      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873    else
16874      # We preserve .a as extension for shared libraries through AIX4.2
16875      # and later when we are not doing run time linking.
16876      library_names_spec='${libname}${release}.a $libname.a'
16877      soname_spec='${libname}${release}${shared_ext}$major'
16878    fi
16879    shlibpath_var=LIBPATH
16880  fi
16881  ;;
16882
16883amigaos*)
16884  library_names_spec='$libname.ixlibrary $libname.a'
16885  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16886  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'
16887  ;;
16888
16889beos*)
16890  library_names_spec='${libname}${shared_ext}'
16891  dynamic_linker="$host_os ld.so"
16892  shlibpath_var=LIBRARY_PATH
16893  ;;
16894
16895bsdi[45]*)
16896  version_type=linux
16897  need_version=no
16898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899  soname_spec='${libname}${release}${shared_ext}$major'
16900  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16901  shlibpath_var=LD_LIBRARY_PATH
16902  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16903  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16904  # the default ld.so.conf also contains /usr/contrib/lib and
16905  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16906  # libtool to hard-code these into programs
16907  ;;
16908
16909cygwin* | mingw* | pw32*)
16910  version_type=windows
16911  shrext_cmds=".dll"
16912  need_version=no
16913  need_lib_prefix=no
16914
16915  case $GCC,$host_os in
16916  yes,cygwin* | yes,mingw* | yes,pw32*)
16917    library_names_spec='$libname.dll.a'
16918    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16919    postinstall_cmds='base_file=`basename \${file}`~
16920      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16921      dldir=$destdir/`dirname \$dlpath`~
16922      test -d \$dldir || mkdir -p \$dldir~
16923      $install_prog $dir/$dlname \$dldir/$dlname'
16924    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16925      dlpath=$dir/\$dldll~
16926       $rm \$dlpath'
16927    shlibpath_overrides_runpath=yes
16928
16929    case $host_os in
16930    cygwin*)
16931      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16932      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16934      ;;
16935    mingw*)
16936      # MinGW DLLs use traditional 'lib' prefix
16937      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16938      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16939      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16940        # It is most probably a Windows format PATH printed by
16941        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16942        # path with ; separators, and with drive letters. We can handle the
16943        # drive letters (cygwin fileutils understands them), so leave them,
16944        # especially as we might pass files found there to a mingw objdump,
16945        # which wouldn't understand a cygwinified path. Ahh.
16946        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16947      else
16948        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16949      fi
16950      ;;
16951    pw32*)
16952      # pw32 DLLs use 'pw' prefix rather than 'lib'
16953      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16954      ;;
16955    esac
16956    ;;
16957
16958  *)
16959    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16960    ;;
16961  esac
16962  dynamic_linker='Win32 ld.exe'
16963  # FIXME: first we should search . and the directory the executable is in
16964  shlibpath_var=PATH
16965  ;;
16966
16967darwin* | rhapsody*)
16968  dynamic_linker="$host_os dyld"
16969  version_type=darwin
16970  need_lib_prefix=no
16971  need_version=no
16972  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16973  soname_spec='${libname}${release}${major}$shared_ext'
16974  shlibpath_overrides_runpath=yes
16975  shlibpath_var=DYLD_LIBRARY_PATH
16976  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16977  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16978  if test "$GCC" = yes; then
16979    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"`
16980  else
16981    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16982  fi
16983  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16984  ;;
16985
16986dgux*)
16987  version_type=linux
16988  need_lib_prefix=no
16989  need_version=no
16990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16991  soname_spec='${libname}${release}${shared_ext}$major'
16992  shlibpath_var=LD_LIBRARY_PATH
16993  ;;
16994
16995freebsd1*)
16996  dynamic_linker=no
16997  ;;
16998
16999kfreebsd*-gnu)
17000  version_type=linux
17001  need_lib_prefix=no
17002  need_version=no
17003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17004  soname_spec='${libname}${release}${shared_ext}$major'
17005  shlibpath_var=LD_LIBRARY_PATH
17006  shlibpath_overrides_runpath=no
17007  hardcode_into_libs=yes
17008  dynamic_linker='GNU ld.so'
17009  ;;
17010
17011freebsd*)
17012  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17013  version_type=freebsd-$objformat
17014  case $version_type in
17015    freebsd-elf*)
17016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17017      need_version=no
17018      need_lib_prefix=no
17019      ;;
17020    freebsd-*)
17021      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17022      need_version=yes
17023      ;;
17024  esac
17025  shlibpath_var=LD_LIBRARY_PATH
17026  case $host_os in
17027  freebsd2*)
17028    shlibpath_overrides_runpath=yes
17029    ;;
17030  freebsd3.01* | freebsdelf3.01*)
17031    shlibpath_overrides_runpath=yes
17032    hardcode_into_libs=yes
17033    ;;
17034  *) # from 3.2 on
17035    shlibpath_overrides_runpath=no
17036    hardcode_into_libs=yes
17037    ;;
17038  esac
17039  ;;
17040
17041gnu*)
17042  version_type=linux
17043  need_lib_prefix=no
17044  need_version=no
17045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17046  soname_spec='${libname}${release}${shared_ext}$major'
17047  shlibpath_var=LD_LIBRARY_PATH
17048  hardcode_into_libs=yes
17049  ;;
17050
17051hpux9* | hpux10* | hpux11*)
17052  # Give a soname corresponding to the major version so that dld.sl refuses to
17053  # link against other versions.
17054  version_type=sunos
17055  need_lib_prefix=no
17056  need_version=no
17057  case "$host_cpu" in
17058  ia64*)
17059    shrext_cmds='.so'
17060    hardcode_into_libs=yes
17061    dynamic_linker="$host_os dld.so"
17062    shlibpath_var=LD_LIBRARY_PATH
17063    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065    soname_spec='${libname}${release}${shared_ext}$major'
17066    if test "X$HPUX_IA64_MODE" = X32; then
17067      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17068    else
17069      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17070    fi
17071    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17072    ;;
17073   hppa*64*)
17074     shrext_cmds='.sl'
17075     hardcode_into_libs=yes
17076     dynamic_linker="$host_os dld.sl"
17077     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080     soname_spec='${libname}${release}${shared_ext}$major'
17081     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17083     ;;
17084   *)
17085    shrext_cmds='.sl'
17086    dynamic_linker="$host_os dld.sl"
17087    shlibpath_var=SHLIB_PATH
17088    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17089    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090    soname_spec='${libname}${release}${shared_ext}$major'
17091    ;;
17092  esac
17093  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17094  postinstall_cmds='chmod 555 $lib'
17095  ;;
17096
17097irix5* | irix6* | nonstopux*)
17098  case $host_os in
17099    nonstopux*) version_type=nonstopux ;;
17100    *)
17101	if test "$lt_cv_prog_gnu_ld" = yes; then
17102		version_type=linux
17103	else
17104		version_type=irix
17105	fi ;;
17106  esac
17107  need_lib_prefix=no
17108  need_version=no
17109  soname_spec='${libname}${release}${shared_ext}$major'
17110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17111  case $host_os in
17112  irix5* | nonstopux*)
17113    libsuff= shlibsuff=
17114    ;;
17115  *)
17116    case $LD in # libtool.m4 will add one of these switches to LD
17117    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17118      libsuff= shlibsuff= libmagic=32-bit;;
17119    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17120      libsuff=32 shlibsuff=N32 libmagic=N32;;
17121    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17122      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17123    *) libsuff= shlibsuff= libmagic=never-match;;
17124    esac
17125    ;;
17126  esac
17127  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17128  shlibpath_overrides_runpath=no
17129  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17130  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17131  hardcode_into_libs=yes
17132  ;;
17133
17134# No shared lib support for Linux oldld, aout, or coff.
17135linux*oldld* | linux*aout* | linux*coff*)
17136  dynamic_linker=no
17137  ;;
17138
17139# This must be Linux ELF.
17140linux*)
17141  version_type=linux
17142  need_lib_prefix=no
17143  need_version=no
17144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145  soname_spec='${libname}${release}${shared_ext}$major'
17146  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17147  shlibpath_var=LD_LIBRARY_PATH
17148  shlibpath_overrides_runpath=no
17149  # This implies no fast_install, which is unacceptable.
17150  # Some rework will be needed to allow for fast_install
17151  # before this can be enabled.
17152  hardcode_into_libs=yes
17153
17154  # Append ld.so.conf contents to the search path
17155  if test -f /etc/ld.so.conf; then
17156    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17157    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17158  fi
17159
17160  # We used to test for /lib/ld.so.1 and disable shared libraries on
17161  # powerpc, because MkLinux only supported shared libraries with the
17162  # GNU dynamic linker.  Since this was broken with cross compilers,
17163  # most powerpc-linux boxes support dynamic linking these days and
17164  # people can always --disable-shared, the test was removed, and we
17165  # assume the GNU/Linux dynamic linker is in use.
17166  dynamic_linker='GNU/Linux ld.so'
17167  ;;
17168
17169knetbsd*-gnu)
17170  version_type=linux
17171  need_lib_prefix=no
17172  need_version=no
17173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17174  soname_spec='${libname}${release}${shared_ext}$major'
17175  shlibpath_var=LD_LIBRARY_PATH
17176  shlibpath_overrides_runpath=no
17177  hardcode_into_libs=yes
17178  dynamic_linker='GNU ld.so'
17179  ;;
17180
17181netbsd*)
17182  version_type=sunos
17183  need_lib_prefix=no
17184  need_version=no
17185  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17186    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17187    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17188    dynamic_linker='NetBSD (a.out) ld.so'
17189  else
17190    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17191    soname_spec='${libname}${release}${shared_ext}$major'
17192    dynamic_linker='NetBSD ld.elf_so'
17193  fi
17194  shlibpath_var=LD_LIBRARY_PATH
17195  shlibpath_overrides_runpath=yes
17196  hardcode_into_libs=yes
17197  ;;
17198
17199newsos6)
17200  version_type=linux
17201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202  shlibpath_var=LD_LIBRARY_PATH
17203  shlibpath_overrides_runpath=yes
17204  ;;
17205
17206nto-qnx*)
17207  version_type=linux
17208  need_lib_prefix=no
17209  need_version=no
17210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211  soname_spec='${libname}${release}${shared_ext}$major'
17212  shlibpath_var=LD_LIBRARY_PATH
17213  shlibpath_overrides_runpath=yes
17214  ;;
17215
17216openbsd*)
17217  version_type=sunos
17218  need_lib_prefix=no
17219  need_version=no
17220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222  shlibpath_var=LD_LIBRARY_PATH
17223  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17224    case $host_os in
17225      openbsd2.[89] | openbsd2.[89].*)
17226	shlibpath_overrides_runpath=no
17227	;;
17228      *)
17229	shlibpath_overrides_runpath=yes
17230	;;
17231      esac
17232  else
17233    shlibpath_overrides_runpath=yes
17234  fi
17235  ;;
17236
17237os2*)
17238  libname_spec='$name'
17239  shrext_cmds=".dll"
17240  need_lib_prefix=no
17241  library_names_spec='$libname${shared_ext} $libname.a'
17242  dynamic_linker='OS/2 ld.exe'
17243  shlibpath_var=LIBPATH
17244  ;;
17245
17246osf3* | osf4* | osf5*)
17247  version_type=osf
17248  need_lib_prefix=no
17249  need_version=no
17250  soname_spec='${libname}${release}${shared_ext}$major'
17251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252  shlibpath_var=LD_LIBRARY_PATH
17253  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17254  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17255  ;;
17256
17257sco3.2v5*)
17258  version_type=osf
17259  soname_spec='${libname}${release}${shared_ext}$major'
17260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261  shlibpath_var=LD_LIBRARY_PATH
17262  ;;
17263
17264solaris*)
17265  version_type=linux
17266  need_lib_prefix=no
17267  need_version=no
17268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269  soname_spec='${libname}${release}${shared_ext}$major'
17270  shlibpath_var=LD_LIBRARY_PATH
17271  shlibpath_overrides_runpath=yes
17272  hardcode_into_libs=yes
17273  # ldd complains unless libraries are executable
17274  postinstall_cmds='chmod +x $lib'
17275  ;;
17276
17277sunos4*)
17278  version_type=sunos
17279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17280  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17281  shlibpath_var=LD_LIBRARY_PATH
17282  shlibpath_overrides_runpath=yes
17283  if test "$with_gnu_ld" = yes; then
17284    need_lib_prefix=no
17285  fi
17286  need_version=yes
17287  ;;
17288
17289sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17290  version_type=linux
17291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292  soname_spec='${libname}${release}${shared_ext}$major'
17293  shlibpath_var=LD_LIBRARY_PATH
17294  case $host_vendor in
17295    sni)
17296      shlibpath_overrides_runpath=no
17297      need_lib_prefix=no
17298      export_dynamic_flag_spec='${wl}-Blargedynsym'
17299      runpath_var=LD_RUN_PATH
17300      ;;
17301    siemens)
17302      need_lib_prefix=no
17303      ;;
17304    motorola)
17305      need_lib_prefix=no
17306      need_version=no
17307      shlibpath_overrides_runpath=no
17308      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17309      ;;
17310  esac
17311  ;;
17312
17313sysv4*MP*)
17314  if test -d /usr/nec ;then
17315    version_type=linux
17316    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17317    soname_spec='$libname${shared_ext}.$major'
17318    shlibpath_var=LD_LIBRARY_PATH
17319  fi
17320  ;;
17321
17322uts4*)
17323  version_type=linux
17324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325  soname_spec='${libname}${release}${shared_ext}$major'
17326  shlibpath_var=LD_LIBRARY_PATH
17327  ;;
17328
17329*)
17330  dynamic_linker=no
17331  ;;
17332esac
17333echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17334echo "${ECHO_T}$dynamic_linker" >&6
17335test "$dynamic_linker" = no && can_build_shared=no
17336
17337echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17338echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17339hardcode_action_GCJ=
17340if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17341   test -n "$runpath_var_GCJ" || \
17342   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17343
17344  # We can hardcode non-existant directories.
17345  if test "$hardcode_direct_GCJ" != no &&
17346     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17347     # have to relink, otherwise we might link with an installed library
17348     # when we should be linking with a yet-to-be-installed one
17349     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17350     test "$hardcode_minus_L_GCJ" != no; then
17351    # Linking always hardcodes the temporary library directory.
17352    hardcode_action_GCJ=relink
17353  else
17354    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17355    hardcode_action_GCJ=immediate
17356  fi
17357else
17358  # We cannot hardcode anything, or else we can only hardcode existing
17359  # directories.
17360  hardcode_action_GCJ=unsupported
17361fi
17362echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17363echo "${ECHO_T}$hardcode_action_GCJ" >&6
17364
17365if test "$hardcode_action_GCJ" = relink; then
17366  # Fast installation is not supported
17367  enable_fast_install=no
17368elif test "$shlibpath_overrides_runpath" = yes ||
17369     test "$enable_shared" = no; then
17370  # Fast installation is not necessary
17371  enable_fast_install=needless
17372fi
17373
17374striplib=
17375old_striplib=
17376echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17377echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17378if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17379  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17380  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17381  echo "$as_me:$LINENO: result: yes" >&5
17382echo "${ECHO_T}yes" >&6
17383else
17384# FIXME - insert some real tests, host_os isn't really good enough
17385  case $host_os in
17386   darwin*)
17387       if test -n "$STRIP" ; then
17388         striplib="$STRIP -x"
17389         echo "$as_me:$LINENO: result: yes" >&5
17390echo "${ECHO_T}yes" >&6
17391       else
17392  echo "$as_me:$LINENO: result: no" >&5
17393echo "${ECHO_T}no" >&6
17394fi
17395       ;;
17396   *)
17397  echo "$as_me:$LINENO: result: no" >&5
17398echo "${ECHO_T}no" >&6
17399    ;;
17400  esac
17401fi
17402
17403if test "x$enable_dlopen" != xyes; then
17404  enable_dlopen=unknown
17405  enable_dlopen_self=unknown
17406  enable_dlopen_self_static=unknown
17407else
17408  lt_cv_dlopen=no
17409  lt_cv_dlopen_libs=
17410
17411  case $host_os in
17412  beos*)
17413    lt_cv_dlopen="load_add_on"
17414    lt_cv_dlopen_libs=
17415    lt_cv_dlopen_self=yes
17416    ;;
17417
17418  mingw* | pw32*)
17419    lt_cv_dlopen="LoadLibrary"
17420    lt_cv_dlopen_libs=
17421   ;;
17422
17423  cygwin*)
17424    lt_cv_dlopen="dlopen"
17425    lt_cv_dlopen_libs=
17426   ;;
17427
17428  darwin*)
17429  # if libdl is installed we need to link against it
17430    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17431echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17432if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17433  echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435  ac_check_lib_save_LIBS=$LIBS
17436LIBS="-ldl  $LIBS"
17437cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h.  */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h.  */
17443
17444/* Override any gcc2 internal prototype to avoid an error.  */
17445#ifdef __cplusplus
17446extern "C"
17447#endif
17448/* We use char because int might match the return type of a gcc2
17449   builtin and then its argument prototype would still apply.  */
17450char dlopen ();
17451int
17452main ()
17453{
17454dlopen ();
17455  ;
17456  return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext conftest$ac_exeext
17460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461  (eval $ac_link) 2>conftest.er1
17462  ac_status=$?
17463  grep -v '^ *+' conftest.er1 >conftest.err
17464  rm -f conftest.er1
17465  cat conftest.err >&5
17466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467  (exit $ac_status); } &&
17468	 { ac_try='test -z "$ac_c_werror_flag"
17469			 || test ! -s conftest.err'
17470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471  (eval $ac_try) 2>&5
17472  ac_status=$?
17473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474  (exit $ac_status); }; } &&
17475	 { ac_try='test -s conftest$ac_exeext'
17476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477  (eval $ac_try) 2>&5
17478  ac_status=$?
17479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480  (exit $ac_status); }; }; then
17481  ac_cv_lib_dl_dlopen=yes
17482else
17483  echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_cv_lib_dl_dlopen=no
17487fi
17488rm -f conftest.err conftest.$ac_objext \
17489      conftest$ac_exeext conftest.$ac_ext
17490LIBS=$ac_check_lib_save_LIBS
17491fi
17492echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17493echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17494if test $ac_cv_lib_dl_dlopen = yes; then
17495  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17496else
17497
17498    lt_cv_dlopen="dyld"
17499    lt_cv_dlopen_libs=
17500    lt_cv_dlopen_self=yes
17501
17502fi
17503
17504   ;;
17505
17506  *)
17507    echo "$as_me:$LINENO: checking for shl_load" >&5
17508echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17509if test "${ac_cv_func_shl_load+set}" = set; then
17510  echo $ECHO_N "(cached) $ECHO_C" >&6
17511else
17512  cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h.  */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h.  */
17518/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17519   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17520#define shl_load innocuous_shl_load
17521
17522/* System header to define __stub macros and hopefully few prototypes,
17523    which can conflict with char shl_load (); below.
17524    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17525    <limits.h> exists even on freestanding compilers.  */
17526
17527#ifdef __STDC__
17528# include <limits.h>
17529#else
17530# include <assert.h>
17531#endif
17532
17533#undef shl_load
17534
17535/* Override any gcc2 internal prototype to avoid an error.  */
17536#ifdef __cplusplus
17537extern "C"
17538{
17539#endif
17540/* We use char because int might match the return type of a gcc2
17541   builtin and then its argument prototype would still apply.  */
17542char shl_load ();
17543/* The GNU C library defines this for functions which it implements
17544    to always fail with ENOSYS.  Some functions are actually named
17545    something starting with __ and the normal name is an alias.  */
17546#if defined (__stub_shl_load) || defined (__stub___shl_load)
17547choke me
17548#else
17549char (*f) () = shl_load;
17550#endif
17551#ifdef __cplusplus
17552}
17553#endif
17554
17555int
17556main ()
17557{
17558return f != shl_load;
17559  ;
17560  return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
17564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17565  (eval $ac_link) 2>conftest.er1
17566  ac_status=$?
17567  grep -v '^ *+' conftest.er1 >conftest.err
17568  rm -f conftest.er1
17569  cat conftest.err >&5
17570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571  (exit $ac_status); } &&
17572	 { ac_try='test -z "$ac_c_werror_flag"
17573			 || test ! -s conftest.err'
17574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575  (eval $ac_try) 2>&5
17576  ac_status=$?
17577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578  (exit $ac_status); }; } &&
17579	 { ac_try='test -s conftest$ac_exeext'
17580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581  (eval $ac_try) 2>&5
17582  ac_status=$?
17583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584  (exit $ac_status); }; }; then
17585  ac_cv_func_shl_load=yes
17586else
17587  echo "$as_me: failed program was:" >&5
17588sed 's/^/| /' conftest.$ac_ext >&5
17589
17590ac_cv_func_shl_load=no
17591fi
17592rm -f conftest.err conftest.$ac_objext \
17593      conftest$ac_exeext conftest.$ac_ext
17594fi
17595echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17596echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17597if test $ac_cv_func_shl_load = yes; then
17598  lt_cv_dlopen="shl_load"
17599else
17600  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17601echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17602if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17603  echo $ECHO_N "(cached) $ECHO_C" >&6
17604else
17605  ac_check_lib_save_LIBS=$LIBS
17606LIBS="-ldld  $LIBS"
17607cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h.  */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h.  */
17613
17614/* Override any gcc2 internal prototype to avoid an error.  */
17615#ifdef __cplusplus
17616extern "C"
17617#endif
17618/* We use char because int might match the return type of a gcc2
17619   builtin and then its argument prototype would still apply.  */
17620char shl_load ();
17621int
17622main ()
17623{
17624shl_load ();
17625  ;
17626  return 0;
17627}
17628_ACEOF
17629rm -f conftest.$ac_objext conftest$ac_exeext
17630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631  (eval $ac_link) 2>conftest.er1
17632  ac_status=$?
17633  grep -v '^ *+' conftest.er1 >conftest.err
17634  rm -f conftest.er1
17635  cat conftest.err >&5
17636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637  (exit $ac_status); } &&
17638	 { ac_try='test -z "$ac_c_werror_flag"
17639			 || test ! -s conftest.err'
17640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641  (eval $ac_try) 2>&5
17642  ac_status=$?
17643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644  (exit $ac_status); }; } &&
17645	 { ac_try='test -s conftest$ac_exeext'
17646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647  (eval $ac_try) 2>&5
17648  ac_status=$?
17649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650  (exit $ac_status); }; }; then
17651  ac_cv_lib_dld_shl_load=yes
17652else
17653  echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656ac_cv_lib_dld_shl_load=no
17657fi
17658rm -f conftest.err conftest.$ac_objext \
17659      conftest$ac_exeext conftest.$ac_ext
17660LIBS=$ac_check_lib_save_LIBS
17661fi
17662echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17663echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17664if test $ac_cv_lib_dld_shl_load = yes; then
17665  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17666else
17667  echo "$as_me:$LINENO: checking for dlopen" >&5
17668echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17669if test "${ac_cv_func_dlopen+set}" = set; then
17670  echo $ECHO_N "(cached) $ECHO_C" >&6
17671else
17672  cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h.  */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h.  */
17678/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17679   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17680#define dlopen innocuous_dlopen
17681
17682/* System header to define __stub macros and hopefully few prototypes,
17683    which can conflict with char dlopen (); below.
17684    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685    <limits.h> exists even on freestanding compilers.  */
17686
17687#ifdef __STDC__
17688# include <limits.h>
17689#else
17690# include <assert.h>
17691#endif
17692
17693#undef dlopen
17694
17695/* Override any gcc2 internal prototype to avoid an error.  */
17696#ifdef __cplusplus
17697extern "C"
17698{
17699#endif
17700/* We use char because int might match the return type of a gcc2
17701   builtin and then its argument prototype would still apply.  */
17702char dlopen ();
17703/* The GNU C library defines this for functions which it implements
17704    to always fail with ENOSYS.  Some functions are actually named
17705    something starting with __ and the normal name is an alias.  */
17706#if defined (__stub_dlopen) || defined (__stub___dlopen)
17707choke me
17708#else
17709char (*f) () = dlopen;
17710#endif
17711#ifdef __cplusplus
17712}
17713#endif
17714
17715int
17716main ()
17717{
17718return f != dlopen;
17719  ;
17720  return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext conftest$ac_exeext
17724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725  (eval $ac_link) 2>conftest.er1
17726  ac_status=$?
17727  grep -v '^ *+' conftest.er1 >conftest.err
17728  rm -f conftest.er1
17729  cat conftest.err >&5
17730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731  (exit $ac_status); } &&
17732	 { ac_try='test -z "$ac_c_werror_flag"
17733			 || test ! -s conftest.err'
17734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735  (eval $ac_try) 2>&5
17736  ac_status=$?
17737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738  (exit $ac_status); }; } &&
17739	 { ac_try='test -s conftest$ac_exeext'
17740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741  (eval $ac_try) 2>&5
17742  ac_status=$?
17743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744  (exit $ac_status); }; }; then
17745  ac_cv_func_dlopen=yes
17746else
17747  echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750ac_cv_func_dlopen=no
17751fi
17752rm -f conftest.err conftest.$ac_objext \
17753      conftest$ac_exeext conftest.$ac_ext
17754fi
17755echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17756echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17757if test $ac_cv_func_dlopen = yes; then
17758  lt_cv_dlopen="dlopen"
17759else
17760  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17763  echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765  ac_check_lib_save_LIBS=$LIBS
17766LIBS="-ldl  $LIBS"
17767cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h.  */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h.  */
17773
17774/* Override any gcc2 internal prototype to avoid an error.  */
17775#ifdef __cplusplus
17776extern "C"
17777#endif
17778/* We use char because int might match the return type of a gcc2
17779   builtin and then its argument prototype would still apply.  */
17780char dlopen ();
17781int
17782main ()
17783{
17784dlopen ();
17785  ;
17786  return 0;
17787}
17788_ACEOF
17789rm -f conftest.$ac_objext conftest$ac_exeext
17790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791  (eval $ac_link) 2>conftest.er1
17792  ac_status=$?
17793  grep -v '^ *+' conftest.er1 >conftest.err
17794  rm -f conftest.er1
17795  cat conftest.err >&5
17796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797  (exit $ac_status); } &&
17798	 { ac_try='test -z "$ac_c_werror_flag"
17799			 || test ! -s conftest.err'
17800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801  (eval $ac_try) 2>&5
17802  ac_status=$?
17803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804  (exit $ac_status); }; } &&
17805	 { ac_try='test -s conftest$ac_exeext'
17806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807  (eval $ac_try) 2>&5
17808  ac_status=$?
17809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810  (exit $ac_status); }; }; then
17811  ac_cv_lib_dl_dlopen=yes
17812else
17813  echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816ac_cv_lib_dl_dlopen=no
17817fi
17818rm -f conftest.err conftest.$ac_objext \
17819      conftest$ac_exeext conftest.$ac_ext
17820LIBS=$ac_check_lib_save_LIBS
17821fi
17822echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17823echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17824if test $ac_cv_lib_dl_dlopen = yes; then
17825  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826else
17827  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17828echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17829if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17830  echo $ECHO_N "(cached) $ECHO_C" >&6
17831else
17832  ac_check_lib_save_LIBS=$LIBS
17833LIBS="-lsvld  $LIBS"
17834cat >conftest.$ac_ext <<_ACEOF
17835/* confdefs.h.  */
17836_ACEOF
17837cat confdefs.h >>conftest.$ac_ext
17838cat >>conftest.$ac_ext <<_ACEOF
17839/* end confdefs.h.  */
17840
17841/* Override any gcc2 internal prototype to avoid an error.  */
17842#ifdef __cplusplus
17843extern "C"
17844#endif
17845/* We use char because int might match the return type of a gcc2
17846   builtin and then its argument prototype would still apply.  */
17847char dlopen ();
17848int
17849main ()
17850{
17851dlopen ();
17852  ;
17853  return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext conftest$ac_exeext
17857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17858  (eval $ac_link) 2>conftest.er1
17859  ac_status=$?
17860  grep -v '^ *+' conftest.er1 >conftest.err
17861  rm -f conftest.er1
17862  cat conftest.err >&5
17863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864  (exit $ac_status); } &&
17865	 { ac_try='test -z "$ac_c_werror_flag"
17866			 || test ! -s conftest.err'
17867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868  (eval $ac_try) 2>&5
17869  ac_status=$?
17870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871  (exit $ac_status); }; } &&
17872	 { ac_try='test -s conftest$ac_exeext'
17873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874  (eval $ac_try) 2>&5
17875  ac_status=$?
17876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877  (exit $ac_status); }; }; then
17878  ac_cv_lib_svld_dlopen=yes
17879else
17880  echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883ac_cv_lib_svld_dlopen=no
17884fi
17885rm -f conftest.err conftest.$ac_objext \
17886      conftest$ac_exeext conftest.$ac_ext
17887LIBS=$ac_check_lib_save_LIBS
17888fi
17889echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17890echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17891if test $ac_cv_lib_svld_dlopen = yes; then
17892  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17893else
17894  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17895echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17896if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17897  echo $ECHO_N "(cached) $ECHO_C" >&6
17898else
17899  ac_check_lib_save_LIBS=$LIBS
17900LIBS="-ldld  $LIBS"
17901cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h.  */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h.  */
17907
17908/* Override any gcc2 internal prototype to avoid an error.  */
17909#ifdef __cplusplus
17910extern "C"
17911#endif
17912/* We use char because int might match the return type of a gcc2
17913   builtin and then its argument prototype would still apply.  */
17914char dld_link ();
17915int
17916main ()
17917{
17918dld_link ();
17919  ;
17920  return 0;
17921}
17922_ACEOF
17923rm -f conftest.$ac_objext conftest$ac_exeext
17924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17925  (eval $ac_link) 2>conftest.er1
17926  ac_status=$?
17927  grep -v '^ *+' conftest.er1 >conftest.err
17928  rm -f conftest.er1
17929  cat conftest.err >&5
17930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931  (exit $ac_status); } &&
17932	 { ac_try='test -z "$ac_c_werror_flag"
17933			 || test ! -s conftest.err'
17934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935  (eval $ac_try) 2>&5
17936  ac_status=$?
17937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938  (exit $ac_status); }; } &&
17939	 { ac_try='test -s conftest$ac_exeext'
17940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941  (eval $ac_try) 2>&5
17942  ac_status=$?
17943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944  (exit $ac_status); }; }; then
17945  ac_cv_lib_dld_dld_link=yes
17946else
17947  echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950ac_cv_lib_dld_dld_link=no
17951fi
17952rm -f conftest.err conftest.$ac_objext \
17953      conftest$ac_exeext conftest.$ac_ext
17954LIBS=$ac_check_lib_save_LIBS
17955fi
17956echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17957echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17958if test $ac_cv_lib_dld_dld_link = yes; then
17959  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17960fi
17961
17962
17963fi
17964
17965
17966fi
17967
17968
17969fi
17970
17971
17972fi
17973
17974
17975fi
17976
17977    ;;
17978  esac
17979
17980  if test "x$lt_cv_dlopen" != xno; then
17981    enable_dlopen=yes
17982  else
17983    enable_dlopen=no
17984  fi
17985
17986  case $lt_cv_dlopen in
17987  dlopen)
17988    save_CPPFLAGS="$CPPFLAGS"
17989    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17990
17991    save_LDFLAGS="$LDFLAGS"
17992    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17993
17994    save_LIBS="$LIBS"
17995    LIBS="$lt_cv_dlopen_libs $LIBS"
17996
17997    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17998echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17999if test "${lt_cv_dlopen_self+set}" = set; then
18000  echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002  	  if test "$cross_compiling" = yes; then :
18003  lt_cv_dlopen_self=cross
18004else
18005  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18006  lt_status=$lt_dlunknown
18007  cat > conftest.$ac_ext <<EOF
18008#line 18008 "configure"
18009#include "confdefs.h"
18010
18011#if HAVE_DLFCN_H
18012#include <dlfcn.h>
18013#endif
18014
18015#include <stdio.h>
18016
18017#ifdef RTLD_GLOBAL
18018#  define LT_DLGLOBAL		RTLD_GLOBAL
18019#else
18020#  ifdef DL_GLOBAL
18021#    define LT_DLGLOBAL		DL_GLOBAL
18022#  else
18023#    define LT_DLGLOBAL		0
18024#  endif
18025#endif
18026
18027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18028   find out it does not work in some platform. */
18029#ifndef LT_DLLAZY_OR_NOW
18030#  ifdef RTLD_LAZY
18031#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18032#  else
18033#    ifdef DL_LAZY
18034#      define LT_DLLAZY_OR_NOW		DL_LAZY
18035#    else
18036#      ifdef RTLD_NOW
18037#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18038#      else
18039#        ifdef DL_NOW
18040#          define LT_DLLAZY_OR_NOW	DL_NOW
18041#        else
18042#          define LT_DLLAZY_OR_NOW	0
18043#        endif
18044#      endif
18045#    endif
18046#  endif
18047#endif
18048
18049#ifdef __cplusplus
18050extern "C" void exit (int);
18051#endif
18052
18053void fnord() { int i=42;}
18054int main ()
18055{
18056  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18057  int status = $lt_dlunknown;
18058
18059  if (self)
18060    {
18061      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18062      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18063      /* dlclose (self); */
18064    }
18065
18066    exit (status);
18067}
18068EOF
18069  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070  (eval $ac_link) 2>&5
18071  ac_status=$?
18072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18074    (./conftest; exit; ) 2>/dev/null
18075    lt_status=$?
18076    case x$lt_status in
18077      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18078      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18079      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18080    esac
18081  else :
18082    # compilation failed
18083    lt_cv_dlopen_self=no
18084  fi
18085fi
18086rm -fr conftest*
18087
18088
18089fi
18090echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18091echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18092
18093    if test "x$lt_cv_dlopen_self" = xyes; then
18094      LDFLAGS="$LDFLAGS $link_static_flag"
18095      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18096echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18097if test "${lt_cv_dlopen_self_static+set}" = set; then
18098  echo $ECHO_N "(cached) $ECHO_C" >&6
18099else
18100  	  if test "$cross_compiling" = yes; then :
18101  lt_cv_dlopen_self_static=cross
18102else
18103  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18104  lt_status=$lt_dlunknown
18105  cat > conftest.$ac_ext <<EOF
18106#line 18106 "configure"
18107#include "confdefs.h"
18108
18109#if HAVE_DLFCN_H
18110#include <dlfcn.h>
18111#endif
18112
18113#include <stdio.h>
18114
18115#ifdef RTLD_GLOBAL
18116#  define LT_DLGLOBAL		RTLD_GLOBAL
18117#else
18118#  ifdef DL_GLOBAL
18119#    define LT_DLGLOBAL		DL_GLOBAL
18120#  else
18121#    define LT_DLGLOBAL		0
18122#  endif
18123#endif
18124
18125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18126   find out it does not work in some platform. */
18127#ifndef LT_DLLAZY_OR_NOW
18128#  ifdef RTLD_LAZY
18129#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18130#  else
18131#    ifdef DL_LAZY
18132#      define LT_DLLAZY_OR_NOW		DL_LAZY
18133#    else
18134#      ifdef RTLD_NOW
18135#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18136#      else
18137#        ifdef DL_NOW
18138#          define LT_DLLAZY_OR_NOW	DL_NOW
18139#        else
18140#          define LT_DLLAZY_OR_NOW	0
18141#        endif
18142#      endif
18143#    endif
18144#  endif
18145#endif
18146
18147#ifdef __cplusplus
18148extern "C" void exit (int);
18149#endif
18150
18151void fnord() { int i=42;}
18152int main ()
18153{
18154  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18155  int status = $lt_dlunknown;
18156
18157  if (self)
18158    {
18159      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18160      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18161      /* dlclose (self); */
18162    }
18163
18164    exit (status);
18165}
18166EOF
18167  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18168  (eval $ac_link) 2>&5
18169  ac_status=$?
18170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18172    (./conftest; exit; ) 2>/dev/null
18173    lt_status=$?
18174    case x$lt_status in
18175      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18176      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18177      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18178    esac
18179  else :
18180    # compilation failed
18181    lt_cv_dlopen_self_static=no
18182  fi
18183fi
18184rm -fr conftest*
18185
18186
18187fi
18188echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18189echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18190    fi
18191
18192    CPPFLAGS="$save_CPPFLAGS"
18193    LDFLAGS="$save_LDFLAGS"
18194    LIBS="$save_LIBS"
18195    ;;
18196  esac
18197
18198  case $lt_cv_dlopen_self in
18199  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18200  *) enable_dlopen_self=unknown ;;
18201  esac
18202
18203  case $lt_cv_dlopen_self_static in
18204  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18205  *) enable_dlopen_self_static=unknown ;;
18206  esac
18207fi
18208
18209
18210# The else clause should only fire when bootstrapping the
18211# libtool distribution, otherwise you forgot to ship ltmain.sh
18212# with your package, and you will get complaints that there are
18213# no rules to generate ltmain.sh.
18214if test -f "$ltmain"; then
18215  # See if we are running on zsh, and set the options which allow our commands through
18216  # without removal of \ escapes.
18217  if test -n "${ZSH_VERSION+set}" ; then
18218    setopt NO_GLOB_SUBST
18219  fi
18220  # Now quote all the things that may contain metacharacters while being
18221  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18222  # variables and quote the copies for generation of the libtool script.
18223  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18224    SED SHELL STRIP \
18225    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18226    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18227    deplibs_check_method reload_flag reload_cmds need_locks \
18228    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18229    lt_cv_sys_global_symbol_to_c_name_address \
18230    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18231    old_postinstall_cmds old_postuninstall_cmds \
18232    compiler_GCJ \
18233    CC_GCJ \
18234    LD_GCJ \
18235    lt_prog_compiler_wl_GCJ \
18236    lt_prog_compiler_pic_GCJ \
18237    lt_prog_compiler_static_GCJ \
18238    lt_prog_compiler_no_builtin_flag_GCJ \
18239    export_dynamic_flag_spec_GCJ \
18240    thread_safe_flag_spec_GCJ \
18241    whole_archive_flag_spec_GCJ \
18242    enable_shared_with_static_runtimes_GCJ \
18243    old_archive_cmds_GCJ \
18244    old_archive_from_new_cmds_GCJ \
18245    predep_objects_GCJ \
18246    postdep_objects_GCJ \
18247    predeps_GCJ \
18248    postdeps_GCJ \
18249    compiler_lib_search_path_GCJ \
18250    archive_cmds_GCJ \
18251    archive_expsym_cmds_GCJ \
18252    postinstall_cmds_GCJ \
18253    postuninstall_cmds_GCJ \
18254    old_archive_from_expsyms_cmds_GCJ \
18255    allow_undefined_flag_GCJ \
18256    no_undefined_flag_GCJ \
18257    export_symbols_cmds_GCJ \
18258    hardcode_libdir_flag_spec_GCJ \
18259    hardcode_libdir_flag_spec_ld_GCJ \
18260    hardcode_libdir_separator_GCJ \
18261    hardcode_automatic_GCJ \
18262    module_cmds_GCJ \
18263    module_expsym_cmds_GCJ \
18264    lt_cv_prog_compiler_c_o_GCJ \
18265    exclude_expsyms_GCJ \
18266    include_expsyms_GCJ; do
18267
18268    case $var in
18269    old_archive_cmds_GCJ | \
18270    old_archive_from_new_cmds_GCJ | \
18271    archive_cmds_GCJ | \
18272    archive_expsym_cmds_GCJ | \
18273    module_cmds_GCJ | \
18274    module_expsym_cmds_GCJ | \
18275    old_archive_from_expsyms_cmds_GCJ | \
18276    export_symbols_cmds_GCJ | \
18277    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18278    postinstall_cmds | postuninstall_cmds | \
18279    old_postinstall_cmds | old_postuninstall_cmds | \
18280    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18281      # Double-quote double-evaled strings.
18282      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18283      ;;
18284    *)
18285      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18286      ;;
18287    esac
18288  done
18289
18290  case $lt_echo in
18291  *'\$0 --fallback-echo"')
18292    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18293    ;;
18294  esac
18295
18296cfgfile="$ofile"
18297
18298  cat <<__EOF__ >> "$cfgfile"
18299# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18300
18301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18302
18303# Shell to use when invoking shell scripts.
18304SHELL=$lt_SHELL
18305
18306# Whether or not to build shared libraries.
18307build_libtool_libs=$enable_shared
18308
18309# Whether or not to build static libraries.
18310build_old_libs=$enable_static
18311
18312# Whether or not to add -lc for building shared libraries.
18313build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18314
18315# Whether or not to disallow shared libs when runtime libs are static
18316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18317
18318# Whether or not to optimize for fast installation.
18319fast_install=$enable_fast_install
18320
18321# The host system.
18322host_alias=$host_alias
18323host=$host
18324
18325# An echo program that does not interpret backslashes.
18326echo=$lt_echo
18327
18328# The archiver.
18329AR=$lt_AR
18330AR_FLAGS=$lt_AR_FLAGS
18331
18332# A C compiler.
18333LTCC=$lt_LTCC
18334
18335# A language-specific compiler.
18336CC=$lt_compiler_GCJ
18337
18338# Is the compiler the GNU C compiler?
18339with_gcc=$GCC_GCJ
18340
18341# An ERE matcher.
18342EGREP=$lt_EGREP
18343
18344# The linker used to build libraries.
18345LD=$lt_LD_GCJ
18346
18347# Whether we need hard or soft links.
18348LN_S=$lt_LN_S
18349
18350# A BSD-compatible nm program.
18351NM=$lt_NM
18352
18353# A symbol stripping program
18354STRIP=$lt_STRIP
18355
18356# Used to examine libraries when file_magic_cmd begins "file"
18357MAGIC_CMD=$MAGIC_CMD
18358
18359# Used on cygwin: DLL creation program.
18360DLLTOOL="$DLLTOOL"
18361
18362# Used on cygwin: object dumper.
18363OBJDUMP="$OBJDUMP"
18364
18365# Used on cygwin: assembler.
18366AS="$AS"
18367
18368# The name of the directory that contains temporary libtool files.
18369objdir=$objdir
18370
18371# How to create reloadable object files.
18372reload_flag=$lt_reload_flag
18373reload_cmds=$lt_reload_cmds
18374
18375# How to pass a linker flag through the compiler.
18376wl=$lt_lt_prog_compiler_wl_GCJ
18377
18378# Object file suffix (normally "o").
18379objext="$ac_objext"
18380
18381# Old archive suffix (normally "a").
18382libext="$libext"
18383
18384# Shared library suffix (normally ".so").
18385shrext_cmds='$shrext_cmds'
18386
18387# Executable file suffix (normally "").
18388exeext="$exeext"
18389
18390# Additional compiler flags for building library objects.
18391pic_flag=$lt_lt_prog_compiler_pic_GCJ
18392pic_mode=$pic_mode
18393
18394# What is the maximum length of a command?
18395max_cmd_len=$lt_cv_sys_max_cmd_len
18396
18397# Does compiler simultaneously support -c and -o options?
18398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18399
18400# Must we lock files when doing compilation ?
18401need_locks=$lt_need_locks
18402
18403# Do we need the lib prefix for modules?
18404need_lib_prefix=$need_lib_prefix
18405
18406# Do we need a version for libraries?
18407need_version=$need_version
18408
18409# Whether dlopen is supported.
18410dlopen_support=$enable_dlopen
18411
18412# Whether dlopen of programs is supported.
18413dlopen_self=$enable_dlopen_self
18414
18415# Whether dlopen of statically linked programs is supported.
18416dlopen_self_static=$enable_dlopen_self_static
18417
18418# Compiler flag to prevent dynamic linking.
18419link_static_flag=$lt_lt_prog_compiler_static_GCJ
18420
18421# Compiler flag to turn off builtin functions.
18422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18423
18424# Compiler flag to allow reflexive dlopens.
18425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18426
18427# Compiler flag to generate shared objects directly from archives.
18428whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18429
18430# Compiler flag to generate thread-safe objects.
18431thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18432
18433# Library versioning type.
18434version_type=$version_type
18435
18436# Format of library name prefix.
18437libname_spec=$lt_libname_spec
18438
18439# List of archive names.  First name is the real one, the rest are links.
18440# The last name is the one that the linker finds with -lNAME.
18441library_names_spec=$lt_library_names_spec
18442
18443# The coded name of the library, if different from the real name.
18444soname_spec=$lt_soname_spec
18445
18446# Commands used to build and install an old-style archive.
18447RANLIB=$lt_RANLIB
18448old_archive_cmds=$lt_old_archive_cmds_GCJ
18449old_postinstall_cmds=$lt_old_postinstall_cmds
18450old_postuninstall_cmds=$lt_old_postuninstall_cmds
18451
18452# Create an old-style archive from a shared archive.
18453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18454
18455# Create a temporary old-style archive to link instead of a shared archive.
18456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18457
18458# Commands used to build and install a shared archive.
18459archive_cmds=$lt_archive_cmds_GCJ
18460archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18461postinstall_cmds=$lt_postinstall_cmds
18462postuninstall_cmds=$lt_postuninstall_cmds
18463
18464# Commands used to build a loadable module (assumed same as above if empty)
18465module_cmds=$lt_module_cmds_GCJ
18466module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18467
18468# Commands to strip libraries.
18469old_striplib=$lt_old_striplib
18470striplib=$lt_striplib
18471
18472# Dependencies to place before the objects being linked to create a
18473# shared library.
18474predep_objects=$lt_predep_objects_GCJ
18475
18476# Dependencies to place after the objects being linked to create a
18477# shared library.
18478postdep_objects=$lt_postdep_objects_GCJ
18479
18480# Dependencies to place before the objects being linked to create a
18481# shared library.
18482predeps=$lt_predeps_GCJ
18483
18484# Dependencies to place after the objects being linked to create a
18485# shared library.
18486postdeps=$lt_postdeps_GCJ
18487
18488# The library search path used internally by the compiler when linking
18489# a shared library.
18490compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18491
18492# Method to check whether dependent libraries are shared objects.
18493deplibs_check_method=$lt_deplibs_check_method
18494
18495# Command to use when deplibs_check_method == file_magic.
18496file_magic_cmd=$lt_file_magic_cmd
18497
18498# Flag that allows shared libraries with undefined symbols to be built.
18499allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18500
18501# Flag that forces no undefined symbols.
18502no_undefined_flag=$lt_no_undefined_flag_GCJ
18503
18504# Commands used to finish a libtool library installation in a directory.
18505finish_cmds=$lt_finish_cmds
18506
18507# Same as above, but a single script fragment to be evaled but not shown.
18508finish_eval=$lt_finish_eval
18509
18510# Take the output of nm and produce a listing of raw symbols and C names.
18511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18512
18513# Transform the output of nm in a proper C declaration
18514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18515
18516# Transform the output of nm in a C name address pair
18517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18518
18519# This is the shared library runtime path variable.
18520runpath_var=$runpath_var
18521
18522# This is the shared library path variable.
18523shlibpath_var=$shlibpath_var
18524
18525# Is shlibpath searched before the hard-coded library search path?
18526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18527
18528# How to hardcode a shared library path into an executable.
18529hardcode_action=$hardcode_action_GCJ
18530
18531# Whether we should hardcode library paths into libraries.
18532hardcode_into_libs=$hardcode_into_libs
18533
18534# Flag to hardcode \$libdir into a binary during linking.
18535# This must work even if \$libdir does not exist.
18536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18537
18538# If ld is used when linking, flag to hardcode \$libdir into
18539# a binary during linking. This must work even if \$libdir does
18540# not exist.
18541hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18542
18543# Whether we need a single -rpath flag with a separated argument.
18544hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18545
18546# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18547# resulting binary.
18548hardcode_direct=$hardcode_direct_GCJ
18549
18550# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18551# resulting binary.
18552hardcode_minus_L=$hardcode_minus_L_GCJ
18553
18554# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18555# the resulting binary.
18556hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18557
18558# Set to yes if building a shared library automatically hardcodes DIR into the library
18559# and all subsequent libraries and executables linked against it.
18560hardcode_automatic=$hardcode_automatic_GCJ
18561
18562# Variables whose values should be saved in libtool wrapper scripts and
18563# restored at relink time.
18564variables_saved_for_relink="$variables_saved_for_relink"
18565
18566# Whether libtool must link a program against all its dependency libraries.
18567link_all_deplibs=$link_all_deplibs_GCJ
18568
18569# Compile-time system search path for libraries
18570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18571
18572# Run-time system search path for libraries
18573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18574
18575# Fix the shell variable \$srcfile for the compiler.
18576fix_srcfile_path="$fix_srcfile_path_GCJ"
18577
18578# Set to yes if exported symbols are required.
18579always_export_symbols=$always_export_symbols_GCJ
18580
18581# The commands to list exported symbols.
18582export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18583
18584# The commands to extract the exported symbol list from a shared archive.
18585extract_expsyms_cmds=$lt_extract_expsyms_cmds
18586
18587# Symbols that should not be listed in the preloaded symbols.
18588exclude_expsyms=$lt_exclude_expsyms_GCJ
18589
18590# Symbols that must always be exported.
18591include_expsyms=$lt_include_expsyms_GCJ
18592
18593# ### END LIBTOOL TAG CONFIG: $tagname
18594
18595__EOF__
18596
18597
18598else
18599  # If there is no Makefile yet, we rely on a make rule to execute
18600  # `config.status --recheck' to rerun these tests and create the
18601  # libtool script then.
18602  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18603  if test -f "$ltmain_in"; then
18604    test -f Makefile && make "$ltmain"
18605  fi
18606fi
18607
18608
18609ac_ext=c
18610ac_cpp='$CPP $CPPFLAGS'
18611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
18615CC="$lt_save_CC"
18616
18617	else
18618	  tagname=""
18619	fi
18620	;;
18621
18622      RC)
18623
18624
18625
18626# Source file extension for RC test sources.
18627ac_ext=rc
18628
18629# Object file extension for compiled RC test sources.
18630objext=o
18631objext_RC=$objext
18632
18633# Code to be used in simple compile tests
18634lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18635
18636# Code to be used in simple link tests
18637lt_simple_link_test_code="$lt_simple_compile_test_code"
18638
18639# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18640
18641# If no C compiler was specified, use CC.
18642LTCC=${LTCC-"$CC"}
18643
18644# Allow CC to be a program name with arguments.
18645compiler=$CC
18646
18647
18648# Allow CC to be a program name with arguments.
18649lt_save_CC="$CC"
18650CC=${RC-"windres"}
18651compiler=$CC
18652compiler_RC=$CC
18653lt_cv_prog_compiler_c_o_RC=yes
18654
18655# The else clause should only fire when bootstrapping the
18656# libtool distribution, otherwise you forgot to ship ltmain.sh
18657# with your package, and you will get complaints that there are
18658# no rules to generate ltmain.sh.
18659if test -f "$ltmain"; then
18660  # See if we are running on zsh, and set the options which allow our commands through
18661  # without removal of \ escapes.
18662  if test -n "${ZSH_VERSION+set}" ; then
18663    setopt NO_GLOB_SUBST
18664  fi
18665  # Now quote all the things that may contain metacharacters while being
18666  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18667  # variables and quote the copies for generation of the libtool script.
18668  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18669    SED SHELL STRIP \
18670    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18671    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18672    deplibs_check_method reload_flag reload_cmds need_locks \
18673    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18674    lt_cv_sys_global_symbol_to_c_name_address \
18675    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18676    old_postinstall_cmds old_postuninstall_cmds \
18677    compiler_RC \
18678    CC_RC \
18679    LD_RC \
18680    lt_prog_compiler_wl_RC \
18681    lt_prog_compiler_pic_RC \
18682    lt_prog_compiler_static_RC \
18683    lt_prog_compiler_no_builtin_flag_RC \
18684    export_dynamic_flag_spec_RC \
18685    thread_safe_flag_spec_RC \
18686    whole_archive_flag_spec_RC \
18687    enable_shared_with_static_runtimes_RC \
18688    old_archive_cmds_RC \
18689    old_archive_from_new_cmds_RC \
18690    predep_objects_RC \
18691    postdep_objects_RC \
18692    predeps_RC \
18693    postdeps_RC \
18694    compiler_lib_search_path_RC \
18695    archive_cmds_RC \
18696    archive_expsym_cmds_RC \
18697    postinstall_cmds_RC \
18698    postuninstall_cmds_RC \
18699    old_archive_from_expsyms_cmds_RC \
18700    allow_undefined_flag_RC \
18701    no_undefined_flag_RC \
18702    export_symbols_cmds_RC \
18703    hardcode_libdir_flag_spec_RC \
18704    hardcode_libdir_flag_spec_ld_RC \
18705    hardcode_libdir_separator_RC \
18706    hardcode_automatic_RC \
18707    module_cmds_RC \
18708    module_expsym_cmds_RC \
18709    lt_cv_prog_compiler_c_o_RC \
18710    exclude_expsyms_RC \
18711    include_expsyms_RC; do
18712
18713    case $var in
18714    old_archive_cmds_RC | \
18715    old_archive_from_new_cmds_RC | \
18716    archive_cmds_RC | \
18717    archive_expsym_cmds_RC | \
18718    module_cmds_RC | \
18719    module_expsym_cmds_RC | \
18720    old_archive_from_expsyms_cmds_RC | \
18721    export_symbols_cmds_RC | \
18722    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18723    postinstall_cmds | postuninstall_cmds | \
18724    old_postinstall_cmds | old_postuninstall_cmds | \
18725    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18726      # Double-quote double-evaled strings.
18727      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18728      ;;
18729    *)
18730      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18731      ;;
18732    esac
18733  done
18734
18735  case $lt_echo in
18736  *'\$0 --fallback-echo"')
18737    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18738    ;;
18739  esac
18740
18741cfgfile="$ofile"
18742
18743  cat <<__EOF__ >> "$cfgfile"
18744# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18745
18746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18747
18748# Shell to use when invoking shell scripts.
18749SHELL=$lt_SHELL
18750
18751# Whether or not to build shared libraries.
18752build_libtool_libs=$enable_shared
18753
18754# Whether or not to build static libraries.
18755build_old_libs=$enable_static
18756
18757# Whether or not to add -lc for building shared libraries.
18758build_libtool_need_lc=$archive_cmds_need_lc_RC
18759
18760# Whether or not to disallow shared libs when runtime libs are static
18761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18762
18763# Whether or not to optimize for fast installation.
18764fast_install=$enable_fast_install
18765
18766# The host system.
18767host_alias=$host_alias
18768host=$host
18769
18770# An echo program that does not interpret backslashes.
18771echo=$lt_echo
18772
18773# The archiver.
18774AR=$lt_AR
18775AR_FLAGS=$lt_AR_FLAGS
18776
18777# A C compiler.
18778LTCC=$lt_LTCC
18779
18780# A language-specific compiler.
18781CC=$lt_compiler_RC
18782
18783# Is the compiler the GNU C compiler?
18784with_gcc=$GCC_RC
18785
18786# An ERE matcher.
18787EGREP=$lt_EGREP
18788
18789# The linker used to build libraries.
18790LD=$lt_LD_RC
18791
18792# Whether we need hard or soft links.
18793LN_S=$lt_LN_S
18794
18795# A BSD-compatible nm program.
18796NM=$lt_NM
18797
18798# A symbol stripping program
18799STRIP=$lt_STRIP
18800
18801# Used to examine libraries when file_magic_cmd begins "file"
18802MAGIC_CMD=$MAGIC_CMD
18803
18804# Used on cygwin: DLL creation program.
18805DLLTOOL="$DLLTOOL"
18806
18807# Used on cygwin: object dumper.
18808OBJDUMP="$OBJDUMP"
18809
18810# Used on cygwin: assembler.
18811AS="$AS"
18812
18813# The name of the directory that contains temporary libtool files.
18814objdir=$objdir
18815
18816# How to create reloadable object files.
18817reload_flag=$lt_reload_flag
18818reload_cmds=$lt_reload_cmds
18819
18820# How to pass a linker flag through the compiler.
18821wl=$lt_lt_prog_compiler_wl_RC
18822
18823# Object file suffix (normally "o").
18824objext="$ac_objext"
18825
18826# Old archive suffix (normally "a").
18827libext="$libext"
18828
18829# Shared library suffix (normally ".so").
18830shrext_cmds='$shrext_cmds'
18831
18832# Executable file suffix (normally "").
18833exeext="$exeext"
18834
18835# Additional compiler flags for building library objects.
18836pic_flag=$lt_lt_prog_compiler_pic_RC
18837pic_mode=$pic_mode
18838
18839# What is the maximum length of a command?
18840max_cmd_len=$lt_cv_sys_max_cmd_len
18841
18842# Does compiler simultaneously support -c and -o options?
18843compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18844
18845# Must we lock files when doing compilation ?
18846need_locks=$lt_need_locks
18847
18848# Do we need the lib prefix for modules?
18849need_lib_prefix=$need_lib_prefix
18850
18851# Do we need a version for libraries?
18852need_version=$need_version
18853
18854# Whether dlopen is supported.
18855dlopen_support=$enable_dlopen
18856
18857# Whether dlopen of programs is supported.
18858dlopen_self=$enable_dlopen_self
18859
18860# Whether dlopen of statically linked programs is supported.
18861dlopen_self_static=$enable_dlopen_self_static
18862
18863# Compiler flag to prevent dynamic linking.
18864link_static_flag=$lt_lt_prog_compiler_static_RC
18865
18866# Compiler flag to turn off builtin functions.
18867no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18868
18869# Compiler flag to allow reflexive dlopens.
18870export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18871
18872# Compiler flag to generate shared objects directly from archives.
18873whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18874
18875# Compiler flag to generate thread-safe objects.
18876thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18877
18878# Library versioning type.
18879version_type=$version_type
18880
18881# Format of library name prefix.
18882libname_spec=$lt_libname_spec
18883
18884# List of archive names.  First name is the real one, the rest are links.
18885# The last name is the one that the linker finds with -lNAME.
18886library_names_spec=$lt_library_names_spec
18887
18888# The coded name of the library, if different from the real name.
18889soname_spec=$lt_soname_spec
18890
18891# Commands used to build and install an old-style archive.
18892RANLIB=$lt_RANLIB
18893old_archive_cmds=$lt_old_archive_cmds_RC
18894old_postinstall_cmds=$lt_old_postinstall_cmds
18895old_postuninstall_cmds=$lt_old_postuninstall_cmds
18896
18897# Create an old-style archive from a shared archive.
18898old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18899
18900# Create a temporary old-style archive to link instead of a shared archive.
18901old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18902
18903# Commands used to build and install a shared archive.
18904archive_cmds=$lt_archive_cmds_RC
18905archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18906postinstall_cmds=$lt_postinstall_cmds
18907postuninstall_cmds=$lt_postuninstall_cmds
18908
18909# Commands used to build a loadable module (assumed same as above if empty)
18910module_cmds=$lt_module_cmds_RC
18911module_expsym_cmds=$lt_module_expsym_cmds_RC
18912
18913# Commands to strip libraries.
18914old_striplib=$lt_old_striplib
18915striplib=$lt_striplib
18916
18917# Dependencies to place before the objects being linked to create a
18918# shared library.
18919predep_objects=$lt_predep_objects_RC
18920
18921# Dependencies to place after the objects being linked to create a
18922# shared library.
18923postdep_objects=$lt_postdep_objects_RC
18924
18925# Dependencies to place before the objects being linked to create a
18926# shared library.
18927predeps=$lt_predeps_RC
18928
18929# Dependencies to place after the objects being linked to create a
18930# shared library.
18931postdeps=$lt_postdeps_RC
18932
18933# The library search path used internally by the compiler when linking
18934# a shared library.
18935compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18936
18937# Method to check whether dependent libraries are shared objects.
18938deplibs_check_method=$lt_deplibs_check_method
18939
18940# Command to use when deplibs_check_method == file_magic.
18941file_magic_cmd=$lt_file_magic_cmd
18942
18943# Flag that allows shared libraries with undefined symbols to be built.
18944allow_undefined_flag=$lt_allow_undefined_flag_RC
18945
18946# Flag that forces no undefined symbols.
18947no_undefined_flag=$lt_no_undefined_flag_RC
18948
18949# Commands used to finish a libtool library installation in a directory.
18950finish_cmds=$lt_finish_cmds
18951
18952# Same as above, but a single script fragment to be evaled but not shown.
18953finish_eval=$lt_finish_eval
18954
18955# Take the output of nm and produce a listing of raw symbols and C names.
18956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957
18958# Transform the output of nm in a proper C declaration
18959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960
18961# Transform the output of nm in a C name address pair
18962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963
18964# This is the shared library runtime path variable.
18965runpath_var=$runpath_var
18966
18967# This is the shared library path variable.
18968shlibpath_var=$shlibpath_var
18969
18970# Is shlibpath searched before the hard-coded library search path?
18971shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18972
18973# How to hardcode a shared library path into an executable.
18974hardcode_action=$hardcode_action_RC
18975
18976# Whether we should hardcode library paths into libraries.
18977hardcode_into_libs=$hardcode_into_libs
18978
18979# Flag to hardcode \$libdir into a binary during linking.
18980# This must work even if \$libdir does not exist.
18981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18982
18983# If ld is used when linking, flag to hardcode \$libdir into
18984# a binary during linking. This must work even if \$libdir does
18985# not exist.
18986hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18987
18988# Whether we need a single -rpath flag with a separated argument.
18989hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18990
18991# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18992# resulting binary.
18993hardcode_direct=$hardcode_direct_RC
18994
18995# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18996# resulting binary.
18997hardcode_minus_L=$hardcode_minus_L_RC
18998
18999# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19000# the resulting binary.
19001hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19002
19003# Set to yes if building a shared library automatically hardcodes DIR into the library
19004# and all subsequent libraries and executables linked against it.
19005hardcode_automatic=$hardcode_automatic_RC
19006
19007# Variables whose values should be saved in libtool wrapper scripts and
19008# restored at relink time.
19009variables_saved_for_relink="$variables_saved_for_relink"
19010
19011# Whether libtool must link a program against all its dependency libraries.
19012link_all_deplibs=$link_all_deplibs_RC
19013
19014# Compile-time system search path for libraries
19015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016
19017# Run-time system search path for libraries
19018sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019
19020# Fix the shell variable \$srcfile for the compiler.
19021fix_srcfile_path="$fix_srcfile_path_RC"
19022
19023# Set to yes if exported symbols are required.
19024always_export_symbols=$always_export_symbols_RC
19025
19026# The commands to list exported symbols.
19027export_symbols_cmds=$lt_export_symbols_cmds_RC
19028
19029# The commands to extract the exported symbol list from a shared archive.
19030extract_expsyms_cmds=$lt_extract_expsyms_cmds
19031
19032# Symbols that should not be listed in the preloaded symbols.
19033exclude_expsyms=$lt_exclude_expsyms_RC
19034
19035# Symbols that must always be exported.
19036include_expsyms=$lt_include_expsyms_RC
19037
19038# ### END LIBTOOL TAG CONFIG: $tagname
19039
19040__EOF__
19041
19042
19043else
19044  # If there is no Makefile yet, we rely on a make rule to execute
19045  # `config.status --recheck' to rerun these tests and create the
19046  # libtool script then.
19047  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19048  if test -f "$ltmain_in"; then
19049    test -f Makefile && make "$ltmain"
19050  fi
19051fi
19052
19053
19054ac_ext=c
19055ac_cpp='$CPP $CPPFLAGS'
19056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
19060CC="$lt_save_CC"
19061
19062	;;
19063
19064      *)
19065	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19066echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19067   { (exit 1); exit 1; }; }
19068	;;
19069      esac
19070
19071      # Append the new tag name to the list of available tags.
19072      if test -n "$tagname" ; then
19073      available_tags="$available_tags $tagname"
19074    fi
19075    fi
19076  done
19077  IFS="$lt_save_ifs"
19078
19079  # Now substitute the updated list of available tags.
19080  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19081    mv "${ofile}T" "$ofile"
19082    chmod +x "$ofile"
19083  else
19084    rm -f "${ofile}T"
19085    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19086echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19087   { (exit 1); exit 1; }; }
19088  fi
19089fi
19090
19091
19092
19093# This can be used to rebuild libtool when needed
19094LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19095
19096# Always use our own libtool.
19097LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19098
19099# Prevent multiple expansion
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120ac_ext=c
19121ac_cpp='$CPP $CPPFLAGS'
19122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125if test -n "$ac_tool_prefix"; then
19126  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19127set dummy ${ac_tool_prefix}gcc; ac_word=$2
19128echo "$as_me:$LINENO: checking for $ac_word" >&5
19129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19130if test "${ac_cv_prog_CC+set}" = set; then
19131  echo $ECHO_N "(cached) $ECHO_C" >&6
19132else
19133  if test -n "$CC"; then
19134  ac_cv_prog_CC="$CC" # Let the user override the test.
19135else
19136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19137for as_dir in $PATH
19138do
19139  IFS=$as_save_IFS
19140  test -z "$as_dir" && as_dir=.
19141  for ac_exec_ext in '' $ac_executable_extensions; do
19142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19143    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19145    break 2
19146  fi
19147done
19148done
19149
19150fi
19151fi
19152CC=$ac_cv_prog_CC
19153if test -n "$CC"; then
19154  echo "$as_me:$LINENO: result: $CC" >&5
19155echo "${ECHO_T}$CC" >&6
19156else
19157  echo "$as_me:$LINENO: result: no" >&5
19158echo "${ECHO_T}no" >&6
19159fi
19160
19161fi
19162if test -z "$ac_cv_prog_CC"; then
19163  ac_ct_CC=$CC
19164  # Extract the first word of "gcc", so it can be a program name with args.
19165set dummy gcc; ac_word=$2
19166echo "$as_me:$LINENO: checking for $ac_word" >&5
19167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19169  echo $ECHO_N "(cached) $ECHO_C" >&6
19170else
19171  if test -n "$ac_ct_CC"; then
19172  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19173else
19174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19175for as_dir in $PATH
19176do
19177  IFS=$as_save_IFS
19178  test -z "$as_dir" && as_dir=.
19179  for ac_exec_ext in '' $ac_executable_extensions; do
19180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19181    ac_cv_prog_ac_ct_CC="gcc"
19182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19183    break 2
19184  fi
19185done
19186done
19187
19188fi
19189fi
19190ac_ct_CC=$ac_cv_prog_ac_ct_CC
19191if test -n "$ac_ct_CC"; then
19192  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19193echo "${ECHO_T}$ac_ct_CC" >&6
19194else
19195  echo "$as_me:$LINENO: result: no" >&5
19196echo "${ECHO_T}no" >&6
19197fi
19198
19199  CC=$ac_ct_CC
19200else
19201  CC="$ac_cv_prog_CC"
19202fi
19203
19204if test -z "$CC"; then
19205  if test -n "$ac_tool_prefix"; then
19206  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19207set dummy ${ac_tool_prefix}cc; ac_word=$2
19208echo "$as_me:$LINENO: checking for $ac_word" >&5
19209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19210if test "${ac_cv_prog_CC+set}" = set; then
19211  echo $ECHO_N "(cached) $ECHO_C" >&6
19212else
19213  if test -n "$CC"; then
19214  ac_cv_prog_CC="$CC" # Let the user override the test.
19215else
19216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217for as_dir in $PATH
19218do
19219  IFS=$as_save_IFS
19220  test -z "$as_dir" && as_dir=.
19221  for ac_exec_ext in '' $ac_executable_extensions; do
19222  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223    ac_cv_prog_CC="${ac_tool_prefix}cc"
19224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19225    break 2
19226  fi
19227done
19228done
19229
19230fi
19231fi
19232CC=$ac_cv_prog_CC
19233if test -n "$CC"; then
19234  echo "$as_me:$LINENO: result: $CC" >&5
19235echo "${ECHO_T}$CC" >&6
19236else
19237  echo "$as_me:$LINENO: result: no" >&5
19238echo "${ECHO_T}no" >&6
19239fi
19240
19241fi
19242if test -z "$ac_cv_prog_CC"; then
19243  ac_ct_CC=$CC
19244  # Extract the first word of "cc", so it can be a program name with args.
19245set dummy cc; ac_word=$2
19246echo "$as_me:$LINENO: checking for $ac_word" >&5
19247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19249  echo $ECHO_N "(cached) $ECHO_C" >&6
19250else
19251  if test -n "$ac_ct_CC"; then
19252  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19253else
19254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19255for as_dir in $PATH
19256do
19257  IFS=$as_save_IFS
19258  test -z "$as_dir" && as_dir=.
19259  for ac_exec_ext in '' $ac_executable_extensions; do
19260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19261    ac_cv_prog_ac_ct_CC="cc"
19262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19263    break 2
19264  fi
19265done
19266done
19267
19268fi
19269fi
19270ac_ct_CC=$ac_cv_prog_ac_ct_CC
19271if test -n "$ac_ct_CC"; then
19272  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19273echo "${ECHO_T}$ac_ct_CC" >&6
19274else
19275  echo "$as_me:$LINENO: result: no" >&5
19276echo "${ECHO_T}no" >&6
19277fi
19278
19279  CC=$ac_ct_CC
19280else
19281  CC="$ac_cv_prog_CC"
19282fi
19283
19284fi
19285if test -z "$CC"; then
19286  # Extract the first word of "cc", so it can be a program name with args.
19287set dummy cc; ac_word=$2
19288echo "$as_me:$LINENO: checking for $ac_word" >&5
19289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19290if test "${ac_cv_prog_CC+set}" = set; then
19291  echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293  if test -n "$CC"; then
19294  ac_cv_prog_CC="$CC" # Let the user override the test.
19295else
19296  ac_prog_rejected=no
19297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19298for as_dir in $PATH
19299do
19300  IFS=$as_save_IFS
19301  test -z "$as_dir" && as_dir=.
19302  for ac_exec_ext in '' $ac_executable_extensions; do
19303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19304    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19305       ac_prog_rejected=yes
19306       continue
19307     fi
19308    ac_cv_prog_CC="cc"
19309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19310    break 2
19311  fi
19312done
19313done
19314
19315if test $ac_prog_rejected = yes; then
19316  # We found a bogon in the path, so make sure we never use it.
19317  set dummy $ac_cv_prog_CC
19318  shift
19319  if test $# != 0; then
19320    # We chose a different compiler from the bogus one.
19321    # However, it has the same basename, so the bogon will be chosen
19322    # first if we set CC to just the basename; use the full file name.
19323    shift
19324    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19325  fi
19326fi
19327fi
19328fi
19329CC=$ac_cv_prog_CC
19330if test -n "$CC"; then
19331  echo "$as_me:$LINENO: result: $CC" >&5
19332echo "${ECHO_T}$CC" >&6
19333else
19334  echo "$as_me:$LINENO: result: no" >&5
19335echo "${ECHO_T}no" >&6
19336fi
19337
19338fi
19339if test -z "$CC"; then
19340  if test -n "$ac_tool_prefix"; then
19341  for ac_prog in cl
19342  do
19343    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19345echo "$as_me:$LINENO: checking for $ac_word" >&5
19346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347if test "${ac_cv_prog_CC+set}" = set; then
19348  echo $ECHO_N "(cached) $ECHO_C" >&6
19349else
19350  if test -n "$CC"; then
19351  ac_cv_prog_CC="$CC" # Let the user override the test.
19352else
19353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19354for as_dir in $PATH
19355do
19356  IFS=$as_save_IFS
19357  test -z "$as_dir" && as_dir=.
19358  for ac_exec_ext in '' $ac_executable_extensions; do
19359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19360    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19362    break 2
19363  fi
19364done
19365done
19366
19367fi
19368fi
19369CC=$ac_cv_prog_CC
19370if test -n "$CC"; then
19371  echo "$as_me:$LINENO: result: $CC" >&5
19372echo "${ECHO_T}$CC" >&6
19373else
19374  echo "$as_me:$LINENO: result: no" >&5
19375echo "${ECHO_T}no" >&6
19376fi
19377
19378    test -n "$CC" && break
19379  done
19380fi
19381if test -z "$CC"; then
19382  ac_ct_CC=$CC
19383  for ac_prog in cl
19384do
19385  # Extract the first word of "$ac_prog", so it can be a program name with args.
19386set dummy $ac_prog; ac_word=$2
19387echo "$as_me:$LINENO: checking for $ac_word" >&5
19388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19390  echo $ECHO_N "(cached) $ECHO_C" >&6
19391else
19392  if test -n "$ac_ct_CC"; then
19393  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19394else
19395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19396for as_dir in $PATH
19397do
19398  IFS=$as_save_IFS
19399  test -z "$as_dir" && as_dir=.
19400  for ac_exec_ext in '' $ac_executable_extensions; do
19401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19402    ac_cv_prog_ac_ct_CC="$ac_prog"
19403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19404    break 2
19405  fi
19406done
19407done
19408
19409fi
19410fi
19411ac_ct_CC=$ac_cv_prog_ac_ct_CC
19412if test -n "$ac_ct_CC"; then
19413  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19414echo "${ECHO_T}$ac_ct_CC" >&6
19415else
19416  echo "$as_me:$LINENO: result: no" >&5
19417echo "${ECHO_T}no" >&6
19418fi
19419
19420  test -n "$ac_ct_CC" && break
19421done
19422
19423  CC=$ac_ct_CC
19424fi
19425
19426fi
19427
19428
19429test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19430See \`config.log' for more details." >&5
19431echo "$as_me: error: no acceptable C compiler found in \$PATH
19432See \`config.log' for more details." >&2;}
19433   { (exit 1); exit 1; }; }
19434
19435# Provide some information about the compiler.
19436echo "$as_me:$LINENO:" \
19437     "checking for C compiler version" >&5
19438ac_compiler=`set X $ac_compile; echo $2`
19439{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19440  (eval $ac_compiler --version </dev/null >&5) 2>&5
19441  ac_status=$?
19442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443  (exit $ac_status); }
19444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19445  (eval $ac_compiler -v </dev/null >&5) 2>&5
19446  ac_status=$?
19447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448  (exit $ac_status); }
19449{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19450  (eval $ac_compiler -V </dev/null >&5) 2>&5
19451  ac_status=$?
19452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453  (exit $ac_status); }
19454
19455echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19456echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19457if test "${ac_cv_c_compiler_gnu+set}" = set; then
19458  echo $ECHO_N "(cached) $ECHO_C" >&6
19459else
19460  cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h.  */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h.  */
19466
19467int
19468main ()
19469{
19470#ifndef __GNUC__
19471       choke me
19472#endif
19473
19474  ;
19475  return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext
19479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19480  (eval $ac_compile) 2>conftest.er1
19481  ac_status=$?
19482  grep -v '^ *+' conftest.er1 >conftest.err
19483  rm -f conftest.er1
19484  cat conftest.err >&5
19485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486  (exit $ac_status); } &&
19487	 { ac_try='test -z "$ac_c_werror_flag"
19488			 || test ! -s conftest.err'
19489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490  (eval $ac_try) 2>&5
19491  ac_status=$?
19492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493  (exit $ac_status); }; } &&
19494	 { ac_try='test -s conftest.$ac_objext'
19495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496  (eval $ac_try) 2>&5
19497  ac_status=$?
19498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499  (exit $ac_status); }; }; then
19500  ac_compiler_gnu=yes
19501else
19502  echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505ac_compiler_gnu=no
19506fi
19507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19508ac_cv_c_compiler_gnu=$ac_compiler_gnu
19509
19510fi
19511echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19512echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19513GCC=`test $ac_compiler_gnu = yes && echo yes`
19514ac_test_CFLAGS=${CFLAGS+set}
19515ac_save_CFLAGS=$CFLAGS
19516CFLAGS="-g"
19517echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19518echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19519if test "${ac_cv_prog_cc_g+set}" = set; then
19520  echo $ECHO_N "(cached) $ECHO_C" >&6
19521else
19522  cat >conftest.$ac_ext <<_ACEOF
19523/* confdefs.h.  */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h.  */
19528
19529int
19530main ()
19531{
19532
19533  ;
19534  return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext
19538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19539  (eval $ac_compile) 2>conftest.er1
19540  ac_status=$?
19541  grep -v '^ *+' conftest.er1 >conftest.err
19542  rm -f conftest.er1
19543  cat conftest.err >&5
19544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545  (exit $ac_status); } &&
19546	 { ac_try='test -z "$ac_c_werror_flag"
19547			 || test ! -s conftest.err'
19548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549  (eval $ac_try) 2>&5
19550  ac_status=$?
19551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552  (exit $ac_status); }; } &&
19553	 { ac_try='test -s conftest.$ac_objext'
19554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555  (eval $ac_try) 2>&5
19556  ac_status=$?
19557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558  (exit $ac_status); }; }; then
19559  ac_cv_prog_cc_g=yes
19560else
19561  echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564ac_cv_prog_cc_g=no
19565fi
19566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567fi
19568echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19569echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19570if test "$ac_test_CFLAGS" = set; then
19571  CFLAGS=$ac_save_CFLAGS
19572elif test $ac_cv_prog_cc_g = yes; then
19573  if test "$GCC" = yes; then
19574    CFLAGS="-g -O2"
19575  else
19576    CFLAGS="-g"
19577  fi
19578else
19579  if test "$GCC" = yes; then
19580    CFLAGS="-O2"
19581  else
19582    CFLAGS=
19583  fi
19584fi
19585echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19586echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19587if test "${ac_cv_prog_cc_stdc+set}" = set; then
19588  echo $ECHO_N "(cached) $ECHO_C" >&6
19589else
19590  ac_cv_prog_cc_stdc=no
19591ac_save_CC=$CC
19592cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h.  */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h.  */
19598#include <stdarg.h>
19599#include <stdio.h>
19600#include <sys/types.h>
19601#include <sys/stat.h>
19602/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19603struct buf { int x; };
19604FILE * (*rcsopen) (struct buf *, struct stat *, int);
19605static char *e (p, i)
19606     char **p;
19607     int i;
19608{
19609  return p[i];
19610}
19611static char *f (char * (*g) (char **, int), char **p, ...)
19612{
19613  char *s;
19614  va_list v;
19615  va_start (v,p);
19616  s = g (p, va_arg (v,int));
19617  va_end (v);
19618  return s;
19619}
19620
19621/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19622   function prototypes and stuff, but not '\xHH' hex character constants.
19623   These don't provoke an error unfortunately, instead are silently treated
19624   as 'x'.  The following induces an error, until -std1 is added to get
19625   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19626   array size at least.  It's necessary to write '\x00'==0 to get something
19627   that's true only with -std1.  */
19628int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19629
19630int test (int i, double x);
19631struct s1 {int (*f) (int a);};
19632struct s2 {int (*f) (double a);};
19633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19634int argc;
19635char **argv;
19636int
19637main ()
19638{
19639return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19640  ;
19641  return 0;
19642}
19643_ACEOF
19644# Don't try gcc -ansi; that turns off useful extensions and
19645# breaks some systems' header files.
19646# AIX			-qlanglvl=ansi
19647# Ultrix and OSF/1	-std1
19648# HP-UX 10.20 and later	-Ae
19649# HP-UX older versions	-Aa -D_HPUX_SOURCE
19650# SVR4			-Xc -D__EXTENSIONS__
19651for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19652do
19653  CC="$ac_save_CC $ac_arg"
19654  rm -f conftest.$ac_objext
19655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656  (eval $ac_compile) 2>conftest.er1
19657  ac_status=$?
19658  grep -v '^ *+' conftest.er1 >conftest.err
19659  rm -f conftest.er1
19660  cat conftest.err >&5
19661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662  (exit $ac_status); } &&
19663	 { ac_try='test -z "$ac_c_werror_flag"
19664			 || test ! -s conftest.err'
19665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666  (eval $ac_try) 2>&5
19667  ac_status=$?
19668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669  (exit $ac_status); }; } &&
19670	 { ac_try='test -s conftest.$ac_objext'
19671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672  (eval $ac_try) 2>&5
19673  ac_status=$?
19674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675  (exit $ac_status); }; }; then
19676  ac_cv_prog_cc_stdc=$ac_arg
19677break
19678else
19679  echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682fi
19683rm -f conftest.err conftest.$ac_objext
19684done
19685rm -f conftest.$ac_ext conftest.$ac_objext
19686CC=$ac_save_CC
19687
19688fi
19689
19690case "x$ac_cv_prog_cc_stdc" in
19691  x|xno)
19692    echo "$as_me:$LINENO: result: none needed" >&5
19693echo "${ECHO_T}none needed" >&6 ;;
19694  *)
19695    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19696echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19697    CC="$CC $ac_cv_prog_cc_stdc" ;;
19698esac
19699
19700# Some people use a C++ compiler to compile C.  Since we use `exit',
19701# in C++ we need to declare it.  In case someone uses the same compiler
19702# for both compiling C and C++ we need to have the C++ compiler decide
19703# the declaration of exit, since it's the most demanding environment.
19704cat >conftest.$ac_ext <<_ACEOF
19705#ifndef __cplusplus
19706  choke me
19707#endif
19708_ACEOF
19709rm -f conftest.$ac_objext
19710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19711  (eval $ac_compile) 2>conftest.er1
19712  ac_status=$?
19713  grep -v '^ *+' conftest.er1 >conftest.err
19714  rm -f conftest.er1
19715  cat conftest.err >&5
19716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717  (exit $ac_status); } &&
19718	 { ac_try='test -z "$ac_c_werror_flag"
19719			 || test ! -s conftest.err'
19720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721  (eval $ac_try) 2>&5
19722  ac_status=$?
19723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724  (exit $ac_status); }; } &&
19725	 { ac_try='test -s conftest.$ac_objext'
19726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727  (eval $ac_try) 2>&5
19728  ac_status=$?
19729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730  (exit $ac_status); }; }; then
19731  for ac_declaration in \
19732   '' \
19733   'extern "C" void std::exit (int) throw (); using std::exit;' \
19734   'extern "C" void std::exit (int); using std::exit;' \
19735   'extern "C" void exit (int) throw ();' \
19736   'extern "C" void exit (int);' \
19737   'void exit (int);'
19738do
19739  cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h.  */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h.  */
19745$ac_declaration
19746#include <stdlib.h>
19747int
19748main ()
19749{
19750exit (42);
19751  ;
19752  return 0;
19753}
19754_ACEOF
19755rm -f conftest.$ac_objext
19756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19757  (eval $ac_compile) 2>conftest.er1
19758  ac_status=$?
19759  grep -v '^ *+' conftest.er1 >conftest.err
19760  rm -f conftest.er1
19761  cat conftest.err >&5
19762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763  (exit $ac_status); } &&
19764	 { ac_try='test -z "$ac_c_werror_flag"
19765			 || test ! -s conftest.err'
19766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767  (eval $ac_try) 2>&5
19768  ac_status=$?
19769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770  (exit $ac_status); }; } &&
19771	 { ac_try='test -s conftest.$ac_objext'
19772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773  (eval $ac_try) 2>&5
19774  ac_status=$?
19775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776  (exit $ac_status); }; }; then
19777  :
19778else
19779  echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
19782continue
19783fi
19784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19785  cat >conftest.$ac_ext <<_ACEOF
19786/* confdefs.h.  */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h.  */
19791$ac_declaration
19792int
19793main ()
19794{
19795exit (42);
19796  ;
19797  return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802  (eval $ac_compile) 2>conftest.er1
19803  ac_status=$?
19804  grep -v '^ *+' conftest.er1 >conftest.err
19805  rm -f conftest.er1
19806  cat conftest.err >&5
19807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808  (exit $ac_status); } &&
19809	 { ac_try='test -z "$ac_c_werror_flag"
19810			 || test ! -s conftest.err'
19811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812  (eval $ac_try) 2>&5
19813  ac_status=$?
19814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815  (exit $ac_status); }; } &&
19816	 { ac_try='test -s conftest.$ac_objext'
19817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818  (eval $ac_try) 2>&5
19819  ac_status=$?
19820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821  (exit $ac_status); }; }; then
19822  break
19823else
19824  echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827fi
19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829done
19830rm -f conftest*
19831if test -n "$ac_declaration"; then
19832  echo '#ifdef __cplusplus' >>confdefs.h
19833  echo $ac_declaration      >>confdefs.h
19834  echo '#endif'             >>confdefs.h
19835fi
19836
19837else
19838  echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841fi
19842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19843ac_ext=c
19844ac_cpp='$CPP $CPPFLAGS'
19845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848
19849depcc="$CC"   am_compiler_list=
19850
19851echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19852echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19853if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19854  echo $ECHO_N "(cached) $ECHO_C" >&6
19855else
19856  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19857  # We make a subdir and do the tests there.  Otherwise we can end up
19858  # making bogus files that we don't know about and never remove.  For
19859  # instance it was reported that on HP-UX the gcc test will end up
19860  # making a dummy file named `D' -- because `-MD' means `put the output
19861  # in D'.
19862  mkdir conftest.dir
19863  # Copy depcomp to subdir because otherwise we won't find it if we're
19864  # using a relative directory.
19865  cp "$am_depcomp" conftest.dir
19866  cd conftest.dir
19867  # We will build objects and dependencies in a subdirectory because
19868  # it helps to detect inapplicable dependency modes.  For instance
19869  # both Tru64's cc and ICC support -MD to output dependencies as a
19870  # side effect of compilation, but ICC will put the dependencies in
19871  # the current directory while Tru64 will put them in the object
19872  # directory.
19873  mkdir sub
19874
19875  am_cv_CC_dependencies_compiler_type=none
19876  if test "$am_compiler_list" = ""; then
19877     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19878  fi
19879  for depmode in $am_compiler_list; do
19880    # Setup a source with many dependencies, because some compilers
19881    # like to wrap large dependency lists on column 80 (with \), and
19882    # we should not choose a depcomp mode which is confused by this.
19883    #
19884    # We need to recreate these files for each test, as the compiler may
19885    # overwrite some of them when testing with obscure command lines.
19886    # This happens at least with the AIX C compiler.
19887    : > sub/conftest.c
19888    for i in 1 2 3 4 5 6; do
19889      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19890      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19891      # Solaris 8's {/usr,}/bin/sh.
19892      touch sub/conftst$i.h
19893    done
19894    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19895
19896    case $depmode in
19897    nosideeffect)
19898      # after this tag, mechanisms are not by side-effect, so they'll
19899      # only be used when explicitly requested
19900      if test "x$enable_dependency_tracking" = xyes; then
19901	continue
19902      else
19903	break
19904      fi
19905      ;;
19906    none) break ;;
19907    esac
19908    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19909    # mode.  It turns out that the SunPro C++ compiler does not properly
19910    # handle `-M -o', and we need to detect this.
19911    if depmode=$depmode \
19912       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19913       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19914       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19915         >/dev/null 2>conftest.err &&
19916       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19917       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19918       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19919      # icc doesn't choke on unknown options, it will just issue warnings
19920      # or remarks (even with -Werror).  So we grep stderr for any message
19921      # that says an option was ignored or not supported.
19922      # When given -MP, icc 7.0 and 7.1 complain thusly:
19923      #   icc: Command line warning: ignoring option '-M'; no argument required
19924      # The diagnosis changed in icc 8.0:
19925      #   icc: Command line remark: option '-MP' not supported
19926      if (grep 'ignoring option' conftest.err ||
19927          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19928        am_cv_CC_dependencies_compiler_type=$depmode
19929        break
19930      fi
19931    fi
19932  done
19933
19934  cd ..
19935  rm -rf conftest.dir
19936else
19937  am_cv_CC_dependencies_compiler_type=none
19938fi
19939
19940fi
19941echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19942echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19943CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19944
19945
19946
19947if
19948  test "x$enable_dependency_tracking" != xno \
19949  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19950  am__fastdepCC_TRUE=
19951  am__fastdepCC_FALSE='#'
19952else
19953  am__fastdepCC_TRUE='#'
19954  am__fastdepCC_FALSE=
19955fi
19956
19957
19958echo "$as_me:$LINENO: checking whether ln -s works" >&5
19959echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19960LN_S=$as_ln_s
19961if test "$LN_S" = "ln -s"; then
19962  echo "$as_me:$LINENO: result: yes" >&5
19963echo "${ECHO_T}yes" >&6
19964else
19965  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19966echo "${ECHO_T}no, using $LN_S" >&6
19967fi
19968
19969for ac_prog in flex lex
19970do
19971  # Extract the first word of "$ac_prog", so it can be a program name with args.
19972set dummy $ac_prog; ac_word=$2
19973echo "$as_me:$LINENO: checking for $ac_word" >&5
19974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19975if test "${ac_cv_prog_LEX+set}" = set; then
19976  echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978  if test -n "$LEX"; then
19979  ac_cv_prog_LEX="$LEX" # Let the user override the test.
19980else
19981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982for as_dir in $PATH
19983do
19984  IFS=$as_save_IFS
19985  test -z "$as_dir" && as_dir=.
19986  for ac_exec_ext in '' $ac_executable_extensions; do
19987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19988    ac_cv_prog_LEX="$ac_prog"
19989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19990    break 2
19991  fi
19992done
19993done
19994
19995fi
19996fi
19997LEX=$ac_cv_prog_LEX
19998if test -n "$LEX"; then
19999  echo "$as_me:$LINENO: result: $LEX" >&5
20000echo "${ECHO_T}$LEX" >&6
20001else
20002  echo "$as_me:$LINENO: result: no" >&5
20003echo "${ECHO_T}no" >&6
20004fi
20005
20006  test -n "$LEX" && break
20007done
20008test -n "$LEX" || LEX=":"
20009
20010if test -z "$LEXLIB"
20011then
20012  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
20013echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
20014if test "${ac_cv_lib_fl_yywrap+set}" = set; then
20015  echo $ECHO_N "(cached) $ECHO_C" >&6
20016else
20017  ac_check_lib_save_LIBS=$LIBS
20018LIBS="-lfl  $LIBS"
20019cat >conftest.$ac_ext <<_ACEOF
20020/* confdefs.h.  */
20021_ACEOF
20022cat confdefs.h >>conftest.$ac_ext
20023cat >>conftest.$ac_ext <<_ACEOF
20024/* end confdefs.h.  */
20025
20026/* Override any gcc2 internal prototype to avoid an error.  */
20027#ifdef __cplusplus
20028extern "C"
20029#endif
20030/* We use char because int might match the return type of a gcc2
20031   builtin and then its argument prototype would still apply.  */
20032char yywrap ();
20033int
20034main ()
20035{
20036yywrap ();
20037  ;
20038  return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext conftest$ac_exeext
20042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20043  (eval $ac_link) 2>conftest.er1
20044  ac_status=$?
20045  grep -v '^ *+' conftest.er1 >conftest.err
20046  rm -f conftest.er1
20047  cat conftest.err >&5
20048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049  (exit $ac_status); } &&
20050	 { ac_try='test -z "$ac_c_werror_flag"
20051			 || test ! -s conftest.err'
20052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053  (eval $ac_try) 2>&5
20054  ac_status=$?
20055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056  (exit $ac_status); }; } &&
20057	 { ac_try='test -s conftest$ac_exeext'
20058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059  (eval $ac_try) 2>&5
20060  ac_status=$?
20061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062  (exit $ac_status); }; }; then
20063  ac_cv_lib_fl_yywrap=yes
20064else
20065  echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
20068ac_cv_lib_fl_yywrap=no
20069fi
20070rm -f conftest.err conftest.$ac_objext \
20071      conftest$ac_exeext conftest.$ac_ext
20072LIBS=$ac_check_lib_save_LIBS
20073fi
20074echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20075echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
20076if test $ac_cv_lib_fl_yywrap = yes; then
20077  LEXLIB="-lfl"
20078else
20079  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
20080echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
20081if test "${ac_cv_lib_l_yywrap+set}" = set; then
20082  echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084  ac_check_lib_save_LIBS=$LIBS
20085LIBS="-ll  $LIBS"
20086cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h.  */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h.  */
20092
20093/* Override any gcc2 internal prototype to avoid an error.  */
20094#ifdef __cplusplus
20095extern "C"
20096#endif
20097/* We use char because int might match the return type of a gcc2
20098   builtin and then its argument prototype would still apply.  */
20099char yywrap ();
20100int
20101main ()
20102{
20103yywrap ();
20104  ;
20105  return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext conftest$ac_exeext
20109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20110  (eval $ac_link) 2>conftest.er1
20111  ac_status=$?
20112  grep -v '^ *+' conftest.er1 >conftest.err
20113  rm -f conftest.er1
20114  cat conftest.err >&5
20115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116  (exit $ac_status); } &&
20117	 { ac_try='test -z "$ac_c_werror_flag"
20118			 || test ! -s conftest.err'
20119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120  (eval $ac_try) 2>&5
20121  ac_status=$?
20122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123  (exit $ac_status); }; } &&
20124	 { ac_try='test -s conftest$ac_exeext'
20125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126  (eval $ac_try) 2>&5
20127  ac_status=$?
20128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129  (exit $ac_status); }; }; then
20130  ac_cv_lib_l_yywrap=yes
20131else
20132  echo "$as_me: failed program was:" >&5
20133sed 's/^/| /' conftest.$ac_ext >&5
20134
20135ac_cv_lib_l_yywrap=no
20136fi
20137rm -f conftest.err conftest.$ac_objext \
20138      conftest$ac_exeext conftest.$ac_ext
20139LIBS=$ac_check_lib_save_LIBS
20140fi
20141echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20142echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
20143if test $ac_cv_lib_l_yywrap = yes; then
20144  LEXLIB="-ll"
20145fi
20146
20147fi
20148
20149fi
20150
20151if test "x$LEX" != "x:"; then
20152  echo "$as_me:$LINENO: checking lex output file root" >&5
20153echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
20154if test "${ac_cv_prog_lex_root+set}" = set; then
20155  echo $ECHO_N "(cached) $ECHO_C" >&6
20156else
20157  # The minimal lex program is just a single line: %%.  But some broken lexes
20158# (Solaris, I think it was) want two %% lines, so accommodate them.
20159cat >conftest.l <<_ACEOF
20160%%
20161%%
20162_ACEOF
20163{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
20164  (eval $LEX conftest.l) 2>&5
20165  ac_status=$?
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); }
20168if test -f lex.yy.c; then
20169  ac_cv_prog_lex_root=lex.yy
20170elif test -f lexyy.c; then
20171  ac_cv_prog_lex_root=lexyy
20172else
20173  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20174echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20175   { (exit 1); exit 1; }; }
20176fi
20177fi
20178echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20179echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
20180rm -f conftest.l
20181LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20182
20183echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20184echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
20185if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20186  echo $ECHO_N "(cached) $ECHO_C" >&6
20187else
20188  # POSIX says lex can declare yytext either as a pointer or an array; the
20189# default is implementation-dependent. Figure out which it is, since
20190# not all implementations provide the %pointer and %array declarations.
20191ac_cv_prog_lex_yytext_pointer=no
20192echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
20193ac_save_LIBS=$LIBS
20194LIBS="$LIBS $LEXLIB"
20195cat >conftest.$ac_ext <<_ACEOF
20196`cat $LEX_OUTPUT_ROOT.c`
20197_ACEOF
20198rm -f conftest.$ac_objext conftest$ac_exeext
20199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200  (eval $ac_link) 2>conftest.er1
20201  ac_status=$?
20202  grep -v '^ *+' conftest.er1 >conftest.err
20203  rm -f conftest.er1
20204  cat conftest.err >&5
20205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206  (exit $ac_status); } &&
20207	 { ac_try='test -z "$ac_c_werror_flag"
20208			 || test ! -s conftest.err'
20209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210  (eval $ac_try) 2>&5
20211  ac_status=$?
20212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213  (exit $ac_status); }; } &&
20214	 { ac_try='test -s conftest$ac_exeext'
20215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216  (eval $ac_try) 2>&5
20217  ac_status=$?
20218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219  (exit $ac_status); }; }; then
20220  ac_cv_prog_lex_yytext_pointer=yes
20221else
20222  echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225fi
20226rm -f conftest.err conftest.$ac_objext \
20227      conftest$ac_exeext conftest.$ac_ext
20228LIBS=$ac_save_LIBS
20229rm -f "${LEX_OUTPUT_ROOT}.c"
20230
20231fi
20232echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20233echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
20234if test $ac_cv_prog_lex_yytext_pointer = yes; then
20235
20236cat >>confdefs.h <<\_ACEOF
20237#define YYTEXT_POINTER 1
20238_ACEOF
20239
20240fi
20241
20242fi
20243if test "$LEX" = :; then
20244  LEX=${am_missing_run}flex
20245fi
20246for ac_prog in 'bison -y' byacc
20247do
20248  # Extract the first word of "$ac_prog", so it can be a program name with args.
20249set dummy $ac_prog; ac_word=$2
20250echo "$as_me:$LINENO: checking for $ac_word" >&5
20251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20252if test "${ac_cv_prog_YACC+set}" = set; then
20253  echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255  if test -n "$YACC"; then
20256  ac_cv_prog_YACC="$YACC" # Let the user override the test.
20257else
20258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259for as_dir in $PATH
20260do
20261  IFS=$as_save_IFS
20262  test -z "$as_dir" && as_dir=.
20263  for ac_exec_ext in '' $ac_executable_extensions; do
20264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20265    ac_cv_prog_YACC="$ac_prog"
20266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20267    break 2
20268  fi
20269done
20270done
20271
20272fi
20273fi
20274YACC=$ac_cv_prog_YACC
20275if test -n "$YACC"; then
20276  echo "$as_me:$LINENO: result: $YACC" >&5
20277echo "${ECHO_T}$YACC" >&6
20278else
20279  echo "$as_me:$LINENO: result: no" >&5
20280echo "${ECHO_T}no" >&6
20281fi
20282
20283  test -n "$YACC" && break
20284done
20285test -n "$YACC" || YACC="yacc"
20286
20287
20288echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20289echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20290if test "${ac_cv_c_bigendian+set}" = set; then
20291  echo $ECHO_N "(cached) $ECHO_C" >&6
20292else
20293  # See if sys/param.h defines the BYTE_ORDER macro.
20294cat >conftest.$ac_ext <<_ACEOF
20295/* confdefs.h.  */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h.  */
20300#include <sys/types.h>
20301#include <sys/param.h>
20302
20303int
20304main ()
20305{
20306#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20307 bogus endian macros
20308#endif
20309
20310  ;
20311  return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
20315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316  (eval $ac_compile) 2>conftest.er1
20317  ac_status=$?
20318  grep -v '^ *+' conftest.er1 >conftest.err
20319  rm -f conftest.er1
20320  cat conftest.err >&5
20321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322  (exit $ac_status); } &&
20323	 { ac_try='test -z "$ac_c_werror_flag"
20324			 || test ! -s conftest.err'
20325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326  (eval $ac_try) 2>&5
20327  ac_status=$?
20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); }; } &&
20330	 { ac_try='test -s conftest.$ac_objext'
20331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332  (eval $ac_try) 2>&5
20333  ac_status=$?
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); }; }; then
20336  # It does; now see whether it defined to BIG_ENDIAN or not.
20337cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h.  */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h.  */
20343#include <sys/types.h>
20344#include <sys/param.h>
20345
20346int
20347main ()
20348{
20349#if BYTE_ORDER != BIG_ENDIAN
20350 not big endian
20351#endif
20352
20353  ;
20354  return 0;
20355}
20356_ACEOF
20357rm -f conftest.$ac_objext
20358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359  (eval $ac_compile) 2>conftest.er1
20360  ac_status=$?
20361  grep -v '^ *+' conftest.er1 >conftest.err
20362  rm -f conftest.er1
20363  cat conftest.err >&5
20364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365  (exit $ac_status); } &&
20366	 { ac_try='test -z "$ac_c_werror_flag"
20367			 || test ! -s conftest.err'
20368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369  (eval $ac_try) 2>&5
20370  ac_status=$?
20371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372  (exit $ac_status); }; } &&
20373	 { ac_try='test -s conftest.$ac_objext'
20374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375  (eval $ac_try) 2>&5
20376  ac_status=$?
20377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378  (exit $ac_status); }; }; then
20379  ac_cv_c_bigendian=yes
20380else
20381  echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384ac_cv_c_bigendian=no
20385fi
20386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387else
20388  echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391# It does not; compile a test program.
20392if test "$cross_compiling" = yes; then
20393  # try to guess the endianness by grepping values into an object file
20394  ac_cv_c_bigendian=unknown
20395  cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h.  */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h.  */
20401short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20402short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20403void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20404short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20405short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20406void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20407int
20408main ()
20409{
20410 _ascii (); _ebcdic ();
20411  ;
20412  return 0;
20413}
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417  (eval $ac_compile) 2>conftest.er1
20418  ac_status=$?
20419  grep -v '^ *+' conftest.er1 >conftest.err
20420  rm -f conftest.er1
20421  cat conftest.err >&5
20422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423  (exit $ac_status); } &&
20424	 { ac_try='test -z "$ac_c_werror_flag"
20425			 || test ! -s conftest.err'
20426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427  (eval $ac_try) 2>&5
20428  ac_status=$?
20429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); }; } &&
20431	 { ac_try='test -s conftest.$ac_objext'
20432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433  (eval $ac_try) 2>&5
20434  ac_status=$?
20435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436  (exit $ac_status); }; }; then
20437  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20438  ac_cv_c_bigendian=yes
20439fi
20440if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20441  if test "$ac_cv_c_bigendian" = unknown; then
20442    ac_cv_c_bigendian=no
20443  else
20444    # finding both strings is unlikely to happen, but who knows?
20445    ac_cv_c_bigendian=unknown
20446  fi
20447fi
20448else
20449  echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452fi
20453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20454else
20455  cat >conftest.$ac_ext <<_ACEOF
20456/* confdefs.h.  */
20457_ACEOF
20458cat confdefs.h >>conftest.$ac_ext
20459cat >>conftest.$ac_ext <<_ACEOF
20460/* end confdefs.h.  */
20461int
20462main ()
20463{
20464  /* Are we little or big endian?  From Harbison&Steele.  */
20465  union
20466  {
20467    long l;
20468    char c[sizeof (long)];
20469  } u;
20470  u.l = 1;
20471  exit (u.c[sizeof (long) - 1] == 1);
20472}
20473_ACEOF
20474rm -f conftest$ac_exeext
20475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20476  (eval $ac_link) 2>&5
20477  ac_status=$?
20478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481  (eval $ac_try) 2>&5
20482  ac_status=$?
20483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484  (exit $ac_status); }; }; then
20485  ac_cv_c_bigendian=no
20486else
20487  echo "$as_me: program exited with status $ac_status" >&5
20488echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491( exit $ac_status )
20492ac_cv_c_bigendian=yes
20493fi
20494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20495fi
20496fi
20497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498fi
20499echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20500echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20501case $ac_cv_c_bigendian in
20502  yes)
20503
20504cat >>confdefs.h <<\_ACEOF
20505#define WORDS_BIGENDIAN 1
20506_ACEOF
20507 ;;
20508  no)
20509     ;;
20510  *)
20511    { { echo "$as_me:$LINENO: error: unknown endianness
20512presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20513echo "$as_me: error: unknown endianness
20514presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20515   { (exit 1); exit 1; }; } ;;
20516esac
20517
20518
20519CFLAGS="${CFLAGS}"
20520LDFLAGS="${LDFLAGS}"
20521
20522
20523
20524
20525# Check whether --with-xmms-prefix or --without-xmms-prefix was given.
20526if test "${with_xmms_prefix+set}" = set; then
20527  withval="$with_xmms_prefix"
20528  xmms_config_prefix="$withval"
20529else
20530  xmms_config_prefix=""
20531fi;
20532
20533# Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given.
20534if test "${with_xmms_exec_prefix+set}" = set; then
20535  withval="$with_xmms_exec_prefix"
20536  xmms_config_exec_prefix="$withval"
20537else
20538  xmms_config_exec_prefix=""
20539fi;
20540
20541if test x$xmms_config_exec_prefix != x; then
20542    xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
20543    if test x${XMMS_CONFIG+set} != xset; then
20544	XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
20545    fi
20546fi
20547
20548if test x$xmms_config_prefix != x; then
20549    xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
20550    if test x${XMMS_CONFIG+set} != xset; then
20551  	XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
20552    fi
20553fi
20554
20555# Extract the first word of "xmms-config", so it can be a program name with args.
20556set dummy xmms-config; ac_word=$2
20557echo "$as_me:$LINENO: checking for $ac_word" >&5
20558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20559if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then
20560  echo $ECHO_N "(cached) $ECHO_C" >&6
20561else
20562  case $XMMS_CONFIG in
20563  [\\/]* | ?:[\\/]*)
20564  ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
20565  ;;
20566  *)
20567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568for as_dir in $PATH
20569do
20570  IFS=$as_save_IFS
20571  test -z "$as_dir" && as_dir=.
20572  for ac_exec_ext in '' $ac_executable_extensions; do
20573  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20574    ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20576    break 2
20577  fi
20578done
20579done
20580
20581  test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
20582  ;;
20583esac
20584fi
20585XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
20586
20587if test -n "$XMMS_CONFIG"; then
20588  echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
20589echo "${ECHO_T}$XMMS_CONFIG" >&6
20590else
20591  echo "$as_me:$LINENO: result: no" >&5
20592echo "${ECHO_T}no" >&6
20593fi
20594
20595min_xmms_version=0.9.5.1
20596
20597if test "$XMMS_CONFIG" = "no"; then
20598    no_xmms=yes
20599else
20600    XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
20601    XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
20602    XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
20603    XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
20604    XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
20605    XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
20606					--visualization-plugin-dir`
20607    XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
20608    XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
20609    XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
20610    XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
20611
20612
20613
20614# Determine which version number is greater. Prints 2 to stdout if
20615# the second number is greater, 1 if the first number is greater,
20616# 0 if the numbers are equal.
20617
20618# Written 15 December 1999 by Ben Gertzfield <che@debian.org>
20619# Revised 15 December 1999 by Jim Monty <monty@primenet.com>
20620
20621    for ac_prog in gawk mawk nawk awk
20622do
20623  # Extract the first word of "$ac_prog", so it can be a program name with args.
20624set dummy $ac_prog; ac_word=$2
20625echo "$as_me:$LINENO: checking for $ac_word" >&5
20626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20627if test "${ac_cv_prog_AWK+set}" = set; then
20628  echo $ECHO_N "(cached) $ECHO_C" >&6
20629else
20630  if test -n "$AWK"; then
20631  ac_cv_prog_AWK="$AWK" # Let the user override the test.
20632else
20633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20634for as_dir in $PATH
20635do
20636  IFS=$as_save_IFS
20637  test -z "$as_dir" && as_dir=.
20638  for ac_exec_ext in '' $ac_executable_extensions; do
20639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20640    ac_cv_prog_AWK="$ac_prog"
20641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20642    break 2
20643  fi
20644done
20645done
20646
20647fi
20648fi
20649AWK=$ac_cv_prog_AWK
20650if test -n "$AWK"; then
20651  echo "$as_me:$LINENO: result: $AWK" >&5
20652echo "${ECHO_T}$AWK" >&6
20653else
20654  echo "$as_me:$LINENO: result: no" >&5
20655echo "${ECHO_T}no" >&6
20656fi
20657
20658  test -n "$AWK" && break
20659done
20660
20661    xmms_got_version=` $AWK '						\
20662BEGIN {									\
20663    print vercmp(ARGV[1], ARGV[2]);					\
20664}									\
20665									\
20666function vercmp(ver1, ver2,    ver1arr, ver2arr,			\
20667                               ver1len, ver2len,			\
20668                               ver1int, ver2int, len, i, p) {		\
20669									\
20670    ver1len = split(ver1, ver1arr, /\./);				\
20671    ver2len = split(ver2, ver2arr, /\./);				\
20672									\
20673    len = ver1len > ver2len ? ver1len : ver2len;			\
20674									\
20675    for (i = 1; i <= len; i++) {					\
20676        p = 1000 ^ (len - i);						\
20677        ver1int += ver1arr[i] * p;					\
20678        ver2int += ver2arr[i] * p;					\
20679    }									\
20680									\
20681    if (ver1int < ver2int)						\
20682        return 2;							\
20683    else if (ver1int > ver2int)						\
20684        return 1;							\
20685    else								\
20686        return 0;							\
20687}' $XMMS_VERSION $min_xmms_version`
20688
20689    if test $xmms_got_version -eq 2; then 	# failure
20690	no_xmms=version
20691    else  					# success!
20692	:
20693    fi
20694
20695fi
20696
20697echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5
20698echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6
20699
20700if test "x$no_xmms" = x; then
20701    echo "$as_me:$LINENO: result: yes" >&5
20702echo "${ECHO_T}yes" >&6
20703    HAVE_XMMS="yes"
20704else
20705    echo "$as_me:$LINENO: result: no" >&5
20706echo "${ECHO_T}no" >&6
20707
20708    if test "$XMMS_CONFIG" = "no" ; then
20709	echo "*** The xmms-config script installed by XMMS could not be found."
20710      	echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
20711	echo "*** your path, or set the XMMS_CONFIG environment variable to the"
20712	echo "*** full path to xmms-config."
20713    else
20714	if test "$no_xmms" = "version"; then
20715	    echo "*** An old version of XMMS, $XMMS_VERSION, was found."
20716	    echo "*** You need a version of XMMS newer than $min_xmms_version."
20717	    echo "*** The latest version of XMMS is always available from"
20718	    echo "*** http://www.xmms.org/"
20719	    echo "***"
20720
20721            echo "*** If you have already installed a sufficiently new version, this error"
20722            echo "*** probably means that the wrong copy of the xmms-config shell script is"
20723            echo "*** being found. The easiest way to fix this is to remove the old version"
20724            echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
20725            echo "*** correct copy of xmms-config. (In this case, you will have to"
20726            echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
20727            echo "*** so that the correct libraries are found at run-time)"
20728	fi
20729    fi
20730    XMMS_CFLAGS=""
20731    XMMS_LIBS=""
20732    HAVE_XMMS="no"
20733fi
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747if test "x$HAVE_XMMS" = "xyes"; then
20748  HAVE_XMMS_TRUE=
20749  HAVE_XMMS_FALSE='#'
20750else
20751  HAVE_XMMS_TRUE='#'
20752  HAVE_XMMS_FALSE=
20753fi
20754
20755
20756
20757
20758if test "x$HAVE_XMMS" = "xyes"; then
20759
20760# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
20761if test "${with_sdl_prefix+set}" = set; then
20762  withval="$with_sdl_prefix"
20763  sdl_prefix="$withval"
20764else
20765  sdl_prefix=""
20766fi;
20767
20768# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
20769if test "${with_sdl_exec_prefix+set}" = set; then
20770  withval="$with_sdl_exec_prefix"
20771  sdl_exec_prefix="$withval"
20772else
20773  sdl_exec_prefix=""
20774fi;
20775# Check whether --enable-sdltest or --disable-sdltest was given.
20776if test "${enable_sdltest+set}" = set; then
20777  enableval="$enable_sdltest"
20778
20779else
20780  enable_sdltest=yes
20781fi;
20782
20783  if test x$sdl_exec_prefix != x ; then
20784     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20785     if test x${SDL_CONFIG+set} != xset ; then
20786        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20787     fi
20788  fi
20789  if test x$sdl_prefix != x ; then
20790     sdl_args="$sdl_args --prefix=$sdl_prefix"
20791     if test x${SDL_CONFIG+set} != xset ; then
20792        SDL_CONFIG=$sdl_prefix/bin/sdl-config
20793     fi
20794  fi
20795
20796
20797  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20798  # Extract the first word of "sdl-config", so it can be a program name with args.
20799set dummy sdl-config; ac_word=$2
20800echo "$as_me:$LINENO: checking for $ac_word" >&5
20801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20802if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20803  echo $ECHO_N "(cached) $ECHO_C" >&6
20804else
20805  case $SDL_CONFIG in
20806  [\\/]* | ?:[\\/]*)
20807  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20808  ;;
20809  *)
20810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20811for as_dir in $PATH
20812do
20813  IFS=$as_save_IFS
20814  test -z "$as_dir" && as_dir=.
20815  for ac_exec_ext in '' $ac_executable_extensions; do
20816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20817    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20819    break 2
20820  fi
20821done
20822done
20823
20824  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
20825  ;;
20826esac
20827fi
20828SDL_CONFIG=$ac_cv_path_SDL_CONFIG
20829
20830if test -n "$SDL_CONFIG"; then
20831  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20832echo "${ECHO_T}$SDL_CONFIG" >&6
20833else
20834  echo "$as_me:$LINENO: result: no" >&5
20835echo "${ECHO_T}no" >&6
20836fi
20837
20838  min_sdl_version=1.2.0
20839  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20840echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
20841  no_sdl=""
20842  if test "$SDL_CONFIG" = "no" ; then
20843    no_sdl=yes
20844  else
20845    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
20846    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
20847
20848    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
20849           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20850    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
20851           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20852    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
20853           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20854    if test "x$enable_sdltest" = "xyes" ; then
20855      ac_save_CFLAGS="$CFLAGS"
20856      ac_save_LIBS="$LIBS"
20857      CFLAGS="$CFLAGS $SDL_CFLAGS"
20858      LIBS="$LIBS $SDL_LIBS"
20859      rm -f conf.sdltest
20860      if test "$cross_compiling" = yes; then
20861  echo $ac_n "cross compiling; assumed OK... $ac_c"
20862else
20863  cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h.  */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h.  */
20869
20870#include <stdio.h>
20871#include <stdlib.h>
20872#include <string.h>
20873#include "SDL.h"
20874
20875char*
20876my_strdup (char *str)
20877{
20878  char *new_str;
20879
20880  if (str)
20881    {
20882      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20883      strcpy (new_str, str);
20884    }
20885  else
20886    new_str = NULL;
20887
20888  return new_str;
20889}
20890
20891int main (int argc, char *argv[])
20892{
20893  int major, minor, micro;
20894  char *tmp_version;
20895
20896  /* This hangs on some systems (?)
20897  system ("touch conf.sdltest");
20898  */
20899  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20900
20901  /* HP/UX 9 (%@#!) writes to sscanf strings */
20902  tmp_version = my_strdup("$min_sdl_version");
20903  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20904     printf("%s, bad version string\n", "$min_sdl_version");
20905     exit(1);
20906   }
20907
20908   if (($sdl_major_version > major) ||
20909      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20910      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20911    {
20912      return 0;
20913    }
20914  else
20915    {
20916      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20917      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20918      printf("*** best to upgrade to the required version.\n");
20919      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20920      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20921      printf("*** config.cache before re-running configure\n");
20922      return 1;
20923    }
20924}
20925
20926
20927_ACEOF
20928rm -f conftest$ac_exeext
20929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20930  (eval $ac_link) 2>&5
20931  ac_status=$?
20932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935  (eval $ac_try) 2>&5
20936  ac_status=$?
20937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938  (exit $ac_status); }; }; then
20939  :
20940else
20941  echo "$as_me: program exited with status $ac_status" >&5
20942echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945( exit $ac_status )
20946no_sdl=yes
20947fi
20948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20949fi
20950       CFLAGS="$ac_save_CFLAGS"
20951       LIBS="$ac_save_LIBS"
20952     fi
20953  fi
20954  if test "x$no_sdl" = x ; then
20955     echo "$as_me:$LINENO: result: yes" >&5
20956echo "${ECHO_T}yes" >&6
20957     HAVE_SDL="yes"
20958  else
20959     echo "$as_me:$LINENO: result: no" >&5
20960echo "${ECHO_T}no" >&6
20961     if test "$SDL_CONFIG" = "no" ; then
20962       echo "*** The sdl-config script installed by SDL could not be found"
20963       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20964       echo "*** your path, or set the SDL_CONFIG environment variable to the"
20965       echo "*** full path to sdl-config."
20966     else
20967       if test -f conf.sdltest ; then
20968        :
20969       else
20970          echo "*** Could not run SDL test program, checking why..."
20971          CFLAGS="$CFLAGS $SDL_CFLAGS"
20972          LIBS="$LIBS $SDL_LIBS"
20973          cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h.  */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h.  */
20979
20980#include <stdio.h>
20981#include "SDL.h"
20982
20983int main(int argc, char *argv[])
20984{ return 0; }
20985#undef  main
20986#define main K_and_R_C_main
20987
20988int
20989main ()
20990{
20991 return 0;
20992  ;
20993  return 0;
20994}
20995_ACEOF
20996rm -f conftest.$ac_objext conftest$ac_exeext
20997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20998  (eval $ac_link) 2>conftest.er1
20999  ac_status=$?
21000  grep -v '^ *+' conftest.er1 >conftest.err
21001  rm -f conftest.er1
21002  cat conftest.err >&5
21003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004  (exit $ac_status); } &&
21005	 { ac_try='test -z "$ac_c_werror_flag"
21006			 || test ! -s conftest.err'
21007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008  (eval $ac_try) 2>&5
21009  ac_status=$?
21010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011  (exit $ac_status); }; } &&
21012	 { ac_try='test -s conftest$ac_exeext'
21013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014  (eval $ac_try) 2>&5
21015  ac_status=$?
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); }; }; then
21018   echo "*** The test program compiled, but did not run. This usually means"
21019          echo "*** that the run-time linker is not finding SDL or finding the wrong"
21020          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
21021          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21022          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21023          echo "*** is required on your system"
21024	  echo "***"
21025          echo "*** If you have an old version installed, it is best to remove it, although"
21026          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21027else
21028  echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 echo "*** The test program failed to compile or link. See the file config.log for the"
21032          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
21033          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
21034          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
21035fi
21036rm -f conftest.err conftest.$ac_objext \
21037      conftest$ac_exeext conftest.$ac_ext
21038          CFLAGS="$ac_save_CFLAGS"
21039          LIBS="$ac_save_LIBS"
21040       fi
21041     fi
21042     SDL_CFLAGS=""
21043     SDL_LIBS=""
21044     HAVE_SDL="no"]
21045  fi
21046
21047
21048  rm -f conf.sdltest
21049
21050else
21051  HAVE_SDL="no"
21052fi
21053
21054
21055if test "x$HAVE_SDL" = "xyes"; then
21056  HAVE_SDL_TRUE=
21057  HAVE_SDL_FALSE='#'
21058else
21059  HAVE_SDL_TRUE='#'
21060  HAVE_SDL_FALSE=
21061fi
21062
21063
21064
21065
21066HAVE_MMX="no"
21067HAVE_PPC="no"
21068MACTARGET="no"
21069
21070case "$host" in
21071*-apple-darwin*)
21072	MACTARGET="yes"
21073	MACFOLDER="mac"
21074
21075  	CCAS='$(CC)'
21076
21077	;;
21078*-*-cygwin*)
21079  	CFLAGS="$CFLAGS -mno-cygwin -mwindows"
21080	LDFLAGS="$LDFLAGS -lmingw32"
21081	;;
21082esac
21083
21084case "$host" in
21085i*86-*-*)
21086	cat >>confdefs.h <<\_ACEOF
21087#define HAVE_MMX 1
21088_ACEOF
21089
21090	cat >>confdefs.h <<\_ACEOF
21091#define CPU_X86 1
21092_ACEOF
21093
21094	HAVE_MMX="yes"
21095	;;
21096
21097powerpc-*-*)
21098  	CCASFLAGS=-force_cpusubtype_ALL
21099
21100	cat >>confdefs.h <<\_ACEOF
21101#define CPU_POWERPC 1
21102_ACEOF
21103
21104	HAVE_PPC="yes"
21105	;;
21106
21107esac
21108
21109
21110if test "x$HAVE_MMX" = "xyes"; then
21111  HAVE_MMX_TRUE=
21112  HAVE_MMX_FALSE='#'
21113else
21114  HAVE_MMX_TRUE='#'
21115  HAVE_MMX_FALSE=
21116fi
21117
21118
21119
21120if test "x$HAVE_PPC" = "xyes"; then
21121  HAVE_PPC_TRUE=
21122  HAVE_PPC_FALSE='#'
21123else
21124  HAVE_PPC_TRUE='#'
21125  HAVE_PPC_FALSE=
21126fi
21127
21128
21129
21130if test "x$MACTARGET" = "xyes"; then
21131  MACTARGET_TRUE=
21132  MACTARGET_FALSE='#'
21133else
21134  MACTARGET_TRUE='#'
21135  MACTARGET_FALSE=
21136fi
21137
21138
21139
21140if test "${ac_cv_header_pthread_h+set}" = set; then
21141  echo "$as_me:$LINENO: checking for pthread.h" >&5
21142echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
21143if test "${ac_cv_header_pthread_h+set}" = set; then
21144  echo $ECHO_N "(cached) $ECHO_C" >&6
21145fi
21146echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21147echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
21148else
21149  # Is the header compilable?
21150echo "$as_me:$LINENO: checking pthread.h usability" >&5
21151echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
21152cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h.  */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h.  */
21158$ac_includes_default
21159#include <pthread.h>
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163  (eval $ac_compile) 2>conftest.er1
21164  ac_status=$?
21165  grep -v '^ *+' conftest.er1 >conftest.err
21166  rm -f conftest.er1
21167  cat conftest.err >&5
21168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169  (exit $ac_status); } &&
21170	 { ac_try='test -z "$ac_c_werror_flag"
21171			 || test ! -s conftest.err'
21172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173  (eval $ac_try) 2>&5
21174  ac_status=$?
21175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176  (exit $ac_status); }; } &&
21177	 { ac_try='test -s conftest.$ac_objext'
21178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179  (eval $ac_try) 2>&5
21180  ac_status=$?
21181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182  (exit $ac_status); }; }; then
21183  ac_header_compiler=yes
21184else
21185  echo "$as_me: failed program was:" >&5
21186sed 's/^/| /' conftest.$ac_ext >&5
21187
21188ac_header_compiler=no
21189fi
21190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21192echo "${ECHO_T}$ac_header_compiler" >&6
21193
21194# Is the header present?
21195echo "$as_me:$LINENO: checking pthread.h presence" >&5
21196echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
21197cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h.  */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h.  */
21203#include <pthread.h>
21204_ACEOF
21205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21207  ac_status=$?
21208  grep -v '^ *+' conftest.er1 >conftest.err
21209  rm -f conftest.er1
21210  cat conftest.err >&5
21211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212  (exit $ac_status); } >/dev/null; then
21213  if test -s conftest.err; then
21214    ac_cpp_err=$ac_c_preproc_warn_flag
21215    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21216  else
21217    ac_cpp_err=
21218  fi
21219else
21220  ac_cpp_err=yes
21221fi
21222if test -z "$ac_cpp_err"; then
21223  ac_header_preproc=yes
21224else
21225  echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
21228  ac_header_preproc=no
21229fi
21230rm -f conftest.err conftest.$ac_ext
21231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21232echo "${ECHO_T}$ac_header_preproc" >&6
21233
21234# So?  What about this header?
21235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21236  yes:no: )
21237    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21238echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21239    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21240echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21241    ac_header_preproc=yes
21242    ;;
21243  no:yes:* )
21244    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21245echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21246    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21247echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21248    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21249echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21250    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21251echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21252    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21253echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21254    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21255echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21256    (
21257      cat <<\_ASBOX
21258## ------------------------------------------ ##
21259## Report this to the AC_PACKAGE_NAME lists.  ##
21260## ------------------------------------------ ##
21261_ASBOX
21262    ) |
21263      sed "s/^/$as_me: WARNING:     /" >&2
21264    ;;
21265esac
21266echo "$as_me:$LINENO: checking for pthread.h" >&5
21267echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
21268if test "${ac_cv_header_pthread_h+set}" = set; then
21269  echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
21271  ac_cv_header_pthread_h=$ac_header_preproc
21272fi
21273echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21274echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
21275
21276fi
21277if test $ac_cv_header_pthread_h = yes; then
21278  :
21279else
21280  { { echo "$as_me:$LINENO: error: *** POSIX thread support not installed - please install first ***" >&5
21281echo "$as_me: error: *** POSIX thread support not installed - please install first ***" >&2;}
21282   { (exit 1); exit 1; }; }
21283fi
21284
21285
21286
21287PTHREAD_LIBS=error
21288echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
21289echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
21290if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
21291  echo $ECHO_N "(cached) $ECHO_C" >&6
21292else
21293  ac_check_lib_save_LIBS=$LIBS
21294LIBS="-lpthread  $LIBS"
21295cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h.  */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h.  */
21301
21302/* Override any gcc2 internal prototype to avoid an error.  */
21303#ifdef __cplusplus
21304extern "C"
21305#endif
21306/* We use char because int might match the return type of a gcc2
21307   builtin and then its argument prototype would still apply.  */
21308char pthread_attr_init ();
21309int
21310main ()
21311{
21312pthread_attr_init ();
21313  ;
21314  return 0;
21315}
21316_ACEOF
21317rm -f conftest.$ac_objext conftest$ac_exeext
21318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21319  (eval $ac_link) 2>conftest.er1
21320  ac_status=$?
21321  grep -v '^ *+' conftest.er1 >conftest.err
21322  rm -f conftest.er1
21323  cat conftest.err >&5
21324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325  (exit $ac_status); } &&
21326	 { ac_try='test -z "$ac_c_werror_flag"
21327			 || test ! -s conftest.err'
21328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329  (eval $ac_try) 2>&5
21330  ac_status=$?
21331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332  (exit $ac_status); }; } &&
21333	 { ac_try='test -s conftest$ac_exeext'
21334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335  (eval $ac_try) 2>&5
21336  ac_status=$?
21337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338  (exit $ac_status); }; }; then
21339  ac_cv_lib_pthread_pthread_attr_init=yes
21340else
21341  echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344ac_cv_lib_pthread_pthread_attr_init=no
21345fi
21346rm -f conftest.err conftest.$ac_objext \
21347      conftest$ac_exeext conftest.$ac_ext
21348LIBS=$ac_check_lib_save_LIBS
21349fi
21350echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
21351echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
21352if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
21353  PTHREAD_LIBS="-lpthread"
21354fi
21355
21356
21357if test "x$PTHREAD_LIBS" = xerror; then
21358    echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
21359echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
21360if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
21361  echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363  ac_check_lib_save_LIBS=$LIBS
21364LIBS="-lpthreads  $LIBS"
21365cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h.  */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h.  */
21371
21372/* Override any gcc2 internal prototype to avoid an error.  */
21373#ifdef __cplusplus
21374extern "C"
21375#endif
21376/* We use char because int might match the return type of a gcc2
21377   builtin and then its argument prototype would still apply.  */
21378char pthread_attr_init ();
21379int
21380main ()
21381{
21382pthread_attr_init ();
21383  ;
21384  return 0;
21385}
21386_ACEOF
21387rm -f conftest.$ac_objext conftest$ac_exeext
21388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21389  (eval $ac_link) 2>conftest.er1
21390  ac_status=$?
21391  grep -v '^ *+' conftest.er1 >conftest.err
21392  rm -f conftest.er1
21393  cat conftest.err >&5
21394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395  (exit $ac_status); } &&
21396	 { ac_try='test -z "$ac_c_werror_flag"
21397			 || test ! -s conftest.err'
21398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399  (eval $ac_try) 2>&5
21400  ac_status=$?
21401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402  (exit $ac_status); }; } &&
21403	 { ac_try='test -s conftest$ac_exeext'
21404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405  (eval $ac_try) 2>&5
21406  ac_status=$?
21407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408  (exit $ac_status); }; }; then
21409  ac_cv_lib_pthreads_pthread_attr_init=yes
21410else
21411  echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
21414ac_cv_lib_pthreads_pthread_attr_init=no
21415fi
21416rm -f conftest.err conftest.$ac_objext \
21417      conftest$ac_exeext conftest.$ac_ext
21418LIBS=$ac_check_lib_save_LIBS
21419fi
21420echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
21421echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
21422if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
21423  PTHREAD_LIBS="-lpthreads"
21424fi
21425
21426fi
21427
21428if test "x$PTHREAD_LIBS" = xerror; then
21429    echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
21430echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
21431if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
21432  echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434  ac_check_lib_save_LIBS=$LIBS
21435LIBS="-lc_r  $LIBS"
21436cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h.  */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h.  */
21442
21443/* Override any gcc2 internal prototype to avoid an error.  */
21444#ifdef __cplusplus
21445extern "C"
21446#endif
21447/* We use char because int might match the return type of a gcc2
21448   builtin and then its argument prototype would still apply.  */
21449char pthread_attr_init ();
21450int
21451main ()
21452{
21453pthread_attr_init ();
21454  ;
21455  return 0;
21456}
21457_ACEOF
21458rm -f conftest.$ac_objext conftest$ac_exeext
21459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460  (eval $ac_link) 2>conftest.er1
21461  ac_status=$?
21462  grep -v '^ *+' conftest.er1 >conftest.err
21463  rm -f conftest.er1
21464  cat conftest.err >&5
21465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466  (exit $ac_status); } &&
21467	 { ac_try='test -z "$ac_c_werror_flag"
21468			 || test ! -s conftest.err'
21469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470  (eval $ac_try) 2>&5
21471  ac_status=$?
21472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473  (exit $ac_status); }; } &&
21474	 { ac_try='test -s conftest$ac_exeext'
21475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476  (eval $ac_try) 2>&5
21477  ac_status=$?
21478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479  (exit $ac_status); }; }; then
21480  ac_cv_lib_c_r_pthread_attr_init=yes
21481else
21482  echo "$as_me: failed program was:" >&5
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
21485ac_cv_lib_c_r_pthread_attr_init=no
21486fi
21487rm -f conftest.err conftest.$ac_objext \
21488      conftest$ac_exeext conftest.$ac_ext
21489LIBS=$ac_check_lib_save_LIBS
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
21492echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
21493if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
21494  PTHREAD_LIBS="-lc_r"
21495fi
21496
21497fi
21498
21499if test "x$PTHREAD_LIBS" = xerror; then
21500    echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
21501echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
21502if test "${ac_cv_func_pthread_attr_init+set}" = set; then
21503  echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505  cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h.  */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h.  */
21511/* Define pthread_attr_init to an innocuous variant, in case <limits.h> declares pthread_attr_init.
21512   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21513#define pthread_attr_init innocuous_pthread_attr_init
21514
21515/* System header to define __stub macros and hopefully few prototypes,
21516    which can conflict with char pthread_attr_init (); below.
21517    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518    <limits.h> exists even on freestanding compilers.  */
21519
21520#ifdef __STDC__
21521# include <limits.h>
21522#else
21523# include <assert.h>
21524#endif
21525
21526#undef pthread_attr_init
21527
21528/* Override any gcc2 internal prototype to avoid an error.  */
21529#ifdef __cplusplus
21530extern "C"
21531{
21532#endif
21533/* We use char because int might match the return type of a gcc2
21534   builtin and then its argument prototype would still apply.  */
21535char pthread_attr_init ();
21536/* The GNU C library defines this for functions which it implements
21537    to always fail with ENOSYS.  Some functions are actually named
21538    something starting with __ and the normal name is an alias.  */
21539#if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
21540choke me
21541#else
21542char (*f) () = pthread_attr_init;
21543#endif
21544#ifdef __cplusplus
21545}
21546#endif
21547
21548int
21549main ()
21550{
21551return f != pthread_attr_init;
21552  ;
21553  return 0;
21554}
21555_ACEOF
21556rm -f conftest.$ac_objext conftest$ac_exeext
21557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21558  (eval $ac_link) 2>conftest.er1
21559  ac_status=$?
21560  grep -v '^ *+' conftest.er1 >conftest.err
21561  rm -f conftest.er1
21562  cat conftest.err >&5
21563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564  (exit $ac_status); } &&
21565	 { ac_try='test -z "$ac_c_werror_flag"
21566			 || test ! -s conftest.err'
21567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568  (eval $ac_try) 2>&5
21569  ac_status=$?
21570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571  (exit $ac_status); }; } &&
21572	 { ac_try='test -s conftest$ac_exeext'
21573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574  (eval $ac_try) 2>&5
21575  ac_status=$?
21576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577  (exit $ac_status); }; }; then
21578  ac_cv_func_pthread_attr_init=yes
21579else
21580  echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583ac_cv_func_pthread_attr_init=no
21584fi
21585rm -f conftest.err conftest.$ac_objext \
21586      conftest$ac_exeext conftest.$ac_ext
21587fi
21588echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
21589echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
21590if test $ac_cv_func_pthread_attr_init = yes; then
21591  PTHREAD_LIBS=""
21592fi
21593
21594fi
21595
21596
21597
21598
21599
21600
21601
21602
21603                                                  ac_config_files="$ac_config_files Makefile src/Makefile xmms-goom/Makefile sdl-goom/Makefile libgoom2.pc"
21604cat >confcache <<\_ACEOF
21605# This file is a shell script that caches the results of configure
21606# tests run on this system so they can be shared between configure
21607# scripts and configure runs, see configure's option --config-cache.
21608# It is not useful on other systems.  If it contains results you don't
21609# want to keep, you may remove or edit it.
21610#
21611# config.status only pays attention to the cache file if you give it
21612# the --recheck option to rerun configure.
21613#
21614# `ac_cv_env_foo' variables (set or unset) will be overridden when
21615# loading this file, other *unset* `ac_cv_foo' will be assigned the
21616# following values.
21617
21618_ACEOF
21619
21620# The following way of writing the cache mishandles newlines in values,
21621# but we know of no workaround that is simple, portable, and efficient.
21622# So, don't put newlines in cache variables' values.
21623# Ultrix sh set writes to stderr and can't be redirected directly,
21624# and sets the high bit in the cache file unless we assign to the vars.
21625{
21626  (set) 2>&1 |
21627    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21628    *ac_space=\ *)
21629      # `set' does not quote correctly, so add quotes (double-quote
21630      # substitution turns \\\\ into \\, and sed turns \\ into \).
21631      sed -n \
21632	"s/'/'\\\\''/g;
21633	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21634      ;;
21635    *)
21636      # `set' quotes correctly as required by POSIX, so do not add quotes.
21637      sed -n \
21638	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21639      ;;
21640    esac;
21641} |
21642  sed '
21643     t clear
21644     : clear
21645     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21646     t end
21647     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21648     : end' >>confcache
21649if diff $cache_file confcache >/dev/null 2>&1; then :; else
21650  if test -w $cache_file; then
21651    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21652    cat confcache >$cache_file
21653  else
21654    echo "not updating unwritable cache $cache_file"
21655  fi
21656fi
21657rm -f confcache
21658
21659test "x$prefix" = xNONE && prefix=$ac_default_prefix
21660# Let make expand exec_prefix.
21661test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21662
21663# VPATH may cause trouble with some makes, so we remove $(srcdir),
21664# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21665# trailing colons and then remove the whole line if VPATH becomes empty
21666# (actually we leave an empty line to preserve line numbers).
21667if test "x$srcdir" = x.; then
21668  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21669s/:*\$(srcdir):*/:/;
21670s/:*\${srcdir}:*/:/;
21671s/:*@srcdir@:*/:/;
21672s/^\([^=]*=[	 ]*\):*/\1/;
21673s/:*$//;
21674s/^[^=]*=[	 ]*$//;
21675}'
21676fi
21677
21678# Transform confdefs.h into DEFS.
21679# Protect against shell expansion while executing Makefile rules.
21680# Protect against Makefile macro expansion.
21681#
21682# If the first sed substitution is executed (which looks for macros that
21683# take arguments), then we branch to the quote section.  Otherwise,
21684# look for a macro that doesn't take arguments.
21685cat >confdef2opt.sed <<\_ACEOF
21686t clear
21687: clear
21688s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21689t quote
21690s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21691t quote
21692d
21693: quote
21694s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21695s,\[,\\&,g
21696s,\],\\&,g
21697s,\$,$$,g
21698p
21699_ACEOF
21700# We use echo to avoid assuming a particular line-breaking character.
21701# The extra dot is to prevent the shell from consuming trailing
21702# line-breaks from the sub-command output.  A line-break within
21703# single-quotes doesn't work because, if this script is created in a
21704# platform that uses two characters for line-breaks (e.g., DOS), tr
21705# would break.
21706ac_LF_and_DOT=`echo; echo .`
21707DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21708rm -f confdef2opt.sed
21709
21710
21711ac_libobjs=
21712ac_ltlibobjs=
21713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21714  # 1. Remove the extension, and $U if already installed.
21715  ac_i=`echo "$ac_i" |
21716	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21717  # 2. Add them.
21718  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21719  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21720done
21721LIBOBJS=$ac_libobjs
21722
21723LTLIBOBJS=$ac_ltlibobjs
21724
21725
21726if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21727  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21728Usually this means the macro was only invoked conditionally." >&5
21729echo "$as_me: error: conditional \"AMDEP\" was never defined.
21730Usually this means the macro was only invoked conditionally." >&2;}
21731   { (exit 1); exit 1; }; }
21732fi
21733if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21734  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21735Usually this means the macro was only invoked conditionally." >&5
21736echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21737Usually this means the macro was only invoked conditionally." >&2;}
21738   { (exit 1); exit 1; }; }
21739fi
21740if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21741  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21742Usually this means the macro was only invoked conditionally." >&5
21743echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21744Usually this means the macro was only invoked conditionally." >&2;}
21745   { (exit 1); exit 1; }; }
21746fi
21747if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21748  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21749Usually this means the macro was only invoked conditionally." >&5
21750echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21751Usually this means the macro was only invoked conditionally." >&2;}
21752   { (exit 1); exit 1; }; }
21753fi
21754if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
21755  { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMMS\" was never defined.
21756Usually this means the macro was only invoked conditionally." >&5
21757echo "$as_me: error: conditional \"HAVE_XMMS\" was never defined.
21758Usually this means the macro was only invoked conditionally." >&2;}
21759   { (exit 1); exit 1; }; }
21760fi
21761if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
21762  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
21763Usually this means the macro was only invoked conditionally." >&5
21764echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
21765Usually this means the macro was only invoked conditionally." >&2;}
21766   { (exit 1); exit 1; }; }
21767fi
21768if test -z "${HAVE_MMX_TRUE}" && test -z "${HAVE_MMX_FALSE}"; then
21769  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MMX\" was never defined.
21770Usually this means the macro was only invoked conditionally." >&5
21771echo "$as_me: error: conditional \"HAVE_MMX\" was never defined.
21772Usually this means the macro was only invoked conditionally." >&2;}
21773   { (exit 1); exit 1; }; }
21774fi
21775if test -z "${HAVE_PPC_TRUE}" && test -z "${HAVE_PPC_FALSE}"; then
21776  { { echo "$as_me:$LINENO: error: conditional \"HAVE_PPC\" was never defined.
21777Usually this means the macro was only invoked conditionally." >&5
21778echo "$as_me: error: conditional \"HAVE_PPC\" was never defined.
21779Usually this means the macro was only invoked conditionally." >&2;}
21780   { (exit 1); exit 1; }; }
21781fi
21782if test -z "${MACTARGET_TRUE}" && test -z "${MACTARGET_FALSE}"; then
21783  { { echo "$as_me:$LINENO: error: conditional \"MACTARGET\" was never defined.
21784Usually this means the macro was only invoked conditionally." >&5
21785echo "$as_me: error: conditional \"MACTARGET\" was never defined.
21786Usually this means the macro was only invoked conditionally." >&2;}
21787   { (exit 1); exit 1; }; }
21788fi
21789
21790: ${CONFIG_STATUS=./config.status}
21791ac_clean_files_save=$ac_clean_files
21792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21793{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21794echo "$as_me: creating $CONFIG_STATUS" >&6;}
21795cat >$CONFIG_STATUS <<_ACEOF
21796#! $SHELL
21797# Generated by $as_me.
21798# Run this file to recreate the current configuration.
21799# Compiler output produced by configure, useful for debugging
21800# configure, is in config.log if it exists.
21801
21802debug=false
21803ac_cs_recheck=false
21804ac_cs_silent=false
21805SHELL=\${CONFIG_SHELL-$SHELL}
21806_ACEOF
21807
21808cat >>$CONFIG_STATUS <<\_ACEOF
21809## --------------------- ##
21810## M4sh Initialization.  ##
21811## --------------------- ##
21812
21813# Be Bourne compatible
21814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21815  emulate sh
21816  NULLCMD=:
21817  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21818  # is contrary to our usage.  Disable this feature.
21819  alias -g '${1+"$@"}'='"$@"'
21820elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21821  set -o posix
21822fi
21823DUALCASE=1; export DUALCASE # for MKS sh
21824
21825# Support unset when possible.
21826if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21827  as_unset=unset
21828else
21829  as_unset=false
21830fi
21831
21832
21833# Work around bugs in pre-3.0 UWIN ksh.
21834$as_unset ENV MAIL MAILPATH
21835PS1='$ '
21836PS2='> '
21837PS4='+ '
21838
21839# NLS nuisances.
21840for as_var in \
21841  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21842  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21843  LC_TELEPHONE LC_TIME
21844do
21845  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21846    eval $as_var=C; export $as_var
21847  else
21848    $as_unset $as_var
21849  fi
21850done
21851
21852# Required to use basename.
21853if expr a : '\(a\)' >/dev/null 2>&1; then
21854  as_expr=expr
21855else
21856  as_expr=false
21857fi
21858
21859if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21860  as_basename=basename
21861else
21862  as_basename=false
21863fi
21864
21865
21866# Name of the executable.
21867as_me=`$as_basename "$0" ||
21868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21869	 X"$0" : 'X\(//\)$' \| \
21870	 X"$0" : 'X\(/\)$' \| \
21871	 .     : '\(.\)' 2>/dev/null ||
21872echo X/"$0" |
21873    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21874  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21875  	  /^X\/\(\/\).*/{ s//\1/; q; }
21876  	  s/.*/./; q'`
21877
21878
21879# PATH needs CR, and LINENO needs CR and PATH.
21880# Avoid depending upon Character Ranges.
21881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21884as_cr_digits='0123456789'
21885as_cr_alnum=$as_cr_Letters$as_cr_digits
21886
21887# The user is always right.
21888if test "${PATH_SEPARATOR+set}" != set; then
21889  echo "#! /bin/sh" >conf$$.sh
21890  echo  "exit 0"   >>conf$$.sh
21891  chmod +x conf$$.sh
21892  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21893    PATH_SEPARATOR=';'
21894  else
21895    PATH_SEPARATOR=:
21896  fi
21897  rm -f conf$$.sh
21898fi
21899
21900
21901  as_lineno_1=$LINENO
21902  as_lineno_2=$LINENO
21903  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21904  test "x$as_lineno_1" != "x$as_lineno_2" &&
21905  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21906  # Find who we are.  Look in the path if we contain no path at all
21907  # relative or not.
21908  case $0 in
21909    *[\\/]* ) as_myself=$0 ;;
21910    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21911for as_dir in $PATH
21912do
21913  IFS=$as_save_IFS
21914  test -z "$as_dir" && as_dir=.
21915  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21916done
21917
21918       ;;
21919  esac
21920  # We did not find ourselves, most probably we were run as `sh COMMAND'
21921  # in which case we are not to be found in the path.
21922  if test "x$as_myself" = x; then
21923    as_myself=$0
21924  fi
21925  if test ! -f "$as_myself"; then
21926    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21927echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21928   { (exit 1); exit 1; }; }
21929  fi
21930  case $CONFIG_SHELL in
21931  '')
21932    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21934do
21935  IFS=$as_save_IFS
21936  test -z "$as_dir" && as_dir=.
21937  for as_base in sh bash ksh sh5; do
21938	 case $as_dir in
21939	 /*)
21940	   if ("$as_dir/$as_base" -c '
21941  as_lineno_1=$LINENO
21942  as_lineno_2=$LINENO
21943  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21944  test "x$as_lineno_1" != "x$as_lineno_2" &&
21945  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21946	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21947	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21948	     CONFIG_SHELL=$as_dir/$as_base
21949	     export CONFIG_SHELL
21950	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21951	   fi;;
21952	 esac
21953       done
21954done
21955;;
21956  esac
21957
21958  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21959  # uniformly replaced by the line number.  The first 'sed' inserts a
21960  # line-number line before each line; the second 'sed' does the real
21961  # work.  The second script uses 'N' to pair each line-number line
21962  # with the numbered line, and appends trailing '-' during
21963  # substitution so that $LINENO is not a special case at line end.
21964  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21965  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21966  sed '=' <$as_myself |
21967    sed '
21968      N
21969      s,$,-,
21970      : loop
21971      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21972      t loop
21973      s,-$,,
21974      s,^['$as_cr_digits']*\n,,
21975    ' >$as_me.lineno &&
21976  chmod +x $as_me.lineno ||
21977    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21978echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21979   { (exit 1); exit 1; }; }
21980
21981  # Don't try to exec as it changes $[0], causing all sort of problems
21982  # (the dirname of $[0] is not the place where we might find the
21983  # original and so on.  Autoconf is especially sensible to this).
21984  . ./$as_me.lineno
21985  # Exit status is that of the last command.
21986  exit
21987}
21988
21989
21990case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21991  *c*,-n*) ECHO_N= ECHO_C='
21992' ECHO_T='	' ;;
21993  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21994  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21995esac
21996
21997if expr a : '\(a\)' >/dev/null 2>&1; then
21998  as_expr=expr
21999else
22000  as_expr=false
22001fi
22002
22003rm -f conf$$ conf$$.exe conf$$.file
22004echo >conf$$.file
22005if ln -s conf$$.file conf$$ 2>/dev/null; then
22006  # We could just check for DJGPP; but this test a) works b) is more generic
22007  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22008  if test -f conf$$.exe; then
22009    # Don't use ln at all; we don't have any links
22010    as_ln_s='cp -p'
22011  else
22012    as_ln_s='ln -s'
22013  fi
22014elif ln conf$$.file conf$$ 2>/dev/null; then
22015  as_ln_s=ln
22016else
22017  as_ln_s='cp -p'
22018fi
22019rm -f conf$$ conf$$.exe conf$$.file
22020
22021if mkdir -p . 2>/dev/null; then
22022  as_mkdir_p=:
22023else
22024  test -d ./-p && rmdir ./-p
22025  as_mkdir_p=false
22026fi
22027
22028as_executable_p="test -f"
22029
22030# Sed expression to map a string onto a valid CPP name.
22031as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22032
22033# Sed expression to map a string onto a valid variable name.
22034as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22035
22036
22037# IFS
22038# We need space, tab and new line, in precisely that order.
22039as_nl='
22040'
22041IFS=" 	$as_nl"
22042
22043# CDPATH.
22044$as_unset CDPATH
22045
22046exec 6>&1
22047
22048# Open the log real soon, to keep \$[0] and so on meaningful, and to
22049# report actual input values of CONFIG_FILES etc. instead of their
22050# values after options handling.  Logging --version etc. is OK.
22051exec 5>>config.log
22052{
22053  echo
22054  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22055## Running $as_me. ##
22056_ASBOX
22057} >&5
22058cat >&5 <<_CSEOF
22059
22060This file was extended by $as_me, which was
22061generated by GNU Autoconf 2.59.  Invocation command line was
22062
22063  CONFIG_FILES    = $CONFIG_FILES
22064  CONFIG_HEADERS  = $CONFIG_HEADERS
22065  CONFIG_LINKS    = $CONFIG_LINKS
22066  CONFIG_COMMANDS = $CONFIG_COMMANDS
22067  $ $0 $@
22068
22069_CSEOF
22070echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22071echo >&5
22072_ACEOF
22073
22074# Files that config.status was made for.
22075if test -n "$ac_config_files"; then
22076  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22077fi
22078
22079if test -n "$ac_config_headers"; then
22080  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22081fi
22082
22083if test -n "$ac_config_links"; then
22084  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22085fi
22086
22087if test -n "$ac_config_commands"; then
22088  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22089fi
22090
22091cat >>$CONFIG_STATUS <<\_ACEOF
22092
22093ac_cs_usage="\
22094\`$as_me' instantiates files from templates according to the
22095current configuration.
22096
22097Usage: $0 [OPTIONS] [FILE]...
22098
22099  -h, --help       print this help, then exit
22100  -V, --version    print version number, then exit
22101  -q, --quiet      do not print progress messages
22102  -d, --debug      don't remove temporary files
22103      --recheck    update $as_me by reconfiguring in the same conditions
22104  --file=FILE[:TEMPLATE]
22105		   instantiate the configuration file FILE
22106
22107Configuration files:
22108$config_files
22109
22110Configuration commands:
22111$config_commands
22112
22113Report bugs to <bug-autoconf@gnu.org>."
22114_ACEOF
22115
22116cat >>$CONFIG_STATUS <<_ACEOF
22117ac_cs_version="\\
22118config.status
22119configured by $0, generated by GNU Autoconf 2.59,
22120  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22121
22122Copyright (C) 2003 Free Software Foundation, Inc.
22123This config.status script is free software; the Free Software Foundation
22124gives unlimited permission to copy, distribute and modify it."
22125srcdir=$srcdir
22126INSTALL="$INSTALL"
22127_ACEOF
22128
22129cat >>$CONFIG_STATUS <<\_ACEOF
22130# If no file are specified by the user, then we need to provide default
22131# value.  By we need to know if files were specified by the user.
22132ac_need_defaults=:
22133while test $# != 0
22134do
22135  case $1 in
22136  --*=*)
22137    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22138    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22139    ac_shift=:
22140    ;;
22141  -*)
22142    ac_option=$1
22143    ac_optarg=$2
22144    ac_shift=shift
22145    ;;
22146  *) # This is not an option, so the user has probably given explicit
22147     # arguments.
22148     ac_option=$1
22149     ac_need_defaults=false;;
22150  esac
22151
22152  case $ac_option in
22153  # Handling of the options.
22154_ACEOF
22155cat >>$CONFIG_STATUS <<\_ACEOF
22156  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22157    ac_cs_recheck=: ;;
22158  --version | --vers* | -V )
22159    echo "$ac_cs_version"; exit 0 ;;
22160  --he | --h)
22161    # Conflict between --help and --header
22162    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22163Try \`$0 --help' for more information." >&5
22164echo "$as_me: error: ambiguous option: $1
22165Try \`$0 --help' for more information." >&2;}
22166   { (exit 1); exit 1; }; };;
22167  --help | --hel | -h )
22168    echo "$ac_cs_usage"; exit 0 ;;
22169  --debug | --d* | -d )
22170    debug=: ;;
22171  --file | --fil | --fi | --f )
22172    $ac_shift
22173    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22174    ac_need_defaults=false;;
22175  --header | --heade | --head | --hea )
22176    $ac_shift
22177    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22178    ac_need_defaults=false;;
22179  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22180  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22181    ac_cs_silent=: ;;
22182
22183  # This is an error.
22184  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22185Try \`$0 --help' for more information." >&5
22186echo "$as_me: error: unrecognized option: $1
22187Try \`$0 --help' for more information." >&2;}
22188   { (exit 1); exit 1; }; } ;;
22189
22190  *) ac_config_targets="$ac_config_targets $1" ;;
22191
22192  esac
22193  shift
22194done
22195
22196ac_configure_extra_args=
22197
22198if $ac_cs_silent; then
22199  exec 6>/dev/null
22200  ac_configure_extra_args="$ac_configure_extra_args --silent"
22201fi
22202
22203_ACEOF
22204cat >>$CONFIG_STATUS <<_ACEOF
22205if \$ac_cs_recheck; then
22206  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22207  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22208fi
22209
22210_ACEOF
22211
22212cat >>$CONFIG_STATUS <<_ACEOF
22213#
22214# INIT-COMMANDS section.
22215#
22216
22217AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22218
22219_ACEOF
22220
22221
22222
22223cat >>$CONFIG_STATUS <<\_ACEOF
22224for ac_config_target in $ac_config_targets
22225do
22226  case "$ac_config_target" in
22227  # Handling of arguments.
22228  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22229  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22230  "xmms-goom/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmms-goom/Makefile" ;;
22231  "sdl-goom/Makefile" ) CONFIG_FILES="$CONFIG_FILES sdl-goom/Makefile" ;;
22232  "libgoom2.pc" ) CONFIG_FILES="$CONFIG_FILES libgoom2.pc" ;;
22233  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22234  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22235echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22236   { (exit 1); exit 1; }; };;
22237  esac
22238done
22239
22240# If the user did not use the arguments to specify the items to instantiate,
22241# then the envvar interface is used.  Set only those that are not.
22242# We use the long form for the default assignment because of an extremely
22243# bizarre bug on SunOS 4.1.3.
22244if $ac_need_defaults; then
22245  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22246  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22247fi
22248
22249# Have a temporary directory for convenience.  Make it in the build tree
22250# simply because there is no reason to put it here, and in addition,
22251# creating and moving files from /tmp can sometimes cause problems.
22252# Create a temporary directory, and hook for its removal unless debugging.
22253$debug ||
22254{
22255  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22256  trap '{ (exit 1); exit 1; }' 1 2 13 15
22257}
22258
22259# Create a (secure) tmp directory for tmp files.
22260
22261{
22262  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22263  test -n "$tmp" && test -d "$tmp"
22264}  ||
22265{
22266  tmp=./confstat$$-$RANDOM
22267  (umask 077 && mkdir $tmp)
22268} ||
22269{
22270   echo "$me: cannot create a temporary directory in ." >&2
22271   { (exit 1); exit 1; }
22272}
22273
22274_ACEOF
22275
22276cat >>$CONFIG_STATUS <<_ACEOF
22277
22278#
22279# CONFIG_FILES section.
22280#
22281
22282# No need to generate the scripts if there are no CONFIG_FILES.
22283# This happens for instance when ./config.status config.h
22284if test -n "\$CONFIG_FILES"; then
22285  # Protect against being on the right side of a sed subst in config.status.
22286  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22287   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22288s,@SHELL@,$SHELL,;t t
22289s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22290s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22291s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22292s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22293s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22294s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22295s,@exec_prefix@,$exec_prefix,;t t
22296s,@prefix@,$prefix,;t t
22297s,@program_transform_name@,$program_transform_name,;t t
22298s,@bindir@,$bindir,;t t
22299s,@sbindir@,$sbindir,;t t
22300s,@libexecdir@,$libexecdir,;t t
22301s,@datadir@,$datadir,;t t
22302s,@sysconfdir@,$sysconfdir,;t t
22303s,@sharedstatedir@,$sharedstatedir,;t t
22304s,@localstatedir@,$localstatedir,;t t
22305s,@libdir@,$libdir,;t t
22306s,@includedir@,$includedir,;t t
22307s,@oldincludedir@,$oldincludedir,;t t
22308s,@infodir@,$infodir,;t t
22309s,@mandir@,$mandir,;t t
22310s,@build_alias@,$build_alias,;t t
22311s,@host_alias@,$host_alias,;t t
22312s,@target_alias@,$target_alias,;t t
22313s,@DEFS@,$DEFS,;t t
22314s,@ECHO_C@,$ECHO_C,;t t
22315s,@ECHO_N@,$ECHO_N,;t t
22316s,@ECHO_T@,$ECHO_T,;t t
22317s,@LIBS@,$LIBS,;t t
22318s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22319s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22320s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22321s,@CYGPATH_W@,$CYGPATH_W,;t t
22322s,@PACKAGE@,$PACKAGE,;t t
22323s,@VERSION@,$VERSION,;t t
22324s,@ACLOCAL@,$ACLOCAL,;t t
22325s,@AUTOCONF@,$AUTOCONF,;t t
22326s,@AUTOMAKE@,$AUTOMAKE,;t t
22327s,@AUTOHEADER@,$AUTOHEADER,;t t
22328s,@MAKEINFO@,$MAKEINFO,;t t
22329s,@install_sh@,$install_sh,;t t
22330s,@STRIP@,$STRIP,;t t
22331s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22332s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22333s,@mkdir_p@,$mkdir_p,;t t
22334s,@AWK@,$AWK,;t t
22335s,@SET_MAKE@,$SET_MAKE,;t t
22336s,@am__leading_dot@,$am__leading_dot,;t t
22337s,@AMTAR@,$AMTAR,;t t
22338s,@am__tar@,$am__tar,;t t
22339s,@am__untar@,$am__untar,;t t
22340s,@build@,$build,;t t
22341s,@build_cpu@,$build_cpu,;t t
22342s,@build_vendor@,$build_vendor,;t t
22343s,@build_os@,$build_os,;t t
22344s,@host@,$host,;t t
22345s,@host_cpu@,$host_cpu,;t t
22346s,@host_vendor@,$host_vendor,;t t
22347s,@host_os@,$host_os,;t t
22348s,@CC@,$CC,;t t
22349s,@CFLAGS@,$CFLAGS,;t t
22350s,@LDFLAGS@,$LDFLAGS,;t t
22351s,@CPPFLAGS@,$CPPFLAGS,;t t
22352s,@ac_ct_CC@,$ac_ct_CC,;t t
22353s,@EXEEXT@,$EXEEXT,;t t
22354s,@OBJEXT@,$OBJEXT,;t t
22355s,@DEPDIR@,$DEPDIR,;t t
22356s,@am__include@,$am__include,;t t
22357s,@am__quote@,$am__quote,;t t
22358s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22359s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22360s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22361s,@CCDEPMODE@,$CCDEPMODE,;t t
22362s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22363s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22364s,@EGREP@,$EGREP,;t t
22365s,@LN_S@,$LN_S,;t t
22366s,@ECHO@,$ECHO,;t t
22367s,@AR@,$AR,;t t
22368s,@ac_ct_AR@,$ac_ct_AR,;t t
22369s,@RANLIB@,$RANLIB,;t t
22370s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22371s,@CPP@,$CPP,;t t
22372s,@CXX@,$CXX,;t t
22373s,@CXXFLAGS@,$CXXFLAGS,;t t
22374s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22375s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22376s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22377s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22378s,@CXXCPP@,$CXXCPP,;t t
22379s,@F77@,$F77,;t t
22380s,@FFLAGS@,$FFLAGS,;t t
22381s,@ac_ct_F77@,$ac_ct_F77,;t t
22382s,@LIBTOOL@,$LIBTOOL,;t t
22383s,@LEX@,$LEX,;t t
22384s,@LEXLIB@,$LEXLIB,;t t
22385s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22386s,@YACC@,$YACC,;t t
22387s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t
22388s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t
22389s,@XMMS_LIBS@,$XMMS_LIBS,;t t
22390s,@XMMS_VERSION@,$XMMS_VERSION,;t t
22391s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t
22392s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t
22393s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t
22394s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t
22395s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t
22396s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t
22397s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t
22398s,@HAVE_XMMS_TRUE@,$HAVE_XMMS_TRUE,;t t
22399s,@HAVE_XMMS_FALSE@,$HAVE_XMMS_FALSE,;t t
22400s,@SDL_CONFIG@,$SDL_CONFIG,;t t
22401s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
22402s,@SDL_LIBS@,$SDL_LIBS,;t t
22403s,@HAVE_SDL_TRUE@,$HAVE_SDL_TRUE,;t t
22404s,@HAVE_SDL_FALSE@,$HAVE_SDL_FALSE,;t t
22405s,@MACFOLDER@,$MACFOLDER,;t t
22406s,@CCAS@,$CCAS,;t t
22407s,@CCASFLAGS@,$CCASFLAGS,;t t
22408s,@HAVE_MMX_TRUE@,$HAVE_MMX_TRUE,;t t
22409s,@HAVE_MMX_FALSE@,$HAVE_MMX_FALSE,;t t
22410s,@HAVE_PPC_TRUE@,$HAVE_PPC_TRUE,;t t
22411s,@HAVE_PPC_FALSE@,$HAVE_PPC_FALSE,;t t
22412s,@MACTARGET_TRUE@,$MACTARGET_TRUE,;t t
22413s,@MACTARGET_FALSE@,$MACTARGET_FALSE,;t t
22414s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22415s,@LIBOBJS@,$LIBOBJS,;t t
22416s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22417CEOF
22418
22419_ACEOF
22420
22421  cat >>$CONFIG_STATUS <<\_ACEOF
22422  # Split the substitutions into bite-sized pieces for seds with
22423  # small command number limits, like on Digital OSF/1 and HP-UX.
22424  ac_max_sed_lines=48
22425  ac_sed_frag=1 # Number of current file.
22426  ac_beg=1 # First line for current file.
22427  ac_end=$ac_max_sed_lines # Line after last line for current file.
22428  ac_more_lines=:
22429  ac_sed_cmds=
22430  while $ac_more_lines; do
22431    if test $ac_beg -gt 1; then
22432      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22433    else
22434      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22435    fi
22436    if test ! -s $tmp/subs.frag; then
22437      ac_more_lines=false
22438    else
22439      # The purpose of the label and of the branching condition is to
22440      # speed up the sed processing (if there are no `@' at all, there
22441      # is no need to browse any of the substitutions).
22442      # These are the two extra sed commands mentioned above.
22443      (echo ':t
22444  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22445      if test -z "$ac_sed_cmds"; then
22446	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22447      else
22448	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22449      fi
22450      ac_sed_frag=`expr $ac_sed_frag + 1`
22451      ac_beg=$ac_end
22452      ac_end=`expr $ac_end + $ac_max_sed_lines`
22453    fi
22454  done
22455  if test -z "$ac_sed_cmds"; then
22456    ac_sed_cmds=cat
22457  fi
22458fi # test -n "$CONFIG_FILES"
22459
22460_ACEOF
22461cat >>$CONFIG_STATUS <<\_ACEOF
22462for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22463  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22464  case $ac_file in
22465  - | *:- | *:-:* ) # input from stdin
22466	cat >$tmp/stdin
22467	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22468	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22469  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22470	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22471  * )   ac_file_in=$ac_file.in ;;
22472  esac
22473
22474  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22475  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22477	 X"$ac_file" : 'X\(//\)[^/]' \| \
22478	 X"$ac_file" : 'X\(//\)$' \| \
22479	 X"$ac_file" : 'X\(/\)' \| \
22480	 .     : '\(.\)' 2>/dev/null ||
22481echo X"$ac_file" |
22482    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22483  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22484  	  /^X\(\/\/\)$/{ s//\1/; q; }
22485  	  /^X\(\/\).*/{ s//\1/; q; }
22486  	  s/.*/./; q'`
22487  { if $as_mkdir_p; then
22488    mkdir -p "$ac_dir"
22489  else
22490    as_dir="$ac_dir"
22491    as_dirs=
22492    while test ! -d "$as_dir"; do
22493      as_dirs="$as_dir $as_dirs"
22494      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22496	 X"$as_dir" : 'X\(//\)[^/]' \| \
22497	 X"$as_dir" : 'X\(//\)$' \| \
22498	 X"$as_dir" : 'X\(/\)' \| \
22499	 .     : '\(.\)' 2>/dev/null ||
22500echo X"$as_dir" |
22501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22502  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22503  	  /^X\(\/\/\)$/{ s//\1/; q; }
22504  	  /^X\(\/\).*/{ s//\1/; q; }
22505  	  s/.*/./; q'`
22506    done
22507    test ! -n "$as_dirs" || mkdir $as_dirs
22508  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22509echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22510   { (exit 1); exit 1; }; }; }
22511
22512  ac_builddir=.
22513
22514if test "$ac_dir" != .; then
22515  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22516  # A "../" for each directory in $ac_dir_suffix.
22517  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22518else
22519  ac_dir_suffix= ac_top_builddir=
22520fi
22521
22522case $srcdir in
22523  .)  # No --srcdir option.  We are building in place.
22524    ac_srcdir=.
22525    if test -z "$ac_top_builddir"; then
22526       ac_top_srcdir=.
22527    else
22528       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22529    fi ;;
22530  [\\/]* | ?:[\\/]* )  # Absolute path.
22531    ac_srcdir=$srcdir$ac_dir_suffix;
22532    ac_top_srcdir=$srcdir ;;
22533  *) # Relative path.
22534    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22535    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22536esac
22537
22538# Do not use `cd foo && pwd` to compute absolute paths, because
22539# the directories may not exist.
22540case `pwd` in
22541.) ac_abs_builddir="$ac_dir";;
22542*)
22543  case "$ac_dir" in
22544  .) ac_abs_builddir=`pwd`;;
22545  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22546  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22547  esac;;
22548esac
22549case $ac_abs_builddir in
22550.) ac_abs_top_builddir=${ac_top_builddir}.;;
22551*)
22552  case ${ac_top_builddir}. in
22553  .) ac_abs_top_builddir=$ac_abs_builddir;;
22554  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22555  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22556  esac;;
22557esac
22558case $ac_abs_builddir in
22559.) ac_abs_srcdir=$ac_srcdir;;
22560*)
22561  case $ac_srcdir in
22562  .) ac_abs_srcdir=$ac_abs_builddir;;
22563  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22564  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22565  esac;;
22566esac
22567case $ac_abs_builddir in
22568.) ac_abs_top_srcdir=$ac_top_srcdir;;
22569*)
22570  case $ac_top_srcdir in
22571  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22572  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22573  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22574  esac;;
22575esac
22576
22577
22578  case $INSTALL in
22579  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22580  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22581  esac
22582
22583  if test x"$ac_file" != x-; then
22584    { echo "$as_me:$LINENO: creating $ac_file" >&5
22585echo "$as_me: creating $ac_file" >&6;}
22586    rm -f "$ac_file"
22587  fi
22588  # Let's still pretend it is `configure' which instantiates (i.e., don't
22589  # use $as_me), people would be surprised to read:
22590  #    /* config.h.  Generated by config.status.  */
22591  if test x"$ac_file" = x-; then
22592    configure_input=
22593  else
22594    configure_input="$ac_file.  "
22595  fi
22596  configure_input=$configure_input"Generated from `echo $ac_file_in |
22597				     sed 's,.*/,,'` by configure."
22598
22599  # First look for the input files in the build tree, otherwise in the
22600  # src tree.
22601  ac_file_inputs=`IFS=:
22602    for f in $ac_file_in; do
22603      case $f in
22604      -) echo $tmp/stdin ;;
22605      [\\/$]*)
22606	 # Absolute (can't be DOS-style, as IFS=:)
22607	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22608echo "$as_me: error: cannot find input file: $f" >&2;}
22609   { (exit 1); exit 1; }; }
22610	 echo "$f";;
22611      *) # Relative
22612	 if test -f "$f"; then
22613	   # Build tree
22614	   echo "$f"
22615	 elif test -f "$srcdir/$f"; then
22616	   # Source tree
22617	   echo "$srcdir/$f"
22618	 else
22619	   # /dev/null tree
22620	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22621echo "$as_me: error: cannot find input file: $f" >&2;}
22622   { (exit 1); exit 1; }; }
22623	 fi;;
22624      esac
22625    done` || { (exit 1); exit 1; }
22626_ACEOF
22627cat >>$CONFIG_STATUS <<_ACEOF
22628  sed "$ac_vpsub
22629$extrasub
22630_ACEOF
22631cat >>$CONFIG_STATUS <<\_ACEOF
22632:t
22633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22634s,@configure_input@,$configure_input,;t t
22635s,@srcdir@,$ac_srcdir,;t t
22636s,@abs_srcdir@,$ac_abs_srcdir,;t t
22637s,@top_srcdir@,$ac_top_srcdir,;t t
22638s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22639s,@builddir@,$ac_builddir,;t t
22640s,@abs_builddir@,$ac_abs_builddir,;t t
22641s,@top_builddir@,$ac_top_builddir,;t t
22642s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22643s,@INSTALL@,$ac_INSTALL,;t t
22644" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22645  rm -f $tmp/stdin
22646  if test x"$ac_file" != x-; then
22647    mv $tmp/out $ac_file
22648  else
22649    cat $tmp/out
22650    rm -f $tmp/out
22651  fi
22652
22653done
22654_ACEOF
22655cat >>$CONFIG_STATUS <<\_ACEOF
22656
22657#
22658# CONFIG_COMMANDS section.
22659#
22660for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22661  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22662  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22663  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22664$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22665	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22666	 X"$ac_dest" : 'X\(//\)$' \| \
22667	 X"$ac_dest" : 'X\(/\)' \| \
22668	 .     : '\(.\)' 2>/dev/null ||
22669echo X"$ac_dest" |
22670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22671  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22672  	  /^X\(\/\/\)$/{ s//\1/; q; }
22673  	  /^X\(\/\).*/{ s//\1/; q; }
22674  	  s/.*/./; q'`
22675  { if $as_mkdir_p; then
22676    mkdir -p "$ac_dir"
22677  else
22678    as_dir="$ac_dir"
22679    as_dirs=
22680    while test ! -d "$as_dir"; do
22681      as_dirs="$as_dir $as_dirs"
22682      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22683$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22684	 X"$as_dir" : 'X\(//\)[^/]' \| \
22685	 X"$as_dir" : 'X\(//\)$' \| \
22686	 X"$as_dir" : 'X\(/\)' \| \
22687	 .     : '\(.\)' 2>/dev/null ||
22688echo X"$as_dir" |
22689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22690  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22691  	  /^X\(\/\/\)$/{ s//\1/; q; }
22692  	  /^X\(\/\).*/{ s//\1/; q; }
22693  	  s/.*/./; q'`
22694    done
22695    test ! -n "$as_dirs" || mkdir $as_dirs
22696  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22697echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22698   { (exit 1); exit 1; }; }; }
22699
22700  ac_builddir=.
22701
22702if test "$ac_dir" != .; then
22703  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22704  # A "../" for each directory in $ac_dir_suffix.
22705  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22706else
22707  ac_dir_suffix= ac_top_builddir=
22708fi
22709
22710case $srcdir in
22711  .)  # No --srcdir option.  We are building in place.
22712    ac_srcdir=.
22713    if test -z "$ac_top_builddir"; then
22714       ac_top_srcdir=.
22715    else
22716       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22717    fi ;;
22718  [\\/]* | ?:[\\/]* )  # Absolute path.
22719    ac_srcdir=$srcdir$ac_dir_suffix;
22720    ac_top_srcdir=$srcdir ;;
22721  *) # Relative path.
22722    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22723    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22724esac
22725
22726# Do not use `cd foo && pwd` to compute absolute paths, because
22727# the directories may not exist.
22728case `pwd` in
22729.) ac_abs_builddir="$ac_dir";;
22730*)
22731  case "$ac_dir" in
22732  .) ac_abs_builddir=`pwd`;;
22733  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22734  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22735  esac;;
22736esac
22737case $ac_abs_builddir in
22738.) ac_abs_top_builddir=${ac_top_builddir}.;;
22739*)
22740  case ${ac_top_builddir}. in
22741  .) ac_abs_top_builddir=$ac_abs_builddir;;
22742  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22743  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22744  esac;;
22745esac
22746case $ac_abs_builddir in
22747.) ac_abs_srcdir=$ac_srcdir;;
22748*)
22749  case $ac_srcdir in
22750  .) ac_abs_srcdir=$ac_abs_builddir;;
22751  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22752  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22753  esac;;
22754esac
22755case $ac_abs_builddir in
22756.) ac_abs_top_srcdir=$ac_top_srcdir;;
22757*)
22758  case $ac_top_srcdir in
22759  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22760  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22761  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22762  esac;;
22763esac
22764
22765
22766  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22767echo "$as_me: executing $ac_dest commands" >&6;}
22768  case $ac_dest in
22769    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22770  # Strip MF so we end up with the name of the file.
22771  mf=`echo "$mf" | sed -e 's/:.*$//'`
22772  # Check whether this is an Automake generated Makefile or not.
22773  # We used to match only the files named `Makefile.in', but
22774  # some people rename them; so instead we look at the file content.
22775  # Grep'ing the first line is not enough: some people post-process
22776  # each Makefile.in and add a new line on top of each file to say so.
22777  # So let's grep whole file.
22778  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22779    dirpart=`(dirname "$mf") 2>/dev/null ||
22780$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22781	 X"$mf" : 'X\(//\)[^/]' \| \
22782	 X"$mf" : 'X\(//\)$' \| \
22783	 X"$mf" : 'X\(/\)' \| \
22784	 .     : '\(.\)' 2>/dev/null ||
22785echo X"$mf" |
22786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22787  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22788  	  /^X\(\/\/\)$/{ s//\1/; q; }
22789  	  /^X\(\/\).*/{ s//\1/; q; }
22790  	  s/.*/./; q'`
22791  else
22792    continue
22793  fi
22794  # Extract the definition of DEPDIR, am__include, and am__quote
22795  # from the Makefile without running `make'.
22796  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22797  test -z "$DEPDIR" && continue
22798  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22799  test -z "am__include" && continue
22800  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22801  # When using ansi2knr, U may be empty or an underscore; expand it
22802  U=`sed -n 's/^U = //p' < "$mf"`
22803  # Find all dependency output files, they are included files with
22804  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22805  # simplest approach to changing $(DEPDIR) to its actual value in the
22806  # expansion.
22807  for file in `sed -n "
22808    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22809       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22810    # Make sure the directory exists.
22811    test -f "$dirpart/$file" && continue
22812    fdir=`(dirname "$file") 2>/dev/null ||
22813$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22814	 X"$file" : 'X\(//\)[^/]' \| \
22815	 X"$file" : 'X\(//\)$' \| \
22816	 X"$file" : 'X\(/\)' \| \
22817	 .     : '\(.\)' 2>/dev/null ||
22818echo X"$file" |
22819    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22820  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22821  	  /^X\(\/\/\)$/{ s//\1/; q; }
22822  	  /^X\(\/\).*/{ s//\1/; q; }
22823  	  s/.*/./; q'`
22824    { if $as_mkdir_p; then
22825    mkdir -p $dirpart/$fdir
22826  else
22827    as_dir=$dirpart/$fdir
22828    as_dirs=
22829    while test ! -d "$as_dir"; do
22830      as_dirs="$as_dir $as_dirs"
22831      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22833	 X"$as_dir" : 'X\(//\)[^/]' \| \
22834	 X"$as_dir" : 'X\(//\)$' \| \
22835	 X"$as_dir" : 'X\(/\)' \| \
22836	 .     : '\(.\)' 2>/dev/null ||
22837echo X"$as_dir" |
22838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22839  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22840  	  /^X\(\/\/\)$/{ s//\1/; q; }
22841  	  /^X\(\/\).*/{ s//\1/; q; }
22842  	  s/.*/./; q'`
22843    done
22844    test ! -n "$as_dirs" || mkdir $as_dirs
22845  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22846echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22847   { (exit 1); exit 1; }; }; }
22848
22849    # echo "creating $dirpart/$file"
22850    echo '# dummy' > "$dirpart/$file"
22851  done
22852done
22853 ;;
22854  esac
22855done
22856_ACEOF
22857
22858cat >>$CONFIG_STATUS <<\_ACEOF
22859
22860{ (exit 0); exit 0; }
22861_ACEOF
22862chmod +x $CONFIG_STATUS
22863ac_clean_files=$ac_clean_files_save
22864
22865
22866# configure is writing to config.log, and then calls config.status.
22867# config.status does its own redirection, appending to config.log.
22868# Unfortunately, on DOS this fails, as config.log is still kept open
22869# by configure, so config.status won't be able to write to it; its
22870# output is simply discarded.  So we exec the FD to /dev/null,
22871# effectively closing config.log, so it can be properly (re)opened and
22872# appended to by config.status.  When coming back to configure, we
22873# need to make the FD available again.
22874if test "$no_create" != yes; then
22875  ac_cs_success=:
22876  ac_config_status_args=
22877  test "$silent" = yes &&
22878    ac_config_status_args="$ac_config_status_args --quiet"
22879  exec 5>/dev/null
22880  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22881  exec 5>>config.log
22882  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22883  # would make configure fail if this is the last instruction.
22884  $ac_cs_success || { (exit 1); exit 1; }
22885fi
22886
22887
22888
22889{ echo "$as_me:$LINENO: goom2k4 was configured with the following options:" >&5
22890echo "$as_me: goom2k4 was configured with the following options:" >&6;}
22891if test "x$HAVE_PPC" = "xyes"; then
22892  { echo "$as_me:$LINENO:  ** PPC support enabled" >&5
22893echo "$as_me:  ** PPC support enabled" >&6;}
22894else
22895  { echo "$as_me:$LINENO:     PPC support disabled" >&5
22896echo "$as_me:     PPC support disabled" >&6;}
22897fi
22898if test "x$HAVE_MMX" = "xyes"; then
22899  { echo "$as_me:$LINENO:  ** MMX support enabled" >&5
22900echo "$as_me:  ** MMX support enabled" >&6;}
22901else
22902  { echo "$as_me:$LINENO:     MMX support disabled" >&5
22903echo "$as_me:     MMX support disabled" >&6;}
22904fi
22905{ echo "$as_me:$LINENO:  ** goom lib will be built" >&5
22906echo "$as_me:  ** goom lib will be built" >&6;}
22907if test "x$HAVE_XMMS" = "xyes"; then
22908  { echo "$as_me:$LINENO:  ** XMMS plugin will be built" >&5
22909echo "$as_me:  ** XMMS plugin will be built" >&6;}
22910else
22911  { echo "$as_me:$LINENO:     XMMS plugin will not be built" >&5
22912echo "$as_me:     XMMS plugin will not be built" >&6;}
22913fi
22914if test "x$MACTARGET" = "xyes"; then
22915  { echo "$as_me:$LINENO:  ** goom mac application will be built" >&5
22916echo "$as_me:  ** goom mac application will be built" >&6;}
22917  { echo "$as_me:$LINENO:  ** goom mac iTunes plugin will be built" >&5
22918echo "$as_me:  ** goom mac iTunes plugin will be built" >&6;}
22919else
22920  { echo "$as_me:$LINENO:     goom mac application will not be built" >&5
22921echo "$as_me:     goom mac application will not be built" >&6;}
22922  { echo "$as_me:$LINENO:     goom mac iTunes plugin will not be built" >&5
22923echo "$as_me:     goom mac iTunes plugin will not be built" >&6;}
22924fi
22925if test "x$HAVE_SDL" = "xyes"; then
22926  { echo "$as_me:$LINENO:  ** goom sdl application will be built" >&5
22927echo "$as_me:  ** goom sdl application will be built" >&6;}
22928else
22929  { echo "$as_me:$LINENO:     goom sdl application will not be built" >&5
22930echo "$as_me:     goom sdl application will not be built" >&6;}
22931fi
22932