1#! /bin/sh
2# From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 0.15.1b.
5#
6# Report bugs to <support@underbit.com>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253  # Remove one level of quotation (which was required for Make).
254  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255  ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260  # Discard the --no-reexec flag, and continue.
261  shift
262elif test "X$1" = X--fallback-echo; then
263  # Avoid inline document here, it may be left over
264  :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266  # Yippee, $echo works!
267  :
268else
269  # Restart under the correct shell.
270  exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274  # used as fallback echo
275  shift
276  cat <<EOF
277$*
278EOF
279  exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292       echo_test_string="`eval $cmd`" &&
293       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294    then
295      break
296    fi
297  done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302   test "X$echo_testing_string" = "X$echo_test_string"; then
303  :
304else
305  # The Solaris, AIX, and Digital Unix default echo programs unquote
306  # backslashes.  This makes it impossible to quote backslashes using
307  #   echo "$something" | sed 's/\\/\\\\/g'
308  #
309  # So, first we look for a working echo in the user's PATH.
310
311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312  for dir in $PATH /usr/ucb; do
313    IFS="$lt_save_ifs"
314    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317       test "X$echo_testing_string" = "X$echo_test_string"; then
318      echo="$dir/echo"
319      break
320    fi
321  done
322  IFS="$lt_save_ifs"
323
324  if test "X$echo" = Xecho; then
325    # We didn't find a better echo, so look for alternatives.
326    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328       test "X$echo_testing_string" = "X$echo_test_string"; then
329      # This shell has a builtin print -r that does the trick.
330      echo='print -r'
331    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332	 test "X$CONFIG_SHELL" != X/bin/ksh; then
333      # If we have ksh, try running configure again with it.
334      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335      export ORIGINAL_CONFIG_SHELL
336      CONFIG_SHELL=/bin/ksh
337      export CONFIG_SHELL
338      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339    else
340      # Try using printf.
341      echo='printf %s\n'
342      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344	 test "X$echo_testing_string" = "X$echo_test_string"; then
345	# Cool, printf works
346	:
347      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348	   test "X$echo_testing_string" = 'X\t' &&
349	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350	   test "X$echo_testing_string" = "X$echo_test_string"; then
351	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352	export CONFIG_SHELL
353	SHELL="$CONFIG_SHELL"
354	export SHELL
355	echo="$CONFIG_SHELL $0 --fallback-echo"
356      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357	   test "X$echo_testing_string" = 'X\t' &&
358	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359	   test "X$echo_testing_string" = "X$echo_test_string"; then
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      else
362	# maybe with a smaller string...
363	prev=:
364
365	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367	  then
368	    break
369	  fi
370	  prev="$cmd"
371	done
372
373	if test "$prev" != 'sed 50q "$0"'; then
374	  echo_test_string=`eval $prev`
375	  export echo_test_string
376	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377	else
378	  # Oops.  We lost completely, so just stick with echo.
379	  echo=echo
380	fi
381      fi
382    fi
383  fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME='MPEG Audio Decoder'
426PACKAGE_TARNAME='libmad'
427PACKAGE_VERSION='0.15.1b'
428PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
429PACKAGE_BUGREPORT='support@underbit.com'
430
431ac_unique_file="decoder.h"
432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446#  include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451#  include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462#  include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 CCAS CCASFLAGS 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 LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
677  -program-transform-name | --program-transform-name \
678  | --program-transform-nam | --program-transform-na \
679  | --program-transform-n | --program-transform- \
680  | --program-transform | --program-transfor \
681  | --program-transfo | --program-transf \
682  | --program-trans | --program-tran \
683  | --progr-tra | --program-tr | --program-t)
684    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828	      localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868	 X"$0" : 'X\(//\)[^/]' \| \
869	 X"$0" : 'X\(//\)$' \| \
870	 X"$0" : 'X\(/\)' \| \
871	 .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CC_set=${CC+set}
911ac_env_CC_value=$CC
912ac_cv_env_CC_set=${CC+set}
913ac_cv_env_CC_value=$CC
914ac_env_CFLAGS_set=${CFLAGS+set}
915ac_env_CFLAGS_value=$CFLAGS
916ac_cv_env_CFLAGS_set=${CFLAGS+set}
917ac_cv_env_CFLAGS_value=$CFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CCAS_set=${CCAS+set}
927ac_env_CCAS_value=$CCAS
928ac_cv_env_CCAS_set=${CCAS+set}
929ac_cv_env_CCAS_value=$CCAS
930ac_env_CCASFLAGS_set=${CCASFLAGS+set}
931ac_env_CCASFLAGS_value=$CCASFLAGS
932ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
933ac_cv_env_CCASFLAGS_value=$CCASFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
938ac_env_CXX_set=${CXX+set}
939ac_env_CXX_value=$CXX
940ac_cv_env_CXX_set=${CXX+set}
941ac_cv_env_CXX_value=$CXX
942ac_env_CXXFLAGS_set=${CXXFLAGS+set}
943ac_env_CXXFLAGS_value=$CXXFLAGS
944ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_cv_env_CXXFLAGS_value=$CXXFLAGS
946ac_env_CXXCPP_set=${CXXCPP+set}
947ac_env_CXXCPP_value=$CXXCPP
948ac_cv_env_CXXCPP_set=${CXXCPP+set}
949ac_cv_env_CXXCPP_value=$CXXCPP
950ac_env_F77_set=${F77+set}
951ac_env_F77_value=$F77
952ac_cv_env_F77_set=${F77+set}
953ac_cv_env_F77_value=$F77
954ac_env_FFLAGS_set=${FFLAGS+set}
955ac_env_FFLAGS_value=$FFLAGS
956ac_cv_env_FFLAGS_set=${FFLAGS+set}
957ac_cv_env_FFLAGS_value=$FFLAGS
958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963  # Omit some internal or obsolete options to make the list less imposing.
964  # This message is too long to be a string in the A/UX 3.1 sh.
965  cat <<_ACEOF
966\`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems.
967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE.  See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976  -h, --help              display this help and exit
977      --help=short        display options specific to this package
978      --help=recursive    display the short help of all the included packages
979  -V, --version           display version information and exit
980  -q, --quiet, --silent   do not print \`checking...' messages
981      --cache-file=FILE   cache test results in FILE [disabled]
982  -C, --config-cache      alias for \`--cache-file=config.cache'
983  -n, --no-create         do not create output files
984      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988  cat <<_ACEOF
989Installation directories:
990  --prefix=PREFIX         install architecture-independent files in PREFIX
991			  [$ac_default_prefix]
992  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
993			  [PREFIX]
994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003  --bindir=DIR           user executables [EPREFIX/bin]
1004  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1005  --libexecdir=DIR       program executables [EPREFIX/libexec]
1006  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1007  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1008  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1009  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1010  --libdir=DIR           object code libraries [EPREFIX/lib]
1011  --includedir=DIR       C header files [PREFIX/include]
1012  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1013  --infodir=DIR          info documentation [PREFIX/info]
1014  --mandir=DIR           man documentation [PREFIX/man]
1015_ACEOF
1016
1017  cat <<\_ACEOF
1018
1019Program names:
1020  --program-prefix=PREFIX            prepend PREFIX to installed program names
1021  --program-suffix=SUFFIX            append SUFFIX to installed program names
1022  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1023
1024System types:
1025  --build=BUILD     configure for building on BUILD [guessed]
1026  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1027_ACEOF
1028fi
1029
1030if test -n "$ac_init_help"; then
1031  case $ac_init_help in
1032     short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";;
1033   esac
1034  cat <<\_ACEOF
1035
1036Optional Features:
1037  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1038  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1039  --disable-dependency-tracking  speeds up one-time build
1040  --enable-dependency-tracking   do not reject slow dependency extractors
1041  --enable-shared[=PKGS]
1042                          build shared libraries [default=yes]
1043  --enable-static[=PKGS]
1044                          build static libraries [default=yes]
1045  --enable-fast-install[=PKGS]
1046                          optimize for fast installation [default=yes]
1047  --disable-libtool-lock  avoid locking (might break parallel builds)
1048  --enable-speed          optimize for speed over accuracy
1049  --enable-accuracy       optimize for accuracy over speed
1050  --enable-fpm=ARCH       use ARCH-specific fixed-point math routines (one of:
1051                          intel, arm, mips, sparc, ppc, 64bit, default)
1052  --enable-sso            use subband synthesis optimization
1053  --disable-aso           disable architecture-specific optimizations
1054  --enable-strict-iso     use strict ISO/IEC interpretations
1055  --enable-profiling      generate profiling code
1056  --enable-debugging      enable diagnostic debugging support
1057  --disable-debugging     do not enable debugging and use more optimization
1058  --enable-experimental   enable experimental code
1059
1060Optional Packages:
1061  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1064  --with-pic              try to use only PIC/non-PIC objects [default=use
1065                          both]
1066  --with-tags[=TAGS]
1067                          include additional configurations [automatic]
1068
1069Some influential environment variables:
1070  CC          C compiler command
1071  CFLAGS      C compiler flags
1072  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1073              nonstandard directory <lib dir>
1074  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075              headers in a nonstandard directory <include dir>
1076  CCAS        assembler compiler command (defaults to CC)
1077  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1078  CPP         C preprocessor
1079  CXX         C++ compiler command
1080  CXXFLAGS    C++ compiler flags
1081  CXXCPP      C++ preprocessor
1082  F77         Fortran 77 compiler command
1083  FFLAGS      Fortran 77 compiler flags
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <support@underbit.com>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093  # If there are subdirs, report their specific --help.
1094  ac_popdir=`pwd`
1095  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096    test -d $ac_dir || continue
1097    ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101  # A "../" for each directory in $ac_dir_suffix.
1102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104  ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108  .)  # No --srcdir option.  We are building in place.
1109    ac_srcdir=.
1110    if test -z "$ac_top_builddir"; then
1111       ac_top_srcdir=.
1112    else
1113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114    fi ;;
1115  [\\/]* | ?:[\\/]* )  # Absolute path.
1116    ac_srcdir=$srcdir$ac_dir_suffix;
1117    ac_top_srcdir=$srcdir ;;
1118  *) # Relative path.
1119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128  case "$ac_dir" in
1129  .) ac_abs_builddir=`pwd`;;
1130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132  esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137  case ${ac_top_builddir}. in
1138  .) ac_abs_top_builddir=$ac_abs_builddir;;
1139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141  esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146  case $ac_srcdir in
1147  .) ac_abs_srcdir=$ac_abs_builddir;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155  case $ac_top_srcdir in
1156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159  esac;;
1160esac
1161
1162    cd $ac_dir
1163    # Check for guested configure; otherwise get Cygnus style configure.
1164    if test -f $ac_srcdir/configure.gnu; then
1165      echo
1166      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1167    elif test -f $ac_srcdir/configure; then
1168      echo
1169      $SHELL $ac_srcdir/configure  --help=recursive
1170    elif test -f $ac_srcdir/configure.ac ||
1171	   test -f $ac_srcdir/configure.in; then
1172      echo
1173      $ac_configure --help
1174    else
1175      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176    fi
1177    cd "$ac_popdir"
1178  done
1179fi
1180
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183  cat <<\_ACEOF
1184MPEG Audio Decoder configure 0.15.1b
1185generated by GNU Autoconf 2.59
1186
1187Copyright (C) 2003 Free Software Foundation, Inc.
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190_ACEOF
1191  exit 0
1192fi
1193exec 5>config.log
1194cat >&5 <<_ACEOF
1195This file contains any messages produced by compilers while
1196running configure, to aid debugging if configure makes a mistake.
1197
1198It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
1199generated by GNU Autoconf 2.59.  Invocation command line was
1200
1201  $ $0 $@
1202
1203_ACEOF
1204{
1205cat <<_ASUNAME
1206## --------- ##
1207## Platform. ##
1208## --------- ##
1209
1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1218
1219/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1220/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1223/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1224/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1225/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1226
1227_ASUNAME
1228
1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230for as_dir in $PATH
1231do
1232  IFS=$as_save_IFS
1233  test -z "$as_dir" && as_dir=.
1234  echo "PATH: $as_dir"
1235done
1236
1237} >&5
1238
1239cat >&5 <<_ACEOF
1240
1241
1242## ----------- ##
1243## Core tests. ##
1244## ----------- ##
1245
1246_ACEOF
1247
1248
1249# Keep a trace of the command line.
1250# Strip out --no-create and --no-recursion so they do not pile up.
1251# Strip out --silent because we don't want to record it for future runs.
1252# Also quote any args containing shell meta-characters.
1253# Make two passes to allow for proper duplicate-argument suppression.
1254ac_configure_args=
1255ac_configure_args0=
1256ac_configure_args1=
1257ac_sep=
1258ac_must_keep_next=false
1259for ac_pass in 1 2
1260do
1261  for ac_arg
1262  do
1263    case $ac_arg in
1264    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266    | -silent | --silent | --silen | --sile | --sil)
1267      continue ;;
1268    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270    esac
1271    case $ac_pass in
1272    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273    2)
1274      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275      if test $ac_must_keep_next = true; then
1276	ac_must_keep_next=false # Got value, back to normal.
1277      else
1278	case $ac_arg in
1279	  *=* | --config-cache | -C | -disable-* | --disable-* \
1280	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282	  | -with-* | --with-* | -without-* | --without-* | --x)
1283	    case "$ac_configure_args0 " in
1284	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285	    esac
1286	    ;;
1287	  -* ) ac_must_keep_next=true ;;
1288	esac
1289      fi
1290      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291      # Get rid of the leading space.
1292      ac_sep=" "
1293      ;;
1294    esac
1295  done
1296done
1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300# When interrupted or exit'd, cleanup temporary files, and complete
1301# config.log.  We remove comments because anyway the quotes in there
1302# would cause problems or look ugly.
1303# WARNING: Be sure not to use single quotes in there, as some shells,
1304# such as our DU 5.0 friend, will then `close' the trap.
1305trap 'exit_status=$?
1306  # Save into config.log some information that might help in debugging.
1307  {
1308    echo
1309
1310    cat <<\_ASBOX
1311## ---------------- ##
1312## Cache variables. ##
1313## ---------------- ##
1314_ASBOX
1315    echo
1316    # The following way of writing the cache mishandles newlines in values,
1317{
1318  (set) 2>&1 |
1319    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320    *ac_space=\ *)
1321      sed -n \
1322	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324      ;;
1325    *)
1326      sed -n \
1327	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328      ;;
1329    esac;
1330}
1331    echo
1332
1333    cat <<\_ASBOX
1334## ----------------- ##
1335## Output variables. ##
1336## ----------------- ##
1337_ASBOX
1338    echo
1339    for ac_var in $ac_subst_vars
1340    do
1341      eval ac_val=$`echo $ac_var`
1342      echo "$ac_var='"'"'$ac_val'"'"'"
1343    done | sort
1344    echo
1345
1346    if test -n "$ac_subst_files"; then
1347      cat <<\_ASBOX
1348## ------------- ##
1349## Output files. ##
1350## ------------- ##
1351_ASBOX
1352      echo
1353      for ac_var in $ac_subst_files
1354      do
1355	eval ac_val=$`echo $ac_var`
1356	echo "$ac_var='"'"'$ac_val'"'"'"
1357      done | sort
1358      echo
1359    fi
1360
1361    if test -s confdefs.h; then
1362      cat <<\_ASBOX
1363## ----------- ##
1364## confdefs.h. ##
1365## ----------- ##
1366_ASBOX
1367      echo
1368      sed "/^$/d" confdefs.h | sort
1369      echo
1370    fi
1371    test "$ac_signal" != 0 &&
1372      echo "$as_me: caught signal $ac_signal"
1373    echo "$as_me: exit $exit_status"
1374  } >&5
1375  rm -f core *.core &&
1376  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377    exit $exit_status
1378     ' 0
1379for ac_signal in 1 2 13 15; do
1380  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381done
1382ac_signal=0
1383
1384# confdefs.h avoids OS command line length limits that DEFS can exceed.
1385rm -rf conftest* confdefs.h
1386# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387echo >confdefs.h
1388
1389# Predefined preprocessor variables.
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_NAME "$PACKAGE_NAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_VERSION "$PACKAGE_VERSION"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_STRING "$PACKAGE_STRING"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413_ACEOF
1414
1415
1416# Let the site file select an alternate cache file if it wants to.
1417# Prefer explicitly selected file to automatically selected ones.
1418if test -z "$CONFIG_SITE"; then
1419  if test "x$prefix" != xNONE; then
1420    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421  else
1422    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423  fi
1424fi
1425for ac_site_file in $CONFIG_SITE; do
1426  if test -r "$ac_site_file"; then
1427    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428echo "$as_me: loading site script $ac_site_file" >&6;}
1429    sed 's/^/| /' "$ac_site_file" >&5
1430    . "$ac_site_file"
1431  fi
1432done
1433
1434if test -r "$cache_file"; then
1435  # Some versions of bash will fail to source /dev/null (special
1436  # files actually), so we avoid doing that.
1437  if test -f "$cache_file"; then
1438    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439echo "$as_me: loading cache $cache_file" >&6;}
1440    case $cache_file in
1441      [\\/]* | ?:[\\/]* ) . $cache_file;;
1442      *)                      . ./$cache_file;;
1443    esac
1444  fi
1445else
1446  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447echo "$as_me: creating cache $cache_file" >&6;}
1448  >$cache_file
1449fi
1450
1451# Check that the precious variables saved in the cache have kept the same
1452# value.
1453ac_cache_corrupted=false
1454for ac_var in `(set) 2>&1 |
1455	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457  eval ac_new_set=\$ac_env_${ac_var}_set
1458  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459  eval ac_new_val="\$ac_env_${ac_var}_value"
1460  case $ac_old_set,$ac_new_set in
1461    set,)
1462      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464      ac_cache_corrupted=: ;;
1465    ,set)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,);;
1470    *)
1471      if test "x$ac_old_val" != "x$ac_new_val"; then
1472	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1475echo "$as_me:   former value:  $ac_old_val" >&2;}
1476	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1477echo "$as_me:   current value: $ac_new_val" >&2;}
1478	ac_cache_corrupted=:
1479      fi;;
1480  esac
1481  # Pass precious variables to config.status.
1482  if test "$ac_new_set" = set; then
1483    case $ac_new_val in
1484    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486    *) ac_arg=$ac_var=$ac_new_val ;;
1487    esac
1488    case " $ac_configure_args " in
1489      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1490      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491    esac
1492  fi
1493done
1494if $ac_cache_corrupted; then
1495  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499   { (exit 1); exit 1; }; }
1500fi
1501
1502ac_ext=c
1503ac_cpp='$CPP $CPPFLAGS'
1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538am__api_version="1.8"
1539ac_aux_dir=
1540for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541  if test -f $ac_dir/install-sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install-sh -c"
1544    break
1545  elif test -f $ac_dir/install.sh; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/install.sh -c"
1548    break
1549  elif test -f $ac_dir/shtool; then
1550    ac_aux_dir=$ac_dir
1551    ac_install_sh="$ac_aux_dir/shtool install -c"
1552    break
1553  fi
1554done
1555if test -z "$ac_aux_dir"; then
1556  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564# Find a good install program.  We prefer a C program (faster),
1565# so one script is as good as another.  But avoid the broken or
1566# incompatible versions:
1567# SysV /etc/install, /usr/sbin/install
1568# SunOS /usr/etc/install
1569# IRIX /sbin/install
1570# AIX /bin/install
1571# AmigaOS /C/install, which installs bootblocks on floppy discs
1572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1575# OS/2's system install, which has a completely different semantic
1576# ./install, which can be erroneously created by make from ./install.sh.
1577echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1578echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1579if test -z "$INSTALL"; then
1580if test "${ac_cv_path_install+set}" = set; then
1581  echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586  IFS=$as_save_IFS
1587  test -z "$as_dir" && as_dir=.
1588  # Account for people who put trailing slashes in PATH elements.
1589case $as_dir/ in
1590  ./ | .// | /cC/* | \
1591  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1592  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1593  /usr/ucb/* ) ;;
1594  *)
1595    # OSF1 and SCO ODT 3.0 have their own names for install.
1596    # Don't use installbsd from OSF since it installs stuff as root
1597    # by default.
1598    for ac_prog in ginstall scoinst install; do
1599      for ac_exec_ext in '' $ac_executable_extensions; do
1600	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601	  if test $ac_prog = install &&
1602	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603	    # AIX install.  It has an incompatible calling convention.
1604	    :
1605	  elif test $ac_prog = install &&
1606	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607	    # program-specific install script used by HP pwplus--don't use.
1608	    :
1609	  else
1610	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611	    break 3
1612	  fi
1613	fi
1614      done
1615    done
1616    ;;
1617esac
1618done
1619
1620
1621fi
1622  if test "${ac_cv_path_install+set}" = set; then
1623    INSTALL=$ac_cv_path_install
1624  else
1625    # As a last resort, use the slow shell script.  We don't cache a
1626    # path for INSTALL within a source directory, because that will
1627    # break other packages using the cache if that directory is
1628    # removed, or if the path is relative.
1629    INSTALL=$ac_install_sh
1630  fi
1631fi
1632echo "$as_me:$LINENO: result: $INSTALL" >&5
1633echo "${ECHO_T}$INSTALL" >&6
1634
1635# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636# It thinks the first close brace ends the variable substitution.
1637test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638
1639test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640
1641test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642
1643echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645# Just in case
1646sleep 1
1647echo timestamp > conftest.file
1648# Do `set' in a subshell so we don't clobber the current shell's
1649# arguments.  Must try -L first in case configure is actually a
1650# symlink; some systems play weird games with the mod time of symlinks
1651# (eg FreeBSD returns the mod time of the symlink's containing
1652# directory).
1653if (
1654   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655   if test "$*" = "X"; then
1656      # -L didn't work.
1657      set X `ls -t $srcdir/configure conftest.file`
1658   fi
1659   rm -f conftest.file
1660   if test "$*" != "X $srcdir/configure conftest.file" \
1661      && test "$*" != "X conftest.file $srcdir/configure"; then
1662
1663      # If neither matched, then we have a broken ls.  This can happen
1664      # if, for instance, CONFIG_SHELL is bash and it inherits a
1665      # broken ls alias from the environment.  This has actually
1666      # happened.  Such a system could not be considered "sane".
1667      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1668alias in your environment" >&5
1669echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1670alias in your environment" >&2;}
1671   { (exit 1); exit 1; }; }
1672   fi
1673
1674   test "$2" = conftest.file
1675   )
1676then
1677   # Ok.
1678   :
1679else
1680   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681Check your system clock" >&5
1682echo "$as_me: error: newly created file is older than distributed files!
1683Check your system clock" >&2;}
1684   { (exit 1); exit 1; }; }
1685fi
1686echo "$as_me:$LINENO: result: yes" >&5
1687echo "${ECHO_T}yes" >&6
1688test "$program_prefix" != NONE &&
1689  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690# Use a double $ so make ignores it.
1691test "$program_suffix" != NONE &&
1692  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693# Double any \ or $.  echo might interpret backslashes.
1694# By default was `s,x,x', remove it if useless.
1695cat <<\_ACEOF >conftest.sed
1696s/[\\$]/&&/g;s/;s,x,x,$//
1697_ACEOF
1698program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1699rm conftest.sed
1700
1701# expand $ac_aux_dir to an absolute path
1702am_aux_dir=`cd $ac_aux_dir && pwd`
1703
1704test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1705# Use eval to expand $SHELL
1706if eval "$MISSING --run true"; then
1707  am_missing_run="$MISSING --run "
1708else
1709  am_missing_run=
1710  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1711echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1712fi
1713
1714if mkdir -p -- . 2>/dev/null; then
1715  # Keeping the `.' argument allows $(mkdir_p) to be used without
1716  # argument.  Indeed, we sometimes output rules like
1717  #   $(mkdir_p) $(somedir)
1718  # where $(somedir) is conditionally defined.
1719  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1720  # expensive solution, as it forces Make to start a sub-shell.)
1721  mkdir_p='mkdir -p -- .'
1722else
1723  # On NextStep and OpenStep, the `mkdir' command does not
1724  # recognize any option.  It will interpret all options as
1725  # directories to create, and then abort because `.' already
1726  # exists.
1727  for d in ./-p ./--;
1728  do
1729    test -d $d && rmdir $d
1730  done
1731  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732  if test -f "$ac_aux_dir/mkinstalldirs"; then
1733    mkdir_p='$(mkinstalldirs)'
1734  else
1735    mkdir_p='$(install_sh) -d'
1736  fi
1737fi
1738
1739for ac_prog in gawk mawk nawk awk
1740do
1741  # Extract the first word of "$ac_prog", so it can be a program name with args.
1742set dummy $ac_prog; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_AWK+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  if test -n "$AWK"; then
1749  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750else
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  for ac_exec_ext in '' $ac_executable_extensions; do
1757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758    ac_cv_prog_AWK="$ac_prog"
1759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760    break 2
1761  fi
1762done
1763done
1764
1765fi
1766fi
1767AWK=$ac_cv_prog_AWK
1768if test -n "$AWK"; then
1769  echo "$as_me:$LINENO: result: $AWK" >&5
1770echo "${ECHO_T}$AWK" >&6
1771else
1772  echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774fi
1775
1776  test -n "$AWK" && break
1777done
1778
1779echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783  echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785  cat >conftest.make <<\_ACEOF
1786all:
1787	@echo 'ac_maketemp="$(MAKE)"'
1788_ACEOF
1789# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791if test -n "$ac_maketemp"; then
1792  eval ac_cv_prog_make_${ac_make}_set=yes
1793else
1794  eval ac_cv_prog_make_${ac_make}_set=no
1795fi
1796rm -f conftest.make
1797fi
1798if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799  echo "$as_me:$LINENO: result: yes" >&5
1800echo "${ECHO_T}yes" >&6
1801  SET_MAKE=
1802else
1803  echo "$as_me:$LINENO: result: no" >&5
1804echo "${ECHO_T}no" >&6
1805  SET_MAKE="MAKE=${MAKE-make}"
1806fi
1807
1808rm -rf .tst 2>/dev/null
1809mkdir .tst 2>/dev/null
1810if test -d .tst; then
1811  am__leading_dot=.
1812else
1813  am__leading_dot=_
1814fi
1815rmdir .tst 2>/dev/null
1816
1817# test to see if srcdir already configured
1818if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819   test -f $srcdir/config.status; then
1820  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822   { (exit 1); exit 1; }; }
1823fi
1824
1825# test whether we have cygpath
1826if test -z "$CYGPATH_W"; then
1827  if (cygpath --version) >/dev/null 2>/dev/null; then
1828    CYGPATH_W='cygpath -w'
1829  else
1830    CYGPATH_W=echo
1831  fi
1832fi
1833
1834
1835# Define the identity of the package.
1836 PACKAGE='libmad'
1837 VERSION='0.15.1b'
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE "$PACKAGE"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define VERSION "$VERSION"
1847_ACEOF
1848
1849# Some tools Automake needs.
1850
1851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
1853
1854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
1856
1857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
1859
1860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
1862
1863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864
1865
1866AMTAR=${AMTAR-"${am_missing_run}tar"}
1867
1868install_sh=${install_sh-"$am_aux_dir/install-sh"}
1869
1870# Installed binaries are usually stripped using `strip' when the user
1871# run `make install-strip'.  However `strip' might not be the right
1872# tool to use in cross-compilation environments, therefore Automake
1873# will honor the `STRIP' environment variable to overrule this program.
1874if test "$cross_compiling" != no; then
1875  if test -n "$ac_tool_prefix"; then
1876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1877set dummy ${ac_tool_prefix}strip; ac_word=$2
1878echo "$as_me:$LINENO: checking for $ac_word" >&5
1879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880if test "${ac_cv_prog_STRIP+set}" = set; then
1881  echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883  if test -n "$STRIP"; then
1884  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1885else
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    break 2
1896  fi
1897done
1898done
1899
1900fi
1901fi
1902STRIP=$ac_cv_prog_STRIP
1903if test -n "$STRIP"; then
1904  echo "$as_me:$LINENO: result: $STRIP" >&5
1905echo "${ECHO_T}$STRIP" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911fi
1912if test -z "$ac_cv_prog_STRIP"; then
1913  ac_ct_STRIP=$STRIP
1914  # Extract the first word of "strip", so it can be a program name with args.
1915set dummy strip; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$ac_ct_STRIP"; then
1922  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929  for ac_exec_ext in '' $ac_executable_extensions; do
1930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931    ac_cv_prog_ac_ct_STRIP="strip"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937
1938  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1939fi
1940fi
1941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1942if test -n "$ac_ct_STRIP"; then
1943  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1944echo "${ECHO_T}$ac_ct_STRIP" >&6
1945else
1946  echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950  STRIP=$ac_ct_STRIP
1951else
1952  STRIP="$ac_cv_prog_STRIP"
1953fi
1954
1955fi
1956INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1957
1958# We need awk for the "check" target.  The system "awk" is bad on
1959# some platforms.
1960
1961
1962
1963
1964          ac_config_headers="$ac_config_headers config.h"
1965
1966
1967
1968# Make sure we can run config.sub.
1969$ac_config_sub sun4 >/dev/null 2>&1 ||
1970  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1971echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1972   { (exit 1); exit 1; }; }
1973
1974echo "$as_me:$LINENO: checking build system type" >&5
1975echo $ECHO_N "checking build system type... $ECHO_C" >&6
1976if test "${ac_cv_build+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  ac_cv_build_alias=$build_alias
1980test -z "$ac_cv_build_alias" &&
1981  ac_cv_build_alias=`$ac_config_guess`
1982test -z "$ac_cv_build_alias" &&
1983  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1984echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1985   { (exit 1); exit 1; }; }
1986ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1987  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1988echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1989   { (exit 1); exit 1; }; }
1990
1991fi
1992echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1993echo "${ECHO_T}$ac_cv_build" >&6
1994build=$ac_cv_build
1995build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1996build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1997build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1998
1999
2000echo "$as_me:$LINENO: checking host system type" >&5
2001echo $ECHO_N "checking host system type... $ECHO_C" >&6
2002if test "${ac_cv_host+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  ac_cv_host_alias=$host_alias
2006test -z "$ac_cv_host_alias" &&
2007  ac_cv_host_alias=$ac_cv_build_alias
2008ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2009  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2010echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2011   { (exit 1); exit 1; }; }
2012
2013fi
2014echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2015echo "${ECHO_T}$ac_cv_host" >&6
2016host=$ac_cv_host
2017host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2018host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2019host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2020
2021
2022
2023
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065fi
2066if test -z "$ac_cv_prog_CC"; then
2067  ac_ct_CC=$CC
2068  # Extract the first word of "gcc", so it can be a program name with args.
2069set dummy gcc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  if test -n "$ac_ct_CC"; then
2076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083  for ac_exec_ext in '' $ac_executable_extensions; do
2084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085    ac_cv_prog_ac_ct_CC="gcc"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103  CC=$ac_ct_CC
2104else
2105  CC="$ac_cv_prog_CC"
2106fi
2107
2108if test -z "$CC"; then
2109  if test -n "$ac_tool_prefix"; then
2110  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111set dummy ${ac_tool_prefix}cc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115  echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117  if test -n "$CC"; then
2118  ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_exec_ext in '' $ac_executable_extensions; do
2126  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127    ac_cv_prog_CC="${ac_tool_prefix}cc"
2128    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129    break 2
2130  fi
2131done
2132done
2133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138  echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6
2140else
2141  echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
2144
2145fi
2146if test -z "$ac_cv_prog_CC"; then
2147  ac_ct_CC=$CC
2148  # Extract the first word of "cc", so it can be a program name with args.
2149set dummy cc; ac_word=$2
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153  echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155  if test -n "$ac_ct_CC"; then
2156  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  for ac_exec_ext in '' $ac_executable_extensions; do
2164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165    ac_cv_prog_ac_ct_CC="cc"
2166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167    break 2
2168  fi
2169done
2170done
2171
2172fi
2173fi
2174ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175if test -n "$ac_ct_CC"; then
2176  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177echo "${ECHO_T}$ac_ct_CC" >&6
2178else
2179  echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6
2181fi
2182
2183  CC=$ac_ct_CC
2184else
2185  CC="$ac_cv_prog_CC"
2186fi
2187
2188fi
2189if test -z "$CC"; then
2190  # Extract the first word of "cc", so it can be a program name with args.
2191set dummy cc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_CC+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  if test -n "$CC"; then
2198  ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
2200  ac_prog_rejected=no
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206  for ac_exec_ext in '' $ac_executable_extensions; do
2207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2209       ac_prog_rejected=yes
2210       continue
2211     fi
2212    ac_cv_prog_CC="cc"
2213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214    break 2
2215  fi
2216done
2217done
2218
2219if test $ac_prog_rejected = yes; then
2220  # We found a bogon in the path, so make sure we never use it.
2221  set dummy $ac_cv_prog_CC
2222  shift
2223  if test $# != 0; then
2224    # We chose a different compiler from the bogus one.
2225    # However, it has the same basename, so the bogon will be chosen
2226    # first if we set CC to just the basename; use the full file name.
2227    shift
2228    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2229  fi
2230fi
2231fi
2232fi
2233CC=$ac_cv_prog_CC
2234if test -n "$CC"; then
2235  echo "$as_me:$LINENO: result: $CC" >&5
2236echo "${ECHO_T}$CC" >&6
2237else
2238  echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6
2240fi
2241
2242fi
2243if test -z "$CC"; then
2244  if test -n "$ac_tool_prefix"; then
2245  for ac_prog in cl
2246  do
2247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_CC+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254  if test -n "$CC"; then
2255  ac_cv_prog_CC="$CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260  IFS=$as_save_IFS
2261  test -z "$as_dir" && as_dir=.
2262  for ac_exec_ext in '' $ac_executable_extensions; do
2263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266    break 2
2267  fi
2268done
2269done
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275  echo "$as_me:$LINENO: result: $CC" >&5
2276echo "${ECHO_T}$CC" >&6
2277else
2278  echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282    test -n "$CC" && break
2283  done
2284fi
2285if test -z "$CC"; then
2286  ac_ct_CC=$CC
2287  for ac_prog in cl
2288do
2289  # Extract the first word of "$ac_prog", so it can be a program name with args.
2290set dummy $ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  if test -n "$ac_ct_CC"; then
2297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302  IFS=$as_save_IFS
2303  test -z "$as_dir" && as_dir=.
2304  for ac_exec_ext in '' $ac_executable_extensions; do
2305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306    ac_cv_prog_ac_ct_CC="$ac_prog"
2307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308    break 2
2309  fi
2310done
2311done
2312
2313fi
2314fi
2315ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316if test -n "$ac_ct_CC"; then
2317  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2318echo "${ECHO_T}$ac_ct_CC" >&6
2319else
2320  echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324  test -n "$ac_ct_CC" && break
2325done
2326
2327  CC=$ac_ct_CC
2328fi
2329
2330fi
2331
2332
2333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&2;}
2337   { (exit 1); exit 1; }; }
2338
2339# Provide some information about the compiler.
2340echo "$as_me:$LINENO:" \
2341     "checking for C compiler version" >&5
2342ac_compiler=`set X $ac_compile; echo $2`
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344  (eval $ac_compiler --version </dev/null >&5) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2349  (eval $ac_compiler -v </dev/null >&5) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }
2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354  (eval $ac_compiler -V </dev/null >&5) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }
2358
2359cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374ac_clean_files_save=$ac_clean_files
2375ac_clean_files="$ac_clean_files a.out a.exe b.out"
2376# Try to create an executable without -o first, disregard a.out.
2377# It will help us diagnose broken compilers, and finding out an intuition
2378# of exeext.
2379echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2380echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2381ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2382if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2383  (eval $ac_link_default) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; then
2387  # Find the output, starting from the most likely.  This scheme is
2388# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2389# resort.
2390
2391# Be careful to initialize this variable, since it used to be cached.
2392# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2393ac_cv_exeext=
2394# b.out is created by i960 compilers.
2395for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2396do
2397  test -f "$ac_file" || continue
2398  case $ac_file in
2399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2400	;;
2401    conftest.$ac_ext )
2402	# This is the source file.
2403	;;
2404    [ab].out )
2405	# We found the default executable, but exeext='' is most
2406	# certainly right.
2407	break;;
2408    *.* )
2409	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410	# FIXME: I believe we export ac_cv_exeext for Libtool,
2411	# but it would be cool to find out if it's true.  Does anybody
2412	# maintain Libtool? --akim.
2413	export ac_cv_exeext
2414	break;;
2415    * )
2416	break;;
2417  esac
2418done
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: C compiler cannot create executables
2426See \`config.log' for more details." >&2;}
2427   { (exit 77); exit 77; }; }
2428fi
2429
2430ac_exeext=$ac_cv_exeext
2431echo "$as_me:$LINENO: result: $ac_file" >&5
2432echo "${ECHO_T}$ac_file" >&6
2433
2434# Check the compiler produces executables we can run.  If not, either
2435# the compiler is broken, or we cross compile.
2436echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2439# If not cross compiling, check that we can run a simple program.
2440if test "$cross_compiling" != yes; then
2441  if { ac_try='./$ac_file'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447    cross_compiling=no
2448  else
2449    if test "$cross_compiling" = maybe; then
2450	cross_compiling=yes
2451    else
2452	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2453If you meant to cross compile, use \`--host'.
2454See \`config.log' for more details." >&5
2455echo "$as_me: error: cannot run C compiled programs.
2456If you meant to cross compile, use \`--host'.
2457See \`config.log' for more details." >&2;}
2458   { (exit 1); exit 1; }; }
2459    fi
2460  fi
2461fi
2462echo "$as_me:$LINENO: result: yes" >&5
2463echo "${ECHO_T}yes" >&6
2464
2465rm -f a.out a.exe conftest$ac_cv_exeext b.out
2466ac_clean_files=$ac_clean_files_save
2467# Check the compiler produces executables we can run.  If not, either
2468# the compiler is broken, or we cross compile.
2469echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2470echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2471echo "$as_me:$LINENO: result: $cross_compiling" >&5
2472echo "${ECHO_T}$cross_compiling" >&6
2473
2474echo "$as_me:$LINENO: checking for suffix of executables" >&5
2475echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477  (eval $ac_link) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; then
2481  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2482# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2483# work properly (i.e., refer to `conftest.exe'), while it won't with
2484# `rm'.
2485for ac_file in conftest.exe conftest conftest.*; do
2486  test -f "$ac_file" || continue
2487  case $ac_file in
2488    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2489    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490	  export ac_cv_exeext
2491	  break;;
2492    * ) break;;
2493  esac
2494done
2495else
2496  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499See \`config.log' for more details." >&2;}
2500   { (exit 1); exit 1; }; }
2501fi
2502
2503rm -f conftest$ac_cv_exeext
2504echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505echo "${ECHO_T}$ac_cv_exeext" >&6
2506
2507rm -f conftest.$ac_ext
2508EXEEXT=$ac_cv_exeext
2509ac_exeext=$EXEEXT
2510echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2512if test "${ac_cv_objext+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h.  */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h.  */
2521
2522int
2523main ()
2524{
2525
2526  ;
2527  return 0;
2528}
2529_ACEOF
2530rm -f conftest.o conftest.obj
2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532  (eval $ac_compile) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; then
2536  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2537  case $ac_file in
2538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2539    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2540       break;;
2541  esac
2542done
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of object files: cannot compile
2550See \`config.log' for more details." >&2;}
2551   { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest.$ac_cv_objext conftest.$ac_ext
2555fi
2556echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2557echo "${ECHO_T}$ac_cv_objext" >&6
2558OBJEXT=$ac_cv_objext
2559ac_objext=$OBJEXT
2560echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2561echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2562if test "${ac_cv_c_compiler_gnu+set}" = set; then
2563  echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565  cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571
2572int
2573main ()
2574{
2575#ifndef __GNUC__
2576       choke me
2577#endif
2578
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583rm -f conftest.$ac_objext
2584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585  (eval $ac_compile) 2>conftest.er1
2586  ac_status=$?
2587  grep -v '^ *+' conftest.er1 >conftest.err
2588  rm -f conftest.er1
2589  cat conftest.err >&5
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); } &&
2592	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; } &&
2598	 { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  ac_compiler_gnu=yes
2605else
2606  echo "$as_me: failed program was:" >&5
2607sed 's/^/| /' conftest.$ac_ext >&5
2608
2609ac_compiler_gnu=no
2610fi
2611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612ac_cv_c_compiler_gnu=$ac_compiler_gnu
2613
2614fi
2615echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2616echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2617GCC=`test $ac_compiler_gnu = yes && echo yes`
2618ac_test_CFLAGS=${CFLAGS+set}
2619ac_save_CFLAGS=$CFLAGS
2620CFLAGS="-g"
2621echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2622echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2623if test "${ac_cv_prog_cc_g+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.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; } &&
2656	 { ac_try='test -s conftest.$ac_objext'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; }; then
2662  ac_cv_prog_cc_g=yes
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667ac_cv_prog_cc_g=no
2668fi
2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670fi
2671echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2672echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2673if test "$ac_test_CFLAGS" = set; then
2674  CFLAGS=$ac_save_CFLAGS
2675elif test $ac_cv_prog_cc_g = yes; then
2676  if test "$GCC" = yes; then
2677    CFLAGS="-g -O2"
2678  else
2679    CFLAGS="-g"
2680  fi
2681else
2682  if test "$GCC" = yes; then
2683    CFLAGS="-O2"
2684  else
2685    CFLAGS=
2686  fi
2687fi
2688echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2689echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2690if test "${ac_cv_prog_cc_stdc+set}" = set; then
2691  echo $ECHO_N "(cached) $ECHO_C" >&6
2692else
2693  ac_cv_prog_cc_stdc=no
2694ac_save_CC=$CC
2695cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701#include <stdarg.h>
2702#include <stdio.h>
2703#include <sys/types.h>
2704#include <sys/stat.h>
2705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2706struct buf { int x; };
2707FILE * (*rcsopen) (struct buf *, struct stat *, int);
2708static char *e (p, i)
2709     char **p;
2710     int i;
2711{
2712  return p[i];
2713}
2714static char *f (char * (*g) (char **, int), char **p, ...)
2715{
2716  char *s;
2717  va_list v;
2718  va_start (v,p);
2719  s = g (p, va_arg (v,int));
2720  va_end (v);
2721  return s;
2722}
2723
2724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2725   function prototypes and stuff, but not '\xHH' hex character constants.
2726   These don't provoke an error unfortunately, instead are silently treated
2727   as 'x'.  The following induces an error, until -std1 is added to get
2728   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2729   array size at least.  It's necessary to write '\x00'==0 to get something
2730   that's true only with -std1.  */
2731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2732
2733int test (int i, double x);
2734struct s1 {int (*f) (int a);};
2735struct s2 {int (*f) (double a);};
2736int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2737int argc;
2738char **argv;
2739int
2740main ()
2741{
2742return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2743  ;
2744  return 0;
2745}
2746_ACEOF
2747# Don't try gcc -ansi; that turns off useful extensions and
2748# breaks some systems' header files.
2749# AIX			-qlanglvl=ansi
2750# Ultrix and OSF/1	-std1
2751# HP-UX 10.20 and later	-Ae
2752# HP-UX older versions	-Aa -D_HPUX_SOURCE
2753# SVR4			-Xc -D__EXTENSIONS__
2754for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2755do
2756  CC="$ac_save_CC $ac_arg"
2757  rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759  (eval $ac_compile) 2>conftest.er1
2760  ac_status=$?
2761  grep -v '^ *+' conftest.er1 >conftest.err
2762  rm -f conftest.er1
2763  cat conftest.err >&5
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); } &&
2766	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; } &&
2772	 { ac_try='test -s conftest.$ac_objext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  ac_cv_prog_cc_stdc=$ac_arg
2779break
2780else
2781  echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784fi
2785rm -f conftest.err conftest.$ac_objext
2786done
2787rm -f conftest.$ac_ext conftest.$ac_objext
2788CC=$ac_save_CC
2789
2790fi
2791
2792case "x$ac_cv_prog_cc_stdc" in
2793  x|xno)
2794    echo "$as_me:$LINENO: result: none needed" >&5
2795echo "${ECHO_T}none needed" >&6 ;;
2796  *)
2797    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2798echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2799    CC="$CC $ac_cv_prog_cc_stdc" ;;
2800esac
2801
2802# Some people use a C++ compiler to compile C.  Since we use `exit',
2803# in C++ we need to declare it.  In case someone uses the same compiler
2804# for both compiling C and C++ we need to have the C++ compiler decide
2805# the declaration of exit, since it's the most demanding environment.
2806cat >conftest.$ac_ext <<_ACEOF
2807#ifndef __cplusplus
2808  choke me
2809#endif
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813  (eval $ac_compile) 2>conftest.er1
2814  ac_status=$?
2815  grep -v '^ *+' conftest.er1 >conftest.err
2816  rm -f conftest.er1
2817  cat conftest.err >&5
2818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819  (exit $ac_status); } &&
2820	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822  (eval $ac_try) 2>&5
2823  ac_status=$?
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); }; } &&
2826	 { ac_try='test -s conftest.$ac_objext'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; }; then
2832  for ac_declaration in \
2833   '' \
2834   'extern "C" void std::exit (int) throw (); using std::exit;' \
2835   'extern "C" void std::exit (int); using std::exit;' \
2836   'extern "C" void exit (int) throw ();' \
2837   'extern "C" void exit (int);' \
2838   'void exit (int);'
2839do
2840  cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846$ac_declaration
2847#include <stdlib.h>
2848int
2849main ()
2850{
2851exit (42);
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858  (eval $ac_compile) 2>conftest.er1
2859  ac_status=$?
2860  grep -v '^ *+' conftest.er1 >conftest.err
2861  rm -f conftest.er1
2862  cat conftest.err >&5
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); } &&
2865	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867  (eval $ac_try) 2>&5
2868  ac_status=$?
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); }; } &&
2871	 { ac_try='test -s conftest.$ac_objext'
2872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873  (eval $ac_try) 2>&5
2874  ac_status=$?
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); }; }; then
2877  :
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882continue
2883fi
2884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885  cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891$ac_declaration
2892int
2893main ()
2894{
2895exit (42);
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
2901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902  (eval $ac_compile) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; } &&
2915	 { ac_try='test -s conftest.$ac_objext'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; }; then
2921  break
2922else
2923  echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926fi
2927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928done
2929rm -f conftest*
2930if test -n "$ac_declaration"; then
2931  echo '#ifdef __cplusplus' >>confdefs.h
2932  echo $ac_declaration      >>confdefs.h
2933  echo '#endif'             >>confdefs.h
2934fi
2935
2936else
2937  echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940fi
2941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947DEPDIR="${am__leading_dot}deps"
2948
2949          ac_config_commands="$ac_config_commands depfiles"
2950
2951
2952am_make=${MAKE-make}
2953cat > confinc << 'END'
2954am__doit:
2955	@echo done
2956.PHONY: am__doit
2957END
2958# If we don't find an include directive, just comment out the code.
2959echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2960echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2961am__include="#"
2962am__quote=
2963_am_result=none
2964# First try GNU make style include.
2965echo "include confinc" > confmf
2966# We grep out `Entering directory' and `Leaving directory'
2967# messages which can occur if `w' ends up in MAKEFLAGS.
2968# In particular we don't look at `^make:' because GNU make might
2969# be invoked under some other name (usually "gmake"), in which
2970# case it prints its new name instead of `make'.
2971if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2972   am__include=include
2973   am__quote=
2974   _am_result=GNU
2975fi
2976# Now try BSD make style include.
2977if test "$am__include" = "#"; then
2978   echo '.include "confinc"' > confmf
2979   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2980      am__include=.include
2981      am__quote="\""
2982      _am_result=BSD
2983   fi
2984fi
2985
2986
2987echo "$as_me:$LINENO: result: $_am_result" >&5
2988echo "${ECHO_T}$_am_result" >&6
2989rm -f confinc confmf
2990
2991# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2992if test "${enable_dependency_tracking+set}" = set; then
2993  enableval="$enable_dependency_tracking"
2994
2995fi;
2996if test "x$enable_dependency_tracking" != xno; then
2997  am_depcomp="$ac_aux_dir/depcomp"
2998  AMDEPBACKSLASH='\'
2999fi
3000
3001
3002if test "x$enable_dependency_tracking" != xno; then
3003  AMDEP_TRUE=
3004  AMDEP_FALSE='#'
3005else
3006  AMDEP_TRUE='#'
3007  AMDEP_FALSE=
3008fi
3009
3010
3011
3012
3013depcc="$CC"   am_compiler_list=
3014
3015echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3016echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3017if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3018  echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3021  # We make a subdir and do the tests there.  Otherwise we can end up
3022  # making bogus files that we don't know about and never remove.  For
3023  # instance it was reported that on HP-UX the gcc test will end up
3024  # making a dummy file named `D' -- because `-MD' means `put the output
3025  # in D'.
3026  mkdir conftest.dir
3027  # Copy depcomp to subdir because otherwise we won't find it if we're
3028  # using a relative directory.
3029  cp "$am_depcomp" conftest.dir
3030  cd conftest.dir
3031  # We will build objects and dependencies in a subdirectory because
3032  # it helps to detect inapplicable dependency modes.  For instance
3033  # both Tru64's cc and ICC support -MD to output dependencies as a
3034  # side effect of compilation, but ICC will put the dependencies in
3035  # the current directory while Tru64 will put them in the object
3036  # directory.
3037  mkdir sub
3038
3039  am_cv_CC_dependencies_compiler_type=none
3040  if test "$am_compiler_list" = ""; then
3041     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3042  fi
3043  for depmode in $am_compiler_list; do
3044    # Setup a source with many dependencies, because some compilers
3045    # like to wrap large dependency lists on column 80 (with \), and
3046    # we should not choose a depcomp mode which is confused by this.
3047    #
3048    # We need to recreate these files for each test, as the compiler may
3049    # overwrite some of them when testing with obscure command lines.
3050    # This happens at least with the AIX C compiler.
3051    : > sub/conftest.c
3052    for i in 1 2 3 4 5 6; do
3053      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3054      : > sub/conftst$i.h
3055    done
3056    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3057
3058    case $depmode in
3059    nosideeffect)
3060      # after this tag, mechanisms are not by side-effect, so they'll
3061      # only be used when explicitly requested
3062      if test "x$enable_dependency_tracking" = xyes; then
3063	continue
3064      else
3065	break
3066      fi
3067      ;;
3068    none) break ;;
3069    esac
3070    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3071    # mode.  It turns out that the SunPro C++ compiler does not properly
3072    # handle `-M -o', and we need to detect this.
3073    if depmode=$depmode \
3074       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3075       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3076       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3077         >/dev/null 2>conftest.err &&
3078       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3079       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3080       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3081      # icc doesn't choke on unknown options, it will just issue warnings
3082      # (even with -Werror).  So we grep stderr for any message
3083      # that says an option was ignored.
3084      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3085        am_cv_CC_dependencies_compiler_type=$depmode
3086        break
3087      fi
3088    fi
3089  done
3090
3091  cd ..
3092  rm -rf conftest.dir
3093else
3094  am_cv_CC_dependencies_compiler_type=none
3095fi
3096
3097fi
3098echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3099echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3100CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3101
3102
3103
3104if
3105  test "x$enable_dependency_tracking" != xno \
3106  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3107  am__fastdepCC_TRUE=
3108  am__fastdepCC_FALSE='#'
3109else
3110  am__fastdepCC_TRUE='#'
3111  am__fastdepCC_FALSE=
3112fi
3113
3114
3115# By default we simply use the C compiler to build assembly code.
3116
3117test "${CCAS+set}" = set || CCAS=$CC
3118test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3119
3120
3121
3122
3123if test "$GCC" = yes
3124then
3125    case "$host" in
3126	*-*-mingw*)
3127	    case "$build" in
3128		*-*-cygwin*)
3129		    CPPFLAGS="$CPPFLAGS -mno-cygwin"
3130		    LDFLAGS="$LDFLAGS -mno-cygwin"
3131		    ;;
3132	    esac
3133    esac
3134
3135fi
3136
3137
3138# Check whether --enable-shared or --disable-shared was given.
3139if test "${enable_shared+set}" = set; then
3140  enableval="$enable_shared"
3141  p=${PACKAGE-default}
3142    case $enableval in
3143    yes) enable_shared=yes ;;
3144    no) enable_shared=no ;;
3145    *)
3146      enable_shared=no
3147      # Look at the argument we got.  We use all the common list separators.
3148      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3149      for pkg in $enableval; do
3150	IFS="$lt_save_ifs"
3151	if test "X$pkg" = "X$p"; then
3152	  enable_shared=yes
3153	fi
3154      done
3155      IFS="$lt_save_ifs"
3156      ;;
3157    esac
3158else
3159  enable_shared=yes
3160fi;
3161
3162# Check whether --enable-static or --disable-static was given.
3163if test "${enable_static+set}" = set; then
3164  enableval="$enable_static"
3165  p=${PACKAGE-default}
3166    case $enableval in
3167    yes) enable_static=yes ;;
3168    no) enable_static=no ;;
3169    *)
3170     enable_static=no
3171      # Look at the argument we got.  We use all the common list separators.
3172      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3173      for pkg in $enableval; do
3174	IFS="$lt_save_ifs"
3175	if test "X$pkg" = "X$p"; then
3176	  enable_static=yes
3177	fi
3178      done
3179      IFS="$lt_save_ifs"
3180      ;;
3181    esac
3182else
3183  enable_static=yes
3184fi;
3185
3186# Check whether --enable-fast-install or --disable-fast-install was given.
3187if test "${enable_fast_install+set}" = set; then
3188  enableval="$enable_fast_install"
3189  p=${PACKAGE-default}
3190    case $enableval in
3191    yes) enable_fast_install=yes ;;
3192    no) enable_fast_install=no ;;
3193    *)
3194      enable_fast_install=no
3195      # Look at the argument we got.  We use all the common list separators.
3196      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3197      for pkg in $enableval; do
3198	IFS="$lt_save_ifs"
3199	if test "X$pkg" = "X$p"; then
3200	  enable_fast_install=yes
3201	fi
3202      done
3203      IFS="$lt_save_ifs"
3204      ;;
3205    esac
3206else
3207  enable_fast_install=yes
3208fi;
3209
3210echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3211echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3212if test "${lt_cv_path_SED+set}" = set; then
3213  echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215  # Loop through the user's path and test for sed and gsed.
3216# Then use that list of sed's as ones to test for truncation.
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222  for lt_ac_prog in sed gsed; do
3223    for ac_exec_ext in '' $ac_executable_extensions; do
3224      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3225        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3226      fi
3227    done
3228  done
3229done
3230lt_ac_max=0
3231lt_ac_count=0
3232# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3233# along with /bin/sed that truncates output.
3234for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3235  test ! -f $lt_ac_sed && break
3236  cat /dev/null > conftest.in
3237  lt_ac_count=0
3238  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3239  # Check for GNU sed and select it if it is found.
3240  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3241    lt_cv_path_SED=$lt_ac_sed
3242    break
3243  fi
3244  while true; do
3245    cat conftest.in conftest.in >conftest.tmp
3246    mv conftest.tmp conftest.in
3247    cp conftest.in conftest.nl
3248    echo >>conftest.nl
3249    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3250    cmp -s conftest.out conftest.nl || break
3251    # 10000 chars as input seems more than enough
3252    test $lt_ac_count -gt 10 && break
3253    lt_ac_count=`expr $lt_ac_count + 1`
3254    if test $lt_ac_count -gt $lt_ac_max; then
3255      lt_ac_max=$lt_ac_count
3256      lt_cv_path_SED=$lt_ac_sed
3257    fi
3258  done
3259done
3260SED=$lt_cv_path_SED
3261
3262fi
3263
3264echo "$as_me:$LINENO: result: $SED" >&5
3265echo "${ECHO_T}$SED" >&6
3266
3267echo "$as_me:$LINENO: checking for egrep" >&5
3268echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3269if test "${ac_cv_prog_egrep+set}" = set; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3273    then ac_cv_prog_egrep='grep -E'
3274    else ac_cv_prog_egrep='egrep'
3275    fi
3276fi
3277echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3278echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3279 EGREP=$ac_cv_prog_egrep
3280
3281
3282
3283# Check whether --with-gnu-ld or --without-gnu-ld was given.
3284if test "${with_gnu_ld+set}" = set; then
3285  withval="$with_gnu_ld"
3286  test "$withval" = no || with_gnu_ld=yes
3287else
3288  with_gnu_ld=no
3289fi;
3290ac_prog=ld
3291if test "$GCC" = yes; then
3292  # Check if gcc -print-prog-name=ld gives a path.
3293  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3294echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3295  case $host in
3296  *-*-mingw*)
3297    # gcc leaves a trailing carriage return which upsets mingw
3298    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3299  *)
3300    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3301  esac
3302  case $ac_prog in
3303    # Accept absolute paths.
3304    [\\/]* | ?:[\\/]*)
3305      re_direlt='/[^/][^/]*/\.\./'
3306      # Canonicalize the pathname of ld
3307      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3308      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3309	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3310      done
3311      test -z "$LD" && LD="$ac_prog"
3312      ;;
3313  "")
3314    # If it fails, then pretend we aren't using GCC.
3315    ac_prog=ld
3316    ;;
3317  *)
3318    # If it is relative, then search for the first ld in PATH.
3319    with_gnu_ld=unknown
3320    ;;
3321  esac
3322elif test "$with_gnu_ld" = yes; then
3323  echo "$as_me:$LINENO: checking for GNU ld" >&5
3324echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3325else
3326  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3327echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3328fi
3329if test "${lt_cv_path_LD+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  if test -z "$LD"; then
3333  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3334  for ac_dir in $PATH; do
3335    IFS="$lt_save_ifs"
3336    test -z "$ac_dir" && ac_dir=.
3337    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3338      lt_cv_path_LD="$ac_dir/$ac_prog"
3339      # Check to see if the program is GNU ld.  I'd rather use --version,
3340      # but apparently some GNU ld's only accept -v.
3341      # Break only if it was the GNU/non-GNU ld that we prefer.
3342      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3343      *GNU* | *'with BFD'*)
3344	test "$with_gnu_ld" != no && break
3345	;;
3346      *)
3347	test "$with_gnu_ld" != yes && break
3348	;;
3349      esac
3350    fi
3351  done
3352  IFS="$lt_save_ifs"
3353else
3354  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3355fi
3356fi
3357
3358LD="$lt_cv_path_LD"
3359if test -n "$LD"; then
3360  echo "$as_me:$LINENO: result: $LD" >&5
3361echo "${ECHO_T}$LD" >&6
3362else
3363  echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3367echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3368   { (exit 1); exit 1; }; }
3369echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3370echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3371if test "${lt_cv_prog_gnu_ld+set}" = set; then
3372  echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3375case `$LD -v 2>&1 </dev/null` in
3376*GNU* | *'with BFD'*)
3377  lt_cv_prog_gnu_ld=yes
3378  ;;
3379*)
3380  lt_cv_prog_gnu_ld=no
3381  ;;
3382esac
3383fi
3384echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3385echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3386with_gnu_ld=$lt_cv_prog_gnu_ld
3387
3388
3389echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3390echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3391if test "${lt_cv_ld_reload_flag+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  lt_cv_ld_reload_flag='-r'
3395fi
3396echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3397echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3398reload_flag=$lt_cv_ld_reload_flag
3399case $reload_flag in
3400"" | " "*) ;;
3401*) reload_flag=" $reload_flag" ;;
3402esac
3403reload_cmds='$LD$reload_flag -o $output$reload_objs'
3404
3405echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3406echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3407if test "${lt_cv_path_NM+set}" = set; then
3408  echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410  if test -n "$NM"; then
3411  # Let the user override the test.
3412  lt_cv_path_NM="$NM"
3413else
3414  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3416    IFS="$lt_save_ifs"
3417    test -z "$ac_dir" && ac_dir=.
3418    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3419    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3420      # Check to see if the nm accepts a BSD-compat flag.
3421      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3422      #   nm: unknown option "B" ignored
3423      # Tru64's nm complains that /dev/null is an invalid object file
3424      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3425      */dev/null* | *'Invalid file or object type'*)
3426	lt_cv_path_NM="$tmp_nm -B"
3427	break
3428        ;;
3429      *)
3430	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3431	*/dev/null*)
3432	  lt_cv_path_NM="$tmp_nm -p"
3433	  break
3434	  ;;
3435	*)
3436	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3437	  continue # so that we can try to find one that supports BSD flags
3438	  ;;
3439	esac
3440      esac
3441    fi
3442  done
3443  IFS="$lt_save_ifs"
3444  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3445fi
3446fi
3447echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3448echo "${ECHO_T}$lt_cv_path_NM" >&6
3449NM="$lt_cv_path_NM"
3450
3451echo "$as_me:$LINENO: checking whether ln -s works" >&5
3452echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3453LN_S=$as_ln_s
3454if test "$LN_S" = "ln -s"; then
3455  echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
3457else
3458  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3459echo "${ECHO_T}no, using $LN_S" >&6
3460fi
3461
3462echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3463echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3464if test "${lt_cv_deplibs_check_method+set}" = set; then
3465  echo $ECHO_N "(cached) $ECHO_C" >&6
3466else
3467  lt_cv_file_magic_cmd='$MAGIC_CMD'
3468lt_cv_file_magic_test_file=
3469lt_cv_deplibs_check_method='unknown'
3470# Need to set the preceding variable on all platforms that support
3471# interlibrary dependencies.
3472# 'none' -- dependencies not supported.
3473# `unknown' -- same as none, but documents that we really don't know.
3474# 'pass_all' -- all dependencies passed with no checks.
3475# 'test_compile' -- check by making test program.
3476# 'file_magic [[regex]]' -- check by looking for files in library path
3477# which responds to the $file_magic_cmd with a given extended regex.
3478# If you have `file' or equivalent on your system and you're not sure
3479# whether `pass_all' will *always* work, you probably want this one.
3480
3481case $host_os in
3482aix4* | aix5*)
3483  lt_cv_deplibs_check_method=pass_all
3484  ;;
3485
3486beos*)
3487  lt_cv_deplibs_check_method=pass_all
3488  ;;
3489
3490bsdi4*)
3491  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3492  lt_cv_file_magic_cmd='/usr/bin/file -L'
3493  lt_cv_file_magic_test_file=/shlib/libc.so
3494  ;;
3495
3496cygwin*)
3497  # win32_libid is a shell function defined in ltmain.sh
3498  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3499  lt_cv_file_magic_cmd='win32_libid'
3500  ;;
3501
3502mingw* | pw32*)
3503  # Base MSYS/MinGW do not provide the 'file' command needed by
3504  # win32_libid shell function, so use a weaker test based on 'objdump'.
3505  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3506  lt_cv_file_magic_cmd='$OBJDUMP -f'
3507  ;;
3508
3509darwin* | rhapsody*)
3510  lt_cv_deplibs_check_method=pass_all
3511  ;;
3512
3513freebsd* | kfreebsd*-gnu)
3514  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3515    case $host_cpu in
3516    i*86 )
3517      # Not sure whether the presence of OpenBSD here was a mistake.
3518      # Let's accept both of them until this is cleared up.
3519      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3520      lt_cv_file_magic_cmd=/usr/bin/file
3521      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3522      ;;
3523    esac
3524  else
3525    lt_cv_deplibs_check_method=pass_all
3526  fi
3527  ;;
3528
3529gnu*)
3530  lt_cv_deplibs_check_method=pass_all
3531  ;;
3532
3533hpux10.20* | hpux11*)
3534  lt_cv_file_magic_cmd=/usr/bin/file
3535  case "$host_cpu" in
3536  ia64*)
3537    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3538    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3539    ;;
3540  hppa*64*)
3541    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]'
3542    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3543    ;;
3544  *)
3545    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547    ;;
3548  esac
3549  ;;
3550
3551irix5* | irix6* | nonstopux*)
3552  case $LD in
3553  *-32|*"-32 ") libmagic=32-bit;;
3554  *-n32|*"-n32 ") libmagic=N32;;
3555  *-64|*"-64 ") libmagic=64-bit;;
3556  *) libmagic=never-match;;
3557  esac
3558  lt_cv_deplibs_check_method=pass_all
3559  ;;
3560
3561# This must be Linux ELF.
3562linux*)
3563  lt_cv_deplibs_check_method=pass_all
3564  ;;
3565
3566netbsd* | knetbsd*-gnu)
3567  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3569  else
3570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3571  fi
3572  ;;
3573
3574newos6*)
3575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3576  lt_cv_file_magic_cmd=/usr/bin/file
3577  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3578  ;;
3579
3580nto-qnx*)
3581  lt_cv_deplibs_check_method=unknown
3582  ;;
3583
3584openbsd*)
3585  lt_cv_file_magic_cmd=/usr/bin/file
3586  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3587  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3588    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3589  else
3590    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3591  fi
3592  ;;
3593
3594osf3* | osf4* | osf5*)
3595  lt_cv_deplibs_check_method=pass_all
3596  ;;
3597
3598sco3.2v5*)
3599  lt_cv_deplibs_check_method=pass_all
3600  ;;
3601
3602solaris*)
3603  lt_cv_deplibs_check_method=pass_all
3604  ;;
3605
3606sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3607  case $host_vendor in
3608  motorola)
3609    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]'
3610    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3611    ;;
3612  ncr)
3613    lt_cv_deplibs_check_method=pass_all
3614    ;;
3615  sequent)
3616    lt_cv_file_magic_cmd='/bin/file'
3617    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3618    ;;
3619  sni)
3620    lt_cv_file_magic_cmd='/bin/file'
3621    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3622    lt_cv_file_magic_test_file=/lib/libc.so
3623    ;;
3624  siemens)
3625    lt_cv_deplibs_check_method=pass_all
3626    ;;
3627  esac
3628  ;;
3629
3630sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3631  lt_cv_deplibs_check_method=pass_all
3632  ;;
3633esac
3634
3635fi
3636echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3637echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3638file_magic_cmd=$lt_cv_file_magic_cmd
3639deplibs_check_method=$lt_cv_deplibs_check_method
3640test -z "$deplibs_check_method" && deplibs_check_method=unknown
3641
3642
3643
3644
3645# If no C compiler was specified, use CC.
3646LTCC=${LTCC-"$CC"}
3647
3648# Allow CC to be a program name with arguments.
3649compiler=$CC
3650
3651
3652# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3653if test "${enable_libtool_lock+set}" = set; then
3654  enableval="$enable_libtool_lock"
3655
3656fi;
3657test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3658
3659# Some flags need to be propagated to the compiler or linker for good
3660# libtool support.
3661case $host in
3662ia64-*-hpux*)
3663  # Find out which ABI we are using.
3664  echo 'int i;' > conftest.$ac_ext
3665  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666  (eval $ac_compile) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; then
3670    case `/usr/bin/file conftest.$ac_objext` in
3671    *ELF-32*)
3672      HPUX_IA64_MODE="32"
3673      ;;
3674    *ELF-64*)
3675      HPUX_IA64_MODE="64"
3676      ;;
3677    esac
3678  fi
3679  rm -rf conftest*
3680  ;;
3681*-*-irix6*)
3682  # Find out which ABI we are using.
3683  echo '#line 3683 "configure"' > conftest.$ac_ext
3684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685  (eval $ac_compile) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; then
3689   if test "$lt_cv_prog_gnu_ld" = yes; then
3690    case `/usr/bin/file conftest.$ac_objext` in
3691    *32-bit*)
3692      LD="${LD-ld} -melf32bsmip"
3693      ;;
3694    *N32*)
3695      LD="${LD-ld} -melf32bmipn32"
3696      ;;
3697    *64-bit*)
3698      LD="${LD-ld} -melf64bmip"
3699      ;;
3700    esac
3701   else
3702    case `/usr/bin/file conftest.$ac_objext` in
3703    *32-bit*)
3704      LD="${LD-ld} -32"
3705      ;;
3706    *N32*)
3707      LD="${LD-ld} -n32"
3708      ;;
3709    *64-bit*)
3710      LD="${LD-ld} -64"
3711      ;;
3712    esac
3713   fi
3714  fi
3715  rm -rf conftest*
3716  ;;
3717
3718x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3719  # Find out which ABI we are using.
3720  echo 'int i;' > conftest.$ac_ext
3721  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722  (eval $ac_compile) 2>&5
3723  ac_status=$?
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); }; then
3726    case "`/usr/bin/file conftest.o`" in
3727    *32-bit*)
3728      case $host in
3729        x86_64-*linux*)
3730          LD="${LD-ld} -m elf_i386"
3731          ;;
3732        ppc64-*linux*|powerpc64-*linux*)
3733          LD="${LD-ld} -m elf32ppclinux"
3734          ;;
3735        s390x-*linux*)
3736          LD="${LD-ld} -m elf_s390"
3737          ;;
3738        sparc64-*linux*)
3739          LD="${LD-ld} -m elf32_sparc"
3740          ;;
3741      esac
3742      ;;
3743    *64-bit*)
3744      case $host in
3745        x86_64-*linux*)
3746          LD="${LD-ld} -m elf_x86_64"
3747          ;;
3748        ppc*-*linux*|powerpc*-*linux*)
3749          LD="${LD-ld} -m elf64ppc"
3750          ;;
3751        s390*-*linux*)
3752          LD="${LD-ld} -m elf64_s390"
3753          ;;
3754        sparc*-*linux*)
3755          LD="${LD-ld} -m elf64_sparc"
3756          ;;
3757      esac
3758      ;;
3759    esac
3760  fi
3761  rm -rf conftest*
3762  ;;
3763
3764*-*-sco3.2v5*)
3765  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3766  SAVE_CFLAGS="$CFLAGS"
3767  CFLAGS="$CFLAGS -belf"
3768  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3769echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3770if test "${lt_cv_cc_needs_belf+set}" = set; then
3771  echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773  ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779     cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805  (eval $ac_try) 2>&5
3806  ac_status=$?
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); }; } &&
3809	 { ac_try='test -s conftest$ac_exeext'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; }; then
3815  lt_cv_cc_needs_belf=yes
3816else
3817  echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820lt_cv_cc_needs_belf=no
3821fi
3822rm -f conftest.err conftest.$ac_objext \
3823      conftest$ac_exeext conftest.$ac_ext
3824     ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830fi
3831echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3832echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3833  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3834    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3835    CFLAGS="$SAVE_CFLAGS"
3836  fi
3837  ;;
3838
3839esac
3840
3841need_locks="$enable_libtool_lock"
3842
3843
3844ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3850echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3851# On Suns, sometimes $CPP names a directory.
3852if test -n "$CPP" && test -d "$CPP"; then
3853  CPP=
3854fi
3855if test -z "$CPP"; then
3856  if test "${ac_cv_prog_CPP+set}" = set; then
3857  echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859      # Double quotes because CPP needs to be expanded
3860    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3861    do
3862      ac_preproc_ok=false
3863for ac_c_preproc_warn_flag in '' yes
3864do
3865  # Use a header file that comes with gcc, so configuring glibc
3866  # with a fresh cross-compiler works.
3867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868  # <limits.h> exists even on freestanding compilers.
3869  # On the NeXT, cc -E runs the code through the compiler's parser,
3870  # not just through cpp. "Syntax error" is here to catch this case.
3871  cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h.  */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h.  */
3877#ifdef __STDC__
3878# include <limits.h>
3879#else
3880# include <assert.h>
3881#endif
3882		     Syntax error
3883_ACEOF
3884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3886  ac_status=$?
3887  grep -v '^ *+' conftest.er1 >conftest.err
3888  rm -f conftest.er1
3889  cat conftest.err >&5
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); } >/dev/null; then
3892  if test -s conftest.err; then
3893    ac_cpp_err=$ac_c_preproc_warn_flag
3894    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3895  else
3896    ac_cpp_err=
3897  fi
3898else
3899  ac_cpp_err=yes
3900fi
3901if test -z "$ac_cpp_err"; then
3902  :
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907  # Broken: fails on valid input.
3908continue
3909fi
3910rm -f conftest.err conftest.$ac_ext
3911
3912  # OK, works on sane cases.  Now check whether non-existent headers
3913  # can be detected and how.
3914  cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920#include <ac_nonexistent.h>
3921_ACEOF
3922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3924  ac_status=$?
3925  grep -v '^ *+' conftest.er1 >conftest.err
3926  rm -f conftest.er1
3927  cat conftest.err >&5
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); } >/dev/null; then
3930  if test -s conftest.err; then
3931    ac_cpp_err=$ac_c_preproc_warn_flag
3932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3933  else
3934    ac_cpp_err=
3935  fi
3936else
3937  ac_cpp_err=yes
3938fi
3939if test -z "$ac_cpp_err"; then
3940  # Broken: success on invalid input.
3941continue
3942else
3943  echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946  # Passes both tests.
3947ac_preproc_ok=:
3948break
3949fi
3950rm -f conftest.err conftest.$ac_ext
3951
3952done
3953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954rm -f conftest.err conftest.$ac_ext
3955if $ac_preproc_ok; then
3956  break
3957fi
3958
3959    done
3960    ac_cv_prog_CPP=$CPP
3961
3962fi
3963  CPP=$ac_cv_prog_CPP
3964else
3965  ac_cv_prog_CPP=$CPP
3966fi
3967echo "$as_me:$LINENO: result: $CPP" >&5
3968echo "${ECHO_T}$CPP" >&6
3969ac_preproc_ok=false
3970for ac_c_preproc_warn_flag in '' yes
3971do
3972  # Use a header file that comes with gcc, so configuring glibc
3973  # with a fresh cross-compiler works.
3974  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3975  # <limits.h> exists even on freestanding compilers.
3976  # On the NeXT, cc -E runs the code through the compiler's parser,
3977  # not just through cpp. "Syntax error" is here to catch this case.
3978  cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h.  */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h.  */
3984#ifdef __STDC__
3985# include <limits.h>
3986#else
3987# include <assert.h>
3988#endif
3989		     Syntax error
3990_ACEOF
3991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } >/dev/null; then
3999  if test -s conftest.err; then
4000    ac_cpp_err=$ac_c_preproc_warn_flag
4001    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4002  else
4003    ac_cpp_err=
4004  fi
4005else
4006  ac_cpp_err=yes
4007fi
4008if test -z "$ac_cpp_err"; then
4009  :
4010else
4011  echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014  # Broken: fails on valid input.
4015continue
4016fi
4017rm -f conftest.err conftest.$ac_ext
4018
4019  # OK, works on sane cases.  Now check whether non-existent headers
4020  # can be detected and how.
4021  cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h.  */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h.  */
4027#include <ac_nonexistent.h>
4028_ACEOF
4029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4030  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031  ac_status=$?
4032  grep -v '^ *+' conftest.er1 >conftest.err
4033  rm -f conftest.er1
4034  cat conftest.err >&5
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); } >/dev/null; then
4037  if test -s conftest.err; then
4038    ac_cpp_err=$ac_c_preproc_warn_flag
4039    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4040  else
4041    ac_cpp_err=
4042  fi
4043else
4044  ac_cpp_err=yes
4045fi
4046if test -z "$ac_cpp_err"; then
4047  # Broken: success on invalid input.
4048continue
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053  # Passes both tests.
4054ac_preproc_ok=:
4055break
4056fi
4057rm -f conftest.err conftest.$ac_ext
4058
4059done
4060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061rm -f conftest.err conftest.$ac_ext
4062if $ac_preproc_ok; then
4063  :
4064else
4065  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4066See \`config.log' for more details." >&5
4067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4068See \`config.log' for more details." >&2;}
4069   { (exit 1); exit 1; }; }
4070fi
4071
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
4079echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081if test "${ac_cv_header_stdc+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
4095int
4096main ()
4097{
4098
4099  ;
4100  return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext
4104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105  (eval $ac_compile) 2>conftest.er1
4106  ac_status=$?
4107  grep -v '^ *+' conftest.er1 >conftest.err
4108  rm -f conftest.er1
4109  cat conftest.err >&5
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); } &&
4112	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114  (eval $ac_try) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; } &&
4118	 { ac_try='test -s conftest.$ac_objext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  ac_cv_header_stdc=yes
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_header_stdc=no
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133if test $ac_cv_header_stdc = yes; then
4134  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135  cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h.  */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h.  */
4141#include <string.h>
4142
4143_ACEOF
4144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145  $EGREP "memchr" >/dev/null 2>&1; then
4146  :
4147else
4148  ac_cv_header_stdc=no
4149fi
4150rm -f conftest*
4151
4152fi
4153
4154if test $ac_cv_header_stdc = yes; then
4155  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156  cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h.  */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h.  */
4162#include <stdlib.h>
4163
4164_ACEOF
4165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166  $EGREP "free" >/dev/null 2>&1; then
4167  :
4168else
4169  ac_cv_header_stdc=no
4170fi
4171rm -f conftest*
4172
4173fi
4174
4175if test $ac_cv_header_stdc = yes; then
4176  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177  if test "$cross_compiling" = yes; then
4178  :
4179else
4180  cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186#include <ctype.h>
4187#if ((' ' & 0x0FF) == 0x020)
4188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190#else
4191# define ISLOWER(c) \
4192		   (('a' <= (c) && (c) <= 'i') \
4193		     || ('j' <= (c) && (c) <= 'r') \
4194		     || ('s' <= (c) && (c) <= 'z'))
4195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196#endif
4197
4198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199int
4200main ()
4201{
4202  int i;
4203  for (i = 0; i < 256; i++)
4204    if (XOR (islower (i), ISLOWER (i))
4205	|| toupper (i) != TOUPPER (i))
4206      exit(2);
4207  exit (0);
4208}
4209_ACEOF
4210rm -f conftest$ac_exeext
4211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212  (eval $ac_link) 2>&5
4213  ac_status=$?
4214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; }; then
4221  :
4222else
4223  echo "$as_me: program exited with status $ac_status" >&5
4224echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227( exit $ac_status )
4228ac_cv_header_stdc=no
4229fi
4230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4231fi
4232fi
4233fi
4234echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236if test $ac_cv_header_stdc = yes; then
4237
4238cat >>confdefs.h <<\_ACEOF
4239#define STDC_HEADERS 1
4240_ACEOF
4241
4242fi
4243
4244# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255		  inttypes.h stdint.h unistd.h
4256do
4257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258echo "$as_me:$LINENO: checking for $ac_header" >&5
4259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261  echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263  cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h.  */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h.  */
4269$ac_includes_default
4270
4271#include <$ac_header>
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275  (eval $ac_compile) 2>conftest.er1
4276  ac_status=$?
4277  grep -v '^ *+' conftest.er1 >conftest.err
4278  rm -f conftest.er1
4279  cat conftest.err >&5
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); } &&
4282	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284  (eval $ac_try) 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; } &&
4288	 { ac_try='test -s conftest.$ac_objext'
4289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290  (eval $ac_try) 2>&5
4291  ac_status=$?
4292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293  (exit $ac_status); }; }; then
4294  eval "$as_ac_Header=yes"
4295else
4296  echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299eval "$as_ac_Header=no"
4300fi
4301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4302fi
4303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4305if test `eval echo '${'$as_ac_Header'}'` = yes; then
4306  cat >>confdefs.h <<_ACEOF
4307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4308_ACEOF
4309
4310fi
4311
4312done
4313
4314
4315
4316for ac_header in dlfcn.h
4317do
4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319if eval "test \"\${$as_ac_Header+set}\" = set"; then
4320  echo "$as_me:$LINENO: checking for $ac_header" >&5
4321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4322if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323  echo $ECHO_N "(cached) $ECHO_C" >&6
4324fi
4325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327else
4328  # Is the header compilable?
4329echo "$as_me:$LINENO: checking $ac_header usability" >&5
4330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4331cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h.  */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h.  */
4337$ac_includes_default
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342  (eval $ac_compile) 2>conftest.er1
4343  ac_status=$?
4344  grep -v '^ *+' conftest.er1 >conftest.err
4345  rm -f conftest.er1
4346  cat conftest.err >&5
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); } &&
4349	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355	 { ac_try='test -s conftest.$ac_objext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  ac_header_compiler=yes
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366ac_header_compiler=no
4367fi
4368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4370echo "${ECHO_T}$ac_header_compiler" >&6
4371
4372# Is the header present?
4373echo "$as_me:$LINENO: checking $ac_header presence" >&5
4374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4375cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h.  */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h.  */
4381#include <$ac_header>
4382_ACEOF
4383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } >/dev/null; then
4391  if test -s conftest.err; then
4392    ac_cpp_err=$ac_c_preproc_warn_flag
4393    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4394  else
4395    ac_cpp_err=
4396  fi
4397else
4398  ac_cpp_err=yes
4399fi
4400if test -z "$ac_cpp_err"; then
4401  ac_header_preproc=yes
4402else
4403  echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406  ac_header_preproc=no
4407fi
4408rm -f conftest.err conftest.$ac_ext
4409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4410echo "${ECHO_T}$ac_header_preproc" >&6
4411
4412# So?  What about this header?
4413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4414  yes:no: )
4415    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4417    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4419    ac_header_preproc=yes
4420    ;;
4421  no:yes:* )
4422    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4424    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4425echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4426    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4428    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4429echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4432    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4434    (
4435      cat <<\_ASBOX
4436## ----------------------------------- ##
4437## Report this to support@underbit.com ##
4438## ----------------------------------- ##
4439_ASBOX
4440    ) |
4441      sed "s/^/$as_me: WARNING:     /" >&2
4442    ;;
4443esac
4444echo "$as_me:$LINENO: checking for $ac_header" >&5
4445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4446if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  eval "$as_ac_Header=\$ac_header_preproc"
4450fi
4451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4453
4454fi
4455if test `eval echo '${'$as_ac_Header'}'` = yes; then
4456  cat >>confdefs.h <<_ACEOF
4457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458_ACEOF
4459
4460fi
4461
4462done
4463
4464ac_ext=cc
4465ac_cpp='$CXXCPP $CPPFLAGS'
4466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4469if test -n "$ac_tool_prefix"; then
4470  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4471  do
4472    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_prog_CXX+set}" = set; then
4477  echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479  if test -n "$CXX"; then
4480  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485  IFS=$as_save_IFS
4486  test -z "$as_dir" && as_dir=.
4487  for ac_exec_ext in '' $ac_executable_extensions; do
4488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491    break 2
4492  fi
4493done
4494done
4495
4496fi
4497fi
4498CXX=$ac_cv_prog_CXX
4499if test -n "$CXX"; then
4500  echo "$as_me:$LINENO: result: $CXX" >&5
4501echo "${ECHO_T}$CXX" >&6
4502else
4503  echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505fi
4506
4507    test -n "$CXX" && break
4508  done
4509fi
4510if test -z "$CXX"; then
4511  ac_ct_CXX=$CXX
4512  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4513do
4514  # Extract the first word of "$ac_prog", so it can be a program name with args.
4515set dummy $ac_prog; ac_word=$2
4516echo "$as_me:$LINENO: checking for $ac_word" >&5
4517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  if test -n "$ac_ct_CXX"; then
4522  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529  for ac_exec_ext in '' $ac_executable_extensions; do
4530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_ac_ct_CXX="$ac_prog"
4532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536done
4537
4538fi
4539fi
4540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4541if test -n "$ac_ct_CXX"; then
4542  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4543echo "${ECHO_T}$ac_ct_CXX" >&6
4544else
4545  echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547fi
4548
4549  test -n "$ac_ct_CXX" && break
4550done
4551test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4552
4553  CXX=$ac_ct_CXX
4554fi
4555
4556
4557# Provide some information about the compiler.
4558echo "$as_me:$LINENO:" \
4559     "checking for C++ compiler version" >&5
4560ac_compiler=`set X $ac_compile; echo $2`
4561{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4562  (eval $ac_compiler --version </dev/null >&5) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }
4566{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4567  (eval $ac_compiler -v </dev/null >&5) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }
4571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4572  (eval $ac_compiler -V </dev/null >&5) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }
4576
4577echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4578echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4579if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h.  */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h.  */
4588
4589int
4590main ()
4591{
4592#ifndef __GNUC__
4593       choke me
4594#endif
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext
4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602  (eval $ac_compile) 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } &&
4609	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611  (eval $ac_try) 2>&5
4612  ac_status=$?
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); }; } &&
4615	 { ac_try='test -s conftest.$ac_objext'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; }; then
4621  ac_compiler_gnu=yes
4622else
4623  echo "$as_me: failed program was:" >&5
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
4626ac_compiler_gnu=no
4627fi
4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4630
4631fi
4632echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4633echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4634GXX=`test $ac_compiler_gnu = yes && echo yes`
4635ac_test_CXXFLAGS=${CXXFLAGS+set}
4636ac_save_CXXFLAGS=$CXXFLAGS
4637CXXFLAGS="-g"
4638echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4639echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4640if test "${ac_cv_prog_cxx_g+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h.  */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h.  */
4649
4650int
4651main ()
4652{
4653
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658rm -f conftest.$ac_objext
4659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660  (eval $ac_compile) 2>conftest.er1
4661  ac_status=$?
4662  grep -v '^ *+' conftest.er1 >conftest.err
4663  rm -f conftest.er1
4664  cat conftest.err >&5
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } &&
4667	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; } &&
4673	 { ac_try='test -s conftest.$ac_objext'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; }; then
4679  ac_cv_prog_cxx_g=yes
4680else
4681  echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684ac_cv_prog_cxx_g=no
4685fi
4686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
4688echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4689echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4690if test "$ac_test_CXXFLAGS" = set; then
4691  CXXFLAGS=$ac_save_CXXFLAGS
4692elif test $ac_cv_prog_cxx_g = yes; then
4693  if test "$GXX" = yes; then
4694    CXXFLAGS="-g -O2"
4695  else
4696    CXXFLAGS="-g"
4697  fi
4698else
4699  if test "$GXX" = yes; then
4700    CXXFLAGS="-O2"
4701  else
4702    CXXFLAGS=
4703  fi
4704fi
4705for ac_declaration in \
4706   '' \
4707   'extern "C" void std::exit (int) throw (); using std::exit;' \
4708   'extern "C" void std::exit (int); using std::exit;' \
4709   'extern "C" void exit (int) throw ();' \
4710   'extern "C" void exit (int);' \
4711   'void exit (int);'
4712do
4713  cat >conftest.$ac_ext <<_ACEOF
4714/* confdefs.h.  */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h.  */
4719$ac_declaration
4720#include <stdlib.h>
4721int
4722main ()
4723{
4724exit (42);
4725  ;
4726  return 0;
4727}
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731  (eval $ac_compile) 2>conftest.er1
4732  ac_status=$?
4733  grep -v '^ *+' conftest.er1 >conftest.err
4734  rm -f conftest.er1
4735  cat conftest.err >&5
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); } &&
4738	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; } &&
4744	 { ac_try='test -s conftest.$ac_objext'
4745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746  (eval $ac_try) 2>&5
4747  ac_status=$?
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); }; }; then
4750  :
4751else
4752  echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755continue
4756fi
4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758  cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764$ac_declaration
4765int
4766main ()
4767{
4768exit (42);
4769  ;
4770  return 0;
4771}
4772_ACEOF
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775  (eval $ac_compile) 2>conftest.er1
4776  ac_status=$?
4777  grep -v '^ *+' conftest.er1 >conftest.err
4778  rm -f conftest.er1
4779  cat conftest.err >&5
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); } &&
4782	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; } &&
4788	 { ac_try='test -s conftest.$ac_objext'
4789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790  (eval $ac_try) 2>&5
4791  ac_status=$?
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); }; }; then
4794  break
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799fi
4800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801done
4802rm -f conftest*
4803if test -n "$ac_declaration"; then
4804  echo '#ifdef __cplusplus' >>confdefs.h
4805  echo $ac_declaration      >>confdefs.h
4806  echo '#endif'             >>confdefs.h
4807fi
4808
4809ac_ext=cc
4810ac_cpp='$CXXCPP $CPPFLAGS'
4811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4814
4815depcc="$CXX"  am_compiler_list=
4816
4817echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4818echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4819if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4823  # We make a subdir and do the tests there.  Otherwise we can end up
4824  # making bogus files that we don't know about and never remove.  For
4825  # instance it was reported that on HP-UX the gcc test will end up
4826  # making a dummy file named `D' -- because `-MD' means `put the output
4827  # in D'.
4828  mkdir conftest.dir
4829  # Copy depcomp to subdir because otherwise we won't find it if we're
4830  # using a relative directory.
4831  cp "$am_depcomp" conftest.dir
4832  cd conftest.dir
4833  # We will build objects and dependencies in a subdirectory because
4834  # it helps to detect inapplicable dependency modes.  For instance
4835  # both Tru64's cc and ICC support -MD to output dependencies as a
4836  # side effect of compilation, but ICC will put the dependencies in
4837  # the current directory while Tru64 will put them in the object
4838  # directory.
4839  mkdir sub
4840
4841  am_cv_CXX_dependencies_compiler_type=none
4842  if test "$am_compiler_list" = ""; then
4843     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4844  fi
4845  for depmode in $am_compiler_list; do
4846    # Setup a source with many dependencies, because some compilers
4847    # like to wrap large dependency lists on column 80 (with \), and
4848    # we should not choose a depcomp mode which is confused by this.
4849    #
4850    # We need to recreate these files for each test, as the compiler may
4851    # overwrite some of them when testing with obscure command lines.
4852    # This happens at least with the AIX C compiler.
4853    : > sub/conftest.c
4854    for i in 1 2 3 4 5 6; do
4855      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4856      : > sub/conftst$i.h
4857    done
4858    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4859
4860    case $depmode in
4861    nosideeffect)
4862      # after this tag, mechanisms are not by side-effect, so they'll
4863      # only be used when explicitly requested
4864      if test "x$enable_dependency_tracking" = xyes; then
4865	continue
4866      else
4867	break
4868      fi
4869      ;;
4870    none) break ;;
4871    esac
4872    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4873    # mode.  It turns out that the SunPro C++ compiler does not properly
4874    # handle `-M -o', and we need to detect this.
4875    if depmode=$depmode \
4876       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4877       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4878       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4879         >/dev/null 2>conftest.err &&
4880       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4881       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4882       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4883      # icc doesn't choke on unknown options, it will just issue warnings
4884      # (even with -Werror).  So we grep stderr for any message
4885      # that says an option was ignored.
4886      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4887        am_cv_CXX_dependencies_compiler_type=$depmode
4888        break
4889      fi
4890    fi
4891  done
4892
4893  cd ..
4894  rm -rf conftest.dir
4895else
4896  am_cv_CXX_dependencies_compiler_type=none
4897fi
4898
4899fi
4900echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4901echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4902CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4903
4904
4905
4906if
4907  test "x$enable_dependency_tracking" != xno \
4908  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4909  am__fastdepCXX_TRUE=
4910  am__fastdepCXX_FALSE='#'
4911else
4912  am__fastdepCXX_TRUE='#'
4913  am__fastdepCXX_FALSE=
4914fi
4915
4916
4917ac_ext=cc
4918ac_cpp='$CXXCPP $CPPFLAGS'
4919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4922echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4923echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4924if test -z "$CXXCPP"; then
4925  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4926  echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928      # Double quotes because CXXCPP needs to be expanded
4929    for CXXCPP in "$CXX -E" "/lib/cpp"
4930    do
4931      ac_preproc_ok=false
4932for ac_cxx_preproc_warn_flag in '' yes
4933do
4934  # Use a header file that comes with gcc, so configuring glibc
4935  # with a fresh cross-compiler works.
4936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937  # <limits.h> exists even on freestanding compilers.
4938  # On the NeXT, cc -E runs the code through the compiler's parser,
4939  # not just through cpp. "Syntax error" is here to catch this case.
4940  cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946#ifdef __STDC__
4947# include <limits.h>
4948#else
4949# include <assert.h>
4950#endif
4951		     Syntax error
4952_ACEOF
4953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4954  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4955  ac_status=$?
4956  grep -v '^ *+' conftest.er1 >conftest.err
4957  rm -f conftest.er1
4958  cat conftest.err >&5
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); } >/dev/null; then
4961  if test -s conftest.err; then
4962    ac_cpp_err=$ac_cxx_preproc_warn_flag
4963    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4964  else
4965    ac_cpp_err=
4966  fi
4967else
4968  ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
4971  :
4972else
4973  echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976  # Broken: fails on valid input.
4977continue
4978fi
4979rm -f conftest.err conftest.$ac_ext
4980
4981  # OK, works on sane cases.  Now check whether non-existent headers
4982  # can be detected and how.
4983  cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4993  ac_status=$?
4994  grep -v '^ *+' conftest.er1 >conftest.err
4995  rm -f conftest.er1
4996  cat conftest.err >&5
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); } >/dev/null; then
4999  if test -s conftest.err; then
5000    ac_cpp_err=$ac_cxx_preproc_warn_flag
5001    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5002  else
5003    ac_cpp_err=
5004  fi
5005else
5006  ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009  # Broken: success on invalid input.
5010continue
5011else
5012  echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015  # Passes both tests.
5016ac_preproc_ok=:
5017break
5018fi
5019rm -f conftest.err conftest.$ac_ext
5020
5021done
5022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023rm -f conftest.err conftest.$ac_ext
5024if $ac_preproc_ok; then
5025  break
5026fi
5027
5028    done
5029    ac_cv_prog_CXXCPP=$CXXCPP
5030
5031fi
5032  CXXCPP=$ac_cv_prog_CXXCPP
5033else
5034  ac_cv_prog_CXXCPP=$CXXCPP
5035fi
5036echo "$as_me:$LINENO: result: $CXXCPP" >&5
5037echo "${ECHO_T}$CXXCPP" >&6
5038ac_preproc_ok=false
5039for ac_cxx_preproc_warn_flag in '' yes
5040do
5041  # Use a header file that comes with gcc, so configuring glibc
5042  # with a fresh cross-compiler works.
5043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044  # <limits.h> exists even on freestanding compilers.
5045  # On the NeXT, cc -E runs the code through the compiler's parser,
5046  # not just through cpp. "Syntax error" is here to catch this case.
5047  cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h.  */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h.  */
5053#ifdef __STDC__
5054# include <limits.h>
5055#else
5056# include <assert.h>
5057#endif
5058		     Syntax error
5059_ACEOF
5060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062  ac_status=$?
5063  grep -v '^ *+' conftest.er1 >conftest.err
5064  rm -f conftest.er1
5065  cat conftest.err >&5
5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); } >/dev/null; then
5068  if test -s conftest.err; then
5069    ac_cpp_err=$ac_cxx_preproc_warn_flag
5070    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071  else
5072    ac_cpp_err=
5073  fi
5074else
5075  ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078  :
5079else
5080  echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083  # Broken: fails on valid input.
5084continue
5085fi
5086rm -f conftest.err conftest.$ac_ext
5087
5088  # OK, works on sane cases.  Now check whether non-existent headers
5089  # can be detected and how.
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#include <ac_nonexistent.h>
5097_ACEOF
5098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100  ac_status=$?
5101  grep -v '^ *+' conftest.er1 >conftest.err
5102  rm -f conftest.er1
5103  cat conftest.err >&5
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } >/dev/null; then
5106  if test -s conftest.err; then
5107    ac_cpp_err=$ac_cxx_preproc_warn_flag
5108    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109  else
5110    ac_cpp_err=
5111  fi
5112else
5113  ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116  # Broken: success on invalid input.
5117continue
5118else
5119  echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122  # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then
5132  :
5133else
5134  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5135See \`config.log' for more details." >&5
5136echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&2;}
5138   { (exit 1); exit 1; }; }
5139fi
5140
5141ac_ext=cc
5142ac_cpp='$CXXCPP $CPPFLAGS'
5143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5146
5147
5148ac_ext=f
5149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5152if test -n "$ac_tool_prefix"; then
5153  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5154  do
5155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_F77+set}" = set; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162  if test -n "$F77"; then
5163  ac_cv_prog_F77="$F77" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170  for ac_exec_ext in '' $ac_executable_extensions; do
5171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174    break 2
5175  fi
5176done
5177done
5178
5179fi
5180fi
5181F77=$ac_cv_prog_F77
5182if test -n "$F77"; then
5183  echo "$as_me:$LINENO: result: $F77" >&5
5184echo "${ECHO_T}$F77" >&6
5185else
5186  echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188fi
5189
5190    test -n "$F77" && break
5191  done
5192fi
5193if test -z "$F77"; then
5194  ac_ct_F77=$F77
5195  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5196do
5197  # Extract the first word of "$ac_prog", so it can be a program name with args.
5198set dummy $ac_prog; ac_word=$2
5199echo "$as_me:$LINENO: checking for $ac_word" >&5
5200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  if test -n "$ac_ct_F77"; then
5205  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5206else
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212  for ac_exec_ext in '' $ac_executable_extensions; do
5213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214    ac_cv_prog_ac_ct_F77="$ac_prog"
5215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216    break 2
5217  fi
5218done
5219done
5220
5221fi
5222fi
5223ac_ct_F77=$ac_cv_prog_ac_ct_F77
5224if test -n "$ac_ct_F77"; then
5225  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5226echo "${ECHO_T}$ac_ct_F77" >&6
5227else
5228  echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232  test -n "$ac_ct_F77" && break
5233done
5234
5235  F77=$ac_ct_F77
5236fi
5237
5238
5239# Provide some information about the compiler.
5240echo "$as_me:5240:" \
5241     "checking for Fortran 77 compiler version" >&5
5242ac_compiler=`set X $ac_compile; echo $2`
5243{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5244  (eval $ac_compiler --version </dev/null >&5) 2>&5
5245  ac_status=$?
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); }
5248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5249  (eval $ac_compiler -v </dev/null >&5) 2>&5
5250  ac_status=$?
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); }
5253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5254  (eval $ac_compiler -V </dev/null >&5) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }
5258rm -f a.out
5259
5260# If we don't use `.F' as extension, the preprocessor is not run on the
5261# input file.  (Note that this only needs to work for GNU compilers.)
5262ac_save_ext=$ac_ext
5263ac_ext=F
5264echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5265echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5266if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5267  echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269  cat >conftest.$ac_ext <<_ACEOF
5270      program main
5271#ifndef __GNUC__
5272       choke me
5273#endif
5274
5275      end
5276_ACEOF
5277rm -f conftest.$ac_objext
5278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279  (eval $ac_compile) 2>conftest.er1
5280  ac_status=$?
5281  grep -v '^ *+' conftest.er1 >conftest.err
5282  rm -f conftest.er1
5283  cat conftest.err >&5
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); } &&
5286	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
5292	 { ac_try='test -s conftest.$ac_objext'
5293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294  (eval $ac_try) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }; }; then
5298  ac_compiler_gnu=yes
5299else
5300  echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303ac_compiler_gnu=no
5304fi
5305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5306ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5307
5308fi
5309echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5310echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5311ac_ext=$ac_save_ext
5312ac_test_FFLAGS=${FFLAGS+set}
5313ac_save_FFLAGS=$FFLAGS
5314FFLAGS=
5315echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5316echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5317if test "${ac_cv_prog_f77_g+set}" = set; then
5318  echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320  FFLAGS=-g
5321cat >conftest.$ac_ext <<_ACEOF
5322      program main
5323
5324      end
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328  (eval $ac_compile) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337  (eval $ac_try) 2>&5
5338  ac_status=$?
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); }; } &&
5341	 { ac_try='test -s conftest.$ac_objext'
5342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343  (eval $ac_try) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }; }; then
5347  ac_cv_prog_f77_g=yes
5348else
5349  echo "$as_me: failed program was:" >&5
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
5352ac_cv_prog_f77_g=no
5353fi
5354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355
5356fi
5357echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5358echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5359if test "$ac_test_FFLAGS" = set; then
5360  FFLAGS=$ac_save_FFLAGS
5361elif test $ac_cv_prog_f77_g = yes; then
5362  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5363    FFLAGS="-g -O2"
5364  else
5365    FFLAGS="-g"
5366  fi
5367else
5368  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5369    FFLAGS="-O2"
5370  else
5371    FFLAGS=
5372  fi
5373fi
5374
5375G77=`test $ac_compiler_gnu = yes && echo yes`
5376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
5382
5383
5384# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5385
5386# find the maximum length of command line arguments
5387echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5388echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5389if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392    i=0
5393  testring="ABCD"
5394
5395  case $build_os in
5396  msdosdjgpp*)
5397    # On DJGPP, this test can blow up pretty badly due to problems in libc
5398    # (any single argument exceeding 2000 bytes causes a buffer overrun
5399    # during glob expansion).  Even if it were fixed, the result of this
5400    # check would be larger than it should be.
5401    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5402    ;;
5403
5404  gnu*)
5405    # Under GNU Hurd, this test is not required because there is
5406    # no limit to the length of command line arguments.
5407    # Libtool will interpret -1 as no limit whatsoever
5408    lt_cv_sys_max_cmd_len=-1;
5409    ;;
5410
5411  cygwin* | mingw*)
5412    # On Win9x/ME, this test blows up -- it succeeds, but takes
5413    # about 5 minutes as the teststring grows exponentially.
5414    # Worse, since 9x/ME are not pre-emptively multitasking,
5415    # you end up with a "frozen" computer, even though with patience
5416    # the test eventually succeeds (with a max line length of 256k).
5417    # Instead, let's just punt: use the minimum linelength reported by
5418    # all of the supported platforms: 8192 (on NT/2K/XP).
5419    lt_cv_sys_max_cmd_len=8192;
5420    ;;
5421
5422  amigaos*)
5423    # On AmigaOS with pdksh, this test takes hours, literally.
5424    # So we just punt and use a minimum line length of 8192.
5425    lt_cv_sys_max_cmd_len=8192;
5426    ;;
5427
5428 *)
5429    # If test is not a shell built-in, we'll probably end up computing a
5430    # maximum length that is only half of the actual maximum length, but
5431    # we can't tell.
5432    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5433	       = "XX$testring") >/dev/null 2>&1 &&
5434	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5435	    lt_cv_sys_max_cmd_len=$new_result &&
5436	    test $i != 17 # 1/2 MB should be enough
5437    do
5438      i=`expr $i + 1`
5439      testring=$testring$testring
5440    done
5441    testring=
5442    # Add a significant safety factor because C++ compilers can tack on massive
5443    # amounts of additional arguments before passing them to the linker.
5444    # It appears as though 1/2 is a usable value.
5445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5446    ;;
5447  esac
5448
5449fi
5450
5451if test -n $lt_cv_sys_max_cmd_len ; then
5452  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5453echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5454else
5455  echo "$as_me:$LINENO: result: none" >&5
5456echo "${ECHO_T}none" >&6
5457fi
5458
5459
5460
5461
5462# Check for command to grab the raw symbol name followed by C symbol from nm.
5463echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5464echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5465if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5466  echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468
5469# These are sane defaults that work on at least a few old systems.
5470# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5471
5472# Character class describing NM global symbol codes.
5473symcode='[BCDEGRST]'
5474
5475# Regexp to match symbols that can be accessed directly from C.
5476sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5477
5478# Transform the above into a raw symbol and a C symbol.
5479symxfrm='\1 \2\3 \3'
5480
5481# Transform an extracted symbol line into a proper C declaration
5482lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5483
5484# Transform an extracted symbol line into symbol name and symbol address
5485lt_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'"
5486
5487# Define system-specific variables.
5488case $host_os in
5489aix*)
5490  symcode='[BCDT]'
5491  ;;
5492cygwin* | mingw* | pw32*)
5493  symcode='[ABCDGISTW]'
5494  ;;
5495hpux*) # Its linker distinguishes data from code symbols
5496  if test "$host_cpu" = ia64; then
5497    symcode='[ABCDEGRST]'
5498  fi
5499  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5500  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'"
5501  ;;
5502irix* | nonstopux*)
5503  symcode='[BCDEGRST]'
5504  ;;
5505osf*)
5506  symcode='[BCDEGQRST]'
5507  ;;
5508solaris* | sysv5*)
5509  symcode='[BDRT]'
5510  ;;
5511sysv4)
5512  symcode='[DFNSTU]'
5513  ;;
5514esac
5515
5516# Handle CRLF in mingw tool chain
5517opt_cr=
5518case $build_os in
5519mingw*)
5520  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5521  ;;
5522esac
5523
5524# If we're using GNU nm, then use its standard symbol codes.
5525case `$NM -V 2>&1` in
5526*GNU* | *'with BFD'*)
5527  symcode='[ABCDGIRSTW]' ;;
5528esac
5529
5530# Try without a prefix undercore, then with it.
5531for ac_symprfx in "" "_"; do
5532
5533  # Write the raw and C identifiers.
5534  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5535
5536  # Check to see that the pipe works correctly.
5537  pipe_works=no
5538
5539  rm -f conftest*
5540  cat > conftest.$ac_ext <<EOF
5541#ifdef __cplusplus
5542extern "C" {
5543#endif
5544char nm_test_var;
5545void nm_test_func(){}
5546#ifdef __cplusplus
5547}
5548#endif
5549int main(){nm_test_var='a';nm_test_func();return(0);}
5550EOF
5551
5552  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553  (eval $ac_compile) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; then
5557    # Now try to grab the symbols.
5558    nlist=conftest.nm
5559    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5560  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5561  ac_status=$?
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); } && test -s "$nlist"; then
5564      # Try sorting and uniquifying the output.
5565      if sort "$nlist" | uniq > "$nlist"T; then
5566	mv -f "$nlist"T "$nlist"
5567      else
5568	rm -f "$nlist"T
5569      fi
5570
5571      # Make sure that we snagged all the symbols we need.
5572      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5573	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5574	  cat <<EOF > conftest.$ac_ext
5575#ifdef __cplusplus
5576extern "C" {
5577#endif
5578
5579EOF
5580	  # Now generate the symbol file.
5581	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5582
5583	  cat <<EOF >> conftest.$ac_ext
5584#if defined (__STDC__) && __STDC__
5585# define lt_ptr_t void *
5586#else
5587# define lt_ptr_t char *
5588# define const
5589#endif
5590
5591/* The mapping between symbol names and symbols. */
5592const struct {
5593  const char *name;
5594  lt_ptr_t address;
5595}
5596lt_preloaded_symbols[] =
5597{
5598EOF
5599	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5600	  cat <<\EOF >> conftest.$ac_ext
5601  {0, (lt_ptr_t) 0}
5602};
5603
5604#ifdef __cplusplus
5605}
5606#endif
5607EOF
5608	  # Now try linking the two files.
5609	  mv conftest.$ac_objext conftstm.$ac_objext
5610	  lt_save_LIBS="$LIBS"
5611	  lt_save_CFLAGS="$CFLAGS"
5612	  LIBS="conftstm.$ac_objext"
5613	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5614	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615  (eval $ac_link) 2>&5
5616  ac_status=$?
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5619	    pipe_works=yes
5620	  fi
5621	  LIBS="$lt_save_LIBS"
5622	  CFLAGS="$lt_save_CFLAGS"
5623	else
5624	  echo "cannot find nm_test_func in $nlist" >&5
5625	fi
5626      else
5627	echo "cannot find nm_test_var in $nlist" >&5
5628      fi
5629    else
5630      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5631    fi
5632  else
5633    echo "$progname: failed program was:" >&5
5634    cat conftest.$ac_ext >&5
5635  fi
5636  rm -f conftest* conftst*
5637
5638  # Do not use the global_symbol_pipe unless it works.
5639  if test "$pipe_works" = yes; then
5640    break
5641  else
5642    lt_cv_sys_global_symbol_pipe=
5643  fi
5644done
5645
5646fi
5647
5648if test -z "$lt_cv_sys_global_symbol_pipe"; then
5649  lt_cv_sys_global_symbol_to_cdecl=
5650fi
5651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5652  echo "$as_me:$LINENO: result: failed" >&5
5653echo "${ECHO_T}failed" >&6
5654else
5655  echo "$as_me:$LINENO: result: ok" >&5
5656echo "${ECHO_T}ok" >&6
5657fi
5658
5659echo "$as_me:$LINENO: checking for objdir" >&5
5660echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5661if test "${lt_cv_objdir+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  rm -f .libs 2>/dev/null
5665mkdir .libs 2>/dev/null
5666if test -d .libs; then
5667  lt_cv_objdir=.libs
5668else
5669  # MS-DOS does not allow filenames that begin with a dot.
5670  lt_cv_objdir=_libs
5671fi
5672rmdir .libs 2>/dev/null
5673fi
5674echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5675echo "${ECHO_T}$lt_cv_objdir" >&6
5676objdir=$lt_cv_objdir
5677
5678
5679
5680
5681
5682case $host_os in
5683aix3*)
5684  # AIX sometimes has problems with the GCC collect2 program.  For some
5685  # reason, if we set the COLLECT_NAMES environment variable, the problems
5686  # vanish in a puff of smoke.
5687  if test "X${COLLECT_NAMES+set}" != Xset; then
5688    COLLECT_NAMES=
5689    export COLLECT_NAMES
5690  fi
5691  ;;
5692esac
5693
5694# Sed substitution that helps us do robust quoting.  It backslashifies
5695# metacharacters that are still active within double-quoted strings.
5696Xsed='sed -e s/^X//'
5697sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5698
5699# Same as above, but do not quote variable references.
5700double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5701
5702# Sed substitution to delay expansion of an escaped shell variable in a
5703# double_quote_subst'ed string.
5704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5705
5706# Sed substitution to avoid accidental globbing in evaled expressions
5707no_glob_subst='s/\*/\\\*/g'
5708
5709# Constants:
5710rm="rm -f"
5711
5712# Global variables:
5713default_ofile=libtool
5714can_build_shared=yes
5715
5716# All known linkers require a `.a' archive for static linking (except M$VC,
5717# which needs '.lib').
5718libext=a
5719ltmain="$ac_aux_dir/ltmain.sh"
5720ofile="$default_ofile"
5721with_gnu_ld="$lt_cv_prog_gnu_ld"
5722
5723if test -n "$ac_tool_prefix"; then
5724  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}ar; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_AR+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  if test -n "$AR"; then
5732  ac_cv_prog_AR="$AR" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  test -z "$as_dir" && as_dir=.
5739  for ac_exec_ext in '' $ac_executable_extensions; do
5740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_AR="${ac_tool_prefix}ar"
5742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746done
5747
5748fi
5749fi
5750AR=$ac_cv_prog_AR
5751if test -n "$AR"; then
5752  echo "$as_me:$LINENO: result: $AR" >&5
5753echo "${ECHO_T}$AR" >&6
5754else
5755  echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759fi
5760if test -z "$ac_cv_prog_AR"; then
5761  ac_ct_AR=$AR
5762  # Extract the first word of "ar", so it can be a program name with args.
5763set dummy ar; ac_word=$2
5764echo "$as_me:$LINENO: checking for $ac_word" >&5
5765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  if test -n "$ac_ct_AR"; then
5770  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775  IFS=$as_save_IFS
5776  test -z "$as_dir" && as_dir=.
5777  for ac_exec_ext in '' $ac_executable_extensions; do
5778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779    ac_cv_prog_ac_ct_AR="ar"
5780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781    break 2
5782  fi
5783done
5784done
5785
5786  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5787fi
5788fi
5789ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790if test -n "$ac_ct_AR"; then
5791  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5792echo "${ECHO_T}$ac_ct_AR" >&6
5793else
5794  echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798  AR=$ac_ct_AR
5799else
5800  AR="$ac_cv_prog_AR"
5801fi
5802
5803if test -n "$ac_tool_prefix"; then
5804  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808if test "${ac_cv_prog_RANLIB+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  if test -n "$RANLIB"; then
5812  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819  for ac_exec_ext in '' $ac_executable_extensions; do
5820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826done
5827
5828fi
5829fi
5830RANLIB=$ac_cv_prog_RANLIB
5831if test -n "$RANLIB"; then
5832  echo "$as_me:$LINENO: result: $RANLIB" >&5
5833echo "${ECHO_T}$RANLIB" >&6
5834else
5835  echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837fi
5838
5839fi
5840if test -z "$ac_cv_prog_RANLIB"; then
5841  ac_ct_RANLIB=$RANLIB
5842  # Extract the first word of "ranlib", so it can be a program name with args.
5843set dummy ranlib; ac_word=$2
5844echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  if test -n "$ac_ct_RANLIB"; then
5850  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857  for ac_exec_ext in '' $ac_executable_extensions; do
5858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_ac_ct_RANLIB="ranlib"
5860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864done
5865
5866  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5867fi
5868fi
5869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5870if test -n "$ac_ct_RANLIB"; then
5871  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5872echo "${ECHO_T}$ac_ct_RANLIB" >&6
5873else
5874  echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6
5876fi
5877
5878  RANLIB=$ac_ct_RANLIB
5879else
5880  RANLIB="$ac_cv_prog_RANLIB"
5881fi
5882
5883if test -n "$ac_tool_prefix"; then
5884  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}strip; ac_word=$2
5886echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888if test "${ac_cv_prog_STRIP+set}" = set; then
5889  echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891  if test -n "$STRIP"; then
5892  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899  for ac_exec_ext in '' $ac_executable_extensions; do
5900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906done
5907
5908fi
5909fi
5910STRIP=$ac_cv_prog_STRIP
5911if test -n "$STRIP"; then
5912  echo "$as_me:$LINENO: result: $STRIP" >&5
5913echo "${ECHO_T}$STRIP" >&6
5914else
5915  echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
5917fi
5918
5919fi
5920if test -z "$ac_cv_prog_STRIP"; then
5921  ac_ct_STRIP=$STRIP
5922  # Extract the first word of "strip", so it can be a program name with args.
5923set dummy strip; ac_word=$2
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  if test -n "$ac_ct_STRIP"; then
5930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for ac_exec_ext in '' $ac_executable_extensions; do
5938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_ac_ct_STRIP="strip"
5940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944done
5945
5946  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5947fi
5948fi
5949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5950if test -n "$ac_ct_STRIP"; then
5951  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5952echo "${ECHO_T}$ac_ct_STRIP" >&6
5953else
5954  echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956fi
5957
5958  STRIP=$ac_ct_STRIP
5959else
5960  STRIP="$ac_cv_prog_STRIP"
5961fi
5962
5963
5964old_CC="$CC"
5965old_CFLAGS="$CFLAGS"
5966
5967# Set sane defaults for various variables
5968test -z "$AR" && AR=ar
5969test -z "$AR_FLAGS" && AR_FLAGS=cru
5970test -z "$AS" && AS=as
5971test -z "$CC" && CC=cc
5972test -z "$LTCC" && LTCC=$CC
5973test -z "$DLLTOOL" && DLLTOOL=dlltool
5974test -z "$LD" && LD=ld
5975test -z "$LN_S" && LN_S="ln -s"
5976test -z "$MAGIC_CMD" && MAGIC_CMD=file
5977test -z "$NM" && NM=nm
5978test -z "$SED" && SED=sed
5979test -z "$OBJDUMP" && OBJDUMP=objdump
5980test -z "$RANLIB" && RANLIB=:
5981test -z "$STRIP" && STRIP=:
5982test -z "$ac_objext" && ac_objext=o
5983
5984# Determine commands to create old-style static archives.
5985old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5986old_postinstall_cmds='chmod 644 $oldlib'
5987old_postuninstall_cmds=
5988
5989if test -n "$RANLIB"; then
5990  case $host_os in
5991  openbsd*)
5992    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5993    ;;
5994  *)
5995    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5996    ;;
5997  esac
5998  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5999fi
6000
6001# Only perform the check for file, if the check method requires it
6002case $deplibs_check_method in
6003file_magic*)
6004  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6005    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6006echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6007if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  case $MAGIC_CMD in
6011[\\/*] |  ?:[\\/]*)
6012  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6013  ;;
6014*)
6015  lt_save_MAGIC_CMD="$MAGIC_CMD"
6016  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6017  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6018  for ac_dir in $ac_dummy; do
6019    IFS="$lt_save_ifs"
6020    test -z "$ac_dir" && ac_dir=.
6021    if test -f $ac_dir/${ac_tool_prefix}file; then
6022      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6023      if test -n "$file_magic_test_file"; then
6024	case $deplibs_check_method in
6025	"file_magic "*)
6026	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6027	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6028	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6029	    $EGREP "$file_magic_regex" > /dev/null; then
6030	    :
6031	  else
6032	    cat <<EOF 1>&2
6033
6034*** Warning: the command libtool uses to detect shared libraries,
6035*** $file_magic_cmd, produces output that libtool cannot recognize.
6036*** The result is that libtool may fail to recognize shared libraries
6037*** as such.  This will affect the creation of libtool libraries that
6038*** depend on shared libraries, but programs linked with such libtool
6039*** libraries will work regardless of this problem.  Nevertheless, you
6040*** may want to report the problem to your system manager and/or to
6041*** bug-libtool@gnu.org
6042
6043EOF
6044	  fi ;;
6045	esac
6046      fi
6047      break
6048    fi
6049  done
6050  IFS="$lt_save_ifs"
6051  MAGIC_CMD="$lt_save_MAGIC_CMD"
6052  ;;
6053esac
6054fi
6055
6056MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057if test -n "$MAGIC_CMD"; then
6058  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6059echo "${ECHO_T}$MAGIC_CMD" >&6
6060else
6061  echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063fi
6064
6065if test -z "$lt_cv_path_MAGIC_CMD"; then
6066  if test -n "$ac_tool_prefix"; then
6067    echo "$as_me:$LINENO: checking for file" >&5
6068echo $ECHO_N "checking for file... $ECHO_C" >&6
6069if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6070  echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072  case $MAGIC_CMD in
6073[\\/*] |  ?:[\\/]*)
6074  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6075  ;;
6076*)
6077  lt_save_MAGIC_CMD="$MAGIC_CMD"
6078  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6080  for ac_dir in $ac_dummy; do
6081    IFS="$lt_save_ifs"
6082    test -z "$ac_dir" && ac_dir=.
6083    if test -f $ac_dir/file; then
6084      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6085      if test -n "$file_magic_test_file"; then
6086	case $deplibs_check_method in
6087	"file_magic "*)
6088	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6089	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6091	    $EGREP "$file_magic_regex" > /dev/null; then
6092	    :
6093	  else
6094	    cat <<EOF 1>&2
6095
6096*** Warning: the command libtool uses to detect shared libraries,
6097*** $file_magic_cmd, produces output that libtool cannot recognize.
6098*** The result is that libtool may fail to recognize shared libraries
6099*** as such.  This will affect the creation of libtool libraries that
6100*** depend on shared libraries, but programs linked with such libtool
6101*** libraries will work regardless of this problem.  Nevertheless, you
6102*** may want to report the problem to your system manager and/or to
6103*** bug-libtool@gnu.org
6104
6105EOF
6106	  fi ;;
6107	esac
6108      fi
6109      break
6110    fi
6111  done
6112  IFS="$lt_save_ifs"
6113  MAGIC_CMD="$lt_save_MAGIC_CMD"
6114  ;;
6115esac
6116fi
6117
6118MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119if test -n "$MAGIC_CMD"; then
6120  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6121echo "${ECHO_T}$MAGIC_CMD" >&6
6122else
6123  echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125fi
6126
6127  else
6128    MAGIC_CMD=:
6129  fi
6130fi
6131
6132  fi
6133  ;;
6134esac
6135
6136enable_dlopen=no
6137enable_win32_dll=no
6138
6139# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6140if test "${enable_libtool_lock+set}" = set; then
6141  enableval="$enable_libtool_lock"
6142
6143fi;
6144test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6145
6146
6147# Check whether --with-pic or --without-pic was given.
6148if test "${with_pic+set}" = set; then
6149  withval="$with_pic"
6150  pic_mode="$withval"
6151else
6152  pic_mode=default
6153fi;
6154test -z "$pic_mode" && pic_mode=default
6155
6156# Use C for the default configuration in the libtool script
6157tagname=
6158lt_save_CC="$CC"
6159ac_ext=c
6160ac_cpp='$CPP $CPPFLAGS'
6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166# Source file extension for C test sources.
6167ac_ext=c
6168
6169# Object file extension for compiled C test sources.
6170objext=o
6171objext=$objext
6172
6173# Code to be used in simple compile tests
6174lt_simple_compile_test_code="int some_variable = 0;\n"
6175
6176# Code to be used in simple link tests
6177lt_simple_link_test_code='int main(){return(0);}\n'
6178
6179
6180# If no C compiler was specified, use CC.
6181LTCC=${LTCC-"$CC"}
6182
6183# Allow CC to be a program name with arguments.
6184compiler=$CC
6185
6186
6187#
6188# Check for any special shared library compilation flags.
6189#
6190lt_prog_cc_shlib=
6191if test "$GCC" = no; then
6192  case $host_os in
6193  sco3.2v5*)
6194    lt_prog_cc_shlib='-belf'
6195    ;;
6196  esac
6197fi
6198if test -n "$lt_prog_cc_shlib"; then
6199  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6200echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6201  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6202  else
6203    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6204echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6205    lt_cv_prog_cc_can_build_shared=no
6206  fi
6207fi
6208
6209
6210#
6211# Check to make sure the static flag actually works.
6212#
6213echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6214echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6215if test "${lt_prog_compiler_static_works+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  lt_prog_compiler_static_works=no
6219   save_LDFLAGS="$LDFLAGS"
6220   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6221   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6222   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6223     # The compiler can only warn and ignore the option if not recognized
6224     # So say no if there are warnings
6225     if test -s conftest.err; then
6226       # Append any errors to the config.log.
6227       cat conftest.err 1>&5
6228     else
6229       lt_prog_compiler_static_works=yes
6230     fi
6231   fi
6232   $rm conftest*
6233   LDFLAGS="$save_LDFLAGS"
6234
6235fi
6236echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6237echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6238
6239if test x"$lt_prog_compiler_static_works" = xyes; then
6240    :
6241else
6242    lt_prog_compiler_static=
6243fi
6244
6245
6246
6247
6248lt_prog_compiler_no_builtin_flag=
6249
6250if test "$GCC" = yes; then
6251  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6252
6253
6254echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6255echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6256if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259  lt_cv_prog_compiler_rtti_exceptions=no
6260  ac_outfile=conftest.$ac_objext
6261   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6262   lt_compiler_flag="-fno-rtti -fno-exceptions"
6263   # Insert the option either (1) after the last *FLAGS variable, or
6264   # (2) before a word containing "conftest.", or (3) at the end.
6265   # Note that $ac_compile itself does not contain backslashes and begins
6266   # with a dollar sign (not a hyphen), so the echo should work correctly.
6267   # The option is referenced via a variable to avoid confusing sed.
6268   lt_compile=`echo "$ac_compile" | $SED \
6269   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6270   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6271   -e 's:$: $lt_compiler_flag:'`
6272   (eval echo "\"\$as_me:6272: $lt_compile\"" >&5)
6273   (eval "$lt_compile" 2>conftest.err)
6274   ac_status=$?
6275   cat conftest.err >&5
6276   echo "$as_me:6276: \$? = $ac_status" >&5
6277   if (exit $ac_status) && test -s "$ac_outfile"; then
6278     # The compiler can only warn and ignore the option if not recognized
6279     # So say no if there are warnings
6280     if test ! -s conftest.err; then
6281       lt_cv_prog_compiler_rtti_exceptions=yes
6282     fi
6283   fi
6284   $rm conftest*
6285
6286fi
6287echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6288echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6289
6290if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6291    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6292else
6293    :
6294fi
6295
6296fi
6297
6298lt_prog_compiler_wl=
6299lt_prog_compiler_pic=
6300lt_prog_compiler_static=
6301
6302echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6303echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6304
6305  if test "$GCC" = yes; then
6306    lt_prog_compiler_wl='-Wl,'
6307    lt_prog_compiler_static='-static'
6308
6309    case $host_os in
6310      aix*)
6311      # All AIX code is PIC.
6312      if test "$host_cpu" = ia64; then
6313	# AIX 5 now supports IA64 processor
6314	lt_prog_compiler_static='-Bstatic'
6315      fi
6316      ;;
6317
6318    amigaos*)
6319      # FIXME: we need at least 68020 code to build shared libraries, but
6320      # adding the `-m68020' flag to GCC prevents building anything better,
6321      # like `-m68040'.
6322      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6323      ;;
6324
6325    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6326      # PIC is the default for these OSes.
6327      ;;
6328
6329    mingw* | pw32* | os2*)
6330      # This hack is so that the source file can tell whether it is being
6331      # built for inclusion in a dll (and should export symbols for example).
6332      lt_prog_compiler_pic='-DDLL_EXPORT'
6333      ;;
6334
6335    darwin* | rhapsody*)
6336      # PIC is the default on this platform
6337      # Common symbols not allowed in MH_DYLIB files
6338      lt_prog_compiler_pic='-fno-common'
6339      ;;
6340
6341    msdosdjgpp*)
6342      # Just because we use GCC doesn't mean we suddenly get shared libraries
6343      # on systems that don't support them.
6344      lt_prog_compiler_can_build_shared=no
6345      enable_shared=no
6346      ;;
6347
6348    sysv4*MP*)
6349      if test -d /usr/nec; then
6350	lt_prog_compiler_pic=-Kconform_pic
6351      fi
6352      ;;
6353
6354    hpux*)
6355      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6356      # not for PA HP-UX.
6357      case "$host_cpu" in
6358      hppa*64*|ia64*)
6359	# +Z the default
6360	;;
6361      *)
6362	lt_prog_compiler_pic='-fPIC'
6363	;;
6364      esac
6365      ;;
6366
6367    *)
6368      lt_prog_compiler_pic='-fPIC'
6369      ;;
6370    esac
6371  else
6372    # PORTME Check for flag to pass linker flags through the system compiler.
6373    case $host_os in
6374    aix*)
6375      lt_prog_compiler_wl='-Wl,'
6376      if test "$host_cpu" = ia64; then
6377	# AIX 5 now supports IA64 processor
6378	lt_prog_compiler_static='-Bstatic'
6379      else
6380	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6381      fi
6382      ;;
6383
6384    mingw* | pw32* | os2*)
6385      # This hack is so that the source file can tell whether it is being
6386      # built for inclusion in a dll (and should export symbols for example).
6387      lt_prog_compiler_pic='-DDLL_EXPORT'
6388      ;;
6389
6390    hpux9* | hpux10* | hpux11*)
6391      lt_prog_compiler_wl='-Wl,'
6392      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6393      # not for PA HP-UX.
6394      case "$host_cpu" in
6395      hppa*64*|ia64*)
6396	# +Z the default
6397	;;
6398      *)
6399	lt_prog_compiler_pic='+Z'
6400	;;
6401      esac
6402      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6403      lt_prog_compiler_static='${wl}-a ${wl}archive'
6404      ;;
6405
6406    irix5* | irix6* | nonstopux*)
6407      lt_prog_compiler_wl='-Wl,'
6408      # PIC (with -KPIC) is the default.
6409      lt_prog_compiler_static='-non_shared'
6410      ;;
6411
6412    newsos6)
6413      lt_prog_compiler_pic='-KPIC'
6414      lt_prog_compiler_static='-Bstatic'
6415      ;;
6416
6417    linux*)
6418      case $CC in
6419      icc* | ecc*)
6420	lt_prog_compiler_wl='-Wl,'
6421	lt_prog_compiler_pic='-KPIC'
6422	lt_prog_compiler_static='-static'
6423        ;;
6424      ccc*)
6425        lt_prog_compiler_wl='-Wl,'
6426        # All Alpha code is PIC.
6427        lt_prog_compiler_static='-non_shared'
6428        ;;
6429      esac
6430      ;;
6431
6432    osf3* | osf4* | osf5*)
6433      lt_prog_compiler_wl='-Wl,'
6434      # All OSF/1 code is PIC.
6435      lt_prog_compiler_static='-non_shared'
6436      ;;
6437
6438    sco3.2v5*)
6439      lt_prog_compiler_pic='-Kpic'
6440      lt_prog_compiler_static='-dn'
6441      ;;
6442
6443    solaris*)
6444      lt_prog_compiler_wl='-Wl,'
6445      lt_prog_compiler_pic='-KPIC'
6446      lt_prog_compiler_static='-Bstatic'
6447      ;;
6448
6449    sunos4*)
6450      lt_prog_compiler_wl='-Qoption ld '
6451      lt_prog_compiler_pic='-PIC'
6452      lt_prog_compiler_static='-Bstatic'
6453      ;;
6454
6455    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6456      lt_prog_compiler_wl='-Wl,'
6457      lt_prog_compiler_pic='-KPIC'
6458      lt_prog_compiler_static='-Bstatic'
6459      ;;
6460
6461    sysv4*MP*)
6462      if test -d /usr/nec ;then
6463	lt_prog_compiler_pic='-Kconform_pic'
6464	lt_prog_compiler_static='-Bstatic'
6465      fi
6466      ;;
6467
6468    uts4*)
6469      lt_prog_compiler_pic='-pic'
6470      lt_prog_compiler_static='-Bstatic'
6471      ;;
6472
6473    *)
6474      lt_prog_compiler_can_build_shared=no
6475      ;;
6476    esac
6477  fi
6478
6479echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6480echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6481
6482#
6483# Check to make sure the PIC flag actually works.
6484#
6485if test -n "$lt_prog_compiler_pic"; then
6486
6487echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6488echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6489if test "${lt_prog_compiler_pic_works+set}" = set; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492  lt_prog_compiler_pic_works=no
6493  ac_outfile=conftest.$ac_objext
6494   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6495   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6496   # Insert the option either (1) after the last *FLAGS variable, or
6497   # (2) before a word containing "conftest.", or (3) at the end.
6498   # Note that $ac_compile itself does not contain backslashes and begins
6499   # with a dollar sign (not a hyphen), so the echo should work correctly.
6500   # The option is referenced via a variable to avoid confusing sed.
6501   lt_compile=`echo "$ac_compile" | $SED \
6502   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6503   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6504   -e 's:$: $lt_compiler_flag:'`
6505   (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
6506   (eval "$lt_compile" 2>conftest.err)
6507   ac_status=$?
6508   cat conftest.err >&5
6509   echo "$as_me:6509: \$? = $ac_status" >&5
6510   if (exit $ac_status) && test -s "$ac_outfile"; then
6511     # The compiler can only warn and ignore the option if not recognized
6512     # So say no if there are warnings
6513     if test ! -s conftest.err; then
6514       lt_prog_compiler_pic_works=yes
6515     fi
6516   fi
6517   $rm conftest*
6518
6519fi
6520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6521echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6522
6523if test x"$lt_prog_compiler_pic_works" = xyes; then
6524    case $lt_prog_compiler_pic in
6525     "" | " "*) ;;
6526     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6527     esac
6528else
6529    lt_prog_compiler_pic=
6530     lt_prog_compiler_can_build_shared=no
6531fi
6532
6533fi
6534case "$host_os" in
6535  # For platforms which do not support PIC, -DPIC is meaningless:
6536  *djgpp*)
6537    lt_prog_compiler_pic=
6538    ;;
6539  *)
6540    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6541    ;;
6542esac
6543
6544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6546if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  lt_cv_prog_compiler_c_o=no
6550   $rm -r conftest 2>/dev/null
6551   mkdir conftest
6552   cd conftest
6553   mkdir out
6554   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6555
6556   lt_compiler_flag="-o out/conftest2.$ac_objext"
6557   # Insert the option either (1) after the last *FLAGS variable, or
6558   # (2) before a word containing "conftest.", or (3) at the end.
6559   # Note that $ac_compile itself does not contain backslashes and begins
6560   # with a dollar sign (not a hyphen), so the echo should work correctly.
6561   lt_compile=`echo "$ac_compile" | $SED \
6562   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6564   -e 's:$: $lt_compiler_flag:'`
6565   (eval echo "\"\$as_me:6565: $lt_compile\"" >&5)
6566   (eval "$lt_compile" 2>out/conftest.err)
6567   ac_status=$?
6568   cat out/conftest.err >&5
6569   echo "$as_me:6569: \$? = $ac_status" >&5
6570   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6571   then
6572     # The compiler can only warn and ignore the option if not recognized
6573     # So say no if there are warnings
6574     if test ! -s out/conftest.err; then
6575       lt_cv_prog_compiler_c_o=yes
6576     fi
6577   fi
6578   chmod u+w .
6579   $rm conftest*
6580   # SGI C++ compiler will create directory out/ii_files/ for
6581   # template instantiation
6582   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6583   $rm out/* && rmdir out
6584   cd ..
6585   rmdir conftest
6586   $rm conftest*
6587
6588fi
6589echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6590echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6591
6592
6593hard_links="nottested"
6594if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6595  # do not overwrite the value of need_locks provided by the user
6596  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6598  hard_links=yes
6599  $rm conftest*
6600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6601  touch conftest.a
6602  ln conftest.a conftest.b 2>&5 || hard_links=no
6603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6604  echo "$as_me:$LINENO: result: $hard_links" >&5
6605echo "${ECHO_T}$hard_links" >&6
6606  if test "$hard_links" = no; then
6607    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6609    need_locks=warn
6610  fi
6611else
6612  need_locks=no
6613fi
6614
6615echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6617
6618  runpath_var=
6619  allow_undefined_flag=
6620  enable_shared_with_static_runtimes=no
6621  archive_cmds=
6622  archive_expsym_cmds=
6623  old_archive_From_new_cmds=
6624  old_archive_from_expsyms_cmds=
6625  export_dynamic_flag_spec=
6626  whole_archive_flag_spec=
6627  thread_safe_flag_spec=
6628  hardcode_libdir_flag_spec=
6629  hardcode_libdir_flag_spec_ld=
6630  hardcode_libdir_separator=
6631  hardcode_direct=no
6632  hardcode_minus_L=no
6633  hardcode_shlibpath_var=unsupported
6634  link_all_deplibs=unknown
6635  hardcode_automatic=no
6636  module_cmds=
6637  module_expsym_cmds=
6638  always_export_symbols=no
6639  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6640  # include_expsyms should be a list of space-separated symbols to be *always*
6641  # included in the symbol list
6642  include_expsyms=
6643  # exclude_expsyms can be an extended regexp of symbols to exclude
6644  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6645  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6646  # as well as any symbol that contains `d'.
6647  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6648  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6649  # platforms (ab)use it in PIC code, but their linkers get confused if
6650  # the symbol is explicitly referenced.  Since portable code cannot
6651  # rely on this symbol name, it's probably fine to never include it in
6652  # preloaded symbol tables.
6653  extract_expsyms_cmds=
6654
6655  case $host_os in
6656  cygwin* | mingw* | pw32*)
6657    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6658    # When not using gcc, we currently assume that we are using
6659    # Microsoft Visual C++.
6660    if test "$GCC" != yes; then
6661      with_gnu_ld=no
6662    fi
6663    ;;
6664  openbsd*)
6665    with_gnu_ld=no
6666    ;;
6667  esac
6668
6669  ld_shlibs=yes
6670  if test "$with_gnu_ld" = yes; then
6671    # If archive_cmds runs LD, not CC, wlarc should be empty
6672    wlarc='${wl}'
6673
6674    # See if GNU ld supports shared libraries.
6675    case $host_os in
6676    aix3* | aix4* | aix5*)
6677      # On AIX/PPC, the GNU linker is very broken
6678      if test "$host_cpu" != ia64; then
6679	ld_shlibs=no
6680	cat <<EOF 1>&2
6681
6682*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6683*** to be unable to reliably create shared libraries on AIX.
6684*** Therefore, libtool is disabling shared libraries support.  If you
6685*** really care for shared libraries, you may want to modify your PATH
6686*** so that a non-GNU linker is found, and then restart.
6687
6688EOF
6689      fi
6690      ;;
6691
6692    amigaos*)
6693      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)'
6694      hardcode_libdir_flag_spec='-L$libdir'
6695      hardcode_minus_L=yes
6696
6697      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6698      # that the semantics of dynamic libraries on AmigaOS, at least up
6699      # to version 4, is to share data among multiple programs linked
6700      # with the same dynamic library.  Since this doesn't match the
6701      # behavior of shared libraries on other platforms, we can't use
6702      # them.
6703      ld_shlibs=no
6704      ;;
6705
6706    beos*)
6707      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6708	allow_undefined_flag=unsupported
6709	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6710	# support --undefined.  This deserves some investigation.  FIXME
6711	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6712      else
6713	ld_shlibs=no
6714      fi
6715      ;;
6716
6717    cygwin* | mingw* | pw32*)
6718      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6719      # as there is no search path for DLLs.
6720      hardcode_libdir_flag_spec='-L$libdir'
6721      allow_undefined_flag=unsupported
6722      always_export_symbols=no
6723      enable_shared_with_static_runtimes=yes
6724      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6725
6726      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6727        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6728	# If the export-symbols file already is a .def file (1st line
6729	# is EXPORTS), use it as is; otherwise, prepend...
6730	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6731	  cp $export_symbols $output_objdir/$soname.def;
6732	else
6733	  echo EXPORTS > $output_objdir/$soname.def;
6734	  cat $export_symbols >> $output_objdir/$soname.def;
6735	fi~
6736	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6737      else
6738	ld_shlibs=no
6739      fi
6740      ;;
6741
6742    netbsd* | knetbsd*-gnu)
6743      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6744	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6745	wlarc=
6746      else
6747	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6749      fi
6750      ;;
6751
6752    solaris* | sysv5*)
6753      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6754	ld_shlibs=no
6755	cat <<EOF 1>&2
6756
6757*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6758*** create shared libraries on Solaris systems.  Therefore, libtool
6759*** is disabling shared libraries support.  We urge you to upgrade GNU
6760*** binutils to release 2.9.1 or newer.  Another option is to modify
6761*** your PATH or compiler configuration so that the native linker is
6762*** used, and then restart.
6763
6764EOF
6765      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6766	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6767	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6768      else
6769	ld_shlibs=no
6770      fi
6771      ;;
6772
6773    sunos4*)
6774      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6775      wlarc=
6776      hardcode_direct=yes
6777      hardcode_shlibpath_var=no
6778      ;;
6779
6780  linux*)
6781    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6782        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783	archive_cmds="$tmp_archive_cmds"
6784      supports_anon_versioning=no
6785      case `$LD -v 2>/dev/null` in
6786        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6787        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6788        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6789        *\ 2.11.*) ;; # other 2.11 versions
6790        *) supports_anon_versioning=yes ;;
6791      esac
6792      if test $supports_anon_versioning = yes; then
6793        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6794cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6795$echo "local: *; };" >> $output_objdir/$libname.ver~
6796        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6797      else
6798        archive_expsym_cmds="$tmp_archive_cmds"
6799      fi
6800    else
6801      ld_shlibs=no
6802    fi
6803    ;;
6804
6805    *)
6806      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6807	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6808	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6809      else
6810	ld_shlibs=no
6811      fi
6812      ;;
6813    esac
6814
6815    if test "$ld_shlibs" = yes; then
6816      runpath_var=LD_RUN_PATH
6817      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6818      export_dynamic_flag_spec='${wl}--export-dynamic'
6819      # ancient GNU ld didn't support --whole-archive et. al.
6820      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6821 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6822      else
6823  	whole_archive_flag_spec=
6824      fi
6825    fi
6826  else
6827    # PORTME fill in a description of your system's linker (not GNU ld)
6828    case $host_os in
6829    aix3*)
6830      allow_undefined_flag=unsupported
6831      always_export_symbols=yes
6832      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'
6833      # Note: this linker hardcodes the directories in LIBPATH if there
6834      # are no directories specified by -L.
6835      hardcode_minus_L=yes
6836      if test "$GCC" = yes && test -z "$link_static_flag"; then
6837	# Neither direct hardcoding nor static linking is supported with a
6838	# broken collect2.
6839	hardcode_direct=unsupported
6840      fi
6841      ;;
6842
6843    aix4* | aix5*)
6844      if test "$host_cpu" = ia64; then
6845	# On IA64, the linker does run time linking by default, so we don't
6846	# have to do anything special.
6847	aix_use_runtimelinking=no
6848	exp_sym_flag='-Bexport'
6849	no_entry_flag=""
6850      else
6851	# If we're using GNU nm, then we don't want the "-C" option.
6852	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6853	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6854	  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'
6855	else
6856	  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'
6857	fi
6858	aix_use_runtimelinking=no
6859
6860	# Test if we are trying to use run time linking or normal
6861	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6862	# need to do runtime linking.
6863	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6864	  for ld_flag in $LDFLAGS; do
6865  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6866  	    aix_use_runtimelinking=yes
6867  	    break
6868  	  fi
6869	  done
6870	esac
6871
6872	exp_sym_flag='-bexport'
6873	no_entry_flag='-bnoentry'
6874      fi
6875
6876      # When large executables or shared objects are built, AIX ld can
6877      # have problems creating the table of contents.  If linking a library
6878      # or program results in "error TOC overflow" add -mminimal-toc to
6879      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6880      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6881
6882      archive_cmds=''
6883      hardcode_direct=yes
6884      hardcode_libdir_separator=':'
6885      link_all_deplibs=yes
6886
6887      if test "$GCC" = yes; then
6888	case $host_os in aix4.012|aix4.012.*)
6889	# We only want to do this on AIX 4.2 and lower, the check
6890	# below for broken collect2 doesn't work under 4.3+
6891	  collect2name=`${CC} -print-prog-name=collect2`
6892	  if test -f "$collect2name" && \
6893  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6894	  then
6895  	  # We have reworked collect2
6896  	  hardcode_direct=yes
6897	  else
6898  	  # We have old collect2
6899  	  hardcode_direct=unsupported
6900  	  # It fails to find uninstalled libraries when the uninstalled
6901  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6902  	  # to unsupported forces relinking
6903  	  hardcode_minus_L=yes
6904  	  hardcode_libdir_flag_spec='-L$libdir'
6905  	  hardcode_libdir_separator=
6906	  fi
6907	esac
6908	shared_flag='-shared'
6909      else
6910	# not using gcc
6911	if test "$host_cpu" = ia64; then
6912  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6913  	# chokes on -Wl,-G. The following line is correct:
6914	  shared_flag='-G'
6915	else
6916  	if test "$aix_use_runtimelinking" = yes; then
6917	    shared_flag='${wl}-G'
6918	  else
6919	    shared_flag='${wl}-bM:SRE'
6920  	fi
6921	fi
6922      fi
6923
6924      # It seems that -bexpall does not export symbols beginning with
6925      # underscore (_), so it is better to generate a list of symbols to export.
6926      always_export_symbols=yes
6927      if test "$aix_use_runtimelinking" = yes; then
6928	# Warning - without using the other runtime loading flags (-brtl),
6929	# -berok will link without error, but may produce a broken library.
6930	allow_undefined_flag='-berok'
6931       # Determine the default libpath from the value encoded in an empty executable.
6932       cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h.  */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h.  */
6938
6939int
6940main ()
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947rm -f conftest.$ac_objext conftest$ac_exeext
6948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949  (eval $ac_link) 2>conftest.er1
6950  ac_status=$?
6951  grep -v '^ *+' conftest.er1 >conftest.err
6952  rm -f conftest.er1
6953  cat conftest.err >&5
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); } &&
6956	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; } &&
6962	 { ac_try='test -s conftest$ac_exeext'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; }; then
6968
6969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6970}'`
6971# Check for a 64-bit object if we didn't find anything.
6972if 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; }
6973}'`; fi
6974else
6975  echo "$as_me: failed program was:" >&5
6976sed 's/^/| /' conftest.$ac_ext >&5
6977
6978fi
6979rm -f conftest.err conftest.$ac_objext \
6980      conftest$ac_exeext conftest.$ac_ext
6981if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6982
6983       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6984	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"
6985       else
6986	if test "$host_cpu" = ia64; then
6987	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6988	  allow_undefined_flag="-z nodefs"
6989	  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"
6990	else
6991	 # Determine the default libpath from the value encoded in an empty executable.
6992	 cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h.  */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h.  */
6998
6999int
7000main ()
7001{
7002
7003  ;
7004  return 0;
7005}
7006_ACEOF
7007rm -f conftest.$ac_objext conftest$ac_exeext
7008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009  (eval $ac_link) 2>conftest.er1
7010  ac_status=$?
7011  grep -v '^ *+' conftest.er1 >conftest.err
7012  rm -f conftest.er1
7013  cat conftest.err >&5
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); } &&
7016	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018  (eval $ac_try) 2>&5
7019  ac_status=$?
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); }; } &&
7022	 { ac_try='test -s conftest$ac_exeext'
7023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024  (eval $ac_try) 2>&5
7025  ac_status=$?
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); }; }; then
7028
7029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7030}'`
7031# Check for a 64-bit object if we didn't find anything.
7032if 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; }
7033}'`; fi
7034else
7035  echo "$as_me: failed program was:" >&5
7036sed 's/^/| /' conftest.$ac_ext >&5
7037
7038fi
7039rm -f conftest.err conftest.$ac_objext \
7040      conftest$ac_exeext conftest.$ac_ext
7041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7042
7043	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7044	  # Warning - without using the other run time loading flags,
7045	  # -berok will link without error, but may produce a broken library.
7046	  no_undefined_flag=' ${wl}-bernotok'
7047	  allow_undefined_flag=' ${wl}-berok'
7048	  # -bexpall does not export symbols beginning with underscore (_)
7049	  always_export_symbols=yes
7050	  # Exported symbols can be pulled into shared objects from archives
7051	  whole_archive_flag_spec=' '
7052	  archive_cmds_need_lc=yes
7053	  # This is similar to how AIX traditionally builds it's shared libraries.
7054	  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'
7055	fi
7056      fi
7057      ;;
7058
7059    amigaos*)
7060      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)'
7061      hardcode_libdir_flag_spec='-L$libdir'
7062      hardcode_minus_L=yes
7063      # see comment about different semantics on the GNU ld section
7064      ld_shlibs=no
7065      ;;
7066
7067    bsdi4*)
7068      export_dynamic_flag_spec=-rdynamic
7069      ;;
7070
7071    cygwin* | mingw* | pw32*)
7072      # When not using gcc, we currently assume that we are using
7073      # Microsoft Visual C++.
7074      # hardcode_libdir_flag_spec is actually meaningless, as there is
7075      # no search path for DLLs.
7076      hardcode_libdir_flag_spec=' '
7077      allow_undefined_flag=unsupported
7078      # Tell ltmain to make .lib files, not .a files.
7079      libext=lib
7080      # Tell ltmain to make .dll files, not .so files.
7081      shrext=".dll"
7082      # FIXME: Setting linknames here is a bad hack.
7083      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7084      # The linker will automatically build a .lib file if we build a DLL.
7085      old_archive_From_new_cmds='true'
7086      # FIXME: Should let the user specify the lib program.
7087      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7088      fix_srcfile_path='`cygpath -w "$srcfile"`'
7089      enable_shared_with_static_runtimes=yes
7090      ;;
7091
7092    darwin* | rhapsody*)
7093    if test "$GXX" = yes ; then
7094      archive_cmds_need_lc=no
7095      case "$host_os" in
7096      rhapsody* | darwin1.[012])
7097	allow_undefined_flag='-undefined suppress'
7098	;;
7099      *) # Darwin 1.3 on
7100      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7101      	allow_undefined_flag='-flat_namespace -undefined suppress'
7102      else
7103        case ${MACOSX_DEPLOYMENT_TARGET} in
7104          10.[012])
7105            allow_undefined_flag='-flat_namespace -undefined suppress'
7106            ;;
7107          10.*)
7108            allow_undefined_flag='-undefined dynamic_lookup'
7109            ;;
7110        esac
7111      fi
7112	;;
7113      esac
7114    	lt_int_apple_cc_single_mod=no
7115    	output_verbose_link_cmd='echo'
7116    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7117    	  lt_int_apple_cc_single_mod=yes
7118    	fi
7119    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7120    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7121    	else
7122        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7123      fi
7124      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7125      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7126        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7127          archive_expsym_cmds='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}'
7128        else
7129          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7130        fi
7131          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}'
7132      hardcode_direct=no
7133      hardcode_automatic=yes
7134      hardcode_shlibpath_var=unsupported
7135      whole_archive_flag_spec='-all_load $convenience'
7136      link_all_deplibs=yes
7137    else
7138      ld_shlibs=no
7139    fi
7140      ;;
7141
7142    dgux*)
7143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7144      hardcode_libdir_flag_spec='-L$libdir'
7145      hardcode_shlibpath_var=no
7146      ;;
7147
7148    freebsd1*)
7149      ld_shlibs=no
7150      ;;
7151
7152    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7153    # support.  Future versions do this automatically, but an explicit c++rt0.o
7154    # does not break anything, and helps significantly (at the cost of a little
7155    # extra space).
7156    freebsd2.2*)
7157      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7158      hardcode_libdir_flag_spec='-R$libdir'
7159      hardcode_direct=yes
7160      hardcode_shlibpath_var=no
7161      ;;
7162
7163    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7164    freebsd2*)
7165      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7166      hardcode_direct=yes
7167      hardcode_minus_L=yes
7168      hardcode_shlibpath_var=no
7169      ;;
7170
7171    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7172    freebsd* | kfreebsd*-gnu)
7173      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7174      hardcode_libdir_flag_spec='-R$libdir'
7175      hardcode_direct=yes
7176      hardcode_shlibpath_var=no
7177      ;;
7178
7179    hpux9*)
7180      if test "$GCC" = yes; then
7181	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'
7182      else
7183	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'
7184      fi
7185      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7186      hardcode_libdir_separator=:
7187      hardcode_direct=yes
7188
7189      # hardcode_minus_L: Not really in the search PATH,
7190      # but as the default location of the library.
7191      hardcode_minus_L=yes
7192      export_dynamic_flag_spec='${wl}-E'
7193      ;;
7194
7195    hpux10* | hpux11*)
7196      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7197	case "$host_cpu" in
7198	hppa*64*|ia64*)
7199	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7200	  ;;
7201	*)
7202	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7203	  ;;
7204	esac
7205      else
7206	case "$host_cpu" in
7207	hppa*64*|ia64*)
7208	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7209	  ;;
7210	*)
7211	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7212	  ;;
7213	esac
7214      fi
7215      if test "$with_gnu_ld" = no; then
7216	case "$host_cpu" in
7217	hppa*64*)
7218	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7219	  hardcode_libdir_flag_spec_ld='+b $libdir'
7220	  hardcode_libdir_separator=:
7221	  hardcode_direct=no
7222	  hardcode_shlibpath_var=no
7223	  ;;
7224	ia64*)
7225	  hardcode_libdir_flag_spec='-L$libdir'
7226	  hardcode_direct=no
7227	  hardcode_shlibpath_var=no
7228
7229	  # hardcode_minus_L: Not really in the search PATH,
7230	  # but as the default location of the library.
7231	  hardcode_minus_L=yes
7232	  ;;
7233	*)
7234	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235	  hardcode_libdir_separator=:
7236	  hardcode_direct=yes
7237	  export_dynamic_flag_spec='${wl}-E'
7238
7239	  # hardcode_minus_L: Not really in the search PATH,
7240	  # but as the default location of the library.
7241	  hardcode_minus_L=yes
7242	  ;;
7243	esac
7244      fi
7245      ;;
7246
7247    irix5* | irix6* | nonstopux*)
7248      if test "$GCC" = yes; then
7249	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'
7250      else
7251	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'
7252	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7253      fi
7254      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255      hardcode_libdir_separator=:
7256      link_all_deplibs=yes
7257      ;;
7258
7259    netbsd* | knetbsd*-gnu)
7260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7261	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7262      else
7263	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7264      fi
7265      hardcode_libdir_flag_spec='-R$libdir'
7266      hardcode_direct=yes
7267      hardcode_shlibpath_var=no
7268      ;;
7269
7270    newsos6)
7271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7272      hardcode_direct=yes
7273      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274      hardcode_libdir_separator=:
7275      hardcode_shlibpath_var=no
7276      ;;
7277
7278    openbsd*)
7279      hardcode_direct=yes
7280      hardcode_shlibpath_var=no
7281      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7282	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7283	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284	export_dynamic_flag_spec='${wl}-E'
7285      else
7286       case $host_os in
7287	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7288	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7289	   hardcode_libdir_flag_spec='-R$libdir'
7290	   ;;
7291	 *)
7292	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7293	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7294	   ;;
7295       esac
7296      fi
7297      ;;
7298
7299    os2*)
7300      hardcode_libdir_flag_spec='-L$libdir'
7301      hardcode_minus_L=yes
7302      allow_undefined_flag=unsupported
7303      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'
7304      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7305      ;;
7306
7307    osf3*)
7308      if test "$GCC" = yes; then
7309	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7310	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'
7311      else
7312	allow_undefined_flag=' -expect_unresolved \*'
7313	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'
7314      fi
7315      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7316      hardcode_libdir_separator=:
7317      ;;
7318
7319    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7320      if test "$GCC" = yes; then
7321	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7322	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'
7323	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7324      else
7325	allow_undefined_flag=' -expect_unresolved \*'
7326	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'
7327	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7328	$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'
7329
7330	# Both c and cxx compiler support -rpath directly
7331	hardcode_libdir_flag_spec='-rpath $libdir'
7332      fi
7333      hardcode_libdir_separator=:
7334      ;;
7335
7336    sco3.2v5*)
7337      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338      hardcode_shlibpath_var=no
7339      export_dynamic_flag_spec='${wl}-Bexport'
7340      runpath_var=LD_RUN_PATH
7341      hardcode_runpath_var=yes
7342      ;;
7343
7344    solaris*)
7345      no_undefined_flag=' -z text'
7346      if test "$GCC" = yes; then
7347	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7348	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7349	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7350      else
7351	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7353  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7354      fi
7355      hardcode_libdir_flag_spec='-R$libdir'
7356      hardcode_shlibpath_var=no
7357      case $host_os in
7358      solaris2.[0-5] | solaris2.[0-5].*) ;;
7359      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7360	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7361      esac
7362      link_all_deplibs=yes
7363      ;;
7364
7365    sunos4*)
7366      if test "x$host_vendor" = xsequent; then
7367	# Use $CC to link under sequent, because it throws in some extra .o
7368	# files that make .init and .fini sections work.
7369	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7370      else
7371	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7372      fi
7373      hardcode_libdir_flag_spec='-L$libdir'
7374      hardcode_direct=yes
7375      hardcode_minus_L=yes
7376      hardcode_shlibpath_var=no
7377      ;;
7378
7379    sysv4)
7380      case $host_vendor in
7381	sni)
7382	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383	  hardcode_direct=yes # is this really true???
7384	;;
7385	siemens)
7386	  ## LD is ld it makes a PLAMLIB
7387	  ## CC just makes a GrossModule.
7388	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7389	  reload_cmds='$CC -r -o $output$reload_objs'
7390	  hardcode_direct=no
7391        ;;
7392	motorola)
7393	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7395	;;
7396      esac
7397      runpath_var='LD_RUN_PATH'
7398      hardcode_shlibpath_var=no
7399      ;;
7400
7401    sysv4.3*)
7402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403      hardcode_shlibpath_var=no
7404      export_dynamic_flag_spec='-Bexport'
7405      ;;
7406
7407    sysv4*MP*)
7408      if test -d /usr/nec; then
7409	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410	hardcode_shlibpath_var=no
7411	runpath_var=LD_RUN_PATH
7412	hardcode_runpath_var=yes
7413	ld_shlibs=yes
7414      fi
7415      ;;
7416
7417    sysv4.2uw2*)
7418      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7419      hardcode_direct=yes
7420      hardcode_minus_L=no
7421      hardcode_shlibpath_var=no
7422      hardcode_runpath_var=yes
7423      runpath_var=LD_RUN_PATH
7424      ;;
7425
7426   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7427      no_undefined_flag='${wl}-z ${wl}text'
7428      if test "$GCC" = yes; then
7429	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7430      else
7431	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7432      fi
7433      runpath_var='LD_RUN_PATH'
7434      hardcode_shlibpath_var=no
7435      ;;
7436
7437    sysv5*)
7438      no_undefined_flag=' -z text'
7439      # $CC -shared without GNU ld will not create a library from C++
7440      # object files and a static libstdc++, better avoid it by now
7441      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7443  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7444      hardcode_libdir_flag_spec=
7445      hardcode_shlibpath_var=no
7446      runpath_var='LD_RUN_PATH'
7447      ;;
7448
7449    uts4*)
7450      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451      hardcode_libdir_flag_spec='-L$libdir'
7452      hardcode_shlibpath_var=no
7453      ;;
7454
7455    *)
7456      ld_shlibs=no
7457      ;;
7458    esac
7459  fi
7460
7461echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7462echo "${ECHO_T}$ld_shlibs" >&6
7463test "$ld_shlibs" = no && can_build_shared=no
7464
7465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7466if test "$GCC" = yes; then
7467  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7468fi
7469
7470#
7471# Do we need to explicitly link libc?
7472#
7473case "x$archive_cmds_need_lc" in
7474x|xyes)
7475  # Assume -lc should be added
7476  archive_cmds_need_lc=yes
7477
7478  if test "$enable_shared" = yes && test "$GCC" = yes; then
7479    case $archive_cmds in
7480    *'~'*)
7481      # FIXME: we may have to deal with multi-command sequences.
7482      ;;
7483    '$CC '*)
7484      # Test whether the compiler implicitly links with -lc since on some
7485      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7486      # to ld, don't add -lc before -lgcc.
7487      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7488echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7489      $rm conftest*
7490      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7491
7492      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493  (eval $ac_compile) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); } 2>conftest.err; then
7497        soname=conftest
7498        lib=conftest
7499        libobjs=conftest.$ac_objext
7500        deplibs=
7501        wl=$lt_prog_compiler_wl
7502        compiler_flags=-v
7503        linker_flags=-v
7504        verstring=
7505        output_objdir=.
7506        libname=conftest
7507        lt_save_allow_undefined_flag=$allow_undefined_flag
7508        allow_undefined_flag=
7509        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7510  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7511  ac_status=$?
7512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513  (exit $ac_status); }
7514        then
7515	  archive_cmds_need_lc=no
7516        else
7517	  archive_cmds_need_lc=yes
7518        fi
7519        allow_undefined_flag=$lt_save_allow_undefined_flag
7520      else
7521        cat conftest.err 1>&5
7522      fi
7523      $rm conftest*
7524      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7525echo "${ECHO_T}$archive_cmds_need_lc" >&6
7526      ;;
7527    esac
7528  fi
7529  ;;
7530esac
7531
7532echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7533echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7534library_names_spec=
7535libname_spec='lib$name'
7536soname_spec=
7537shrext=".so"
7538postinstall_cmds=
7539postuninstall_cmds=
7540finish_cmds=
7541finish_eval=
7542shlibpath_var=
7543shlibpath_overrides_runpath=unknown
7544version_type=none
7545dynamic_linker="$host_os ld.so"
7546sys_lib_dlsearch_path_spec="/lib /usr/lib"
7547if test "$GCC" = yes; then
7548  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7549  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7550    # if the path contains ";" then we assume it to be the separator
7551    # otherwise default to the standard path separator (i.e. ":") - it is
7552    # assumed that no part of a normal pathname contains ";" but that should
7553    # okay in the real world where ";" in dirpaths is itself problematic.
7554    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7555  else
7556    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7557  fi
7558else
7559  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7560fi
7561need_lib_prefix=unknown
7562hardcode_into_libs=no
7563
7564# when you set need_version to no, make sure it does not cause -set_version
7565# flags to be left without arguments
7566need_version=unknown
7567
7568case $host_os in
7569aix3*)
7570  version_type=linux
7571  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7572  shlibpath_var=LIBPATH
7573
7574  # AIX 3 has no versioning support, so we append a major version to the name.
7575  soname_spec='${libname}${release}${shared_ext}$major'
7576  ;;
7577
7578aix4* | aix5*)
7579  version_type=linux
7580  need_lib_prefix=no
7581  need_version=no
7582  hardcode_into_libs=yes
7583  if test "$host_cpu" = ia64; then
7584    # AIX 5 supports IA64
7585    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7586    shlibpath_var=LD_LIBRARY_PATH
7587  else
7588    # With GCC up to 2.95.x, collect2 would create an import file
7589    # for dependence libraries.  The import file would start with
7590    # the line `#! .'.  This would cause the generated library to
7591    # depend on `.', always an invalid library.  This was fixed in
7592    # development snapshots of GCC prior to 3.0.
7593    case $host_os in
7594      aix4 | aix4.[01] | aix4.[01].*)
7595      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7596	   echo ' yes '
7597	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7598	:
7599      else
7600	can_build_shared=no
7601      fi
7602      ;;
7603    esac
7604    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7605    # soname into executable. Probably we can add versioning support to
7606    # collect2, so additional links can be useful in future.
7607    if test "$aix_use_runtimelinking" = yes; then
7608      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7609      # instead of lib<name>.a to let people know that these are not
7610      # typical AIX shared libraries.
7611      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7612    else
7613      # We preserve .a as extension for shared libraries through AIX4.2
7614      # and later when we are not doing run time linking.
7615      library_names_spec='${libname}${release}.a $libname.a'
7616      soname_spec='${libname}${release}${shared_ext}$major'
7617    fi
7618    shlibpath_var=LIBPATH
7619  fi
7620  ;;
7621
7622amigaos*)
7623  library_names_spec='$libname.ixlibrary $libname.a'
7624  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7625  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'
7626  ;;
7627
7628beos*)
7629  library_names_spec='${libname}${shared_ext}'
7630  dynamic_linker="$host_os ld.so"
7631  shlibpath_var=LIBRARY_PATH
7632  ;;
7633
7634bsdi4*)
7635  version_type=linux
7636  need_version=no
7637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7638  soname_spec='${libname}${release}${shared_ext}$major'
7639  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7640  shlibpath_var=LD_LIBRARY_PATH
7641  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7642  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7643  # the default ld.so.conf also contains /usr/contrib/lib and
7644  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7645  # libtool to hard-code these into programs
7646  ;;
7647
7648cygwin* | mingw* | pw32*)
7649  version_type=windows
7650  shrext=".dll"
7651  need_version=no
7652  need_lib_prefix=no
7653
7654  case $GCC,$host_os in
7655  yes,cygwin* | yes,mingw* | yes,pw32*)
7656    library_names_spec='$libname.dll.a'
7657    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7658    postinstall_cmds='base_file=`basename \${file}`~
7659      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7660      dldir=$destdir/`dirname \$dlpath`~
7661      test -d \$dldir || mkdir -p \$dldir~
7662      $install_prog $dir/$dlname \$dldir/$dlname'
7663    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7664      dlpath=$dir/\$dldll~
7665       $rm \$dlpath'
7666    shlibpath_overrides_runpath=yes
7667
7668    case $host_os in
7669    cygwin*)
7670      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7671      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7672      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7673      ;;
7674    mingw*)
7675      # MinGW DLLs use traditional 'lib' prefix
7676      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7677      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7678      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7679        # It is most probably a Windows format PATH printed by
7680        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7681        # path with ; separators, and with drive letters. We can handle the
7682        # drive letters (cygwin fileutils understands them), so leave them,
7683        # especially as we might pass files found there to a mingw objdump,
7684        # which wouldn't understand a cygwinified path. Ahh.
7685        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7686      else
7687        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7688      fi
7689      ;;
7690    pw32*)
7691      # pw32 DLLs use 'pw' prefix rather than 'lib'
7692      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7693      ;;
7694    esac
7695    ;;
7696
7697  *)
7698    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7699    ;;
7700  esac
7701  dynamic_linker='Win32 ld.exe'
7702  # FIXME: first we should search . and the directory the executable is in
7703  shlibpath_var=PATH
7704  ;;
7705
7706darwin* | rhapsody*)
7707  dynamic_linker="$host_os dyld"
7708  version_type=darwin
7709  need_lib_prefix=no
7710  need_version=no
7711  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7712  soname_spec='${libname}${release}${major}$shared_ext'
7713  shlibpath_overrides_runpath=yes
7714  shlibpath_var=DYLD_LIBRARY_PATH
7715  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7716  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7717  if test "$GCC" = yes; then
7718    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"`
7719  else
7720    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7721  fi
7722  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7723  ;;
7724
7725dgux*)
7726  version_type=linux
7727  need_lib_prefix=no
7728  need_version=no
7729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7730  soname_spec='${libname}${release}${shared_ext}$major'
7731  shlibpath_var=LD_LIBRARY_PATH
7732  ;;
7733
7734freebsd1*)
7735  dynamic_linker=no
7736  ;;
7737
7738kfreebsd*-gnu)
7739  version_type=linux
7740  need_lib_prefix=no
7741  need_version=no
7742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7743  soname_spec='${libname}${release}${shared_ext}$major'
7744  shlibpath_var=LD_LIBRARY_PATH
7745  shlibpath_overrides_runpath=no
7746  hardcode_into_libs=yes
7747  dynamic_linker='GNU ld.so'
7748  ;;
7749
7750freebsd*)
7751  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7752  version_type=freebsd-$objformat
7753  case $version_type in
7754    freebsd-elf*)
7755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7756      need_version=no
7757      need_lib_prefix=no
7758      ;;
7759    freebsd-*)
7760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7761      need_version=yes
7762      ;;
7763  esac
7764  shlibpath_var=LD_LIBRARY_PATH
7765  case $host_os in
7766  freebsd2*)
7767    shlibpath_overrides_runpath=yes
7768    ;;
7769  freebsd3.01* | freebsdelf3.01*)
7770    shlibpath_overrides_runpath=yes
7771    hardcode_into_libs=yes
7772    ;;
7773  *) # from 3.2 on
7774    shlibpath_overrides_runpath=no
7775    hardcode_into_libs=yes
7776    ;;
7777  esac
7778  ;;
7779
7780gnu*)
7781  version_type=linux
7782  need_lib_prefix=no
7783  need_version=no
7784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7785  soname_spec='${libname}${release}${shared_ext}$major'
7786  shlibpath_var=LD_LIBRARY_PATH
7787  hardcode_into_libs=yes
7788  ;;
7789
7790hpux9* | hpux10* | hpux11*)
7791  # Give a soname corresponding to the major version so that dld.sl refuses to
7792  # link against other versions.
7793  version_type=sunos
7794  need_lib_prefix=no
7795  need_version=no
7796  case "$host_cpu" in
7797  ia64*)
7798    shrext='.so'
7799    hardcode_into_libs=yes
7800    dynamic_linker="$host_os dld.so"
7801    shlibpath_var=LD_LIBRARY_PATH
7802    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804    soname_spec='${libname}${release}${shared_ext}$major'
7805    if test "X$HPUX_IA64_MODE" = X32; then
7806      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7807    else
7808      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7809    fi
7810    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7811    ;;
7812   hppa*64*)
7813     shrext='.sl'
7814     hardcode_into_libs=yes
7815     dynamic_linker="$host_os dld.sl"
7816     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7819     soname_spec='${libname}${release}${shared_ext}$major'
7820     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7821     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7822     ;;
7823   *)
7824    shrext='.sl'
7825    dynamic_linker="$host_os dld.sl"
7826    shlibpath_var=SHLIB_PATH
7827    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7829    soname_spec='${libname}${release}${shared_ext}$major'
7830    ;;
7831  esac
7832  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7833  postinstall_cmds='chmod 555 $lib'
7834  ;;
7835
7836irix5* | irix6* | nonstopux*)
7837  case $host_os in
7838    nonstopux*) version_type=nonstopux ;;
7839    *)
7840	if test "$lt_cv_prog_gnu_ld" = yes; then
7841		version_type=linux
7842	else
7843		version_type=irix
7844	fi ;;
7845  esac
7846  need_lib_prefix=no
7847  need_version=no
7848  soname_spec='${libname}${release}${shared_ext}$major'
7849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7850  case $host_os in
7851  irix5* | nonstopux*)
7852    libsuff= shlibsuff=
7853    ;;
7854  *)
7855    case $LD in # libtool.m4 will add one of these switches to LD
7856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7857      libsuff= shlibsuff= libmagic=32-bit;;
7858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7859      libsuff=32 shlibsuff=N32 libmagic=N32;;
7860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7862    *) libsuff= shlibsuff= libmagic=never-match;;
7863    esac
7864    ;;
7865  esac
7866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7867  shlibpath_overrides_runpath=no
7868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7870  hardcode_into_libs=yes
7871  ;;
7872
7873# No shared lib support for Linux oldld, aout, or coff.
7874linux*oldld* | linux*aout* | linux*coff*)
7875  dynamic_linker=no
7876  ;;
7877
7878# This must be Linux ELF.
7879linux*)
7880  version_type=linux
7881  need_lib_prefix=no
7882  need_version=no
7883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884  soname_spec='${libname}${release}${shared_ext}$major'
7885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7886  shlibpath_var=LD_LIBRARY_PATH
7887  shlibpath_overrides_runpath=no
7888  # This implies no fast_install, which is unacceptable.
7889  # Some rework will be needed to allow for fast_install
7890  # before this can be enabled.
7891  hardcode_into_libs=yes
7892
7893  # Append ld.so.conf contents to the search path
7894  if test -f /etc/ld.so.conf; then
7895    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7896    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7897  fi
7898
7899  # We used to test for /lib/ld.so.1 and disable shared libraries on
7900  # powerpc, because MkLinux only supported shared libraries with the
7901  # GNU dynamic linker.  Since this was broken with cross compilers,
7902  # most powerpc-linux boxes support dynamic linking these days and
7903  # people can always --disable-shared, the test was removed, and we
7904  # assume the GNU/Linux dynamic linker is in use.
7905  dynamic_linker='GNU/Linux ld.so'
7906  ;;
7907
7908knetbsd*-gnu)
7909  version_type=linux
7910  need_lib_prefix=no
7911  need_version=no
7912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7913  soname_spec='${libname}${release}${shared_ext}$major'
7914  shlibpath_var=LD_LIBRARY_PATH
7915  shlibpath_overrides_runpath=no
7916  hardcode_into_libs=yes
7917  dynamic_linker='GNU ld.so'
7918  ;;
7919
7920netbsd*)
7921  version_type=sunos
7922  need_lib_prefix=no
7923  need_version=no
7924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7927    dynamic_linker='NetBSD (a.out) ld.so'
7928  else
7929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7930    soname_spec='${libname}${release}${shared_ext}$major'
7931    dynamic_linker='NetBSD ld.elf_so'
7932  fi
7933  shlibpath_var=LD_LIBRARY_PATH
7934  shlibpath_overrides_runpath=yes
7935  hardcode_into_libs=yes
7936  ;;
7937
7938newsos6)
7939  version_type=linux
7940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7941  shlibpath_var=LD_LIBRARY_PATH
7942  shlibpath_overrides_runpath=yes
7943  ;;
7944
7945nto-qnx*)
7946  version_type=linux
7947  need_lib_prefix=no
7948  need_version=no
7949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950  soname_spec='${libname}${release}${shared_ext}$major'
7951  shlibpath_var=LD_LIBRARY_PATH
7952  shlibpath_overrides_runpath=yes
7953  ;;
7954
7955openbsd*)
7956  version_type=sunos
7957  need_lib_prefix=no
7958  need_version=yes
7959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7960  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7961  shlibpath_var=LD_LIBRARY_PATH
7962  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7963    case $host_os in
7964      openbsd2.[89] | openbsd2.[89].*)
7965	shlibpath_overrides_runpath=no
7966	;;
7967      *)
7968	shlibpath_overrides_runpath=yes
7969	;;
7970      esac
7971  else
7972    shlibpath_overrides_runpath=yes
7973  fi
7974  ;;
7975
7976os2*)
7977  libname_spec='$name'
7978  shrext=".dll"
7979  need_lib_prefix=no
7980  library_names_spec='$libname${shared_ext} $libname.a'
7981  dynamic_linker='OS/2 ld.exe'
7982  shlibpath_var=LIBPATH
7983  ;;
7984
7985osf3* | osf4* | osf5*)
7986  version_type=osf
7987  need_lib_prefix=no
7988  need_version=no
7989  soname_spec='${libname}${release}${shared_ext}$major'
7990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991  shlibpath_var=LD_LIBRARY_PATH
7992  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7993  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7994  ;;
7995
7996sco3.2v5*)
7997  version_type=osf
7998  soname_spec='${libname}${release}${shared_ext}$major'
7999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8000  shlibpath_var=LD_LIBRARY_PATH
8001  ;;
8002
8003solaris*)
8004  version_type=linux
8005  need_lib_prefix=no
8006  need_version=no
8007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008  soname_spec='${libname}${release}${shared_ext}$major'
8009  shlibpath_var=LD_LIBRARY_PATH
8010  shlibpath_overrides_runpath=yes
8011  hardcode_into_libs=yes
8012  # ldd complains unless libraries are executable
8013  postinstall_cmds='chmod +x $lib'
8014  ;;
8015
8016sunos4*)
8017  version_type=sunos
8018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8019  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8020  shlibpath_var=LD_LIBRARY_PATH
8021  shlibpath_overrides_runpath=yes
8022  if test "$with_gnu_ld" = yes; then
8023    need_lib_prefix=no
8024  fi
8025  need_version=yes
8026  ;;
8027
8028sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8029  version_type=linux
8030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031  soname_spec='${libname}${release}${shared_ext}$major'
8032  shlibpath_var=LD_LIBRARY_PATH
8033  case $host_vendor in
8034    sni)
8035      shlibpath_overrides_runpath=no
8036      need_lib_prefix=no
8037      export_dynamic_flag_spec='${wl}-Blargedynsym'
8038      runpath_var=LD_RUN_PATH
8039      ;;
8040    siemens)
8041      need_lib_prefix=no
8042      ;;
8043    motorola)
8044      need_lib_prefix=no
8045      need_version=no
8046      shlibpath_overrides_runpath=no
8047      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8048      ;;
8049  esac
8050  ;;
8051
8052sysv4*MP*)
8053  if test -d /usr/nec ;then
8054    version_type=linux
8055    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8056    soname_spec='$libname${shared_ext}.$major'
8057    shlibpath_var=LD_LIBRARY_PATH
8058  fi
8059  ;;
8060
8061uts4*)
8062  version_type=linux
8063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8064  soname_spec='${libname}${release}${shared_ext}$major'
8065  shlibpath_var=LD_LIBRARY_PATH
8066  ;;
8067
8068*)
8069  dynamic_linker=no
8070  ;;
8071esac
8072echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8073echo "${ECHO_T}$dynamic_linker" >&6
8074test "$dynamic_linker" = no && can_build_shared=no
8075
8076echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8077echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8078hardcode_action=
8079if test -n "$hardcode_libdir_flag_spec" || \
8080   test -n "$runpath_var " || \
8081   test "X$hardcode_automatic"="Xyes" ; then
8082
8083  # We can hardcode non-existant directories.
8084  if test "$hardcode_direct" != no &&
8085     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8086     # have to relink, otherwise we might link with an installed library
8087     # when we should be linking with a yet-to-be-installed one
8088     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8089     test "$hardcode_minus_L" != no; then
8090    # Linking always hardcodes the temporary library directory.
8091    hardcode_action=relink
8092  else
8093    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8094    hardcode_action=immediate
8095  fi
8096else
8097  # We cannot hardcode anything, or else we can only hardcode existing
8098  # directories.
8099  hardcode_action=unsupported
8100fi
8101echo "$as_me:$LINENO: result: $hardcode_action" >&5
8102echo "${ECHO_T}$hardcode_action" >&6
8103
8104if test "$hardcode_action" = relink; then
8105  # Fast installation is not supported
8106  enable_fast_install=no
8107elif test "$shlibpath_overrides_runpath" = yes ||
8108     test "$enable_shared" = no; then
8109  # Fast installation is not necessary
8110  enable_fast_install=needless
8111fi
8112
8113striplib=
8114old_striplib=
8115echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8116echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8117if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8118  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8119  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8120  echo "$as_me:$LINENO: result: yes" >&5
8121echo "${ECHO_T}yes" >&6
8122else
8123# FIXME - insert some real tests, host_os isn't really good enough
8124  case $host_os in
8125   darwin*)
8126       if test -n "$STRIP" ; then
8127         striplib="$STRIP -x"
8128         echo "$as_me:$LINENO: result: yes" >&5
8129echo "${ECHO_T}yes" >&6
8130       else
8131  echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
8133fi
8134       ;;
8135   *)
8136  echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
8138    ;;
8139  esac
8140fi
8141
8142if test "x$enable_dlopen" != xyes; then
8143  enable_dlopen=unknown
8144  enable_dlopen_self=unknown
8145  enable_dlopen_self_static=unknown
8146else
8147  lt_cv_dlopen=no
8148  lt_cv_dlopen_libs=
8149
8150  case $host_os in
8151  beos*)
8152    lt_cv_dlopen="load_add_on"
8153    lt_cv_dlopen_libs=
8154    lt_cv_dlopen_self=yes
8155    ;;
8156
8157  mingw* | pw32*)
8158    lt_cv_dlopen="LoadLibrary"
8159    lt_cv_dlopen_libs=
8160   ;;
8161
8162  cygwin*)
8163    lt_cv_dlopen="dlopen"
8164    lt_cv_dlopen_libs=
8165   ;;
8166
8167  darwin*)
8168  # if libdl is installed we need to link against it
8169    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8170echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8171if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8172  echo $ECHO_N "(cached) $ECHO_C" >&6
8173else
8174  ac_check_lib_save_LIBS=$LIBS
8175LIBS="-ldl  $LIBS"
8176cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h.  */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h.  */
8182
8183/* Override any gcc2 internal prototype to avoid an error.  */
8184#ifdef __cplusplus
8185extern "C"
8186#endif
8187/* We use char because int might match the return type of a gcc2
8188   builtin and then its argument prototype would still apply.  */
8189char dlopen ();
8190int
8191main ()
8192{
8193dlopen ();
8194  ;
8195  return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext conftest$ac_exeext
8199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8200  (eval $ac_link) 2>conftest.er1
8201  ac_status=$?
8202  grep -v '^ *+' conftest.er1 >conftest.err
8203  rm -f conftest.er1
8204  cat conftest.err >&5
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); } &&
8207	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209  (eval $ac_try) 2>&5
8210  ac_status=$?
8211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212  (exit $ac_status); }; } &&
8213	 { ac_try='test -s conftest$ac_exeext'
8214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215  (eval $ac_try) 2>&5
8216  ac_status=$?
8217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218  (exit $ac_status); }; }; then
8219  ac_cv_lib_dl_dlopen=yes
8220else
8221  echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224ac_cv_lib_dl_dlopen=no
8225fi
8226rm -f conftest.err conftest.$ac_objext \
8227      conftest$ac_exeext conftest.$ac_ext
8228LIBS=$ac_check_lib_save_LIBS
8229fi
8230echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8231echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8232if test $ac_cv_lib_dl_dlopen = yes; then
8233  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8234else
8235
8236    lt_cv_dlopen="dyld"
8237    lt_cv_dlopen_libs=
8238    lt_cv_dlopen_self=yes
8239
8240fi
8241
8242   ;;
8243
8244  *)
8245    echo "$as_me:$LINENO: checking for shl_load" >&5
8246echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8247if test "${ac_cv_func_shl_load+set}" = set; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  cat >conftest.$ac_ext <<_ACEOF
8251/* confdefs.h.  */
8252_ACEOF
8253cat confdefs.h >>conftest.$ac_ext
8254cat >>conftest.$ac_ext <<_ACEOF
8255/* end confdefs.h.  */
8256/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8257   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8258#define shl_load innocuous_shl_load
8259
8260/* System header to define __stub macros and hopefully few prototypes,
8261    which can conflict with char shl_load (); below.
8262    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263    <limits.h> exists even on freestanding compilers.  */
8264
8265#ifdef __STDC__
8266# include <limits.h>
8267#else
8268# include <assert.h>
8269#endif
8270
8271#undef shl_load
8272
8273/* Override any gcc2 internal prototype to avoid an error.  */
8274#ifdef __cplusplus
8275extern "C"
8276{
8277#endif
8278/* We use char because int might match the return type of a gcc2
8279   builtin and then its argument prototype would still apply.  */
8280char shl_load ();
8281/* The GNU C library defines this for functions which it implements
8282    to always fail with ENOSYS.  Some functions are actually named
8283    something starting with __ and the normal name is an alias.  */
8284#if defined (__stub_shl_load) || defined (__stub___shl_load)
8285choke me
8286#else
8287char (*f) () = shl_load;
8288#endif
8289#ifdef __cplusplus
8290}
8291#endif
8292
8293int
8294main ()
8295{
8296return f != shl_load;
8297  ;
8298  return 0;
8299}
8300_ACEOF
8301rm -f conftest.$ac_objext conftest$ac_exeext
8302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303  (eval $ac_link) 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } &&
8310	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312  (eval $ac_try) 2>&5
8313  ac_status=$?
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); }; } &&
8316	 { ac_try='test -s conftest$ac_exeext'
8317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318  (eval $ac_try) 2>&5
8319  ac_status=$?
8320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); }; }; then
8322  ac_cv_func_shl_load=yes
8323else
8324  echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327ac_cv_func_shl_load=no
8328fi
8329rm -f conftest.err conftest.$ac_objext \
8330      conftest$ac_exeext conftest.$ac_ext
8331fi
8332echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8333echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8334if test $ac_cv_func_shl_load = yes; then
8335  lt_cv_dlopen="shl_load"
8336else
8337  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8338echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8339if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8340  echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342  ac_check_lib_save_LIBS=$LIBS
8343LIBS="-ldld  $LIBS"
8344cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h.  */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h.  */
8350
8351/* Override any gcc2 internal prototype to avoid an error.  */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355/* We use char because int might match the return type of a gcc2
8356   builtin and then its argument prototype would still apply.  */
8357char shl_load ();
8358int
8359main ()
8360{
8361shl_load ();
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext conftest$ac_exeext
8367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368  (eval $ac_link) 2>conftest.er1
8369  ac_status=$?
8370  grep -v '^ *+' conftest.er1 >conftest.err
8371  rm -f conftest.er1
8372  cat conftest.err >&5
8373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374  (exit $ac_status); } &&
8375	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377  (eval $ac_try) 2>&5
8378  ac_status=$?
8379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380  (exit $ac_status); }; } &&
8381	 { ac_try='test -s conftest$ac_exeext'
8382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383  (eval $ac_try) 2>&5
8384  ac_status=$?
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); }; }; then
8387  ac_cv_lib_dld_shl_load=yes
8388else
8389  echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
8392ac_cv_lib_dld_shl_load=no
8393fi
8394rm -f conftest.err conftest.$ac_objext \
8395      conftest$ac_exeext conftest.$ac_ext
8396LIBS=$ac_check_lib_save_LIBS
8397fi
8398echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8399echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8400if test $ac_cv_lib_dld_shl_load = yes; then
8401  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8402else
8403  echo "$as_me:$LINENO: checking for dlopen" >&5
8404echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8405if test "${ac_cv_func_dlopen+set}" = set; then
8406  echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408  cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h.  */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h.  */
8414/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8415   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8416#define dlopen innocuous_dlopen
8417
8418/* System header to define __stub macros and hopefully few prototypes,
8419    which can conflict with char dlopen (); below.
8420    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421    <limits.h> exists even on freestanding compilers.  */
8422
8423#ifdef __STDC__
8424# include <limits.h>
8425#else
8426# include <assert.h>
8427#endif
8428
8429#undef dlopen
8430
8431/* Override any gcc2 internal prototype to avoid an error.  */
8432#ifdef __cplusplus
8433extern "C"
8434{
8435#endif
8436/* We use char because int might match the return type of a gcc2
8437   builtin and then its argument prototype would still apply.  */
8438char dlopen ();
8439/* The GNU C library defines this for functions which it implements
8440    to always fail with ENOSYS.  Some functions are actually named
8441    something starting with __ and the normal name is an alias.  */
8442#if defined (__stub_dlopen) || defined (__stub___dlopen)
8443choke me
8444#else
8445char (*f) () = dlopen;
8446#endif
8447#ifdef __cplusplus
8448}
8449#endif
8450
8451int
8452main ()
8453{
8454return f != dlopen;
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461  (eval $ac_link) 2>conftest.er1
8462  ac_status=$?
8463  grep -v '^ *+' conftest.er1 >conftest.err
8464  rm -f conftest.er1
8465  cat conftest.err >&5
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); } &&
8468	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470  (eval $ac_try) 2>&5
8471  ac_status=$?
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); }; } &&
8474	 { ac_try='test -s conftest$ac_exeext'
8475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476  (eval $ac_try) 2>&5
8477  ac_status=$?
8478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479  (exit $ac_status); }; }; then
8480  ac_cv_func_dlopen=yes
8481else
8482  echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485ac_cv_func_dlopen=no
8486fi
8487rm -f conftest.err conftest.$ac_objext \
8488      conftest$ac_exeext conftest.$ac_ext
8489fi
8490echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8491echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8492if test $ac_cv_func_dlopen = yes; then
8493  lt_cv_dlopen="dlopen"
8494else
8495  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8496echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8497if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500  ac_check_lib_save_LIBS=$LIBS
8501LIBS="-ldl  $LIBS"
8502cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h.  */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h.  */
8508
8509/* Override any gcc2 internal prototype to avoid an error.  */
8510#ifdef __cplusplus
8511extern "C"
8512#endif
8513/* We use char because int might match the return type of a gcc2
8514   builtin and then its argument prototype would still apply.  */
8515char dlopen ();
8516int
8517main ()
8518{
8519dlopen ();
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526  (eval $ac_link) 2>conftest.er1
8527  ac_status=$?
8528  grep -v '^ *+' conftest.er1 >conftest.err
8529  rm -f conftest.er1
8530  cat conftest.err >&5
8531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532  (exit $ac_status); } &&
8533	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535  (eval $ac_try) 2>&5
8536  ac_status=$?
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); }; } &&
8539	 { ac_try='test -s conftest$ac_exeext'
8540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541  (eval $ac_try) 2>&5
8542  ac_status=$?
8543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544  (exit $ac_status); }; }; then
8545  ac_cv_lib_dl_dlopen=yes
8546else
8547  echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
8550ac_cv_lib_dl_dlopen=no
8551fi
8552rm -f conftest.err conftest.$ac_objext \
8553      conftest$ac_exeext conftest.$ac_ext
8554LIBS=$ac_check_lib_save_LIBS
8555fi
8556echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8557echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8558if test $ac_cv_lib_dl_dlopen = yes; then
8559  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8560else
8561  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8562echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8563if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8564  echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566  ac_check_lib_save_LIBS=$LIBS
8567LIBS="-lsvld  $LIBS"
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574
8575/* Override any gcc2 internal prototype to avoid an error.  */
8576#ifdef __cplusplus
8577extern "C"
8578#endif
8579/* We use char because int might match the return type of a gcc2
8580   builtin and then its argument prototype would still apply.  */
8581char dlopen ();
8582int
8583main ()
8584{
8585dlopen ();
8586  ;
8587  return 0;
8588}
8589_ACEOF
8590rm -f conftest.$ac_objext conftest$ac_exeext
8591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592  (eval $ac_link) 2>conftest.er1
8593  ac_status=$?
8594  grep -v '^ *+' conftest.er1 >conftest.err
8595  rm -f conftest.er1
8596  cat conftest.err >&5
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); } &&
8599	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601  (eval $ac_try) 2>&5
8602  ac_status=$?
8603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604  (exit $ac_status); }; } &&
8605	 { ac_try='test -s conftest$ac_exeext'
8606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607  (eval $ac_try) 2>&5
8608  ac_status=$?
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); }; }; then
8611  ac_cv_lib_svld_dlopen=yes
8612else
8613  echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
8616ac_cv_lib_svld_dlopen=no
8617fi
8618rm -f conftest.err conftest.$ac_objext \
8619      conftest$ac_exeext conftest.$ac_ext
8620LIBS=$ac_check_lib_save_LIBS
8621fi
8622echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8623echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8624if test $ac_cv_lib_svld_dlopen = yes; then
8625  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8626else
8627  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8628echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8629if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8630  echo $ECHO_N "(cached) $ECHO_C" >&6
8631else
8632  ac_check_lib_save_LIBS=$LIBS
8633LIBS="-ldld  $LIBS"
8634cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h.  */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h.  */
8640
8641/* Override any gcc2 internal prototype to avoid an error.  */
8642#ifdef __cplusplus
8643extern "C"
8644#endif
8645/* We use char because int might match the return type of a gcc2
8646   builtin and then its argument prototype would still apply.  */
8647char dld_link ();
8648int
8649main ()
8650{
8651dld_link ();
8652  ;
8653  return 0;
8654}
8655_ACEOF
8656rm -f conftest.$ac_objext conftest$ac_exeext
8657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658  (eval $ac_link) 2>conftest.er1
8659  ac_status=$?
8660  grep -v '^ *+' conftest.er1 >conftest.err
8661  rm -f conftest.er1
8662  cat conftest.err >&5
8663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664  (exit $ac_status); } &&
8665	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667  (eval $ac_try) 2>&5
8668  ac_status=$?
8669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670  (exit $ac_status); }; } &&
8671	 { ac_try='test -s conftest$ac_exeext'
8672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673  (eval $ac_try) 2>&5
8674  ac_status=$?
8675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676  (exit $ac_status); }; }; then
8677  ac_cv_lib_dld_dld_link=yes
8678else
8679  echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682ac_cv_lib_dld_dld_link=no
8683fi
8684rm -f conftest.err conftest.$ac_objext \
8685      conftest$ac_exeext conftest.$ac_ext
8686LIBS=$ac_check_lib_save_LIBS
8687fi
8688echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8689echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8690if test $ac_cv_lib_dld_dld_link = yes; then
8691  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8692fi
8693
8694
8695fi
8696
8697
8698fi
8699
8700
8701fi
8702
8703
8704fi
8705
8706
8707fi
8708
8709    ;;
8710  esac
8711
8712  if test "x$lt_cv_dlopen" != xno; then
8713    enable_dlopen=yes
8714  else
8715    enable_dlopen=no
8716  fi
8717
8718  case $lt_cv_dlopen in
8719  dlopen)
8720    save_CPPFLAGS="$CPPFLAGS"
8721    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8722
8723    save_LDFLAGS="$LDFLAGS"
8724    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8725
8726    save_LIBS="$LIBS"
8727    LIBS="$lt_cv_dlopen_libs $LIBS"
8728
8729    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8730echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8731if test "${lt_cv_dlopen_self+set}" = set; then
8732  echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734  	  if test "$cross_compiling" = yes; then :
8735  lt_cv_dlopen_self=cross
8736else
8737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8738  lt_status=$lt_dlunknown
8739  cat > conftest.$ac_ext <<EOF
8740#line 8740 "configure"
8741#include "confdefs.h"
8742
8743#if HAVE_DLFCN_H
8744#include <dlfcn.h>
8745#endif
8746
8747#include <stdio.h>
8748
8749#ifdef RTLD_GLOBAL
8750#  define LT_DLGLOBAL		RTLD_GLOBAL
8751#else
8752#  ifdef DL_GLOBAL
8753#    define LT_DLGLOBAL		DL_GLOBAL
8754#  else
8755#    define LT_DLGLOBAL		0
8756#  endif
8757#endif
8758
8759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8760   find out it does not work in some platform. */
8761#ifndef LT_DLLAZY_OR_NOW
8762#  ifdef RTLD_LAZY
8763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8764#  else
8765#    ifdef DL_LAZY
8766#      define LT_DLLAZY_OR_NOW		DL_LAZY
8767#    else
8768#      ifdef RTLD_NOW
8769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8770#      else
8771#        ifdef DL_NOW
8772#          define LT_DLLAZY_OR_NOW	DL_NOW
8773#        else
8774#          define LT_DLLAZY_OR_NOW	0
8775#        endif
8776#      endif
8777#    endif
8778#  endif
8779#endif
8780
8781#ifdef __cplusplus
8782extern "C" void exit (int);
8783#endif
8784
8785void fnord() { int i=42;}
8786int main ()
8787{
8788  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8789  int status = $lt_dlunknown;
8790
8791  if (self)
8792    {
8793      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8794      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8795      /* dlclose (self); */
8796    }
8797
8798    exit (status);
8799}
8800EOF
8801  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802  (eval $ac_link) 2>&5
8803  ac_status=$?
8804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8806    (./conftest; exit; ) 2>/dev/null
8807    lt_status=$?
8808    case x$lt_status in
8809      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8810      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8811      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8812    esac
8813  else :
8814    # compilation failed
8815    lt_cv_dlopen_self=no
8816  fi
8817fi
8818rm -fr conftest*
8819
8820
8821fi
8822echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8823echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8824
8825    if test "x$lt_cv_dlopen_self" = xyes; then
8826      LDFLAGS="$LDFLAGS $link_static_flag"
8827      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8828echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8829if test "${lt_cv_dlopen_self_static+set}" = set; then
8830  echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
8832  	  if test "$cross_compiling" = yes; then :
8833  lt_cv_dlopen_self_static=cross
8834else
8835  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8836  lt_status=$lt_dlunknown
8837  cat > conftest.$ac_ext <<EOF
8838#line 8838 "configure"
8839#include "confdefs.h"
8840
8841#if HAVE_DLFCN_H
8842#include <dlfcn.h>
8843#endif
8844
8845#include <stdio.h>
8846
8847#ifdef RTLD_GLOBAL
8848#  define LT_DLGLOBAL		RTLD_GLOBAL
8849#else
8850#  ifdef DL_GLOBAL
8851#    define LT_DLGLOBAL		DL_GLOBAL
8852#  else
8853#    define LT_DLGLOBAL		0
8854#  endif
8855#endif
8856
8857/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8858   find out it does not work in some platform. */
8859#ifndef LT_DLLAZY_OR_NOW
8860#  ifdef RTLD_LAZY
8861#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8862#  else
8863#    ifdef DL_LAZY
8864#      define LT_DLLAZY_OR_NOW		DL_LAZY
8865#    else
8866#      ifdef RTLD_NOW
8867#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8868#      else
8869#        ifdef DL_NOW
8870#          define LT_DLLAZY_OR_NOW	DL_NOW
8871#        else
8872#          define LT_DLLAZY_OR_NOW	0
8873#        endif
8874#      endif
8875#    endif
8876#  endif
8877#endif
8878
8879#ifdef __cplusplus
8880extern "C" void exit (int);
8881#endif
8882
8883void fnord() { int i=42;}
8884int main ()
8885{
8886  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8887  int status = $lt_dlunknown;
8888
8889  if (self)
8890    {
8891      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8892      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8893      /* dlclose (self); */
8894    }
8895
8896    exit (status);
8897}
8898EOF
8899  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900  (eval $ac_link) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8904    (./conftest; exit; ) 2>/dev/null
8905    lt_status=$?
8906    case x$lt_status in
8907      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8908      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8909      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8910    esac
8911  else :
8912    # compilation failed
8913    lt_cv_dlopen_self_static=no
8914  fi
8915fi
8916rm -fr conftest*
8917
8918
8919fi
8920echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8921echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8922    fi
8923
8924    CPPFLAGS="$save_CPPFLAGS"
8925    LDFLAGS="$save_LDFLAGS"
8926    LIBS="$save_LIBS"
8927    ;;
8928  esac
8929
8930  case $lt_cv_dlopen_self in
8931  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8932  *) enable_dlopen_self=unknown ;;
8933  esac
8934
8935  case $lt_cv_dlopen_self_static in
8936  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8937  *) enable_dlopen_self_static=unknown ;;
8938  esac
8939fi
8940
8941
8942# Report which librarie types wil actually be built
8943echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8944echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8945echo "$as_me:$LINENO: result: $can_build_shared" >&5
8946echo "${ECHO_T}$can_build_shared" >&6
8947
8948echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8949echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8950test "$can_build_shared" = "no" && enable_shared=no
8951
8952# On AIX, shared libraries and static libraries use the same namespace, and
8953# are all built from PIC.
8954case "$host_os" in
8955aix3*)
8956  test "$enable_shared" = yes && enable_static=no
8957  if test -n "$RANLIB"; then
8958    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8959    postinstall_cmds='$RANLIB $lib'
8960  fi
8961  ;;
8962
8963aix4*)
8964  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8965    test "$enable_shared" = yes && enable_static=no
8966  fi
8967  ;;
8968  darwin* | rhapsody*)
8969  if test "$GCC" = yes; then
8970    archive_cmds_need_lc=no
8971    case "$host_os" in
8972    rhapsody* | darwin1.[012])
8973      allow_undefined_flag='-undefined suppress'
8974      ;;
8975    *) # Darwin 1.3 on
8976      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8977      	allow_undefined_flag='-flat_namespace -undefined suppress'
8978      else
8979        case ${MACOSX_DEPLOYMENT_TARGET} in
8980          10.[012])
8981            allow_undefined_flag='-flat_namespace -undefined suppress'
8982            ;;
8983          10.*)
8984            allow_undefined_flag='-undefined dynamic_lookup'
8985            ;;
8986        esac
8987      fi
8988      ;;
8989    esac
8990    output_verbose_link_cmd='echo'
8991    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8992    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8993    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8994    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}'
8995    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}'
8996    hardcode_direct=no
8997    hardcode_automatic=yes
8998    hardcode_shlibpath_var=unsupported
8999    whole_archive_flag_spec='-all_load $convenience'
9000    link_all_deplibs=yes
9001  else
9002    ld_shlibs=no
9003  fi
9004    ;;
9005esac
9006echo "$as_me:$LINENO: result: $enable_shared" >&5
9007echo "${ECHO_T}$enable_shared" >&6
9008
9009echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9010echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9011# Make sure either enable_shared or enable_static is yes.
9012test "$enable_shared" = yes || enable_static=yes
9013echo "$as_me:$LINENO: result: $enable_static" >&5
9014echo "${ECHO_T}$enable_static" >&6
9015
9016# The else clause should only fire when bootstrapping the
9017# libtool distribution, otherwise you forgot to ship ltmain.sh
9018# with your package, and you will get complaints that there are
9019# no rules to generate ltmain.sh.
9020if test -f "$ltmain"; then
9021  # See if we are running on zsh, and set the options which allow our commands through
9022  # without removal of \ escapes.
9023  if test -n "${ZSH_VERSION+set}" ; then
9024    setopt NO_GLOB_SUBST
9025  fi
9026  # Now quote all the things that may contain metacharacters while being
9027  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9028  # variables and quote the copies for generation of the libtool script.
9029  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9030    SED SHELL STRIP \
9031    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9032    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9033    deplibs_check_method reload_flag reload_cmds need_locks \
9034    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9035    lt_cv_sys_global_symbol_to_c_name_address \
9036    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9037    old_postinstall_cmds old_postuninstall_cmds \
9038    compiler \
9039    CC \
9040    LD \
9041    lt_prog_compiler_wl \
9042    lt_prog_compiler_pic \
9043    lt_prog_compiler_static \
9044    lt_prog_compiler_no_builtin_flag \
9045    export_dynamic_flag_spec \
9046    thread_safe_flag_spec \
9047    whole_archive_flag_spec \
9048    enable_shared_with_static_runtimes \
9049    old_archive_cmds \
9050    old_archive_from_new_cmds \
9051    predep_objects \
9052    postdep_objects \
9053    predeps \
9054    postdeps \
9055    compiler_lib_search_path \
9056    archive_cmds \
9057    archive_expsym_cmds \
9058    postinstall_cmds \
9059    postuninstall_cmds \
9060    old_archive_from_expsyms_cmds \
9061    allow_undefined_flag \
9062    no_undefined_flag \
9063    export_symbols_cmds \
9064    hardcode_libdir_flag_spec \
9065    hardcode_libdir_flag_spec_ld \
9066    hardcode_libdir_separator \
9067    hardcode_automatic \
9068    module_cmds \
9069    module_expsym_cmds \
9070    lt_cv_prog_compiler_c_o \
9071    exclude_expsyms \
9072    include_expsyms; do
9073
9074    case $var in
9075    old_archive_cmds | \
9076    old_archive_from_new_cmds | \
9077    archive_cmds | \
9078    archive_expsym_cmds | \
9079    module_cmds | \
9080    module_expsym_cmds | \
9081    old_archive_from_expsyms_cmds | \
9082    export_symbols_cmds | \
9083    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9084    postinstall_cmds | postuninstall_cmds | \
9085    old_postinstall_cmds | old_postuninstall_cmds | \
9086    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9087      # Double-quote double-evaled strings.
9088      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9089      ;;
9090    *)
9091      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9092      ;;
9093    esac
9094  done
9095
9096  case $lt_echo in
9097  *'\$0 --fallback-echo"')
9098    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9099    ;;
9100  esac
9101
9102cfgfile="${ofile}T"
9103  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9104  $rm -f "$cfgfile"
9105  { echo "$as_me:$LINENO: creating $ofile" >&5
9106echo "$as_me: creating $ofile" >&6;}
9107
9108  cat <<__EOF__ >> "$cfgfile"
9109#! $SHELL
9110
9111# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9112# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9113# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9114#
9115# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9116# Free Software Foundation, Inc.
9117#
9118# This file is part of GNU Libtool:
9119# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9120#
9121# This program is free software; you can redistribute it and/or modify
9122# it under the terms of the GNU General Public License as published by
9123# the Free Software Foundation; either version 2 of the License, or
9124# (at your option) any later version.
9125#
9126# This program is distributed in the hope that it will be useful, but
9127# WITHOUT ANY WARRANTY; without even the implied warranty of
9128# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9129# General Public License for more details.
9130#
9131# You should have received a copy of the GNU General Public License
9132# along with this program; if not, write to the Free Software
9133# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9134#
9135# As a special exception to the GNU General Public License, if you
9136# distribute this file as part of a program that contains a
9137# configuration script generated by Autoconf, you may include it under
9138# the same distribution terms that you use for the rest of that program.
9139
9140# A sed program that does not truncate output.
9141SED=$lt_SED
9142
9143# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9144Xsed="$SED -e s/^X//"
9145
9146# The HP-UX ksh and POSIX shell print the target directory to stdout
9147# if CDPATH is set.
9148if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9149
9150# The names of the tagged configurations supported by this script.
9151available_tags=
9152
9153# ### BEGIN LIBTOOL CONFIG
9154
9155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9156
9157# Shell to use when invoking shell scripts.
9158SHELL=$lt_SHELL
9159
9160# Whether or not to build shared libraries.
9161build_libtool_libs=$enable_shared
9162
9163# Whether or not to build static libraries.
9164build_old_libs=$enable_static
9165
9166# Whether or not to add -lc for building shared libraries.
9167build_libtool_need_lc=$archive_cmds_need_lc
9168
9169# Whether or not to disallow shared libs when runtime libs are static
9170allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9171
9172# Whether or not to optimize for fast installation.
9173fast_install=$enable_fast_install
9174
9175# The host system.
9176host_alias=$host_alias
9177host=$host
9178
9179# An echo program that does not interpret backslashes.
9180echo=$lt_echo
9181
9182# The archiver.
9183AR=$lt_AR
9184AR_FLAGS=$lt_AR_FLAGS
9185
9186# A C compiler.
9187LTCC=$lt_LTCC
9188
9189# A language-specific compiler.
9190CC=$lt_compiler
9191
9192# Is the compiler the GNU C compiler?
9193with_gcc=$GCC
9194
9195# An ERE matcher.
9196EGREP=$lt_EGREP
9197
9198# The linker used to build libraries.
9199LD=$lt_LD
9200
9201# Whether we need hard or soft links.
9202LN_S=$lt_LN_S
9203
9204# A BSD-compatible nm program.
9205NM=$lt_NM
9206
9207# A symbol stripping program
9208STRIP=$lt_STRIP
9209
9210# Used to examine libraries when file_magic_cmd begins "file"
9211MAGIC_CMD=$MAGIC_CMD
9212
9213# Used on cygwin: DLL creation program.
9214DLLTOOL="$DLLTOOL"
9215
9216# Used on cygwin: object dumper.
9217OBJDUMP="$OBJDUMP"
9218
9219# Used on cygwin: assembler.
9220AS="$AS"
9221
9222# The name of the directory that contains temporary libtool files.
9223objdir=$objdir
9224
9225# How to create reloadable object files.
9226reload_flag=$lt_reload_flag
9227reload_cmds=$lt_reload_cmds
9228
9229# How to pass a linker flag through the compiler.
9230wl=$lt_lt_prog_compiler_wl
9231
9232# Object file suffix (normally "o").
9233objext="$ac_objext"
9234
9235# Old archive suffix (normally "a").
9236libext="$libext"
9237
9238# Shared library suffix (normally ".so").
9239shrext='$shrext'
9240
9241# Executable file suffix (normally "").
9242exeext="$exeext"
9243
9244# Additional compiler flags for building library objects.
9245pic_flag=$lt_lt_prog_compiler_pic
9246pic_mode=$pic_mode
9247
9248# What is the maximum length of a command?
9249max_cmd_len=$lt_cv_sys_max_cmd_len
9250
9251# Does compiler simultaneously support -c and -o options?
9252compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9253
9254# Must we lock files when doing compilation ?
9255need_locks=$lt_need_locks
9256
9257# Do we need the lib prefix for modules?
9258need_lib_prefix=$need_lib_prefix
9259
9260# Do we need a version for libraries?
9261need_version=$need_version
9262
9263# Whether dlopen is supported.
9264dlopen_support=$enable_dlopen
9265
9266# Whether dlopen of programs is supported.
9267dlopen_self=$enable_dlopen_self
9268
9269# Whether dlopen of statically linked programs is supported.
9270dlopen_self_static=$enable_dlopen_self_static
9271
9272# Compiler flag to prevent dynamic linking.
9273link_static_flag=$lt_lt_prog_compiler_static
9274
9275# Compiler flag to turn off builtin functions.
9276no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9277
9278# Compiler flag to allow reflexive dlopens.
9279export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9280
9281# Compiler flag to generate shared objects directly from archives.
9282whole_archive_flag_spec=$lt_whole_archive_flag_spec
9283
9284# Compiler flag to generate thread-safe objects.
9285thread_safe_flag_spec=$lt_thread_safe_flag_spec
9286
9287# Library versioning type.
9288version_type=$version_type
9289
9290# Format of library name prefix.
9291libname_spec=$lt_libname_spec
9292
9293# List of archive names.  First name is the real one, the rest are links.
9294# The last name is the one that the linker finds with -lNAME.
9295library_names_spec=$lt_library_names_spec
9296
9297# The coded name of the library, if different from the real name.
9298soname_spec=$lt_soname_spec
9299
9300# Commands used to build and install an old-style archive.
9301RANLIB=$lt_RANLIB
9302old_archive_cmds=$lt_old_archive_cmds
9303old_postinstall_cmds=$lt_old_postinstall_cmds
9304old_postuninstall_cmds=$lt_old_postuninstall_cmds
9305
9306# Create an old-style archive from a shared archive.
9307old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9308
9309# Create a temporary old-style archive to link instead of a shared archive.
9310old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9311
9312# Commands used to build and install a shared archive.
9313archive_cmds=$lt_archive_cmds
9314archive_expsym_cmds=$lt_archive_expsym_cmds
9315postinstall_cmds=$lt_postinstall_cmds
9316postuninstall_cmds=$lt_postuninstall_cmds
9317
9318# Commands used to build a loadable module (assumed same as above if empty)
9319module_cmds=$lt_module_cmds
9320module_expsym_cmds=$lt_module_expsym_cmds
9321
9322# Commands to strip libraries.
9323old_striplib=$lt_old_striplib
9324striplib=$lt_striplib
9325
9326# Dependencies to place before the objects being linked to create a
9327# shared library.
9328predep_objects=$lt_predep_objects
9329
9330# Dependencies to place after the objects being linked to create a
9331# shared library.
9332postdep_objects=$lt_postdep_objects
9333
9334# Dependencies to place before the objects being linked to create a
9335# shared library.
9336predeps=$lt_predeps
9337
9338# Dependencies to place after the objects being linked to create a
9339# shared library.
9340postdeps=$lt_postdeps
9341
9342# The library search path used internally by the compiler when linking
9343# a shared library.
9344compiler_lib_search_path=$lt_compiler_lib_search_path
9345
9346# Method to check whether dependent libraries are shared objects.
9347deplibs_check_method=$lt_deplibs_check_method
9348
9349# Command to use when deplibs_check_method == file_magic.
9350file_magic_cmd=$lt_file_magic_cmd
9351
9352# Flag that allows shared libraries with undefined symbols to be built.
9353allow_undefined_flag=$lt_allow_undefined_flag
9354
9355# Flag that forces no undefined symbols.
9356no_undefined_flag=$lt_no_undefined_flag
9357
9358# Commands used to finish a libtool library installation in a directory.
9359finish_cmds=$lt_finish_cmds
9360
9361# Same as above, but a single script fragment to be evaled but not shown.
9362finish_eval=$lt_finish_eval
9363
9364# Take the output of nm and produce a listing of raw symbols and C names.
9365global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9366
9367# Transform the output of nm in a proper C declaration
9368global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9369
9370# Transform the output of nm in a C name address pair
9371global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9372
9373# This is the shared library runtime path variable.
9374runpath_var=$runpath_var
9375
9376# This is the shared library path variable.
9377shlibpath_var=$shlibpath_var
9378
9379# Is shlibpath searched before the hard-coded library search path?
9380shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9381
9382# How to hardcode a shared library path into an executable.
9383hardcode_action=$hardcode_action
9384
9385# Whether we should hardcode library paths into libraries.
9386hardcode_into_libs=$hardcode_into_libs
9387
9388# Flag to hardcode \$libdir into a binary during linking.
9389# This must work even if \$libdir does not exist.
9390hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9391
9392# If ld is used when linking, flag to hardcode \$libdir into
9393# a binary during linking. This must work even if \$libdir does
9394# not exist.
9395hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9396
9397# Whether we need a single -rpath flag with a separated argument.
9398hardcode_libdir_separator=$lt_hardcode_libdir_separator
9399
9400# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9401# resulting binary.
9402hardcode_direct=$hardcode_direct
9403
9404# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9405# resulting binary.
9406hardcode_minus_L=$hardcode_minus_L
9407
9408# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9409# the resulting binary.
9410hardcode_shlibpath_var=$hardcode_shlibpath_var
9411
9412# Set to yes if building a shared library automatically hardcodes DIR into the library
9413# and all subsequent libraries and executables linked against it.
9414hardcode_automatic=$hardcode_automatic
9415
9416# Variables whose values should be saved in libtool wrapper scripts and
9417# restored at relink time.
9418variables_saved_for_relink="$variables_saved_for_relink"
9419
9420# Whether libtool must link a program against all its dependency libraries.
9421link_all_deplibs=$link_all_deplibs
9422
9423# Compile-time system search path for libraries
9424sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9425
9426# Run-time system search path for libraries
9427sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9428
9429# Fix the shell variable \$srcfile for the compiler.
9430fix_srcfile_path="$fix_srcfile_path"
9431
9432# Set to yes if exported symbols are required.
9433always_export_symbols=$always_export_symbols
9434
9435# The commands to list exported symbols.
9436export_symbols_cmds=$lt_export_symbols_cmds
9437
9438# The commands to extract the exported symbol list from a shared archive.
9439extract_expsyms_cmds=$lt_extract_expsyms_cmds
9440
9441# Symbols that should not be listed in the preloaded symbols.
9442exclude_expsyms=$lt_exclude_expsyms
9443
9444# Symbols that must always be exported.
9445include_expsyms=$lt_include_expsyms
9446
9447# ### END LIBTOOL CONFIG
9448
9449__EOF__
9450
9451
9452  case $host_os in
9453  aix3*)
9454    cat <<\EOF >> "$cfgfile"
9455
9456# AIX sometimes has problems with the GCC collect2 program.  For some
9457# reason, if we set the COLLECT_NAMES environment variable, the problems
9458# vanish in a puff of smoke.
9459if test "X${COLLECT_NAMES+set}" != Xset; then
9460  COLLECT_NAMES=
9461  export COLLECT_NAMES
9462fi
9463EOF
9464    ;;
9465  esac
9466
9467  # We use sed instead of cat because bash on DJGPP gets confused if
9468  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9469  # text mode, it properly converts lines to CR/LF.  This bash problem
9470  # is reportedly fixed, but why not run on old versions too?
9471  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9472
9473  mv -f "$cfgfile" "$ofile" || \
9474    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9475  chmod +x "$ofile"
9476
9477else
9478  # If there is no Makefile yet, we rely on a make rule to execute
9479  # `config.status --recheck' to rerun these tests and create the
9480  # libtool script then.
9481  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9482  if test -f "$ltmain_in"; then
9483    test -f Makefile && make "$ltmain"
9484  fi
9485fi
9486
9487
9488ac_ext=c
9489ac_cpp='$CPP $CPPFLAGS'
9490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492ac_compiler_gnu=$ac_cv_c_compiler_gnu
9493
9494CC="$lt_save_CC"
9495
9496
9497# Check whether --with-tags or --without-tags was given.
9498if test "${with_tags+set}" = set; then
9499  withval="$with_tags"
9500  tagnames="$withval"
9501fi;
9502
9503if test -f "$ltmain" && test -n "$tagnames"; then
9504  if test ! -f "${ofile}"; then
9505    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9506echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9507  fi
9508
9509  if test -z "$LTCC"; then
9510    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9511    if test -z "$LTCC"; then
9512      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9513echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9514    else
9515      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9516echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9517    fi
9518  fi
9519
9520  # Extract list of available tagged configurations in $ofile.
9521  # Note that this assumes the entire list is on one line.
9522  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9523
9524  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9525  for tagname in $tagnames; do
9526    IFS="$lt_save_ifs"
9527    # Check whether tagname contains only valid characters
9528    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9529    "") ;;
9530    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9531echo "$as_me: error: invalid tag name: $tagname" >&2;}
9532   { (exit 1); exit 1; }; }
9533	;;
9534    esac
9535
9536    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9537    then
9538      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9539echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9540   { (exit 1); exit 1; }; }
9541    fi
9542
9543    # Update the list of available tags.
9544    if test -n "$tagname"; then
9545      echo appending configuration tag \"$tagname\" to $ofile
9546
9547      case $tagname in
9548      CXX)
9549	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9550	  ac_ext=cc
9551ac_cpp='$CXXCPP $CPPFLAGS'
9552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9555
9556
9557
9558
9559archive_cmds_need_lc_CXX=no
9560allow_undefined_flag_CXX=
9561always_export_symbols_CXX=no
9562archive_expsym_cmds_CXX=
9563export_dynamic_flag_spec_CXX=
9564hardcode_direct_CXX=no
9565hardcode_libdir_flag_spec_CXX=
9566hardcode_libdir_flag_spec_ld_CXX=
9567hardcode_libdir_separator_CXX=
9568hardcode_minus_L_CXX=no
9569hardcode_automatic_CXX=no
9570module_cmds_CXX=
9571module_expsym_cmds_CXX=
9572link_all_deplibs_CXX=unknown
9573old_archive_cmds_CXX=$old_archive_cmds
9574no_undefined_flag_CXX=
9575whole_archive_flag_spec_CXX=
9576enable_shared_with_static_runtimes_CXX=no
9577
9578# Dependencies to place before and after the object being linked:
9579predep_objects_CXX=
9580postdep_objects_CXX=
9581predeps_CXX=
9582postdeps_CXX=
9583compiler_lib_search_path_CXX=
9584
9585# Source file extension for C++ test sources.
9586ac_ext=cc
9587
9588# Object file extension for compiled C++ test sources.
9589objext=o
9590objext_CXX=$objext
9591
9592# Code to be used in simple compile tests
9593lt_simple_compile_test_code="int some_variable = 0;\n"
9594
9595# Code to be used in simple link tests
9596lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9597
9598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9599
9600# If no C compiler was specified, use CC.
9601LTCC=${LTCC-"$CC"}
9602
9603# Allow CC to be a program name with arguments.
9604compiler=$CC
9605
9606
9607# Allow CC to be a program name with arguments.
9608lt_save_CC=$CC
9609lt_save_LD=$LD
9610lt_save_GCC=$GCC
9611GCC=$GXX
9612lt_save_with_gnu_ld=$with_gnu_ld
9613lt_save_path_LD=$lt_cv_path_LD
9614if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9615  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9616else
9617  unset lt_cv_prog_gnu_ld
9618fi
9619if test -n "${lt_cv_path_LDCXX+set}"; then
9620  lt_cv_path_LD=$lt_cv_path_LDCXX
9621else
9622  unset lt_cv_path_LD
9623fi
9624test -z "${LDCXX+set}" || LD=$LDCXX
9625CC=${CXX-"c++"}
9626compiler=$CC
9627compiler_CXX=$CC
9628cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9629
9630# We don't want -fno-exception wen compiling C++ code, so set the
9631# no_builtin_flag separately
9632if test "$GXX" = yes; then
9633  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9634else
9635  lt_prog_compiler_no_builtin_flag_CXX=
9636fi
9637
9638if test "$GXX" = yes; then
9639  # Set up default GNU C++ configuration
9640
9641
9642# Check whether --with-gnu-ld or --without-gnu-ld was given.
9643if test "${with_gnu_ld+set}" = set; then
9644  withval="$with_gnu_ld"
9645  test "$withval" = no || with_gnu_ld=yes
9646else
9647  with_gnu_ld=no
9648fi;
9649ac_prog=ld
9650if test "$GCC" = yes; then
9651  # Check if gcc -print-prog-name=ld gives a path.
9652  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9653echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9654  case $host in
9655  *-*-mingw*)
9656    # gcc leaves a trailing carriage return which upsets mingw
9657    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9658  *)
9659    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9660  esac
9661  case $ac_prog in
9662    # Accept absolute paths.
9663    [\\/]* | ?:[\\/]*)
9664      re_direlt='/[^/][^/]*/\.\./'
9665      # Canonicalize the pathname of ld
9666      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9667      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9668	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9669      done
9670      test -z "$LD" && LD="$ac_prog"
9671      ;;
9672  "")
9673    # If it fails, then pretend we aren't using GCC.
9674    ac_prog=ld
9675    ;;
9676  *)
9677    # If it is relative, then search for the first ld in PATH.
9678    with_gnu_ld=unknown
9679    ;;
9680  esac
9681elif test "$with_gnu_ld" = yes; then
9682  echo "$as_me:$LINENO: checking for GNU ld" >&5
9683echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9684else
9685  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9686echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9687fi
9688if test "${lt_cv_path_LD+set}" = set; then
9689  echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691  if test -z "$LD"; then
9692  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9693  for ac_dir in $PATH; do
9694    IFS="$lt_save_ifs"
9695    test -z "$ac_dir" && ac_dir=.
9696    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9697      lt_cv_path_LD="$ac_dir/$ac_prog"
9698      # Check to see if the program is GNU ld.  I'd rather use --version,
9699      # but apparently some GNU ld's only accept -v.
9700      # Break only if it was the GNU/non-GNU ld that we prefer.
9701      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9702      *GNU* | *'with BFD'*)
9703	test "$with_gnu_ld" != no && break
9704	;;
9705      *)
9706	test "$with_gnu_ld" != yes && break
9707	;;
9708      esac
9709    fi
9710  done
9711  IFS="$lt_save_ifs"
9712else
9713  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9714fi
9715fi
9716
9717LD="$lt_cv_path_LD"
9718if test -n "$LD"; then
9719  echo "$as_me:$LINENO: result: $LD" >&5
9720echo "${ECHO_T}$LD" >&6
9721else
9722  echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724fi
9725test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9726echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9727   { (exit 1); exit 1; }; }
9728echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9729echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9730if test "${lt_cv_prog_gnu_ld+set}" = set; then
9731  echo $ECHO_N "(cached) $ECHO_C" >&6
9732else
9733  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9734case `$LD -v 2>&1 </dev/null` in
9735*GNU* | *'with BFD'*)
9736  lt_cv_prog_gnu_ld=yes
9737  ;;
9738*)
9739  lt_cv_prog_gnu_ld=no
9740  ;;
9741esac
9742fi
9743echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9744echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9745with_gnu_ld=$lt_cv_prog_gnu_ld
9746
9747
9748
9749  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9750  # archiving commands below assume that GNU ld is being used.
9751  if test "$with_gnu_ld" = yes; then
9752    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753    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'
9754
9755    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9756    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9757
9758    # If archive_cmds runs LD, not CC, wlarc should be empty
9759    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9760    #     investigate it a little bit more. (MM)
9761    wlarc='${wl}'
9762
9763    # ancient GNU ld didn't support --whole-archive et. al.
9764    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9765	grep 'no-whole-archive' > /dev/null; then
9766      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9767    else
9768      whole_archive_flag_spec_CXX=
9769    fi
9770  else
9771    with_gnu_ld=no
9772    wlarc=
9773
9774    # A generic and very simple default shared library creation
9775    # command for GNU C++ for the case where it uses the native
9776    # linker, instead of GNU ld.  If possible, this setting should
9777    # overridden to take advantage of the native linker features on
9778    # the platform it is being used on.
9779    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9780  fi
9781
9782  # Commands to make compiler produce verbose output that lists
9783  # what "hidden" libraries, object files and flags are used when
9784  # linking a shared library.
9785  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9786
9787else
9788  GXX=no
9789  with_gnu_ld=no
9790  wlarc=
9791fi
9792
9793# PORTME: fill in a description of your system's C++ link characteristics
9794echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9795echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9796ld_shlibs_CXX=yes
9797case $host_os in
9798  aix3*)
9799    # FIXME: insert proper C++ library support
9800    ld_shlibs_CXX=no
9801    ;;
9802  aix4* | aix5*)
9803    if test "$host_cpu" = ia64; then
9804      # On IA64, the linker does run time linking by default, so we don't
9805      # have to do anything special.
9806      aix_use_runtimelinking=no
9807      exp_sym_flag='-Bexport'
9808      no_entry_flag=""
9809    else
9810      aix_use_runtimelinking=no
9811
9812      # Test if we are trying to use run time linking or normal
9813      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9814      # need to do runtime linking.
9815      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9816	for ld_flag in $LDFLAGS; do
9817	  case $ld_flag in
9818	  *-brtl*)
9819	    aix_use_runtimelinking=yes
9820	    break
9821	    ;;
9822	  esac
9823	done
9824      esac
9825
9826      exp_sym_flag='-bexport'
9827      no_entry_flag='-bnoentry'
9828    fi
9829
9830    # When large executables or shared objects are built, AIX ld can
9831    # have problems creating the table of contents.  If linking a library
9832    # or program results in "error TOC overflow" add -mminimal-toc to
9833    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9834    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9835
9836    archive_cmds_CXX=''
9837    hardcode_direct_CXX=yes
9838    hardcode_libdir_separator_CXX=':'
9839    link_all_deplibs_CXX=yes
9840
9841    if test "$GXX" = yes; then
9842      case $host_os in aix4.012|aix4.012.*)
9843      # We only want to do this on AIX 4.2 and lower, the check
9844      # below for broken collect2 doesn't work under 4.3+
9845	collect2name=`${CC} -print-prog-name=collect2`
9846	if test -f "$collect2name" && \
9847	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9848	then
9849	  # We have reworked collect2
9850	  hardcode_direct_CXX=yes
9851	else
9852	  # We have old collect2
9853	  hardcode_direct_CXX=unsupported
9854	  # It fails to find uninstalled libraries when the uninstalled
9855	  # path is not listed in the libpath.  Setting hardcode_minus_L
9856	  # to unsupported forces relinking
9857	  hardcode_minus_L_CXX=yes
9858	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9859	  hardcode_libdir_separator_CXX=
9860	fi
9861      esac
9862      shared_flag='-shared'
9863    else
9864      # not using gcc
9865      if test "$host_cpu" = ia64; then
9866	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9867	# chokes on -Wl,-G. The following line is correct:
9868	shared_flag='-G'
9869      else
9870	if test "$aix_use_runtimelinking" = yes; then
9871	  shared_flag='${wl}-G'
9872	else
9873	  shared_flag='${wl}-bM:SRE'
9874	fi
9875      fi
9876    fi
9877
9878    # It seems that -bexpall does not export symbols beginning with
9879    # underscore (_), so it is better to generate a list of symbols to export.
9880    always_export_symbols_CXX=yes
9881    if test "$aix_use_runtimelinking" = yes; then
9882      # Warning - without using the other runtime loading flags (-brtl),
9883      # -berok will link without error, but may produce a broken library.
9884      allow_undefined_flag_CXX='-berok'
9885      # Determine the default libpath from the value encoded in an empty executable.
9886      cat >conftest.$ac_ext <<_ACEOF
9887/* confdefs.h.  */
9888_ACEOF
9889cat confdefs.h >>conftest.$ac_ext
9890cat >>conftest.$ac_ext <<_ACEOF
9891/* end confdefs.h.  */
9892
9893int
9894main ()
9895{
9896
9897  ;
9898  return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext conftest$ac_exeext
9902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903  (eval $ac_link) 2>conftest.er1
9904  ac_status=$?
9905  grep -v '^ *+' conftest.er1 >conftest.err
9906  rm -f conftest.er1
9907  cat conftest.err >&5
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); } &&
9910	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912  (eval $ac_try) 2>&5
9913  ac_status=$?
9914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915  (exit $ac_status); }; } &&
9916	 { ac_try='test -s conftest$ac_exeext'
9917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918  (eval $ac_try) 2>&5
9919  ac_status=$?
9920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921  (exit $ac_status); }; }; then
9922
9923aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9924}'`
9925# Check for a 64-bit object if we didn't find anything.
9926if 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; }
9927}'`; fi
9928else
9929  echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
9932fi
9933rm -f conftest.err conftest.$ac_objext \
9934      conftest$ac_exeext conftest.$ac_ext
9935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9936
9937      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9938
9939      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"
9940     else
9941      if test "$host_cpu" = ia64; then
9942	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9943	allow_undefined_flag_CXX="-z nodefs"
9944	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"
9945      else
9946	# Determine the default libpath from the value encoded in an empty executable.
9947	cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h.  */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h.  */
9953
9954int
9955main ()
9956{
9957
9958  ;
9959  return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964  (eval $ac_link) 2>conftest.er1
9965  ac_status=$?
9966  grep -v '^ *+' conftest.er1 >conftest.err
9967  rm -f conftest.er1
9968  cat conftest.err >&5
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); } &&
9971	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973  (eval $ac_try) 2>&5
9974  ac_status=$?
9975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976  (exit $ac_status); }; } &&
9977	 { ac_try='test -s conftest$ac_exeext'
9978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979  (eval $ac_try) 2>&5
9980  ac_status=$?
9981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); }; }; then
9983
9984aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9985}'`
9986# Check for a 64-bit object if we didn't find anything.
9987if 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; }
9988}'`; fi
9989else
9990  echo "$as_me: failed program was:" >&5
9991sed 's/^/| /' conftest.$ac_ext >&5
9992
9993fi
9994rm -f conftest.err conftest.$ac_objext \
9995      conftest$ac_exeext conftest.$ac_ext
9996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9997
9998	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9999	# Warning - without using the other run time loading flags,
10000	# -berok will link without error, but may produce a broken library.
10001	no_undefined_flag_CXX=' ${wl}-bernotok'
10002	allow_undefined_flag_CXX=' ${wl}-berok'
10003	# -bexpall does not export symbols beginning with underscore (_)
10004	always_export_symbols_CXX=yes
10005	# Exported symbols can be pulled into shared objects from archives
10006	whole_archive_flag_spec_CXX=' '
10007	archive_cmds_need_lc_CXX=yes
10008	# This is similar to how AIX traditionally builds it's shared libraries.
10009	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'
10010      fi
10011    fi
10012    ;;
10013  chorus*)
10014    case $cc_basename in
10015      *)
10016	# FIXME: insert proper C++ library support
10017	ld_shlibs_CXX=no
10018	;;
10019    esac
10020    ;;
10021
10022  cygwin* | mingw* | pw32*)
10023    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10024    # as there is no search path for DLLs.
10025    hardcode_libdir_flag_spec_CXX='-L$libdir'
10026    allow_undefined_flag_CXX=unsupported
10027    always_export_symbols_CXX=no
10028    enable_shared_with_static_runtimes_CXX=yes
10029
10030    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10031      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'
10032      # If the export-symbols file already is a .def file (1st line
10033      # is EXPORTS), use it as is; otherwise, prepend...
10034      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035	cp $export_symbols $output_objdir/$soname.def;
10036      else
10037	echo EXPORTS > $output_objdir/$soname.def;
10038	cat $export_symbols >> $output_objdir/$soname.def;
10039      fi~
10040      $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'
10041    else
10042      ld_shlibs_CXX=no
10043    fi
10044  ;;
10045
10046  darwin* | rhapsody*)
10047  if test "$GXX" = yes; then
10048    archive_cmds_need_lc_CXX=no
10049    case "$host_os" in
10050    rhapsody* | darwin1.[012])
10051      allow_undefined_flag_CXX='-undefined suppress'
10052      ;;
10053    *) # Darwin 1.3 on
10054      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10055      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10056      else
10057        case ${MACOSX_DEPLOYMENT_TARGET} in
10058          10.[012])
10059            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10060            ;;
10061          10.*)
10062            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10063            ;;
10064        esac
10065      fi
10066      ;;
10067    esac
10068    lt_int_apple_cc_single_mod=no
10069    output_verbose_link_cmd='echo'
10070    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10071      lt_int_apple_cc_single_mod=yes
10072    fi
10073    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10074      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10075    else
10076      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10077    fi
10078    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10079
10080    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10081    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10082      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}'
10083    else
10084      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10085    fi
10086    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}'
10087    hardcode_direct_CXX=no
10088    hardcode_automatic_CXX=yes
10089    hardcode_shlibpath_var_CXX=unsupported
10090    whole_archive_flag_spec_CXX='-all_load $convenience'
10091    link_all_deplibs_CXX=yes
10092  else
10093    ld_shlibs_CXX=no
10094  fi
10095    ;;
10096
10097  dgux*)
10098    case $cc_basename in
10099      ec++)
10100	# FIXME: insert proper C++ library support
10101	ld_shlibs_CXX=no
10102	;;
10103      ghcx)
10104	# Green Hills C++ Compiler
10105	# FIXME: insert proper C++ library support
10106	ld_shlibs_CXX=no
10107	;;
10108      *)
10109	# FIXME: insert proper C++ library support
10110	ld_shlibs_CXX=no
10111	;;
10112    esac
10113    ;;
10114  freebsd12*)
10115    # C++ shared libraries reported to be fairly broken before switch to ELF
10116    ld_shlibs_CXX=no
10117    ;;
10118  freebsd-elf*)
10119    archive_cmds_need_lc_CXX=no
10120    ;;
10121  freebsd* | kfreebsd*-gnu)
10122    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10123    # conventions
10124    ld_shlibs_CXX=yes
10125    ;;
10126  gnu*)
10127    ;;
10128  hpux9*)
10129    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10130    hardcode_libdir_separator_CXX=:
10131    export_dynamic_flag_spec_CXX='${wl}-E'
10132    hardcode_direct_CXX=yes
10133    hardcode_minus_L_CXX=yes # Not in the search PATH,
10134				# but as the default
10135				# location of the library.
10136
10137    case $cc_basename in
10138    CC)
10139      # FIXME: insert proper C++ library support
10140      ld_shlibs_CXX=no
10141      ;;
10142    aCC)
10143      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'
10144      # Commands to make compiler produce verbose output that lists
10145      # what "hidden" libraries, object files and flags are used when
10146      # linking a shared library.
10147      #
10148      # There doesn't appear to be a way to prevent this compiler from
10149      # explicitly linking system object files so we need to strip them
10150      # from the output so that they don't get included in the library
10151      # dependencies.
10152      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10153      ;;
10154    *)
10155      if test "$GXX" = yes; then
10156        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'
10157      else
10158        # FIXME: insert proper C++ library support
10159        ld_shlibs_CXX=no
10160      fi
10161      ;;
10162    esac
10163    ;;
10164  hpux10*|hpux11*)
10165    if test $with_gnu_ld = no; then
10166      case "$host_cpu" in
10167      hppa*64*)
10168	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10169	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10170	hardcode_libdir_separator_CXX=:
10171        ;;
10172      ia64*)
10173	hardcode_libdir_flag_spec_CXX='-L$libdir'
10174        ;;
10175      *)
10176	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10177	hardcode_libdir_separator_CXX=:
10178	export_dynamic_flag_spec_CXX='${wl}-E'
10179        ;;
10180      esac
10181    fi
10182    case "$host_cpu" in
10183    hppa*64*)
10184      hardcode_direct_CXX=no
10185      hardcode_shlibpath_var_CXX=no
10186      ;;
10187    ia64*)
10188      hardcode_direct_CXX=no
10189      hardcode_shlibpath_var_CXX=no
10190      hardcode_minus_L_CXX=yes # Not in the search PATH,
10191					      # but as the default
10192					      # location of the library.
10193      ;;
10194    *)
10195      hardcode_direct_CXX=yes
10196      hardcode_minus_L_CXX=yes # Not in the search PATH,
10197					      # but as the default
10198					      # location of the library.
10199      ;;
10200    esac
10201
10202    case $cc_basename in
10203      CC)
10204	# FIXME: insert proper C++ library support
10205	ld_shlibs_CXX=no
10206	;;
10207      aCC)
10208	case "$host_cpu" in
10209	hppa*64*|ia64*)
10210	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10211	  ;;
10212	*)
10213	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10214	  ;;
10215	esac
10216	# Commands to make compiler produce verbose output that lists
10217	# what "hidden" libraries, object files and flags are used when
10218	# linking a shared library.
10219	#
10220	# There doesn't appear to be a way to prevent this compiler from
10221	# explicitly linking system object files so we need to strip them
10222	# from the output so that they don't get included in the library
10223	# dependencies.
10224	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'
10225	;;
10226      *)
10227	if test "$GXX" = yes; then
10228	  if test $with_gnu_ld = no; then
10229	    case "$host_cpu" in
10230	    ia64*|hppa*64*)
10231	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10232	      ;;
10233	    *)
10234	      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'
10235	      ;;
10236	    esac
10237	  fi
10238	else
10239	  # FIXME: insert proper C++ library support
10240	  ld_shlibs_CXX=no
10241	fi
10242	;;
10243    esac
10244    ;;
10245  irix5* | irix6*)
10246    case $cc_basename in
10247      CC)
10248	# SGI C++
10249	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'
10250
10251	# Archives containing C++ object files must be created using
10252	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10253	# necessary to make sure instantiated templates are included
10254	# in the archive.
10255	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10256	;;
10257      *)
10258	if test "$GXX" = yes; then
10259	  if test "$with_gnu_ld" = no; then
10260	    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'
10261	  else
10262	    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'
10263	  fi
10264	fi
10265	link_all_deplibs_CXX=yes
10266	;;
10267    esac
10268    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10269    hardcode_libdir_separator_CXX=:
10270    ;;
10271  linux*)
10272    case $cc_basename in
10273      KCC)
10274	# Kuck and Associates, Inc. (KAI) C++ Compiler
10275
10276	# KCC will only create a shared library if the output file
10277	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10278	# to its proper name (with version) after linking.
10279	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'
10280	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'
10281	# Commands to make compiler produce verbose output that lists
10282	# what "hidden" libraries, object files and flags are used when
10283	# linking a shared library.
10284	#
10285	# There doesn't appear to be a way to prevent this compiler from
10286	# explicitly linking system object files so we need to strip them
10287	# from the output so that they don't get included in the library
10288	# dependencies.
10289	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'
10290
10291	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10292	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10293
10294	# Archives containing C++ object files must be created using
10295	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10296	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10297	;;
10298      icpc)
10299	# Intel C++
10300	with_gnu_ld=yes
10301	archive_cmds_need_lc_CXX=no
10302	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303	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'
10304	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10305	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10306	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10307	;;
10308      cxx)
10309	# Compaq C++
10310	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311	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'
10312
10313	runpath_var=LD_RUN_PATH
10314	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10315	hardcode_libdir_separator_CXX=:
10316
10317	# Commands to make compiler produce verbose output that lists
10318	# what "hidden" libraries, object files and flags are used when
10319	# linking a shared library.
10320	#
10321	# There doesn't appear to be a way to prevent this compiler from
10322	# explicitly linking system object files so we need to strip them
10323	# from the output so that they don't get included in the library
10324	# dependencies.
10325	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'
10326	;;
10327    esac
10328    ;;
10329  lynxos*)
10330    # FIXME: insert proper C++ library support
10331    ld_shlibs_CXX=no
10332    ;;
10333  m88k*)
10334    # FIXME: insert proper C++ library support
10335    ld_shlibs_CXX=no
10336    ;;
10337  mvs*)
10338    case $cc_basename in
10339      cxx)
10340	# FIXME: insert proper C++ library support
10341	ld_shlibs_CXX=no
10342	;;
10343      *)
10344	# FIXME: insert proper C++ library support
10345	ld_shlibs_CXX=no
10346	;;
10347    esac
10348    ;;
10349  netbsd* | knetbsd*-gnu)
10350    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10351      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10352      wlarc=
10353      hardcode_libdir_flag_spec_CXX='-R$libdir'
10354      hardcode_direct_CXX=yes
10355      hardcode_shlibpath_var_CXX=no
10356    fi
10357    # Workaround some broken pre-1.5 toolchains
10358    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10359    ;;
10360  osf3*)
10361    case $cc_basename in
10362      KCC)
10363	# Kuck and Associates, Inc. (KAI) C++ Compiler
10364
10365	# KCC will only create a shared library if the output file
10366	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10367	# to its proper name (with version) after linking.
10368	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'
10369
10370	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10371	hardcode_libdir_separator_CXX=:
10372
10373	# Archives containing C++ object files must be created using
10374	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10375	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10376
10377	;;
10378      RCC)
10379	# Rational C++ 2.4.1
10380	# FIXME: insert proper C++ library support
10381	ld_shlibs_CXX=no
10382	;;
10383      cxx)
10384	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10385	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'
10386
10387	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10388	hardcode_libdir_separator_CXX=:
10389
10390	# Commands to make compiler produce verbose output that lists
10391	# what "hidden" libraries, object files and flags are used when
10392	# linking a shared library.
10393	#
10394	# There doesn't appear to be a way to prevent this compiler from
10395	# explicitly linking system object files so we need to strip them
10396	# from the output so that they don't get included in the library
10397	# dependencies.
10398	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'
10399	;;
10400      *)
10401	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10402	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10403	  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'
10404
10405	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10406	  hardcode_libdir_separator_CXX=:
10407
10408	  # Commands to make compiler produce verbose output that lists
10409	  # what "hidden" libraries, object files and flags are used when
10410	  # linking a shared library.
10411	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10412
10413	else
10414	  # FIXME: insert proper C++ library support
10415	  ld_shlibs_CXX=no
10416	fi
10417	;;
10418    esac
10419    ;;
10420  osf4* | osf5*)
10421    case $cc_basename in
10422      KCC)
10423	# Kuck and Associates, Inc. (KAI) C++ Compiler
10424
10425	# KCC will only create a shared library if the output file
10426	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10427	# to its proper name (with version) after linking.
10428	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'
10429
10430	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10431	hardcode_libdir_separator_CXX=:
10432
10433	# Archives containing C++ object files must be created using
10434	# the KAI C++ compiler.
10435	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10436	;;
10437      RCC)
10438	# Rational C++ 2.4.1
10439	# FIXME: insert proper C++ library support
10440	ld_shlibs_CXX=no
10441	;;
10442      cxx)
10443	allow_undefined_flag_CXX=' -expect_unresolved \*'
10444	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'
10445	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10446	  echo "-hidden">> $lib.exp~
10447	  $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~
10448	  $rm $lib.exp'
10449
10450	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10451	hardcode_libdir_separator_CXX=:
10452
10453	# Commands to make compiler produce verbose output that lists
10454	# what "hidden" libraries, object files and flags are used when
10455	# linking a shared library.
10456	#
10457	# There doesn't appear to be a way to prevent this compiler from
10458	# explicitly linking system object files so we need to strip them
10459	# from the output so that they don't get included in the library
10460	# dependencies.
10461	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'
10462	;;
10463      *)
10464	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10465	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10466	 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'
10467
10468	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10469	  hardcode_libdir_separator_CXX=:
10470
10471	  # Commands to make compiler produce verbose output that lists
10472	  # what "hidden" libraries, object files and flags are used when
10473	  # linking a shared library.
10474	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10475
10476	else
10477	  # FIXME: insert proper C++ library support
10478	  ld_shlibs_CXX=no
10479	fi
10480	;;
10481    esac
10482    ;;
10483  psos*)
10484    # FIXME: insert proper C++ library support
10485    ld_shlibs_CXX=no
10486    ;;
10487  sco*)
10488    archive_cmds_need_lc_CXX=no
10489    case $cc_basename in
10490      CC)
10491	# FIXME: insert proper C++ library support
10492	ld_shlibs_CXX=no
10493	;;
10494      *)
10495	# FIXME: insert proper C++ library support
10496	ld_shlibs_CXX=no
10497	;;
10498    esac
10499    ;;
10500  sunos4*)
10501    case $cc_basename in
10502      CC)
10503	# Sun C++ 4.x
10504	# FIXME: insert proper C++ library support
10505	ld_shlibs_CXX=no
10506	;;
10507      lcc)
10508	# Lucid
10509	# FIXME: insert proper C++ library support
10510	ld_shlibs_CXX=no
10511	;;
10512      *)
10513	# FIXME: insert proper C++ library support
10514	ld_shlibs_CXX=no
10515	;;
10516    esac
10517    ;;
10518  solaris*)
10519    case $cc_basename in
10520      CC)
10521	# Sun C++ 4.2, 5.x and Centerline C++
10522	no_undefined_flag_CXX=' -zdefs'
10523	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10524	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10525	$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'
10526
10527	hardcode_libdir_flag_spec_CXX='-R$libdir'
10528	hardcode_shlibpath_var_CXX=no
10529	case $host_os in
10530	  solaris2.0-5 | solaris2.0-5.*) ;;
10531	  *)
10532	    # The C++ compiler is used as linker so we must use $wl
10533	    # flag to pass the commands to the underlying system
10534	    # linker.
10535	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10536	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10537	    ;;
10538	esac
10539	link_all_deplibs_CXX=yes
10540
10541	# Commands to make compiler produce verbose output that lists
10542	# what "hidden" libraries, object files and flags are used when
10543	# linking a shared library.
10544	#
10545	# There doesn't appear to be a way to prevent this compiler from
10546	# explicitly linking system object files so we need to strip them
10547	# from the output so that they don't get included in the library
10548	# dependencies.
10549	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'
10550
10551	# Archives containing C++ object files must be created using
10552	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10553	# necessary to make sure instantiated templates are included
10554	# in the archive.
10555	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10556	;;
10557      gcx)
10558	# Green Hills C++ Compiler
10559	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10560
10561	# The C++ compiler must be used to create the archive.
10562	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10563	;;
10564      *)
10565	# GNU C++ compiler with Solaris linker
10566	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10567	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10568	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10569	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10570	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10571		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10572
10573	    # Commands to make compiler produce verbose output that lists
10574	    # what "hidden" libraries, object files and flags are used when
10575	    # linking a shared library.
10576	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10577	  else
10578	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10579	    # platform.
10580	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10581	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10582		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10583
10584	    # Commands to make compiler produce verbose output that lists
10585	    # what "hidden" libraries, object files and flags are used when
10586	    # linking a shared library.
10587	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10588	  fi
10589
10590	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10591	fi
10592	;;
10593    esac
10594    ;;
10595  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10596    archive_cmds_need_lc_CXX=no
10597    ;;
10598  tandem*)
10599    case $cc_basename in
10600      NCC)
10601	# NonStop-UX NCC 3.20
10602	# FIXME: insert proper C++ library support
10603	ld_shlibs_CXX=no
10604	;;
10605      *)
10606	# FIXME: insert proper C++ library support
10607	ld_shlibs_CXX=no
10608	;;
10609    esac
10610    ;;
10611  vxworks*)
10612    # FIXME: insert proper C++ library support
10613    ld_shlibs_CXX=no
10614    ;;
10615  *)
10616    # FIXME: insert proper C++ library support
10617    ld_shlibs_CXX=no
10618    ;;
10619esac
10620echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10621echo "${ECHO_T}$ld_shlibs_CXX" >&6
10622test "$ld_shlibs_CXX" = no && can_build_shared=no
10623
10624GCC_CXX="$GXX"
10625LD_CXX="$LD"
10626
10627
10628cat > conftest.$ac_ext <<EOF
10629class Foo
10630{
10631public:
10632  Foo (void) { a = 0; }
10633private:
10634  int a;
10635};
10636EOF
10637
10638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639  (eval $ac_compile) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; then
10643  # Parse the compiler output and extract the necessary
10644  # objects, libraries and library flags.
10645
10646  # Sentinel used to keep track of whether or not we are before
10647  # the conftest object file.
10648  pre_test_object_deps_done=no
10649
10650  # The `*' in the case matches for architectures that use `case' in
10651  # $output_verbose_cmd can trigger glob expansion during the loop
10652  # eval without this substitution.
10653  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10654
10655  for p in `eval $output_verbose_link_cmd`; do
10656    case $p in
10657
10658    -L* | -R* | -l*)
10659       # Some compilers place space between "-{L,R}" and the path.
10660       # Remove the space.
10661       if test $p = "-L" \
10662	  || test $p = "-R"; then
10663	 prev=$p
10664	 continue
10665       else
10666	 prev=
10667       fi
10668
10669       if test "$pre_test_object_deps_done" = no; then
10670	 case $p in
10671	 -L* | -R*)
10672	   # Internal compiler library paths should come after those
10673	   # provided the user.  The postdeps already come after the
10674	   # user supplied libs so there is no need to process them.
10675	   if test -z "$compiler_lib_search_path_CXX"; then
10676	     compiler_lib_search_path_CXX="${prev}${p}"
10677	   else
10678	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10679	   fi
10680	   ;;
10681	 # The "-l" case would never come before the object being
10682	 # linked, so don't bother handling this case.
10683	 esac
10684       else
10685	 if test -z "$postdeps_CXX"; then
10686	   postdeps_CXX="${prev}${p}"
10687	 else
10688	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10689	 fi
10690       fi
10691       ;;
10692
10693    *.$objext)
10694       # This assumes that the test object file only shows up
10695       # once in the compiler output.
10696       if test "$p" = "conftest.$objext"; then
10697	 pre_test_object_deps_done=yes
10698	 continue
10699       fi
10700
10701       if test "$pre_test_object_deps_done" = no; then
10702	 if test -z "$predep_objects_CXX"; then
10703	   predep_objects_CXX="$p"
10704	 else
10705	   predep_objects_CXX="$predep_objects_CXX $p"
10706	 fi
10707       else
10708	 if test -z "$postdep_objects_CXX"; then
10709	   postdep_objects_CXX="$p"
10710	 else
10711	   postdep_objects_CXX="$postdep_objects_CXX $p"
10712	 fi
10713       fi
10714       ;;
10715
10716    *) ;; # Ignore the rest.
10717
10718    esac
10719  done
10720
10721  # Clean up.
10722  rm -f a.out a.exe
10723else
10724  echo "libtool.m4: error: problem compiling CXX test program"
10725fi
10726
10727$rm -f confest.$objext
10728
10729case " $postdeps_CXX " in
10730*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10731esac
10732
10733lt_prog_compiler_wl_CXX=
10734lt_prog_compiler_pic_CXX=
10735lt_prog_compiler_static_CXX=
10736
10737echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10738echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10739
10740  # C++ specific cases for pic, static, wl, etc.
10741  if test "$GXX" = yes; then
10742    lt_prog_compiler_wl_CXX='-Wl,'
10743    lt_prog_compiler_static_CXX='-static'
10744
10745    case $host_os in
10746    aix*)
10747      # All AIX code is PIC.
10748      if test "$host_cpu" = ia64; then
10749	# AIX 5 now supports IA64 processor
10750	lt_prog_compiler_static_CXX='-Bstatic'
10751      fi
10752      ;;
10753    amigaos*)
10754      # FIXME: we need at least 68020 code to build shared libraries, but
10755      # adding the `-m68020' flag to GCC prevents building anything better,
10756      # like `-m68040'.
10757      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10758      ;;
10759    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10760      # PIC is the default for these OSes.
10761      ;;
10762    mingw* | os2* | pw32*)
10763      # This hack is so that the source file can tell whether it is being
10764      # built for inclusion in a dll (and should export symbols for example).
10765      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10766      ;;
10767    darwin* | rhapsody*)
10768      # PIC is the default on this platform
10769      # Common symbols not allowed in MH_DYLIB files
10770      lt_prog_compiler_pic_CXX='-fno-common'
10771      ;;
10772    *djgpp*)
10773      # DJGPP does not support shared libraries at all
10774      lt_prog_compiler_pic_CXX=
10775      ;;
10776    sysv4*MP*)
10777      if test -d /usr/nec; then
10778	lt_prog_compiler_pic_CXX=-Kconform_pic
10779      fi
10780      ;;
10781    hpux*)
10782      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10783      # not for PA HP-UX.
10784      case "$host_cpu" in
10785      hppa*64*|ia64*)
10786	;;
10787      *)
10788	lt_prog_compiler_pic_CXX='-fPIC'
10789	;;
10790      esac
10791      ;;
10792    *)
10793      lt_prog_compiler_pic_CXX='-fPIC'
10794      ;;
10795    esac
10796  else
10797    case $host_os in
10798      aix4* | aix5*)
10799	# All AIX code is PIC.
10800	if test "$host_cpu" = ia64; then
10801	  # AIX 5 now supports IA64 processor
10802	  lt_prog_compiler_static_CXX='-Bstatic'
10803	else
10804	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10805	fi
10806	;;
10807      chorus*)
10808	case $cc_basename in
10809	cxch68)
10810	  # Green Hills C++ Compiler
10811	  # _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"
10812	  ;;
10813	esac
10814	;;
10815      dgux*)
10816	case $cc_basename in
10817	  ec++)
10818	    lt_prog_compiler_pic_CXX='-KPIC'
10819	    ;;
10820	  ghcx)
10821	    # Green Hills C++ Compiler
10822	    lt_prog_compiler_pic_CXX='-pic'
10823	    ;;
10824	  *)
10825	    ;;
10826	esac
10827	;;
10828      freebsd* | kfreebsd*-gnu)
10829	# FreeBSD uses GNU C++
10830	;;
10831      hpux9* | hpux10* | hpux11*)
10832	case $cc_basename in
10833	  CC)
10834	    lt_prog_compiler_wl_CXX='-Wl,'
10835	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10836	    if test "$host_cpu" != ia64; then
10837	      lt_prog_compiler_pic_CXX='+Z'
10838	    fi
10839	    ;;
10840	  aCC)
10841	    lt_prog_compiler_wl_CXX='-Wl,'
10842	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10843	    case "$host_cpu" in
10844	    hppa*64*|ia64*)
10845	      # +Z the default
10846	      ;;
10847	    *)
10848	      lt_prog_compiler_pic_CXX='+Z'
10849	      ;;
10850	    esac
10851	    ;;
10852	  *)
10853	    ;;
10854	esac
10855	;;
10856      irix5* | irix6* | nonstopux*)
10857	case $cc_basename in
10858	  CC)
10859	    lt_prog_compiler_wl_CXX='-Wl,'
10860	    lt_prog_compiler_static_CXX='-non_shared'
10861	    # CC pic flag -KPIC is the default.
10862	    ;;
10863	  *)
10864	    ;;
10865	esac
10866	;;
10867      linux*)
10868	case $cc_basename in
10869	  KCC)
10870	    # KAI C++ Compiler
10871	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10872	    lt_prog_compiler_pic_CXX='-fPIC'
10873	    ;;
10874	  icpc)
10875	    # Intel C++
10876	    lt_prog_compiler_wl_CXX='-Wl,'
10877	    lt_prog_compiler_pic_CXX='-KPIC'
10878	    lt_prog_compiler_static_CXX='-static'
10879	    ;;
10880	  cxx)
10881	    # Compaq C++
10882	    # Make sure the PIC flag is empty.  It appears that all Alpha
10883	    # Linux and Compaq Tru64 Unix objects are PIC.
10884	    lt_prog_compiler_pic_CXX=
10885	    lt_prog_compiler_static_CXX='-non_shared'
10886	    ;;
10887	  *)
10888	    ;;
10889	esac
10890	;;
10891      lynxos*)
10892	;;
10893      m88k*)
10894	;;
10895      mvs*)
10896	case $cc_basename in
10897	  cxx)
10898	    lt_prog_compiler_pic_CXX='-W c,exportall'
10899	    ;;
10900	  *)
10901	    ;;
10902	esac
10903	;;
10904      netbsd* | knetbsd*-gnu)
10905	;;
10906      osf3* | osf4* | osf5*)
10907	case $cc_basename in
10908	  KCC)
10909	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10910	    ;;
10911	  RCC)
10912	    # Rational C++ 2.4.1
10913	    lt_prog_compiler_pic_CXX='-pic'
10914	    ;;
10915	  cxx)
10916	    # Digital/Compaq C++
10917	    lt_prog_compiler_wl_CXX='-Wl,'
10918	    # Make sure the PIC flag is empty.  It appears that all Alpha
10919	    # Linux and Compaq Tru64 Unix objects are PIC.
10920	    lt_prog_compiler_pic_CXX=
10921	    lt_prog_compiler_static_CXX='-non_shared'
10922	    ;;
10923	  *)
10924	    ;;
10925	esac
10926	;;
10927      psos*)
10928	;;
10929      sco*)
10930	case $cc_basename in
10931	  CC)
10932	    lt_prog_compiler_pic_CXX='-fPIC'
10933	    ;;
10934	  *)
10935	    ;;
10936	esac
10937	;;
10938      solaris*)
10939	case $cc_basename in
10940	  CC)
10941	    # Sun C++ 4.2, 5.x and Centerline C++
10942	    lt_prog_compiler_pic_CXX='-KPIC'
10943	    lt_prog_compiler_static_CXX='-Bstatic'
10944	    lt_prog_compiler_wl_CXX='-Qoption ld '
10945	    ;;
10946	  gcx)
10947	    # Green Hills C++ Compiler
10948	    lt_prog_compiler_pic_CXX='-PIC'
10949	    ;;
10950	  *)
10951	    ;;
10952	esac
10953	;;
10954      sunos4*)
10955	case $cc_basename in
10956	  CC)
10957	    # Sun C++ 4.x
10958	    lt_prog_compiler_pic_CXX='-pic'
10959	    lt_prog_compiler_static_CXX='-Bstatic'
10960	    ;;
10961	  lcc)
10962	    # Lucid
10963	    lt_prog_compiler_pic_CXX='-pic'
10964	    ;;
10965	  *)
10966	    ;;
10967	esac
10968	;;
10969      tandem*)
10970	case $cc_basename in
10971	  NCC)
10972	    # NonStop-UX NCC 3.20
10973	    lt_prog_compiler_pic_CXX='-KPIC'
10974	    ;;
10975	  *)
10976	    ;;
10977	esac
10978	;;
10979      unixware*)
10980	;;
10981      vxworks*)
10982	;;
10983      *)
10984	lt_prog_compiler_can_build_shared_CXX=no
10985	;;
10986    esac
10987  fi
10988
10989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10990echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10991
10992#
10993# Check to make sure the PIC flag actually works.
10994#
10995if test -n "$lt_prog_compiler_pic_CXX"; then
10996
10997echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10999if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11000  echo $ECHO_N "(cached) $ECHO_C" >&6
11001else
11002  lt_prog_compiler_pic_works_CXX=no
11003  ac_outfile=conftest.$ac_objext
11004   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11005   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11006   # Insert the option either (1) after the last *FLAGS variable, or
11007   # (2) before a word containing "conftest.", or (3) at the end.
11008   # Note that $ac_compile itself does not contain backslashes and begins
11009   # with a dollar sign (not a hyphen), so the echo should work correctly.
11010   # The option is referenced via a variable to avoid confusing sed.
11011   lt_compile=`echo "$ac_compile" | $SED \
11012   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11014   -e 's:$: $lt_compiler_flag:'`
11015   (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
11016   (eval "$lt_compile" 2>conftest.err)
11017   ac_status=$?
11018   cat conftest.err >&5
11019   echo "$as_me:11019: \$? = $ac_status" >&5
11020   if (exit $ac_status) && test -s "$ac_outfile"; then
11021     # The compiler can only warn and ignore the option if not recognized
11022     # So say no if there are warnings
11023     if test ! -s conftest.err; then
11024       lt_prog_compiler_pic_works_CXX=yes
11025     fi
11026   fi
11027   $rm conftest*
11028
11029fi
11030echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11031echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11032
11033if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11034    case $lt_prog_compiler_pic_CXX in
11035     "" | " "*) ;;
11036     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11037     esac
11038else
11039    lt_prog_compiler_pic_CXX=
11040     lt_prog_compiler_can_build_shared_CXX=no
11041fi
11042
11043fi
11044case "$host_os" in
11045  # For platforms which do not support PIC, -DPIC is meaningless:
11046  *djgpp*)
11047    lt_prog_compiler_pic_CXX=
11048    ;;
11049  *)
11050    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11051    ;;
11052esac
11053
11054echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11055echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11056if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11057  echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059  lt_cv_prog_compiler_c_o_CXX=no
11060   $rm -r conftest 2>/dev/null
11061   mkdir conftest
11062   cd conftest
11063   mkdir out
11064   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11065
11066   lt_compiler_flag="-o out/conftest2.$ac_objext"
11067   # Insert the option either (1) after the last *FLAGS variable, or
11068   # (2) before a word containing "conftest.", or (3) at the end.
11069   # Note that $ac_compile itself does not contain backslashes and begins
11070   # with a dollar sign (not a hyphen), so the echo should work correctly.
11071   lt_compile=`echo "$ac_compile" | $SED \
11072   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11074   -e 's:$: $lt_compiler_flag:'`
11075   (eval echo "\"\$as_me:11075: $lt_compile\"" >&5)
11076   (eval "$lt_compile" 2>out/conftest.err)
11077   ac_status=$?
11078   cat out/conftest.err >&5
11079   echo "$as_me:11079: \$? = $ac_status" >&5
11080   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11081   then
11082     # The compiler can only warn and ignore the option if not recognized
11083     # So say no if there are warnings
11084     if test ! -s out/conftest.err; then
11085       lt_cv_prog_compiler_c_o_CXX=yes
11086     fi
11087   fi
11088   chmod u+w .
11089   $rm conftest*
11090   # SGI C++ compiler will create directory out/ii_files/ for
11091   # template instantiation
11092   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11093   $rm out/* && rmdir out
11094   cd ..
11095   rmdir conftest
11096   $rm conftest*
11097
11098fi
11099echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11100echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11101
11102
11103hard_links="nottested"
11104if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11105  # do not overwrite the value of need_locks provided by the user
11106  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11107echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11108  hard_links=yes
11109  $rm conftest*
11110  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11111  touch conftest.a
11112  ln conftest.a conftest.b 2>&5 || hard_links=no
11113  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11114  echo "$as_me:$LINENO: result: $hard_links" >&5
11115echo "${ECHO_T}$hard_links" >&6
11116  if test "$hard_links" = no; then
11117    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11118echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11119    need_locks=warn
11120  fi
11121else
11122  need_locks=no
11123fi
11124
11125echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11126echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11127
11128  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11129  case $host_os in
11130  aix4* | aix5*)
11131    # If we're using GNU nm, then we don't want the "-C" option.
11132    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11133    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11134      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'
11135    else
11136      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'
11137    fi
11138    ;;
11139  pw32*)
11140    export_symbols_cmds_CXX="$ltdll_cmds"
11141  ;;
11142  cygwin* | mingw*)
11143    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11144  ;;
11145  *)
11146    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11147  ;;
11148  esac
11149
11150echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11151echo "${ECHO_T}$ld_shlibs_CXX" >&6
11152test "$ld_shlibs_CXX" = no && can_build_shared=no
11153
11154variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11155if test "$GCC" = yes; then
11156  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11157fi
11158
11159#
11160# Do we need to explicitly link libc?
11161#
11162case "x$archive_cmds_need_lc_CXX" in
11163x|xyes)
11164  # Assume -lc should be added
11165  archive_cmds_need_lc_CXX=yes
11166
11167  if test "$enable_shared" = yes && test "$GCC" = yes; then
11168    case $archive_cmds_CXX in
11169    *'~'*)
11170      # FIXME: we may have to deal with multi-command sequences.
11171      ;;
11172    '$CC '*)
11173      # Test whether the compiler implicitly links with -lc since on some
11174      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11175      # to ld, don't add -lc before -lgcc.
11176      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11177echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11178      $rm conftest*
11179      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11180
11181      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182  (eval $ac_compile) 2>&5
11183  ac_status=$?
11184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185  (exit $ac_status); } 2>conftest.err; then
11186        soname=conftest
11187        lib=conftest
11188        libobjs=conftest.$ac_objext
11189        deplibs=
11190        wl=$lt_prog_compiler_wl_CXX
11191        compiler_flags=-v
11192        linker_flags=-v
11193        verstring=
11194        output_objdir=.
11195        libname=conftest
11196        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11197        allow_undefined_flag_CXX=
11198        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11199  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11200  ac_status=$?
11201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202  (exit $ac_status); }
11203        then
11204	  archive_cmds_need_lc_CXX=no
11205        else
11206	  archive_cmds_need_lc_CXX=yes
11207        fi
11208        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11209      else
11210        cat conftest.err 1>&5
11211      fi
11212      $rm conftest*
11213      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11214echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11215      ;;
11216    esac
11217  fi
11218  ;;
11219esac
11220
11221echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11222echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11223library_names_spec=
11224libname_spec='lib$name'
11225soname_spec=
11226shrext=".so"
11227postinstall_cmds=
11228postuninstall_cmds=
11229finish_cmds=
11230finish_eval=
11231shlibpath_var=
11232shlibpath_overrides_runpath=unknown
11233version_type=none
11234dynamic_linker="$host_os ld.so"
11235sys_lib_dlsearch_path_spec="/lib /usr/lib"
11236if test "$GCC" = yes; then
11237  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11238  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11239    # if the path contains ";" then we assume it to be the separator
11240    # otherwise default to the standard path separator (i.e. ":") - it is
11241    # assumed that no part of a normal pathname contains ";" but that should
11242    # okay in the real world where ";" in dirpaths is itself problematic.
11243    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11244  else
11245    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11246  fi
11247else
11248  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11249fi
11250need_lib_prefix=unknown
11251hardcode_into_libs=no
11252
11253# when you set need_version to no, make sure it does not cause -set_version
11254# flags to be left without arguments
11255need_version=unknown
11256
11257case $host_os in
11258aix3*)
11259  version_type=linux
11260  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11261  shlibpath_var=LIBPATH
11262
11263  # AIX 3 has no versioning support, so we append a major version to the name.
11264  soname_spec='${libname}${release}${shared_ext}$major'
11265  ;;
11266
11267aix4* | aix5*)
11268  version_type=linux
11269  need_lib_prefix=no
11270  need_version=no
11271  hardcode_into_libs=yes
11272  if test "$host_cpu" = ia64; then
11273    # AIX 5 supports IA64
11274    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11275    shlibpath_var=LD_LIBRARY_PATH
11276  else
11277    # With GCC up to 2.95.x, collect2 would create an import file
11278    # for dependence libraries.  The import file would start with
11279    # the line `#! .'.  This would cause the generated library to
11280    # depend on `.', always an invalid library.  This was fixed in
11281    # development snapshots of GCC prior to 3.0.
11282    case $host_os in
11283      aix4 | aix4.[01] | aix4.[01].*)
11284      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11285	   echo ' yes '
11286	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11287	:
11288      else
11289	can_build_shared=no
11290      fi
11291      ;;
11292    esac
11293    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11294    # soname into executable. Probably we can add versioning support to
11295    # collect2, so additional links can be useful in future.
11296    if test "$aix_use_runtimelinking" = yes; then
11297      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11298      # instead of lib<name>.a to let people know that these are not
11299      # typical AIX shared libraries.
11300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301    else
11302      # We preserve .a as extension for shared libraries through AIX4.2
11303      # and later when we are not doing run time linking.
11304      library_names_spec='${libname}${release}.a $libname.a'
11305      soname_spec='${libname}${release}${shared_ext}$major'
11306    fi
11307    shlibpath_var=LIBPATH
11308  fi
11309  ;;
11310
11311amigaos*)
11312  library_names_spec='$libname.ixlibrary $libname.a'
11313  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11314  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'
11315  ;;
11316
11317beos*)
11318  library_names_spec='${libname}${shared_ext}'
11319  dynamic_linker="$host_os ld.so"
11320  shlibpath_var=LIBRARY_PATH
11321  ;;
11322
11323bsdi4*)
11324  version_type=linux
11325  need_version=no
11326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327  soname_spec='${libname}${release}${shared_ext}$major'
11328  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11329  shlibpath_var=LD_LIBRARY_PATH
11330  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11331  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11332  # the default ld.so.conf also contains /usr/contrib/lib and
11333  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11334  # libtool to hard-code these into programs
11335  ;;
11336
11337cygwin* | mingw* | pw32*)
11338  version_type=windows
11339  shrext=".dll"
11340  need_version=no
11341  need_lib_prefix=no
11342
11343  case $GCC,$host_os in
11344  yes,cygwin* | yes,mingw* | yes,pw32*)
11345    library_names_spec='$libname.dll.a'
11346    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11347    postinstall_cmds='base_file=`basename \${file}`~
11348      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11349      dldir=$destdir/`dirname \$dlpath`~
11350      test -d \$dldir || mkdir -p \$dldir~
11351      $install_prog $dir/$dlname \$dldir/$dlname'
11352    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11353      dlpath=$dir/\$dldll~
11354       $rm \$dlpath'
11355    shlibpath_overrides_runpath=yes
11356
11357    case $host_os in
11358    cygwin*)
11359      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11360      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11361      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11362      ;;
11363    mingw*)
11364      # MinGW DLLs use traditional 'lib' prefix
11365      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11366      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11367      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11368        # It is most probably a Windows format PATH printed by
11369        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11370        # path with ; separators, and with drive letters. We can handle the
11371        # drive letters (cygwin fileutils understands them), so leave them,
11372        # especially as we might pass files found there to a mingw objdump,
11373        # which wouldn't understand a cygwinified path. Ahh.
11374        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11375      else
11376        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11377      fi
11378      ;;
11379    pw32*)
11380      # pw32 DLLs use 'pw' prefix rather than 'lib'
11381      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11382      ;;
11383    esac
11384    ;;
11385
11386  *)
11387    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11388    ;;
11389  esac
11390  dynamic_linker='Win32 ld.exe'
11391  # FIXME: first we should search . and the directory the executable is in
11392  shlibpath_var=PATH
11393  ;;
11394
11395darwin* | rhapsody*)
11396  dynamic_linker="$host_os dyld"
11397  version_type=darwin
11398  need_lib_prefix=no
11399  need_version=no
11400  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11401  soname_spec='${libname}${release}${major}$shared_ext'
11402  shlibpath_overrides_runpath=yes
11403  shlibpath_var=DYLD_LIBRARY_PATH
11404  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11405  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11406  if test "$GCC" = yes; then
11407    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"`
11408  else
11409    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11410  fi
11411  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11412  ;;
11413
11414dgux*)
11415  version_type=linux
11416  need_lib_prefix=no
11417  need_version=no
11418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11419  soname_spec='${libname}${release}${shared_ext}$major'
11420  shlibpath_var=LD_LIBRARY_PATH
11421  ;;
11422
11423freebsd1*)
11424  dynamic_linker=no
11425  ;;
11426
11427kfreebsd*-gnu)
11428  version_type=linux
11429  need_lib_prefix=no
11430  need_version=no
11431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11432  soname_spec='${libname}${release}${shared_ext}$major'
11433  shlibpath_var=LD_LIBRARY_PATH
11434  shlibpath_overrides_runpath=no
11435  hardcode_into_libs=yes
11436  dynamic_linker='GNU ld.so'
11437  ;;
11438
11439freebsd*)
11440  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11441  version_type=freebsd-$objformat
11442  case $version_type in
11443    freebsd-elf*)
11444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11445      need_version=no
11446      need_lib_prefix=no
11447      ;;
11448    freebsd-*)
11449      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11450      need_version=yes
11451      ;;
11452  esac
11453  shlibpath_var=LD_LIBRARY_PATH
11454  case $host_os in
11455  freebsd2*)
11456    shlibpath_overrides_runpath=yes
11457    ;;
11458  freebsd3.01* | freebsdelf3.01*)
11459    shlibpath_overrides_runpath=yes
11460    hardcode_into_libs=yes
11461    ;;
11462  *) # from 3.2 on
11463    shlibpath_overrides_runpath=no
11464    hardcode_into_libs=yes
11465    ;;
11466  esac
11467  ;;
11468
11469gnu*)
11470  version_type=linux
11471  need_lib_prefix=no
11472  need_version=no
11473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11474  soname_spec='${libname}${release}${shared_ext}$major'
11475  shlibpath_var=LD_LIBRARY_PATH
11476  hardcode_into_libs=yes
11477  ;;
11478
11479hpux9* | hpux10* | hpux11*)
11480  # Give a soname corresponding to the major version so that dld.sl refuses to
11481  # link against other versions.
11482  version_type=sunos
11483  need_lib_prefix=no
11484  need_version=no
11485  case "$host_cpu" in
11486  ia64*)
11487    shrext='.so'
11488    hardcode_into_libs=yes
11489    dynamic_linker="$host_os dld.so"
11490    shlibpath_var=LD_LIBRARY_PATH
11491    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493    soname_spec='${libname}${release}${shared_ext}$major'
11494    if test "X$HPUX_IA64_MODE" = X32; then
11495      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11496    else
11497      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11498    fi
11499    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500    ;;
11501   hppa*64*)
11502     shrext='.sl'
11503     hardcode_into_libs=yes
11504     dynamic_linker="$host_os dld.sl"
11505     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508     soname_spec='${libname}${release}${shared_ext}$major'
11509     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11511     ;;
11512   *)
11513    shrext='.sl'
11514    dynamic_linker="$host_os dld.sl"
11515    shlibpath_var=SHLIB_PATH
11516    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11517    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518    soname_spec='${libname}${release}${shared_ext}$major'
11519    ;;
11520  esac
11521  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11522  postinstall_cmds='chmod 555 $lib'
11523  ;;
11524
11525irix5* | irix6* | nonstopux*)
11526  case $host_os in
11527    nonstopux*) version_type=nonstopux ;;
11528    *)
11529	if test "$lt_cv_prog_gnu_ld" = yes; then
11530		version_type=linux
11531	else
11532		version_type=irix
11533	fi ;;
11534  esac
11535  need_lib_prefix=no
11536  need_version=no
11537  soname_spec='${libname}${release}${shared_ext}$major'
11538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11539  case $host_os in
11540  irix5* | nonstopux*)
11541    libsuff= shlibsuff=
11542    ;;
11543  *)
11544    case $LD in # libtool.m4 will add one of these switches to LD
11545    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11546      libsuff= shlibsuff= libmagic=32-bit;;
11547    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11548      libsuff=32 shlibsuff=N32 libmagic=N32;;
11549    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11550      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11551    *) libsuff= shlibsuff= libmagic=never-match;;
11552    esac
11553    ;;
11554  esac
11555  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11556  shlibpath_overrides_runpath=no
11557  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11558  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11559  hardcode_into_libs=yes
11560  ;;
11561
11562# No shared lib support for Linux oldld, aout, or coff.
11563linux*oldld* | linux*aout* | linux*coff*)
11564  dynamic_linker=no
11565  ;;
11566
11567# This must be Linux ELF.
11568linux*)
11569  version_type=linux
11570  need_lib_prefix=no
11571  need_version=no
11572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573  soname_spec='${libname}${release}${shared_ext}$major'
11574  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11575  shlibpath_var=LD_LIBRARY_PATH
11576  shlibpath_overrides_runpath=no
11577  # This implies no fast_install, which is unacceptable.
11578  # Some rework will be needed to allow for fast_install
11579  # before this can be enabled.
11580  hardcode_into_libs=yes
11581
11582  # Append ld.so.conf contents to the search path
11583  if test -f /etc/ld.so.conf; then
11584    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11585    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11586  fi
11587
11588  # We used to test for /lib/ld.so.1 and disable shared libraries on
11589  # powerpc, because MkLinux only supported shared libraries with the
11590  # GNU dynamic linker.  Since this was broken with cross compilers,
11591  # most powerpc-linux boxes support dynamic linking these days and
11592  # people can always --disable-shared, the test was removed, and we
11593  # assume the GNU/Linux dynamic linker is in use.
11594  dynamic_linker='GNU/Linux ld.so'
11595  ;;
11596
11597knetbsd*-gnu)
11598  version_type=linux
11599  need_lib_prefix=no
11600  need_version=no
11601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11602  soname_spec='${libname}${release}${shared_ext}$major'
11603  shlibpath_var=LD_LIBRARY_PATH
11604  shlibpath_overrides_runpath=no
11605  hardcode_into_libs=yes
11606  dynamic_linker='GNU ld.so'
11607  ;;
11608
11609netbsd*)
11610  version_type=sunos
11611  need_lib_prefix=no
11612  need_version=no
11613  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11615    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11616    dynamic_linker='NetBSD (a.out) ld.so'
11617  else
11618    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11619    soname_spec='${libname}${release}${shared_ext}$major'
11620    dynamic_linker='NetBSD ld.elf_so'
11621  fi
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=yes
11624  hardcode_into_libs=yes
11625  ;;
11626
11627newsos6)
11628  version_type=linux
11629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630  shlibpath_var=LD_LIBRARY_PATH
11631  shlibpath_overrides_runpath=yes
11632  ;;
11633
11634nto-qnx*)
11635  version_type=linux
11636  need_lib_prefix=no
11637  need_version=no
11638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639  soname_spec='${libname}${release}${shared_ext}$major'
11640  shlibpath_var=LD_LIBRARY_PATH
11641  shlibpath_overrides_runpath=yes
11642  ;;
11643
11644openbsd*)
11645  version_type=sunos
11646  need_lib_prefix=no
11647  need_version=yes
11648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11649  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11650  shlibpath_var=LD_LIBRARY_PATH
11651  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11652    case $host_os in
11653      openbsd2.[89] | openbsd2.[89].*)
11654	shlibpath_overrides_runpath=no
11655	;;
11656      *)
11657	shlibpath_overrides_runpath=yes
11658	;;
11659      esac
11660  else
11661    shlibpath_overrides_runpath=yes
11662  fi
11663  ;;
11664
11665os2*)
11666  libname_spec='$name'
11667  shrext=".dll"
11668  need_lib_prefix=no
11669  library_names_spec='$libname${shared_ext} $libname.a'
11670  dynamic_linker='OS/2 ld.exe'
11671  shlibpath_var=LIBPATH
11672  ;;
11673
11674osf3* | osf4* | osf5*)
11675  version_type=osf
11676  need_lib_prefix=no
11677  need_version=no
11678  soname_spec='${libname}${release}${shared_ext}$major'
11679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680  shlibpath_var=LD_LIBRARY_PATH
11681  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11682  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11683  ;;
11684
11685sco3.2v5*)
11686  version_type=osf
11687  soname_spec='${libname}${release}${shared_ext}$major'
11688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  ;;
11691
11692solaris*)
11693  version_type=linux
11694  need_lib_prefix=no
11695  need_version=no
11696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697  soname_spec='${libname}${release}${shared_ext}$major'
11698  shlibpath_var=LD_LIBRARY_PATH
11699  shlibpath_overrides_runpath=yes
11700  hardcode_into_libs=yes
11701  # ldd complains unless libraries are executable
11702  postinstall_cmds='chmod +x $lib'
11703  ;;
11704
11705sunos4*)
11706  version_type=sunos
11707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11708  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11709  shlibpath_var=LD_LIBRARY_PATH
11710  shlibpath_overrides_runpath=yes
11711  if test "$with_gnu_ld" = yes; then
11712    need_lib_prefix=no
11713  fi
11714  need_version=yes
11715  ;;
11716
11717sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11718  version_type=linux
11719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720  soname_spec='${libname}${release}${shared_ext}$major'
11721  shlibpath_var=LD_LIBRARY_PATH
11722  case $host_vendor in
11723    sni)
11724      shlibpath_overrides_runpath=no
11725      need_lib_prefix=no
11726      export_dynamic_flag_spec='${wl}-Blargedynsym'
11727      runpath_var=LD_RUN_PATH
11728      ;;
11729    siemens)
11730      need_lib_prefix=no
11731      ;;
11732    motorola)
11733      need_lib_prefix=no
11734      need_version=no
11735      shlibpath_overrides_runpath=no
11736      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11737      ;;
11738  esac
11739  ;;
11740
11741sysv4*MP*)
11742  if test -d /usr/nec ;then
11743    version_type=linux
11744    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11745    soname_spec='$libname${shared_ext}.$major'
11746    shlibpath_var=LD_LIBRARY_PATH
11747  fi
11748  ;;
11749
11750uts4*)
11751  version_type=linux
11752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753  soname_spec='${libname}${release}${shared_ext}$major'
11754  shlibpath_var=LD_LIBRARY_PATH
11755  ;;
11756
11757*)
11758  dynamic_linker=no
11759  ;;
11760esac
11761echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11762echo "${ECHO_T}$dynamic_linker" >&6
11763test "$dynamic_linker" = no && can_build_shared=no
11764
11765echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11766echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11767hardcode_action_CXX=
11768if test -n "$hardcode_libdir_flag_spec_CXX" || \
11769   test -n "$runpath_var CXX" || \
11770   test "X$hardcode_automatic_CXX"="Xyes" ; then
11771
11772  # We can hardcode non-existant directories.
11773  if test "$hardcode_direct_CXX" != no &&
11774     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11775     # have to relink, otherwise we might link with an installed library
11776     # when we should be linking with a yet-to-be-installed one
11777     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11778     test "$hardcode_minus_L_CXX" != no; then
11779    # Linking always hardcodes the temporary library directory.
11780    hardcode_action_CXX=relink
11781  else
11782    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11783    hardcode_action_CXX=immediate
11784  fi
11785else
11786  # We cannot hardcode anything, or else we can only hardcode existing
11787  # directories.
11788  hardcode_action_CXX=unsupported
11789fi
11790echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11791echo "${ECHO_T}$hardcode_action_CXX" >&6
11792
11793if test "$hardcode_action_CXX" = relink; then
11794  # Fast installation is not supported
11795  enable_fast_install=no
11796elif test "$shlibpath_overrides_runpath" = yes ||
11797     test "$enable_shared" = no; then
11798  # Fast installation is not necessary
11799  enable_fast_install=needless
11800fi
11801
11802striplib=
11803old_striplib=
11804echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11805echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11806if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11807  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11808  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11809  echo "$as_me:$LINENO: result: yes" >&5
11810echo "${ECHO_T}yes" >&6
11811else
11812# FIXME - insert some real tests, host_os isn't really good enough
11813  case $host_os in
11814   darwin*)
11815       if test -n "$STRIP" ; then
11816         striplib="$STRIP -x"
11817         echo "$as_me:$LINENO: result: yes" >&5
11818echo "${ECHO_T}yes" >&6
11819       else
11820  echo "$as_me:$LINENO: result: no" >&5
11821echo "${ECHO_T}no" >&6
11822fi
11823       ;;
11824   *)
11825  echo "$as_me:$LINENO: result: no" >&5
11826echo "${ECHO_T}no" >&6
11827    ;;
11828  esac
11829fi
11830
11831if test "x$enable_dlopen" != xyes; then
11832  enable_dlopen=unknown
11833  enable_dlopen_self=unknown
11834  enable_dlopen_self_static=unknown
11835else
11836  lt_cv_dlopen=no
11837  lt_cv_dlopen_libs=
11838
11839  case $host_os in
11840  beos*)
11841    lt_cv_dlopen="load_add_on"
11842    lt_cv_dlopen_libs=
11843    lt_cv_dlopen_self=yes
11844    ;;
11845
11846  mingw* | pw32*)
11847    lt_cv_dlopen="LoadLibrary"
11848    lt_cv_dlopen_libs=
11849   ;;
11850
11851  cygwin*)
11852    lt_cv_dlopen="dlopen"
11853    lt_cv_dlopen_libs=
11854   ;;
11855
11856  darwin*)
11857  # if libdl is installed we need to link against it
11858    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11859echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11860if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11861  echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863  ac_check_lib_save_LIBS=$LIBS
11864LIBS="-ldl  $LIBS"
11865cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h.  */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h.  */
11871
11872/* Override any gcc2 internal prototype to avoid an error.  */
11873#ifdef __cplusplus
11874extern "C"
11875#endif
11876/* We use char because int might match the return type of a gcc2
11877   builtin and then its argument prototype would still apply.  */
11878char dlopen ();
11879int
11880main ()
11881{
11882dlopen ();
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext conftest$ac_exeext
11888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889  (eval $ac_link) 2>conftest.er1
11890  ac_status=$?
11891  grep -v '^ *+' conftest.er1 >conftest.err
11892  rm -f conftest.er1
11893  cat conftest.err >&5
11894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895  (exit $ac_status); } &&
11896	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898  (eval $ac_try) 2>&5
11899  ac_status=$?
11900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901  (exit $ac_status); }; } &&
11902	 { ac_try='test -s conftest$ac_exeext'
11903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904  (eval $ac_try) 2>&5
11905  ac_status=$?
11906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907  (exit $ac_status); }; }; then
11908  ac_cv_lib_dl_dlopen=yes
11909else
11910  echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913ac_cv_lib_dl_dlopen=no
11914fi
11915rm -f conftest.err conftest.$ac_objext \
11916      conftest$ac_exeext conftest.$ac_ext
11917LIBS=$ac_check_lib_save_LIBS
11918fi
11919echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11920echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11921if test $ac_cv_lib_dl_dlopen = yes; then
11922  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11923else
11924
11925    lt_cv_dlopen="dyld"
11926    lt_cv_dlopen_libs=
11927    lt_cv_dlopen_self=yes
11928
11929fi
11930
11931   ;;
11932
11933  *)
11934    echo "$as_me:$LINENO: checking for shl_load" >&5
11935echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11936if test "${ac_cv_func_shl_load+set}" = set; then
11937  echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939  cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h.  */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h.  */
11945/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11947#define shl_load innocuous_shl_load
11948
11949/* System header to define __stub macros and hopefully few prototypes,
11950    which can conflict with char shl_load (); below.
11951    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952    <limits.h> exists even on freestanding compilers.  */
11953
11954#ifdef __STDC__
11955# include <limits.h>
11956#else
11957# include <assert.h>
11958#endif
11959
11960#undef shl_load
11961
11962/* Override any gcc2 internal prototype to avoid an error.  */
11963#ifdef __cplusplus
11964extern "C"
11965{
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968   builtin and then its argument prototype would still apply.  */
11969char shl_load ();
11970/* The GNU C library defines this for functions which it implements
11971    to always fail with ENOSYS.  Some functions are actually named
11972    something starting with __ and the normal name is an alias.  */
11973#if defined (__stub_shl_load) || defined (__stub___shl_load)
11974choke me
11975#else
11976char (*f) () = shl_load;
11977#endif
11978#ifdef __cplusplus
11979}
11980#endif
11981
11982int
11983main ()
11984{
11985return f != shl_load;
11986  ;
11987  return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992  (eval $ac_link) 2>conftest.er1
11993  ac_status=$?
11994  grep -v '^ *+' conftest.er1 >conftest.err
11995  rm -f conftest.er1
11996  cat conftest.err >&5
11997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998  (exit $ac_status); } &&
11999	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001  (eval $ac_try) 2>&5
12002  ac_status=$?
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); }; } &&
12005	 { ac_try='test -s conftest$ac_exeext'
12006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007  (eval $ac_try) 2>&5
12008  ac_status=$?
12009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010  (exit $ac_status); }; }; then
12011  ac_cv_func_shl_load=yes
12012else
12013  echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016ac_cv_func_shl_load=no
12017fi
12018rm -f conftest.err conftest.$ac_objext \
12019      conftest$ac_exeext conftest.$ac_ext
12020fi
12021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12022echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12023if test $ac_cv_func_shl_load = yes; then
12024  lt_cv_dlopen="shl_load"
12025else
12026  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12027echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12028if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12029  echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031  ac_check_lib_save_LIBS=$LIBS
12032LIBS="-ldld  $LIBS"
12033cat >conftest.$ac_ext <<_ACEOF
12034/* confdefs.h.  */
12035_ACEOF
12036cat confdefs.h >>conftest.$ac_ext
12037cat >>conftest.$ac_ext <<_ACEOF
12038/* end confdefs.h.  */
12039
12040/* Override any gcc2 internal prototype to avoid an error.  */
12041#ifdef __cplusplus
12042extern "C"
12043#endif
12044/* We use char because int might match the return type of a gcc2
12045   builtin and then its argument prototype would still apply.  */
12046char shl_load ();
12047int
12048main ()
12049{
12050shl_load ();
12051  ;
12052  return 0;
12053}
12054_ACEOF
12055rm -f conftest.$ac_objext conftest$ac_exeext
12056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057  (eval $ac_link) 2>conftest.er1
12058  ac_status=$?
12059  grep -v '^ *+' conftest.er1 >conftest.err
12060  rm -f conftest.er1
12061  cat conftest.err >&5
12062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063  (exit $ac_status); } &&
12064	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066  (eval $ac_try) 2>&5
12067  ac_status=$?
12068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069  (exit $ac_status); }; } &&
12070	 { ac_try='test -s conftest$ac_exeext'
12071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072  (eval $ac_try) 2>&5
12073  ac_status=$?
12074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075  (exit $ac_status); }; }; then
12076  ac_cv_lib_dld_shl_load=yes
12077else
12078  echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081ac_cv_lib_dld_shl_load=no
12082fi
12083rm -f conftest.err conftest.$ac_objext \
12084      conftest$ac_exeext conftest.$ac_ext
12085LIBS=$ac_check_lib_save_LIBS
12086fi
12087echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12088echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12089if test $ac_cv_lib_dld_shl_load = yes; then
12090  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12091else
12092  echo "$as_me:$LINENO: checking for dlopen" >&5
12093echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12094if test "${ac_cv_func_dlopen+set}" = set; then
12095  echo $ECHO_N "(cached) $ECHO_C" >&6
12096else
12097  cat >conftest.$ac_ext <<_ACEOF
12098/* confdefs.h.  */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h.  */
12103/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12104   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12105#define dlopen innocuous_dlopen
12106
12107/* System header to define __stub macros and hopefully few prototypes,
12108    which can conflict with char dlopen (); below.
12109    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110    <limits.h> exists even on freestanding compilers.  */
12111
12112#ifdef __STDC__
12113# include <limits.h>
12114#else
12115# include <assert.h>
12116#endif
12117
12118#undef dlopen
12119
12120/* Override any gcc2 internal prototype to avoid an error.  */
12121#ifdef __cplusplus
12122extern "C"
12123{
12124#endif
12125/* We use char because int might match the return type of a gcc2
12126   builtin and then its argument prototype would still apply.  */
12127char dlopen ();
12128/* The GNU C library defines this for functions which it implements
12129    to always fail with ENOSYS.  Some functions are actually named
12130    something starting with __ and the normal name is an alias.  */
12131#if defined (__stub_dlopen) || defined (__stub___dlopen)
12132choke me
12133#else
12134char (*f) () = dlopen;
12135#endif
12136#ifdef __cplusplus
12137}
12138#endif
12139
12140int
12141main ()
12142{
12143return f != dlopen;
12144  ;
12145  return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150  (eval $ac_link) 2>conftest.er1
12151  ac_status=$?
12152  grep -v '^ *+' conftest.er1 >conftest.err
12153  rm -f conftest.er1
12154  cat conftest.err >&5
12155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); } &&
12157	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159  (eval $ac_try) 2>&5
12160  ac_status=$?
12161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162  (exit $ac_status); }; } &&
12163	 { ac_try='test -s conftest$ac_exeext'
12164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165  (eval $ac_try) 2>&5
12166  ac_status=$?
12167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168  (exit $ac_status); }; }; then
12169  ac_cv_func_dlopen=yes
12170else
12171  echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174ac_cv_func_dlopen=no
12175fi
12176rm -f conftest.err conftest.$ac_objext \
12177      conftest$ac_exeext conftest.$ac_ext
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12180echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12181if test $ac_cv_func_dlopen = yes; then
12182  lt_cv_dlopen="dlopen"
12183else
12184  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12185echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12186if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12187  echo $ECHO_N "(cached) $ECHO_C" >&6
12188else
12189  ac_check_lib_save_LIBS=$LIBS
12190LIBS="-ldl  $LIBS"
12191cat >conftest.$ac_ext <<_ACEOF
12192/* confdefs.h.  */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h.  */
12197
12198/* Override any gcc2 internal prototype to avoid an error.  */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202/* We use char because int might match the return type of a gcc2
12203   builtin and then its argument prototype would still apply.  */
12204char dlopen ();
12205int
12206main ()
12207{
12208dlopen ();
12209  ;
12210  return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext conftest$ac_exeext
12214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215  (eval $ac_link) 2>conftest.er1
12216  ac_status=$?
12217  grep -v '^ *+' conftest.er1 >conftest.err
12218  rm -f conftest.er1
12219  cat conftest.err >&5
12220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221  (exit $ac_status); } &&
12222	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224  (eval $ac_try) 2>&5
12225  ac_status=$?
12226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227  (exit $ac_status); }; } &&
12228	 { ac_try='test -s conftest$ac_exeext'
12229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230  (eval $ac_try) 2>&5
12231  ac_status=$?
12232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233  (exit $ac_status); }; }; then
12234  ac_cv_lib_dl_dlopen=yes
12235else
12236  echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239ac_cv_lib_dl_dlopen=no
12240fi
12241rm -f conftest.err conftest.$ac_objext \
12242      conftest$ac_exeext conftest.$ac_ext
12243LIBS=$ac_check_lib_save_LIBS
12244fi
12245echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12246echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12247if test $ac_cv_lib_dl_dlopen = yes; then
12248  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12249else
12250  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12251echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12252if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12253  echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255  ac_check_lib_save_LIBS=$LIBS
12256LIBS="-lsvld  $LIBS"
12257cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h.  */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h.  */
12263
12264/* Override any gcc2 internal prototype to avoid an error.  */
12265#ifdef __cplusplus
12266extern "C"
12267#endif
12268/* We use char because int might match the return type of a gcc2
12269   builtin and then its argument prototype would still apply.  */
12270char dlopen ();
12271int
12272main ()
12273{
12274dlopen ();
12275  ;
12276  return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
12280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281  (eval $ac_link) 2>conftest.er1
12282  ac_status=$?
12283  grep -v '^ *+' conftest.er1 >conftest.err
12284  rm -f conftest.er1
12285  cat conftest.err >&5
12286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287  (exit $ac_status); } &&
12288	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290  (eval $ac_try) 2>&5
12291  ac_status=$?
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); }; } &&
12294	 { ac_try='test -s conftest$ac_exeext'
12295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296  (eval $ac_try) 2>&5
12297  ac_status=$?
12298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299  (exit $ac_status); }; }; then
12300  ac_cv_lib_svld_dlopen=yes
12301else
12302  echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305ac_cv_lib_svld_dlopen=no
12306fi
12307rm -f conftest.err conftest.$ac_objext \
12308      conftest$ac_exeext conftest.$ac_ext
12309LIBS=$ac_check_lib_save_LIBS
12310fi
12311echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12312echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12313if test $ac_cv_lib_svld_dlopen = yes; then
12314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12315else
12316  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12317echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12318if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12319  echo $ECHO_N "(cached) $ECHO_C" >&6
12320else
12321  ac_check_lib_save_LIBS=$LIBS
12322LIBS="-ldld  $LIBS"
12323cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h.  */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h.  */
12329
12330/* Override any gcc2 internal prototype to avoid an error.  */
12331#ifdef __cplusplus
12332extern "C"
12333#endif
12334/* We use char because int might match the return type of a gcc2
12335   builtin and then its argument prototype would still apply.  */
12336char dld_link ();
12337int
12338main ()
12339{
12340dld_link ();
12341  ;
12342  return 0;
12343}
12344_ACEOF
12345rm -f conftest.$ac_objext conftest$ac_exeext
12346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347  (eval $ac_link) 2>conftest.er1
12348  ac_status=$?
12349  grep -v '^ *+' conftest.er1 >conftest.err
12350  rm -f conftest.er1
12351  cat conftest.err >&5
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); } &&
12354	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
12360	 { ac_try='test -s conftest$ac_exeext'
12361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362  (eval $ac_try) 2>&5
12363  ac_status=$?
12364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365  (exit $ac_status); }; }; then
12366  ac_cv_lib_dld_dld_link=yes
12367else
12368  echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
12371ac_cv_lib_dld_dld_link=no
12372fi
12373rm -f conftest.err conftest.$ac_objext \
12374      conftest$ac_exeext conftest.$ac_ext
12375LIBS=$ac_check_lib_save_LIBS
12376fi
12377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12378echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12379if test $ac_cv_lib_dld_dld_link = yes; then
12380  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12381fi
12382
12383
12384fi
12385
12386
12387fi
12388
12389
12390fi
12391
12392
12393fi
12394
12395
12396fi
12397
12398    ;;
12399  esac
12400
12401  if test "x$lt_cv_dlopen" != xno; then
12402    enable_dlopen=yes
12403  else
12404    enable_dlopen=no
12405  fi
12406
12407  case $lt_cv_dlopen in
12408  dlopen)
12409    save_CPPFLAGS="$CPPFLAGS"
12410    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12411
12412    save_LDFLAGS="$LDFLAGS"
12413    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12414
12415    save_LIBS="$LIBS"
12416    LIBS="$lt_cv_dlopen_libs $LIBS"
12417
12418    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12419echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12420if test "${lt_cv_dlopen_self+set}" = set; then
12421  echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423  	  if test "$cross_compiling" = yes; then :
12424  lt_cv_dlopen_self=cross
12425else
12426  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12427  lt_status=$lt_dlunknown
12428  cat > conftest.$ac_ext <<EOF
12429#line 12429 "configure"
12430#include "confdefs.h"
12431
12432#if HAVE_DLFCN_H
12433#include <dlfcn.h>
12434#endif
12435
12436#include <stdio.h>
12437
12438#ifdef RTLD_GLOBAL
12439#  define LT_DLGLOBAL		RTLD_GLOBAL
12440#else
12441#  ifdef DL_GLOBAL
12442#    define LT_DLGLOBAL		DL_GLOBAL
12443#  else
12444#    define LT_DLGLOBAL		0
12445#  endif
12446#endif
12447
12448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12449   find out it does not work in some platform. */
12450#ifndef LT_DLLAZY_OR_NOW
12451#  ifdef RTLD_LAZY
12452#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12453#  else
12454#    ifdef DL_LAZY
12455#      define LT_DLLAZY_OR_NOW		DL_LAZY
12456#    else
12457#      ifdef RTLD_NOW
12458#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12459#      else
12460#        ifdef DL_NOW
12461#          define LT_DLLAZY_OR_NOW	DL_NOW
12462#        else
12463#          define LT_DLLAZY_OR_NOW	0
12464#        endif
12465#      endif
12466#    endif
12467#  endif
12468#endif
12469
12470#ifdef __cplusplus
12471extern "C" void exit (int);
12472#endif
12473
12474void fnord() { int i=42;}
12475int main ()
12476{
12477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12478  int status = $lt_dlunknown;
12479
12480  if (self)
12481    {
12482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12483      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12484      /* dlclose (self); */
12485    }
12486
12487    exit (status);
12488}
12489EOF
12490  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491  (eval $ac_link) 2>&5
12492  ac_status=$?
12493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12495    (./conftest; exit; ) 2>/dev/null
12496    lt_status=$?
12497    case x$lt_status in
12498      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12499      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12500      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12501    esac
12502  else :
12503    # compilation failed
12504    lt_cv_dlopen_self=no
12505  fi
12506fi
12507rm -fr conftest*
12508
12509
12510fi
12511echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12512echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12513
12514    if test "x$lt_cv_dlopen_self" = xyes; then
12515      LDFLAGS="$LDFLAGS $link_static_flag"
12516      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12517echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12518if test "${lt_cv_dlopen_self_static+set}" = set; then
12519  echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521  	  if test "$cross_compiling" = yes; then :
12522  lt_cv_dlopen_self_static=cross
12523else
12524  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12525  lt_status=$lt_dlunknown
12526  cat > conftest.$ac_ext <<EOF
12527#line 12527 "configure"
12528#include "confdefs.h"
12529
12530#if HAVE_DLFCN_H
12531#include <dlfcn.h>
12532#endif
12533
12534#include <stdio.h>
12535
12536#ifdef RTLD_GLOBAL
12537#  define LT_DLGLOBAL		RTLD_GLOBAL
12538#else
12539#  ifdef DL_GLOBAL
12540#    define LT_DLGLOBAL		DL_GLOBAL
12541#  else
12542#    define LT_DLGLOBAL		0
12543#  endif
12544#endif
12545
12546/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12547   find out it does not work in some platform. */
12548#ifndef LT_DLLAZY_OR_NOW
12549#  ifdef RTLD_LAZY
12550#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12551#  else
12552#    ifdef DL_LAZY
12553#      define LT_DLLAZY_OR_NOW		DL_LAZY
12554#    else
12555#      ifdef RTLD_NOW
12556#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12557#      else
12558#        ifdef DL_NOW
12559#          define LT_DLLAZY_OR_NOW	DL_NOW
12560#        else
12561#          define LT_DLLAZY_OR_NOW	0
12562#        endif
12563#      endif
12564#    endif
12565#  endif
12566#endif
12567
12568#ifdef __cplusplus
12569extern "C" void exit (int);
12570#endif
12571
12572void fnord() { int i=42;}
12573int main ()
12574{
12575  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12576  int status = $lt_dlunknown;
12577
12578  if (self)
12579    {
12580      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12581      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12582      /* dlclose (self); */
12583    }
12584
12585    exit (status);
12586}
12587EOF
12588  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589  (eval $ac_link) 2>&5
12590  ac_status=$?
12591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12593    (./conftest; exit; ) 2>/dev/null
12594    lt_status=$?
12595    case x$lt_status in
12596      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12597      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12598      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12599    esac
12600  else :
12601    # compilation failed
12602    lt_cv_dlopen_self_static=no
12603  fi
12604fi
12605rm -fr conftest*
12606
12607
12608fi
12609echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12610echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12611    fi
12612
12613    CPPFLAGS="$save_CPPFLAGS"
12614    LDFLAGS="$save_LDFLAGS"
12615    LIBS="$save_LIBS"
12616    ;;
12617  esac
12618
12619  case $lt_cv_dlopen_self in
12620  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12621  *) enable_dlopen_self=unknown ;;
12622  esac
12623
12624  case $lt_cv_dlopen_self_static in
12625  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12626  *) enable_dlopen_self_static=unknown ;;
12627  esac
12628fi
12629
12630
12631# The else clause should only fire when bootstrapping the
12632# libtool distribution, otherwise you forgot to ship ltmain.sh
12633# with your package, and you will get complaints that there are
12634# no rules to generate ltmain.sh.
12635if test -f "$ltmain"; then
12636  # See if we are running on zsh, and set the options which allow our commands through
12637  # without removal of \ escapes.
12638  if test -n "${ZSH_VERSION+set}" ; then
12639    setopt NO_GLOB_SUBST
12640  fi
12641  # Now quote all the things that may contain metacharacters while being
12642  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12643  # variables and quote the copies for generation of the libtool script.
12644  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12645    SED SHELL STRIP \
12646    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12647    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12648    deplibs_check_method reload_flag reload_cmds need_locks \
12649    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12650    lt_cv_sys_global_symbol_to_c_name_address \
12651    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12652    old_postinstall_cmds old_postuninstall_cmds \
12653    compiler_CXX \
12654    CC_CXX \
12655    LD_CXX \
12656    lt_prog_compiler_wl_CXX \
12657    lt_prog_compiler_pic_CXX \
12658    lt_prog_compiler_static_CXX \
12659    lt_prog_compiler_no_builtin_flag_CXX \
12660    export_dynamic_flag_spec_CXX \
12661    thread_safe_flag_spec_CXX \
12662    whole_archive_flag_spec_CXX \
12663    enable_shared_with_static_runtimes_CXX \
12664    old_archive_cmds_CXX \
12665    old_archive_from_new_cmds_CXX \
12666    predep_objects_CXX \
12667    postdep_objects_CXX \
12668    predeps_CXX \
12669    postdeps_CXX \
12670    compiler_lib_search_path_CXX \
12671    archive_cmds_CXX \
12672    archive_expsym_cmds_CXX \
12673    postinstall_cmds_CXX \
12674    postuninstall_cmds_CXX \
12675    old_archive_from_expsyms_cmds_CXX \
12676    allow_undefined_flag_CXX \
12677    no_undefined_flag_CXX \
12678    export_symbols_cmds_CXX \
12679    hardcode_libdir_flag_spec_CXX \
12680    hardcode_libdir_flag_spec_ld_CXX \
12681    hardcode_libdir_separator_CXX \
12682    hardcode_automatic_CXX \
12683    module_cmds_CXX \
12684    module_expsym_cmds_CXX \
12685    lt_cv_prog_compiler_c_o_CXX \
12686    exclude_expsyms_CXX \
12687    include_expsyms_CXX; do
12688
12689    case $var in
12690    old_archive_cmds_CXX | \
12691    old_archive_from_new_cmds_CXX | \
12692    archive_cmds_CXX | \
12693    archive_expsym_cmds_CXX | \
12694    module_cmds_CXX | \
12695    module_expsym_cmds_CXX | \
12696    old_archive_from_expsyms_cmds_CXX | \
12697    export_symbols_cmds_CXX | \
12698    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12699    postinstall_cmds | postuninstall_cmds | \
12700    old_postinstall_cmds | old_postuninstall_cmds | \
12701    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12702      # Double-quote double-evaled strings.
12703      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12704      ;;
12705    *)
12706      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12707      ;;
12708    esac
12709  done
12710
12711  case $lt_echo in
12712  *'\$0 --fallback-echo"')
12713    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12714    ;;
12715  esac
12716
12717cfgfile="$ofile"
12718
12719  cat <<__EOF__ >> "$cfgfile"
12720# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12721
12722# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12723
12724# Shell to use when invoking shell scripts.
12725SHELL=$lt_SHELL
12726
12727# Whether or not to build shared libraries.
12728build_libtool_libs=$enable_shared
12729
12730# Whether or not to build static libraries.
12731build_old_libs=$enable_static
12732
12733# Whether or not to add -lc for building shared libraries.
12734build_libtool_need_lc=$archive_cmds_need_lc_CXX
12735
12736# Whether or not to disallow shared libs when runtime libs are static
12737allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12738
12739# Whether or not to optimize for fast installation.
12740fast_install=$enable_fast_install
12741
12742# The host system.
12743host_alias=$host_alias
12744host=$host
12745
12746# An echo program that does not interpret backslashes.
12747echo=$lt_echo
12748
12749# The archiver.
12750AR=$lt_AR
12751AR_FLAGS=$lt_AR_FLAGS
12752
12753# A C compiler.
12754LTCC=$lt_LTCC
12755
12756# A language-specific compiler.
12757CC=$lt_compiler_CXX
12758
12759# Is the compiler the GNU C compiler?
12760with_gcc=$GCC_CXX
12761
12762# An ERE matcher.
12763EGREP=$lt_EGREP
12764
12765# The linker used to build libraries.
12766LD=$lt_LD_CXX
12767
12768# Whether we need hard or soft links.
12769LN_S=$lt_LN_S
12770
12771# A BSD-compatible nm program.
12772NM=$lt_NM
12773
12774# A symbol stripping program
12775STRIP=$lt_STRIP
12776
12777# Used to examine libraries when file_magic_cmd begins "file"
12778MAGIC_CMD=$MAGIC_CMD
12779
12780# Used on cygwin: DLL creation program.
12781DLLTOOL="$DLLTOOL"
12782
12783# Used on cygwin: object dumper.
12784OBJDUMP="$OBJDUMP"
12785
12786# Used on cygwin: assembler.
12787AS="$AS"
12788
12789# The name of the directory that contains temporary libtool files.
12790objdir=$objdir
12791
12792# How to create reloadable object files.
12793reload_flag=$lt_reload_flag
12794reload_cmds=$lt_reload_cmds
12795
12796# How to pass a linker flag through the compiler.
12797wl=$lt_lt_prog_compiler_wl_CXX
12798
12799# Object file suffix (normally "o").
12800objext="$ac_objext"
12801
12802# Old archive suffix (normally "a").
12803libext="$libext"
12804
12805# Shared library suffix (normally ".so").
12806shrext='$shrext'
12807
12808# Executable file suffix (normally "").
12809exeext="$exeext"
12810
12811# Additional compiler flags for building library objects.
12812pic_flag=$lt_lt_prog_compiler_pic_CXX
12813pic_mode=$pic_mode
12814
12815# What is the maximum length of a command?
12816max_cmd_len=$lt_cv_sys_max_cmd_len
12817
12818# Does compiler simultaneously support -c and -o options?
12819compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12820
12821# Must we lock files when doing compilation ?
12822need_locks=$lt_need_locks
12823
12824# Do we need the lib prefix for modules?
12825need_lib_prefix=$need_lib_prefix
12826
12827# Do we need a version for libraries?
12828need_version=$need_version
12829
12830# Whether dlopen is supported.
12831dlopen_support=$enable_dlopen
12832
12833# Whether dlopen of programs is supported.
12834dlopen_self=$enable_dlopen_self
12835
12836# Whether dlopen of statically linked programs is supported.
12837dlopen_self_static=$enable_dlopen_self_static
12838
12839# Compiler flag to prevent dynamic linking.
12840link_static_flag=$lt_lt_prog_compiler_static_CXX
12841
12842# Compiler flag to turn off builtin functions.
12843no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12844
12845# Compiler flag to allow reflexive dlopens.
12846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12847
12848# Compiler flag to generate shared objects directly from archives.
12849whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12850
12851# Compiler flag to generate thread-safe objects.
12852thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12853
12854# Library versioning type.
12855version_type=$version_type
12856
12857# Format of library name prefix.
12858libname_spec=$lt_libname_spec
12859
12860# List of archive names.  First name is the real one, the rest are links.
12861# The last name is the one that the linker finds with -lNAME.
12862library_names_spec=$lt_library_names_spec
12863
12864# The coded name of the library, if different from the real name.
12865soname_spec=$lt_soname_spec
12866
12867# Commands used to build and install an old-style archive.
12868RANLIB=$lt_RANLIB
12869old_archive_cmds=$lt_old_archive_cmds_CXX
12870old_postinstall_cmds=$lt_old_postinstall_cmds
12871old_postuninstall_cmds=$lt_old_postuninstall_cmds
12872
12873# Create an old-style archive from a shared archive.
12874old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12875
12876# Create a temporary old-style archive to link instead of a shared archive.
12877old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12878
12879# Commands used to build and install a shared archive.
12880archive_cmds=$lt_archive_cmds_CXX
12881archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12882postinstall_cmds=$lt_postinstall_cmds
12883postuninstall_cmds=$lt_postuninstall_cmds
12884
12885# Commands used to build a loadable module (assumed same as above if empty)
12886module_cmds=$lt_module_cmds_CXX
12887module_expsym_cmds=$lt_module_expsym_cmds_CXX
12888
12889# Commands to strip libraries.
12890old_striplib=$lt_old_striplib
12891striplib=$lt_striplib
12892
12893# Dependencies to place before the objects being linked to create a
12894# shared library.
12895predep_objects=$lt_predep_objects_CXX
12896
12897# Dependencies to place after the objects being linked to create a
12898# shared library.
12899postdep_objects=$lt_postdep_objects_CXX
12900
12901# Dependencies to place before the objects being linked to create a
12902# shared library.
12903predeps=$lt_predeps_CXX
12904
12905# Dependencies to place after the objects being linked to create a
12906# shared library.
12907postdeps=$lt_postdeps_CXX
12908
12909# The library search path used internally by the compiler when linking
12910# a shared library.
12911compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12912
12913# Method to check whether dependent libraries are shared objects.
12914deplibs_check_method=$lt_deplibs_check_method
12915
12916# Command to use when deplibs_check_method == file_magic.
12917file_magic_cmd=$lt_file_magic_cmd
12918
12919# Flag that allows shared libraries with undefined symbols to be built.
12920allow_undefined_flag=$lt_allow_undefined_flag_CXX
12921
12922# Flag that forces no undefined symbols.
12923no_undefined_flag=$lt_no_undefined_flag_CXX
12924
12925# Commands used to finish a libtool library installation in a directory.
12926finish_cmds=$lt_finish_cmds
12927
12928# Same as above, but a single script fragment to be evaled but not shown.
12929finish_eval=$lt_finish_eval
12930
12931# Take the output of nm and produce a listing of raw symbols and C names.
12932global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12933
12934# Transform the output of nm in a proper C declaration
12935global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12936
12937# Transform the output of nm in a C name address pair
12938global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12939
12940# This is the shared library runtime path variable.
12941runpath_var=$runpath_var
12942
12943# This is the shared library path variable.
12944shlibpath_var=$shlibpath_var
12945
12946# Is shlibpath searched before the hard-coded library search path?
12947shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12948
12949# How to hardcode a shared library path into an executable.
12950hardcode_action=$hardcode_action_CXX
12951
12952# Whether we should hardcode library paths into libraries.
12953hardcode_into_libs=$hardcode_into_libs
12954
12955# Flag to hardcode \$libdir into a binary during linking.
12956# This must work even if \$libdir does not exist.
12957hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12958
12959# If ld is used when linking, flag to hardcode \$libdir into
12960# a binary during linking. This must work even if \$libdir does
12961# not exist.
12962hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12963
12964# Whether we need a single -rpath flag with a separated argument.
12965hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12966
12967# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12968# resulting binary.
12969hardcode_direct=$hardcode_direct_CXX
12970
12971# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12972# resulting binary.
12973hardcode_minus_L=$hardcode_minus_L_CXX
12974
12975# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12976# the resulting binary.
12977hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12978
12979# Set to yes if building a shared library automatically hardcodes DIR into the library
12980# and all subsequent libraries and executables linked against it.
12981hardcode_automatic=$hardcode_automatic_CXX
12982
12983# Variables whose values should be saved in libtool wrapper scripts and
12984# restored at relink time.
12985variables_saved_for_relink="$variables_saved_for_relink"
12986
12987# Whether libtool must link a program against all its dependency libraries.
12988link_all_deplibs=$link_all_deplibs_CXX
12989
12990# Compile-time system search path for libraries
12991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12992
12993# Run-time system search path for libraries
12994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12995
12996# Fix the shell variable \$srcfile for the compiler.
12997fix_srcfile_path="$fix_srcfile_path_CXX"
12998
12999# Set to yes if exported symbols are required.
13000always_export_symbols=$always_export_symbols_CXX
13001
13002# The commands to list exported symbols.
13003export_symbols_cmds=$lt_export_symbols_cmds_CXX
13004
13005# The commands to extract the exported symbol list from a shared archive.
13006extract_expsyms_cmds=$lt_extract_expsyms_cmds
13007
13008# Symbols that should not be listed in the preloaded symbols.
13009exclude_expsyms=$lt_exclude_expsyms_CXX
13010
13011# Symbols that must always be exported.
13012include_expsyms=$lt_include_expsyms_CXX
13013
13014# ### END LIBTOOL TAG CONFIG: $tagname
13015
13016__EOF__
13017
13018
13019else
13020  # If there is no Makefile yet, we rely on a make rule to execute
13021  # `config.status --recheck' to rerun these tests and create the
13022  # libtool script then.
13023  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13024  if test -f "$ltmain_in"; then
13025    test -f Makefile && make "$ltmain"
13026  fi
13027fi
13028
13029
13030ac_ext=c
13031ac_cpp='$CPP $CPPFLAGS'
13032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_c_compiler_gnu
13035
13036CC=$lt_save_CC
13037LDCXX=$LD
13038LD=$lt_save_LD
13039GCC=$lt_save_GCC
13040with_gnu_ldcxx=$with_gnu_ld
13041with_gnu_ld=$lt_save_with_gnu_ld
13042lt_cv_path_LDCXX=$lt_cv_path_LD
13043lt_cv_path_LD=$lt_save_path_LD
13044lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13045lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13046
13047	else
13048	  tagname=""
13049	fi
13050	;;
13051
13052      F77)
13053	if test -n "$F77" && test "X$F77" != "Xno"; then
13054
13055ac_ext=f
13056ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13057ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13059
13060
13061archive_cmds_need_lc_F77=no
13062allow_undefined_flag_F77=
13063always_export_symbols_F77=no
13064archive_expsym_cmds_F77=
13065export_dynamic_flag_spec_F77=
13066hardcode_direct_F77=no
13067hardcode_libdir_flag_spec_F77=
13068hardcode_libdir_flag_spec_ld_F77=
13069hardcode_libdir_separator_F77=
13070hardcode_minus_L_F77=no
13071hardcode_automatic_F77=no
13072module_cmds_F77=
13073module_expsym_cmds_F77=
13074link_all_deplibs_F77=unknown
13075old_archive_cmds_F77=$old_archive_cmds
13076no_undefined_flag_F77=
13077whole_archive_flag_spec_F77=
13078enable_shared_with_static_runtimes_F77=no
13079
13080# Source file extension for f77 test sources.
13081ac_ext=f
13082
13083# Object file extension for compiled f77 test sources.
13084objext=o
13085objext_F77=$objext
13086
13087# Code to be used in simple compile tests
13088lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13089
13090# Code to be used in simple link tests
13091lt_simple_link_test_code="      program t\n      end\n"
13092
13093# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13094
13095# If no C compiler was specified, use CC.
13096LTCC=${LTCC-"$CC"}
13097
13098# Allow CC to be a program name with arguments.
13099compiler=$CC
13100
13101
13102# Allow CC to be a program name with arguments.
13103lt_save_CC="$CC"
13104CC=${F77-"f77"}
13105compiler=$CC
13106compiler_F77=$CC
13107cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13108
13109echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13110echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13111echo "$as_me:$LINENO: result: $can_build_shared" >&5
13112echo "${ECHO_T}$can_build_shared" >&6
13113
13114echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13115echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13116test "$can_build_shared" = "no" && enable_shared=no
13117
13118# On AIX, shared libraries and static libraries use the same namespace, and
13119# are all built from PIC.
13120case "$host_os" in
13121aix3*)
13122  test "$enable_shared" = yes && enable_static=no
13123  if test -n "$RANLIB"; then
13124    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13125    postinstall_cmds='$RANLIB $lib'
13126  fi
13127  ;;
13128aix4*)
13129  test "$enable_shared" = yes && enable_static=no
13130  ;;
13131esac
13132echo "$as_me:$LINENO: result: $enable_shared" >&5
13133echo "${ECHO_T}$enable_shared" >&6
13134
13135echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13136echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13137# Make sure either enable_shared or enable_static is yes.
13138test "$enable_shared" = yes || enable_static=yes
13139echo "$as_me:$LINENO: result: $enable_static" >&5
13140echo "${ECHO_T}$enable_static" >&6
13141
13142test "$ld_shlibs_F77" = no && can_build_shared=no
13143
13144GCC_F77="$G77"
13145LD_F77="$LD"
13146
13147lt_prog_compiler_wl_F77=
13148lt_prog_compiler_pic_F77=
13149lt_prog_compiler_static_F77=
13150
13151echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13152echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13153
13154  if test "$GCC" = yes; then
13155    lt_prog_compiler_wl_F77='-Wl,'
13156    lt_prog_compiler_static_F77='-static'
13157
13158    case $host_os in
13159      aix*)
13160      # All AIX code is PIC.
13161      if test "$host_cpu" = ia64; then
13162	# AIX 5 now supports IA64 processor
13163	lt_prog_compiler_static_F77='-Bstatic'
13164      fi
13165      ;;
13166
13167    amigaos*)
13168      # FIXME: we need at least 68020 code to build shared libraries, but
13169      # adding the `-m68020' flag to GCC prevents building anything better,
13170      # like `-m68040'.
13171      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13172      ;;
13173
13174    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13175      # PIC is the default for these OSes.
13176      ;;
13177
13178    mingw* | pw32* | os2*)
13179      # This hack is so that the source file can tell whether it is being
13180      # built for inclusion in a dll (and should export symbols for example).
13181      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13182      ;;
13183
13184    darwin* | rhapsody*)
13185      # PIC is the default on this platform
13186      # Common symbols not allowed in MH_DYLIB files
13187      lt_prog_compiler_pic_F77='-fno-common'
13188      ;;
13189
13190    msdosdjgpp*)
13191      # Just because we use GCC doesn't mean we suddenly get shared libraries
13192      # on systems that don't support them.
13193      lt_prog_compiler_can_build_shared_F77=no
13194      enable_shared=no
13195      ;;
13196
13197    sysv4*MP*)
13198      if test -d /usr/nec; then
13199	lt_prog_compiler_pic_F77=-Kconform_pic
13200      fi
13201      ;;
13202
13203    hpux*)
13204      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13205      # not for PA HP-UX.
13206      case "$host_cpu" in
13207      hppa*64*|ia64*)
13208	# +Z the default
13209	;;
13210      *)
13211	lt_prog_compiler_pic_F77='-fPIC'
13212	;;
13213      esac
13214      ;;
13215
13216    *)
13217      lt_prog_compiler_pic_F77='-fPIC'
13218      ;;
13219    esac
13220  else
13221    # PORTME Check for flag to pass linker flags through the system compiler.
13222    case $host_os in
13223    aix*)
13224      lt_prog_compiler_wl_F77='-Wl,'
13225      if test "$host_cpu" = ia64; then
13226	# AIX 5 now supports IA64 processor
13227	lt_prog_compiler_static_F77='-Bstatic'
13228      else
13229	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13230      fi
13231      ;;
13232
13233    mingw* | pw32* | os2*)
13234      # This hack is so that the source file can tell whether it is being
13235      # built for inclusion in a dll (and should export symbols for example).
13236      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13237      ;;
13238
13239    hpux9* | hpux10* | hpux11*)
13240      lt_prog_compiler_wl_F77='-Wl,'
13241      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13242      # not for PA HP-UX.
13243      case "$host_cpu" in
13244      hppa*64*|ia64*)
13245	# +Z the default
13246	;;
13247      *)
13248	lt_prog_compiler_pic_F77='+Z'
13249	;;
13250      esac
13251      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13252      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13253      ;;
13254
13255    irix5* | irix6* | nonstopux*)
13256      lt_prog_compiler_wl_F77='-Wl,'
13257      # PIC (with -KPIC) is the default.
13258      lt_prog_compiler_static_F77='-non_shared'
13259      ;;
13260
13261    newsos6)
13262      lt_prog_compiler_pic_F77='-KPIC'
13263      lt_prog_compiler_static_F77='-Bstatic'
13264      ;;
13265
13266    linux*)
13267      case $CC in
13268      icc* | ecc*)
13269	lt_prog_compiler_wl_F77='-Wl,'
13270	lt_prog_compiler_pic_F77='-KPIC'
13271	lt_prog_compiler_static_F77='-static'
13272        ;;
13273      ccc*)
13274        lt_prog_compiler_wl_F77='-Wl,'
13275        # All Alpha code is PIC.
13276        lt_prog_compiler_static_F77='-non_shared'
13277        ;;
13278      esac
13279      ;;
13280
13281    osf3* | osf4* | osf5*)
13282      lt_prog_compiler_wl_F77='-Wl,'
13283      # All OSF/1 code is PIC.
13284      lt_prog_compiler_static_F77='-non_shared'
13285      ;;
13286
13287    sco3.2v5*)
13288      lt_prog_compiler_pic_F77='-Kpic'
13289      lt_prog_compiler_static_F77='-dn'
13290      ;;
13291
13292    solaris*)
13293      lt_prog_compiler_wl_F77='-Wl,'
13294      lt_prog_compiler_pic_F77='-KPIC'
13295      lt_prog_compiler_static_F77='-Bstatic'
13296      ;;
13297
13298    sunos4*)
13299      lt_prog_compiler_wl_F77='-Qoption ld '
13300      lt_prog_compiler_pic_F77='-PIC'
13301      lt_prog_compiler_static_F77='-Bstatic'
13302      ;;
13303
13304    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13305      lt_prog_compiler_wl_F77='-Wl,'
13306      lt_prog_compiler_pic_F77='-KPIC'
13307      lt_prog_compiler_static_F77='-Bstatic'
13308      ;;
13309
13310    sysv4*MP*)
13311      if test -d /usr/nec ;then
13312	lt_prog_compiler_pic_F77='-Kconform_pic'
13313	lt_prog_compiler_static_F77='-Bstatic'
13314      fi
13315      ;;
13316
13317    uts4*)
13318      lt_prog_compiler_pic_F77='-pic'
13319      lt_prog_compiler_static_F77='-Bstatic'
13320      ;;
13321
13322    *)
13323      lt_prog_compiler_can_build_shared_F77=no
13324      ;;
13325    esac
13326  fi
13327
13328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13329echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13330
13331#
13332# Check to make sure the PIC flag actually works.
13333#
13334if test -n "$lt_prog_compiler_pic_F77"; then
13335
13336echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13337echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13338if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13339  echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
13341  lt_prog_compiler_pic_works_F77=no
13342  ac_outfile=conftest.$ac_objext
13343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13344   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13345   # Insert the option either (1) after the last *FLAGS variable, or
13346   # (2) before a word containing "conftest.", or (3) at the end.
13347   # Note that $ac_compile itself does not contain backslashes and begins
13348   # with a dollar sign (not a hyphen), so the echo should work correctly.
13349   # The option is referenced via a variable to avoid confusing sed.
13350   lt_compile=`echo "$ac_compile" | $SED \
13351   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13353   -e 's:$: $lt_compiler_flag:'`
13354   (eval echo "\"\$as_me:13354: $lt_compile\"" >&5)
13355   (eval "$lt_compile" 2>conftest.err)
13356   ac_status=$?
13357   cat conftest.err >&5
13358   echo "$as_me:13358: \$? = $ac_status" >&5
13359   if (exit $ac_status) && test -s "$ac_outfile"; then
13360     # The compiler can only warn and ignore the option if not recognized
13361     # So say no if there are warnings
13362     if test ! -s conftest.err; then
13363       lt_prog_compiler_pic_works_F77=yes
13364     fi
13365   fi
13366   $rm conftest*
13367
13368fi
13369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13370echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13371
13372if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13373    case $lt_prog_compiler_pic_F77 in
13374     "" | " "*) ;;
13375     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13376     esac
13377else
13378    lt_prog_compiler_pic_F77=
13379     lt_prog_compiler_can_build_shared_F77=no
13380fi
13381
13382fi
13383case "$host_os" in
13384  # For platforms which do not support PIC, -DPIC is meaningless:
13385  *djgpp*)
13386    lt_prog_compiler_pic_F77=
13387    ;;
13388  *)
13389    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13390    ;;
13391esac
13392
13393echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13394echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13395if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13396  echo $ECHO_N "(cached) $ECHO_C" >&6
13397else
13398  lt_cv_prog_compiler_c_o_F77=no
13399   $rm -r conftest 2>/dev/null
13400   mkdir conftest
13401   cd conftest
13402   mkdir out
13403   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13404
13405   lt_compiler_flag="-o out/conftest2.$ac_objext"
13406   # Insert the option either (1) after the last *FLAGS variable, or
13407   # (2) before a word containing "conftest.", or (3) at the end.
13408   # Note that $ac_compile itself does not contain backslashes and begins
13409   # with a dollar sign (not a hyphen), so the echo should work correctly.
13410   lt_compile=`echo "$ac_compile" | $SED \
13411   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13412   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413   -e 's:$: $lt_compiler_flag:'`
13414   (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
13415   (eval "$lt_compile" 2>out/conftest.err)
13416   ac_status=$?
13417   cat out/conftest.err >&5
13418   echo "$as_me:13418: \$? = $ac_status" >&5
13419   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13420   then
13421     # The compiler can only warn and ignore the option if not recognized
13422     # So say no if there are warnings
13423     if test ! -s out/conftest.err; then
13424       lt_cv_prog_compiler_c_o_F77=yes
13425     fi
13426   fi
13427   chmod u+w .
13428   $rm conftest*
13429   # SGI C++ compiler will create directory out/ii_files/ for
13430   # template instantiation
13431   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13432   $rm out/* && rmdir out
13433   cd ..
13434   rmdir conftest
13435   $rm conftest*
13436
13437fi
13438echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13439echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13440
13441
13442hard_links="nottested"
13443if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13444  # do not overwrite the value of need_locks provided by the user
13445  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13446echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13447  hard_links=yes
13448  $rm conftest*
13449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13450  touch conftest.a
13451  ln conftest.a conftest.b 2>&5 || hard_links=no
13452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13453  echo "$as_me:$LINENO: result: $hard_links" >&5
13454echo "${ECHO_T}$hard_links" >&6
13455  if test "$hard_links" = no; then
13456    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13457echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13458    need_locks=warn
13459  fi
13460else
13461  need_locks=no
13462fi
13463
13464echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13465echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13466
13467  runpath_var=
13468  allow_undefined_flag_F77=
13469  enable_shared_with_static_runtimes_F77=no
13470  archive_cmds_F77=
13471  archive_expsym_cmds_F77=
13472  old_archive_From_new_cmds_F77=
13473  old_archive_from_expsyms_cmds_F77=
13474  export_dynamic_flag_spec_F77=
13475  whole_archive_flag_spec_F77=
13476  thread_safe_flag_spec_F77=
13477  hardcode_libdir_flag_spec_F77=
13478  hardcode_libdir_flag_spec_ld_F77=
13479  hardcode_libdir_separator_F77=
13480  hardcode_direct_F77=no
13481  hardcode_minus_L_F77=no
13482  hardcode_shlibpath_var_F77=unsupported
13483  link_all_deplibs_F77=unknown
13484  hardcode_automatic_F77=no
13485  module_cmds_F77=
13486  module_expsym_cmds_F77=
13487  always_export_symbols_F77=no
13488  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13489  # include_expsyms should be a list of space-separated symbols to be *always*
13490  # included in the symbol list
13491  include_expsyms_F77=
13492  # exclude_expsyms can be an extended regexp of symbols to exclude
13493  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13494  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13495  # as well as any symbol that contains `d'.
13496  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13497  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13498  # platforms (ab)use it in PIC code, but their linkers get confused if
13499  # the symbol is explicitly referenced.  Since portable code cannot
13500  # rely on this symbol name, it's probably fine to never include it in
13501  # preloaded symbol tables.
13502  extract_expsyms_cmds=
13503
13504  case $host_os in
13505  cygwin* | mingw* | pw32*)
13506    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13507    # When not using gcc, we currently assume that we are using
13508    # Microsoft Visual C++.
13509    if test "$GCC" != yes; then
13510      with_gnu_ld=no
13511    fi
13512    ;;
13513  openbsd*)
13514    with_gnu_ld=no
13515    ;;
13516  esac
13517
13518  ld_shlibs_F77=yes
13519  if test "$with_gnu_ld" = yes; then
13520    # If archive_cmds runs LD, not CC, wlarc should be empty
13521    wlarc='${wl}'
13522
13523    # See if GNU ld supports shared libraries.
13524    case $host_os in
13525    aix3* | aix4* | aix5*)
13526      # On AIX/PPC, the GNU linker is very broken
13527      if test "$host_cpu" != ia64; then
13528	ld_shlibs_F77=no
13529	cat <<EOF 1>&2
13530
13531*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13532*** to be unable to reliably create shared libraries on AIX.
13533*** Therefore, libtool is disabling shared libraries support.  If you
13534*** really care for shared libraries, you may want to modify your PATH
13535*** so that a non-GNU linker is found, and then restart.
13536
13537EOF
13538      fi
13539      ;;
13540
13541    amigaos*)
13542      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)'
13543      hardcode_libdir_flag_spec_F77='-L$libdir'
13544      hardcode_minus_L_F77=yes
13545
13546      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13547      # that the semantics of dynamic libraries on AmigaOS, at least up
13548      # to version 4, is to share data among multiple programs linked
13549      # with the same dynamic library.  Since this doesn't match the
13550      # behavior of shared libraries on other platforms, we can't use
13551      # them.
13552      ld_shlibs_F77=no
13553      ;;
13554
13555    beos*)
13556      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13557	allow_undefined_flag_F77=unsupported
13558	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13559	# support --undefined.  This deserves some investigation.  FIXME
13560	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561      else
13562	ld_shlibs_F77=no
13563      fi
13564      ;;
13565
13566    cygwin* | mingw* | pw32*)
13567      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13568      # as there is no search path for DLLs.
13569      hardcode_libdir_flag_spec_F77='-L$libdir'
13570      allow_undefined_flag_F77=unsupported
13571      always_export_symbols_F77=no
13572      enable_shared_with_static_runtimes_F77=yes
13573      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13574
13575      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13576        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13577	# If the export-symbols file already is a .def file (1st line
13578	# is EXPORTS), use it as is; otherwise, prepend...
13579	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13580	  cp $export_symbols $output_objdir/$soname.def;
13581	else
13582	  echo EXPORTS > $output_objdir/$soname.def;
13583	  cat $export_symbols >> $output_objdir/$soname.def;
13584	fi~
13585	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13586      else
13587	ld_shlibs=no
13588      fi
13589      ;;
13590
13591    netbsd* | knetbsd*-gnu)
13592      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13593	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13594	wlarc=
13595      else
13596	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13597	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13598      fi
13599      ;;
13600
13601    solaris* | sysv5*)
13602      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13603	ld_shlibs_F77=no
13604	cat <<EOF 1>&2
13605
13606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13607*** create shared libraries on Solaris systems.  Therefore, libtool
13608*** is disabling shared libraries support.  We urge you to upgrade GNU
13609*** binutils to release 2.9.1 or newer.  Another option is to modify
13610*** your PATH or compiler configuration so that the native linker is
13611*** used, and then restart.
13612
13613EOF
13614      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13617      else
13618	ld_shlibs_F77=no
13619      fi
13620      ;;
13621
13622    sunos4*)
13623      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13624      wlarc=
13625      hardcode_direct_F77=yes
13626      hardcode_shlibpath_var_F77=no
13627      ;;
13628
13629  linux*)
13630    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13631        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632	archive_cmds_F77="$tmp_archive_cmds"
13633      supports_anon_versioning=no
13634      case `$LD -v 2>/dev/null` in
13635        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13636        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13637        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13638        *\ 2.11.*) ;; # other 2.11 versions
13639        *) supports_anon_versioning=yes ;;
13640      esac
13641      if test $supports_anon_versioning = yes; then
13642        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13643cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13644$echo "local: *; };" >> $output_objdir/$libname.ver~
13645        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13646      else
13647        archive_expsym_cmds_F77="$tmp_archive_cmds"
13648      fi
13649    else
13650      ld_shlibs_F77=no
13651    fi
13652    ;;
13653
13654    *)
13655      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13656	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658      else
13659	ld_shlibs_F77=no
13660      fi
13661      ;;
13662    esac
13663
13664    if test "$ld_shlibs_F77" = yes; then
13665      runpath_var=LD_RUN_PATH
13666      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13667      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13668      # ancient GNU ld didn't support --whole-archive et. al.
13669      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13670 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13671      else
13672  	whole_archive_flag_spec_F77=
13673      fi
13674    fi
13675  else
13676    # PORTME fill in a description of your system's linker (not GNU ld)
13677    case $host_os in
13678    aix3*)
13679      allow_undefined_flag_F77=unsupported
13680      always_export_symbols_F77=yes
13681      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'
13682      # Note: this linker hardcodes the directories in LIBPATH if there
13683      # are no directories specified by -L.
13684      hardcode_minus_L_F77=yes
13685      if test "$GCC" = yes && test -z "$link_static_flag"; then
13686	# Neither direct hardcoding nor static linking is supported with a
13687	# broken collect2.
13688	hardcode_direct_F77=unsupported
13689      fi
13690      ;;
13691
13692    aix4* | aix5*)
13693      if test "$host_cpu" = ia64; then
13694	# On IA64, the linker does run time linking by default, so we don't
13695	# have to do anything special.
13696	aix_use_runtimelinking=no
13697	exp_sym_flag='-Bexport'
13698	no_entry_flag=""
13699      else
13700	# If we're using GNU nm, then we don't want the "-C" option.
13701	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13702	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13703	  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'
13704	else
13705	  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'
13706	fi
13707	aix_use_runtimelinking=no
13708
13709	# Test if we are trying to use run time linking or normal
13710	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13711	# need to do runtime linking.
13712	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13713	  for ld_flag in $LDFLAGS; do
13714  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13715  	    aix_use_runtimelinking=yes
13716  	    break
13717  	  fi
13718	  done
13719	esac
13720
13721	exp_sym_flag='-bexport'
13722	no_entry_flag='-bnoentry'
13723      fi
13724
13725      # When large executables or shared objects are built, AIX ld can
13726      # have problems creating the table of contents.  If linking a library
13727      # or program results in "error TOC overflow" add -mminimal-toc to
13728      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13729      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13730
13731      archive_cmds_F77=''
13732      hardcode_direct_F77=yes
13733      hardcode_libdir_separator_F77=':'
13734      link_all_deplibs_F77=yes
13735
13736      if test "$GCC" = yes; then
13737	case $host_os in aix4.012|aix4.012.*)
13738	# We only want to do this on AIX 4.2 and lower, the check
13739	# below for broken collect2 doesn't work under 4.3+
13740	  collect2name=`${CC} -print-prog-name=collect2`
13741	  if test -f "$collect2name" && \
13742  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13743	  then
13744  	  # We have reworked collect2
13745  	  hardcode_direct_F77=yes
13746	  else
13747  	  # We have old collect2
13748  	  hardcode_direct_F77=unsupported
13749  	  # It fails to find uninstalled libraries when the uninstalled
13750  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13751  	  # to unsupported forces relinking
13752  	  hardcode_minus_L_F77=yes
13753  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13754  	  hardcode_libdir_separator_F77=
13755	  fi
13756	esac
13757	shared_flag='-shared'
13758      else
13759	# not using gcc
13760	if test "$host_cpu" = ia64; then
13761  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13762  	# chokes on -Wl,-G. The following line is correct:
13763	  shared_flag='-G'
13764	else
13765  	if test "$aix_use_runtimelinking" = yes; then
13766	    shared_flag='${wl}-G'
13767	  else
13768	    shared_flag='${wl}-bM:SRE'
13769  	fi
13770	fi
13771      fi
13772
13773      # It seems that -bexpall does not export symbols beginning with
13774      # underscore (_), so it is better to generate a list of symbols to export.
13775      always_export_symbols_F77=yes
13776      if test "$aix_use_runtimelinking" = yes; then
13777	# Warning - without using the other runtime loading flags (-brtl),
13778	# -berok will link without error, but may produce a broken library.
13779	allow_undefined_flag_F77='-berok'
13780       # Determine the default libpath from the value encoded in an empty executable.
13781       cat >conftest.$ac_ext <<_ACEOF
13782      program main
13783
13784      end
13785_ACEOF
13786rm -f conftest.$ac_objext conftest$ac_exeext
13787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13788  (eval $ac_link) 2>conftest.er1
13789  ac_status=$?
13790  grep -v '^ *+' conftest.er1 >conftest.err
13791  rm -f conftest.er1
13792  cat conftest.err >&5
13793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794  (exit $ac_status); } &&
13795	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797  (eval $ac_try) 2>&5
13798  ac_status=$?
13799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800  (exit $ac_status); }; } &&
13801	 { ac_try='test -s conftest$ac_exeext'
13802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803  (eval $ac_try) 2>&5
13804  ac_status=$?
13805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806  (exit $ac_status); }; }; then
13807
13808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13809}'`
13810# Check for a 64-bit object if we didn't find anything.
13811if 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; }
13812}'`; fi
13813else
13814  echo "$as_me: failed program was:" >&5
13815sed 's/^/| /' conftest.$ac_ext >&5
13816
13817fi
13818rm -f conftest.err conftest.$ac_objext \
13819      conftest$ac_exeext conftest.$ac_ext
13820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13821
13822       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13823	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"
13824       else
13825	if test "$host_cpu" = ia64; then
13826	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13827	  allow_undefined_flag_F77="-z nodefs"
13828	  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"
13829	else
13830	 # Determine the default libpath from the value encoded in an empty executable.
13831	 cat >conftest.$ac_ext <<_ACEOF
13832      program main
13833
13834      end
13835_ACEOF
13836rm -f conftest.$ac_objext conftest$ac_exeext
13837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838  (eval $ac_link) 2>conftest.er1
13839  ac_status=$?
13840  grep -v '^ *+' conftest.er1 >conftest.err
13841  rm -f conftest.er1
13842  cat conftest.err >&5
13843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844  (exit $ac_status); } &&
13845	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847  (eval $ac_try) 2>&5
13848  ac_status=$?
13849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850  (exit $ac_status); }; } &&
13851	 { ac_try='test -s conftest$ac_exeext'
13852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853  (eval $ac_try) 2>&5
13854  ac_status=$?
13855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856  (exit $ac_status); }; }; then
13857
13858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13859}'`
13860# Check for a 64-bit object if we didn't find anything.
13861if 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; }
13862}'`; fi
13863else
13864  echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
13867fi
13868rm -f conftest.err conftest.$ac_objext \
13869      conftest$ac_exeext conftest.$ac_ext
13870if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13871
13872	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13873	  # Warning - without using the other run time loading flags,
13874	  # -berok will link without error, but may produce a broken library.
13875	  no_undefined_flag_F77=' ${wl}-bernotok'
13876	  allow_undefined_flag_F77=' ${wl}-berok'
13877	  # -bexpall does not export symbols beginning with underscore (_)
13878	  always_export_symbols_F77=yes
13879	  # Exported symbols can be pulled into shared objects from archives
13880	  whole_archive_flag_spec_F77=' '
13881	  archive_cmds_need_lc_F77=yes
13882	  # This is similar to how AIX traditionally builds it's shared libraries.
13883	  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'
13884	fi
13885      fi
13886      ;;
13887
13888    amigaos*)
13889      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)'
13890      hardcode_libdir_flag_spec_F77='-L$libdir'
13891      hardcode_minus_L_F77=yes
13892      # see comment about different semantics on the GNU ld section
13893      ld_shlibs_F77=no
13894      ;;
13895
13896    bsdi4*)
13897      export_dynamic_flag_spec_F77=-rdynamic
13898      ;;
13899
13900    cygwin* | mingw* | pw32*)
13901      # When not using gcc, we currently assume that we are using
13902      # Microsoft Visual C++.
13903      # hardcode_libdir_flag_spec is actually meaningless, as there is
13904      # no search path for DLLs.
13905      hardcode_libdir_flag_spec_F77=' '
13906      allow_undefined_flag_F77=unsupported
13907      # Tell ltmain to make .lib files, not .a files.
13908      libext=lib
13909      # Tell ltmain to make .dll files, not .so files.
13910      shrext=".dll"
13911      # FIXME: Setting linknames here is a bad hack.
13912      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13913      # The linker will automatically build a .lib file if we build a DLL.
13914      old_archive_From_new_cmds_F77='true'
13915      # FIXME: Should let the user specify the lib program.
13916      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13917      fix_srcfile_path='`cygpath -w "$srcfile"`'
13918      enable_shared_with_static_runtimes_F77=yes
13919      ;;
13920
13921    darwin* | rhapsody*)
13922    if test "$GXX" = yes ; then
13923      archive_cmds_need_lc_F77=no
13924      case "$host_os" in
13925      rhapsody* | darwin1.[012])
13926	allow_undefined_flag_F77='-undefined suppress'
13927	;;
13928      *) # Darwin 1.3 on
13929      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13930      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13931      else
13932        case ${MACOSX_DEPLOYMENT_TARGET} in
13933          10.[012])
13934            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13935            ;;
13936          10.*)
13937            allow_undefined_flag_F77='-undefined dynamic_lookup'
13938            ;;
13939        esac
13940      fi
13941	;;
13942      esac
13943    	lt_int_apple_cc_single_mod=no
13944    	output_verbose_link_cmd='echo'
13945    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13946    	  lt_int_apple_cc_single_mod=yes
13947    	fi
13948    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13949    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13950    	else
13951        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13952      fi
13953      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13954      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13955        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13956          archive_expsym_cmds_F77='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}'
13957        else
13958          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13959        fi
13960          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}'
13961      hardcode_direct_F77=no
13962      hardcode_automatic_F77=yes
13963      hardcode_shlibpath_var_F77=unsupported
13964      whole_archive_flag_spec_F77='-all_load $convenience'
13965      link_all_deplibs_F77=yes
13966    else
13967      ld_shlibs_F77=no
13968    fi
13969      ;;
13970
13971    dgux*)
13972      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973      hardcode_libdir_flag_spec_F77='-L$libdir'
13974      hardcode_shlibpath_var_F77=no
13975      ;;
13976
13977    freebsd1*)
13978      ld_shlibs_F77=no
13979      ;;
13980
13981    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13982    # support.  Future versions do this automatically, but an explicit c++rt0.o
13983    # does not break anything, and helps significantly (at the cost of a little
13984    # extra space).
13985    freebsd2.2*)
13986      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13987      hardcode_libdir_flag_spec_F77='-R$libdir'
13988      hardcode_direct_F77=yes
13989      hardcode_shlibpath_var_F77=no
13990      ;;
13991
13992    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13993    freebsd2*)
13994      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13995      hardcode_direct_F77=yes
13996      hardcode_minus_L_F77=yes
13997      hardcode_shlibpath_var_F77=no
13998      ;;
13999
14000    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14001    freebsd* | kfreebsd*-gnu)
14002      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14003      hardcode_libdir_flag_spec_F77='-R$libdir'
14004      hardcode_direct_F77=yes
14005      hardcode_shlibpath_var_F77=no
14006      ;;
14007
14008    hpux9*)
14009      if test "$GCC" = yes; then
14010	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'
14011      else
14012	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'
14013      fi
14014      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14015      hardcode_libdir_separator_F77=:
14016      hardcode_direct_F77=yes
14017
14018      # hardcode_minus_L: Not really in the search PATH,
14019      # but as the default location of the library.
14020      hardcode_minus_L_F77=yes
14021      export_dynamic_flag_spec_F77='${wl}-E'
14022      ;;
14023
14024    hpux10* | hpux11*)
14025      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14026	case "$host_cpu" in
14027	hppa*64*|ia64*)
14028	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14029	  ;;
14030	*)
14031	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14032	  ;;
14033	esac
14034      else
14035	case "$host_cpu" in
14036	hppa*64*|ia64*)
14037	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14038	  ;;
14039	*)
14040	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14041	  ;;
14042	esac
14043      fi
14044      if test "$with_gnu_ld" = no; then
14045	case "$host_cpu" in
14046	hppa*64*)
14047	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14048	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14049	  hardcode_libdir_separator_F77=:
14050	  hardcode_direct_F77=no
14051	  hardcode_shlibpath_var_F77=no
14052	  ;;
14053	ia64*)
14054	  hardcode_libdir_flag_spec_F77='-L$libdir'
14055	  hardcode_direct_F77=no
14056	  hardcode_shlibpath_var_F77=no
14057
14058	  # hardcode_minus_L: Not really in the search PATH,
14059	  # but as the default location of the library.
14060	  hardcode_minus_L_F77=yes
14061	  ;;
14062	*)
14063	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14064	  hardcode_libdir_separator_F77=:
14065	  hardcode_direct_F77=yes
14066	  export_dynamic_flag_spec_F77='${wl}-E'
14067
14068	  # hardcode_minus_L: Not really in the search PATH,
14069	  # but as the default location of the library.
14070	  hardcode_minus_L_F77=yes
14071	  ;;
14072	esac
14073      fi
14074      ;;
14075
14076    irix5* | irix6* | nonstopux*)
14077      if test "$GCC" = yes; then
14078	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'
14079      else
14080	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'
14081	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14082      fi
14083      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14084      hardcode_libdir_separator_F77=:
14085      link_all_deplibs_F77=yes
14086      ;;
14087
14088    netbsd* | knetbsd*-gnu)
14089      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14090	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14091      else
14092	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14093      fi
14094      hardcode_libdir_flag_spec_F77='-R$libdir'
14095      hardcode_direct_F77=yes
14096      hardcode_shlibpath_var_F77=no
14097      ;;
14098
14099    newsos6)
14100      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101      hardcode_direct_F77=yes
14102      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14103      hardcode_libdir_separator_F77=:
14104      hardcode_shlibpath_var_F77=no
14105      ;;
14106
14107    openbsd*)
14108      hardcode_direct_F77=yes
14109      hardcode_shlibpath_var_F77=no
14110      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14111	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14112	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14113	export_dynamic_flag_spec_F77='${wl}-E'
14114      else
14115       case $host_os in
14116	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14117	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14118	   hardcode_libdir_flag_spec_F77='-R$libdir'
14119	   ;;
14120	 *)
14121	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14122	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14123	   ;;
14124       esac
14125      fi
14126      ;;
14127
14128    os2*)
14129      hardcode_libdir_flag_spec_F77='-L$libdir'
14130      hardcode_minus_L_F77=yes
14131      allow_undefined_flag_F77=unsupported
14132      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'
14133      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14134      ;;
14135
14136    osf3*)
14137      if test "$GCC" = yes; then
14138	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14139	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'
14140      else
14141	allow_undefined_flag_F77=' -expect_unresolved \*'
14142	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'
14143      fi
14144      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14145      hardcode_libdir_separator_F77=:
14146      ;;
14147
14148    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14149      if test "$GCC" = yes; then
14150	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14151	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'
14152	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14153      else
14154	allow_undefined_flag_F77=' -expect_unresolved \*'
14155	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'
14156	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~
14157	$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'
14158
14159	# Both c and cxx compiler support -rpath directly
14160	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14161      fi
14162      hardcode_libdir_separator_F77=:
14163      ;;
14164
14165    sco3.2v5*)
14166      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167      hardcode_shlibpath_var_F77=no
14168      export_dynamic_flag_spec_F77='${wl}-Bexport'
14169      runpath_var=LD_RUN_PATH
14170      hardcode_runpath_var=yes
14171      ;;
14172
14173    solaris*)
14174      no_undefined_flag_F77=' -z text'
14175      if test "$GCC" = yes; then
14176	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14177	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14179      else
14180	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14181	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14182  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14183      fi
14184      hardcode_libdir_flag_spec_F77='-R$libdir'
14185      hardcode_shlibpath_var_F77=no
14186      case $host_os in
14187      solaris2.[0-5] | solaris2.[0-5].*) ;;
14188      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14189	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14190      esac
14191      link_all_deplibs_F77=yes
14192      ;;
14193
14194    sunos4*)
14195      if test "x$host_vendor" = xsequent; then
14196	# Use $CC to link under sequent, because it throws in some extra .o
14197	# files that make .init and .fini sections work.
14198	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14199      else
14200	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14201      fi
14202      hardcode_libdir_flag_spec_F77='-L$libdir'
14203      hardcode_direct_F77=yes
14204      hardcode_minus_L_F77=yes
14205      hardcode_shlibpath_var_F77=no
14206      ;;
14207
14208    sysv4)
14209      case $host_vendor in
14210	sni)
14211	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14212	  hardcode_direct_F77=yes # is this really true???
14213	;;
14214	siemens)
14215	  ## LD is ld it makes a PLAMLIB
14216	  ## CC just makes a GrossModule.
14217	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14218	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14219	  hardcode_direct_F77=no
14220        ;;
14221	motorola)
14222	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14223	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14224	;;
14225      esac
14226      runpath_var='LD_RUN_PATH'
14227      hardcode_shlibpath_var_F77=no
14228      ;;
14229
14230    sysv4.3*)
14231      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232      hardcode_shlibpath_var_F77=no
14233      export_dynamic_flag_spec_F77='-Bexport'
14234      ;;
14235
14236    sysv4*MP*)
14237      if test -d /usr/nec; then
14238	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239	hardcode_shlibpath_var_F77=no
14240	runpath_var=LD_RUN_PATH
14241	hardcode_runpath_var=yes
14242	ld_shlibs_F77=yes
14243      fi
14244      ;;
14245
14246    sysv4.2uw2*)
14247      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14248      hardcode_direct_F77=yes
14249      hardcode_minus_L_F77=no
14250      hardcode_shlibpath_var_F77=no
14251      hardcode_runpath_var=yes
14252      runpath_var=LD_RUN_PATH
14253      ;;
14254
14255   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14256      no_undefined_flag_F77='${wl}-z ${wl}text'
14257      if test "$GCC" = yes; then
14258	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14259      else
14260	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14261      fi
14262      runpath_var='LD_RUN_PATH'
14263      hardcode_shlibpath_var_F77=no
14264      ;;
14265
14266    sysv5*)
14267      no_undefined_flag_F77=' -z text'
14268      # $CC -shared without GNU ld will not create a library from C++
14269      # object files and a static libstdc++, better avoid it by now
14270      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14272  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14273      hardcode_libdir_flag_spec_F77=
14274      hardcode_shlibpath_var_F77=no
14275      runpath_var='LD_RUN_PATH'
14276      ;;
14277
14278    uts4*)
14279      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280      hardcode_libdir_flag_spec_F77='-L$libdir'
14281      hardcode_shlibpath_var_F77=no
14282      ;;
14283
14284    *)
14285      ld_shlibs_F77=no
14286      ;;
14287    esac
14288  fi
14289
14290echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14291echo "${ECHO_T}$ld_shlibs_F77" >&6
14292test "$ld_shlibs_F77" = no && can_build_shared=no
14293
14294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14295if test "$GCC" = yes; then
14296  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14297fi
14298
14299#
14300# Do we need to explicitly link libc?
14301#
14302case "x$archive_cmds_need_lc_F77" in
14303x|xyes)
14304  # Assume -lc should be added
14305  archive_cmds_need_lc_F77=yes
14306
14307  if test "$enable_shared" = yes && test "$GCC" = yes; then
14308    case $archive_cmds_F77 in
14309    *'~'*)
14310      # FIXME: we may have to deal with multi-command sequences.
14311      ;;
14312    '$CC '*)
14313      # Test whether the compiler implicitly links with -lc since on some
14314      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14315      # to ld, don't add -lc before -lgcc.
14316      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14317echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14318      $rm conftest*
14319      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14320
14321      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322  (eval $ac_compile) 2>&5
14323  ac_status=$?
14324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325  (exit $ac_status); } 2>conftest.err; then
14326        soname=conftest
14327        lib=conftest
14328        libobjs=conftest.$ac_objext
14329        deplibs=
14330        wl=$lt_prog_compiler_wl_F77
14331        compiler_flags=-v
14332        linker_flags=-v
14333        verstring=
14334        output_objdir=.
14335        libname=conftest
14336        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14337        allow_undefined_flag_F77=
14338        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14339  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14340  ac_status=$?
14341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342  (exit $ac_status); }
14343        then
14344	  archive_cmds_need_lc_F77=no
14345        else
14346	  archive_cmds_need_lc_F77=yes
14347        fi
14348        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14349      else
14350        cat conftest.err 1>&5
14351      fi
14352      $rm conftest*
14353      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14354echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14355      ;;
14356    esac
14357  fi
14358  ;;
14359esac
14360
14361echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14362echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14363library_names_spec=
14364libname_spec='lib$name'
14365soname_spec=
14366shrext=".so"
14367postinstall_cmds=
14368postuninstall_cmds=
14369finish_cmds=
14370finish_eval=
14371shlibpath_var=
14372shlibpath_overrides_runpath=unknown
14373version_type=none
14374dynamic_linker="$host_os ld.so"
14375sys_lib_dlsearch_path_spec="/lib /usr/lib"
14376if test "$GCC" = yes; then
14377  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14378  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14379    # if the path contains ";" then we assume it to be the separator
14380    # otherwise default to the standard path separator (i.e. ":") - it is
14381    # assumed that no part of a normal pathname contains ";" but that should
14382    # okay in the real world where ";" in dirpaths is itself problematic.
14383    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14384  else
14385    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14386  fi
14387else
14388  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14389fi
14390need_lib_prefix=unknown
14391hardcode_into_libs=no
14392
14393# when you set need_version to no, make sure it does not cause -set_version
14394# flags to be left without arguments
14395need_version=unknown
14396
14397case $host_os in
14398aix3*)
14399  version_type=linux
14400  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14401  shlibpath_var=LIBPATH
14402
14403  # AIX 3 has no versioning support, so we append a major version to the name.
14404  soname_spec='${libname}${release}${shared_ext}$major'
14405  ;;
14406
14407aix4* | aix5*)
14408  version_type=linux
14409  need_lib_prefix=no
14410  need_version=no
14411  hardcode_into_libs=yes
14412  if test "$host_cpu" = ia64; then
14413    # AIX 5 supports IA64
14414    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14415    shlibpath_var=LD_LIBRARY_PATH
14416  else
14417    # With GCC up to 2.95.x, collect2 would create an import file
14418    # for dependence libraries.  The import file would start with
14419    # the line `#! .'.  This would cause the generated library to
14420    # depend on `.', always an invalid library.  This was fixed in
14421    # development snapshots of GCC prior to 3.0.
14422    case $host_os in
14423      aix4 | aix4.[01] | aix4.[01].*)
14424      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14425	   echo ' yes '
14426	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14427	:
14428      else
14429	can_build_shared=no
14430      fi
14431      ;;
14432    esac
14433    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14434    # soname into executable. Probably we can add versioning support to
14435    # collect2, so additional links can be useful in future.
14436    if test "$aix_use_runtimelinking" = yes; then
14437      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14438      # instead of lib<name>.a to let people know that these are not
14439      # typical AIX shared libraries.
14440      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441    else
14442      # We preserve .a as extension for shared libraries through AIX4.2
14443      # and later when we are not doing run time linking.
14444      library_names_spec='${libname}${release}.a $libname.a'
14445      soname_spec='${libname}${release}${shared_ext}$major'
14446    fi
14447    shlibpath_var=LIBPATH
14448  fi
14449  ;;
14450
14451amigaos*)
14452  library_names_spec='$libname.ixlibrary $libname.a'
14453  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14454  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'
14455  ;;
14456
14457beos*)
14458  library_names_spec='${libname}${shared_ext}'
14459  dynamic_linker="$host_os ld.so"
14460  shlibpath_var=LIBRARY_PATH
14461  ;;
14462
14463bsdi4*)
14464  version_type=linux
14465  need_version=no
14466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467  soname_spec='${libname}${release}${shared_ext}$major'
14468  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14469  shlibpath_var=LD_LIBRARY_PATH
14470  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14471  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14472  # the default ld.so.conf also contains /usr/contrib/lib and
14473  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14474  # libtool to hard-code these into programs
14475  ;;
14476
14477cygwin* | mingw* | pw32*)
14478  version_type=windows
14479  shrext=".dll"
14480  need_version=no
14481  need_lib_prefix=no
14482
14483  case $GCC,$host_os in
14484  yes,cygwin* | yes,mingw* | yes,pw32*)
14485    library_names_spec='$libname.dll.a'
14486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14487    postinstall_cmds='base_file=`basename \${file}`~
14488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14489      dldir=$destdir/`dirname \$dlpath`~
14490      test -d \$dldir || mkdir -p \$dldir~
14491      $install_prog $dir/$dlname \$dldir/$dlname'
14492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14493      dlpath=$dir/\$dldll~
14494       $rm \$dlpath'
14495    shlibpath_overrides_runpath=yes
14496
14497    case $host_os in
14498    cygwin*)
14499      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14500      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14502      ;;
14503    mingw*)
14504      # MinGW DLLs use traditional 'lib' prefix
14505      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14506      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14507      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14508        # It is most probably a Windows format PATH printed by
14509        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14510        # path with ; separators, and with drive letters. We can handle the
14511        # drive letters (cygwin fileutils understands them), so leave them,
14512        # especially as we might pass files found there to a mingw objdump,
14513        # which wouldn't understand a cygwinified path. Ahh.
14514        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14515      else
14516        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14517      fi
14518      ;;
14519    pw32*)
14520      # pw32 DLLs use 'pw' prefix rather than 'lib'
14521      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14522      ;;
14523    esac
14524    ;;
14525
14526  *)
14527    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14528    ;;
14529  esac
14530  dynamic_linker='Win32 ld.exe'
14531  # FIXME: first we should search . and the directory the executable is in
14532  shlibpath_var=PATH
14533  ;;
14534
14535darwin* | rhapsody*)
14536  dynamic_linker="$host_os dyld"
14537  version_type=darwin
14538  need_lib_prefix=no
14539  need_version=no
14540  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14541  soname_spec='${libname}${release}${major}$shared_ext'
14542  shlibpath_overrides_runpath=yes
14543  shlibpath_var=DYLD_LIBRARY_PATH
14544  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14545  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14546  if test "$GCC" = yes; then
14547    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"`
14548  else
14549    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14550  fi
14551  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14552  ;;
14553
14554dgux*)
14555  version_type=linux
14556  need_lib_prefix=no
14557  need_version=no
14558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14559  soname_spec='${libname}${release}${shared_ext}$major'
14560  shlibpath_var=LD_LIBRARY_PATH
14561  ;;
14562
14563freebsd1*)
14564  dynamic_linker=no
14565  ;;
14566
14567kfreebsd*-gnu)
14568  version_type=linux
14569  need_lib_prefix=no
14570  need_version=no
14571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572  soname_spec='${libname}${release}${shared_ext}$major'
14573  shlibpath_var=LD_LIBRARY_PATH
14574  shlibpath_overrides_runpath=no
14575  hardcode_into_libs=yes
14576  dynamic_linker='GNU ld.so'
14577  ;;
14578
14579freebsd*)
14580  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14581  version_type=freebsd-$objformat
14582  case $version_type in
14583    freebsd-elf*)
14584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585      need_version=no
14586      need_lib_prefix=no
14587      ;;
14588    freebsd-*)
14589      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14590      need_version=yes
14591      ;;
14592  esac
14593  shlibpath_var=LD_LIBRARY_PATH
14594  case $host_os in
14595  freebsd2*)
14596    shlibpath_overrides_runpath=yes
14597    ;;
14598  freebsd3.01* | freebsdelf3.01*)
14599    shlibpath_overrides_runpath=yes
14600    hardcode_into_libs=yes
14601    ;;
14602  *) # from 3.2 on
14603    shlibpath_overrides_runpath=no
14604    hardcode_into_libs=yes
14605    ;;
14606  esac
14607  ;;
14608
14609gnu*)
14610  version_type=linux
14611  need_lib_prefix=no
14612  need_version=no
14613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14614  soname_spec='${libname}${release}${shared_ext}$major'
14615  shlibpath_var=LD_LIBRARY_PATH
14616  hardcode_into_libs=yes
14617  ;;
14618
14619hpux9* | hpux10* | hpux11*)
14620  # Give a soname corresponding to the major version so that dld.sl refuses to
14621  # link against other versions.
14622  version_type=sunos
14623  need_lib_prefix=no
14624  need_version=no
14625  case "$host_cpu" in
14626  ia64*)
14627    shrext='.so'
14628    hardcode_into_libs=yes
14629    dynamic_linker="$host_os dld.so"
14630    shlibpath_var=LD_LIBRARY_PATH
14631    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
14635      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14636    else
14637      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14638    fi
14639    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14640    ;;
14641   hppa*64*)
14642     shrext='.sl'
14643     hardcode_into_libs=yes
14644     dynamic_linker="$host_os dld.sl"
14645     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648     soname_spec='${libname}${release}${shared_ext}$major'
14649     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14650     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14651     ;;
14652   *)
14653    shrext='.sl'
14654    dynamic_linker="$host_os dld.sl"
14655    shlibpath_var=SHLIB_PATH
14656    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658    soname_spec='${libname}${release}${shared_ext}$major'
14659    ;;
14660  esac
14661  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14662  postinstall_cmds='chmod 555 $lib'
14663  ;;
14664
14665irix5* | irix6* | nonstopux*)
14666  case $host_os in
14667    nonstopux*) version_type=nonstopux ;;
14668    *)
14669	if test "$lt_cv_prog_gnu_ld" = yes; then
14670		version_type=linux
14671	else
14672		version_type=irix
14673	fi ;;
14674  esac
14675  need_lib_prefix=no
14676  need_version=no
14677  soname_spec='${libname}${release}${shared_ext}$major'
14678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14679  case $host_os in
14680  irix5* | nonstopux*)
14681    libsuff= shlibsuff=
14682    ;;
14683  *)
14684    case $LD in # libtool.m4 will add one of these switches to LD
14685    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14686      libsuff= shlibsuff= libmagic=32-bit;;
14687    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14688      libsuff=32 shlibsuff=N32 libmagic=N32;;
14689    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14690      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14691    *) libsuff= shlibsuff= libmagic=never-match;;
14692    esac
14693    ;;
14694  esac
14695  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14696  shlibpath_overrides_runpath=no
14697  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14698  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14699  hardcode_into_libs=yes
14700  ;;
14701
14702# No shared lib support for Linux oldld, aout, or coff.
14703linux*oldld* | linux*aout* | linux*coff*)
14704  dynamic_linker=no
14705  ;;
14706
14707# This must be Linux ELF.
14708linux*)
14709  version_type=linux
14710  need_lib_prefix=no
14711  need_version=no
14712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713  soname_spec='${libname}${release}${shared_ext}$major'
14714  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14715  shlibpath_var=LD_LIBRARY_PATH
14716  shlibpath_overrides_runpath=no
14717  # This implies no fast_install, which is unacceptable.
14718  # Some rework will be needed to allow for fast_install
14719  # before this can be enabled.
14720  hardcode_into_libs=yes
14721
14722  # Append ld.so.conf contents to the search path
14723  if test -f /etc/ld.so.conf; then
14724    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14725    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14726  fi
14727
14728  # We used to test for /lib/ld.so.1 and disable shared libraries on
14729  # powerpc, because MkLinux only supported shared libraries with the
14730  # GNU dynamic linker.  Since this was broken with cross compilers,
14731  # most powerpc-linux boxes support dynamic linking these days and
14732  # people can always --disable-shared, the test was removed, and we
14733  # assume the GNU/Linux dynamic linker is in use.
14734  dynamic_linker='GNU/Linux ld.so'
14735  ;;
14736
14737knetbsd*-gnu)
14738  version_type=linux
14739  need_lib_prefix=no
14740  need_version=no
14741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14742  soname_spec='${libname}${release}${shared_ext}$major'
14743  shlibpath_var=LD_LIBRARY_PATH
14744  shlibpath_overrides_runpath=no
14745  hardcode_into_libs=yes
14746  dynamic_linker='GNU ld.so'
14747  ;;
14748
14749netbsd*)
14750  version_type=sunos
14751  need_lib_prefix=no
14752  need_version=no
14753  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14754    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14755    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14756    dynamic_linker='NetBSD (a.out) ld.so'
14757  else
14758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14759    soname_spec='${libname}${release}${shared_ext}$major'
14760    dynamic_linker='NetBSD ld.elf_so'
14761  fi
14762  shlibpath_var=LD_LIBRARY_PATH
14763  shlibpath_overrides_runpath=yes
14764  hardcode_into_libs=yes
14765  ;;
14766
14767newsos6)
14768  version_type=linux
14769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770  shlibpath_var=LD_LIBRARY_PATH
14771  shlibpath_overrides_runpath=yes
14772  ;;
14773
14774nto-qnx*)
14775  version_type=linux
14776  need_lib_prefix=no
14777  need_version=no
14778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779  soname_spec='${libname}${release}${shared_ext}$major'
14780  shlibpath_var=LD_LIBRARY_PATH
14781  shlibpath_overrides_runpath=yes
14782  ;;
14783
14784openbsd*)
14785  version_type=sunos
14786  need_lib_prefix=no
14787  need_version=yes
14788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14789  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14790  shlibpath_var=LD_LIBRARY_PATH
14791  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14792    case $host_os in
14793      openbsd2.[89] | openbsd2.[89].*)
14794	shlibpath_overrides_runpath=no
14795	;;
14796      *)
14797	shlibpath_overrides_runpath=yes
14798	;;
14799      esac
14800  else
14801    shlibpath_overrides_runpath=yes
14802  fi
14803  ;;
14804
14805os2*)
14806  libname_spec='$name'
14807  shrext=".dll"
14808  need_lib_prefix=no
14809  library_names_spec='$libname${shared_ext} $libname.a'
14810  dynamic_linker='OS/2 ld.exe'
14811  shlibpath_var=LIBPATH
14812  ;;
14813
14814osf3* | osf4* | osf5*)
14815  version_type=osf
14816  need_lib_prefix=no
14817  need_version=no
14818  soname_spec='${libname}${release}${shared_ext}$major'
14819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820  shlibpath_var=LD_LIBRARY_PATH
14821  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14822  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14823  ;;
14824
14825sco3.2v5*)
14826  version_type=osf
14827  soname_spec='${libname}${release}${shared_ext}$major'
14828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829  shlibpath_var=LD_LIBRARY_PATH
14830  ;;
14831
14832solaris*)
14833  version_type=linux
14834  need_lib_prefix=no
14835  need_version=no
14836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837  soname_spec='${libname}${release}${shared_ext}$major'
14838  shlibpath_var=LD_LIBRARY_PATH
14839  shlibpath_overrides_runpath=yes
14840  hardcode_into_libs=yes
14841  # ldd complains unless libraries are executable
14842  postinstall_cmds='chmod +x $lib'
14843  ;;
14844
14845sunos4*)
14846  version_type=sunos
14847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14848  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14849  shlibpath_var=LD_LIBRARY_PATH
14850  shlibpath_overrides_runpath=yes
14851  if test "$with_gnu_ld" = yes; then
14852    need_lib_prefix=no
14853  fi
14854  need_version=yes
14855  ;;
14856
14857sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14858  version_type=linux
14859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860  soname_spec='${libname}${release}${shared_ext}$major'
14861  shlibpath_var=LD_LIBRARY_PATH
14862  case $host_vendor in
14863    sni)
14864      shlibpath_overrides_runpath=no
14865      need_lib_prefix=no
14866      export_dynamic_flag_spec='${wl}-Blargedynsym'
14867      runpath_var=LD_RUN_PATH
14868      ;;
14869    siemens)
14870      need_lib_prefix=no
14871      ;;
14872    motorola)
14873      need_lib_prefix=no
14874      need_version=no
14875      shlibpath_overrides_runpath=no
14876      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14877      ;;
14878  esac
14879  ;;
14880
14881sysv4*MP*)
14882  if test -d /usr/nec ;then
14883    version_type=linux
14884    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14885    soname_spec='$libname${shared_ext}.$major'
14886    shlibpath_var=LD_LIBRARY_PATH
14887  fi
14888  ;;
14889
14890uts4*)
14891  version_type=linux
14892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893  soname_spec='${libname}${release}${shared_ext}$major'
14894  shlibpath_var=LD_LIBRARY_PATH
14895  ;;
14896
14897*)
14898  dynamic_linker=no
14899  ;;
14900esac
14901echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14902echo "${ECHO_T}$dynamic_linker" >&6
14903test "$dynamic_linker" = no && can_build_shared=no
14904
14905echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14906echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14907hardcode_action_F77=
14908if test -n "$hardcode_libdir_flag_spec_F77" || \
14909   test -n "$runpath_var F77" || \
14910   test "X$hardcode_automatic_F77"="Xyes" ; then
14911
14912  # We can hardcode non-existant directories.
14913  if test "$hardcode_direct_F77" != no &&
14914     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14915     # have to relink, otherwise we might link with an installed library
14916     # when we should be linking with a yet-to-be-installed one
14917     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14918     test "$hardcode_minus_L_F77" != no; then
14919    # Linking always hardcodes the temporary library directory.
14920    hardcode_action_F77=relink
14921  else
14922    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14923    hardcode_action_F77=immediate
14924  fi
14925else
14926  # We cannot hardcode anything, or else we can only hardcode existing
14927  # directories.
14928  hardcode_action_F77=unsupported
14929fi
14930echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14931echo "${ECHO_T}$hardcode_action_F77" >&6
14932
14933if test "$hardcode_action_F77" = relink; then
14934  # Fast installation is not supported
14935  enable_fast_install=no
14936elif test "$shlibpath_overrides_runpath" = yes ||
14937     test "$enable_shared" = no; then
14938  # Fast installation is not necessary
14939  enable_fast_install=needless
14940fi
14941
14942striplib=
14943old_striplib=
14944echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14945echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14946if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14947  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14948  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14949  echo "$as_me:$LINENO: result: yes" >&5
14950echo "${ECHO_T}yes" >&6
14951else
14952# FIXME - insert some real tests, host_os isn't really good enough
14953  case $host_os in
14954   darwin*)
14955       if test -n "$STRIP" ; then
14956         striplib="$STRIP -x"
14957         echo "$as_me:$LINENO: result: yes" >&5
14958echo "${ECHO_T}yes" >&6
14959       else
14960  echo "$as_me:$LINENO: result: no" >&5
14961echo "${ECHO_T}no" >&6
14962fi
14963       ;;
14964   *)
14965  echo "$as_me:$LINENO: result: no" >&5
14966echo "${ECHO_T}no" >&6
14967    ;;
14968  esac
14969fi
14970
14971
14972
14973# The else clause should only fire when bootstrapping the
14974# libtool distribution, otherwise you forgot to ship ltmain.sh
14975# with your package, and you will get complaints that there are
14976# no rules to generate ltmain.sh.
14977if test -f "$ltmain"; then
14978  # See if we are running on zsh, and set the options which allow our commands through
14979  # without removal of \ escapes.
14980  if test -n "${ZSH_VERSION+set}" ; then
14981    setopt NO_GLOB_SUBST
14982  fi
14983  # Now quote all the things that may contain metacharacters while being
14984  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14985  # variables and quote the copies for generation of the libtool script.
14986  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14987    SED SHELL STRIP \
14988    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14989    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14990    deplibs_check_method reload_flag reload_cmds need_locks \
14991    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14992    lt_cv_sys_global_symbol_to_c_name_address \
14993    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14994    old_postinstall_cmds old_postuninstall_cmds \
14995    compiler_F77 \
14996    CC_F77 \
14997    LD_F77 \
14998    lt_prog_compiler_wl_F77 \
14999    lt_prog_compiler_pic_F77 \
15000    lt_prog_compiler_static_F77 \
15001    lt_prog_compiler_no_builtin_flag_F77 \
15002    export_dynamic_flag_spec_F77 \
15003    thread_safe_flag_spec_F77 \
15004    whole_archive_flag_spec_F77 \
15005    enable_shared_with_static_runtimes_F77 \
15006    old_archive_cmds_F77 \
15007    old_archive_from_new_cmds_F77 \
15008    predep_objects_F77 \
15009    postdep_objects_F77 \
15010    predeps_F77 \
15011    postdeps_F77 \
15012    compiler_lib_search_path_F77 \
15013    archive_cmds_F77 \
15014    archive_expsym_cmds_F77 \
15015    postinstall_cmds_F77 \
15016    postuninstall_cmds_F77 \
15017    old_archive_from_expsyms_cmds_F77 \
15018    allow_undefined_flag_F77 \
15019    no_undefined_flag_F77 \
15020    export_symbols_cmds_F77 \
15021    hardcode_libdir_flag_spec_F77 \
15022    hardcode_libdir_flag_spec_ld_F77 \
15023    hardcode_libdir_separator_F77 \
15024    hardcode_automatic_F77 \
15025    module_cmds_F77 \
15026    module_expsym_cmds_F77 \
15027    lt_cv_prog_compiler_c_o_F77 \
15028    exclude_expsyms_F77 \
15029    include_expsyms_F77; do
15030
15031    case $var in
15032    old_archive_cmds_F77 | \
15033    old_archive_from_new_cmds_F77 | \
15034    archive_cmds_F77 | \
15035    archive_expsym_cmds_F77 | \
15036    module_cmds_F77 | \
15037    module_expsym_cmds_F77 | \
15038    old_archive_from_expsyms_cmds_F77 | \
15039    export_symbols_cmds_F77 | \
15040    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15041    postinstall_cmds | postuninstall_cmds | \
15042    old_postinstall_cmds | old_postuninstall_cmds | \
15043    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15044      # Double-quote double-evaled strings.
15045      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15046      ;;
15047    *)
15048      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15049      ;;
15050    esac
15051  done
15052
15053  case $lt_echo in
15054  *'\$0 --fallback-echo"')
15055    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15056    ;;
15057  esac
15058
15059cfgfile="$ofile"
15060
15061  cat <<__EOF__ >> "$cfgfile"
15062# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15063
15064# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15065
15066# Shell to use when invoking shell scripts.
15067SHELL=$lt_SHELL
15068
15069# Whether or not to build shared libraries.
15070build_libtool_libs=$enable_shared
15071
15072# Whether or not to build static libraries.
15073build_old_libs=$enable_static
15074
15075# Whether or not to add -lc for building shared libraries.
15076build_libtool_need_lc=$archive_cmds_need_lc_F77
15077
15078# Whether or not to disallow shared libs when runtime libs are static
15079allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15080
15081# Whether or not to optimize for fast installation.
15082fast_install=$enable_fast_install
15083
15084# The host system.
15085host_alias=$host_alias
15086host=$host
15087
15088# An echo program that does not interpret backslashes.
15089echo=$lt_echo
15090
15091# The archiver.
15092AR=$lt_AR
15093AR_FLAGS=$lt_AR_FLAGS
15094
15095# A C compiler.
15096LTCC=$lt_LTCC
15097
15098# A language-specific compiler.
15099CC=$lt_compiler_F77
15100
15101# Is the compiler the GNU C compiler?
15102with_gcc=$GCC_F77
15103
15104# An ERE matcher.
15105EGREP=$lt_EGREP
15106
15107# The linker used to build libraries.
15108LD=$lt_LD_F77
15109
15110# Whether we need hard or soft links.
15111LN_S=$lt_LN_S
15112
15113# A BSD-compatible nm program.
15114NM=$lt_NM
15115
15116# A symbol stripping program
15117STRIP=$lt_STRIP
15118
15119# Used to examine libraries when file_magic_cmd begins "file"
15120MAGIC_CMD=$MAGIC_CMD
15121
15122# Used on cygwin: DLL creation program.
15123DLLTOOL="$DLLTOOL"
15124
15125# Used on cygwin: object dumper.
15126OBJDUMP="$OBJDUMP"
15127
15128# Used on cygwin: assembler.
15129AS="$AS"
15130
15131# The name of the directory that contains temporary libtool files.
15132objdir=$objdir
15133
15134# How to create reloadable object files.
15135reload_flag=$lt_reload_flag
15136reload_cmds=$lt_reload_cmds
15137
15138# How to pass a linker flag through the compiler.
15139wl=$lt_lt_prog_compiler_wl_F77
15140
15141# Object file suffix (normally "o").
15142objext="$ac_objext"
15143
15144# Old archive suffix (normally "a").
15145libext="$libext"
15146
15147# Shared library suffix (normally ".so").
15148shrext='$shrext'
15149
15150# Executable file suffix (normally "").
15151exeext="$exeext"
15152
15153# Additional compiler flags for building library objects.
15154pic_flag=$lt_lt_prog_compiler_pic_F77
15155pic_mode=$pic_mode
15156
15157# What is the maximum length of a command?
15158max_cmd_len=$lt_cv_sys_max_cmd_len
15159
15160# Does compiler simultaneously support -c and -o options?
15161compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15162
15163# Must we lock files when doing compilation ?
15164need_locks=$lt_need_locks
15165
15166# Do we need the lib prefix for modules?
15167need_lib_prefix=$need_lib_prefix
15168
15169# Do we need a version for libraries?
15170need_version=$need_version
15171
15172# Whether dlopen is supported.
15173dlopen_support=$enable_dlopen
15174
15175# Whether dlopen of programs is supported.
15176dlopen_self=$enable_dlopen_self
15177
15178# Whether dlopen of statically linked programs is supported.
15179dlopen_self_static=$enable_dlopen_self_static
15180
15181# Compiler flag to prevent dynamic linking.
15182link_static_flag=$lt_lt_prog_compiler_static_F77
15183
15184# Compiler flag to turn off builtin functions.
15185no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15186
15187# Compiler flag to allow reflexive dlopens.
15188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15189
15190# Compiler flag to generate shared objects directly from archives.
15191whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15192
15193# Compiler flag to generate thread-safe objects.
15194thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15195
15196# Library versioning type.
15197version_type=$version_type
15198
15199# Format of library name prefix.
15200libname_spec=$lt_libname_spec
15201
15202# List of archive names.  First name is the real one, the rest are links.
15203# The last name is the one that the linker finds with -lNAME.
15204library_names_spec=$lt_library_names_spec
15205
15206# The coded name of the library, if different from the real name.
15207soname_spec=$lt_soname_spec
15208
15209# Commands used to build and install an old-style archive.
15210RANLIB=$lt_RANLIB
15211old_archive_cmds=$lt_old_archive_cmds_F77
15212old_postinstall_cmds=$lt_old_postinstall_cmds
15213old_postuninstall_cmds=$lt_old_postuninstall_cmds
15214
15215# Create an old-style archive from a shared archive.
15216old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15217
15218# Create a temporary old-style archive to link instead of a shared archive.
15219old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15220
15221# Commands used to build and install a shared archive.
15222archive_cmds=$lt_archive_cmds_F77
15223archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15224postinstall_cmds=$lt_postinstall_cmds
15225postuninstall_cmds=$lt_postuninstall_cmds
15226
15227# Commands used to build a loadable module (assumed same as above if empty)
15228module_cmds=$lt_module_cmds_F77
15229module_expsym_cmds=$lt_module_expsym_cmds_F77
15230
15231# Commands to strip libraries.
15232old_striplib=$lt_old_striplib
15233striplib=$lt_striplib
15234
15235# Dependencies to place before the objects being linked to create a
15236# shared library.
15237predep_objects=$lt_predep_objects_F77
15238
15239# Dependencies to place after the objects being linked to create a
15240# shared library.
15241postdep_objects=$lt_postdep_objects_F77
15242
15243# Dependencies to place before the objects being linked to create a
15244# shared library.
15245predeps=$lt_predeps_F77
15246
15247# Dependencies to place after the objects being linked to create a
15248# shared library.
15249postdeps=$lt_postdeps_F77
15250
15251# The library search path used internally by the compiler when linking
15252# a shared library.
15253compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15254
15255# Method to check whether dependent libraries are shared objects.
15256deplibs_check_method=$lt_deplibs_check_method
15257
15258# Command to use when deplibs_check_method == file_magic.
15259file_magic_cmd=$lt_file_magic_cmd
15260
15261# Flag that allows shared libraries with undefined symbols to be built.
15262allow_undefined_flag=$lt_allow_undefined_flag_F77
15263
15264# Flag that forces no undefined symbols.
15265no_undefined_flag=$lt_no_undefined_flag_F77
15266
15267# Commands used to finish a libtool library installation in a directory.
15268finish_cmds=$lt_finish_cmds
15269
15270# Same as above, but a single script fragment to be evaled but not shown.
15271finish_eval=$lt_finish_eval
15272
15273# Take the output of nm and produce a listing of raw symbols and C names.
15274global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15275
15276# Transform the output of nm in a proper C declaration
15277global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15278
15279# Transform the output of nm in a C name address pair
15280global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15281
15282# This is the shared library runtime path variable.
15283runpath_var=$runpath_var
15284
15285# This is the shared library path variable.
15286shlibpath_var=$shlibpath_var
15287
15288# Is shlibpath searched before the hard-coded library search path?
15289shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15290
15291# How to hardcode a shared library path into an executable.
15292hardcode_action=$hardcode_action_F77
15293
15294# Whether we should hardcode library paths into libraries.
15295hardcode_into_libs=$hardcode_into_libs
15296
15297# Flag to hardcode \$libdir into a binary during linking.
15298# This must work even if \$libdir does not exist.
15299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15300
15301# If ld is used when linking, flag to hardcode \$libdir into
15302# a binary during linking. This must work even if \$libdir does
15303# not exist.
15304hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15305
15306# Whether we need a single -rpath flag with a separated argument.
15307hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15308
15309# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15310# resulting binary.
15311hardcode_direct=$hardcode_direct_F77
15312
15313# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15314# resulting binary.
15315hardcode_minus_L=$hardcode_minus_L_F77
15316
15317# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15318# the resulting binary.
15319hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15320
15321# Set to yes if building a shared library automatically hardcodes DIR into the library
15322# and all subsequent libraries and executables linked against it.
15323hardcode_automatic=$hardcode_automatic_F77
15324
15325# Variables whose values should be saved in libtool wrapper scripts and
15326# restored at relink time.
15327variables_saved_for_relink="$variables_saved_for_relink"
15328
15329# Whether libtool must link a program against all its dependency libraries.
15330link_all_deplibs=$link_all_deplibs_F77
15331
15332# Compile-time system search path for libraries
15333sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15334
15335# Run-time system search path for libraries
15336sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15337
15338# Fix the shell variable \$srcfile for the compiler.
15339fix_srcfile_path="$fix_srcfile_path_F77"
15340
15341# Set to yes if exported symbols are required.
15342always_export_symbols=$always_export_symbols_F77
15343
15344# The commands to list exported symbols.
15345export_symbols_cmds=$lt_export_symbols_cmds_F77
15346
15347# The commands to extract the exported symbol list from a shared archive.
15348extract_expsyms_cmds=$lt_extract_expsyms_cmds
15349
15350# Symbols that should not be listed in the preloaded symbols.
15351exclude_expsyms=$lt_exclude_expsyms_F77
15352
15353# Symbols that must always be exported.
15354include_expsyms=$lt_include_expsyms_F77
15355
15356# ### END LIBTOOL TAG CONFIG: $tagname
15357
15358__EOF__
15359
15360
15361else
15362  # If there is no Makefile yet, we rely on a make rule to execute
15363  # `config.status --recheck' to rerun these tests and create the
15364  # libtool script then.
15365  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15366  if test -f "$ltmain_in"; then
15367    test -f Makefile && make "$ltmain"
15368  fi
15369fi
15370
15371
15372ac_ext=c
15373ac_cpp='$CPP $CPPFLAGS'
15374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376ac_compiler_gnu=$ac_cv_c_compiler_gnu
15377
15378CC="$lt_save_CC"
15379
15380	else
15381	  tagname=""
15382	fi
15383	;;
15384
15385      GCJ)
15386	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15387
15388
15389
15390# Source file extension for Java test sources.
15391ac_ext=java
15392
15393# Object file extension for compiled Java test sources.
15394objext=o
15395objext_GCJ=$objext
15396
15397# Code to be used in simple compile tests
15398lt_simple_compile_test_code="class foo {}\n"
15399
15400# Code to be used in simple link tests
15401lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15402
15403# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15404
15405# If no C compiler was specified, use CC.
15406LTCC=${LTCC-"$CC"}
15407
15408# Allow CC to be a program name with arguments.
15409compiler=$CC
15410
15411
15412# Allow CC to be a program name with arguments.
15413lt_save_CC="$CC"
15414CC=${GCJ-"gcj"}
15415compiler=$CC
15416compiler_GCJ=$CC
15417
15418# GCJ did not exist at the time GCC didn't implicitly link libc in.
15419archive_cmds_need_lc_GCJ=no
15420
15421
15422lt_prog_compiler_no_builtin_flag_GCJ=
15423
15424if test "$GCC" = yes; then
15425  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15426
15427
15428echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15429echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15430if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15431  echo $ECHO_N "(cached) $ECHO_C" >&6
15432else
15433  lt_cv_prog_compiler_rtti_exceptions=no
15434  ac_outfile=conftest.$ac_objext
15435   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15436   lt_compiler_flag="-fno-rtti -fno-exceptions"
15437   # Insert the option either (1) after the last *FLAGS variable, or
15438   # (2) before a word containing "conftest.", or (3) at the end.
15439   # Note that $ac_compile itself does not contain backslashes and begins
15440   # with a dollar sign (not a hyphen), so the echo should work correctly.
15441   # The option is referenced via a variable to avoid confusing sed.
15442   lt_compile=`echo "$ac_compile" | $SED \
15443   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15445   -e 's:$: $lt_compiler_flag:'`
15446   (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
15447   (eval "$lt_compile" 2>conftest.err)
15448   ac_status=$?
15449   cat conftest.err >&5
15450   echo "$as_me:15450: \$? = $ac_status" >&5
15451   if (exit $ac_status) && test -s "$ac_outfile"; then
15452     # The compiler can only warn and ignore the option if not recognized
15453     # So say no if there are warnings
15454     if test ! -s conftest.err; then
15455       lt_cv_prog_compiler_rtti_exceptions=yes
15456     fi
15457   fi
15458   $rm conftest*
15459
15460fi
15461echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15462echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15463
15464if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15465    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15466else
15467    :
15468fi
15469
15470fi
15471
15472lt_prog_compiler_wl_GCJ=
15473lt_prog_compiler_pic_GCJ=
15474lt_prog_compiler_static_GCJ=
15475
15476echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15477echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15478
15479  if test "$GCC" = yes; then
15480    lt_prog_compiler_wl_GCJ='-Wl,'
15481    lt_prog_compiler_static_GCJ='-static'
15482
15483    case $host_os in
15484      aix*)
15485      # All AIX code is PIC.
15486      if test "$host_cpu" = ia64; then
15487	# AIX 5 now supports IA64 processor
15488	lt_prog_compiler_static_GCJ='-Bstatic'
15489      fi
15490      ;;
15491
15492    amigaos*)
15493      # FIXME: we need at least 68020 code to build shared libraries, but
15494      # adding the `-m68020' flag to GCC prevents building anything better,
15495      # like `-m68040'.
15496      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15497      ;;
15498
15499    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15500      # PIC is the default for these OSes.
15501      ;;
15502
15503    mingw* | pw32* | os2*)
15504      # This hack is so that the source file can tell whether it is being
15505      # built for inclusion in a dll (and should export symbols for example).
15506      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15507      ;;
15508
15509    darwin* | rhapsody*)
15510      # PIC is the default on this platform
15511      # Common symbols not allowed in MH_DYLIB files
15512      lt_prog_compiler_pic_GCJ='-fno-common'
15513      ;;
15514
15515    msdosdjgpp*)
15516      # Just because we use GCC doesn't mean we suddenly get shared libraries
15517      # on systems that don't support them.
15518      lt_prog_compiler_can_build_shared_GCJ=no
15519      enable_shared=no
15520      ;;
15521
15522    sysv4*MP*)
15523      if test -d /usr/nec; then
15524	lt_prog_compiler_pic_GCJ=-Kconform_pic
15525      fi
15526      ;;
15527
15528    hpux*)
15529      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15530      # not for PA HP-UX.
15531      case "$host_cpu" in
15532      hppa*64*|ia64*)
15533	# +Z the default
15534	;;
15535      *)
15536	lt_prog_compiler_pic_GCJ='-fPIC'
15537	;;
15538      esac
15539      ;;
15540
15541    *)
15542      lt_prog_compiler_pic_GCJ='-fPIC'
15543      ;;
15544    esac
15545  else
15546    # PORTME Check for flag to pass linker flags through the system compiler.
15547    case $host_os in
15548    aix*)
15549      lt_prog_compiler_wl_GCJ='-Wl,'
15550      if test "$host_cpu" = ia64; then
15551	# AIX 5 now supports IA64 processor
15552	lt_prog_compiler_static_GCJ='-Bstatic'
15553      else
15554	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15555      fi
15556      ;;
15557
15558    mingw* | pw32* | os2*)
15559      # This hack is so that the source file can tell whether it is being
15560      # built for inclusion in a dll (and should export symbols for example).
15561      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15562      ;;
15563
15564    hpux9* | hpux10* | hpux11*)
15565      lt_prog_compiler_wl_GCJ='-Wl,'
15566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15567      # not for PA HP-UX.
15568      case "$host_cpu" in
15569      hppa*64*|ia64*)
15570	# +Z the default
15571	;;
15572      *)
15573	lt_prog_compiler_pic_GCJ='+Z'
15574	;;
15575      esac
15576      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15577      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15578      ;;
15579
15580    irix5* | irix6* | nonstopux*)
15581      lt_prog_compiler_wl_GCJ='-Wl,'
15582      # PIC (with -KPIC) is the default.
15583      lt_prog_compiler_static_GCJ='-non_shared'
15584      ;;
15585
15586    newsos6)
15587      lt_prog_compiler_pic_GCJ='-KPIC'
15588      lt_prog_compiler_static_GCJ='-Bstatic'
15589      ;;
15590
15591    linux*)
15592      case $CC in
15593      icc* | ecc*)
15594	lt_prog_compiler_wl_GCJ='-Wl,'
15595	lt_prog_compiler_pic_GCJ='-KPIC'
15596	lt_prog_compiler_static_GCJ='-static'
15597        ;;
15598      ccc*)
15599        lt_prog_compiler_wl_GCJ='-Wl,'
15600        # All Alpha code is PIC.
15601        lt_prog_compiler_static_GCJ='-non_shared'
15602        ;;
15603      esac
15604      ;;
15605
15606    osf3* | osf4* | osf5*)
15607      lt_prog_compiler_wl_GCJ='-Wl,'
15608      # All OSF/1 code is PIC.
15609      lt_prog_compiler_static_GCJ='-non_shared'
15610      ;;
15611
15612    sco3.2v5*)
15613      lt_prog_compiler_pic_GCJ='-Kpic'
15614      lt_prog_compiler_static_GCJ='-dn'
15615      ;;
15616
15617    solaris*)
15618      lt_prog_compiler_wl_GCJ='-Wl,'
15619      lt_prog_compiler_pic_GCJ='-KPIC'
15620      lt_prog_compiler_static_GCJ='-Bstatic'
15621      ;;
15622
15623    sunos4*)
15624      lt_prog_compiler_wl_GCJ='-Qoption ld '
15625      lt_prog_compiler_pic_GCJ='-PIC'
15626      lt_prog_compiler_static_GCJ='-Bstatic'
15627      ;;
15628
15629    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15630      lt_prog_compiler_wl_GCJ='-Wl,'
15631      lt_prog_compiler_pic_GCJ='-KPIC'
15632      lt_prog_compiler_static_GCJ='-Bstatic'
15633      ;;
15634
15635    sysv4*MP*)
15636      if test -d /usr/nec ;then
15637	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15638	lt_prog_compiler_static_GCJ='-Bstatic'
15639      fi
15640      ;;
15641
15642    uts4*)
15643      lt_prog_compiler_pic_GCJ='-pic'
15644      lt_prog_compiler_static_GCJ='-Bstatic'
15645      ;;
15646
15647    *)
15648      lt_prog_compiler_can_build_shared_GCJ=no
15649      ;;
15650    esac
15651  fi
15652
15653echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15654echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15655
15656#
15657# Check to make sure the PIC flag actually works.
15658#
15659if test -n "$lt_prog_compiler_pic_GCJ"; then
15660
15661echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15662echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15663if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15664  echo $ECHO_N "(cached) $ECHO_C" >&6
15665else
15666  lt_prog_compiler_pic_works_GCJ=no
15667  ac_outfile=conftest.$ac_objext
15668   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15669   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15670   # Insert the option either (1) after the last *FLAGS variable, or
15671   # (2) before a word containing "conftest.", or (3) at the end.
15672   # Note that $ac_compile itself does not contain backslashes and begins
15673   # with a dollar sign (not a hyphen), so the echo should work correctly.
15674   # The option is referenced via a variable to avoid confusing sed.
15675   lt_compile=`echo "$ac_compile" | $SED \
15676   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15677   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15678   -e 's:$: $lt_compiler_flag:'`
15679   (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
15680   (eval "$lt_compile" 2>conftest.err)
15681   ac_status=$?
15682   cat conftest.err >&5
15683   echo "$as_me:15683: \$? = $ac_status" >&5
15684   if (exit $ac_status) && test -s "$ac_outfile"; then
15685     # The compiler can only warn and ignore the option if not recognized
15686     # So say no if there are warnings
15687     if test ! -s conftest.err; then
15688       lt_prog_compiler_pic_works_GCJ=yes
15689     fi
15690   fi
15691   $rm conftest*
15692
15693fi
15694echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15695echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15696
15697if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15698    case $lt_prog_compiler_pic_GCJ in
15699     "" | " "*) ;;
15700     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15701     esac
15702else
15703    lt_prog_compiler_pic_GCJ=
15704     lt_prog_compiler_can_build_shared_GCJ=no
15705fi
15706
15707fi
15708case "$host_os" in
15709  # For platforms which do not support PIC, -DPIC is meaningless:
15710  *djgpp*)
15711    lt_prog_compiler_pic_GCJ=
15712    ;;
15713  *)
15714    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15715    ;;
15716esac
15717
15718echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15719echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15720if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15721  echo $ECHO_N "(cached) $ECHO_C" >&6
15722else
15723  lt_cv_prog_compiler_c_o_GCJ=no
15724   $rm -r conftest 2>/dev/null
15725   mkdir conftest
15726   cd conftest
15727   mkdir out
15728   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15729
15730   lt_compiler_flag="-o out/conftest2.$ac_objext"
15731   # Insert the option either (1) after the last *FLAGS variable, or
15732   # (2) before a word containing "conftest.", or (3) at the end.
15733   # Note that $ac_compile itself does not contain backslashes and begins
15734   # with a dollar sign (not a hyphen), so the echo should work correctly.
15735   lt_compile=`echo "$ac_compile" | $SED \
15736   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15737   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738   -e 's:$: $lt_compiler_flag:'`
15739   (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
15740   (eval "$lt_compile" 2>out/conftest.err)
15741   ac_status=$?
15742   cat out/conftest.err >&5
15743   echo "$as_me:15743: \$? = $ac_status" >&5
15744   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15745   then
15746     # The compiler can only warn and ignore the option if not recognized
15747     # So say no if there are warnings
15748     if test ! -s out/conftest.err; then
15749       lt_cv_prog_compiler_c_o_GCJ=yes
15750     fi
15751   fi
15752   chmod u+w .
15753   $rm conftest*
15754   # SGI C++ compiler will create directory out/ii_files/ for
15755   # template instantiation
15756   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15757   $rm out/* && rmdir out
15758   cd ..
15759   rmdir conftest
15760   $rm conftest*
15761
15762fi
15763echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15764echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15765
15766
15767hard_links="nottested"
15768if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15769  # do not overwrite the value of need_locks provided by the user
15770  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15771echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15772  hard_links=yes
15773  $rm conftest*
15774  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775  touch conftest.a
15776  ln conftest.a conftest.b 2>&5 || hard_links=no
15777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778  echo "$as_me:$LINENO: result: $hard_links" >&5
15779echo "${ECHO_T}$hard_links" >&6
15780  if test "$hard_links" = no; then
15781    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15783    need_locks=warn
15784  fi
15785else
15786  need_locks=no
15787fi
15788
15789echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15790echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15791
15792  runpath_var=
15793  allow_undefined_flag_GCJ=
15794  enable_shared_with_static_runtimes_GCJ=no
15795  archive_cmds_GCJ=
15796  archive_expsym_cmds_GCJ=
15797  old_archive_From_new_cmds_GCJ=
15798  old_archive_from_expsyms_cmds_GCJ=
15799  export_dynamic_flag_spec_GCJ=
15800  whole_archive_flag_spec_GCJ=
15801  thread_safe_flag_spec_GCJ=
15802  hardcode_libdir_flag_spec_GCJ=
15803  hardcode_libdir_flag_spec_ld_GCJ=
15804  hardcode_libdir_separator_GCJ=
15805  hardcode_direct_GCJ=no
15806  hardcode_minus_L_GCJ=no
15807  hardcode_shlibpath_var_GCJ=unsupported
15808  link_all_deplibs_GCJ=unknown
15809  hardcode_automatic_GCJ=no
15810  module_cmds_GCJ=
15811  module_expsym_cmds_GCJ=
15812  always_export_symbols_GCJ=no
15813  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15814  # include_expsyms should be a list of space-separated symbols to be *always*
15815  # included in the symbol list
15816  include_expsyms_GCJ=
15817  # exclude_expsyms can be an extended regexp of symbols to exclude
15818  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15819  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15820  # as well as any symbol that contains `d'.
15821  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15822  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15823  # platforms (ab)use it in PIC code, but their linkers get confused if
15824  # the symbol is explicitly referenced.  Since portable code cannot
15825  # rely on this symbol name, it's probably fine to never include it in
15826  # preloaded symbol tables.
15827  extract_expsyms_cmds=
15828
15829  case $host_os in
15830  cygwin* | mingw* | pw32*)
15831    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15832    # When not using gcc, we currently assume that we are using
15833    # Microsoft Visual C++.
15834    if test "$GCC" != yes; then
15835      with_gnu_ld=no
15836    fi
15837    ;;
15838  openbsd*)
15839    with_gnu_ld=no
15840    ;;
15841  esac
15842
15843  ld_shlibs_GCJ=yes
15844  if test "$with_gnu_ld" = yes; then
15845    # If archive_cmds runs LD, not CC, wlarc should be empty
15846    wlarc='${wl}'
15847
15848    # See if GNU ld supports shared libraries.
15849    case $host_os in
15850    aix3* | aix4* | aix5*)
15851      # On AIX/PPC, the GNU linker is very broken
15852      if test "$host_cpu" != ia64; then
15853	ld_shlibs_GCJ=no
15854	cat <<EOF 1>&2
15855
15856*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15857*** to be unable to reliably create shared libraries on AIX.
15858*** Therefore, libtool is disabling shared libraries support.  If you
15859*** really care for shared libraries, you may want to modify your PATH
15860*** so that a non-GNU linker is found, and then restart.
15861
15862EOF
15863      fi
15864      ;;
15865
15866    amigaos*)
15867      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)'
15868      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15869      hardcode_minus_L_GCJ=yes
15870
15871      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15872      # that the semantics of dynamic libraries on AmigaOS, at least up
15873      # to version 4, is to share data among multiple programs linked
15874      # with the same dynamic library.  Since this doesn't match the
15875      # behavior of shared libraries on other platforms, we can't use
15876      # them.
15877      ld_shlibs_GCJ=no
15878      ;;
15879
15880    beos*)
15881      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15882	allow_undefined_flag_GCJ=unsupported
15883	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15884	# support --undefined.  This deserves some investigation.  FIXME
15885	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15886      else
15887	ld_shlibs_GCJ=no
15888      fi
15889      ;;
15890
15891    cygwin* | mingw* | pw32*)
15892      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15893      # as there is no search path for DLLs.
15894      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15895      allow_undefined_flag_GCJ=unsupported
15896      always_export_symbols_GCJ=no
15897      enable_shared_with_static_runtimes_GCJ=yes
15898      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15899
15900      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15901        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15902	# If the export-symbols file already is a .def file (1st line
15903	# is EXPORTS), use it as is; otherwise, prepend...
15904	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15905	  cp $export_symbols $output_objdir/$soname.def;
15906	else
15907	  echo EXPORTS > $output_objdir/$soname.def;
15908	  cat $export_symbols >> $output_objdir/$soname.def;
15909	fi~
15910	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15911      else
15912	ld_shlibs=no
15913      fi
15914      ;;
15915
15916    netbsd* | knetbsd*-gnu)
15917      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15918	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15919	wlarc=
15920      else
15921	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15923      fi
15924      ;;
15925
15926    solaris* | sysv5*)
15927      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15928	ld_shlibs_GCJ=no
15929	cat <<EOF 1>&2
15930
15931*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15932*** create shared libraries on Solaris systems.  Therefore, libtool
15933*** is disabling shared libraries support.  We urge you to upgrade GNU
15934*** binutils to release 2.9.1 or newer.  Another option is to modify
15935*** your PATH or compiler configuration so that the native linker is
15936*** used, and then restart.
15937
15938EOF
15939      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15940	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15942      else
15943	ld_shlibs_GCJ=no
15944      fi
15945      ;;
15946
15947    sunos4*)
15948      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15949      wlarc=
15950      hardcode_direct_GCJ=yes
15951      hardcode_shlibpath_var_GCJ=no
15952      ;;
15953
15954  linux*)
15955    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15956        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957	archive_cmds_GCJ="$tmp_archive_cmds"
15958      supports_anon_versioning=no
15959      case `$LD -v 2>/dev/null` in
15960        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15961        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15962        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15963        *\ 2.11.*) ;; # other 2.11 versions
15964        *) supports_anon_versioning=yes ;;
15965      esac
15966      if test $supports_anon_versioning = yes; then
15967        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15968cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15969$echo "local: *; };" >> $output_objdir/$libname.ver~
15970        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15971      else
15972        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15973      fi
15974    else
15975      ld_shlibs_GCJ=no
15976    fi
15977    ;;
15978
15979    *)
15980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15981	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983      else
15984	ld_shlibs_GCJ=no
15985      fi
15986      ;;
15987    esac
15988
15989    if test "$ld_shlibs_GCJ" = yes; then
15990      runpath_var=LD_RUN_PATH
15991      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15992      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15993      # ancient GNU ld didn't support --whole-archive et. al.
15994      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15995 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15996      else
15997  	whole_archive_flag_spec_GCJ=
15998      fi
15999    fi
16000  else
16001    # PORTME fill in a description of your system's linker (not GNU ld)
16002    case $host_os in
16003    aix3*)
16004      allow_undefined_flag_GCJ=unsupported
16005      always_export_symbols_GCJ=yes
16006      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'
16007      # Note: this linker hardcodes the directories in LIBPATH if there
16008      # are no directories specified by -L.
16009      hardcode_minus_L_GCJ=yes
16010      if test "$GCC" = yes && test -z "$link_static_flag"; then
16011	# Neither direct hardcoding nor static linking is supported with a
16012	# broken collect2.
16013	hardcode_direct_GCJ=unsupported
16014      fi
16015      ;;
16016
16017    aix4* | aix5*)
16018      if test "$host_cpu" = ia64; then
16019	# On IA64, the linker does run time linking by default, so we don't
16020	# have to do anything special.
16021	aix_use_runtimelinking=no
16022	exp_sym_flag='-Bexport'
16023	no_entry_flag=""
16024      else
16025	# If we're using GNU nm, then we don't want the "-C" option.
16026	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16027	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16028	  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'
16029	else
16030	  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'
16031	fi
16032	aix_use_runtimelinking=no
16033
16034	# Test if we are trying to use run time linking or normal
16035	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16036	# need to do runtime linking.
16037	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16038	  for ld_flag in $LDFLAGS; do
16039  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16040  	    aix_use_runtimelinking=yes
16041  	    break
16042  	  fi
16043	  done
16044	esac
16045
16046	exp_sym_flag='-bexport'
16047	no_entry_flag='-bnoentry'
16048      fi
16049
16050      # When large executables or shared objects are built, AIX ld can
16051      # have problems creating the table of contents.  If linking a library
16052      # or program results in "error TOC overflow" add -mminimal-toc to
16053      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16054      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16055
16056      archive_cmds_GCJ=''
16057      hardcode_direct_GCJ=yes
16058      hardcode_libdir_separator_GCJ=':'
16059      link_all_deplibs_GCJ=yes
16060
16061      if test "$GCC" = yes; then
16062	case $host_os in aix4.012|aix4.012.*)
16063	# We only want to do this on AIX 4.2 and lower, the check
16064	# below for broken collect2 doesn't work under 4.3+
16065	  collect2name=`${CC} -print-prog-name=collect2`
16066	  if test -f "$collect2name" && \
16067  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16068	  then
16069  	  # We have reworked collect2
16070  	  hardcode_direct_GCJ=yes
16071	  else
16072  	  # We have old collect2
16073  	  hardcode_direct_GCJ=unsupported
16074  	  # It fails to find uninstalled libraries when the uninstalled
16075  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16076  	  # to unsupported forces relinking
16077  	  hardcode_minus_L_GCJ=yes
16078  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16079  	  hardcode_libdir_separator_GCJ=
16080	  fi
16081	esac
16082	shared_flag='-shared'
16083      else
16084	# not using gcc
16085	if test "$host_cpu" = ia64; then
16086  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16087  	# chokes on -Wl,-G. The following line is correct:
16088	  shared_flag='-G'
16089	else
16090  	if test "$aix_use_runtimelinking" = yes; then
16091	    shared_flag='${wl}-G'
16092	  else
16093	    shared_flag='${wl}-bM:SRE'
16094  	fi
16095	fi
16096      fi
16097
16098      # It seems that -bexpall does not export symbols beginning with
16099      # underscore (_), so it is better to generate a list of symbols to export.
16100      always_export_symbols_GCJ=yes
16101      if test "$aix_use_runtimelinking" = yes; then
16102	# Warning - without using the other runtime loading flags (-brtl),
16103	# -berok will link without error, but may produce a broken library.
16104	allow_undefined_flag_GCJ='-berok'
16105       # Determine the default libpath from the value encoded in an empty executable.
16106       cat >conftest.$ac_ext <<_ACEOF
16107/* confdefs.h.  */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h.  */
16112
16113int
16114main ()
16115{
16116
16117  ;
16118  return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext conftest$ac_exeext
16122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123  (eval $ac_link) 2>conftest.er1
16124  ac_status=$?
16125  grep -v '^ *+' conftest.er1 >conftest.err
16126  rm -f conftest.er1
16127  cat conftest.err >&5
16128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129  (exit $ac_status); } &&
16130	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132  (eval $ac_try) 2>&5
16133  ac_status=$?
16134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135  (exit $ac_status); }; } &&
16136	 { ac_try='test -s conftest$ac_exeext'
16137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138  (eval $ac_try) 2>&5
16139  ac_status=$?
16140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141  (exit $ac_status); }; }; then
16142
16143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16144}'`
16145# Check for a 64-bit object if we didn't find anything.
16146if 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; }
16147}'`; fi
16148else
16149  echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152fi
16153rm -f conftest.err conftest.$ac_objext \
16154      conftest$ac_exeext conftest.$ac_ext
16155if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16156
16157       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16158	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"
16159       else
16160	if test "$host_cpu" = ia64; then
16161	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16162	  allow_undefined_flag_GCJ="-z nodefs"
16163	  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"
16164	else
16165	 # Determine the default libpath from the value encoded in an empty executable.
16166	 cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h.  */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h.  */
16172
16173int
16174main ()
16175{
16176
16177  ;
16178  return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext conftest$ac_exeext
16182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183  (eval $ac_link) 2>conftest.er1
16184  ac_status=$?
16185  grep -v '^ *+' conftest.er1 >conftest.err
16186  rm -f conftest.er1
16187  cat conftest.err >&5
16188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189  (exit $ac_status); } &&
16190	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192  (eval $ac_try) 2>&5
16193  ac_status=$?
16194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195  (exit $ac_status); }; } &&
16196	 { ac_try='test -s conftest$ac_exeext'
16197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198  (eval $ac_try) 2>&5
16199  ac_status=$?
16200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201  (exit $ac_status); }; }; then
16202
16203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16204}'`
16205# Check for a 64-bit object if we didn't find anything.
16206if 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; }
16207}'`; fi
16208else
16209  echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212fi
16213rm -f conftest.err conftest.$ac_objext \
16214      conftest$ac_exeext conftest.$ac_ext
16215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16216
16217	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16218	  # Warning - without using the other run time loading flags,
16219	  # -berok will link without error, but may produce a broken library.
16220	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16221	  allow_undefined_flag_GCJ=' ${wl}-berok'
16222	  # -bexpall does not export symbols beginning with underscore (_)
16223	  always_export_symbols_GCJ=yes
16224	  # Exported symbols can be pulled into shared objects from archives
16225	  whole_archive_flag_spec_GCJ=' '
16226	  archive_cmds_need_lc_GCJ=yes
16227	  # This is similar to how AIX traditionally builds it's shared libraries.
16228	  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'
16229	fi
16230      fi
16231      ;;
16232
16233    amigaos*)
16234      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)'
16235      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16236      hardcode_minus_L_GCJ=yes
16237      # see comment about different semantics on the GNU ld section
16238      ld_shlibs_GCJ=no
16239      ;;
16240
16241    bsdi4*)
16242      export_dynamic_flag_spec_GCJ=-rdynamic
16243      ;;
16244
16245    cygwin* | mingw* | pw32*)
16246      # When not using gcc, we currently assume that we are using
16247      # Microsoft Visual C++.
16248      # hardcode_libdir_flag_spec is actually meaningless, as there is
16249      # no search path for DLLs.
16250      hardcode_libdir_flag_spec_GCJ=' '
16251      allow_undefined_flag_GCJ=unsupported
16252      # Tell ltmain to make .lib files, not .a files.
16253      libext=lib
16254      # Tell ltmain to make .dll files, not .so files.
16255      shrext=".dll"
16256      # FIXME: Setting linknames here is a bad hack.
16257      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16258      # The linker will automatically build a .lib file if we build a DLL.
16259      old_archive_From_new_cmds_GCJ='true'
16260      # FIXME: Should let the user specify the lib program.
16261      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16262      fix_srcfile_path='`cygpath -w "$srcfile"`'
16263      enable_shared_with_static_runtimes_GCJ=yes
16264      ;;
16265
16266    darwin* | rhapsody*)
16267    if test "$GXX" = yes ; then
16268      archive_cmds_need_lc_GCJ=no
16269      case "$host_os" in
16270      rhapsody* | darwin1.[012])
16271	allow_undefined_flag_GCJ='-undefined suppress'
16272	;;
16273      *) # Darwin 1.3 on
16274      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16275      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16276      else
16277        case ${MACOSX_DEPLOYMENT_TARGET} in
16278          10.[012])
16279            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16280            ;;
16281          10.*)
16282            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16283            ;;
16284        esac
16285      fi
16286	;;
16287      esac
16288    	lt_int_apple_cc_single_mod=no
16289    	output_verbose_link_cmd='echo'
16290    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16291    	  lt_int_apple_cc_single_mod=yes
16292    	fi
16293    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16294    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16295    	else
16296        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16297      fi
16298      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16299      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16300        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16301          archive_expsym_cmds_GCJ='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}'
16302        else
16303          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16304        fi
16305          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}'
16306      hardcode_direct_GCJ=no
16307      hardcode_automatic_GCJ=yes
16308      hardcode_shlibpath_var_GCJ=unsupported
16309      whole_archive_flag_spec_GCJ='-all_load $convenience'
16310      link_all_deplibs_GCJ=yes
16311    else
16312      ld_shlibs_GCJ=no
16313    fi
16314      ;;
16315
16316    dgux*)
16317      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16319      hardcode_shlibpath_var_GCJ=no
16320      ;;
16321
16322    freebsd1*)
16323      ld_shlibs_GCJ=no
16324      ;;
16325
16326    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16327    # support.  Future versions do this automatically, but an explicit c++rt0.o
16328    # does not break anything, and helps significantly (at the cost of a little
16329    # extra space).
16330    freebsd2.2*)
16331      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16332      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16333      hardcode_direct_GCJ=yes
16334      hardcode_shlibpath_var_GCJ=no
16335      ;;
16336
16337    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16338    freebsd2*)
16339      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16340      hardcode_direct_GCJ=yes
16341      hardcode_minus_L_GCJ=yes
16342      hardcode_shlibpath_var_GCJ=no
16343      ;;
16344
16345    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16346    freebsd* | kfreebsd*-gnu)
16347      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16348      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16349      hardcode_direct_GCJ=yes
16350      hardcode_shlibpath_var_GCJ=no
16351      ;;
16352
16353    hpux9*)
16354      if test "$GCC" = yes; then
16355	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'
16356      else
16357	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'
16358      fi
16359      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16360      hardcode_libdir_separator_GCJ=:
16361      hardcode_direct_GCJ=yes
16362
16363      # hardcode_minus_L: Not really in the search PATH,
16364      # but as the default location of the library.
16365      hardcode_minus_L_GCJ=yes
16366      export_dynamic_flag_spec_GCJ='${wl}-E'
16367      ;;
16368
16369    hpux10* | hpux11*)
16370      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16371	case "$host_cpu" in
16372	hppa*64*|ia64*)
16373	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16374	  ;;
16375	*)
16376	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16377	  ;;
16378	esac
16379      else
16380	case "$host_cpu" in
16381	hppa*64*|ia64*)
16382	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16383	  ;;
16384	*)
16385	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16386	  ;;
16387	esac
16388      fi
16389      if test "$with_gnu_ld" = no; then
16390	case "$host_cpu" in
16391	hppa*64*)
16392	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16393	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16394	  hardcode_libdir_separator_GCJ=:
16395	  hardcode_direct_GCJ=no
16396	  hardcode_shlibpath_var_GCJ=no
16397	  ;;
16398	ia64*)
16399	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400	  hardcode_direct_GCJ=no
16401	  hardcode_shlibpath_var_GCJ=no
16402
16403	  # hardcode_minus_L: Not really in the search PATH,
16404	  # but as the default location of the library.
16405	  hardcode_minus_L_GCJ=yes
16406	  ;;
16407	*)
16408	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16409	  hardcode_libdir_separator_GCJ=:
16410	  hardcode_direct_GCJ=yes
16411	  export_dynamic_flag_spec_GCJ='${wl}-E'
16412
16413	  # hardcode_minus_L: Not really in the search PATH,
16414	  # but as the default location of the library.
16415	  hardcode_minus_L_GCJ=yes
16416	  ;;
16417	esac
16418      fi
16419      ;;
16420
16421    irix5* | irix6* | nonstopux*)
16422      if test "$GCC" = yes; then
16423	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'
16424      else
16425	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'
16426	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16427      fi
16428      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16429      hardcode_libdir_separator_GCJ=:
16430      link_all_deplibs_GCJ=yes
16431      ;;
16432
16433    netbsd* | knetbsd*-gnu)
16434      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16435	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16436      else
16437	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16438      fi
16439      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16440      hardcode_direct_GCJ=yes
16441      hardcode_shlibpath_var_GCJ=no
16442      ;;
16443
16444    newsos6)
16445      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446      hardcode_direct_GCJ=yes
16447      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16448      hardcode_libdir_separator_GCJ=:
16449      hardcode_shlibpath_var_GCJ=no
16450      ;;
16451
16452    openbsd*)
16453      hardcode_direct_GCJ=yes
16454      hardcode_shlibpath_var_GCJ=no
16455      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16456	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16457	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16458	export_dynamic_flag_spec_GCJ='${wl}-E'
16459      else
16460       case $host_os in
16461	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16462	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16463	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16464	   ;;
16465	 *)
16466	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16467	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16468	   ;;
16469       esac
16470      fi
16471      ;;
16472
16473    os2*)
16474      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16475      hardcode_minus_L_GCJ=yes
16476      allow_undefined_flag_GCJ=unsupported
16477      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'
16478      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16479      ;;
16480
16481    osf3*)
16482      if test "$GCC" = yes; then
16483	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16484	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'
16485      else
16486	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16487	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'
16488      fi
16489      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16490      hardcode_libdir_separator_GCJ=:
16491      ;;
16492
16493    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16494      if test "$GCC" = yes; then
16495	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16496	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'
16497	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16498      else
16499	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16500	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'
16501	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~
16502	$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'
16503
16504	# Both c and cxx compiler support -rpath directly
16505	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16506      fi
16507      hardcode_libdir_separator_GCJ=:
16508      ;;
16509
16510    sco3.2v5*)
16511      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512      hardcode_shlibpath_var_GCJ=no
16513      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16514      runpath_var=LD_RUN_PATH
16515      hardcode_runpath_var=yes
16516      ;;
16517
16518    solaris*)
16519      no_undefined_flag_GCJ=' -z text'
16520      if test "$GCC" = yes; then
16521	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16522	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16523	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16524      else
16525	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16527  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16528      fi
16529      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16530      hardcode_shlibpath_var_GCJ=no
16531      case $host_os in
16532      solaris2.[0-5] | solaris2.[0-5].*) ;;
16533      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16534	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16535      esac
16536      link_all_deplibs_GCJ=yes
16537      ;;
16538
16539    sunos4*)
16540      if test "x$host_vendor" = xsequent; then
16541	# Use $CC to link under sequent, because it throws in some extra .o
16542	# files that make .init and .fini sections work.
16543	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16544      else
16545	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16546      fi
16547      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548      hardcode_direct_GCJ=yes
16549      hardcode_minus_L_GCJ=yes
16550      hardcode_shlibpath_var_GCJ=no
16551      ;;
16552
16553    sysv4)
16554      case $host_vendor in
16555	sni)
16556	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16557	  hardcode_direct_GCJ=yes # is this really true???
16558	;;
16559	siemens)
16560	  ## LD is ld it makes a PLAMLIB
16561	  ## CC just makes a GrossModule.
16562	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16563	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16564	  hardcode_direct_GCJ=no
16565        ;;
16566	motorola)
16567	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16569	;;
16570      esac
16571      runpath_var='LD_RUN_PATH'
16572      hardcode_shlibpath_var_GCJ=no
16573      ;;
16574
16575    sysv4.3*)
16576      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577      hardcode_shlibpath_var_GCJ=no
16578      export_dynamic_flag_spec_GCJ='-Bexport'
16579      ;;
16580
16581    sysv4*MP*)
16582      if test -d /usr/nec; then
16583	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16584	hardcode_shlibpath_var_GCJ=no
16585	runpath_var=LD_RUN_PATH
16586	hardcode_runpath_var=yes
16587	ld_shlibs_GCJ=yes
16588      fi
16589      ;;
16590
16591    sysv4.2uw2*)
16592      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16593      hardcode_direct_GCJ=yes
16594      hardcode_minus_L_GCJ=no
16595      hardcode_shlibpath_var_GCJ=no
16596      hardcode_runpath_var=yes
16597      runpath_var=LD_RUN_PATH
16598      ;;
16599
16600   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16601      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16602      if test "$GCC" = yes; then
16603	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16604      else
16605	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606      fi
16607      runpath_var='LD_RUN_PATH'
16608      hardcode_shlibpath_var_GCJ=no
16609      ;;
16610
16611    sysv5*)
16612      no_undefined_flag_GCJ=' -z text'
16613      # $CC -shared without GNU ld will not create a library from C++
16614      # object files and a static libstdc++, better avoid it by now
16615      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16616      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16617  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16618      hardcode_libdir_flag_spec_GCJ=
16619      hardcode_shlibpath_var_GCJ=no
16620      runpath_var='LD_RUN_PATH'
16621      ;;
16622
16623    uts4*)
16624      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626      hardcode_shlibpath_var_GCJ=no
16627      ;;
16628
16629    *)
16630      ld_shlibs_GCJ=no
16631      ;;
16632    esac
16633  fi
16634
16635echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16636echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16637test "$ld_shlibs_GCJ" = no && can_build_shared=no
16638
16639variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16640if test "$GCC" = yes; then
16641  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16642fi
16643
16644#
16645# Do we need to explicitly link libc?
16646#
16647case "x$archive_cmds_need_lc_GCJ" in
16648x|xyes)
16649  # Assume -lc should be added
16650  archive_cmds_need_lc_GCJ=yes
16651
16652  if test "$enable_shared" = yes && test "$GCC" = yes; then
16653    case $archive_cmds_GCJ in
16654    *'~'*)
16655      # FIXME: we may have to deal with multi-command sequences.
16656      ;;
16657    '$CC '*)
16658      # Test whether the compiler implicitly links with -lc since on some
16659      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16660      # to ld, don't add -lc before -lgcc.
16661      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16662echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16663      $rm conftest*
16664      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16665
16666      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667  (eval $ac_compile) 2>&5
16668  ac_status=$?
16669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670  (exit $ac_status); } 2>conftest.err; then
16671        soname=conftest
16672        lib=conftest
16673        libobjs=conftest.$ac_objext
16674        deplibs=
16675        wl=$lt_prog_compiler_wl_GCJ
16676        compiler_flags=-v
16677        linker_flags=-v
16678        verstring=
16679        output_objdir=.
16680        libname=conftest
16681        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16682        allow_undefined_flag_GCJ=
16683        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16684  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16685  ac_status=$?
16686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687  (exit $ac_status); }
16688        then
16689	  archive_cmds_need_lc_GCJ=no
16690        else
16691	  archive_cmds_need_lc_GCJ=yes
16692        fi
16693        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16694      else
16695        cat conftest.err 1>&5
16696      fi
16697      $rm conftest*
16698      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16699echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16700      ;;
16701    esac
16702  fi
16703  ;;
16704esac
16705
16706echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16708library_names_spec=
16709libname_spec='lib$name'
16710soname_spec=
16711shrext=".so"
16712postinstall_cmds=
16713postuninstall_cmds=
16714finish_cmds=
16715finish_eval=
16716shlibpath_var=
16717shlibpath_overrides_runpath=unknown
16718version_type=none
16719dynamic_linker="$host_os ld.so"
16720sys_lib_dlsearch_path_spec="/lib /usr/lib"
16721if test "$GCC" = yes; then
16722  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16723  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16724    # if the path contains ";" then we assume it to be the separator
16725    # otherwise default to the standard path separator (i.e. ":") - it is
16726    # assumed that no part of a normal pathname contains ";" but that should
16727    # okay in the real world where ";" in dirpaths is itself problematic.
16728    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16729  else
16730    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16731  fi
16732else
16733  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16734fi
16735need_lib_prefix=unknown
16736hardcode_into_libs=no
16737
16738# when you set need_version to no, make sure it does not cause -set_version
16739# flags to be left without arguments
16740need_version=unknown
16741
16742case $host_os in
16743aix3*)
16744  version_type=linux
16745  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16746  shlibpath_var=LIBPATH
16747
16748  # AIX 3 has no versioning support, so we append a major version to the name.
16749  soname_spec='${libname}${release}${shared_ext}$major'
16750  ;;
16751
16752aix4* | aix5*)
16753  version_type=linux
16754  need_lib_prefix=no
16755  need_version=no
16756  hardcode_into_libs=yes
16757  if test "$host_cpu" = ia64; then
16758    # AIX 5 supports IA64
16759    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16760    shlibpath_var=LD_LIBRARY_PATH
16761  else
16762    # With GCC up to 2.95.x, collect2 would create an import file
16763    # for dependence libraries.  The import file would start with
16764    # the line `#! .'.  This would cause the generated library to
16765    # depend on `.', always an invalid library.  This was fixed in
16766    # development snapshots of GCC prior to 3.0.
16767    case $host_os in
16768      aix4 | aix4.[01] | aix4.[01].*)
16769      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16770	   echo ' yes '
16771	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16772	:
16773      else
16774	can_build_shared=no
16775      fi
16776      ;;
16777    esac
16778    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16779    # soname into executable. Probably we can add versioning support to
16780    # collect2, so additional links can be useful in future.
16781    if test "$aix_use_runtimelinking" = yes; then
16782      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16783      # instead of lib<name>.a to let people know that these are not
16784      # typical AIX shared libraries.
16785      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786    else
16787      # We preserve .a as extension for shared libraries through AIX4.2
16788      # and later when we are not doing run time linking.
16789      library_names_spec='${libname}${release}.a $libname.a'
16790      soname_spec='${libname}${release}${shared_ext}$major'
16791    fi
16792    shlibpath_var=LIBPATH
16793  fi
16794  ;;
16795
16796amigaos*)
16797  library_names_spec='$libname.ixlibrary $libname.a'
16798  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16799  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'
16800  ;;
16801
16802beos*)
16803  library_names_spec='${libname}${shared_ext}'
16804  dynamic_linker="$host_os ld.so"
16805  shlibpath_var=LIBRARY_PATH
16806  ;;
16807
16808bsdi4*)
16809  version_type=linux
16810  need_version=no
16811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812  soname_spec='${libname}${release}${shared_ext}$major'
16813  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16814  shlibpath_var=LD_LIBRARY_PATH
16815  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16816  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16817  # the default ld.so.conf also contains /usr/contrib/lib and
16818  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16819  # libtool to hard-code these into programs
16820  ;;
16821
16822cygwin* | mingw* | pw32*)
16823  version_type=windows
16824  shrext=".dll"
16825  need_version=no
16826  need_lib_prefix=no
16827
16828  case $GCC,$host_os in
16829  yes,cygwin* | yes,mingw* | yes,pw32*)
16830    library_names_spec='$libname.dll.a'
16831    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16832    postinstall_cmds='base_file=`basename \${file}`~
16833      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16834      dldir=$destdir/`dirname \$dlpath`~
16835      test -d \$dldir || mkdir -p \$dldir~
16836      $install_prog $dir/$dlname \$dldir/$dlname'
16837    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16838      dlpath=$dir/\$dldll~
16839       $rm \$dlpath'
16840    shlibpath_overrides_runpath=yes
16841
16842    case $host_os in
16843    cygwin*)
16844      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16845      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16846      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16847      ;;
16848    mingw*)
16849      # MinGW DLLs use traditional 'lib' prefix
16850      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16851      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16852      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16853        # It is most probably a Windows format PATH printed by
16854        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16855        # path with ; separators, and with drive letters. We can handle the
16856        # drive letters (cygwin fileutils understands them), so leave them,
16857        # especially as we might pass files found there to a mingw objdump,
16858        # which wouldn't understand a cygwinified path. Ahh.
16859        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16860      else
16861        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16862      fi
16863      ;;
16864    pw32*)
16865      # pw32 DLLs use 'pw' prefix rather than 'lib'
16866      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16867      ;;
16868    esac
16869    ;;
16870
16871  *)
16872    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16873    ;;
16874  esac
16875  dynamic_linker='Win32 ld.exe'
16876  # FIXME: first we should search . and the directory the executable is in
16877  shlibpath_var=PATH
16878  ;;
16879
16880darwin* | rhapsody*)
16881  dynamic_linker="$host_os dyld"
16882  version_type=darwin
16883  need_lib_prefix=no
16884  need_version=no
16885  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16886  soname_spec='${libname}${release}${major}$shared_ext'
16887  shlibpath_overrides_runpath=yes
16888  shlibpath_var=DYLD_LIBRARY_PATH
16889  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16890  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16891  if test "$GCC" = yes; then
16892    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"`
16893  else
16894    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16895  fi
16896  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16897  ;;
16898
16899dgux*)
16900  version_type=linux
16901  need_lib_prefix=no
16902  need_version=no
16903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16904  soname_spec='${libname}${release}${shared_ext}$major'
16905  shlibpath_var=LD_LIBRARY_PATH
16906  ;;
16907
16908freebsd1*)
16909  dynamic_linker=no
16910  ;;
16911
16912kfreebsd*-gnu)
16913  version_type=linux
16914  need_lib_prefix=no
16915  need_version=no
16916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16917  soname_spec='${libname}${release}${shared_ext}$major'
16918  shlibpath_var=LD_LIBRARY_PATH
16919  shlibpath_overrides_runpath=no
16920  hardcode_into_libs=yes
16921  dynamic_linker='GNU ld.so'
16922  ;;
16923
16924freebsd*)
16925  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16926  version_type=freebsd-$objformat
16927  case $version_type in
16928    freebsd-elf*)
16929      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16930      need_version=no
16931      need_lib_prefix=no
16932      ;;
16933    freebsd-*)
16934      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16935      need_version=yes
16936      ;;
16937  esac
16938  shlibpath_var=LD_LIBRARY_PATH
16939  case $host_os in
16940  freebsd2*)
16941    shlibpath_overrides_runpath=yes
16942    ;;
16943  freebsd3.01* | freebsdelf3.01*)
16944    shlibpath_overrides_runpath=yes
16945    hardcode_into_libs=yes
16946    ;;
16947  *) # from 3.2 on
16948    shlibpath_overrides_runpath=no
16949    hardcode_into_libs=yes
16950    ;;
16951  esac
16952  ;;
16953
16954gnu*)
16955  version_type=linux
16956  need_lib_prefix=no
16957  need_version=no
16958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16959  soname_spec='${libname}${release}${shared_ext}$major'
16960  shlibpath_var=LD_LIBRARY_PATH
16961  hardcode_into_libs=yes
16962  ;;
16963
16964hpux9* | hpux10* | hpux11*)
16965  # Give a soname corresponding to the major version so that dld.sl refuses to
16966  # link against other versions.
16967  version_type=sunos
16968  need_lib_prefix=no
16969  need_version=no
16970  case "$host_cpu" in
16971  ia64*)
16972    shrext='.so'
16973    hardcode_into_libs=yes
16974    dynamic_linker="$host_os dld.so"
16975    shlibpath_var=LD_LIBRARY_PATH
16976    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978    soname_spec='${libname}${release}${shared_ext}$major'
16979    if test "X$HPUX_IA64_MODE" = X32; then
16980      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16981    else
16982      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16983    fi
16984    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16985    ;;
16986   hppa*64*)
16987     shrext='.sl'
16988     hardcode_into_libs=yes
16989     dynamic_linker="$host_os dld.sl"
16990     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993     soname_spec='${libname}${release}${shared_ext}$major'
16994     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16996     ;;
16997   *)
16998    shrext='.sl'
16999    dynamic_linker="$host_os dld.sl"
17000    shlibpath_var=SHLIB_PATH
17001    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003    soname_spec='${libname}${release}${shared_ext}$major'
17004    ;;
17005  esac
17006  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17007  postinstall_cmds='chmod 555 $lib'
17008  ;;
17009
17010irix5* | irix6* | nonstopux*)
17011  case $host_os in
17012    nonstopux*) version_type=nonstopux ;;
17013    *)
17014	if test "$lt_cv_prog_gnu_ld" = yes; then
17015		version_type=linux
17016	else
17017		version_type=irix
17018	fi ;;
17019  esac
17020  need_lib_prefix=no
17021  need_version=no
17022  soname_spec='${libname}${release}${shared_ext}$major'
17023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17024  case $host_os in
17025  irix5* | nonstopux*)
17026    libsuff= shlibsuff=
17027    ;;
17028  *)
17029    case $LD in # libtool.m4 will add one of these switches to LD
17030    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17031      libsuff= shlibsuff= libmagic=32-bit;;
17032    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17033      libsuff=32 shlibsuff=N32 libmagic=N32;;
17034    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17035      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17036    *) libsuff= shlibsuff= libmagic=never-match;;
17037    esac
17038    ;;
17039  esac
17040  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17041  shlibpath_overrides_runpath=no
17042  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17043  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17044  hardcode_into_libs=yes
17045  ;;
17046
17047# No shared lib support for Linux oldld, aout, or coff.
17048linux*oldld* | linux*aout* | linux*coff*)
17049  dynamic_linker=no
17050  ;;
17051
17052# This must be Linux ELF.
17053linux*)
17054  version_type=linux
17055  need_lib_prefix=no
17056  need_version=no
17057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17058  soname_spec='${libname}${release}${shared_ext}$major'
17059  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17060  shlibpath_var=LD_LIBRARY_PATH
17061  shlibpath_overrides_runpath=no
17062  # This implies no fast_install, which is unacceptable.
17063  # Some rework will be needed to allow for fast_install
17064  # before this can be enabled.
17065  hardcode_into_libs=yes
17066
17067  # Append ld.so.conf contents to the search path
17068  if test -f /etc/ld.so.conf; then
17069    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17070    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17071  fi
17072
17073  # We used to test for /lib/ld.so.1 and disable shared libraries on
17074  # powerpc, because MkLinux only supported shared libraries with the
17075  # GNU dynamic linker.  Since this was broken with cross compilers,
17076  # most powerpc-linux boxes support dynamic linking these days and
17077  # people can always --disable-shared, the test was removed, and we
17078  # assume the GNU/Linux dynamic linker is in use.
17079  dynamic_linker='GNU/Linux ld.so'
17080  ;;
17081
17082knetbsd*-gnu)
17083  version_type=linux
17084  need_lib_prefix=no
17085  need_version=no
17086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17087  soname_spec='${libname}${release}${shared_ext}$major'
17088  shlibpath_var=LD_LIBRARY_PATH
17089  shlibpath_overrides_runpath=no
17090  hardcode_into_libs=yes
17091  dynamic_linker='GNU ld.so'
17092  ;;
17093
17094netbsd*)
17095  version_type=sunos
17096  need_lib_prefix=no
17097  need_version=no
17098  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17100    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17101    dynamic_linker='NetBSD (a.out) ld.so'
17102  else
17103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17104    soname_spec='${libname}${release}${shared_ext}$major'
17105    dynamic_linker='NetBSD ld.elf_so'
17106  fi
17107  shlibpath_var=LD_LIBRARY_PATH
17108  shlibpath_overrides_runpath=yes
17109  hardcode_into_libs=yes
17110  ;;
17111
17112newsos6)
17113  version_type=linux
17114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115  shlibpath_var=LD_LIBRARY_PATH
17116  shlibpath_overrides_runpath=yes
17117  ;;
17118
17119nto-qnx*)
17120  version_type=linux
17121  need_lib_prefix=no
17122  need_version=no
17123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124  soname_spec='${libname}${release}${shared_ext}$major'
17125  shlibpath_var=LD_LIBRARY_PATH
17126  shlibpath_overrides_runpath=yes
17127  ;;
17128
17129openbsd*)
17130  version_type=sunos
17131  need_lib_prefix=no
17132  need_version=yes
17133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17134  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17135  shlibpath_var=LD_LIBRARY_PATH
17136  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17137    case $host_os in
17138      openbsd2.[89] | openbsd2.[89].*)
17139	shlibpath_overrides_runpath=no
17140	;;
17141      *)
17142	shlibpath_overrides_runpath=yes
17143	;;
17144      esac
17145  else
17146    shlibpath_overrides_runpath=yes
17147  fi
17148  ;;
17149
17150os2*)
17151  libname_spec='$name'
17152  shrext=".dll"
17153  need_lib_prefix=no
17154  library_names_spec='$libname${shared_ext} $libname.a'
17155  dynamic_linker='OS/2 ld.exe'
17156  shlibpath_var=LIBPATH
17157  ;;
17158
17159osf3* | osf4* | osf5*)
17160  version_type=osf
17161  need_lib_prefix=no
17162  need_version=no
17163  soname_spec='${libname}${release}${shared_ext}$major'
17164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165  shlibpath_var=LD_LIBRARY_PATH
17166  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17167  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17168  ;;
17169
17170sco3.2v5*)
17171  version_type=osf
17172  soname_spec='${libname}${release}${shared_ext}$major'
17173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174  shlibpath_var=LD_LIBRARY_PATH
17175  ;;
17176
17177solaris*)
17178  version_type=linux
17179  need_lib_prefix=no
17180  need_version=no
17181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182  soname_spec='${libname}${release}${shared_ext}$major'
17183  shlibpath_var=LD_LIBRARY_PATH
17184  shlibpath_overrides_runpath=yes
17185  hardcode_into_libs=yes
17186  # ldd complains unless libraries are executable
17187  postinstall_cmds='chmod +x $lib'
17188  ;;
17189
17190sunos4*)
17191  version_type=sunos
17192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17193  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  shlibpath_overrides_runpath=yes
17196  if test "$with_gnu_ld" = yes; then
17197    need_lib_prefix=no
17198  fi
17199  need_version=yes
17200  ;;
17201
17202sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17203  version_type=linux
17204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205  soname_spec='${libname}${release}${shared_ext}$major'
17206  shlibpath_var=LD_LIBRARY_PATH
17207  case $host_vendor in
17208    sni)
17209      shlibpath_overrides_runpath=no
17210      need_lib_prefix=no
17211      export_dynamic_flag_spec='${wl}-Blargedynsym'
17212      runpath_var=LD_RUN_PATH
17213      ;;
17214    siemens)
17215      need_lib_prefix=no
17216      ;;
17217    motorola)
17218      need_lib_prefix=no
17219      need_version=no
17220      shlibpath_overrides_runpath=no
17221      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17222      ;;
17223  esac
17224  ;;
17225
17226sysv4*MP*)
17227  if test -d /usr/nec ;then
17228    version_type=linux
17229    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17230    soname_spec='$libname${shared_ext}.$major'
17231    shlibpath_var=LD_LIBRARY_PATH
17232  fi
17233  ;;
17234
17235uts4*)
17236  version_type=linux
17237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238  soname_spec='${libname}${release}${shared_ext}$major'
17239  shlibpath_var=LD_LIBRARY_PATH
17240  ;;
17241
17242*)
17243  dynamic_linker=no
17244  ;;
17245esac
17246echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17247echo "${ECHO_T}$dynamic_linker" >&6
17248test "$dynamic_linker" = no && can_build_shared=no
17249
17250echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17252hardcode_action_GCJ=
17253if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17254   test -n "$runpath_var GCJ" || \
17255   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17256
17257  # We can hardcode non-existant directories.
17258  if test "$hardcode_direct_GCJ" != no &&
17259     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17260     # have to relink, otherwise we might link with an installed library
17261     # when we should be linking with a yet-to-be-installed one
17262     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17263     test "$hardcode_minus_L_GCJ" != no; then
17264    # Linking always hardcodes the temporary library directory.
17265    hardcode_action_GCJ=relink
17266  else
17267    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17268    hardcode_action_GCJ=immediate
17269  fi
17270else
17271  # We cannot hardcode anything, or else we can only hardcode existing
17272  # directories.
17273  hardcode_action_GCJ=unsupported
17274fi
17275echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17276echo "${ECHO_T}$hardcode_action_GCJ" >&6
17277
17278if test "$hardcode_action_GCJ" = relink; then
17279  # Fast installation is not supported
17280  enable_fast_install=no
17281elif test "$shlibpath_overrides_runpath" = yes ||
17282     test "$enable_shared" = no; then
17283  # Fast installation is not necessary
17284  enable_fast_install=needless
17285fi
17286
17287striplib=
17288old_striplib=
17289echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17290echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17291if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17292  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17293  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17294  echo "$as_me:$LINENO: result: yes" >&5
17295echo "${ECHO_T}yes" >&6
17296else
17297# FIXME - insert some real tests, host_os isn't really good enough
17298  case $host_os in
17299   darwin*)
17300       if test -n "$STRIP" ; then
17301         striplib="$STRIP -x"
17302         echo "$as_me:$LINENO: result: yes" >&5
17303echo "${ECHO_T}yes" >&6
17304       else
17305  echo "$as_me:$LINENO: result: no" >&5
17306echo "${ECHO_T}no" >&6
17307fi
17308       ;;
17309   *)
17310  echo "$as_me:$LINENO: result: no" >&5
17311echo "${ECHO_T}no" >&6
17312    ;;
17313  esac
17314fi
17315
17316if test "x$enable_dlopen" != xyes; then
17317  enable_dlopen=unknown
17318  enable_dlopen_self=unknown
17319  enable_dlopen_self_static=unknown
17320else
17321  lt_cv_dlopen=no
17322  lt_cv_dlopen_libs=
17323
17324  case $host_os in
17325  beos*)
17326    lt_cv_dlopen="load_add_on"
17327    lt_cv_dlopen_libs=
17328    lt_cv_dlopen_self=yes
17329    ;;
17330
17331  mingw* | pw32*)
17332    lt_cv_dlopen="LoadLibrary"
17333    lt_cv_dlopen_libs=
17334   ;;
17335
17336  cygwin*)
17337    lt_cv_dlopen="dlopen"
17338    lt_cv_dlopen_libs=
17339   ;;
17340
17341  darwin*)
17342  # if libdl is installed we need to link against it
17343    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17344echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17345if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17346  echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348  ac_check_lib_save_LIBS=$LIBS
17349LIBS="-ldl  $LIBS"
17350cat >conftest.$ac_ext <<_ACEOF
17351/* confdefs.h.  */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h.  */
17356
17357/* Override any gcc2 internal prototype to avoid an error.  */
17358#ifdef __cplusplus
17359extern "C"
17360#endif
17361/* We use char because int might match the return type of a gcc2
17362   builtin and then its argument prototype would still apply.  */
17363char dlopen ();
17364int
17365main ()
17366{
17367dlopen ();
17368  ;
17369  return 0;
17370}
17371_ACEOF
17372rm -f conftest.$ac_objext conftest$ac_exeext
17373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17374  (eval $ac_link) 2>conftest.er1
17375  ac_status=$?
17376  grep -v '^ *+' conftest.er1 >conftest.err
17377  rm -f conftest.er1
17378  cat conftest.err >&5
17379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380  (exit $ac_status); } &&
17381	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383  (eval $ac_try) 2>&5
17384  ac_status=$?
17385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386  (exit $ac_status); }; } &&
17387	 { ac_try='test -s conftest$ac_exeext'
17388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389  (eval $ac_try) 2>&5
17390  ac_status=$?
17391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392  (exit $ac_status); }; }; then
17393  ac_cv_lib_dl_dlopen=yes
17394else
17395  echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
17398ac_cv_lib_dl_dlopen=no
17399fi
17400rm -f conftest.err conftest.$ac_objext \
17401      conftest$ac_exeext conftest.$ac_ext
17402LIBS=$ac_check_lib_save_LIBS
17403fi
17404echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17405echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17406if test $ac_cv_lib_dl_dlopen = yes; then
17407  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17408else
17409
17410    lt_cv_dlopen="dyld"
17411    lt_cv_dlopen_libs=
17412    lt_cv_dlopen_self=yes
17413
17414fi
17415
17416   ;;
17417
17418  *)
17419    echo "$as_me:$LINENO: checking for shl_load" >&5
17420echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17421if test "${ac_cv_func_shl_load+set}" = set; then
17422  echo $ECHO_N "(cached) $ECHO_C" >&6
17423else
17424  cat >conftest.$ac_ext <<_ACEOF
17425/* confdefs.h.  */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h.  */
17430/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17431   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17432#define shl_load innocuous_shl_load
17433
17434/* System header to define __stub macros and hopefully few prototypes,
17435    which can conflict with char shl_load (); below.
17436    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437    <limits.h> exists even on freestanding compilers.  */
17438
17439#ifdef __STDC__
17440# include <limits.h>
17441#else
17442# include <assert.h>
17443#endif
17444
17445#undef shl_load
17446
17447/* Override any gcc2 internal prototype to avoid an error.  */
17448#ifdef __cplusplus
17449extern "C"
17450{
17451#endif
17452/* We use char because int might match the return type of a gcc2
17453   builtin and then its argument prototype would still apply.  */
17454char shl_load ();
17455/* The GNU C library defines this for functions which it implements
17456    to always fail with ENOSYS.  Some functions are actually named
17457    something starting with __ and the normal name is an alias.  */
17458#if defined (__stub_shl_load) || defined (__stub___shl_load)
17459choke me
17460#else
17461char (*f) () = shl_load;
17462#endif
17463#ifdef __cplusplus
17464}
17465#endif
17466
17467int
17468main ()
17469{
17470return f != shl_load;
17471  ;
17472  return 0;
17473}
17474_ACEOF
17475rm -f conftest.$ac_objext conftest$ac_exeext
17476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17477  (eval $ac_link) 2>conftest.er1
17478  ac_status=$?
17479  grep -v '^ *+' conftest.er1 >conftest.err
17480  rm -f conftest.er1
17481  cat conftest.err >&5
17482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483  (exit $ac_status); } &&
17484	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486  (eval $ac_try) 2>&5
17487  ac_status=$?
17488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489  (exit $ac_status); }; } &&
17490	 { ac_try='test -s conftest$ac_exeext'
17491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492  (eval $ac_try) 2>&5
17493  ac_status=$?
17494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495  (exit $ac_status); }; }; then
17496  ac_cv_func_shl_load=yes
17497else
17498  echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501ac_cv_func_shl_load=no
17502fi
17503rm -f conftest.err conftest.$ac_objext \
17504      conftest$ac_exeext conftest.$ac_ext
17505fi
17506echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17507echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17508if test $ac_cv_func_shl_load = yes; then
17509  lt_cv_dlopen="shl_load"
17510else
17511  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17512echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17513if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17514  echo $ECHO_N "(cached) $ECHO_C" >&6
17515else
17516  ac_check_lib_save_LIBS=$LIBS
17517LIBS="-ldld  $LIBS"
17518cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h.  */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h.  */
17524
17525/* Override any gcc2 internal prototype to avoid an error.  */
17526#ifdef __cplusplus
17527extern "C"
17528#endif
17529/* We use char because int might match the return type of a gcc2
17530   builtin and then its argument prototype would still apply.  */
17531char shl_load ();
17532int
17533main ()
17534{
17535shl_load ();
17536  ;
17537  return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext conftest$ac_exeext
17541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542  (eval $ac_link) 2>conftest.er1
17543  ac_status=$?
17544  grep -v '^ *+' conftest.er1 >conftest.err
17545  rm -f conftest.er1
17546  cat conftest.err >&5
17547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548  (exit $ac_status); } &&
17549	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551  (eval $ac_try) 2>&5
17552  ac_status=$?
17553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554  (exit $ac_status); }; } &&
17555	 { ac_try='test -s conftest$ac_exeext'
17556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557  (eval $ac_try) 2>&5
17558  ac_status=$?
17559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560  (exit $ac_status); }; }; then
17561  ac_cv_lib_dld_shl_load=yes
17562else
17563  echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566ac_cv_lib_dld_shl_load=no
17567fi
17568rm -f conftest.err conftest.$ac_objext \
17569      conftest$ac_exeext conftest.$ac_ext
17570LIBS=$ac_check_lib_save_LIBS
17571fi
17572echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17573echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17574if test $ac_cv_lib_dld_shl_load = yes; then
17575  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17576else
17577  echo "$as_me:$LINENO: checking for dlopen" >&5
17578echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17579if test "${ac_cv_func_dlopen+set}" = set; then
17580  echo $ECHO_N "(cached) $ECHO_C" >&6
17581else
17582  cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h.  */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h.  */
17588/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17589   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17590#define dlopen innocuous_dlopen
17591
17592/* System header to define __stub macros and hopefully few prototypes,
17593    which can conflict with char dlopen (); below.
17594    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595    <limits.h> exists even on freestanding compilers.  */
17596
17597#ifdef __STDC__
17598# include <limits.h>
17599#else
17600# include <assert.h>
17601#endif
17602
17603#undef dlopen
17604
17605/* Override any gcc2 internal prototype to avoid an error.  */
17606#ifdef __cplusplus
17607extern "C"
17608{
17609#endif
17610/* We use char because int might match the return type of a gcc2
17611   builtin and then its argument prototype would still apply.  */
17612char dlopen ();
17613/* The GNU C library defines this for functions which it implements
17614    to always fail with ENOSYS.  Some functions are actually named
17615    something starting with __ and the normal name is an alias.  */
17616#if defined (__stub_dlopen) || defined (__stub___dlopen)
17617choke me
17618#else
17619char (*f) () = dlopen;
17620#endif
17621#ifdef __cplusplus
17622}
17623#endif
17624
17625int
17626main ()
17627{
17628return f != dlopen;
17629  ;
17630  return 0;
17631}
17632_ACEOF
17633rm -f conftest.$ac_objext conftest$ac_exeext
17634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635  (eval $ac_link) 2>conftest.er1
17636  ac_status=$?
17637  grep -v '^ *+' conftest.er1 >conftest.err
17638  rm -f conftest.er1
17639  cat conftest.err >&5
17640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641  (exit $ac_status); } &&
17642	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644  (eval $ac_try) 2>&5
17645  ac_status=$?
17646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647  (exit $ac_status); }; } &&
17648	 { ac_try='test -s conftest$ac_exeext'
17649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650  (eval $ac_try) 2>&5
17651  ac_status=$?
17652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653  (exit $ac_status); }; }; then
17654  ac_cv_func_dlopen=yes
17655else
17656  echo "$as_me: failed program was:" >&5
17657sed 's/^/| /' conftest.$ac_ext >&5
17658
17659ac_cv_func_dlopen=no
17660fi
17661rm -f conftest.err conftest.$ac_objext \
17662      conftest$ac_exeext conftest.$ac_ext
17663fi
17664echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17665echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17666if test $ac_cv_func_dlopen = yes; then
17667  lt_cv_dlopen="dlopen"
17668else
17669  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17672  echo $ECHO_N "(cached) $ECHO_C" >&6
17673else
17674  ac_check_lib_save_LIBS=$LIBS
17675LIBS="-ldl  $LIBS"
17676cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h.  */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h.  */
17682
17683/* Override any gcc2 internal prototype to avoid an error.  */
17684#ifdef __cplusplus
17685extern "C"
17686#endif
17687/* We use char because int might match the return type of a gcc2
17688   builtin and then its argument prototype would still apply.  */
17689char dlopen ();
17690int
17691main ()
17692{
17693dlopen ();
17694  ;
17695  return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700  (eval $ac_link) 2>conftest.er1
17701  ac_status=$?
17702  grep -v '^ *+' conftest.er1 >conftest.err
17703  rm -f conftest.er1
17704  cat conftest.err >&5
17705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706  (exit $ac_status); } &&
17707	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709  (eval $ac_try) 2>&5
17710  ac_status=$?
17711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712  (exit $ac_status); }; } &&
17713	 { ac_try='test -s conftest$ac_exeext'
17714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715  (eval $ac_try) 2>&5
17716  ac_status=$?
17717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718  (exit $ac_status); }; }; then
17719  ac_cv_lib_dl_dlopen=yes
17720else
17721  echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724ac_cv_lib_dl_dlopen=no
17725fi
17726rm -f conftest.err conftest.$ac_objext \
17727      conftest$ac_exeext conftest.$ac_ext
17728LIBS=$ac_check_lib_save_LIBS
17729fi
17730echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17731echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17732if test $ac_cv_lib_dl_dlopen = yes; then
17733  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17734else
17735  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17736echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17737if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17738  echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740  ac_check_lib_save_LIBS=$LIBS
17741LIBS="-lsvld  $LIBS"
17742cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h.  */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h.  */
17748
17749/* Override any gcc2 internal prototype to avoid an error.  */
17750#ifdef __cplusplus
17751extern "C"
17752#endif
17753/* We use char because int might match the return type of a gcc2
17754   builtin and then its argument prototype would still apply.  */
17755char dlopen ();
17756int
17757main ()
17758{
17759dlopen ();
17760  ;
17761  return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext conftest$ac_exeext
17765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766  (eval $ac_link) 2>conftest.er1
17767  ac_status=$?
17768  grep -v '^ *+' conftest.er1 >conftest.err
17769  rm -f conftest.er1
17770  cat conftest.err >&5
17771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772  (exit $ac_status); } &&
17773	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775  (eval $ac_try) 2>&5
17776  ac_status=$?
17777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778  (exit $ac_status); }; } &&
17779	 { ac_try='test -s conftest$ac_exeext'
17780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781  (eval $ac_try) 2>&5
17782  ac_status=$?
17783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784  (exit $ac_status); }; }; then
17785  ac_cv_lib_svld_dlopen=yes
17786else
17787  echo "$as_me: failed program was:" >&5
17788sed 's/^/| /' conftest.$ac_ext >&5
17789
17790ac_cv_lib_svld_dlopen=no
17791fi
17792rm -f conftest.err conftest.$ac_objext \
17793      conftest$ac_exeext conftest.$ac_ext
17794LIBS=$ac_check_lib_save_LIBS
17795fi
17796echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17797echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17798if test $ac_cv_lib_svld_dlopen = yes; then
17799  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17800else
17801  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17802echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17803if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17804  echo $ECHO_N "(cached) $ECHO_C" >&6
17805else
17806  ac_check_lib_save_LIBS=$LIBS
17807LIBS="-ldld  $LIBS"
17808cat >conftest.$ac_ext <<_ACEOF
17809/* confdefs.h.  */
17810_ACEOF
17811cat confdefs.h >>conftest.$ac_ext
17812cat >>conftest.$ac_ext <<_ACEOF
17813/* end confdefs.h.  */
17814
17815/* Override any gcc2 internal prototype to avoid an error.  */
17816#ifdef __cplusplus
17817extern "C"
17818#endif
17819/* We use char because int might match the return type of a gcc2
17820   builtin and then its argument prototype would still apply.  */
17821char dld_link ();
17822int
17823main ()
17824{
17825dld_link ();
17826  ;
17827  return 0;
17828}
17829_ACEOF
17830rm -f conftest.$ac_objext conftest$ac_exeext
17831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17832  (eval $ac_link) 2>conftest.er1
17833  ac_status=$?
17834  grep -v '^ *+' conftest.er1 >conftest.err
17835  rm -f conftest.er1
17836  cat conftest.err >&5
17837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838  (exit $ac_status); } &&
17839	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
17840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841  (eval $ac_try) 2>&5
17842  ac_status=$?
17843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844  (exit $ac_status); }; } &&
17845	 { ac_try='test -s conftest$ac_exeext'
17846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847  (eval $ac_try) 2>&5
17848  ac_status=$?
17849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850  (exit $ac_status); }; }; then
17851  ac_cv_lib_dld_dld_link=yes
17852else
17853  echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
17856ac_cv_lib_dld_dld_link=no
17857fi
17858rm -f conftest.err conftest.$ac_objext \
17859      conftest$ac_exeext conftest.$ac_ext
17860LIBS=$ac_check_lib_save_LIBS
17861fi
17862echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17863echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17864if test $ac_cv_lib_dld_dld_link = yes; then
17865  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17866fi
17867
17868
17869fi
17870
17871
17872fi
17873
17874
17875fi
17876
17877
17878fi
17879
17880
17881fi
17882
17883    ;;
17884  esac
17885
17886  if test "x$lt_cv_dlopen" != xno; then
17887    enable_dlopen=yes
17888  else
17889    enable_dlopen=no
17890  fi
17891
17892  case $lt_cv_dlopen in
17893  dlopen)
17894    save_CPPFLAGS="$CPPFLAGS"
17895    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17896
17897    save_LDFLAGS="$LDFLAGS"
17898    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17899
17900    save_LIBS="$LIBS"
17901    LIBS="$lt_cv_dlopen_libs $LIBS"
17902
17903    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17904echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17905if test "${lt_cv_dlopen_self+set}" = set; then
17906  echo $ECHO_N "(cached) $ECHO_C" >&6
17907else
17908  	  if test "$cross_compiling" = yes; then :
17909  lt_cv_dlopen_self=cross
17910else
17911  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17912  lt_status=$lt_dlunknown
17913  cat > conftest.$ac_ext <<EOF
17914#line 17914 "configure"
17915#include "confdefs.h"
17916
17917#if HAVE_DLFCN_H
17918#include <dlfcn.h>
17919#endif
17920
17921#include <stdio.h>
17922
17923#ifdef RTLD_GLOBAL
17924#  define LT_DLGLOBAL		RTLD_GLOBAL
17925#else
17926#  ifdef DL_GLOBAL
17927#    define LT_DLGLOBAL		DL_GLOBAL
17928#  else
17929#    define LT_DLGLOBAL		0
17930#  endif
17931#endif
17932
17933/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17934   find out it does not work in some platform. */
17935#ifndef LT_DLLAZY_OR_NOW
17936#  ifdef RTLD_LAZY
17937#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17938#  else
17939#    ifdef DL_LAZY
17940#      define LT_DLLAZY_OR_NOW		DL_LAZY
17941#    else
17942#      ifdef RTLD_NOW
17943#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17944#      else
17945#        ifdef DL_NOW
17946#          define LT_DLLAZY_OR_NOW	DL_NOW
17947#        else
17948#          define LT_DLLAZY_OR_NOW	0
17949#        endif
17950#      endif
17951#    endif
17952#  endif
17953#endif
17954
17955#ifdef __cplusplus
17956extern "C" void exit (int);
17957#endif
17958
17959void fnord() { int i=42;}
17960int main ()
17961{
17962  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17963  int status = $lt_dlunknown;
17964
17965  if (self)
17966    {
17967      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17968      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17969      /* dlclose (self); */
17970    }
17971
17972    exit (status);
17973}
17974EOF
17975  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976  (eval $ac_link) 2>&5
17977  ac_status=$?
17978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17980    (./conftest; exit; ) 2>/dev/null
17981    lt_status=$?
17982    case x$lt_status in
17983      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17984      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17985      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17986    esac
17987  else :
17988    # compilation failed
17989    lt_cv_dlopen_self=no
17990  fi
17991fi
17992rm -fr conftest*
17993
17994
17995fi
17996echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17997echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17998
17999    if test "x$lt_cv_dlopen_self" = xyes; then
18000      LDFLAGS="$LDFLAGS $link_static_flag"
18001      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18002echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18003if test "${lt_cv_dlopen_self_static+set}" = set; then
18004  echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006  	  if test "$cross_compiling" = yes; then :
18007  lt_cv_dlopen_self_static=cross
18008else
18009  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18010  lt_status=$lt_dlunknown
18011  cat > conftest.$ac_ext <<EOF
18012#line 18012 "configure"
18013#include "confdefs.h"
18014
18015#if HAVE_DLFCN_H
18016#include <dlfcn.h>
18017#endif
18018
18019#include <stdio.h>
18020
18021#ifdef RTLD_GLOBAL
18022#  define LT_DLGLOBAL		RTLD_GLOBAL
18023#else
18024#  ifdef DL_GLOBAL
18025#    define LT_DLGLOBAL		DL_GLOBAL
18026#  else
18027#    define LT_DLGLOBAL		0
18028#  endif
18029#endif
18030
18031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18032   find out it does not work in some platform. */
18033#ifndef LT_DLLAZY_OR_NOW
18034#  ifdef RTLD_LAZY
18035#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18036#  else
18037#    ifdef DL_LAZY
18038#      define LT_DLLAZY_OR_NOW		DL_LAZY
18039#    else
18040#      ifdef RTLD_NOW
18041#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18042#      else
18043#        ifdef DL_NOW
18044#          define LT_DLLAZY_OR_NOW	DL_NOW
18045#        else
18046#          define LT_DLLAZY_OR_NOW	0
18047#        endif
18048#      endif
18049#    endif
18050#  endif
18051#endif
18052
18053#ifdef __cplusplus
18054extern "C" void exit (int);
18055#endif
18056
18057void fnord() { int i=42;}
18058int main ()
18059{
18060  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18061  int status = $lt_dlunknown;
18062
18063  if (self)
18064    {
18065      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18066      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18067      /* dlclose (self); */
18068    }
18069
18070    exit (status);
18071}
18072EOF
18073  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074  (eval $ac_link) 2>&5
18075  ac_status=$?
18076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18078    (./conftest; exit; ) 2>/dev/null
18079    lt_status=$?
18080    case x$lt_status in
18081      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18082      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18083      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18084    esac
18085  else :
18086    # compilation failed
18087    lt_cv_dlopen_self_static=no
18088  fi
18089fi
18090rm -fr conftest*
18091
18092
18093fi
18094echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18095echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18096    fi
18097
18098    CPPFLAGS="$save_CPPFLAGS"
18099    LDFLAGS="$save_LDFLAGS"
18100    LIBS="$save_LIBS"
18101    ;;
18102  esac
18103
18104  case $lt_cv_dlopen_self in
18105  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18106  *) enable_dlopen_self=unknown ;;
18107  esac
18108
18109  case $lt_cv_dlopen_self_static in
18110  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18111  *) enable_dlopen_self_static=unknown ;;
18112  esac
18113fi
18114
18115
18116# The else clause should only fire when bootstrapping the
18117# libtool distribution, otherwise you forgot to ship ltmain.sh
18118# with your package, and you will get complaints that there are
18119# no rules to generate ltmain.sh.
18120if test -f "$ltmain"; then
18121  # See if we are running on zsh, and set the options which allow our commands through
18122  # without removal of \ escapes.
18123  if test -n "${ZSH_VERSION+set}" ; then
18124    setopt NO_GLOB_SUBST
18125  fi
18126  # Now quote all the things that may contain metacharacters while being
18127  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18128  # variables and quote the copies for generation of the libtool script.
18129  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18130    SED SHELL STRIP \
18131    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18132    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18133    deplibs_check_method reload_flag reload_cmds need_locks \
18134    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18135    lt_cv_sys_global_symbol_to_c_name_address \
18136    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18137    old_postinstall_cmds old_postuninstall_cmds \
18138    compiler_GCJ \
18139    CC_GCJ \
18140    LD_GCJ \
18141    lt_prog_compiler_wl_GCJ \
18142    lt_prog_compiler_pic_GCJ \
18143    lt_prog_compiler_static_GCJ \
18144    lt_prog_compiler_no_builtin_flag_GCJ \
18145    export_dynamic_flag_spec_GCJ \
18146    thread_safe_flag_spec_GCJ \
18147    whole_archive_flag_spec_GCJ \
18148    enable_shared_with_static_runtimes_GCJ \
18149    old_archive_cmds_GCJ \
18150    old_archive_from_new_cmds_GCJ \
18151    predep_objects_GCJ \
18152    postdep_objects_GCJ \
18153    predeps_GCJ \
18154    postdeps_GCJ \
18155    compiler_lib_search_path_GCJ \
18156    archive_cmds_GCJ \
18157    archive_expsym_cmds_GCJ \
18158    postinstall_cmds_GCJ \
18159    postuninstall_cmds_GCJ \
18160    old_archive_from_expsyms_cmds_GCJ \
18161    allow_undefined_flag_GCJ \
18162    no_undefined_flag_GCJ \
18163    export_symbols_cmds_GCJ \
18164    hardcode_libdir_flag_spec_GCJ \
18165    hardcode_libdir_flag_spec_ld_GCJ \
18166    hardcode_libdir_separator_GCJ \
18167    hardcode_automatic_GCJ \
18168    module_cmds_GCJ \
18169    module_expsym_cmds_GCJ \
18170    lt_cv_prog_compiler_c_o_GCJ \
18171    exclude_expsyms_GCJ \
18172    include_expsyms_GCJ; do
18173
18174    case $var in
18175    old_archive_cmds_GCJ | \
18176    old_archive_from_new_cmds_GCJ | \
18177    archive_cmds_GCJ | \
18178    archive_expsym_cmds_GCJ | \
18179    module_cmds_GCJ | \
18180    module_expsym_cmds_GCJ | \
18181    old_archive_from_expsyms_cmds_GCJ | \
18182    export_symbols_cmds_GCJ | \
18183    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18184    postinstall_cmds | postuninstall_cmds | \
18185    old_postinstall_cmds | old_postuninstall_cmds | \
18186    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18187      # Double-quote double-evaled strings.
18188      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18189      ;;
18190    *)
18191      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18192      ;;
18193    esac
18194  done
18195
18196  case $lt_echo in
18197  *'\$0 --fallback-echo"')
18198    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18199    ;;
18200  esac
18201
18202cfgfile="$ofile"
18203
18204  cat <<__EOF__ >> "$cfgfile"
18205# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18206
18207# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18208
18209# Shell to use when invoking shell scripts.
18210SHELL=$lt_SHELL
18211
18212# Whether or not to build shared libraries.
18213build_libtool_libs=$enable_shared
18214
18215# Whether or not to build static libraries.
18216build_old_libs=$enable_static
18217
18218# Whether or not to add -lc for building shared libraries.
18219build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18220
18221# Whether or not to disallow shared libs when runtime libs are static
18222allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18223
18224# Whether or not to optimize for fast installation.
18225fast_install=$enable_fast_install
18226
18227# The host system.
18228host_alias=$host_alias
18229host=$host
18230
18231# An echo program that does not interpret backslashes.
18232echo=$lt_echo
18233
18234# The archiver.
18235AR=$lt_AR
18236AR_FLAGS=$lt_AR_FLAGS
18237
18238# A C compiler.
18239LTCC=$lt_LTCC
18240
18241# A language-specific compiler.
18242CC=$lt_compiler_GCJ
18243
18244# Is the compiler the GNU C compiler?
18245with_gcc=$GCC_GCJ
18246
18247# An ERE matcher.
18248EGREP=$lt_EGREP
18249
18250# The linker used to build libraries.
18251LD=$lt_LD_GCJ
18252
18253# Whether we need hard or soft links.
18254LN_S=$lt_LN_S
18255
18256# A BSD-compatible nm program.
18257NM=$lt_NM
18258
18259# A symbol stripping program
18260STRIP=$lt_STRIP
18261
18262# Used to examine libraries when file_magic_cmd begins "file"
18263MAGIC_CMD=$MAGIC_CMD
18264
18265# Used on cygwin: DLL creation program.
18266DLLTOOL="$DLLTOOL"
18267
18268# Used on cygwin: object dumper.
18269OBJDUMP="$OBJDUMP"
18270
18271# Used on cygwin: assembler.
18272AS="$AS"
18273
18274# The name of the directory that contains temporary libtool files.
18275objdir=$objdir
18276
18277# How to create reloadable object files.
18278reload_flag=$lt_reload_flag
18279reload_cmds=$lt_reload_cmds
18280
18281# How to pass a linker flag through the compiler.
18282wl=$lt_lt_prog_compiler_wl_GCJ
18283
18284# Object file suffix (normally "o").
18285objext="$ac_objext"
18286
18287# Old archive suffix (normally "a").
18288libext="$libext"
18289
18290# Shared library suffix (normally ".so").
18291shrext='$shrext'
18292
18293# Executable file suffix (normally "").
18294exeext="$exeext"
18295
18296# Additional compiler flags for building library objects.
18297pic_flag=$lt_lt_prog_compiler_pic_GCJ
18298pic_mode=$pic_mode
18299
18300# What is the maximum length of a command?
18301max_cmd_len=$lt_cv_sys_max_cmd_len
18302
18303# Does compiler simultaneously support -c and -o options?
18304compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18305
18306# Must we lock files when doing compilation ?
18307need_locks=$lt_need_locks
18308
18309# Do we need the lib prefix for modules?
18310need_lib_prefix=$need_lib_prefix
18311
18312# Do we need a version for libraries?
18313need_version=$need_version
18314
18315# Whether dlopen is supported.
18316dlopen_support=$enable_dlopen
18317
18318# Whether dlopen of programs is supported.
18319dlopen_self=$enable_dlopen_self
18320
18321# Whether dlopen of statically linked programs is supported.
18322dlopen_self_static=$enable_dlopen_self_static
18323
18324# Compiler flag to prevent dynamic linking.
18325link_static_flag=$lt_lt_prog_compiler_static_GCJ
18326
18327# Compiler flag to turn off builtin functions.
18328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18329
18330# Compiler flag to allow reflexive dlopens.
18331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18332
18333# Compiler flag to generate shared objects directly from archives.
18334whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18335
18336# Compiler flag to generate thread-safe objects.
18337thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18338
18339# Library versioning type.
18340version_type=$version_type
18341
18342# Format of library name prefix.
18343libname_spec=$lt_libname_spec
18344
18345# List of archive names.  First name is the real one, the rest are links.
18346# The last name is the one that the linker finds with -lNAME.
18347library_names_spec=$lt_library_names_spec
18348
18349# The coded name of the library, if different from the real name.
18350soname_spec=$lt_soname_spec
18351
18352# Commands used to build and install an old-style archive.
18353RANLIB=$lt_RANLIB
18354old_archive_cmds=$lt_old_archive_cmds_GCJ
18355old_postinstall_cmds=$lt_old_postinstall_cmds
18356old_postuninstall_cmds=$lt_old_postuninstall_cmds
18357
18358# Create an old-style archive from a shared archive.
18359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18360
18361# Create a temporary old-style archive to link instead of a shared archive.
18362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18363
18364# Commands used to build and install a shared archive.
18365archive_cmds=$lt_archive_cmds_GCJ
18366archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18367postinstall_cmds=$lt_postinstall_cmds
18368postuninstall_cmds=$lt_postuninstall_cmds
18369
18370# Commands used to build a loadable module (assumed same as above if empty)
18371module_cmds=$lt_module_cmds_GCJ
18372module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18373
18374# Commands to strip libraries.
18375old_striplib=$lt_old_striplib
18376striplib=$lt_striplib
18377
18378# Dependencies to place before the objects being linked to create a
18379# shared library.
18380predep_objects=$lt_predep_objects_GCJ
18381
18382# Dependencies to place after the objects being linked to create a
18383# shared library.
18384postdep_objects=$lt_postdep_objects_GCJ
18385
18386# Dependencies to place before the objects being linked to create a
18387# shared library.
18388predeps=$lt_predeps_GCJ
18389
18390# Dependencies to place after the objects being linked to create a
18391# shared library.
18392postdeps=$lt_postdeps_GCJ
18393
18394# The library search path used internally by the compiler when linking
18395# a shared library.
18396compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18397
18398# Method to check whether dependent libraries are shared objects.
18399deplibs_check_method=$lt_deplibs_check_method
18400
18401# Command to use when deplibs_check_method == file_magic.
18402file_magic_cmd=$lt_file_magic_cmd
18403
18404# Flag that allows shared libraries with undefined symbols to be built.
18405allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18406
18407# Flag that forces no undefined symbols.
18408no_undefined_flag=$lt_no_undefined_flag_GCJ
18409
18410# Commands used to finish a libtool library installation in a directory.
18411finish_cmds=$lt_finish_cmds
18412
18413# Same as above, but a single script fragment to be evaled but not shown.
18414finish_eval=$lt_finish_eval
18415
18416# Take the output of nm and produce a listing of raw symbols and C names.
18417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18418
18419# Transform the output of nm in a proper C declaration
18420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18421
18422# Transform the output of nm in a C name address pair
18423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18424
18425# This is the shared library runtime path variable.
18426runpath_var=$runpath_var
18427
18428# This is the shared library path variable.
18429shlibpath_var=$shlibpath_var
18430
18431# Is shlibpath searched before the hard-coded library search path?
18432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18433
18434# How to hardcode a shared library path into an executable.
18435hardcode_action=$hardcode_action_GCJ
18436
18437# Whether we should hardcode library paths into libraries.
18438hardcode_into_libs=$hardcode_into_libs
18439
18440# Flag to hardcode \$libdir into a binary during linking.
18441# This must work even if \$libdir does not exist.
18442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18443
18444# If ld is used when linking, flag to hardcode \$libdir into
18445# a binary during linking. This must work even if \$libdir does
18446# not exist.
18447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18448
18449# Whether we need a single -rpath flag with a separated argument.
18450hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18451
18452# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18453# resulting binary.
18454hardcode_direct=$hardcode_direct_GCJ
18455
18456# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18457# resulting binary.
18458hardcode_minus_L=$hardcode_minus_L_GCJ
18459
18460# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18461# the resulting binary.
18462hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18463
18464# Set to yes if building a shared library automatically hardcodes DIR into the library
18465# and all subsequent libraries and executables linked against it.
18466hardcode_automatic=$hardcode_automatic_GCJ
18467
18468# Variables whose values should be saved in libtool wrapper scripts and
18469# restored at relink time.
18470variables_saved_for_relink="$variables_saved_for_relink"
18471
18472# Whether libtool must link a program against all its dependency libraries.
18473link_all_deplibs=$link_all_deplibs_GCJ
18474
18475# Compile-time system search path for libraries
18476sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18477
18478# Run-time system search path for libraries
18479sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18480
18481# Fix the shell variable \$srcfile for the compiler.
18482fix_srcfile_path="$fix_srcfile_path_GCJ"
18483
18484# Set to yes if exported symbols are required.
18485always_export_symbols=$always_export_symbols_GCJ
18486
18487# The commands to list exported symbols.
18488export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18489
18490# The commands to extract the exported symbol list from a shared archive.
18491extract_expsyms_cmds=$lt_extract_expsyms_cmds
18492
18493# Symbols that should not be listed in the preloaded symbols.
18494exclude_expsyms=$lt_exclude_expsyms_GCJ
18495
18496# Symbols that must always be exported.
18497include_expsyms=$lt_include_expsyms_GCJ
18498
18499# ### END LIBTOOL TAG CONFIG: $tagname
18500
18501__EOF__
18502
18503
18504else
18505  # If there is no Makefile yet, we rely on a make rule to execute
18506  # `config.status --recheck' to rerun these tests and create the
18507  # libtool script then.
18508  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18509  if test -f "$ltmain_in"; then
18510    test -f Makefile && make "$ltmain"
18511  fi
18512fi
18513
18514
18515ac_ext=c
18516ac_cpp='$CPP $CPPFLAGS'
18517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18519ac_compiler_gnu=$ac_cv_c_compiler_gnu
18520
18521CC="$lt_save_CC"
18522
18523	else
18524	  tagname=""
18525	fi
18526	;;
18527
18528      RC)
18529
18530
18531
18532# Source file extension for RC test sources.
18533ac_ext=rc
18534
18535# Object file extension for compiled RC test sources.
18536objext=o
18537objext_RC=$objext
18538
18539# Code to be used in simple compile tests
18540lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18541
18542# Code to be used in simple link tests
18543lt_simple_link_test_code="$lt_simple_compile_test_code"
18544
18545# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18546
18547# If no C compiler was specified, use CC.
18548LTCC=${LTCC-"$CC"}
18549
18550# Allow CC to be a program name with arguments.
18551compiler=$CC
18552
18553
18554# Allow CC to be a program name with arguments.
18555lt_save_CC="$CC"
18556CC=${RC-"windres"}
18557compiler=$CC
18558compiler_RC=$CC
18559lt_cv_prog_compiler_c_o_RC=yes
18560
18561# The else clause should only fire when bootstrapping the
18562# libtool distribution, otherwise you forgot to ship ltmain.sh
18563# with your package, and you will get complaints that there are
18564# no rules to generate ltmain.sh.
18565if test -f "$ltmain"; then
18566  # See if we are running on zsh, and set the options which allow our commands through
18567  # without removal of \ escapes.
18568  if test -n "${ZSH_VERSION+set}" ; then
18569    setopt NO_GLOB_SUBST
18570  fi
18571  # Now quote all the things that may contain metacharacters while being
18572  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18573  # variables and quote the copies for generation of the libtool script.
18574  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18575    SED SHELL STRIP \
18576    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18577    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18578    deplibs_check_method reload_flag reload_cmds need_locks \
18579    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18580    lt_cv_sys_global_symbol_to_c_name_address \
18581    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18582    old_postinstall_cmds old_postuninstall_cmds \
18583    compiler_RC \
18584    CC_RC \
18585    LD_RC \
18586    lt_prog_compiler_wl_RC \
18587    lt_prog_compiler_pic_RC \
18588    lt_prog_compiler_static_RC \
18589    lt_prog_compiler_no_builtin_flag_RC \
18590    export_dynamic_flag_spec_RC \
18591    thread_safe_flag_spec_RC \
18592    whole_archive_flag_spec_RC \
18593    enable_shared_with_static_runtimes_RC \
18594    old_archive_cmds_RC \
18595    old_archive_from_new_cmds_RC \
18596    predep_objects_RC \
18597    postdep_objects_RC \
18598    predeps_RC \
18599    postdeps_RC \
18600    compiler_lib_search_path_RC \
18601    archive_cmds_RC \
18602    archive_expsym_cmds_RC \
18603    postinstall_cmds_RC \
18604    postuninstall_cmds_RC \
18605    old_archive_from_expsyms_cmds_RC \
18606    allow_undefined_flag_RC \
18607    no_undefined_flag_RC \
18608    export_symbols_cmds_RC \
18609    hardcode_libdir_flag_spec_RC \
18610    hardcode_libdir_flag_spec_ld_RC \
18611    hardcode_libdir_separator_RC \
18612    hardcode_automatic_RC \
18613    module_cmds_RC \
18614    module_expsym_cmds_RC \
18615    lt_cv_prog_compiler_c_o_RC \
18616    exclude_expsyms_RC \
18617    include_expsyms_RC; do
18618
18619    case $var in
18620    old_archive_cmds_RC | \
18621    old_archive_from_new_cmds_RC | \
18622    archive_cmds_RC | \
18623    archive_expsym_cmds_RC | \
18624    module_cmds_RC | \
18625    module_expsym_cmds_RC | \
18626    old_archive_from_expsyms_cmds_RC | \
18627    export_symbols_cmds_RC | \
18628    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18629    postinstall_cmds | postuninstall_cmds | \
18630    old_postinstall_cmds | old_postuninstall_cmds | \
18631    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18632      # Double-quote double-evaled strings.
18633      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18634      ;;
18635    *)
18636      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18637      ;;
18638    esac
18639  done
18640
18641  case $lt_echo in
18642  *'\$0 --fallback-echo"')
18643    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18644    ;;
18645  esac
18646
18647cfgfile="$ofile"
18648
18649  cat <<__EOF__ >> "$cfgfile"
18650# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18651
18652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18653
18654# Shell to use when invoking shell scripts.
18655SHELL=$lt_SHELL
18656
18657# Whether or not to build shared libraries.
18658build_libtool_libs=$enable_shared
18659
18660# Whether or not to build static libraries.
18661build_old_libs=$enable_static
18662
18663# Whether or not to add -lc for building shared libraries.
18664build_libtool_need_lc=$archive_cmds_need_lc_RC
18665
18666# Whether or not to disallow shared libs when runtime libs are static
18667allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18668
18669# Whether or not to optimize for fast installation.
18670fast_install=$enable_fast_install
18671
18672# The host system.
18673host_alias=$host_alias
18674host=$host
18675
18676# An echo program that does not interpret backslashes.
18677echo=$lt_echo
18678
18679# The archiver.
18680AR=$lt_AR
18681AR_FLAGS=$lt_AR_FLAGS
18682
18683# A C compiler.
18684LTCC=$lt_LTCC
18685
18686# A language-specific compiler.
18687CC=$lt_compiler_RC
18688
18689# Is the compiler the GNU C compiler?
18690with_gcc=$GCC_RC
18691
18692# An ERE matcher.
18693EGREP=$lt_EGREP
18694
18695# The linker used to build libraries.
18696LD=$lt_LD_RC
18697
18698# Whether we need hard or soft links.
18699LN_S=$lt_LN_S
18700
18701# A BSD-compatible nm program.
18702NM=$lt_NM
18703
18704# A symbol stripping program
18705STRIP=$lt_STRIP
18706
18707# Used to examine libraries when file_magic_cmd begins "file"
18708MAGIC_CMD=$MAGIC_CMD
18709
18710# Used on cygwin: DLL creation program.
18711DLLTOOL="$DLLTOOL"
18712
18713# Used on cygwin: object dumper.
18714OBJDUMP="$OBJDUMP"
18715
18716# Used on cygwin: assembler.
18717AS="$AS"
18718
18719# The name of the directory that contains temporary libtool files.
18720objdir=$objdir
18721
18722# How to create reloadable object files.
18723reload_flag=$lt_reload_flag
18724reload_cmds=$lt_reload_cmds
18725
18726# How to pass a linker flag through the compiler.
18727wl=$lt_lt_prog_compiler_wl_RC
18728
18729# Object file suffix (normally "o").
18730objext="$ac_objext"
18731
18732# Old archive suffix (normally "a").
18733libext="$libext"
18734
18735# Shared library suffix (normally ".so").
18736shrext='$shrext'
18737
18738# Executable file suffix (normally "").
18739exeext="$exeext"
18740
18741# Additional compiler flags for building library objects.
18742pic_flag=$lt_lt_prog_compiler_pic_RC
18743pic_mode=$pic_mode
18744
18745# What is the maximum length of a command?
18746max_cmd_len=$lt_cv_sys_max_cmd_len
18747
18748# Does compiler simultaneously support -c and -o options?
18749compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18750
18751# Must we lock files when doing compilation ?
18752need_locks=$lt_need_locks
18753
18754# Do we need the lib prefix for modules?
18755need_lib_prefix=$need_lib_prefix
18756
18757# Do we need a version for libraries?
18758need_version=$need_version
18759
18760# Whether dlopen is supported.
18761dlopen_support=$enable_dlopen
18762
18763# Whether dlopen of programs is supported.
18764dlopen_self=$enable_dlopen_self
18765
18766# Whether dlopen of statically linked programs is supported.
18767dlopen_self_static=$enable_dlopen_self_static
18768
18769# Compiler flag to prevent dynamic linking.
18770link_static_flag=$lt_lt_prog_compiler_static_RC
18771
18772# Compiler flag to turn off builtin functions.
18773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18774
18775# Compiler flag to allow reflexive dlopens.
18776export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18777
18778# Compiler flag to generate shared objects directly from archives.
18779whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18780
18781# Compiler flag to generate thread-safe objects.
18782thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18783
18784# Library versioning type.
18785version_type=$version_type
18786
18787# Format of library name prefix.
18788libname_spec=$lt_libname_spec
18789
18790# List of archive names.  First name is the real one, the rest are links.
18791# The last name is the one that the linker finds with -lNAME.
18792library_names_spec=$lt_library_names_spec
18793
18794# The coded name of the library, if different from the real name.
18795soname_spec=$lt_soname_spec
18796
18797# Commands used to build and install an old-style archive.
18798RANLIB=$lt_RANLIB
18799old_archive_cmds=$lt_old_archive_cmds_RC
18800old_postinstall_cmds=$lt_old_postinstall_cmds
18801old_postuninstall_cmds=$lt_old_postuninstall_cmds
18802
18803# Create an old-style archive from a shared archive.
18804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18805
18806# Create a temporary old-style archive to link instead of a shared archive.
18807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18808
18809# Commands used to build and install a shared archive.
18810archive_cmds=$lt_archive_cmds_RC
18811archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18812postinstall_cmds=$lt_postinstall_cmds
18813postuninstall_cmds=$lt_postuninstall_cmds
18814
18815# Commands used to build a loadable module (assumed same as above if empty)
18816module_cmds=$lt_module_cmds_RC
18817module_expsym_cmds=$lt_module_expsym_cmds_RC
18818
18819# Commands to strip libraries.
18820old_striplib=$lt_old_striplib
18821striplib=$lt_striplib
18822
18823# Dependencies to place before the objects being linked to create a
18824# shared library.
18825predep_objects=$lt_predep_objects_RC
18826
18827# Dependencies to place after the objects being linked to create a
18828# shared library.
18829postdep_objects=$lt_postdep_objects_RC
18830
18831# Dependencies to place before the objects being linked to create a
18832# shared library.
18833predeps=$lt_predeps_RC
18834
18835# Dependencies to place after the objects being linked to create a
18836# shared library.
18837postdeps=$lt_postdeps_RC
18838
18839# The library search path used internally by the compiler when linking
18840# a shared library.
18841compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18842
18843# Method to check whether dependent libraries are shared objects.
18844deplibs_check_method=$lt_deplibs_check_method
18845
18846# Command to use when deplibs_check_method == file_magic.
18847file_magic_cmd=$lt_file_magic_cmd
18848
18849# Flag that allows shared libraries with undefined symbols to be built.
18850allow_undefined_flag=$lt_allow_undefined_flag_RC
18851
18852# Flag that forces no undefined symbols.
18853no_undefined_flag=$lt_no_undefined_flag_RC
18854
18855# Commands used to finish a libtool library installation in a directory.
18856finish_cmds=$lt_finish_cmds
18857
18858# Same as above, but a single script fragment to be evaled but not shown.
18859finish_eval=$lt_finish_eval
18860
18861# Take the output of nm and produce a listing of raw symbols and C names.
18862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18863
18864# Transform the output of nm in a proper C declaration
18865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18866
18867# Transform the output of nm in a C name address pair
18868global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18869
18870# This is the shared library runtime path variable.
18871runpath_var=$runpath_var
18872
18873# This is the shared library path variable.
18874shlibpath_var=$shlibpath_var
18875
18876# Is shlibpath searched before the hard-coded library search path?
18877shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18878
18879# How to hardcode a shared library path into an executable.
18880hardcode_action=$hardcode_action_RC
18881
18882# Whether we should hardcode library paths into libraries.
18883hardcode_into_libs=$hardcode_into_libs
18884
18885# Flag to hardcode \$libdir into a binary during linking.
18886# This must work even if \$libdir does not exist.
18887hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18888
18889# If ld is used when linking, flag to hardcode \$libdir into
18890# a binary during linking. This must work even if \$libdir does
18891# not exist.
18892hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18893
18894# Whether we need a single -rpath flag with a separated argument.
18895hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18896
18897# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18898# resulting binary.
18899hardcode_direct=$hardcode_direct_RC
18900
18901# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18902# resulting binary.
18903hardcode_minus_L=$hardcode_minus_L_RC
18904
18905# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18906# the resulting binary.
18907hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18908
18909# Set to yes if building a shared library automatically hardcodes DIR into the library
18910# and all subsequent libraries and executables linked against it.
18911hardcode_automatic=$hardcode_automatic_RC
18912
18913# Variables whose values should be saved in libtool wrapper scripts and
18914# restored at relink time.
18915variables_saved_for_relink="$variables_saved_for_relink"
18916
18917# Whether libtool must link a program against all its dependency libraries.
18918link_all_deplibs=$link_all_deplibs_RC
18919
18920# Compile-time system search path for libraries
18921sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18922
18923# Run-time system search path for libraries
18924sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18925
18926# Fix the shell variable \$srcfile for the compiler.
18927fix_srcfile_path="$fix_srcfile_path_RC"
18928
18929# Set to yes if exported symbols are required.
18930always_export_symbols=$always_export_symbols_RC
18931
18932# The commands to list exported symbols.
18933export_symbols_cmds=$lt_export_symbols_cmds_RC
18934
18935# The commands to extract the exported symbol list from a shared archive.
18936extract_expsyms_cmds=$lt_extract_expsyms_cmds
18937
18938# Symbols that should not be listed in the preloaded symbols.
18939exclude_expsyms=$lt_exclude_expsyms_RC
18940
18941# Symbols that must always be exported.
18942include_expsyms=$lt_include_expsyms_RC
18943
18944# ### END LIBTOOL TAG CONFIG: $tagname
18945
18946__EOF__
18947
18948
18949else
18950  # If there is no Makefile yet, we rely on a make rule to execute
18951  # `config.status --recheck' to rerun these tests and create the
18952  # libtool script then.
18953  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18954  if test -f "$ltmain_in"; then
18955    test -f Makefile && make "$ltmain"
18956  fi
18957fi
18958
18959
18960ac_ext=c
18961ac_cpp='$CPP $CPPFLAGS'
18962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964ac_compiler_gnu=$ac_cv_c_compiler_gnu
18965
18966CC="$lt_save_CC"
18967
18968	;;
18969
18970      *)
18971	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18972echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18973   { (exit 1); exit 1; }; }
18974	;;
18975      esac
18976
18977      # Append the new tag name to the list of available tags.
18978      if test -n "$tagname" ; then
18979      available_tags="$available_tags $tagname"
18980    fi
18981    fi
18982  done
18983  IFS="$lt_save_ifs"
18984
18985  # Now substitute the updated list of available tags.
18986  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18987    mv "${ofile}T" "$ofile"
18988    chmod +x "$ofile"
18989  else
18990    rm -f "${ofile}T"
18991    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18992echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18993   { (exit 1); exit 1; }; }
18994  fi
18995fi
18996
18997
18998
18999# This can be used to rebuild libtool when needed
19000LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19001
19002# Always use our own libtool.
19003LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19004
19005# Prevent multiple expansion
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030arch=""
19031debug=""
19032optimize=""
19033profile=""
19034
19035set -- $CFLAGS
19036CFLAGS=""
19037
19038if test "$GCC" = yes
19039then
19040    CFLAGS="-Wall"
19041fi
19042
19043while test $# -gt 0
19044do
19045    case "$1" in
19046	-Wall)
19047	    if test "$GCC" = yes
19048	    then
19049		:
19050	    else
19051		CFLAGS="$CFLAGS $1"
19052	    fi
19053	    shift
19054	    ;;
19055	-g)
19056	    debug="-g"
19057	    shift
19058	    ;;
19059	-mno-cygwin)
19060	    shift
19061	    ;;
19062	-m*)
19063	    arch="$arch $1"
19064	    shift
19065	    ;;
19066	-O2)
19067	    optimize="-O"
19068	    shift
19069	    ;;
19070	-fomit-frame-pointer)
19071	    shift
19072	    ;;
19073	-O*|-f*)
19074	    optimize="$optimize $1"
19075	    shift
19076	    ;;
19077	*)
19078	    CFLAGS="$CFLAGS $1"
19079	    shift
19080	    ;;
19081    esac
19082done
19083
19084if test "$GCC" = yes
19085then
19086    if test -z "$arch"
19087    then
19088	case "$host" in
19089	    i386-*)           ;;
19090	    i?86-*)           arch="-march=i486" ;;
19091	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
19092	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
19093	    powerpc-*)        ;;
19094	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
19095	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
19096	esac
19097    fi
19098
19099    if $CC -v 2>&1 | grep clang > /dev/null; then
19100	CLANG=yes
19101    else
19102	CLANG=no
19103    fi
19104
19105    case "$optimize" in
19106	-O|"-O "*)
19107	    optimize="-O"
19108	    optimize="$optimize"
19109	    test $CLANG = no && optimize="$optimize -fforce-addr"
19110	    : #x optimize="$optimize -finline-functions"
19111	    : #- optimize="$optimize -fstrength-reduce"
19112	    test $CLANG = no && optimize="$optimize -fthread-jumps"
19113	    test $CLANG = no && optimize="$optimize -fcse-follow-jumps"
19114	    test $CLANG = no && optimize="$optimize -fcse-skip-blocks"
19115	    : #x optimize="$optimize -frerun-cse-after-loop"
19116	    : #x optimize="$optimize -frerun-loop-opt"
19117	    : #x optimize="$optimize -fgcse"
19118	    optimize="$optimize -fexpensive-optimizations"
19119	    test $CLANG = no && optimize="$optimize -fregmove"
19120	    : #* optimize="$optimize -fdelayed-branch"
19121	    : #x optimize="$optimize -fschedule-insns"
19122	    test $CLANG = no && optimize="$optimize -fschedule-insns2"
19123	    : #? optimize="$optimize -ffunction-sections"
19124	    : #? optimize="$optimize -fcaller-saves"
19125	    : #> optimize="$optimize -funroll-loops"
19126	    : #> optimize="$optimize -funroll-all-loops"
19127	    : #x optimize="$optimize -fmove-all-movables"
19128	    : #x optimize="$optimize -freduce-all-givs"
19129	    : #? optimize="$optimize -fstrict-aliasing"
19130	    : #* optimize="$optimize -fstructure-noalias"
19131
19132	    case "$host" in
19133		arm*-*)
19134		    optimize="$optimize -fstrength-reduce"
19135		    ;;
19136		mips*-*)
19137		    optimize="$optimize -fstrength-reduce"
19138		    optimize="$optimize -finline-functions"
19139		    ;;
19140		i?86-*)
19141		    optimize="$optimize -fstrength-reduce"
19142		    ;;
19143		powerpc-apple-*)
19144		    # this triggers an internal compiler error with gcc2
19145		    : #optimize="$optimize -fstrength-reduce"
19146
19147		    # this is really only beneficial with gcc3
19148		    : #optimize="$optimize -finline-functions"
19149		    ;;
19150		*)
19151		    # this sometimes provokes bugs in gcc 2.95.2
19152		    : #optimize="$optimize -fstrength-reduce"
19153		    ;;
19154	    esac
19155	    ;;
19156    esac
19157fi
19158
19159case "$host" in
19160    mips*-agenda-*)
19161
19162cat >>confdefs.h <<\_ACEOF
19163#define HAVE_MADD16_ASM 1
19164_ACEOF
19165
19166	;;
19167    mips*-luxsonor-*)
19168
19169cat >>confdefs.h <<\_ACEOF
19170#define HAVE_MADD_ASM 1
19171_ACEOF
19172
19173	;;
19174esac
19175
19176
19177echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19178echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19179if test "${ac_cv_header_stdc+set}" = set; then
19180  echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182  cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h.  */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h.  */
19188#include <stdlib.h>
19189#include <stdarg.h>
19190#include <string.h>
19191#include <float.h>
19192
19193int
19194main ()
19195{
19196
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203  (eval $ac_compile) 2>conftest.er1
19204  ac_status=$?
19205  grep -v '^ *+' conftest.er1 >conftest.err
19206  rm -f conftest.er1
19207  cat conftest.err >&5
19208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209  (exit $ac_status); } &&
19210	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212  (eval $ac_try) 2>&5
19213  ac_status=$?
19214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215  (exit $ac_status); }; } &&
19216	 { ac_try='test -s conftest.$ac_objext'
19217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218  (eval $ac_try) 2>&5
19219  ac_status=$?
19220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221  (exit $ac_status); }; }; then
19222  ac_cv_header_stdc=yes
19223else
19224  echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227ac_cv_header_stdc=no
19228fi
19229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230
19231if test $ac_cv_header_stdc = yes; then
19232  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19233  cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h.  */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h.  */
19239#include <string.h>
19240
19241_ACEOF
19242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19243  $EGREP "memchr" >/dev/null 2>&1; then
19244  :
19245else
19246  ac_cv_header_stdc=no
19247fi
19248rm -f conftest*
19249
19250fi
19251
19252if test $ac_cv_header_stdc = yes; then
19253  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19254  cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h.  */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h.  */
19260#include <stdlib.h>
19261
19262_ACEOF
19263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19264  $EGREP "free" >/dev/null 2>&1; then
19265  :
19266else
19267  ac_cv_header_stdc=no
19268fi
19269rm -f conftest*
19270
19271fi
19272
19273if test $ac_cv_header_stdc = yes; then
19274  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19275  if test "$cross_compiling" = yes; then
19276  :
19277else
19278  cat >conftest.$ac_ext <<_ACEOF
19279/* confdefs.h.  */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h.  */
19284#include <ctype.h>
19285#if ((' ' & 0x0FF) == 0x020)
19286# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19287# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19288#else
19289# define ISLOWER(c) \
19290		   (('a' <= (c) && (c) <= 'i') \
19291		     || ('j' <= (c) && (c) <= 'r') \
19292		     || ('s' <= (c) && (c) <= 'z'))
19293# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19294#endif
19295
19296#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19297int
19298main ()
19299{
19300  int i;
19301  for (i = 0; i < 256; i++)
19302    if (XOR (islower (i), ISLOWER (i))
19303	|| toupper (i) != TOUPPER (i))
19304      exit(2);
19305  exit (0);
19306}
19307_ACEOF
19308rm -f conftest$ac_exeext
19309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19310  (eval $ac_link) 2>&5
19311  ac_status=$?
19312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315  (eval $ac_try) 2>&5
19316  ac_status=$?
19317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318  (exit $ac_status); }; }; then
19319  :
19320else
19321  echo "$as_me: program exited with status $ac_status" >&5
19322echo "$as_me: failed program was:" >&5
19323sed 's/^/| /' conftest.$ac_ext >&5
19324
19325( exit $ac_status )
19326ac_cv_header_stdc=no
19327fi
19328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19329fi
19330fi
19331fi
19332echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19333echo "${ECHO_T}$ac_cv_header_stdc" >&6
19334if test $ac_cv_header_stdc = yes; then
19335
19336cat >>confdefs.h <<\_ACEOF
19337#define STDC_HEADERS 1
19338_ACEOF
19339
19340fi
19341
19342echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19343echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19344if test "${ac_cv_header_sys_wait_h+set}" = set; then
19345  echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347  cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h.  */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h.  */
19353#include <sys/types.h>
19354#include <sys/wait.h>
19355#ifndef WEXITSTATUS
19356# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19357#endif
19358#ifndef WIFEXITED
19359# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19360#endif
19361
19362int
19363main ()
19364{
19365  int s;
19366  wait (&s);
19367  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19368  ;
19369  return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374  (eval $ac_compile) 2>conftest.er1
19375  ac_status=$?
19376  grep -v '^ *+' conftest.er1 >conftest.err
19377  rm -f conftest.er1
19378  cat conftest.err >&5
19379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380  (exit $ac_status); } &&
19381	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383  (eval $ac_try) 2>&5
19384  ac_status=$?
19385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386  (exit $ac_status); }; } &&
19387	 { ac_try='test -s conftest.$ac_objext'
19388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389  (eval $ac_try) 2>&5
19390  ac_status=$?
19391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392  (exit $ac_status); }; }; then
19393  ac_cv_header_sys_wait_h=yes
19394else
19395  echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398ac_cv_header_sys_wait_h=no
19399fi
19400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401fi
19402echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19403echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19404if test $ac_cv_header_sys_wait_h = yes; then
19405
19406cat >>confdefs.h <<\_ACEOF
19407#define HAVE_SYS_WAIT_H 1
19408_ACEOF
19409
19410fi
19411
19412
19413
19414
19415
19416
19417
19418for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
19419do
19420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19421if eval "test \"\${$as_ac_Header+set}\" = set"; then
19422  echo "$as_me:$LINENO: checking for $ac_header" >&5
19423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19424if eval "test \"\${$as_ac_Header+set}\" = set"; then
19425  echo $ECHO_N "(cached) $ECHO_C" >&6
19426fi
19427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19429else
19430  # Is the header compilable?
19431echo "$as_me:$LINENO: checking $ac_header usability" >&5
19432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19433cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h.  */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h.  */
19439$ac_includes_default
19440#include <$ac_header>
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444  (eval $ac_compile) 2>conftest.er1
19445  ac_status=$?
19446  grep -v '^ *+' conftest.er1 >conftest.err
19447  rm -f conftest.er1
19448  cat conftest.err >&5
19449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); } &&
19451	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453  (eval $ac_try) 2>&5
19454  ac_status=$?
19455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456  (exit $ac_status); }; } &&
19457	 { ac_try='test -s conftest.$ac_objext'
19458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459  (eval $ac_try) 2>&5
19460  ac_status=$?
19461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462  (exit $ac_status); }; }; then
19463  ac_header_compiler=yes
19464else
19465  echo "$as_me: failed program was:" >&5
19466sed 's/^/| /' conftest.$ac_ext >&5
19467
19468ac_header_compiler=no
19469fi
19470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19472echo "${ECHO_T}$ac_header_compiler" >&6
19473
19474# Is the header present?
19475echo "$as_me:$LINENO: checking $ac_header presence" >&5
19476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19477cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h.  */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h.  */
19483#include <$ac_header>
19484_ACEOF
19485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19487  ac_status=$?
19488  grep -v '^ *+' conftest.er1 >conftest.err
19489  rm -f conftest.er1
19490  cat conftest.err >&5
19491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492  (exit $ac_status); } >/dev/null; then
19493  if test -s conftest.err; then
19494    ac_cpp_err=$ac_c_preproc_warn_flag
19495    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19496  else
19497    ac_cpp_err=
19498  fi
19499else
19500  ac_cpp_err=yes
19501fi
19502if test -z "$ac_cpp_err"; then
19503  ac_header_preproc=yes
19504else
19505  echo "$as_me: failed program was:" >&5
19506sed 's/^/| /' conftest.$ac_ext >&5
19507
19508  ac_header_preproc=no
19509fi
19510rm -f conftest.err conftest.$ac_ext
19511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19512echo "${ECHO_T}$ac_header_preproc" >&6
19513
19514# So?  What about this header?
19515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19516  yes:no: )
19517    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19521    ac_header_preproc=yes
19522    ;;
19523  no:yes:* )
19524    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19526    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19527echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19528    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19530    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19531echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19534    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19536    (
19537      cat <<\_ASBOX
19538## ----------------------------------- ##
19539## Report this to support@underbit.com ##
19540## ----------------------------------- ##
19541_ASBOX
19542    ) |
19543      sed "s/^/$as_me: WARNING:     /" >&2
19544    ;;
19545esac
19546echo "$as_me:$LINENO: checking for $ac_header" >&5
19547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19548if eval "test \"\${$as_ac_Header+set}\" = set"; then
19549  echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551  eval "$as_ac_Header=\$ac_header_preproc"
19552fi
19553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19555
19556fi
19557if test `eval echo '${'$as_ac_Header'}'` = yes; then
19558  cat >>confdefs.h <<_ACEOF
19559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19560_ACEOF
19561
19562fi
19563
19564done
19565
19566
19567
19568echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19569echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19570if test "${ac_cv_c_const+set}" = set; then
19571  echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573  cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h.  */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h.  */
19579
19580int
19581main ()
19582{
19583/* FIXME: Include the comments suggested by Paul. */
19584#ifndef __cplusplus
19585  /* Ultrix mips cc rejects this.  */
19586  typedef int charset[2];
19587  const charset x;
19588  /* SunOS 4.1.1 cc rejects this.  */
19589  char const *const *ccp;
19590  char **p;
19591  /* NEC SVR4.0.2 mips cc rejects this.  */
19592  struct point {int x, y;};
19593  static struct point const zero = {0,0};
19594  /* AIX XL C 1.02.0.0 rejects this.
19595     It does not let you subtract one const X* pointer from another in
19596     an arm of an if-expression whose if-part is not a constant
19597     expression */
19598  const char *g = "string";
19599  ccp = &g + (g ? g-g : 0);
19600  /* HPUX 7.0 cc rejects these. */
19601  ++ccp;
19602  p = (char**) ccp;
19603  ccp = (char const *const *) p;
19604  { /* SCO 3.2v4 cc rejects this.  */
19605    char *t;
19606    char const *s = 0 ? (char *) 0 : (char const *) 0;
19607
19608    *t++ = 0;
19609  }
19610  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19611    int x[] = {25, 17};
19612    const int *foo = &x[0];
19613    ++foo;
19614  }
19615  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19616    typedef const int *iptr;
19617    iptr p = 0;
19618    ++p;
19619  }
19620  { /* AIX XL C 1.02.0.0 rejects this saying
19621       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19622    struct s { int j; const int *ap[3]; };
19623    struct s *b; b->j = 5;
19624  }
19625  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19626    const int foo = 10;
19627  }
19628#endif
19629
19630  ;
19631  return 0;
19632}
19633_ACEOF
19634rm -f conftest.$ac_objext
19635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636  (eval $ac_compile) 2>conftest.er1
19637  ac_status=$?
19638  grep -v '^ *+' conftest.er1 >conftest.err
19639  rm -f conftest.er1
19640  cat conftest.err >&5
19641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642  (exit $ac_status); } &&
19643	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645  (eval $ac_try) 2>&5
19646  ac_status=$?
19647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648  (exit $ac_status); }; } &&
19649	 { ac_try='test -s conftest.$ac_objext'
19650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651  (eval $ac_try) 2>&5
19652  ac_status=$?
19653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654  (exit $ac_status); }; }; then
19655  ac_cv_c_const=yes
19656else
19657  echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660ac_cv_c_const=no
19661fi
19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663fi
19664echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19665echo "${ECHO_T}$ac_cv_c_const" >&6
19666if test $ac_cv_c_const = no; then
19667
19668cat >>confdefs.h <<\_ACEOF
19669#define const
19670_ACEOF
19671
19672fi
19673
19674echo "$as_me:$LINENO: checking for inline" >&5
19675echo $ECHO_N "checking for inline... $ECHO_C" >&6
19676if test "${ac_cv_c_inline+set}" = set; then
19677  echo $ECHO_N "(cached) $ECHO_C" >&6
19678else
19679  ac_cv_c_inline=no
19680for ac_kw in inline __inline__ __inline; do
19681  cat >conftest.$ac_ext <<_ACEOF
19682/* confdefs.h.  */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h.  */
19687#ifndef __cplusplus
19688typedef int foo_t;
19689static $ac_kw foo_t static_foo () {return 0; }
19690$ac_kw foo_t foo () {return 0; }
19691#endif
19692
19693_ACEOF
19694rm -f conftest.$ac_objext
19695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696  (eval $ac_compile) 2>conftest.er1
19697  ac_status=$?
19698  grep -v '^ *+' conftest.er1 >conftest.err
19699  rm -f conftest.er1
19700  cat conftest.err >&5
19701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702  (exit $ac_status); } &&
19703	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705  (eval $ac_try) 2>&5
19706  ac_status=$?
19707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708  (exit $ac_status); }; } &&
19709	 { ac_try='test -s conftest.$ac_objext'
19710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711  (eval $ac_try) 2>&5
19712  ac_status=$?
19713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714  (exit $ac_status); }; }; then
19715  ac_cv_c_inline=$ac_kw; break
19716else
19717  echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720fi
19721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19722done
19723
19724fi
19725echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19726echo "${ECHO_T}$ac_cv_c_inline" >&6
19727
19728
19729case $ac_cv_c_inline in
19730  inline | yes) ;;
19731  *)
19732    case $ac_cv_c_inline in
19733      no) ac_val=;;
19734      *) ac_val=$ac_cv_c_inline;;
19735    esac
19736    cat >>confdefs.h <<_ACEOF
19737#ifndef __cplusplus
19738#define inline $ac_val
19739#endif
19740_ACEOF
19741    ;;
19742esac
19743
19744echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19745echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19746if test "${ac_cv_c_bigendian+set}" = set; then
19747  echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749  # See if sys/param.h defines the BYTE_ORDER macro.
19750cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h.  */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h.  */
19756#include <sys/types.h>
19757#include <sys/param.h>
19758
19759int
19760main ()
19761{
19762#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19763 bogus endian macros
19764#endif
19765
19766  ;
19767  return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772  (eval $ac_compile) 2>conftest.er1
19773  ac_status=$?
19774  grep -v '^ *+' conftest.er1 >conftest.err
19775  rm -f conftest.er1
19776  cat conftest.err >&5
19777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778  (exit $ac_status); } &&
19779	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781  (eval $ac_try) 2>&5
19782  ac_status=$?
19783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784  (exit $ac_status); }; } &&
19785	 { ac_try='test -s conftest.$ac_objext'
19786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787  (eval $ac_try) 2>&5
19788  ac_status=$?
19789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790  (exit $ac_status); }; }; then
19791  # It does; now see whether it defined to BIG_ENDIAN or not.
19792cat >conftest.$ac_ext <<_ACEOF
19793/* confdefs.h.  */
19794_ACEOF
19795cat confdefs.h >>conftest.$ac_ext
19796cat >>conftest.$ac_ext <<_ACEOF
19797/* end confdefs.h.  */
19798#include <sys/types.h>
19799#include <sys/param.h>
19800
19801int
19802main ()
19803{
19804#if BYTE_ORDER != BIG_ENDIAN
19805 not big endian
19806#endif
19807
19808  ;
19809  return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814  (eval $ac_compile) 2>conftest.er1
19815  ac_status=$?
19816  grep -v '^ *+' conftest.er1 >conftest.err
19817  rm -f conftest.er1
19818  cat conftest.err >&5
19819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820  (exit $ac_status); } &&
19821	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823  (eval $ac_try) 2>&5
19824  ac_status=$?
19825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826  (exit $ac_status); }; } &&
19827	 { ac_try='test -s conftest.$ac_objext'
19828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829  (eval $ac_try) 2>&5
19830  ac_status=$?
19831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832  (exit $ac_status); }; }; then
19833  ac_cv_c_bigendian=yes
19834else
19835  echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838ac_cv_c_bigendian=no
19839fi
19840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19841else
19842  echo "$as_me: failed program was:" >&5
19843sed 's/^/| /' conftest.$ac_ext >&5
19844
19845# It does not; compile a test program.
19846if test "$cross_compiling" = yes; then
19847  # try to guess the endianness by grepping values into an object file
19848  ac_cv_c_bigendian=unknown
19849  cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h.  */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h.  */
19855short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19856short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19857void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19858short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19859short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19860void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19861int
19862main ()
19863{
19864 _ascii (); _ebcdic ();
19865  ;
19866  return 0;
19867}
19868_ACEOF
19869rm -f conftest.$ac_objext
19870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871  (eval $ac_compile) 2>conftest.er1
19872  ac_status=$?
19873  grep -v '^ *+' conftest.er1 >conftest.err
19874  rm -f conftest.er1
19875  cat conftest.err >&5
19876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877  (exit $ac_status); } &&
19878	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880  (eval $ac_try) 2>&5
19881  ac_status=$?
19882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883  (exit $ac_status); }; } &&
19884	 { ac_try='test -s conftest.$ac_objext'
19885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886  (eval $ac_try) 2>&5
19887  ac_status=$?
19888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889  (exit $ac_status); }; }; then
19890  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19891  ac_cv_c_bigendian=yes
19892fi
19893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19894  if test "$ac_cv_c_bigendian" = unknown; then
19895    ac_cv_c_bigendian=no
19896  else
19897    # finding both strings is unlikely to happen, but who knows?
19898    ac_cv_c_bigendian=unknown
19899  fi
19900fi
19901else
19902  echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905fi
19906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19907else
19908  cat >conftest.$ac_ext <<_ACEOF
19909/* confdefs.h.  */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h.  */
19914int
19915main ()
19916{
19917  /* Are we little or big endian?  From Harbison&Steele.  */
19918  union
19919  {
19920    long l;
19921    char c[sizeof (long)];
19922  } u;
19923  u.l = 1;
19924  exit (u.c[sizeof (long) - 1] == 1);
19925}
19926_ACEOF
19927rm -f conftest$ac_exeext
19928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929  (eval $ac_link) 2>&5
19930  ac_status=$?
19931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934  (eval $ac_try) 2>&5
19935  ac_status=$?
19936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937  (exit $ac_status); }; }; then
19938  ac_cv_c_bigendian=no
19939else
19940  echo "$as_me: program exited with status $ac_status" >&5
19941echo "$as_me: failed program was:" >&5
19942sed 's/^/| /' conftest.$ac_ext >&5
19943
19944( exit $ac_status )
19945ac_cv_c_bigendian=yes
19946fi
19947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19948fi
19949fi
19950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951fi
19952echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19953echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19954case $ac_cv_c_bigendian in
19955  yes)
19956
19957cat >>confdefs.h <<\_ACEOF
19958#define WORDS_BIGENDIAN 1
19959_ACEOF
19960 ;;
19961  no)
19962     ;;
19963  *)
19964    { { echo "$as_me:$LINENO: error: unknown endianness
19965presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19966echo "$as_me: error: unknown endianness
19967presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19968   { (exit 1); exit 1; }; } ;;
19969esac
19970
19971echo "$as_me:$LINENO: checking for pid_t" >&5
19972echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19973if test "${ac_cv_type_pid_t+set}" = set; then
19974  echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
19976  cat >conftest.$ac_ext <<_ACEOF
19977/* confdefs.h.  */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h.  */
19982$ac_includes_default
19983int
19984main ()
19985{
19986if ((pid_t *) 0)
19987  return 0;
19988if (sizeof (pid_t))
19989  return 0;
19990  ;
19991  return 0;
19992}
19993_ACEOF
19994rm -f conftest.$ac_objext
19995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996  (eval $ac_compile) 2>conftest.er1
19997  ac_status=$?
19998  grep -v '^ *+' conftest.er1 >conftest.err
19999  rm -f conftest.er1
20000  cat conftest.err >&5
20001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002  (exit $ac_status); } &&
20003	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005  (eval $ac_try) 2>&5
20006  ac_status=$?
20007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008  (exit $ac_status); }; } &&
20009	 { ac_try='test -s conftest.$ac_objext'
20010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011  (eval $ac_try) 2>&5
20012  ac_status=$?
20013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014  (exit $ac_status); }; }; then
20015  ac_cv_type_pid_t=yes
20016else
20017  echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020ac_cv_type_pid_t=no
20021fi
20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023fi
20024echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20025echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20026if test $ac_cv_type_pid_t = yes; then
20027  :
20028else
20029
20030cat >>confdefs.h <<_ACEOF
20031#define pid_t int
20032_ACEOF
20033
20034fi
20035
20036
20037echo "$as_me:$LINENO: checking for int" >&5
20038echo $ECHO_N "checking for int... $ECHO_C" >&6
20039if test "${ac_cv_type_int+set}" = set; then
20040  echo $ECHO_N "(cached) $ECHO_C" >&6
20041else
20042  cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h.  */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h.  */
20048$ac_includes_default
20049int
20050main ()
20051{
20052if ((int *) 0)
20053  return 0;
20054if (sizeof (int))
20055  return 0;
20056  ;
20057  return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext
20061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062  (eval $ac_compile) 2>conftest.er1
20063  ac_status=$?
20064  grep -v '^ *+' conftest.er1 >conftest.err
20065  rm -f conftest.er1
20066  cat conftest.err >&5
20067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068  (exit $ac_status); } &&
20069	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071  (eval $ac_try) 2>&5
20072  ac_status=$?
20073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074  (exit $ac_status); }; } &&
20075	 { ac_try='test -s conftest.$ac_objext'
20076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077  (eval $ac_try) 2>&5
20078  ac_status=$?
20079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080  (exit $ac_status); }; }; then
20081  ac_cv_type_int=yes
20082else
20083  echo "$as_me: failed program was:" >&5
20084sed 's/^/| /' conftest.$ac_ext >&5
20085
20086ac_cv_type_int=no
20087fi
20088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20089fi
20090echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20091echo "${ECHO_T}$ac_cv_type_int" >&6
20092
20093echo "$as_me:$LINENO: checking size of int" >&5
20094echo $ECHO_N "checking size of int... $ECHO_C" >&6
20095if test "${ac_cv_sizeof_int+set}" = set; then
20096  echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098  if test "$ac_cv_type_int" = yes; then
20099  # The cast to unsigned long works around a bug in the HP C Compiler
20100  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20101  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20102  # This bug is HP SR number 8606223364.
20103  if test "$cross_compiling" = yes; then
20104  # Depending upon the size, compute the lo and hi bounds.
20105cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h.  */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h.  */
20111$ac_includes_default
20112int
20113main ()
20114{
20115static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20116test_array [0] = 0
20117
20118  ;
20119  return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext
20123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20124  (eval $ac_compile) 2>conftest.er1
20125  ac_status=$?
20126  grep -v '^ *+' conftest.er1 >conftest.err
20127  rm -f conftest.er1
20128  cat conftest.err >&5
20129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130  (exit $ac_status); } &&
20131	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133  (eval $ac_try) 2>&5
20134  ac_status=$?
20135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136  (exit $ac_status); }; } &&
20137	 { ac_try='test -s conftest.$ac_objext'
20138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139  (eval $ac_try) 2>&5
20140  ac_status=$?
20141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142  (exit $ac_status); }; }; then
20143  ac_lo=0 ac_mid=0
20144  while :; do
20145    cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h.  */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h.  */
20151$ac_includes_default
20152int
20153main ()
20154{
20155static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20156test_array [0] = 0
20157
20158  ;
20159  return 0;
20160}
20161_ACEOF
20162rm -f conftest.$ac_objext
20163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164  (eval $ac_compile) 2>conftest.er1
20165  ac_status=$?
20166  grep -v '^ *+' conftest.er1 >conftest.err
20167  rm -f conftest.er1
20168  cat conftest.err >&5
20169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170  (exit $ac_status); } &&
20171	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173  (eval $ac_try) 2>&5
20174  ac_status=$?
20175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176  (exit $ac_status); }; } &&
20177	 { ac_try='test -s conftest.$ac_objext'
20178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179  (eval $ac_try) 2>&5
20180  ac_status=$?
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); }; }; then
20183  ac_hi=$ac_mid; break
20184else
20185  echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188ac_lo=`expr $ac_mid + 1`
20189		    if test $ac_lo -le $ac_mid; then
20190		      ac_lo= ac_hi=
20191		      break
20192		    fi
20193		    ac_mid=`expr 2 '*' $ac_mid + 1`
20194fi
20195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196  done
20197else
20198  echo "$as_me: failed program was:" >&5
20199sed 's/^/| /' conftest.$ac_ext >&5
20200
20201cat >conftest.$ac_ext <<_ACEOF
20202/* confdefs.h.  */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h.  */
20207$ac_includes_default
20208int
20209main ()
20210{
20211static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20212test_array [0] = 0
20213
20214  ;
20215  return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220  (eval $ac_compile) 2>conftest.er1
20221  ac_status=$?
20222  grep -v '^ *+' conftest.er1 >conftest.err
20223  rm -f conftest.er1
20224  cat conftest.err >&5
20225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226  (exit $ac_status); } &&
20227	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229  (eval $ac_try) 2>&5
20230  ac_status=$?
20231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232  (exit $ac_status); }; } &&
20233	 { ac_try='test -s conftest.$ac_objext'
20234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235  (eval $ac_try) 2>&5
20236  ac_status=$?
20237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238  (exit $ac_status); }; }; then
20239  ac_hi=-1 ac_mid=-1
20240  while :; do
20241    cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h.  */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h.  */
20247$ac_includes_default
20248int
20249main ()
20250{
20251static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20252test_array [0] = 0
20253
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext
20259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260  (eval $ac_compile) 2>conftest.er1
20261  ac_status=$?
20262  grep -v '^ *+' conftest.er1 >conftest.err
20263  rm -f conftest.er1
20264  cat conftest.err >&5
20265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266  (exit $ac_status); } &&
20267	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269  (eval $ac_try) 2>&5
20270  ac_status=$?
20271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272  (exit $ac_status); }; } &&
20273	 { ac_try='test -s conftest.$ac_objext'
20274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275  (eval $ac_try) 2>&5
20276  ac_status=$?
20277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278  (exit $ac_status); }; }; then
20279  ac_lo=$ac_mid; break
20280else
20281  echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284ac_hi=`expr '(' $ac_mid ')' - 1`
20285		       if test $ac_mid -le $ac_hi; then
20286			 ac_lo= ac_hi=
20287			 break
20288		       fi
20289		       ac_mid=`expr 2 '*' $ac_mid`
20290fi
20291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292  done
20293else
20294  echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
20296
20297ac_lo= ac_hi=
20298fi
20299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20300fi
20301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302# Binary search between lo and hi bounds.
20303while test "x$ac_lo" != "x$ac_hi"; do
20304  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20305  cat >conftest.$ac_ext <<_ACEOF
20306/* confdefs.h.  */
20307_ACEOF
20308cat confdefs.h >>conftest.$ac_ext
20309cat >>conftest.$ac_ext <<_ACEOF
20310/* end confdefs.h.  */
20311$ac_includes_default
20312int
20313main ()
20314{
20315static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20316test_array [0] = 0
20317
20318  ;
20319  return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324  (eval $ac_compile) 2>conftest.er1
20325  ac_status=$?
20326  grep -v '^ *+' conftest.er1 >conftest.err
20327  rm -f conftest.er1
20328  cat conftest.err >&5
20329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330  (exit $ac_status); } &&
20331	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333  (eval $ac_try) 2>&5
20334  ac_status=$?
20335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336  (exit $ac_status); }; } &&
20337	 { ac_try='test -s conftest.$ac_objext'
20338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339  (eval $ac_try) 2>&5
20340  ac_status=$?
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); }; }; then
20343  ac_hi=$ac_mid
20344else
20345  echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348ac_lo=`expr '(' $ac_mid ')' + 1`
20349fi
20350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351done
20352case $ac_lo in
20353?*) ac_cv_sizeof_int=$ac_lo;;
20354'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20355See \`config.log' for more details." >&5
20356echo "$as_me: error: cannot compute sizeof (int), 77
20357See \`config.log' for more details." >&2;}
20358   { (exit 1); exit 1; }; } ;;
20359esac
20360else
20361  if test "$cross_compiling" = yes; then
20362  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20363echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20364   { (exit 1); exit 1; }; }
20365else
20366  cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h.  */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h.  */
20372$ac_includes_default
20373long longval () { return (long) (sizeof (int)); }
20374unsigned long ulongval () { return (long) (sizeof (int)); }
20375#include <stdio.h>
20376#include <stdlib.h>
20377int
20378main ()
20379{
20380
20381  FILE *f = fopen ("conftest.val", "w");
20382  if (! f)
20383    exit (1);
20384  if (((long) (sizeof (int))) < 0)
20385    {
20386      long i = longval ();
20387      if (i != ((long) (sizeof (int))))
20388	exit (1);
20389      fprintf (f, "%ld\n", i);
20390    }
20391  else
20392    {
20393      unsigned long i = ulongval ();
20394      if (i != ((long) (sizeof (int))))
20395	exit (1);
20396      fprintf (f, "%lu\n", i);
20397    }
20398  exit (ferror (f) || fclose (f) != 0);
20399
20400  ;
20401  return 0;
20402}
20403_ACEOF
20404rm -f conftest$ac_exeext
20405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20406  (eval $ac_link) 2>&5
20407  ac_status=$?
20408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411  (eval $ac_try) 2>&5
20412  ac_status=$?
20413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414  (exit $ac_status); }; }; then
20415  ac_cv_sizeof_int=`cat conftest.val`
20416else
20417  echo "$as_me: program exited with status $ac_status" >&5
20418echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421( exit $ac_status )
20422{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20423See \`config.log' for more details." >&5
20424echo "$as_me: error: cannot compute sizeof (int), 77
20425See \`config.log' for more details." >&2;}
20426   { (exit 1); exit 1; }; }
20427fi
20428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20429fi
20430fi
20431rm -f conftest.val
20432else
20433  ac_cv_sizeof_int=0
20434fi
20435fi
20436echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20437echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20438cat >>confdefs.h <<_ACEOF
20439#define SIZEOF_INT $ac_cv_sizeof_int
20440_ACEOF
20441
20442
20443echo "$as_me:$LINENO: checking for long" >&5
20444echo $ECHO_N "checking for long... $ECHO_C" >&6
20445if test "${ac_cv_type_long+set}" = set; then
20446  echo $ECHO_N "(cached) $ECHO_C" >&6
20447else
20448  cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h.  */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h.  */
20454$ac_includes_default
20455int
20456main ()
20457{
20458if ((long *) 0)
20459  return 0;
20460if (sizeof (long))
20461  return 0;
20462  ;
20463  return 0;
20464}
20465_ACEOF
20466rm -f conftest.$ac_objext
20467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468  (eval $ac_compile) 2>conftest.er1
20469  ac_status=$?
20470  grep -v '^ *+' conftest.er1 >conftest.err
20471  rm -f conftest.er1
20472  cat conftest.err >&5
20473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474  (exit $ac_status); } &&
20475	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477  (eval $ac_try) 2>&5
20478  ac_status=$?
20479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480  (exit $ac_status); }; } &&
20481	 { ac_try='test -s conftest.$ac_objext'
20482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483  (eval $ac_try) 2>&5
20484  ac_status=$?
20485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486  (exit $ac_status); }; }; then
20487  ac_cv_type_long=yes
20488else
20489  echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492ac_cv_type_long=no
20493fi
20494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20495fi
20496echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20497echo "${ECHO_T}$ac_cv_type_long" >&6
20498
20499echo "$as_me:$LINENO: checking size of long" >&5
20500echo $ECHO_N "checking size of long... $ECHO_C" >&6
20501if test "${ac_cv_sizeof_long+set}" = set; then
20502  echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504  if test "$ac_cv_type_long" = yes; then
20505  # The cast to unsigned long works around a bug in the HP C Compiler
20506  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20507  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20508  # This bug is HP SR number 8606223364.
20509  if test "$cross_compiling" = yes; then
20510  # Depending upon the size, compute the lo and hi bounds.
20511cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h.  */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h.  */
20517$ac_includes_default
20518int
20519main ()
20520{
20521static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20522test_array [0] = 0
20523
20524  ;
20525  return 0;
20526}
20527_ACEOF
20528rm -f conftest.$ac_objext
20529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20530  (eval $ac_compile) 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } &&
20537	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539  (eval $ac_try) 2>&5
20540  ac_status=$?
20541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542  (exit $ac_status); }; } &&
20543	 { ac_try='test -s conftest.$ac_objext'
20544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545  (eval $ac_try) 2>&5
20546  ac_status=$?
20547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548  (exit $ac_status); }; }; then
20549  ac_lo=0 ac_mid=0
20550  while :; do
20551    cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h.  */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h.  */
20557$ac_includes_default
20558int
20559main ()
20560{
20561static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20562test_array [0] = 0
20563
20564  ;
20565  return 0;
20566}
20567_ACEOF
20568rm -f conftest.$ac_objext
20569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20570  (eval $ac_compile) 2>conftest.er1
20571  ac_status=$?
20572  grep -v '^ *+' conftest.er1 >conftest.err
20573  rm -f conftest.er1
20574  cat conftest.err >&5
20575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576  (exit $ac_status); } &&
20577	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579  (eval $ac_try) 2>&5
20580  ac_status=$?
20581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582  (exit $ac_status); }; } &&
20583	 { ac_try='test -s conftest.$ac_objext'
20584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585  (eval $ac_try) 2>&5
20586  ac_status=$?
20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); }; }; then
20589  ac_hi=$ac_mid; break
20590else
20591  echo "$as_me: failed program was:" >&5
20592sed 's/^/| /' conftest.$ac_ext >&5
20593
20594ac_lo=`expr $ac_mid + 1`
20595		    if test $ac_lo -le $ac_mid; then
20596		      ac_lo= ac_hi=
20597		      break
20598		    fi
20599		    ac_mid=`expr 2 '*' $ac_mid + 1`
20600fi
20601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602  done
20603else
20604  echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h.  */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h.  */
20613$ac_includes_default
20614int
20615main ()
20616{
20617static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20618test_array [0] = 0
20619
20620  ;
20621  return 0;
20622}
20623_ACEOF
20624rm -f conftest.$ac_objext
20625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20626  (eval $ac_compile) 2>conftest.er1
20627  ac_status=$?
20628  grep -v '^ *+' conftest.er1 >conftest.err
20629  rm -f conftest.er1
20630  cat conftest.err >&5
20631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632  (exit $ac_status); } &&
20633	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635  (eval $ac_try) 2>&5
20636  ac_status=$?
20637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638  (exit $ac_status); }; } &&
20639	 { ac_try='test -s conftest.$ac_objext'
20640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641  (eval $ac_try) 2>&5
20642  ac_status=$?
20643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644  (exit $ac_status); }; }; then
20645  ac_hi=-1 ac_mid=-1
20646  while :; do
20647    cat >conftest.$ac_ext <<_ACEOF
20648/* confdefs.h.  */
20649_ACEOF
20650cat confdefs.h >>conftest.$ac_ext
20651cat >>conftest.$ac_ext <<_ACEOF
20652/* end confdefs.h.  */
20653$ac_includes_default
20654int
20655main ()
20656{
20657static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20658test_array [0] = 0
20659
20660  ;
20661  return 0;
20662}
20663_ACEOF
20664rm -f conftest.$ac_objext
20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666  (eval $ac_compile) 2>conftest.er1
20667  ac_status=$?
20668  grep -v '^ *+' conftest.er1 >conftest.err
20669  rm -f conftest.er1
20670  cat conftest.err >&5
20671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672  (exit $ac_status); } &&
20673	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675  (eval $ac_try) 2>&5
20676  ac_status=$?
20677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678  (exit $ac_status); }; } &&
20679	 { ac_try='test -s conftest.$ac_objext'
20680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681  (eval $ac_try) 2>&5
20682  ac_status=$?
20683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684  (exit $ac_status); }; }; then
20685  ac_lo=$ac_mid; break
20686else
20687  echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
20690ac_hi=`expr '(' $ac_mid ')' - 1`
20691		       if test $ac_mid -le $ac_hi; then
20692			 ac_lo= ac_hi=
20693			 break
20694		       fi
20695		       ac_mid=`expr 2 '*' $ac_mid`
20696fi
20697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20698  done
20699else
20700  echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703ac_lo= ac_hi=
20704fi
20705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20706fi
20707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20708# Binary search between lo and hi bounds.
20709while test "x$ac_lo" != "x$ac_hi"; do
20710  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20711  cat >conftest.$ac_ext <<_ACEOF
20712/* confdefs.h.  */
20713_ACEOF
20714cat confdefs.h >>conftest.$ac_ext
20715cat >>conftest.$ac_ext <<_ACEOF
20716/* end confdefs.h.  */
20717$ac_includes_default
20718int
20719main ()
20720{
20721static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20722test_array [0] = 0
20723
20724  ;
20725  return 0;
20726}
20727_ACEOF
20728rm -f conftest.$ac_objext
20729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20730  (eval $ac_compile) 2>conftest.er1
20731  ac_status=$?
20732  grep -v '^ *+' conftest.er1 >conftest.err
20733  rm -f conftest.er1
20734  cat conftest.err >&5
20735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736  (exit $ac_status); } &&
20737	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739  (eval $ac_try) 2>&5
20740  ac_status=$?
20741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742  (exit $ac_status); }; } &&
20743	 { ac_try='test -s conftest.$ac_objext'
20744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745  (eval $ac_try) 2>&5
20746  ac_status=$?
20747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748  (exit $ac_status); }; }; then
20749  ac_hi=$ac_mid
20750else
20751  echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754ac_lo=`expr '(' $ac_mid ')' + 1`
20755fi
20756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20757done
20758case $ac_lo in
20759?*) ac_cv_sizeof_long=$ac_lo;;
20760'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20761See \`config.log' for more details." >&5
20762echo "$as_me: error: cannot compute sizeof (long), 77
20763See \`config.log' for more details." >&2;}
20764   { (exit 1); exit 1; }; } ;;
20765esac
20766else
20767  if test "$cross_compiling" = yes; then
20768  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20769echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20770   { (exit 1); exit 1; }; }
20771else
20772  cat >conftest.$ac_ext <<_ACEOF
20773/* confdefs.h.  */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h.  */
20778$ac_includes_default
20779long longval () { return (long) (sizeof (long)); }
20780unsigned long ulongval () { return (long) (sizeof (long)); }
20781#include <stdio.h>
20782#include <stdlib.h>
20783int
20784main ()
20785{
20786
20787  FILE *f = fopen ("conftest.val", "w");
20788  if (! f)
20789    exit (1);
20790  if (((long) (sizeof (long))) < 0)
20791    {
20792      long i = longval ();
20793      if (i != ((long) (sizeof (long))))
20794	exit (1);
20795      fprintf (f, "%ld\n", i);
20796    }
20797  else
20798    {
20799      unsigned long i = ulongval ();
20800      if (i != ((long) (sizeof (long))))
20801	exit (1);
20802      fprintf (f, "%lu\n", i);
20803    }
20804  exit (ferror (f) || fclose (f) != 0);
20805
20806  ;
20807  return 0;
20808}
20809_ACEOF
20810rm -f conftest$ac_exeext
20811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20812  (eval $ac_link) 2>&5
20813  ac_status=$?
20814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817  (eval $ac_try) 2>&5
20818  ac_status=$?
20819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820  (exit $ac_status); }; }; then
20821  ac_cv_sizeof_long=`cat conftest.val`
20822else
20823  echo "$as_me: program exited with status $ac_status" >&5
20824echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827( exit $ac_status )
20828{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20829See \`config.log' for more details." >&5
20830echo "$as_me: error: cannot compute sizeof (long), 77
20831See \`config.log' for more details." >&2;}
20832   { (exit 1); exit 1; }; }
20833fi
20834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20835fi
20836fi
20837rm -f conftest.val
20838else
20839  ac_cv_sizeof_long=0
20840fi
20841fi
20842echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20843echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20844cat >>confdefs.h <<_ACEOF
20845#define SIZEOF_LONG $ac_cv_sizeof_long
20846_ACEOF
20847
20848
20849echo "$as_me:$LINENO: checking for long long" >&5
20850echo $ECHO_N "checking for long long... $ECHO_C" >&6
20851if test "${ac_cv_type_long_long+set}" = set; then
20852  echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854  cat >conftest.$ac_ext <<_ACEOF
20855/* confdefs.h.  */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h.  */
20860$ac_includes_default
20861int
20862main ()
20863{
20864if ((long long *) 0)
20865  return 0;
20866if (sizeof (long long))
20867  return 0;
20868  ;
20869  return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext
20873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20874  (eval $ac_compile) 2>conftest.er1
20875  ac_status=$?
20876  grep -v '^ *+' conftest.er1 >conftest.err
20877  rm -f conftest.er1
20878  cat conftest.err >&5
20879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880  (exit $ac_status); } &&
20881	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883  (eval $ac_try) 2>&5
20884  ac_status=$?
20885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886  (exit $ac_status); }; } &&
20887	 { ac_try='test -s conftest.$ac_objext'
20888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889  (eval $ac_try) 2>&5
20890  ac_status=$?
20891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892  (exit $ac_status); }; }; then
20893  ac_cv_type_long_long=yes
20894else
20895  echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898ac_cv_type_long_long=no
20899fi
20900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20901fi
20902echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20903echo "${ECHO_T}$ac_cv_type_long_long" >&6
20904
20905echo "$as_me:$LINENO: checking size of long long" >&5
20906echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20907if test "${ac_cv_sizeof_long_long+set}" = set; then
20908  echo $ECHO_N "(cached) $ECHO_C" >&6
20909else
20910  if test "$ac_cv_type_long_long" = yes; then
20911  # The cast to unsigned long works around a bug in the HP C Compiler
20912  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20913  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20914  # This bug is HP SR number 8606223364.
20915  if test "$cross_compiling" = yes; then
20916  # Depending upon the size, compute the lo and hi bounds.
20917cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h.  */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h.  */
20923$ac_includes_default
20924int
20925main ()
20926{
20927static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20928test_array [0] = 0
20929
20930  ;
20931  return 0;
20932}
20933_ACEOF
20934rm -f conftest.$ac_objext
20935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20936  (eval $ac_compile) 2>conftest.er1
20937  ac_status=$?
20938  grep -v '^ *+' conftest.er1 >conftest.err
20939  rm -f conftest.er1
20940  cat conftest.err >&5
20941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942  (exit $ac_status); } &&
20943	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945  (eval $ac_try) 2>&5
20946  ac_status=$?
20947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948  (exit $ac_status); }; } &&
20949	 { ac_try='test -s conftest.$ac_objext'
20950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951  (eval $ac_try) 2>&5
20952  ac_status=$?
20953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954  (exit $ac_status); }; }; then
20955  ac_lo=0 ac_mid=0
20956  while :; do
20957    cat >conftest.$ac_ext <<_ACEOF
20958/* confdefs.h.  */
20959_ACEOF
20960cat confdefs.h >>conftest.$ac_ext
20961cat >>conftest.$ac_ext <<_ACEOF
20962/* end confdefs.h.  */
20963$ac_includes_default
20964int
20965main ()
20966{
20967static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20968test_array [0] = 0
20969
20970  ;
20971  return 0;
20972}
20973_ACEOF
20974rm -f conftest.$ac_objext
20975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976  (eval $ac_compile) 2>conftest.er1
20977  ac_status=$?
20978  grep -v '^ *+' conftest.er1 >conftest.err
20979  rm -f conftest.er1
20980  cat conftest.err >&5
20981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982  (exit $ac_status); } &&
20983	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985  (eval $ac_try) 2>&5
20986  ac_status=$?
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); }; } &&
20989	 { ac_try='test -s conftest.$ac_objext'
20990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991  (eval $ac_try) 2>&5
20992  ac_status=$?
20993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994  (exit $ac_status); }; }; then
20995  ac_hi=$ac_mid; break
20996else
20997  echo "$as_me: failed program was:" >&5
20998sed 's/^/| /' conftest.$ac_ext >&5
20999
21000ac_lo=`expr $ac_mid + 1`
21001		    if test $ac_lo -le $ac_mid; then
21002		      ac_lo= ac_hi=
21003		      break
21004		    fi
21005		    ac_mid=`expr 2 '*' $ac_mid + 1`
21006fi
21007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21008  done
21009else
21010  echo "$as_me: failed program was:" >&5
21011sed 's/^/| /' conftest.$ac_ext >&5
21012
21013cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h.  */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h.  */
21019$ac_includes_default
21020int
21021main ()
21022{
21023static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21024test_array [0] = 0
21025
21026  ;
21027  return 0;
21028}
21029_ACEOF
21030rm -f conftest.$ac_objext
21031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032  (eval $ac_compile) 2>conftest.er1
21033  ac_status=$?
21034  grep -v '^ *+' conftest.er1 >conftest.err
21035  rm -f conftest.er1
21036  cat conftest.err >&5
21037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038  (exit $ac_status); } &&
21039	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041  (eval $ac_try) 2>&5
21042  ac_status=$?
21043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044  (exit $ac_status); }; } &&
21045	 { ac_try='test -s conftest.$ac_objext'
21046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047  (eval $ac_try) 2>&5
21048  ac_status=$?
21049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050  (exit $ac_status); }; }; then
21051  ac_hi=-1 ac_mid=-1
21052  while :; do
21053    cat >conftest.$ac_ext <<_ACEOF
21054/* confdefs.h.  */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h.  */
21059$ac_includes_default
21060int
21061main ()
21062{
21063static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21064test_array [0] = 0
21065
21066  ;
21067  return 0;
21068}
21069_ACEOF
21070rm -f conftest.$ac_objext
21071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072  (eval $ac_compile) 2>conftest.er1
21073  ac_status=$?
21074  grep -v '^ *+' conftest.er1 >conftest.err
21075  rm -f conftest.er1
21076  cat conftest.err >&5
21077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078  (exit $ac_status); } &&
21079	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081  (eval $ac_try) 2>&5
21082  ac_status=$?
21083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084  (exit $ac_status); }; } &&
21085	 { ac_try='test -s conftest.$ac_objext'
21086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087  (eval $ac_try) 2>&5
21088  ac_status=$?
21089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090  (exit $ac_status); }; }; then
21091  ac_lo=$ac_mid; break
21092else
21093  echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096ac_hi=`expr '(' $ac_mid ')' - 1`
21097		       if test $ac_mid -le $ac_hi; then
21098			 ac_lo= ac_hi=
21099			 break
21100		       fi
21101		       ac_mid=`expr 2 '*' $ac_mid`
21102fi
21103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21104  done
21105else
21106  echo "$as_me: failed program was:" >&5
21107sed 's/^/| /' conftest.$ac_ext >&5
21108
21109ac_lo= ac_hi=
21110fi
21111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21112fi
21113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21114# Binary search between lo and hi bounds.
21115while test "x$ac_lo" != "x$ac_hi"; do
21116  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21117  cat >conftest.$ac_ext <<_ACEOF
21118/* confdefs.h.  */
21119_ACEOF
21120cat confdefs.h >>conftest.$ac_ext
21121cat >>conftest.$ac_ext <<_ACEOF
21122/* end confdefs.h.  */
21123$ac_includes_default
21124int
21125main ()
21126{
21127static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21128test_array [0] = 0
21129
21130  ;
21131  return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136  (eval $ac_compile) 2>conftest.er1
21137  ac_status=$?
21138  grep -v '^ *+' conftest.er1 >conftest.err
21139  rm -f conftest.er1
21140  cat conftest.err >&5
21141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142  (exit $ac_status); } &&
21143	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145  (eval $ac_try) 2>&5
21146  ac_status=$?
21147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148  (exit $ac_status); }; } &&
21149	 { ac_try='test -s conftest.$ac_objext'
21150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151  (eval $ac_try) 2>&5
21152  ac_status=$?
21153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154  (exit $ac_status); }; }; then
21155  ac_hi=$ac_mid
21156else
21157  echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_lo=`expr '(' $ac_mid ')' + 1`
21161fi
21162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21163done
21164case $ac_lo in
21165?*) ac_cv_sizeof_long_long=$ac_lo;;
21166'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21167See \`config.log' for more details." >&5
21168echo "$as_me: error: cannot compute sizeof (long long), 77
21169See \`config.log' for more details." >&2;}
21170   { (exit 1); exit 1; }; } ;;
21171esac
21172else
21173  if test "$cross_compiling" = yes; then
21174  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21175echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21176   { (exit 1); exit 1; }; }
21177else
21178  cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h.  */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h.  */
21184$ac_includes_default
21185long longval () { return (long) (sizeof (long long)); }
21186unsigned long ulongval () { return (long) (sizeof (long long)); }
21187#include <stdio.h>
21188#include <stdlib.h>
21189int
21190main ()
21191{
21192
21193  FILE *f = fopen ("conftest.val", "w");
21194  if (! f)
21195    exit (1);
21196  if (((long) (sizeof (long long))) < 0)
21197    {
21198      long i = longval ();
21199      if (i != ((long) (sizeof (long long))))
21200	exit (1);
21201      fprintf (f, "%ld\n", i);
21202    }
21203  else
21204    {
21205      unsigned long i = ulongval ();
21206      if (i != ((long) (sizeof (long long))))
21207	exit (1);
21208      fprintf (f, "%lu\n", i);
21209    }
21210  exit (ferror (f) || fclose (f) != 0);
21211
21212  ;
21213  return 0;
21214}
21215_ACEOF
21216rm -f conftest$ac_exeext
21217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21218  (eval $ac_link) 2>&5
21219  ac_status=$?
21220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223  (eval $ac_try) 2>&5
21224  ac_status=$?
21225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226  (exit $ac_status); }; }; then
21227  ac_cv_sizeof_long_long=`cat conftest.val`
21228else
21229  echo "$as_me: program exited with status $ac_status" >&5
21230echo "$as_me: failed program was:" >&5
21231sed 's/^/| /' conftest.$ac_ext >&5
21232
21233( exit $ac_status )
21234{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21235See \`config.log' for more details." >&5
21236echo "$as_me: error: cannot compute sizeof (long long), 77
21237See \`config.log' for more details." >&2;}
21238   { (exit 1); exit 1; }; }
21239fi
21240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21241fi
21242fi
21243rm -f conftest.val
21244else
21245  ac_cv_sizeof_long_long=0
21246fi
21247fi
21248echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21249echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21250cat >>confdefs.h <<_ACEOF
21251#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21252_ACEOF
21253
21254
21255
21256
21257
21258
21259
21260
21261for ac_func in waitpid fcntl pipe fork
21262do
21263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21264echo "$as_me:$LINENO: checking for $ac_func" >&5
21265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21266if eval "test \"\${$as_ac_var+set}\" = set"; then
21267  echo $ECHO_N "(cached) $ECHO_C" >&6
21268else
21269  cat >conftest.$ac_ext <<_ACEOF
21270/* confdefs.h.  */
21271_ACEOF
21272cat confdefs.h >>conftest.$ac_ext
21273cat >>conftest.$ac_ext <<_ACEOF
21274/* end confdefs.h.  */
21275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21276   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21277#define $ac_func innocuous_$ac_func
21278
21279/* System header to define __stub macros and hopefully few prototypes,
21280    which can conflict with char $ac_func (); below.
21281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21282    <limits.h> exists even on freestanding compilers.  */
21283
21284#ifdef __STDC__
21285# include <limits.h>
21286#else
21287# include <assert.h>
21288#endif
21289
21290#undef $ac_func
21291
21292/* Override any gcc2 internal prototype to avoid an error.  */
21293#ifdef __cplusplus
21294extern "C"
21295{
21296#endif
21297/* We use char because int might match the return type of a gcc2
21298   builtin and then its argument prototype would still apply.  */
21299char $ac_func ();
21300/* The GNU C library defines this for functions which it implements
21301    to always fail with ENOSYS.  Some functions are actually named
21302    something starting with __ and the normal name is an alias.  */
21303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21304choke me
21305#else
21306char (*f) () = $ac_func;
21307#endif
21308#ifdef __cplusplus
21309}
21310#endif
21311
21312int
21313main ()
21314{
21315return f != $ac_func;
21316  ;
21317  return 0;
21318}
21319_ACEOF
21320rm -f conftest.$ac_objext conftest$ac_exeext
21321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21322  (eval $ac_link) 2>conftest.er1
21323  ac_status=$?
21324  grep -v '^ *+' conftest.er1 >conftest.err
21325  rm -f conftest.er1
21326  cat conftest.err >&5
21327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328  (exit $ac_status); } &&
21329	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331  (eval $ac_try) 2>&5
21332  ac_status=$?
21333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334  (exit $ac_status); }; } &&
21335	 { ac_try='test -s conftest$ac_exeext'
21336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337  (eval $ac_try) 2>&5
21338  ac_status=$?
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); }; }; then
21341  eval "$as_ac_var=yes"
21342else
21343  echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346eval "$as_ac_var=no"
21347fi
21348rm -f conftest.err conftest.$ac_objext \
21349      conftest$ac_exeext conftest.$ac_ext
21350fi
21351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21353if test `eval echo '${'$as_ac_var'}'` = yes; then
21354  cat >>confdefs.h <<_ACEOF
21355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21356_ACEOF
21357
21358fi
21359done
21360
21361
21362
21363
21364
21365
21366
21367
21368cat >confcache <<\_ACEOF
21369# This file is a shell script that caches the results of configure
21370# tests run on this system so they can be shared between configure
21371# scripts and configure runs, see configure's option --config-cache.
21372# It is not useful on other systems.  If it contains results you don't
21373# want to keep, you may remove or edit it.
21374#
21375# config.status only pays attention to the cache file if you give it
21376# the --recheck option to rerun configure.
21377#
21378# `ac_cv_env_foo' variables (set or unset) will be overridden when
21379# loading this file, other *unset* `ac_cv_foo' will be assigned the
21380# following values.
21381
21382_ACEOF
21383
21384# The following way of writing the cache mishandles newlines in values,
21385# but we know of no workaround that is simple, portable, and efficient.
21386# So, don't put newlines in cache variables' values.
21387# Ultrix sh set writes to stderr and can't be redirected directly,
21388# and sets the high bit in the cache file unless we assign to the vars.
21389{
21390  (set) 2>&1 |
21391    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21392    *ac_space=\ *)
21393      # `set' does not quote correctly, so add quotes (double-quote
21394      # substitution turns \\\\ into \\, and sed turns \\ into \).
21395      sed -n \
21396	"s/'/'\\\\''/g;
21397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21398      ;;
21399    *)
21400      # `set' quotes correctly as required by POSIX, so do not add quotes.
21401      sed -n \
21402	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21403      ;;
21404    esac;
21405} |
21406  sed '
21407     t clear
21408     : clear
21409     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21410     t end
21411     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21412     : end' >>confcache
21413if diff $cache_file confcache >/dev/null 2>&1; then :; else
21414  if test -w $cache_file; then
21415    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21416    cat confcache >$cache_file
21417  else
21418    echo "not updating unwritable cache $cache_file"
21419  fi
21420fi
21421rm -f confcache
21422
21423echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
21424echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6
21425
21426# Check whether --enable-speed or --disable-speed was given.
21427if test "${enable_speed+set}" = set; then
21428  enableval="$enable_speed"
21429
21430    case "$enableval" in
21431	yes)
21432	    optimize_for="speed"
21433
21434cat >>confdefs.h <<\_ACEOF
21435#define OPT_SPEED 1
21436_ACEOF
21437
21438	    ;;
21439    esac
21440
21441fi;
21442
21443# Check whether --enable-accuracy or --disable-accuracy was given.
21444if test "${enable_accuracy+set}" = set; then
21445  enableval="$enable_accuracy"
21446
21447    case "$enableval" in
21448	yes)
21449	    if test "$optimize_for" = "speed"
21450	    then
21451		optimize_for="both"
21452	    else
21453		optimize_for="accuracy"
21454	    fi
21455
21456cat >>confdefs.h <<\_ACEOF
21457#define OPT_ACCURACY 1
21458_ACEOF
21459
21460	    ;;
21461    esac
21462
21463fi;
21464
21465echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
21466echo "${ECHO_T}${optimize_for-default}" >&6
21467
21468if test "$optimize_for" = "both"
21469then
21470    { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
21471echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
21472   { (exit 1); exit 1; }; }
21473fi
21474
21475echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
21476echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6
21477# Check whether --enable-fpm or --disable-fpm was given.
21478if test "${enable_fpm+set}" = set; then
21479  enableval="$enable_fpm"
21480
21481    case "$enableval" in
21482	yes)                             ;;
21483	no|default|approx) FPM="DEFAULT" ;;
21484	intel|i?86)        FPM="INTEL"   ;;
21485	arm)               FPM="ARM"     ;;
21486	mips)              FPM="MIPS"    ;;
21487	sparc)             FPM="SPARC"   ;;
21488	ppc|powerpc)       FPM="PPC"     ;;
21489	64bit)             FPM="64BIT"   ;;
21490	float)             FPM="FLOAT"   ;;
21491	*)
21492	    echo "$as_me:$LINENO: result: failed" >&5
21493echo "${ECHO_T}failed" >&6
21494	    { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
21495echo "$as_me: error: bad --enable-fpm option" >&2;}
21496   { (exit 1); exit 1; }; }
21497	    ;;
21498    esac
21499
21500fi;
21501
21502if test -z "$FPM" && test "$GCC" = yes
21503then
21504    case "$host" in
21505	i?86-*)     FPM="INTEL"  ;;
21506	arm*-*)     FPM="ARM"    ;;
21507	mips*-*)    FPM="MIPS"   ;;
21508	sparc*-*)   FPM="SPARC"  ;;
21509	powerpc*-*) FPM="PPC"    ;;
21510	# FIXME: need to test for 64-bit long long...
21511    esac
21512fi
21513
21514echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
21515echo "${ECHO_T}${FPM=DEFAULT}" >&6
21516
21517if test "$FPM" = "DEFAULT"
21518then
21519    { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
21520echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
21521fi
21522
21523FPM="-DFPM_$FPM"
21524
21525# Check whether --enable-sso or --disable-sso was given.
21526if test "${enable_sso+set}" = set; then
21527  enableval="$enable_sso"
21528
21529    case "$enableval" in
21530	yes)
21531
21532cat >>confdefs.h <<\_ACEOF
21533#define OPT_SSO 1
21534_ACEOF
21535
21536	    ;;
21537    esac
21538
21539fi;
21540
21541# Check whether --enable-aso or --disable-aso was given.
21542if test "${enable_aso+set}" = set; then
21543  enableval="$enable_aso"
21544
21545else
21546  enable_aso=yes
21547fi;
21548
21549if test "$enable_aso" = yes
21550then
21551    case "$host" in
21552	i?86-*)
21553	    : #ASO="$ASO -DASO_INTERLEAVE1"
21554	    ASO="$ASO -DASO_ZEROCHECK"
21555	    : #not yet #ASO="$ASO -DASO_SYNTH"
21556	    : #not yet #ASO_OBJS="synth_mmx.lo"
21557	    ;;
21558	arm*-*)
21559	    ASO="$ASO -DASO_INTERLEAVE1"
21560	    ASO="$ASO -DASO_IMDCT"
21561	    ASO_OBJS="imdct_l_arm.lo"
21562	    ;;
21563	mips*-*)
21564	    ASO="$ASO -DASO_INTERLEAVE2"
21565	    ASO="$ASO -DASO_ZEROCHECK"
21566	    ;;
21567    esac
21568fi
21569
21570echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
21571echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6
21572# Check whether --enable-strict-iso or --disable-strict-iso was given.
21573if test "${enable_strict_iso+set}" = set; then
21574  enableval="$enable_strict_iso"
21575
21576    case "$enableval" in
21577	yes)
21578
21579cat >>confdefs.h <<\_ACEOF
21580#define OPT_STRICT 1
21581_ACEOF
21582
21583	    interpretation="strict"
21584	    ;;
21585    esac
21586
21587fi;
21588echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
21589echo "${ECHO_T}${interpretation-best accepted practices}" >&6
21590
21591echo "$as_me:$LINENO: checking whether to enable profiling" >&5
21592echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
21593# Check whether --enable-profiling or --disable-profiling was given.
21594if test "${enable_profiling+set}" = set; then
21595  enableval="$enable_profiling"
21596
21597    case "$enableval" in
21598	yes) profile="-pg" ;;
21599    esac
21600
21601fi;
21602echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
21603echo "${ECHO_T}${enable_profiling-no}" >&6
21604
21605echo "$as_me:$LINENO: checking whether to enable debugging" >&5
21606echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
21607# Check whether --enable-debugging or --disable-debugging was given.
21608if test "${enable_debugging+set}" = set; then
21609  enableval="$enable_debugging"
21610
21611    case "$enableval" in
21612	yes)
21613
21614cat >>confdefs.h <<\_ACEOF
21615#define DEBUG 1
21616_ACEOF
21617
21618	    optimize=""
21619	    ;;
21620	no)
21621	    if test -n "$profile"
21622	    then
21623    { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
21624echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
21625   { (exit 1); exit 1; }; }
21626	    fi
21627
21628
21629cat >>confdefs.h <<\_ACEOF
21630#define NDEBUG 1
21631_ACEOF
21632
21633	    debug=""
21634	    if test "$GCC" = yes
21635	    then
21636		optimize="$optimize -fomit-frame-pointer"
21637	    fi
21638	    ;;
21639    esac
21640
21641fi;
21642echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
21643echo "${ECHO_T}${enable_debugging-default}" >&6
21644
21645echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
21646echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6
21647# Check whether --enable-experimental or --disable-experimental was given.
21648if test "${enable_experimental+set}" = set; then
21649  enableval="$enable_experimental"
21650
21651    case "$enableval" in
21652	yes)
21653
21654cat >>confdefs.h <<\_ACEOF
21655#define EXPERIMENTAL 1
21656_ACEOF
21657
21658	    ;;
21659    esac
21660
21661fi;
21662echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
21663echo "${ECHO_T}${enable_experimental-no}" >&6
21664
21665
21666test -n "$arch"     && CFLAGS="$CFLAGS $arch"
21667test -n "$debug"    && CFLAGS="$CFLAGS $debug"
21668test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
21669test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
21670
21671
21672                              ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
21673
21674cat >confcache <<\_ACEOF
21675# This file is a shell script that caches the results of configure
21676# tests run on this system so they can be shared between configure
21677# scripts and configure runs, see configure's option --config-cache.
21678# It is not useful on other systems.  If it contains results you don't
21679# want to keep, you may remove or edit it.
21680#
21681# config.status only pays attention to the cache file if you give it
21682# the --recheck option to rerun configure.
21683#
21684# `ac_cv_env_foo' variables (set or unset) will be overridden when
21685# loading this file, other *unset* `ac_cv_foo' will be assigned the
21686# following values.
21687
21688_ACEOF
21689
21690# The following way of writing the cache mishandles newlines in values,
21691# but we know of no workaround that is simple, portable, and efficient.
21692# So, don't put newlines in cache variables' values.
21693# Ultrix sh set writes to stderr and can't be redirected directly,
21694# and sets the high bit in the cache file unless we assign to the vars.
21695{
21696  (set) 2>&1 |
21697    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21698    *ac_space=\ *)
21699      # `set' does not quote correctly, so add quotes (double-quote
21700      # substitution turns \\\\ into \\, and sed turns \\ into \).
21701      sed -n \
21702	"s/'/'\\\\''/g;
21703	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21704      ;;
21705    *)
21706      # `set' quotes correctly as required by POSIX, so do not add quotes.
21707      sed -n \
21708	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21709      ;;
21710    esac;
21711} |
21712  sed '
21713     t clear
21714     : clear
21715     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21716     t end
21717     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21718     : end' >>confcache
21719if diff $cache_file confcache >/dev/null 2>&1; then :; else
21720  if test -w $cache_file; then
21721    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21722    cat confcache >$cache_file
21723  else
21724    echo "not updating unwritable cache $cache_file"
21725  fi
21726fi
21727rm -f confcache
21728
21729test "x$prefix" = xNONE && prefix=$ac_default_prefix
21730# Let make expand exec_prefix.
21731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21732
21733# VPATH may cause trouble with some makes, so we remove $(srcdir),
21734# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21735# trailing colons and then remove the whole line if VPATH becomes empty
21736# (actually we leave an empty line to preserve line numbers).
21737if test "x$srcdir" = x.; then
21738  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21739s/:*\$(srcdir):*/:/;
21740s/:*\${srcdir}:*/:/;
21741s/:*@srcdir@:*/:/;
21742s/^\([^=]*=[	 ]*\):*/\1/;
21743s/:*$//;
21744s/^[^=]*=[	 ]*$//;
21745}'
21746fi
21747
21748DEFS=-DHAVE_CONFIG_H
21749
21750ac_libobjs=
21751ac_ltlibobjs=
21752for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21753  # 1. Remove the extension, and $U if already installed.
21754  ac_i=`echo "$ac_i" |
21755	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21756  # 2. Add them.
21757  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21758  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21759done
21760LIBOBJS=$ac_libobjs
21761
21762LTLIBOBJS=$ac_ltlibobjs
21763
21764
21765if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21766  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21767Usually this means the macro was only invoked conditionally." >&5
21768echo "$as_me: error: conditional \"AMDEP\" was never defined.
21769Usually this means the macro was only invoked conditionally." >&2;}
21770   { (exit 1); exit 1; }; }
21771fi
21772if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21773  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21774Usually this means the macro was only invoked conditionally." >&5
21775echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21776Usually this means the macro was only invoked conditionally." >&2;}
21777   { (exit 1); exit 1; }; }
21778fi
21779if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21780  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21781Usually this means the macro was only invoked conditionally." >&5
21782echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21783Usually this means the macro was only invoked conditionally." >&2;}
21784   { (exit 1); exit 1; }; }
21785fi
21786
21787: ${CONFIG_STATUS=./config.status}
21788ac_clean_files_save=$ac_clean_files
21789ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21790{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21791echo "$as_me: creating $CONFIG_STATUS" >&6;}
21792cat >$CONFIG_STATUS <<_ACEOF
21793#! $SHELL
21794# Generated by $as_me.
21795# Run this file to recreate the current configuration.
21796# Compiler output produced by configure, useful for debugging
21797# configure, is in config.log if it exists.
21798
21799debug=false
21800ac_cs_recheck=false
21801ac_cs_silent=false
21802SHELL=\${CONFIG_SHELL-$SHELL}
21803_ACEOF
21804
21805cat >>$CONFIG_STATUS <<\_ACEOF
21806## --------------------- ##
21807## M4sh Initialization.  ##
21808## --------------------- ##
21809
21810# Be Bourne compatible
21811if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21812  emulate sh
21813  NULLCMD=:
21814  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21815  # is contrary to our usage.  Disable this feature.
21816  alias -g '${1+"$@"}'='"$@"'
21817elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21818  set -o posix
21819fi
21820DUALCASE=1; export DUALCASE # for MKS sh
21821
21822# Support unset when possible.
21823if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21824  as_unset=unset
21825else
21826  as_unset=false
21827fi
21828
21829
21830# Work around bugs in pre-3.0 UWIN ksh.
21831$as_unset ENV MAIL MAILPATH
21832PS1='$ '
21833PS2='> '
21834PS4='+ '
21835
21836# NLS nuisances.
21837for as_var in \
21838  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21839  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21840  LC_TELEPHONE LC_TIME
21841do
21842  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21843    eval $as_var=C; export $as_var
21844  else
21845    $as_unset $as_var
21846  fi
21847done
21848
21849# Required to use basename.
21850if expr a : '\(a\)' >/dev/null 2>&1; then
21851  as_expr=expr
21852else
21853  as_expr=false
21854fi
21855
21856if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21857  as_basename=basename
21858else
21859  as_basename=false
21860fi
21861
21862
21863# Name of the executable.
21864as_me=`$as_basename "$0" ||
21865$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21866	 X"$0" : 'X\(//\)$' \| \
21867	 X"$0" : 'X\(/\)$' \| \
21868	 .     : '\(.\)' 2>/dev/null ||
21869echo X/"$0" |
21870    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21871  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21872  	  /^X\/\(\/\).*/{ s//\1/; q; }
21873  	  s/.*/./; q'`
21874
21875
21876# PATH needs CR, and LINENO needs CR and PATH.
21877# Avoid depending upon Character Ranges.
21878as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21879as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21880as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21881as_cr_digits='0123456789'
21882as_cr_alnum=$as_cr_Letters$as_cr_digits
21883
21884# The user is always right.
21885if test "${PATH_SEPARATOR+set}" != set; then
21886  echo "#! /bin/sh" >conf$$.sh
21887  echo  "exit 0"   >>conf$$.sh
21888  chmod +x conf$$.sh
21889  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21890    PATH_SEPARATOR=';'
21891  else
21892    PATH_SEPARATOR=:
21893  fi
21894  rm -f conf$$.sh
21895fi
21896
21897
21898  as_lineno_1=$LINENO
21899  as_lineno_2=$LINENO
21900  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21901  test "x$as_lineno_1" != "x$as_lineno_2" &&
21902  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21903  # Find who we are.  Look in the path if we contain no path at all
21904  # relative or not.
21905  case $0 in
21906    *[\\/]* ) as_myself=$0 ;;
21907    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908for as_dir in $PATH
21909do
21910  IFS=$as_save_IFS
21911  test -z "$as_dir" && as_dir=.
21912  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21913done
21914
21915       ;;
21916  esac
21917  # We did not find ourselves, most probably we were run as `sh COMMAND'
21918  # in which case we are not to be found in the path.
21919  if test "x$as_myself" = x; then
21920    as_myself=$0
21921  fi
21922  if test ! -f "$as_myself"; then
21923    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21924echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21925   { (exit 1); exit 1; }; }
21926  fi
21927  case $CONFIG_SHELL in
21928  '')
21929    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21930for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21931do
21932  IFS=$as_save_IFS
21933  test -z "$as_dir" && as_dir=.
21934  for as_base in sh bash ksh sh5; do
21935	 case $as_dir in
21936	 /*)
21937	   if ("$as_dir/$as_base" -c '
21938  as_lineno_1=$LINENO
21939  as_lineno_2=$LINENO
21940  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21941  test "x$as_lineno_1" != "x$as_lineno_2" &&
21942  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21943	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21944	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21945	     CONFIG_SHELL=$as_dir/$as_base
21946	     export CONFIG_SHELL
21947	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21948	   fi;;
21949	 esac
21950       done
21951done
21952;;
21953  esac
21954
21955  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21956  # uniformly replaced by the line number.  The first 'sed' inserts a
21957  # line-number line before each line; the second 'sed' does the real
21958  # work.  The second script uses 'N' to pair each line-number line
21959  # with the numbered line, and appends trailing '-' during
21960  # substitution so that $LINENO is not a special case at line end.
21961  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21962  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21963  sed '=' <$as_myself |
21964    sed '
21965      N
21966      s,$,-,
21967      : loop
21968      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21969      t loop
21970      s,-$,,
21971      s,^['$as_cr_digits']*\n,,
21972    ' >$as_me.lineno &&
21973  chmod +x $as_me.lineno ||
21974    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21975echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21976   { (exit 1); exit 1; }; }
21977
21978  # Don't try to exec as it changes $[0], causing all sort of problems
21979  # (the dirname of $[0] is not the place where we might find the
21980  # original and so on.  Autoconf is especially sensible to this).
21981  . ./$as_me.lineno
21982  # Exit status is that of the last command.
21983  exit
21984}
21985
21986
21987case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21988  *c*,-n*) ECHO_N= ECHO_C='
21989' ECHO_T='	' ;;
21990  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21991  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21992esac
21993
21994if expr a : '\(a\)' >/dev/null 2>&1; then
21995  as_expr=expr
21996else
21997  as_expr=false
21998fi
21999
22000rm -f conf$$ conf$$.exe conf$$.file
22001echo >conf$$.file
22002if ln -s conf$$.file conf$$ 2>/dev/null; then
22003  # We could just check for DJGPP; but this test a) works b) is more generic
22004  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22005  if test -f conf$$.exe; then
22006    # Don't use ln at all; we don't have any links
22007    as_ln_s='cp -p'
22008  else
22009    as_ln_s='ln -s'
22010  fi
22011elif ln conf$$.file conf$$ 2>/dev/null; then
22012  as_ln_s=ln
22013else
22014  as_ln_s='cp -p'
22015fi
22016rm -f conf$$ conf$$.exe conf$$.file
22017
22018if mkdir -p . 2>/dev/null; then
22019  as_mkdir_p=:
22020else
22021  test -d ./-p && rmdir ./-p
22022  as_mkdir_p=false
22023fi
22024
22025as_executable_p="test -f"
22026
22027# Sed expression to map a string onto a valid CPP name.
22028as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22029
22030# Sed expression to map a string onto a valid variable name.
22031as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22032
22033
22034# IFS
22035# We need space, tab and new line, in precisely that order.
22036as_nl='
22037'
22038IFS=" 	$as_nl"
22039
22040# CDPATH.
22041$as_unset CDPATH
22042
22043exec 6>&1
22044
22045# Open the log real soon, to keep \$[0] and so on meaningful, and to
22046# report actual input values of CONFIG_FILES etc. instead of their
22047# values after options handling.  Logging --version etc. is OK.
22048exec 5>>config.log
22049{
22050  echo
22051  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22052## Running $as_me. ##
22053_ASBOX
22054} >&5
22055cat >&5 <<_CSEOF
22056
22057This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
22058generated by GNU Autoconf 2.59.  Invocation command line was
22059
22060  CONFIG_FILES    = $CONFIG_FILES
22061  CONFIG_HEADERS  = $CONFIG_HEADERS
22062  CONFIG_LINKS    = $CONFIG_LINKS
22063  CONFIG_COMMANDS = $CONFIG_COMMANDS
22064  $ $0 $@
22065
22066_CSEOF
22067echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22068echo >&5
22069_ACEOF
22070
22071# Files that config.status was made for.
22072if test -n "$ac_config_files"; then
22073  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22074fi
22075
22076if test -n "$ac_config_headers"; then
22077  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22078fi
22079
22080if test -n "$ac_config_links"; then
22081  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22082fi
22083
22084if test -n "$ac_config_commands"; then
22085  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22086fi
22087
22088cat >>$CONFIG_STATUS <<\_ACEOF
22089
22090ac_cs_usage="\
22091\`$as_me' instantiates files from templates according to the
22092current configuration.
22093
22094Usage: $0 [OPTIONS] [FILE]...
22095
22096  -h, --help       print this help, then exit
22097  -V, --version    print version number, then exit
22098  -q, --quiet      do not print progress messages
22099  -d, --debug      don't remove temporary files
22100      --recheck    update $as_me by reconfiguring in the same conditions
22101  --file=FILE[:TEMPLATE]
22102		   instantiate the configuration file FILE
22103  --header=FILE[:TEMPLATE]
22104		   instantiate the configuration header FILE
22105
22106Configuration files:
22107$config_files
22108
22109Configuration headers:
22110$config_headers
22111
22112Configuration commands:
22113$config_commands
22114
22115Report bugs to <bug-autoconf@gnu.org>."
22116_ACEOF
22117
22118cat >>$CONFIG_STATUS <<_ACEOF
22119ac_cs_version="\\
22120MPEG Audio Decoder config.status 0.15.1b
22121configured by $0, generated by GNU Autoconf 2.59,
22122  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22123
22124Copyright (C) 2003 Free Software Foundation, Inc.
22125This config.status script is free software; the Free Software Foundation
22126gives unlimited permission to copy, distribute and modify it."
22127srcdir=$srcdir
22128INSTALL="$INSTALL"
22129_ACEOF
22130
22131cat >>$CONFIG_STATUS <<\_ACEOF
22132# If no file are specified by the user, then we need to provide default
22133# value.  By we need to know if files were specified by the user.
22134ac_need_defaults=:
22135while test $# != 0
22136do
22137  case $1 in
22138  --*=*)
22139    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22140    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22141    ac_shift=:
22142    ;;
22143  -*)
22144    ac_option=$1
22145    ac_optarg=$2
22146    ac_shift=shift
22147    ;;
22148  *) # This is not an option, so the user has probably given explicit
22149     # arguments.
22150     ac_option=$1
22151     ac_need_defaults=false;;
22152  esac
22153
22154  case $ac_option in
22155  # Handling of the options.
22156_ACEOF
22157cat >>$CONFIG_STATUS <<\_ACEOF
22158  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22159    ac_cs_recheck=: ;;
22160  --version | --vers* | -V )
22161    echo "$ac_cs_version"; exit 0 ;;
22162  --he | --h)
22163    # Conflict between --help and --header
22164    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22165Try \`$0 --help' for more information." >&5
22166echo "$as_me: error: ambiguous option: $1
22167Try \`$0 --help' for more information." >&2;}
22168   { (exit 1); exit 1; }; };;
22169  --help | --hel | -h )
22170    echo "$ac_cs_usage"; exit 0 ;;
22171  --debug | --d* | -d )
22172    debug=: ;;
22173  --file | --fil | --fi | --f )
22174    $ac_shift
22175    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22176    ac_need_defaults=false;;
22177  --header | --heade | --head | --hea )
22178    $ac_shift
22179    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22180    ac_need_defaults=false;;
22181  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22182  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22183    ac_cs_silent=: ;;
22184
22185  # This is an error.
22186  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22187Try \`$0 --help' for more information." >&5
22188echo "$as_me: error: unrecognized option: $1
22189Try \`$0 --help' for more information." >&2;}
22190   { (exit 1); exit 1; }; } ;;
22191
22192  *) ac_config_targets="$ac_config_targets $1" ;;
22193
22194  esac
22195  shift
22196done
22197
22198ac_configure_extra_args=
22199
22200if $ac_cs_silent; then
22201  exec 6>/dev/null
22202  ac_configure_extra_args="$ac_configure_extra_args --silent"
22203fi
22204
22205_ACEOF
22206cat >>$CONFIG_STATUS <<_ACEOF
22207if \$ac_cs_recheck; then
22208  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22209  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22210fi
22211
22212_ACEOF
22213
22214cat >>$CONFIG_STATUS <<_ACEOF
22215#
22216# INIT-COMMANDS section.
22217#
22218
22219AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22220
22221_ACEOF
22222
22223
22224
22225cat >>$CONFIG_STATUS <<\_ACEOF
22226for ac_config_target in $ac_config_targets
22227do
22228  case "$ac_config_target" in
22229  # Handling of arguments.
22230  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22231  "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
22232  "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
22233  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22234  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22235  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22236echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22237   { (exit 1); exit 1; }; };;
22238  esac
22239done
22240
22241# If the user did not use the arguments to specify the items to instantiate,
22242# then the envvar interface is used.  Set only those that are not.
22243# We use the long form for the default assignment because of an extremely
22244# bizarre bug on SunOS 4.1.3.
22245if $ac_need_defaults; then
22246  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22247  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22248  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22249fi
22250
22251# Have a temporary directory for convenience.  Make it in the build tree
22252# simply because there is no reason to put it here, and in addition,
22253# creating and moving files from /tmp can sometimes cause problems.
22254# Create a temporary directory, and hook for its removal unless debugging.
22255$debug ||
22256{
22257  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22258  trap '{ (exit 1); exit 1; }' 1 2 13 15
22259}
22260
22261# Create a (secure) tmp directory for tmp files.
22262
22263{
22264  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22265  test -n "$tmp" && test -d "$tmp"
22266}  ||
22267{
22268  tmp=./confstat$$-$RANDOM
22269  (umask 077 && mkdir $tmp)
22270} ||
22271{
22272   echo "$me: cannot create a temporary directory in ." >&2
22273   { (exit 1); exit 1; }
22274}
22275
22276_ACEOF
22277
22278cat >>$CONFIG_STATUS <<_ACEOF
22279
22280#
22281# CONFIG_FILES section.
22282#
22283
22284# No need to generate the scripts if there are no CONFIG_FILES.
22285# This happens for instance when ./config.status config.h
22286if test -n "\$CONFIG_FILES"; then
22287  # Protect against being on the right side of a sed subst in config.status.
22288  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22289   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22290s,@SHELL@,$SHELL,;t t
22291s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22292s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22293s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22294s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22295s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22296s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22297s,@exec_prefix@,$exec_prefix,;t t
22298s,@prefix@,$prefix,;t t
22299s,@program_transform_name@,$program_transform_name,;t t
22300s,@bindir@,$bindir,;t t
22301s,@sbindir@,$sbindir,;t t
22302s,@libexecdir@,$libexecdir,;t t
22303s,@datadir@,$datadir,;t t
22304s,@sysconfdir@,$sysconfdir,;t t
22305s,@sharedstatedir@,$sharedstatedir,;t t
22306s,@localstatedir@,$localstatedir,;t t
22307s,@libdir@,$libdir,;t t
22308s,@includedir@,$includedir,;t t
22309s,@oldincludedir@,$oldincludedir,;t t
22310s,@infodir@,$infodir,;t t
22311s,@mandir@,$mandir,;t t
22312s,@build_alias@,$build_alias,;t t
22313s,@host_alias@,$host_alias,;t t
22314s,@target_alias@,$target_alias,;t t
22315s,@DEFS@,$DEFS,;t t
22316s,@ECHO_C@,$ECHO_C,;t t
22317s,@ECHO_N@,$ECHO_N,;t t
22318s,@ECHO_T@,$ECHO_T,;t t
22319s,@LIBS@,$LIBS,;t t
22320s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22321s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22322s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22323s,@CYGPATH_W@,$CYGPATH_W,;t t
22324s,@PACKAGE@,$PACKAGE,;t t
22325s,@VERSION@,$VERSION,;t t
22326s,@ACLOCAL@,$ACLOCAL,;t t
22327s,@AUTOCONF@,$AUTOCONF,;t t
22328s,@AUTOMAKE@,$AUTOMAKE,;t t
22329s,@AUTOHEADER@,$AUTOHEADER,;t t
22330s,@MAKEINFO@,$MAKEINFO,;t t
22331s,@AMTAR@,$AMTAR,;t t
22332s,@install_sh@,$install_sh,;t t
22333s,@STRIP@,$STRIP,;t t
22334s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22335s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22336s,@mkdir_p@,$mkdir_p,;t t
22337s,@AWK@,$AWK,;t t
22338s,@SET_MAKE@,$SET_MAKE,;t t
22339s,@am__leading_dot@,$am__leading_dot,;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,@CCAS@,$CCAS,;t t
22365s,@CCASFLAGS@,$CCASFLAGS,;t t
22366s,@EGREP@,$EGREP,;t t
22367s,@LN_S@,$LN_S,;t t
22368s,@ECHO@,$ECHO,;t t
22369s,@AR@,$AR,;t t
22370s,@ac_ct_AR@,$ac_ct_AR,;t t
22371s,@RANLIB@,$RANLIB,;t t
22372s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22373s,@CPP@,$CPP,;t t
22374s,@CXX@,$CXX,;t t
22375s,@CXXFLAGS@,$CXXFLAGS,;t t
22376s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22377s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22378s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22379s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22380s,@CXXCPP@,$CXXCPP,;t t
22381s,@F77@,$F77,;t t
22382s,@FFLAGS@,$FFLAGS,;t t
22383s,@ac_ct_F77@,$ac_ct_F77,;t t
22384s,@LIBTOOL@,$LIBTOOL,;t t
22385s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22386s,@FPM@,$FPM,;t t
22387s,@ASO@,$ASO,;t t
22388s,@ASO_OBJS@,$ASO_OBJS,;t t
22389s,@LIBOBJS@,$LIBOBJS,;t t
22390s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22391CEOF
22392
22393_ACEOF
22394
22395  cat >>$CONFIG_STATUS <<\_ACEOF
22396  # Split the substitutions into bite-sized pieces for seds with
22397  # small command number limits, like on Digital OSF/1 and HP-UX.
22398  ac_max_sed_lines=48
22399  ac_sed_frag=1 # Number of current file.
22400  ac_beg=1 # First line for current file.
22401  ac_end=$ac_max_sed_lines # Line after last line for current file.
22402  ac_more_lines=:
22403  ac_sed_cmds=
22404  while $ac_more_lines; do
22405    if test $ac_beg -gt 1; then
22406      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22407    else
22408      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22409    fi
22410    if test ! -s $tmp/subs.frag; then
22411      ac_more_lines=false
22412    else
22413      # The purpose of the label and of the branching condition is to
22414      # speed up the sed processing (if there are no `@' at all, there
22415      # is no need to browse any of the substitutions).
22416      # These are the two extra sed commands mentioned above.
22417      (echo ':t
22418  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22419      if test -z "$ac_sed_cmds"; then
22420	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22421      else
22422	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22423      fi
22424      ac_sed_frag=`expr $ac_sed_frag + 1`
22425      ac_beg=$ac_end
22426      ac_end=`expr $ac_end + $ac_max_sed_lines`
22427    fi
22428  done
22429  if test -z "$ac_sed_cmds"; then
22430    ac_sed_cmds=cat
22431  fi
22432fi # test -n "$CONFIG_FILES"
22433
22434_ACEOF
22435cat >>$CONFIG_STATUS <<\_ACEOF
22436for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22437  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22438  case $ac_file in
22439  - | *:- | *:-:* ) # input from stdin
22440	cat >$tmp/stdin
22441	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22442	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22443  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22444	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22445  * )   ac_file_in=$ac_file.in ;;
22446  esac
22447
22448  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22449  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451	 X"$ac_file" : 'X\(//\)[^/]' \| \
22452	 X"$ac_file" : 'X\(//\)$' \| \
22453	 X"$ac_file" : 'X\(/\)' \| \
22454	 .     : '\(.\)' 2>/dev/null ||
22455echo X"$ac_file" |
22456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22457  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22458  	  /^X\(\/\/\)$/{ s//\1/; q; }
22459  	  /^X\(\/\).*/{ s//\1/; q; }
22460  	  s/.*/./; q'`
22461  { if $as_mkdir_p; then
22462    mkdir -p "$ac_dir"
22463  else
22464    as_dir="$ac_dir"
22465    as_dirs=
22466    while test ! -d "$as_dir"; do
22467      as_dirs="$as_dir $as_dirs"
22468      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22470	 X"$as_dir" : 'X\(//\)[^/]' \| \
22471	 X"$as_dir" : 'X\(//\)$' \| \
22472	 X"$as_dir" : 'X\(/\)' \| \
22473	 .     : '\(.\)' 2>/dev/null ||
22474echo X"$as_dir" |
22475    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22476  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22477  	  /^X\(\/\/\)$/{ s//\1/; q; }
22478  	  /^X\(\/\).*/{ s//\1/; q; }
22479  	  s/.*/./; q'`
22480    done
22481    test ! -n "$as_dirs" || mkdir $as_dirs
22482  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22484   { (exit 1); exit 1; }; }; }
22485
22486  ac_builddir=.
22487
22488if test "$ac_dir" != .; then
22489  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22490  # A "../" for each directory in $ac_dir_suffix.
22491  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22492else
22493  ac_dir_suffix= ac_top_builddir=
22494fi
22495
22496case $srcdir in
22497  .)  # No --srcdir option.  We are building in place.
22498    ac_srcdir=.
22499    if test -z "$ac_top_builddir"; then
22500       ac_top_srcdir=.
22501    else
22502       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22503    fi ;;
22504  [\\/]* | ?:[\\/]* )  # Absolute path.
22505    ac_srcdir=$srcdir$ac_dir_suffix;
22506    ac_top_srcdir=$srcdir ;;
22507  *) # Relative path.
22508    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22509    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22510esac
22511
22512# Do not use `cd foo && pwd` to compute absolute paths, because
22513# the directories may not exist.
22514case `pwd` in
22515.) ac_abs_builddir="$ac_dir";;
22516*)
22517  case "$ac_dir" in
22518  .) ac_abs_builddir=`pwd`;;
22519  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22520  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22521  esac;;
22522esac
22523case $ac_abs_builddir in
22524.) ac_abs_top_builddir=${ac_top_builddir}.;;
22525*)
22526  case ${ac_top_builddir}. in
22527  .) ac_abs_top_builddir=$ac_abs_builddir;;
22528  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22529  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22530  esac;;
22531esac
22532case $ac_abs_builddir in
22533.) ac_abs_srcdir=$ac_srcdir;;
22534*)
22535  case $ac_srcdir in
22536  .) ac_abs_srcdir=$ac_abs_builddir;;
22537  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22538  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22539  esac;;
22540esac
22541case $ac_abs_builddir in
22542.) ac_abs_top_srcdir=$ac_top_srcdir;;
22543*)
22544  case $ac_top_srcdir in
22545  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22546  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22547  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22548  esac;;
22549esac
22550
22551
22552  case $INSTALL in
22553  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22554  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22555  esac
22556
22557  # Let's still pretend it is `configure' which instantiates (i.e., don't
22558  # use $as_me), people would be surprised to read:
22559  #    /* config.h.  Generated by config.status.  */
22560  if test x"$ac_file" = x-; then
22561    configure_input=
22562  else
22563    configure_input="$ac_file.  "
22564  fi
22565  configure_input=$configure_input"Generated from `echo $ac_file_in |
22566				     sed 's,.*/,,'` by configure."
22567
22568  # First look for the input files in the build tree, otherwise in the
22569  # src tree.
22570  ac_file_inputs=`IFS=:
22571    for f in $ac_file_in; do
22572      case $f in
22573      -) echo $tmp/stdin ;;
22574      [\\/$]*)
22575	 # Absolute (can't be DOS-style, as IFS=:)
22576	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22577echo "$as_me: error: cannot find input file: $f" >&2;}
22578   { (exit 1); exit 1; }; }
22579	 echo "$f";;
22580      *) # Relative
22581	 if test -f "$f"; then
22582	   # Build tree
22583	   echo "$f"
22584	 elif test -f "$srcdir/$f"; then
22585	   # Source tree
22586	   echo "$srcdir/$f"
22587	 else
22588	   # /dev/null tree
22589	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22590echo "$as_me: error: cannot find input file: $f" >&2;}
22591   { (exit 1); exit 1; }; }
22592	 fi;;
22593      esac
22594    done` || { (exit 1); exit 1; }
22595
22596  if test x"$ac_file" != x-; then
22597    { echo "$as_me:$LINENO: creating $ac_file" >&5
22598echo "$as_me: creating $ac_file" >&6;}
22599    rm -f "$ac_file"
22600  fi
22601_ACEOF
22602cat >>$CONFIG_STATUS <<_ACEOF
22603  sed "$ac_vpsub
22604$extrasub
22605_ACEOF
22606cat >>$CONFIG_STATUS <<\_ACEOF
22607:t
22608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22609s,@configure_input@,$configure_input,;t t
22610s,@srcdir@,$ac_srcdir,;t t
22611s,@abs_srcdir@,$ac_abs_srcdir,;t t
22612s,@top_srcdir@,$ac_top_srcdir,;t t
22613s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22614s,@builddir@,$ac_builddir,;t t
22615s,@abs_builddir@,$ac_abs_builddir,;t t
22616s,@top_builddir@,$ac_top_builddir,;t t
22617s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22618s,@INSTALL@,$ac_INSTALL,;t t
22619" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22620  rm -f $tmp/stdin
22621  if test x"$ac_file" != x-; then
22622    mv $tmp/out $ac_file
22623  else
22624    cat $tmp/out
22625    rm -f $tmp/out
22626  fi
22627
22628done
22629_ACEOF
22630cat >>$CONFIG_STATUS <<\_ACEOF
22631
22632#
22633# CONFIG_HEADER section.
22634#
22635
22636# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22637# NAME is the cpp macro being defined and VALUE is the value it is being given.
22638#
22639# ac_d sets the value in "#define NAME VALUE" lines.
22640ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22641ac_dB='[	 ].*$,\1#\2'
22642ac_dC=' '
22643ac_dD=',;t'
22644# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22645ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22646ac_uB='$,\1#\2define\3'
22647ac_uC=' '
22648ac_uD=',;t'
22649
22650for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22651  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22652  case $ac_file in
22653  - | *:- | *:-:* ) # input from stdin
22654	cat >$tmp/stdin
22655	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22656	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22657  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22658	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22659  * )   ac_file_in=$ac_file.in ;;
22660  esac
22661
22662  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22663echo "$as_me: creating $ac_file" >&6;}
22664
22665  # First look for the input files in the build tree, otherwise in the
22666  # src tree.
22667  ac_file_inputs=`IFS=:
22668    for f in $ac_file_in; do
22669      case $f in
22670      -) echo $tmp/stdin ;;
22671      [\\/$]*)
22672	 # Absolute (can't be DOS-style, as IFS=:)
22673	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22674echo "$as_me: error: cannot find input file: $f" >&2;}
22675   { (exit 1); exit 1; }; }
22676	 # Do quote $f, to prevent DOS paths from being IFS'd.
22677	 echo "$f";;
22678      *) # Relative
22679	 if test -f "$f"; then
22680	   # Build tree
22681	   echo "$f"
22682	 elif test -f "$srcdir/$f"; then
22683	   # Source tree
22684	   echo "$srcdir/$f"
22685	 else
22686	   # /dev/null tree
22687	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22688echo "$as_me: error: cannot find input file: $f" >&2;}
22689   { (exit 1); exit 1; }; }
22690	 fi;;
22691      esac
22692    done` || { (exit 1); exit 1; }
22693  # Remove the trailing spaces.
22694  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22695
22696_ACEOF
22697
22698# Transform confdefs.h into two sed scripts, `conftest.defines' and
22699# `conftest.undefs', that substitutes the proper values into
22700# config.h.in to produce config.h.  The first handles `#define'
22701# templates, and the second `#undef' templates.
22702# And first: Protect against being on the right side of a sed subst in
22703# config.status.  Protect against being in an unquoted here document
22704# in config.status.
22705rm -f conftest.defines conftest.undefs
22706# Using a here document instead of a string reduces the quoting nightmare.
22707# Putting comments in sed scripts is not portable.
22708#
22709# `end' is used to avoid that the second main sed command (meant for
22710# 0-ary CPP macros) applies to n-ary macro definitions.
22711# See the Autoconf documentation for `clear'.
22712cat >confdef2sed.sed <<\_ACEOF
22713s/[\\&,]/\\&/g
22714s,[\\$`],\\&,g
22715t clear
22716: clear
22717s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22718t end
22719s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22720: end
22721_ACEOF
22722# If some macros were called several times there might be several times
22723# the same #defines, which is useless.  Nevertheless, we may not want to
22724# sort them, since we want the *last* AC-DEFINE to be honored.
22725uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22726sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22727rm -f confdef2sed.sed
22728
22729# This sed command replaces #undef with comments.  This is necessary, for
22730# example, in the case of _POSIX_SOURCE, which is predefined and required
22731# on some systems where configure will not decide to define it.
22732cat >>conftest.undefs <<\_ACEOF
22733s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22734_ACEOF
22735
22736# Break up conftest.defines because some shells have a limit on the size
22737# of here documents, and old seds have small limits too (100 cmds).
22738echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22739echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22740echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22741echo '  :' >>$CONFIG_STATUS
22742rm -f conftest.tail
22743while grep . conftest.defines >/dev/null
22744do
22745  # Write a limited-size here document to $tmp/defines.sed.
22746  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22747  # Speed up: don't consider the non `#define' lines.
22748  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22749  # Work around the forget-to-reset-the-flag bug.
22750  echo 't clr' >>$CONFIG_STATUS
22751  echo ': clr' >>$CONFIG_STATUS
22752  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22753  echo 'CEOF
22754  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22755  rm -f $tmp/in
22756  mv $tmp/out $tmp/in
22757' >>$CONFIG_STATUS
22758  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22759  rm -f conftest.defines
22760  mv conftest.tail conftest.defines
22761done
22762rm -f conftest.defines
22763echo '  fi # grep' >>$CONFIG_STATUS
22764echo >>$CONFIG_STATUS
22765
22766# Break up conftest.undefs because some shells have a limit on the size
22767# of here documents, and old seds have small limits too (100 cmds).
22768echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22769rm -f conftest.tail
22770while grep . conftest.undefs >/dev/null
22771do
22772  # Write a limited-size here document to $tmp/undefs.sed.
22773  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22774  # Speed up: don't consider the non `#undef'
22775  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22776  # Work around the forget-to-reset-the-flag bug.
22777  echo 't clr' >>$CONFIG_STATUS
22778  echo ': clr' >>$CONFIG_STATUS
22779  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22780  echo 'CEOF
22781  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22782  rm -f $tmp/in
22783  mv $tmp/out $tmp/in
22784' >>$CONFIG_STATUS
22785  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22786  rm -f conftest.undefs
22787  mv conftest.tail conftest.undefs
22788done
22789rm -f conftest.undefs
22790
22791cat >>$CONFIG_STATUS <<\_ACEOF
22792  # Let's still pretend it is `configure' which instantiates (i.e., don't
22793  # use $as_me), people would be surprised to read:
22794  #    /* config.h.  Generated by config.status.  */
22795  if test x"$ac_file" = x-; then
22796    echo "/* Generated by configure.  */" >$tmp/config.h
22797  else
22798    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22799  fi
22800  cat $tmp/in >>$tmp/config.h
22801  rm -f $tmp/in
22802  if test x"$ac_file" != x-; then
22803    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22804      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22805echo "$as_me: $ac_file is unchanged" >&6;}
22806    else
22807      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809	 X"$ac_file" : 'X\(//\)[^/]' \| \
22810	 X"$ac_file" : 'X\(//\)$' \| \
22811	 X"$ac_file" : 'X\(/\)' \| \
22812	 .     : '\(.\)' 2>/dev/null ||
22813echo X"$ac_file" |
22814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22815  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22816  	  /^X\(\/\/\)$/{ s//\1/; q; }
22817  	  /^X\(\/\).*/{ s//\1/; q; }
22818  	  s/.*/./; q'`
22819      { if $as_mkdir_p; then
22820    mkdir -p "$ac_dir"
22821  else
22822    as_dir="$ac_dir"
22823    as_dirs=
22824    while test ! -d "$as_dir"; do
22825      as_dirs="$as_dir $as_dirs"
22826      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22828	 X"$as_dir" : 'X\(//\)[^/]' \| \
22829	 X"$as_dir" : 'X\(//\)$' \| \
22830	 X"$as_dir" : 'X\(/\)' \| \
22831	 .     : '\(.\)' 2>/dev/null ||
22832echo X"$as_dir" |
22833    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22834  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22835  	  /^X\(\/\/\)$/{ s//\1/; q; }
22836  	  /^X\(\/\).*/{ s//\1/; q; }
22837  	  s/.*/./; q'`
22838    done
22839    test ! -n "$as_dirs" || mkdir $as_dirs
22840  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22842   { (exit 1); exit 1; }; }; }
22843
22844      rm -f $ac_file
22845      mv $tmp/config.h $ac_file
22846    fi
22847  else
22848    cat $tmp/config.h
22849    rm -f $tmp/config.h
22850  fi
22851# Compute $ac_file's index in $config_headers.
22852_am_stamp_count=1
22853for _am_header in $config_headers :; do
22854  case $_am_header in
22855    $ac_file | $ac_file:* )
22856      break ;;
22857    * )
22858      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22859  esac
22860done
22861echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22862$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22863	 X$ac_file : 'X\(//\)[^/]' \| \
22864	 X$ac_file : 'X\(//\)$' \| \
22865	 X$ac_file : 'X\(/\)' \| \
22866	 .     : '\(.\)' 2>/dev/null ||
22867echo X$ac_file |
22868    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22869  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22870  	  /^X\(\/\/\)$/{ s//\1/; q; }
22871  	  /^X\(\/\).*/{ s//\1/; q; }
22872  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22873done
22874_ACEOF
22875cat >>$CONFIG_STATUS <<\_ACEOF
22876
22877#
22878# CONFIG_COMMANDS section.
22879#
22880for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22881  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22882  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22883  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22884$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22885	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22886	 X"$ac_dest" : 'X\(//\)$' \| \
22887	 X"$ac_dest" : 'X\(/\)' \| \
22888	 .     : '\(.\)' 2>/dev/null ||
22889echo X"$ac_dest" |
22890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22891  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22892  	  /^X\(\/\/\)$/{ s//\1/; q; }
22893  	  /^X\(\/\).*/{ s//\1/; q; }
22894  	  s/.*/./; q'`
22895  { if $as_mkdir_p; then
22896    mkdir -p "$ac_dir"
22897  else
22898    as_dir="$ac_dir"
22899    as_dirs=
22900    while test ! -d "$as_dir"; do
22901      as_dirs="$as_dir $as_dirs"
22902      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904	 X"$as_dir" : 'X\(//\)[^/]' \| \
22905	 X"$as_dir" : 'X\(//\)$' \| \
22906	 X"$as_dir" : 'X\(/\)' \| \
22907	 .     : '\(.\)' 2>/dev/null ||
22908echo X"$as_dir" |
22909    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22910  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22911  	  /^X\(\/\/\)$/{ s//\1/; q; }
22912  	  /^X\(\/\).*/{ s//\1/; q; }
22913  	  s/.*/./; q'`
22914    done
22915    test ! -n "$as_dirs" || mkdir $as_dirs
22916  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22917echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22918   { (exit 1); exit 1; }; }; }
22919
22920  ac_builddir=.
22921
22922if test "$ac_dir" != .; then
22923  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22924  # A "../" for each directory in $ac_dir_suffix.
22925  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22926else
22927  ac_dir_suffix= ac_top_builddir=
22928fi
22929
22930case $srcdir in
22931  .)  # No --srcdir option.  We are building in place.
22932    ac_srcdir=.
22933    if test -z "$ac_top_builddir"; then
22934       ac_top_srcdir=.
22935    else
22936       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22937    fi ;;
22938  [\\/]* | ?:[\\/]* )  # Absolute path.
22939    ac_srcdir=$srcdir$ac_dir_suffix;
22940    ac_top_srcdir=$srcdir ;;
22941  *) # Relative path.
22942    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22943    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22944esac
22945
22946# Do not use `cd foo && pwd` to compute absolute paths, because
22947# the directories may not exist.
22948case `pwd` in
22949.) ac_abs_builddir="$ac_dir";;
22950*)
22951  case "$ac_dir" in
22952  .) ac_abs_builddir=`pwd`;;
22953  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22954  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22955  esac;;
22956esac
22957case $ac_abs_builddir in
22958.) ac_abs_top_builddir=${ac_top_builddir}.;;
22959*)
22960  case ${ac_top_builddir}. in
22961  .) ac_abs_top_builddir=$ac_abs_builddir;;
22962  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22963  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22964  esac;;
22965esac
22966case $ac_abs_builddir in
22967.) ac_abs_srcdir=$ac_srcdir;;
22968*)
22969  case $ac_srcdir in
22970  .) ac_abs_srcdir=$ac_abs_builddir;;
22971  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22972  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22973  esac;;
22974esac
22975case $ac_abs_builddir in
22976.) ac_abs_top_srcdir=$ac_top_srcdir;;
22977*)
22978  case $ac_top_srcdir in
22979  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22980  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22981  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22982  esac;;
22983esac
22984
22985
22986  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22987echo "$as_me: executing $ac_dest commands" >&6;}
22988  case $ac_dest in
22989    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22990  # Strip MF so we end up with the name of the file.
22991  mf=`echo "$mf" | sed -e 's/:.*$//'`
22992  # Check whether this is an Automake generated Makefile or not.
22993  # We used to match only the files named `Makefile.in', but
22994  # some people rename them; so instead we look at the file content.
22995  # Grep'ing the first line is not enough: some people post-process
22996  # each Makefile.in and add a new line on top of each file to say so.
22997  # So let's grep whole file.
22998  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22999    dirpart=`(dirname "$mf") 2>/dev/null ||
23000$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23001	 X"$mf" : 'X\(//\)[^/]' \| \
23002	 X"$mf" : 'X\(//\)$' \| \
23003	 X"$mf" : 'X\(/\)' \| \
23004	 .     : '\(.\)' 2>/dev/null ||
23005echo X"$mf" |
23006    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23007  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23008  	  /^X\(\/\/\)$/{ s//\1/; q; }
23009  	  /^X\(\/\).*/{ s//\1/; q; }
23010  	  s/.*/./; q'`
23011  else
23012    continue
23013  fi
23014  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23015  # Extract the definition of DEP_FILES from the Makefile without
23016  # running `make'.
23017  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23018  test -z "$DEPDIR" && continue
23019  # When using ansi2knr, U may be empty or an underscore; expand it
23020  U=`sed -n -e '/^U = / s///p' < "$mf"`
23021  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23022  # We invoke sed twice because it is the simplest approach to
23023  # changing $(DEPDIR) to its actual value in the expansion.
23024  for file in `sed -n -e '
23025    /^DEP_FILES = .*\\\\$/ {
23026      s/^DEP_FILES = //
23027      :loop
23028	s/\\\\$//
23029	p
23030	n
23031	/\\\\$/ b loop
23032      p
23033    }
23034    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23035       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23036    # Make sure the directory exists.
23037    test -f "$dirpart/$file" && continue
23038    fdir=`(dirname "$file") 2>/dev/null ||
23039$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040	 X"$file" : 'X\(//\)[^/]' \| \
23041	 X"$file" : 'X\(//\)$' \| \
23042	 X"$file" : 'X\(/\)' \| \
23043	 .     : '\(.\)' 2>/dev/null ||
23044echo X"$file" |
23045    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23046  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23047  	  /^X\(\/\/\)$/{ s//\1/; q; }
23048  	  /^X\(\/\).*/{ s//\1/; q; }
23049  	  s/.*/./; q'`
23050    { if $as_mkdir_p; then
23051    mkdir -p $dirpart/$fdir
23052  else
23053    as_dir=$dirpart/$fdir
23054    as_dirs=
23055    while test ! -d "$as_dir"; do
23056      as_dirs="$as_dir $as_dirs"
23057      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23059	 X"$as_dir" : 'X\(//\)[^/]' \| \
23060	 X"$as_dir" : 'X\(//\)$' \| \
23061	 X"$as_dir" : 'X\(/\)' \| \
23062	 .     : '\(.\)' 2>/dev/null ||
23063echo X"$as_dir" |
23064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23065  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23066  	  /^X\(\/\/\)$/{ s//\1/; q; }
23067  	  /^X\(\/\).*/{ s//\1/; q; }
23068  	  s/.*/./; q'`
23069    done
23070    test ! -n "$as_dirs" || mkdir $as_dirs
23071  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23072echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23073   { (exit 1); exit 1; }; }; }
23074
23075    # echo "creating $dirpart/$file"
23076    echo '# dummy' > "$dirpart/$file"
23077  done
23078done
23079 ;;
23080  esac
23081done
23082_ACEOF
23083
23084cat >>$CONFIG_STATUS <<\_ACEOF
23085
23086{ (exit 0); exit 0; }
23087_ACEOF
23088chmod +x $CONFIG_STATUS
23089ac_clean_files=$ac_clean_files_save
23090
23091
23092# configure is writing to config.log, and then calls config.status.
23093# config.status does its own redirection, appending to config.log.
23094# Unfortunately, on DOS this fails, as config.log is still kept open
23095# by configure, so config.status won't be able to write to it; its
23096# output is simply discarded.  So we exec the FD to /dev/null,
23097# effectively closing config.log, so it can be properly (re)opened and
23098# appended to by config.status.  When coming back to configure, we
23099# need to make the FD available again.
23100if test "$no_create" != yes; then
23101  ac_cs_success=:
23102  ac_config_status_args=
23103  test "$silent" = yes &&
23104    ac_config_status_args="$ac_config_status_args --quiet"
23105  exec 5>/dev/null
23106  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23107  exec 5>>config.log
23108  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23109  # would make configure fail if this is the last instruction.
23110  $ac_cs_success || { (exit 1); exit 1; }
23111fi
23112
23113