1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for demo 1.0.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='demo'
425PACKAGE_TARNAME='demo'
426PACKAGE_VERSION='1.0'
427PACKAGE_STRING='demo 1.0'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="hello.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS STATIC BINARY_HELLDL_TRUE BINARY_HELLDL_FALSE LIBM LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures demo 1.0 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of demo 1.0:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <bug-libtool@gnu.org>.
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071  # If there are subdirs, report their specific --help.
1072  ac_popdir=`pwd`
1073  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074    test -d $ac_dir || continue
1075    ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079  # A "../" for each directory in $ac_dir_suffix.
1080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082  ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086  .)  # No --srcdir option.  We are building in place.
1087    ac_srcdir=.
1088    if test -z "$ac_top_builddir"; then
1089       ac_top_srcdir=.
1090    else
1091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092    fi ;;
1093  [\\/]* | ?:[\\/]* )  # Absolute path.
1094    ac_srcdir=$srcdir$ac_dir_suffix;
1095    ac_top_srcdir=$srcdir ;;
1096  *) # Relative path.
1097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106  case "$ac_dir" in
1107  .) ac_abs_builddir=`pwd`;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110  esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115  case ${ac_top_builddir}. in
1116  .) ac_abs_top_builddir=$ac_abs_builddir;;
1117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119  esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124  case $ac_srcdir in
1125  .) ac_abs_srcdir=$ac_abs_builddir;;
1126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128  esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133  case $ac_top_srcdir in
1134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137  esac;;
1138esac
1139
1140    cd $ac_dir
1141    # Check for guested configure; otherwise get Cygnus style configure.
1142    if test -f $ac_srcdir/configure.gnu; then
1143      echo
1144      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145    elif test -f $ac_srcdir/configure; then
1146      echo
1147      $SHELL $ac_srcdir/configure  --help=recursive
1148    elif test -f $ac_srcdir/configure.ac ||
1149	   test -f $ac_srcdir/configure.in; then
1150      echo
1151      $ac_configure --help
1152    else
1153      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154    fi
1155    cd $ac_popdir
1156  done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161  cat <<\_ACEOF
1162demo configure 1.0
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169  exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by demo $as_me 1.0, which was
1177generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179  $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210  IFS=$as_save_IFS
1211  test -z "$as_dir" && as_dir=.
1212  echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239  for ac_arg
1240  do
1241    case $ac_arg in
1242    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244    | -silent | --silent | --silen | --sile | --sil)
1245      continue ;;
1246    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    esac
1249    case $ac_pass in
1250    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251    2)
1252      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253      if test $ac_must_keep_next = true; then
1254	ac_must_keep_next=false # Got value, back to normal.
1255      else
1256	case $ac_arg in
1257	  *=* | --config-cache | -C | -disable-* | --disable-* \
1258	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260	  | -with-* | --with-* | -without-* | --without-* | --x)
1261	    case "$ac_configure_args0 " in
1262	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263	    esac
1264	    ;;
1265	  -* ) ac_must_keep_next=true ;;
1266	esac
1267      fi
1268      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269      # Get rid of the leading space.
1270      ac_sep=" "
1271      ;;
1272    esac
1273  done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log.  We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284  # Save into config.log some information that might help in debugging.
1285  {
1286    echo
1287
1288    cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293    echo
1294    # The following way of writing the cache mishandles newlines in values,
1295{
1296  (set) 2>&1 |
1297    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298    *ac_space=\ *)
1299      sed -n \
1300	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302      ;;
1303    *)
1304      sed -n \
1305	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306      ;;
1307    esac;
1308}
1309    echo
1310
1311    cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316    echo
1317    for ac_var in $ac_subst_vars
1318    do
1319      eval ac_val=$`echo $ac_var`
1320      echo "$ac_var='"'"'$ac_val'"'"'"
1321    done | sort
1322    echo
1323
1324    if test -n "$ac_subst_files"; then
1325      cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330      echo
1331      for ac_var in $ac_subst_files
1332      do
1333	eval ac_val=$`echo $ac_var`
1334	echo "$ac_var='"'"'$ac_val'"'"'"
1335      done | sort
1336      echo
1337    fi
1338
1339    if test -s confdefs.h; then
1340      cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345      echo
1346      sed "/^$/d" confdefs.h | sort
1347      echo
1348    fi
1349    test "$ac_signal" != 0 &&
1350      echo "$as_me: caught signal $ac_signal"
1351    echo "$as_me: exit $exit_status"
1352  } >&5
1353  rm -f core *.core &&
1354  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355    exit $exit_status
1356     ' 0
1357for ac_signal in 1 2 13 15; do
1358  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397  if test "x$prefix" != xNONE; then
1398    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399  else
1400    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401  fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404  if test -r "$ac_site_file"; then
1405    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407    sed 's/^/| /' "$ac_site_file" >&5
1408    . "$ac_site_file"
1409  fi
1410done
1411
1412if test -r "$cache_file"; then
1413  # Some versions of bash will fail to source /dev/null (special
1414  # files actually), so we avoid doing that.
1415  if test -f "$cache_file"; then
1416    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418    case $cache_file in
1419      [\\/]* | ?:[\\/]* ) . $cache_file;;
1420      *)                      . ./$cache_file;;
1421    esac
1422  fi
1423else
1424  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426  >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435  eval ac_new_set=\$ac_env_${ac_var}_set
1436  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437  eval ac_new_val="\$ac_env_${ac_var}_value"
1438  case $ac_old_set,$ac_new_set in
1439    set,)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,set)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,);;
1448    *)
1449      if test "x$ac_old_val" != "x$ac_new_val"; then
1450	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453echo "$as_me:   former value:  $ac_old_val" >&2;}
1454	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455echo "$as_me:   current value: $ac_new_val" >&2;}
1456	ac_cache_corrupted=:
1457      fi;;
1458  esac
1459  # Pass precious variables to config.status.
1460  if test "$ac_new_set" = set; then
1461    case $ac_new_val in
1462    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464    *) ac_arg=$ac_var=$ac_new_val ;;
1465    esac
1466    case " $ac_configure_args " in
1467      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469    esac
1470  fi
1471done
1472if $ac_cache_corrupted; then
1473  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515## ------------------------ ##
1516## Automake Initialisation. ##
1517## ------------------------ ##
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521  if test -f $ac_dir/install-sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install-sh -c"
1524    break
1525  elif test -f $ac_dir/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program.  We prefer a C program (faster),
1545# so one script is as good as another.  But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570  ./ | .// | /cC/* | \
1571  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573  /usr/ucb/* ) ;;
1574  *)
1575    # OSF1 and SCO ODT 3.0 have their own names for install.
1576    # Don't use installbsd from OSF since it installs stuff as root
1577    # by default.
1578    for ac_prog in ginstall scoinst install; do
1579      for ac_exec_ext in '' $ac_executable_extensions; do
1580	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581	  if test $ac_prog = install &&
1582	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583	    # AIX install.  It has an incompatible calling convention.
1584	    :
1585	  elif test $ac_prog = install &&
1586	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587	    # program-specific install script used by HP pwplus--don't use.
1588	    :
1589	  else
1590	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591	    break 3
1592	  fi
1593	fi
1594      done
1595    done
1596    ;;
1597esac
1598done
1599
1600
1601fi
1602  if test "${ac_cv_path_install+set}" = set; then
1603    INSTALL=$ac_cv_path_install
1604  else
1605    # As a last resort, use the slow shell script.  We don't cache a
1606    # path for INSTALL within a source directory, because that will
1607    # break other packages using the cache if that directory is
1608    # removed, or if the path is relative.
1609    INSTALL=$ac_install_sh
1610  fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments.  Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635   if test "$*" = "X"; then
1636      # -L didn't work.
1637      set X `ls -t $srcdir/configure conftest.file`
1638   fi
1639   rm -f conftest.file
1640   if test "$*" != "X $srcdir/configure conftest.file" \
1641      && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643      # If neither matched, then we have a broken ls.  This can happen
1644      # if, for instance, CONFIG_SHELL is bash and it inherits a
1645      # broken ls alias from the environment.  This has actually
1646      # happened.  Such a system could not be considered "sane".
1647      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650alias in your environment" >&2;}
1651   { (exit 1); exit 1; }; }
1652   fi
1653
1654   test "$2" = conftest.file
1655   )
1656then
1657   # Ok.
1658   :
1659else
1660   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $.  echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687  am_missing_run="$MISSING --run "
1688else
1689  am_missing_run=
1690  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695  # We used to keeping the `.' as first argument, in order to
1696  # allow $(mkdir_p) to be used without argument.  As in
1697  #   $(mkdir_p) $(somedir)
1698  # where $(somedir) is conditionally defined.  However this is wrong
1699  # for two reasons:
1700  #  1. if the package is installed by a user who cannot write `.'
1701  #     make install will fail,
1702  #  2. the above comment should most certainly read
1703  #     $(mkdir_p) $(DESTDIR)$(somedir)
1704  #     so it does not work when $(somedir) is undefined and
1705  #     $(DESTDIR) is not.
1706  #  To support the latter case, we have to write
1707  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708  #  so the `.' trick is pointless.
1709  mkdir_p='mkdir -p --'
1710else
1711  # On NextStep and OpenStep, the `mkdir' command does not
1712  # recognize any option.  It will interpret all options as
1713  # directories to create, and then abort because `.' already
1714  # exists.
1715  for d in ./-p ./--version;
1716  do
1717    test -d $d && rmdir $d
1718  done
1719  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720  if test -f "$ac_aux_dir/mkinstalldirs"; then
1721    mkdir_p='$(mkinstalldirs)'
1722  else
1723    mkdir_p='$(install_sh) -d'
1724  fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729  # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734  echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736  if test -n "$AWK"; then
1737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742  IFS=$as_save_IFS
1743  test -z "$as_dir" && as_dir=.
1744  for ac_exec_ext in '' $ac_executable_extensions; do
1745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746    ac_cv_prog_AWK="$ac_prog"
1747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748    break 2
1749  fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757  echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760  echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764  test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  cat >conftest.make <<\_ACEOF
1774all:
1775	@echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780  eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782  eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787  echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789  SET_MAKE=
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793  SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799  am__leading_dot=.
1800else
1801  am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807   test -f $srcdir/config.status; then
1808  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810   { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815  if (cygpath --version) >/dev/null 2>/dev/null; then
1816    CYGPATH_W='cygpath -w'
1817  else
1818    CYGPATH_W=echo
1819  fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE=demo
1825 VERSION=1.0
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE "$PACKAGE"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define VERSION "$VERSION"
1835_ACEOF
1836
1837# Some tools Automake needs.
1838
1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840
1841
1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843
1844
1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846
1847
1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849
1850
1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852
1853install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854
1855# Installed binaries are usually stripped using `strip' when the user
1856# run `make install-strip'.  However `strip' might not be the right
1857# tool to use in cross-compilation environments, therefore Automake
1858# will honor the `STRIP' environment variable to overrule this program.
1859if test "$cross_compiling" != no; then
1860  if test -n "$ac_tool_prefix"; then
1861  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862set dummy ${ac_tool_prefix}strip; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_STRIP+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if test -n "$STRIP"; then
1869  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876  for ac_exec_ext in '' $ac_executable_extensions; do
1877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883done
1884
1885fi
1886fi
1887STRIP=$ac_cv_prog_STRIP
1888if test -n "$STRIP"; then
1889  echo "$as_me:$LINENO: result: $STRIP" >&5
1890echo "${ECHO_T}$STRIP" >&6
1891else
1892  echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$ac_cv_prog_STRIP"; then
1898  ac_ct_STRIP=$STRIP
1899  # Extract the first word of "strip", so it can be a program name with args.
1900set dummy strip; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$ac_ct_STRIP"; then
1907  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    ac_cv_prog_ac_ct_STRIP="strip"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924fi
1925fi
1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927if test -n "$ac_ct_STRIP"; then
1928  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929echo "${ECHO_T}$ac_ct_STRIP" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935  STRIP=$ac_ct_STRIP
1936else
1937  STRIP="$ac_cv_prog_STRIP"
1938fi
1939
1940fi
1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942
1943# We need awk for the "check" target.  The system "awk" is bad on
1944# some platforms.
1945# Always define AMTAR for backward compatibility.
1946
1947AMTAR=${AMTAR-"${am_missing_run}tar"}
1948
1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1950
1951
1952
1953
1954
1955
1956
1957## ---------------- ##
1958## compiler checks. ##
1959## ---------------- ##
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003  ac_ct_CC=$CC
2004  # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$ac_ct_CC"; then
2012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    ac_cv_prog_ac_ct_CC="gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035  echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039  CC=$ac_ct_CC
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045  if test -n "$ac_tool_prefix"; then
2046  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083  ac_ct_CC=$CC
2084  # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="cc"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  CC=$ac_ct_CC
2120else
2121  CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126  # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136  ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145       ac_prog_rejected=yes
2146       continue
2147     fi
2148    ac_cv_prog_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156  # We found a bogon in the path, so make sure we never use it.
2157  set dummy $ac_cv_prog_CC
2158  shift
2159  if test $# != 0; then
2160    # We chose a different compiler from the bogus one.
2161    # However, it has the same basename, so the bogon will be chosen
2162    # first if we set CC to just the basename; use the full file name.
2163    shift
2164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165  fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  for ac_prog in cl
2182  do
2183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$CC"; then
2191  ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    test -n "$CC" && break
2219  done
2220fi
2221if test -z "$CC"; then
2222  ac_ct_CC=$CC
2223  for ac_prog in cl
2224do
2225  # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$ac_ct_CC"; then
2233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_ac_ct_CC="$ac_prog"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260  test -n "$ac_ct_CC" && break
2261done
2262
2263  CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277     "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280  (eval $ac_compiler --version </dev/null >&5) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285  (eval $ac_compiler -v </dev/null >&5) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290  (eval $ac_compiler -V </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310ac_clean_files_save=$ac_clean_files
2311ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312# Try to create an executable without -o first, disregard a.out.
2313# It will help us diagnose broken compilers, and finding out an intuition
2314# of exeext.
2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319  (eval $ac_link_default) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # Find the output, starting from the most likely.  This scheme is
2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325# resort.
2326
2327# Be careful to initialize this variable, since it used to be cached.
2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329ac_cv_exeext=
2330# b.out is created by i960 compilers.
2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332do
2333  test -f "$ac_file" || continue
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336	;;
2337    conftest.$ac_ext )
2338	# This is the source file.
2339	;;
2340    [ab].out )
2341	# We found the default executable, but exeext='' is most
2342	# certainly right.
2343	break;;
2344    *.* )
2345	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346	# FIXME: I believe we export ac_cv_exeext for Libtool,
2347	# but it would be cool to find out if it's true.  Does anybody
2348	# maintain Libtool? --akim.
2349	export ac_cv_exeext
2350	break;;
2351    * )
2352	break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: C compiler cannot create executables
2362See \`config.log' for more details." >&2;}
2363   { (exit 77); exit 77; }; }
2364fi
2365
2366ac_exeext=$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6
2369
2370# Check the compiler produces executables we can run.  If not, either
2371# the compiler is broken, or we cross compile.
2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375# If not cross compiling, check that we can run a simple program.
2376if test "$cross_compiling" != yes; then
2377  if { ac_try='./$ac_file'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383    cross_compiling=no
2384  else
2385    if test "$cross_compiling" = maybe; then
2386	cross_compiling=yes
2387    else
2388	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389If you meant to cross compile, use \`--host'.
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395    fi
2396  fi
2397fi
2398echo "$as_me:$LINENO: result: yes" >&5
2399echo "${ECHO_T}yes" >&6
2400
2401rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402ac_clean_files=$ac_clean_files_save
2403# Check the compiler produces executables we can run.  If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408echo "${ECHO_T}$cross_compiling" >&6
2409
2410echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413  (eval $ac_link) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; then
2417  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419# work properly (i.e., refer to `conftest.exe'), while it won't with
2420# `rm'.
2421for ac_file in conftest.exe conftest conftest.*; do
2422  test -f "$ac_file" || continue
2423  case $ac_file in
2424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426	  export ac_cv_exeext
2427	  break;;
2428    * ) break;;
2429  esac
2430done
2431else
2432  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435See \`config.log' for more details." >&2;}
2436   { (exit 1); exit 1; }; }
2437fi
2438
2439rm -f conftest$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443rm -f conftest.$ac_ext
2444EXEEXT=$ac_cv_exeext
2445ac_exeext=$EXEEXT
2446echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448if test "${ac_cv_objext+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.o conftest.obj
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; then
2472  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473  case $ac_file in
2474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476       break;;
2477  esac
2478done
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512       choke me
2513#endif
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528	 { ac_try='test -z "$ac_c_werror_flag"
2529			 || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535	 { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_compiler_gnu=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_compiler_gnu=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554GCC=`test $ac_compiler_gnu = yes && echo yes`
2555ac_test_CFLAGS=${CFLAGS+set}
2556ac_save_CFLAGS=$CFLAGS
2557CFLAGS="-g"
2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560if test "${ac_cv_prog_cc_g+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570int
2571main ()
2572{
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest.$ac_objext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_prog_cc_g=yes
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605ac_cv_prog_cc_g=no
2606fi
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611if test "$ac_test_CFLAGS" = set; then
2612  CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614  if test "$GCC" = yes; then
2615    CFLAGS="-g -O2"
2616  else
2617    CFLAGS="-g"
2618  fi
2619else
2620  if test "$GCC" = yes; then
2621    CFLAGS="-O2"
2622  else
2623    CFLAGS=
2624  fi
2625fi
2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  ac_cv_prog_cc_stdc=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647     char **p;
2648     int i;
2649{
2650  return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654  char *s;
2655  va_list v;
2656  va_start (v,p);
2657  s = g (p, va_arg (v,int));
2658  va_end (v);
2659  return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663   function prototypes and stuff, but not '\xHH' hex character constants.
2664   These don't provoke an error unfortunately, instead are silently treated
2665   as 'x'.  The following induces an error, until -std1 is added to get
2666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667   array size at least.  It's necessary to write '\x00'==0 to get something
2668   that's true only with -std1.  */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671int test (int i, double x);
2672struct s1 {int (*f) (int a);};
2673struct s2 {int (*f) (double a);};
2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675int argc;
2676char **argv;
2677int
2678main ()
2679{
2680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685# Don't try gcc -ansi; that turns off useful extensions and
2686# breaks some systems' header files.
2687# AIX			-qlanglvl=ansi
2688# Ultrix and OSF/1	-std1
2689# HP-UX 10.20 and later	-Ae
2690# HP-UX older versions	-Aa -D_HPUX_SOURCE
2691# SVR4			-Xc -D__EXTENSIONS__
2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693do
2694  CC="$ac_save_CC $ac_arg"
2695  rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732  x|xno)
2733    echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735  *)
2736    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738    CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C.  Since we use `exit',
2742# in C++ we need to declare it.  In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747  choke me
2748#endif
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"
2760			 || test ! -s conftest.err'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; } &&
2766	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2772  for ac_declaration in \
2773   '' \
2774   'extern "C" void std::exit (int) throw (); using std::exit;' \
2775   'extern "C" void std::exit (int); using std::exit;' \
2776   'extern "C" void exit (int) throw ();' \
2777   'extern "C" void exit (int);' \
2778   'void exit (int);'
2779do
2780  cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786$ac_declaration
2787#include <stdlib.h>
2788int
2789main ()
2790{
2791exit (42);
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"
2806			 || test ! -s conftest.err'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; } &&
2812	 { ac_try='test -s conftest.$ac_objext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  :
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823continue
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832$ac_declaration
2833int
2834main ()
2835{
2836exit (42);
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843  (eval $ac_compile) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850	 { ac_try='test -z "$ac_c_werror_flag"
2851			 || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857	 { ac_try='test -s conftest.$ac_objext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  break
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870done
2871rm -f conftest*
2872if test -n "$ac_declaration"; then
2873  echo '#ifdef __cplusplus' >>confdefs.h
2874  echo $ac_declaration      >>confdefs.h
2875  echo '#endif'             >>confdefs.h
2876fi
2877
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889DEPDIR="${am__leading_dot}deps"
2890
2891          ac_config_commands="$ac_config_commands depfiles"
2892
2893
2894am_make=${MAKE-make}
2895cat > confinc << 'END'
2896am__doit:
2897	@echo done
2898.PHONY: am__doit
2899END
2900# If we don't find an include directive, just comment out the code.
2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2903am__include="#"
2904am__quote=
2905_am_result=none
2906# First try GNU make style include.
2907echo "include confinc" > confmf
2908# We grep out `Entering directory' and `Leaving directory'
2909# messages which can occur if `w' ends up in MAKEFLAGS.
2910# In particular we don't look at `^make:' because GNU make might
2911# be invoked under some other name (usually "gmake"), in which
2912# case it prints its new name instead of `make'.
2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914   am__include=include
2915   am__quote=
2916   _am_result=GNU
2917fi
2918# Now try BSD make style include.
2919if test "$am__include" = "#"; then
2920   echo '.include "confinc"' > confmf
2921   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2922      am__include=.include
2923      am__quote="\""
2924      _am_result=BSD
2925   fi
2926fi
2927
2928
2929echo "$as_me:$LINENO: result: $_am_result" >&5
2930echo "${ECHO_T}$_am_result" >&6
2931rm -f confinc confmf
2932
2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2934if test "${enable_dependency_tracking+set}" = set; then
2935  enableval="$enable_dependency_tracking"
2936
2937fi;
2938if test "x$enable_dependency_tracking" != xno; then
2939  am_depcomp="$ac_aux_dir/depcomp"
2940  AMDEPBACKSLASH='\'
2941fi
2942
2943
2944if test "x$enable_dependency_tracking" != xno; then
2945  AMDEP_TRUE=
2946  AMDEP_FALSE='#'
2947else
2948  AMDEP_TRUE='#'
2949  AMDEP_FALSE=
2950fi
2951
2952
2953
2954
2955depcc="$CC"   am_compiler_list=
2956
2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2963  # We make a subdir and do the tests there.  Otherwise we can end up
2964  # making bogus files that we don't know about and never remove.  For
2965  # instance it was reported that on HP-UX the gcc test will end up
2966  # making a dummy file named `D' -- because `-MD' means `put the output
2967  # in D'.
2968  mkdir conftest.dir
2969  # Copy depcomp to subdir because otherwise we won't find it if we're
2970  # using a relative directory.
2971  cp "$am_depcomp" conftest.dir
2972  cd conftest.dir
2973  # We will build objects and dependencies in a subdirectory because
2974  # it helps to detect inapplicable dependency modes.  For instance
2975  # both Tru64's cc and ICC support -MD to output dependencies as a
2976  # side effect of compilation, but ICC will put the dependencies in
2977  # the current directory while Tru64 will put them in the object
2978  # directory.
2979  mkdir sub
2980
2981  am_cv_CC_dependencies_compiler_type=none
2982  if test "$am_compiler_list" = ""; then
2983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2984  fi
2985  for depmode in $am_compiler_list; do
2986    # Setup a source with many dependencies, because some compilers
2987    # like to wrap large dependency lists on column 80 (with \), and
2988    # we should not choose a depcomp mode which is confused by this.
2989    #
2990    # We need to recreate these files for each test, as the compiler may
2991    # overwrite some of them when testing with obscure command lines.
2992    # This happens at least with the AIX C compiler.
2993    : > sub/conftest.c
2994    for i in 1 2 3 4 5 6; do
2995      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2996      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2997      # Solaris 8's {/usr,}/bin/sh.
2998      touch sub/conftst$i.h
2999    done
3000    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002    case $depmode in
3003    nosideeffect)
3004      # after this tag, mechanisms are not by side-effect, so they'll
3005      # only be used when explicitly requested
3006      if test "x$enable_dependency_tracking" = xyes; then
3007	continue
3008      else
3009	break
3010      fi
3011      ;;
3012    none) break ;;
3013    esac
3014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015    # mode.  It turns out that the SunPro C++ compiler does not properly
3016    # handle `-M -o', and we need to detect this.
3017    if depmode=$depmode \
3018       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021         >/dev/null 2>conftest.err &&
3022       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025      # icc doesn't choke on unknown options, it will just issue warnings
3026      # or remarks (even with -Werror).  So we grep stderr for any message
3027      # that says an option was ignored or not supported.
3028      # When given -MP, icc 7.0 and 7.1 complain thusly:
3029      #   icc: Command line warning: ignoring option '-M'; no argument required
3030      # The diagnosis changed in icc 8.0:
3031      #   icc: Command line remark: option '-MP' not supported
3032      if (grep 'ignoring option' conftest.err ||
3033          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3034        am_cv_CC_dependencies_compiler_type=$depmode
3035        break
3036      fi
3037    fi
3038  done
3039
3040  cd ..
3041  rm -rf conftest.dir
3042else
3043  am_cv_CC_dependencies_compiler_type=none
3044fi
3045
3046fi
3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
3051
3052
3053if
3054  test "x$enable_dependency_tracking" != xno \
3055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3056  am__fastdepCC_TRUE=
3057  am__fastdepCC_FALSE='#'
3058else
3059  am__fastdepCC_TRUE='#'
3060  am__fastdepCC_FALSE=
3061fi
3062
3063
3064
3065echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3066echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3067if test "${ac_cv_c_const+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080/* FIXME: Include the comments suggested by Paul. */
3081#ifndef __cplusplus
3082  /* Ultrix mips cc rejects this.  */
3083  typedef int charset[2];
3084  const charset x;
3085  /* SunOS 4.1.1 cc rejects this.  */
3086  char const *const *ccp;
3087  char **p;
3088  /* NEC SVR4.0.2 mips cc rejects this.  */
3089  struct point {int x, y;};
3090  static struct point const zero = {0,0};
3091  /* AIX XL C 1.02.0.0 rejects this.
3092     It does not let you subtract one const X* pointer from another in
3093     an arm of an if-expression whose if-part is not a constant
3094     expression */
3095  const char *g = "string";
3096  ccp = &g + (g ? g-g : 0);
3097  /* HPUX 7.0 cc rejects these. */
3098  ++ccp;
3099  p = (char**) ccp;
3100  ccp = (char const *const *) p;
3101  { /* SCO 3.2v4 cc rejects this.  */
3102    char *t;
3103    char const *s = 0 ? (char *) 0 : (char const *) 0;
3104
3105    *t++ = 0;
3106  }
3107  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3108    int x[] = {25, 17};
3109    const int *foo = &x[0];
3110    ++foo;
3111  }
3112  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3113    typedef const int *iptr;
3114    iptr p = 0;
3115    ++p;
3116  }
3117  { /* AIX XL C 1.02.0.0 rejects this saying
3118       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3119    struct s { int j; const int *ap[3]; };
3120    struct s *b; b->j = 5;
3121  }
3122  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3123    const int foo = 10;
3124  }
3125#endif
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133  (eval $ac_compile) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } &&
3140	 { ac_try='test -z "$ac_c_werror_flag"
3141			 || test ! -s conftest.err'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; } &&
3147	 { ac_try='test -s conftest.$ac_objext'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; }; then
3153  ac_cv_c_const=yes
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158ac_cv_c_const=no
3159fi
3160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3161fi
3162echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3163echo "${ECHO_T}$ac_cv_c_const" >&6
3164if test $ac_cv_c_const = no; then
3165
3166cat >>confdefs.h <<\_ACEOF
3167#define const
3168_ACEOF
3169
3170fi
3171
3172
3173
3174
3175## ----------------------- ##
3176## Libtool initialisation. ##
3177## ----------------------- ##
3178
3179
3180
3181
3182# Check whether --enable-shared or --disable-shared was given.
3183if test "${enable_shared+set}" = set; then
3184  enableval="$enable_shared"
3185  p=${PACKAGE-default}
3186    case $enableval in
3187    yes) enable_shared=yes ;;
3188    no) enable_shared=no ;;
3189    *)
3190      enable_shared=no
3191      # Look at the argument we got.  We use all the common list separators.
3192      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3193      for pkg in $enableval; do
3194	IFS="$lt_save_ifs"
3195	if test "X$pkg" = "X$p"; then
3196	  enable_shared=yes
3197	fi
3198      done
3199      IFS="$lt_save_ifs"
3200      ;;
3201    esac
3202else
3203  enable_shared=yes
3204fi;
3205
3206# Check whether --enable-static or --disable-static was given.
3207if test "${enable_static+set}" = set; then
3208  enableval="$enable_static"
3209  p=${PACKAGE-default}
3210    case $enableval in
3211    yes) enable_static=yes ;;
3212    no) enable_static=no ;;
3213    *)
3214     enable_static=no
3215      # Look at the argument we got.  We use all the common list separators.
3216      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3217      for pkg in $enableval; do
3218	IFS="$lt_save_ifs"
3219	if test "X$pkg" = "X$p"; then
3220	  enable_static=yes
3221	fi
3222      done
3223      IFS="$lt_save_ifs"
3224      ;;
3225    esac
3226else
3227  enable_static=yes
3228fi;
3229
3230# Check whether --enable-fast-install or --disable-fast-install was given.
3231if test "${enable_fast_install+set}" = set; then
3232  enableval="$enable_fast_install"
3233  p=${PACKAGE-default}
3234    case $enableval in
3235    yes) enable_fast_install=yes ;;
3236    no) enable_fast_install=no ;;
3237    *)
3238      enable_fast_install=no
3239      # Look at the argument we got.  We use all the common list separators.
3240      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3241      for pkg in $enableval; do
3242	IFS="$lt_save_ifs"
3243	if test "X$pkg" = "X$p"; then
3244	  enable_fast_install=yes
3245	fi
3246      done
3247      IFS="$lt_save_ifs"
3248      ;;
3249    esac
3250else
3251  enable_fast_install=yes
3252fi;
3253
3254# Make sure we can run config.sub.
3255$ac_config_sub sun4 >/dev/null 2>&1 ||
3256  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3257echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3258   { (exit 1); exit 1; }; }
3259
3260echo "$as_me:$LINENO: checking build system type" >&5
3261echo $ECHO_N "checking build system type... $ECHO_C" >&6
3262if test "${ac_cv_build+set}" = set; then
3263  echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265  ac_cv_build_alias=$build_alias
3266test -z "$ac_cv_build_alias" &&
3267  ac_cv_build_alias=`$ac_config_guess`
3268test -z "$ac_cv_build_alias" &&
3269  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3270echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3271   { (exit 1); exit 1; }; }
3272ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3273  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3274echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3275   { (exit 1); exit 1; }; }
3276
3277fi
3278echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3279echo "${ECHO_T}$ac_cv_build" >&6
3280build=$ac_cv_build
3281build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3282build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3283build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3284
3285
3286echo "$as_me:$LINENO: checking host system type" >&5
3287echo $ECHO_N "checking host system type... $ECHO_C" >&6
3288if test "${ac_cv_host+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  ac_cv_host_alias=$host_alias
3292test -z "$ac_cv_host_alias" &&
3293  ac_cv_host_alias=$ac_cv_build_alias
3294ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3295  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3296echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3297   { (exit 1); exit 1; }; }
3298
3299fi
3300echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3301echo "${ECHO_T}$ac_cv_host" >&6
3302host=$ac_cv_host
3303host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3304host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3305host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3306
3307
3308echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3309echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3310if test "${lt_cv_path_SED+set}" = set; then
3311  echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313  # Loop through the user's path and test for sed and gsed.
3314# Then use that list of sed's as ones to test for truncation.
3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH
3317do
3318  IFS=$as_save_IFS
3319  test -z "$as_dir" && as_dir=.
3320  for lt_ac_prog in sed gsed; do
3321    for ac_exec_ext in '' $ac_executable_extensions; do
3322      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3323        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3324      fi
3325    done
3326  done
3327done
3328lt_ac_max=0
3329lt_ac_count=0
3330# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3331# along with /bin/sed that truncates output.
3332for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3333  test ! -f $lt_ac_sed && continue
3334  cat /dev/null > conftest.in
3335  lt_ac_count=0
3336  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3337  # Check for GNU sed and select it if it is found.
3338  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3339    lt_cv_path_SED=$lt_ac_sed
3340    break
3341  fi
3342  while true; do
3343    cat conftest.in conftest.in >conftest.tmp
3344    mv conftest.tmp conftest.in
3345    cp conftest.in conftest.nl
3346    echo >>conftest.nl
3347    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3348    cmp -s conftest.out conftest.nl || break
3349    # 10000 chars as input seems more than enough
3350    test $lt_ac_count -gt 10 && break
3351    lt_ac_count=`expr $lt_ac_count + 1`
3352    if test $lt_ac_count -gt $lt_ac_max; then
3353      lt_ac_max=$lt_ac_count
3354      lt_cv_path_SED=$lt_ac_sed
3355    fi
3356  done
3357done
3358
3359fi
3360
3361SED=$lt_cv_path_SED
3362echo "$as_me:$LINENO: result: $SED" >&5
3363echo "${ECHO_T}$SED" >&6
3364
3365echo "$as_me:$LINENO: checking for egrep" >&5
3366echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3367if test "${ac_cv_prog_egrep+set}" = set; then
3368  echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3371    then ac_cv_prog_egrep='grep -E'
3372    else ac_cv_prog_egrep='egrep'
3373    fi
3374fi
3375echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3376echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3377 EGREP=$ac_cv_prog_egrep
3378
3379
3380
3381# Check whether --with-gnu-ld or --without-gnu-ld was given.
3382if test "${with_gnu_ld+set}" = set; then
3383  withval="$with_gnu_ld"
3384  test "$withval" = no || with_gnu_ld=yes
3385else
3386  with_gnu_ld=no
3387fi;
3388ac_prog=ld
3389if test "$GCC" = yes; then
3390  # Check if gcc -print-prog-name=ld gives a path.
3391  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3392echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3393  case $host in
3394  *-*-mingw*)
3395    # gcc leaves a trailing carriage return which upsets mingw
3396    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3397  *)
3398    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3399  esac
3400  case $ac_prog in
3401    # Accept absolute paths.
3402    [\\/]* | ?:[\\/]*)
3403      re_direlt='/[^/][^/]*/\.\./'
3404      # Canonicalize the pathname of ld
3405      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3406      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3407	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3408      done
3409      test -z "$LD" && LD="$ac_prog"
3410      ;;
3411  "")
3412    # If it fails, then pretend we aren't using GCC.
3413    ac_prog=ld
3414    ;;
3415  *)
3416    # If it is relative, then search for the first ld in PATH.
3417    with_gnu_ld=unknown
3418    ;;
3419  esac
3420elif test "$with_gnu_ld" = yes; then
3421  echo "$as_me:$LINENO: checking for GNU ld" >&5
3422echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3423else
3424  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3425echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3426fi
3427if test "${lt_cv_path_LD+set}" = set; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430  if test -z "$LD"; then
3431  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432  for ac_dir in $PATH; do
3433    IFS="$lt_save_ifs"
3434    test -z "$ac_dir" && ac_dir=.
3435    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3436      lt_cv_path_LD="$ac_dir/$ac_prog"
3437      # Check to see if the program is GNU ld.  I'd rather use --version,
3438      # but apparently some variants of GNU ld only accept -v.
3439      # Break only if it was the GNU/non-GNU ld that we prefer.
3440      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3441      *GNU* | *'with BFD'*)
3442	test "$with_gnu_ld" != no && break
3443	;;
3444      *)
3445	test "$with_gnu_ld" != yes && break
3446	;;
3447      esac
3448    fi
3449  done
3450  IFS="$lt_save_ifs"
3451else
3452  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3453fi
3454fi
3455
3456LD="$lt_cv_path_LD"
3457if test -n "$LD"; then
3458  echo "$as_me:$LINENO: result: $LD" >&5
3459echo "${ECHO_T}$LD" >&6
3460else
3461  echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
3463fi
3464test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3465echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3466   { (exit 1); exit 1; }; }
3467echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3468echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3469if test "${lt_cv_prog_gnu_ld+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3473case `$LD -v 2>&1 </dev/null` in
3474*GNU* | *'with BFD'*)
3475  lt_cv_prog_gnu_ld=yes
3476  ;;
3477*)
3478  lt_cv_prog_gnu_ld=no
3479  ;;
3480esac
3481fi
3482echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3483echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3484with_gnu_ld=$lt_cv_prog_gnu_ld
3485
3486
3487echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3488echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3489if test "${lt_cv_ld_reload_flag+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  lt_cv_ld_reload_flag='-r'
3493fi
3494echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3495echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3496reload_flag=$lt_cv_ld_reload_flag
3497case $reload_flag in
3498"" | " "*) ;;
3499*) reload_flag=" $reload_flag" ;;
3500esac
3501reload_cmds='$LD$reload_flag -o $output$reload_objs'
3502case $host_os in
3503  darwin*)
3504    if test "$GCC" = yes; then
3505      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3506    else
3507      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3508    fi
3509    ;;
3510esac
3511
3512echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3513echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3514if test "${lt_cv_path_NM+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  if test -n "$NM"; then
3518  # Let the user override the test.
3519  lt_cv_path_NM="$NM"
3520else
3521  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3522  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3523    IFS="$lt_save_ifs"
3524    test -z "$ac_dir" && ac_dir=.
3525    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3526    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3527      # Check to see if the nm accepts a BSD-compat flag.
3528      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3529      #   nm: unknown option "B" ignored
3530      # Tru64's nm complains that /dev/null is an invalid object file
3531      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3532      */dev/null* | *'Invalid file or object type'*)
3533	lt_cv_path_NM="$tmp_nm -B"
3534	break
3535        ;;
3536      *)
3537	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3538	*/dev/null*)
3539	  lt_cv_path_NM="$tmp_nm -p"
3540	  break
3541	  ;;
3542	*)
3543	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3544	  continue # so that we can try to find one that supports BSD flags
3545	  ;;
3546	esac
3547      esac
3548    fi
3549  done
3550  IFS="$lt_save_ifs"
3551  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3552fi
3553fi
3554echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3555echo "${ECHO_T}$lt_cv_path_NM" >&6
3556NM="$lt_cv_path_NM"
3557
3558echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560LN_S=$as_ln_s
3561if test "$LN_S" = "ln -s"; then
3562  echo "$as_me:$LINENO: result: yes" >&5
3563echo "${ECHO_T}yes" >&6
3564else
3565  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566echo "${ECHO_T}no, using $LN_S" >&6
3567fi
3568
3569echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3570echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3571if test "${lt_cv_deplibs_check_method+set}" = set; then
3572  echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574  lt_cv_file_magic_cmd='$MAGIC_CMD'
3575lt_cv_file_magic_test_file=
3576lt_cv_deplibs_check_method='unknown'
3577# Need to set the preceding variable on all platforms that support
3578# interlibrary dependencies.
3579# 'none' -- dependencies not supported.
3580# `unknown' -- same as none, but documents that we really don't know.
3581# 'pass_all' -- all dependencies passed with no checks.
3582# 'test_compile' -- check by making test program.
3583# 'file_magic [[regex]]' -- check by looking for files in library path
3584# which responds to the $file_magic_cmd with a given extended regex.
3585# If you have `file' or equivalent on your system and you're not sure
3586# whether `pass_all' will *always* work, you probably want this one.
3587
3588case $host_os in
3589aix4* | aix5*)
3590  lt_cv_deplibs_check_method=pass_all
3591  ;;
3592
3593beos*)
3594  lt_cv_deplibs_check_method=pass_all
3595  ;;
3596
3597bsdi[45]*)
3598  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3599  lt_cv_file_magic_cmd='/usr/bin/file -L'
3600  lt_cv_file_magic_test_file=/shlib/libc.so
3601  ;;
3602
3603cygwin*)
3604  # func_win32_libid is a shell function defined in ltmain.sh
3605  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3606  lt_cv_file_magic_cmd='func_win32_libid'
3607  ;;
3608
3609mingw* | pw32*)
3610  # Base MSYS/MinGW do not provide the 'file' command needed by
3611  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3612  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3613  lt_cv_file_magic_cmd='$OBJDUMP -f'
3614  ;;
3615
3616darwin* | rhapsody*)
3617  lt_cv_deplibs_check_method=pass_all
3618  ;;
3619
3620freebsd* | kfreebsd*-gnu | dragonfly*)
3621  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3622    case $host_cpu in
3623    i*86 )
3624      # Not sure whether the presence of OpenBSD here was a mistake.
3625      # Let's accept both of them until this is cleared up.
3626      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3627      lt_cv_file_magic_cmd=/usr/bin/file
3628      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3629      ;;
3630    esac
3631  else
3632    lt_cv_deplibs_check_method=pass_all
3633  fi
3634  ;;
3635
3636gnu*)
3637  lt_cv_deplibs_check_method=pass_all
3638  ;;
3639
3640haiku*)
3641  lt_cv_deplibs_check_method=pass_all
3642  ;;
3643
3644hpux10.20* | hpux11*)
3645  lt_cv_file_magic_cmd=/usr/bin/file
3646  case $host_cpu in
3647  ia64*)
3648    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3649    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3650    ;;
3651  hppa*64*)
3652    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]'
3653    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3654    ;;
3655  *)
3656    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3657    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3658    ;;
3659  esac
3660  ;;
3661
3662irix5* | irix6* | nonstopux*)
3663  case $LD in
3664  *-32|*"-32 ") libmagic=32-bit;;
3665  *-n32|*"-n32 ") libmagic=N32;;
3666  *-64|*"-64 ") libmagic=64-bit;;
3667  *) libmagic=never-match;;
3668  esac
3669  lt_cv_deplibs_check_method=pass_all
3670  ;;
3671
3672# This must be Linux ELF.
3673linux*)
3674  lt_cv_deplibs_check_method=pass_all
3675  ;;
3676
3677netbsd*)
3678  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3679    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3680  else
3681    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3682  fi
3683  ;;
3684
3685newos6*)
3686  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3687  lt_cv_file_magic_cmd=/usr/bin/file
3688  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3689  ;;
3690
3691nto-qnx*)
3692  lt_cv_deplibs_check_method=unknown
3693  ;;
3694
3695openbsd*)
3696  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3697    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3698  else
3699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3700  fi
3701  ;;
3702
3703osf3* | osf4* | osf5*)
3704  lt_cv_deplibs_check_method=pass_all
3705  ;;
3706
3707sco3.2v5*)
3708  lt_cv_deplibs_check_method=pass_all
3709  ;;
3710
3711solaris*)
3712  lt_cv_deplibs_check_method=pass_all
3713  ;;
3714
3715sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3716  case $host_vendor in
3717  motorola)
3718    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]'
3719    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3720    ;;
3721  ncr)
3722    lt_cv_deplibs_check_method=pass_all
3723    ;;
3724  sequent)
3725    lt_cv_file_magic_cmd='/bin/file'
3726    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3727    ;;
3728  sni)
3729    lt_cv_file_magic_cmd='/bin/file'
3730    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3731    lt_cv_file_magic_test_file=/lib/libc.so
3732    ;;
3733  siemens)
3734    lt_cv_deplibs_check_method=pass_all
3735    ;;
3736  esac
3737  ;;
3738
3739sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3740  lt_cv_deplibs_check_method=pass_all
3741  ;;
3742esac
3743
3744fi
3745echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3746echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3747file_magic_cmd=$lt_cv_file_magic_cmd
3748deplibs_check_method=$lt_cv_deplibs_check_method
3749test -z "$deplibs_check_method" && deplibs_check_method=unknown
3750
3751
3752
3753# If no C compiler was specified, use CC.
3754LTCC=${LTCC-"$CC"}
3755
3756# Allow CC to be a program name with arguments.
3757compiler=$CC
3758
3759# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3760if test "${enable_libtool_lock+set}" = set; then
3761  enableval="$enable_libtool_lock"
3762
3763fi;
3764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3765
3766# Some flags need to be propagated to the compiler or linker for good
3767# libtool support.
3768case $host in
3769ia64-*-hpux*)
3770  # Find out which ABI we are using.
3771  echo 'int i;' > conftest.$ac_ext
3772  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773  (eval $ac_compile) 2>&5
3774  ac_status=$?
3775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776  (exit $ac_status); }; then
3777    case `/usr/bin/file conftest.$ac_objext` in
3778    *ELF-32*)
3779      HPUX_IA64_MODE="32"
3780      ;;
3781    *ELF-64*)
3782      HPUX_IA64_MODE="64"
3783      ;;
3784    esac
3785  fi
3786  rm -rf conftest*
3787  ;;
3788*-*-irix6*)
3789  # Find out which ABI we are using.
3790  echo '#line 3790 "configure"' > conftest.$ac_ext
3791  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792  (eval $ac_compile) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; then
3796   if test "$lt_cv_prog_gnu_ld" = yes; then
3797    case `/usr/bin/file conftest.$ac_objext` in
3798    *32-bit*)
3799      LD="${LD-ld} -melf32bsmip"
3800      ;;
3801    *N32*)
3802      LD="${LD-ld} -melf32bmipn32"
3803      ;;
3804    *64-bit*)
3805      LD="${LD-ld} -melf64bmip"
3806      ;;
3807    esac
3808   else
3809    case `/usr/bin/file conftest.$ac_objext` in
3810    *32-bit*)
3811      LD="${LD-ld} -32"
3812      ;;
3813    *N32*)
3814      LD="${LD-ld} -n32"
3815      ;;
3816    *64-bit*)
3817      LD="${LD-ld} -64"
3818      ;;
3819    esac
3820   fi
3821  fi
3822  rm -rf conftest*
3823  ;;
3824
3825x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3826  # Find out which ABI we are using.
3827  echo 'int i;' > conftest.$ac_ext
3828  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829  (eval $ac_compile) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); }; then
3833    case `/usr/bin/file conftest.o` in
3834    *32-bit*)
3835      case $host in
3836        x86_64-*linux*)
3837          LD="${LD-ld} -m elf_i386"
3838          ;;
3839        ppc64-*linux*|powerpc64-*linux*)
3840          LD="${LD-ld} -m elf32ppclinux"
3841          ;;
3842        s390x-*linux*)
3843          LD="${LD-ld} -m elf_s390"
3844          ;;
3845        sparc64-*linux*)
3846          LD="${LD-ld} -m elf32_sparc"
3847          ;;
3848      esac
3849      ;;
3850    *64-bit*)
3851      case $host in
3852        x86_64-*linux*)
3853          LD="${LD-ld} -m elf_x86_64"
3854          ;;
3855        ppc*-*linux*|powerpc*-*linux*)
3856          LD="${LD-ld} -m elf64ppc"
3857          ;;
3858        s390*-*linux*)
3859          LD="${LD-ld} -m elf64_s390"
3860          ;;
3861        sparc*-*linux*)
3862          LD="${LD-ld} -m elf64_sparc"
3863          ;;
3864      esac
3865      ;;
3866    esac
3867  fi
3868  rm -rf conftest*
3869  ;;
3870
3871*-*-sco3.2v5*)
3872  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3873  SAVE_CFLAGS="$CFLAGS"
3874  CFLAGS="$CFLAGS -belf"
3875  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3876echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3877if test "${lt_cv_cc_needs_belf+set}" = set; then
3878  echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880  ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886     cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h.  */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h.  */
3892
3893int
3894main ()
3895{
3896
3897  ;
3898  return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903  (eval $ac_link) 2>conftest.er1
3904  ac_status=$?
3905  grep -v '^ *+' conftest.er1 >conftest.err
3906  rm -f conftest.er1
3907  cat conftest.err >&5
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); } &&
3910	 { ac_try='test -z "$ac_c_werror_flag"
3911			 || test ! -s conftest.err'
3912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913  (eval $ac_try) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; } &&
3917	 { ac_try='test -s conftest$ac_exeext'
3918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919  (eval $ac_try) 2>&5
3920  ac_status=$?
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); }; }; then
3923  lt_cv_cc_needs_belf=yes
3924else
3925  echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928lt_cv_cc_needs_belf=no
3929fi
3930rm -f conftest.err conftest.$ac_objext \
3931      conftest$ac_exeext conftest.$ac_ext
3932     ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938fi
3939echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3940echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3941  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3942    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3943    CFLAGS="$SAVE_CFLAGS"
3944  fi
3945  ;;
3946*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3947  if test -n "$ac_tool_prefix"; then
3948  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3949set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3950echo "$as_me:$LINENO: checking for $ac_word" >&5
3951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  if test -n "$DLLTOOL"; then
3956  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  test -z "$as_dir" && as_dir=.
3963  for ac_exec_ext in '' $ac_executable_extensions; do
3964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967    break 2
3968  fi
3969done
3970done
3971
3972fi
3973fi
3974DLLTOOL=$ac_cv_prog_DLLTOOL
3975if test -n "$DLLTOOL"; then
3976  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3977echo "${ECHO_T}$DLLTOOL" >&6
3978else
3979  echo "$as_me:$LINENO: result: no" >&5
3980echo "${ECHO_T}no" >&6
3981fi
3982
3983fi
3984if test -z "$ac_cv_prog_DLLTOOL"; then
3985  ac_ct_DLLTOOL=$DLLTOOL
3986  # Extract the first word of "dlltool", so it can be a program name with args.
3987set dummy dlltool; ac_word=$2
3988echo "$as_me:$LINENO: checking for $ac_word" >&5
3989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  if test -n "$ac_ct_DLLTOOL"; then
3994  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999  IFS=$as_save_IFS
4000  test -z "$as_dir" && as_dir=.
4001  for ac_exec_ext in '' $ac_executable_extensions; do
4002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005    break 2
4006  fi
4007done
4008done
4009
4010  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4011fi
4012fi
4013ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4014if test -n "$ac_ct_DLLTOOL"; then
4015  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4016echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4017else
4018  echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
4020fi
4021
4022  DLLTOOL=$ac_ct_DLLTOOL
4023else
4024  DLLTOOL="$ac_cv_prog_DLLTOOL"
4025fi
4026
4027  if test -n "$ac_tool_prefix"; then
4028  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4029set dummy ${ac_tool_prefix}as; ac_word=$2
4030echo "$as_me:$LINENO: checking for $ac_word" >&5
4031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032if test "${ac_cv_prog_AS+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  if test -n "$AS"; then
4036  ac_cv_prog_AS="$AS" # Let the user override the test.
4037else
4038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH
4040do
4041  IFS=$as_save_IFS
4042  test -z "$as_dir" && as_dir=.
4043  for ac_exec_ext in '' $ac_executable_extensions; do
4044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045    ac_cv_prog_AS="${ac_tool_prefix}as"
4046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047    break 2
4048  fi
4049done
4050done
4051
4052fi
4053fi
4054AS=$ac_cv_prog_AS
4055if test -n "$AS"; then
4056  echo "$as_me:$LINENO: result: $AS" >&5
4057echo "${ECHO_T}$AS" >&6
4058else
4059  echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061fi
4062
4063fi
4064if test -z "$ac_cv_prog_AS"; then
4065  ac_ct_AS=$AS
4066  # Extract the first word of "as", so it can be a program name with args.
4067set dummy as; ac_word=$2
4068echo "$as_me:$LINENO: checking for $ac_word" >&5
4069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4070if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  if test -n "$ac_ct_AS"; then
4074  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081  for ac_exec_ext in '' $ac_executable_extensions; do
4082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083    ac_cv_prog_ac_ct_AS="as"
4084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088done
4089
4090  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4091fi
4092fi
4093ac_ct_AS=$ac_cv_prog_ac_ct_AS
4094if test -n "$ac_ct_AS"; then
4095  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4096echo "${ECHO_T}$ac_ct_AS" >&6
4097else
4098  echo "$as_me:$LINENO: result: no" >&5
4099echo "${ECHO_T}no" >&6
4100fi
4101
4102  AS=$ac_ct_AS
4103else
4104  AS="$ac_cv_prog_AS"
4105fi
4106
4107  if test -n "$ac_tool_prefix"; then
4108  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4109set dummy ${ac_tool_prefix}objdump; ac_word=$2
4110echo "$as_me:$LINENO: checking for $ac_word" >&5
4111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4113  echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115  if test -n "$OBJDUMP"; then
4116  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123  for ac_exec_ext in '' $ac_executable_extensions; do
4124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127    break 2
4128  fi
4129done
4130done
4131
4132fi
4133fi
4134OBJDUMP=$ac_cv_prog_OBJDUMP
4135if test -n "$OBJDUMP"; then
4136  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4137echo "${ECHO_T}$OBJDUMP" >&6
4138else
4139  echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141fi
4142
4143fi
4144if test -z "$ac_cv_prog_OBJDUMP"; then
4145  ac_ct_OBJDUMP=$OBJDUMP
4146  # Extract the first word of "objdump", so it can be a program name with args.
4147set dummy objdump; ac_word=$2
4148echo "$as_me:$LINENO: checking for $ac_word" >&5
4149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4151  echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153  if test -n "$ac_ct_OBJDUMP"; then
4154  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159  IFS=$as_save_IFS
4160  test -z "$as_dir" && as_dir=.
4161  for ac_exec_ext in '' $ac_executable_extensions; do
4162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165    break 2
4166  fi
4167done
4168done
4169
4170  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4171fi
4172fi
4173ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4174if test -n "$ac_ct_OBJDUMP"; then
4175  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4176echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4177else
4178  echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180fi
4181
4182  OBJDUMP=$ac_ct_OBJDUMP
4183else
4184  OBJDUMP="$ac_cv_prog_OBJDUMP"
4185fi
4186
4187  ;;
4188
4189esac
4190
4191need_locks="$enable_libtool_lock"
4192
4193
4194ac_ext=c
4195ac_cpp='$CPP $CPPFLAGS'
4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4200echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4201# On Suns, sometimes $CPP names a directory.
4202if test -n "$CPP" && test -d "$CPP"; then
4203  CPP=
4204fi
4205if test -z "$CPP"; then
4206  if test "${ac_cv_prog_CPP+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209      # Double quotes because CPP needs to be expanded
4210    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211    do
4212      ac_preproc_ok=false
4213for ac_c_preproc_warn_flag in '' yes
4214do
4215  # Use a header file that comes with gcc, so configuring glibc
4216  # with a fresh cross-compiler works.
4217  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218  # <limits.h> exists even on freestanding compilers.
4219  # On the NeXT, cc -E runs the code through the compiler's parser,
4220  # not just through cpp. "Syntax error" is here to catch this case.
4221  cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h.  */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h.  */
4227#ifdef __STDC__
4228# include <limits.h>
4229#else
4230# include <assert.h>
4231#endif
4232		     Syntax error
4233_ACEOF
4234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4236  ac_status=$?
4237  grep -v '^ *+' conftest.er1 >conftest.err
4238  rm -f conftest.er1
4239  cat conftest.err >&5
4240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241  (exit $ac_status); } >/dev/null; then
4242  if test -s conftest.err; then
4243    ac_cpp_err=$ac_c_preproc_warn_flag
4244    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4245  else
4246    ac_cpp_err=
4247  fi
4248else
4249  ac_cpp_err=yes
4250fi
4251if test -z "$ac_cpp_err"; then
4252  :
4253else
4254  echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257  # Broken: fails on valid input.
4258continue
4259fi
4260rm -f conftest.err conftest.$ac_ext
4261
4262  # OK, works on sane cases.  Now check whether non-existent headers
4263  # can be detected and how.
4264  cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h.  */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h.  */
4270#include <ac_nonexistent.h>
4271_ACEOF
4272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274  ac_status=$?
4275  grep -v '^ *+' conftest.er1 >conftest.err
4276  rm -f conftest.er1
4277  cat conftest.err >&5
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); } >/dev/null; then
4280  if test -s conftest.err; then
4281    ac_cpp_err=$ac_c_preproc_warn_flag
4282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283  else
4284    ac_cpp_err=
4285  fi
4286else
4287  ac_cpp_err=yes
4288fi
4289if test -z "$ac_cpp_err"; then
4290  # Broken: success on invalid input.
4291continue
4292else
4293  echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296  # Passes both tests.
4297ac_preproc_ok=:
4298break
4299fi
4300rm -f conftest.err conftest.$ac_ext
4301
4302done
4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304rm -f conftest.err conftest.$ac_ext
4305if $ac_preproc_ok; then
4306  break
4307fi
4308
4309    done
4310    ac_cv_prog_CPP=$CPP
4311
4312fi
4313  CPP=$ac_cv_prog_CPP
4314else
4315  ac_cv_prog_CPP=$CPP
4316fi
4317echo "$as_me:$LINENO: result: $CPP" >&5
4318echo "${ECHO_T}$CPP" >&6
4319ac_preproc_ok=false
4320for ac_c_preproc_warn_flag in '' yes
4321do
4322  # Use a header file that comes with gcc, so configuring glibc
4323  # with a fresh cross-compiler works.
4324  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325  # <limits.h> exists even on freestanding compilers.
4326  # On the NeXT, cc -E runs the code through the compiler's parser,
4327  # not just through cpp. "Syntax error" is here to catch this case.
4328  cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h.  */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h.  */
4334#ifdef __STDC__
4335# include <limits.h>
4336#else
4337# include <assert.h>
4338#endif
4339		     Syntax error
4340_ACEOF
4341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4349  if test -s conftest.err; then
4350    ac_cpp_err=$ac_c_preproc_warn_flag
4351    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4352  else
4353    ac_cpp_err=
4354  fi
4355else
4356  ac_cpp_err=yes
4357fi
4358if test -z "$ac_cpp_err"; then
4359  :
4360else
4361  echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364  # Broken: fails on valid input.
4365continue
4366fi
4367rm -f conftest.err conftest.$ac_ext
4368
4369  # OK, works on sane cases.  Now check whether non-existent headers
4370  # can be detected and how.
4371  cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h.  */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h.  */
4377#include <ac_nonexistent.h>
4378_ACEOF
4379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381  ac_status=$?
4382  grep -v '^ *+' conftest.er1 >conftest.err
4383  rm -f conftest.er1
4384  cat conftest.err >&5
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); } >/dev/null; then
4387  if test -s conftest.err; then
4388    ac_cpp_err=$ac_c_preproc_warn_flag
4389    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390  else
4391    ac_cpp_err=
4392  fi
4393else
4394  ac_cpp_err=yes
4395fi
4396if test -z "$ac_cpp_err"; then
4397  # Broken: success on invalid input.
4398continue
4399else
4400  echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403  # Passes both tests.
4404ac_preproc_ok=:
4405break
4406fi
4407rm -f conftest.err conftest.$ac_ext
4408
4409done
4410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411rm -f conftest.err conftest.$ac_ext
4412if $ac_preproc_ok; then
4413  :
4414else
4415  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4416See \`config.log' for more details." >&5
4417echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4418See \`config.log' for more details." >&2;}
4419   { (exit 1); exit 1; }; }
4420fi
4421
4422ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4430echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4431if test "${ac_cv_header_stdc+set}" = set; then
4432  echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434  cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h.  */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h.  */
4440#include <stdlib.h>
4441#include <stdarg.h>
4442#include <string.h>
4443#include <float.h>
4444
4445int
4446main ()
4447{
4448
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462	 { ac_try='test -z "$ac_c_werror_flag"
4463			 || test ! -s conftest.err'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; } &&
4469	 { ac_try='test -s conftest.$ac_objext'
4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471  (eval $ac_try) 2>&5
4472  ac_status=$?
4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); }; }; then
4475  ac_cv_header_stdc=yes
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480ac_cv_header_stdc=no
4481fi
4482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483
4484if test $ac_cv_header_stdc = yes; then
4485  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486  cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h.  */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h.  */
4492#include <string.h>
4493
4494_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496  $EGREP "memchr" >/dev/null 2>&1; then
4497  :
4498else
4499  ac_cv_header_stdc=no
4500fi
4501rm -f conftest*
4502
4503fi
4504
4505if test $ac_cv_header_stdc = yes; then
4506  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507  cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513#include <stdlib.h>
4514
4515_ACEOF
4516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517  $EGREP "free" >/dev/null 2>&1; then
4518  :
4519else
4520  ac_cv_header_stdc=no
4521fi
4522rm -f conftest*
4523
4524fi
4525
4526if test $ac_cv_header_stdc = yes; then
4527  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4528  if test "$cross_compiling" = yes; then
4529  :
4530else
4531  cat >conftest.$ac_ext <<_ACEOF
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537#include <ctype.h>
4538#if ((' ' & 0x0FF) == 0x020)
4539# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4540# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4541#else
4542# define ISLOWER(c) \
4543		   (('a' <= (c) && (c) <= 'i') \
4544		     || ('j' <= (c) && (c) <= 'r') \
4545		     || ('s' <= (c) && (c) <= 'z'))
4546# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4547#endif
4548
4549#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550int
4551main ()
4552{
4553  int i;
4554  for (i = 0; i < 256; i++)
4555    if (XOR (islower (i), ISLOWER (i))
4556	|| toupper (i) != TOUPPER (i))
4557      exit(2);
4558  exit (0);
4559}
4560_ACEOF
4561rm -f conftest$ac_exeext
4562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4563  (eval $ac_link) 2>&5
4564  ac_status=$?
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568  (eval $ac_try) 2>&5
4569  ac_status=$?
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); }; }; then
4572  :
4573else
4574  echo "$as_me: program exited with status $ac_status" >&5
4575echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578( exit $ac_status )
4579ac_cv_header_stdc=no
4580fi
4581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582fi
4583fi
4584fi
4585echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4586echo "${ECHO_T}$ac_cv_header_stdc" >&6
4587if test $ac_cv_header_stdc = yes; then
4588
4589cat >>confdefs.h <<\_ACEOF
4590#define STDC_HEADERS 1
4591_ACEOF
4592
4593fi
4594
4595# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4606		  inttypes.h stdint.h unistd.h
4607do
4608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4609echo "$as_me:$LINENO: checking for $ac_header" >&5
4610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4611if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612  echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614  cat >conftest.$ac_ext <<_ACEOF
4615/* confdefs.h.  */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h.  */
4620$ac_includes_default
4621
4622#include <$ac_header>
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626  (eval $ac_compile) 2>conftest.er1
4627  ac_status=$?
4628  grep -v '^ *+' conftest.er1 >conftest.err
4629  rm -f conftest.er1
4630  cat conftest.err >&5
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } &&
4633	 { ac_try='test -z "$ac_c_werror_flag"
4634			 || test ! -s conftest.err'
4635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636  (eval $ac_try) 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }; } &&
4640	 { ac_try='test -s conftest.$ac_objext'
4641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642  (eval $ac_try) 2>&5
4643  ac_status=$?
4644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645  (exit $ac_status); }; }; then
4646  eval "$as_ac_Header=yes"
4647else
4648  echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651eval "$as_ac_Header=no"
4652fi
4653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4657if test `eval echo '${'$as_ac_Header'}'` = yes; then
4658  cat >>confdefs.h <<_ACEOF
4659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4660_ACEOF
4661
4662fi
4663
4664done
4665
4666
4667
4668for ac_header in dlfcn.h
4669do
4670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672  echo "$as_me:$LINENO: checking for $ac_header" >&5
4673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4674if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675  echo $ECHO_N "(cached) $ECHO_C" >&6
4676fi
4677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4679else
4680  # Is the header compilable?
4681echo "$as_me:$LINENO: checking $ac_header usability" >&5
4682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4683cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h.  */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h.  */
4689$ac_includes_default
4690#include <$ac_header>
4691_ACEOF
4692rm -f conftest.$ac_objext
4693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694  (eval $ac_compile) 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } &&
4701	 { ac_try='test -z "$ac_c_werror_flag"
4702			 || test ! -s conftest.err'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; } &&
4708	 { ac_try='test -s conftest.$ac_objext'
4709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710  (eval $ac_try) 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; }; then
4714  ac_header_compiler=yes
4715else
4716  echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719ac_header_compiler=no
4720fi
4721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4723echo "${ECHO_T}$ac_header_compiler" >&6
4724
4725# Is the header present?
4726echo "$as_me:$LINENO: checking $ac_header presence" >&5
4727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4728cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h.  */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h.  */
4734#include <$ac_header>
4735_ACEOF
4736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738  ac_status=$?
4739  grep -v '^ *+' conftest.er1 >conftest.err
4740  rm -f conftest.er1
4741  cat conftest.err >&5
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); } >/dev/null; then
4744  if test -s conftest.err; then
4745    ac_cpp_err=$ac_c_preproc_warn_flag
4746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4747  else
4748    ac_cpp_err=
4749  fi
4750else
4751  ac_cpp_err=yes
4752fi
4753if test -z "$ac_cpp_err"; then
4754  ac_header_preproc=yes
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759  ac_header_preproc=no
4760fi
4761rm -f conftest.err conftest.$ac_ext
4762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4763echo "${ECHO_T}$ac_header_preproc" >&6
4764
4765# So?  What about this header?
4766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767  yes:no: )
4768    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4772    ac_header_preproc=yes
4773    ;;
4774  no:yes:* )
4775    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4777    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4778echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4779    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4781    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4782echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4783    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4787    (
4788      cat <<\_ASBOX
4789## ---------------------------------- ##
4790## Report this to bug-libtool@gnu.org ##
4791## ---------------------------------- ##
4792_ASBOX
4793    ) |
4794      sed "s/^/$as_me: WARNING:     /" >&2
4795    ;;
4796esac
4797echo "$as_me:$LINENO: checking for $ac_header" >&5
4798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800  echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
4802  eval "$as_ac_Header=\$ac_header_preproc"
4803fi
4804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806
4807fi
4808if test `eval echo '${'$as_ac_Header'}'` = yes; then
4809  cat >>confdefs.h <<_ACEOF
4810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811_ACEOF
4812
4813fi
4814
4815done
4816
4817ac_ext=cc
4818ac_cpp='$CXXCPP $CPPFLAGS'
4819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4822if test -n "$ac_tool_prefix"; then
4823  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4824  do
4825    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_prog_CXX+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -n "$CXX"; then
4833  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848
4849fi
4850fi
4851CXX=$ac_cv_prog_CXX
4852if test -n "$CXX"; then
4853  echo "$as_me:$LINENO: result: $CXX" >&5
4854echo "${ECHO_T}$CXX" >&6
4855else
4856  echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
4860    test -n "$CXX" && break
4861  done
4862fi
4863if test -z "$CXX"; then
4864  ac_ct_CXX=$CXX
4865  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4866do
4867  # Extract the first word of "$ac_prog", so it can be a program name with args.
4868set dummy $ac_prog; ac_word=$2
4869echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874  if test -n "$ac_ct_CXX"; then
4875  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882  for ac_exec_ext in '' $ac_executable_extensions; do
4883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884    ac_cv_prog_ac_ct_CXX="$ac_prog"
4885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886    break 2
4887  fi
4888done
4889done
4890
4891fi
4892fi
4893ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4894if test -n "$ac_ct_CXX"; then
4895  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4896echo "${ECHO_T}$ac_ct_CXX" >&6
4897else
4898  echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900fi
4901
4902  test -n "$ac_ct_CXX" && break
4903done
4904test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4905
4906  CXX=$ac_ct_CXX
4907fi
4908
4909
4910# Provide some information about the compiler.
4911echo "$as_me:$LINENO:" \
4912     "checking for C++ compiler version" >&5
4913ac_compiler=`set X $ac_compile; echo $2`
4914{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4915  (eval $ac_compiler --version </dev/null >&5) 2>&5
4916  ac_status=$?
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); }
4919{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4920  (eval $ac_compiler -v </dev/null >&5) 2>&5
4921  ac_status=$?
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); }
4924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4925  (eval $ac_compiler -V </dev/null >&5) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }
4929
4930echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4931echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4932if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h.  */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945#ifndef __GNUC__
4946       choke me
4947#endif
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext
4954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955  (eval $ac_compile) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } &&
4962	 { ac_try='test -z "$ac_cxx_werror_flag"
4963			 || test ! -s conftest.err'
4964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965  (eval $ac_try) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); }; } &&
4969	 { ac_try='test -s conftest.$ac_objext'
4970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971  (eval $ac_try) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; }; then
4975  ac_compiler_gnu=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980ac_compiler_gnu=no
4981fi
4982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4984
4985fi
4986echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4988GXX=`test $ac_compiler_gnu = yes && echo yes`
4989ac_test_CXXFLAGS=${CXXFLAGS+set}
4990ac_save_CXXFLAGS=$CXXFLAGS
4991CXXFLAGS="-g"
4992echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4993echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4994if test "${ac_cv_prog_cxx_g+set}" = set; then
4995  echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997  cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h.  */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h.  */
5003
5004int
5005main ()
5006{
5007
5008  ;
5009  return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
5013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014  (eval $ac_compile) 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } &&
5021	 { ac_try='test -z "$ac_cxx_werror_flag"
5022			 || test ! -s conftest.err'
5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024  (eval $ac_try) 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); }; } &&
5028	 { ac_try='test -s conftest.$ac_objext'
5029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030  (eval $ac_try) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; }; then
5034  ac_cv_prog_cxx_g=yes
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039ac_cv_prog_cxx_g=no
5040fi
5041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042fi
5043echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5044echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5045if test "$ac_test_CXXFLAGS" = set; then
5046  CXXFLAGS=$ac_save_CXXFLAGS
5047elif test $ac_cv_prog_cxx_g = yes; then
5048  if test "$GXX" = yes; then
5049    CXXFLAGS="-g -O2"
5050  else
5051    CXXFLAGS="-g"
5052  fi
5053else
5054  if test "$GXX" = yes; then
5055    CXXFLAGS="-O2"
5056  else
5057    CXXFLAGS=
5058  fi
5059fi
5060for ac_declaration in \
5061   '' \
5062   'extern "C" void std::exit (int) throw (); using std::exit;' \
5063   'extern "C" void std::exit (int); using std::exit;' \
5064   'extern "C" void exit (int) throw ();' \
5065   'extern "C" void exit (int);' \
5066   'void exit (int);'
5067do
5068  cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074$ac_declaration
5075#include <stdlib.h>
5076int
5077main ()
5078{
5079exit (42);
5080  ;
5081  return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086  (eval $ac_compile) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } &&
5093	 { ac_try='test -z "$ac_cxx_werror_flag"
5094			 || test ! -s conftest.err'
5095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096  (eval $ac_try) 2>&5
5097  ac_status=$?
5098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); }; } &&
5100	 { ac_try='test -s conftest.$ac_objext'
5101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102  (eval $ac_try) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; }; then
5106  :
5107else
5108  echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111continue
5112fi
5113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114  cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h.  */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h.  */
5120$ac_declaration
5121int
5122main ()
5123{
5124exit (42);
5125  ;
5126  return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131  (eval $ac_compile) 2>conftest.er1
5132  ac_status=$?
5133  grep -v '^ *+' conftest.er1 >conftest.err
5134  rm -f conftest.er1
5135  cat conftest.err >&5
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); } &&
5138	 { ac_try='test -z "$ac_cxx_werror_flag"
5139			 || test ! -s conftest.err'
5140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141  (eval $ac_try) 2>&5
5142  ac_status=$?
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); }; } &&
5145	 { ac_try='test -s conftest.$ac_objext'
5146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147  (eval $ac_try) 2>&5
5148  ac_status=$?
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); }; }; then
5151  break
5152else
5153  echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
5156fi
5157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5158done
5159rm -f conftest*
5160if test -n "$ac_declaration"; then
5161  echo '#ifdef __cplusplus' >>confdefs.h
5162  echo $ac_declaration      >>confdefs.h
5163  echo '#endif'             >>confdefs.h
5164fi
5165
5166ac_ext=cc
5167ac_cpp='$CXXCPP $CPPFLAGS'
5168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5171
5172depcc="$CXX"  am_compiler_list=
5173
5174echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5175echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5176if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5177  echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5180  # We make a subdir and do the tests there.  Otherwise we can end up
5181  # making bogus files that we don't know about and never remove.  For
5182  # instance it was reported that on HP-UX the gcc test will end up
5183  # making a dummy file named `D' -- because `-MD' means `put the output
5184  # in D'.
5185  mkdir conftest.dir
5186  # Copy depcomp to subdir because otherwise we won't find it if we're
5187  # using a relative directory.
5188  cp "$am_depcomp" conftest.dir
5189  cd conftest.dir
5190  # We will build objects and dependencies in a subdirectory because
5191  # it helps to detect inapplicable dependency modes.  For instance
5192  # both Tru64's cc and ICC support -MD to output dependencies as a
5193  # side effect of compilation, but ICC will put the dependencies in
5194  # the current directory while Tru64 will put them in the object
5195  # directory.
5196  mkdir sub
5197
5198  am_cv_CXX_dependencies_compiler_type=none
5199  if test "$am_compiler_list" = ""; then
5200     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5201  fi
5202  for depmode in $am_compiler_list; do
5203    # Setup a source with many dependencies, because some compilers
5204    # like to wrap large dependency lists on column 80 (with \), and
5205    # we should not choose a depcomp mode which is confused by this.
5206    #
5207    # We need to recreate these files for each test, as the compiler may
5208    # overwrite some of them when testing with obscure command lines.
5209    # This happens at least with the AIX C compiler.
5210    : > sub/conftest.c
5211    for i in 1 2 3 4 5 6; do
5212      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5213      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5214      # Solaris 8's {/usr,}/bin/sh.
5215      touch sub/conftst$i.h
5216    done
5217    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5218
5219    case $depmode in
5220    nosideeffect)
5221      # after this tag, mechanisms are not by side-effect, so they'll
5222      # only be used when explicitly requested
5223      if test "x$enable_dependency_tracking" = xyes; then
5224	continue
5225      else
5226	break
5227      fi
5228      ;;
5229    none) break ;;
5230    esac
5231    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5232    # mode.  It turns out that the SunPro C++ compiler does not properly
5233    # handle `-M -o', and we need to detect this.
5234    if depmode=$depmode \
5235       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5236       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5237       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5238         >/dev/null 2>conftest.err &&
5239       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5240       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5241       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5242      # icc doesn't choke on unknown options, it will just issue warnings
5243      # or remarks (even with -Werror).  So we grep stderr for any message
5244      # that says an option was ignored or not supported.
5245      # When given -MP, icc 7.0 and 7.1 complain thusly:
5246      #   icc: Command line warning: ignoring option '-M'; no argument required
5247      # The diagnosis changed in icc 8.0:
5248      #   icc: Command line remark: option '-MP' not supported
5249      if (grep 'ignoring option' conftest.err ||
5250          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5251        am_cv_CXX_dependencies_compiler_type=$depmode
5252        break
5253      fi
5254    fi
5255  done
5256
5257  cd ..
5258  rm -rf conftest.dir
5259else
5260  am_cv_CXX_dependencies_compiler_type=none
5261fi
5262
5263fi
5264echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5265echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5266CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5267
5268
5269
5270if
5271  test "x$enable_dependency_tracking" != xno \
5272  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5273  am__fastdepCXX_TRUE=
5274  am__fastdepCXX_FALSE='#'
5275else
5276  am__fastdepCXX_TRUE='#'
5277  am__fastdepCXX_FALSE=
5278fi
5279
5280
5281
5282
5283if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5284    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5285    (test "X$CXX" != "Xg++"))) ; then
5286  ac_ext=cc
5287ac_cpp='$CXXCPP $CPPFLAGS'
5288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5291echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5293if test -z "$CXXCPP"; then
5294  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5295  echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297      # Double quotes because CXXCPP needs to be expanded
5298    for CXXCPP in "$CXX -E" "/lib/cpp"
5299    do
5300      ac_preproc_ok=false
5301for ac_cxx_preproc_warn_flag in '' yes
5302do
5303  # Use a header file that comes with gcc, so configuring glibc
5304  # with a fresh cross-compiler works.
5305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306  # <limits.h> exists even on freestanding compilers.
5307  # On the NeXT, cc -E runs the code through the compiler's parser,
5308  # not just through cpp. "Syntax error" is here to catch this case.
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315#ifdef __STDC__
5316# include <limits.h>
5317#else
5318# include <assert.h>
5319#endif
5320		     Syntax error
5321_ACEOF
5322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5324  ac_status=$?
5325  grep -v '^ *+' conftest.er1 >conftest.err
5326  rm -f conftest.er1
5327  cat conftest.err >&5
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } >/dev/null; then
5330  if test -s conftest.err; then
5331    ac_cpp_err=$ac_cxx_preproc_warn_flag
5332    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5333  else
5334    ac_cpp_err=
5335  fi
5336else
5337  ac_cpp_err=yes
5338fi
5339if test -z "$ac_cpp_err"; then
5340  :
5341else
5342  echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345  # Broken: fails on valid input.
5346continue
5347fi
5348rm -f conftest.err conftest.$ac_ext
5349
5350  # OK, works on sane cases.  Now check whether non-existent headers
5351  # can be detected and how.
5352  cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h.  */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h.  */
5358#include <ac_nonexistent.h>
5359_ACEOF
5360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362  ac_status=$?
5363  grep -v '^ *+' conftest.er1 >conftest.err
5364  rm -f conftest.er1
5365  cat conftest.err >&5
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); } >/dev/null; then
5368  if test -s conftest.err; then
5369    ac_cpp_err=$ac_cxx_preproc_warn_flag
5370    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5371  else
5372    ac_cpp_err=
5373  fi
5374else
5375  ac_cpp_err=yes
5376fi
5377if test -z "$ac_cpp_err"; then
5378  # Broken: success on invalid input.
5379continue
5380else
5381  echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
5383
5384  # Passes both tests.
5385ac_preproc_ok=:
5386break
5387fi
5388rm -f conftest.err conftest.$ac_ext
5389
5390done
5391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5392rm -f conftest.err conftest.$ac_ext
5393if $ac_preproc_ok; then
5394  break
5395fi
5396
5397    done
5398    ac_cv_prog_CXXCPP=$CXXCPP
5399
5400fi
5401  CXXCPP=$ac_cv_prog_CXXCPP
5402else
5403  ac_cv_prog_CXXCPP=$CXXCPP
5404fi
5405echo "$as_me:$LINENO: result: $CXXCPP" >&5
5406echo "${ECHO_T}$CXXCPP" >&6
5407ac_preproc_ok=false
5408for ac_cxx_preproc_warn_flag in '' yes
5409do
5410  # Use a header file that comes with gcc, so configuring glibc
5411  # with a fresh cross-compiler works.
5412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5413  # <limits.h> exists even on freestanding compilers.
5414  # On the NeXT, cc -E runs the code through the compiler's parser,
5415  # not just through cpp. "Syntax error" is here to catch this case.
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422#ifdef __STDC__
5423# include <limits.h>
5424#else
5425# include <assert.h>
5426#endif
5427		     Syntax error
5428_ACEOF
5429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5431  ac_status=$?
5432  grep -v '^ *+' conftest.er1 >conftest.err
5433  rm -f conftest.er1
5434  cat conftest.err >&5
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); } >/dev/null; then
5437  if test -s conftest.err; then
5438    ac_cpp_err=$ac_cxx_preproc_warn_flag
5439    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5440  else
5441    ac_cpp_err=
5442  fi
5443else
5444  ac_cpp_err=yes
5445fi
5446if test -z "$ac_cpp_err"; then
5447  :
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452  # Broken: fails on valid input.
5453continue
5454fi
5455rm -f conftest.err conftest.$ac_ext
5456
5457  # OK, works on sane cases.  Now check whether non-existent headers
5458  # can be detected and how.
5459  cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465#include <ac_nonexistent.h>
5466_ACEOF
5467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5469  ac_status=$?
5470  grep -v '^ *+' conftest.er1 >conftest.err
5471  rm -f conftest.er1
5472  cat conftest.err >&5
5473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474  (exit $ac_status); } >/dev/null; then
5475  if test -s conftest.err; then
5476    ac_cpp_err=$ac_cxx_preproc_warn_flag
5477    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5478  else
5479    ac_cpp_err=
5480  fi
5481else
5482  ac_cpp_err=yes
5483fi
5484if test -z "$ac_cpp_err"; then
5485  # Broken: success on invalid input.
5486continue
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491  # Passes both tests.
5492ac_preproc_ok=:
5493break
5494fi
5495rm -f conftest.err conftest.$ac_ext
5496
5497done
5498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5499rm -f conftest.err conftest.$ac_ext
5500if $ac_preproc_ok; then
5501  :
5502else
5503  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5504See \`config.log' for more details." >&5
5505echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5506See \`config.log' for more details." >&2;}
5507   { (exit 1); exit 1; }; }
5508fi
5509
5510ac_ext=cc
5511ac_cpp='$CXXCPP $CPPFLAGS'
5512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5515
5516fi
5517
5518
5519ac_ext=f
5520ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5521ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5523if test -n "$ac_tool_prefix"; then
5524  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5525  do
5526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5528echo "$as_me:$LINENO: checking for $ac_word" >&5
5529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530if test "${ac_cv_prog_F77+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  if test -n "$F77"; then
5534  ac_cv_prog_F77="$F77" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539  IFS=$as_save_IFS
5540  test -z "$as_dir" && as_dir=.
5541  for ac_exec_ext in '' $ac_executable_extensions; do
5542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545    break 2
5546  fi
5547done
5548done
5549
5550fi
5551fi
5552F77=$ac_cv_prog_F77
5553if test -n "$F77"; then
5554  echo "$as_me:$LINENO: result: $F77" >&5
5555echo "${ECHO_T}$F77" >&6
5556else
5557  echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559fi
5560
5561    test -n "$F77" && break
5562  done
5563fi
5564if test -z "$F77"; then
5565  ac_ct_F77=$F77
5566  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5567do
5568  # Extract the first word of "$ac_prog", so it can be a program name with args.
5569set dummy $ac_prog; ac_word=$2
5570echo "$as_me:$LINENO: checking for $ac_word" >&5
5571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5572if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  if test -n "$ac_ct_F77"; then
5576  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583  for ac_exec_ext in '' $ac_executable_extensions; do
5584  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_ac_ct_F77="$ac_prog"
5586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590done
5591
5592fi
5593fi
5594ac_ct_F77=$ac_cv_prog_ac_ct_F77
5595if test -n "$ac_ct_F77"; then
5596  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5597echo "${ECHO_T}$ac_ct_F77" >&6
5598else
5599  echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601fi
5602
5603  test -n "$ac_ct_F77" && break
5604done
5605
5606  F77=$ac_ct_F77
5607fi
5608
5609
5610# Provide some information about the compiler.
5611echo "$as_me:5611:" \
5612     "checking for Fortran 77 compiler version" >&5
5613ac_compiler=`set X $ac_compile; echo $2`
5614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5615  (eval $ac_compiler --version </dev/null >&5) 2>&5
5616  ac_status=$?
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); }
5619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5620  (eval $ac_compiler -v </dev/null >&5) 2>&5
5621  ac_status=$?
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); }
5624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5625  (eval $ac_compiler -V </dev/null >&5) 2>&5
5626  ac_status=$?
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); }
5629rm -f a.out
5630
5631# If we don't use `.F' as extension, the preprocessor is not run on the
5632# input file.  (Note that this only needs to work for GNU compilers.)
5633ac_save_ext=$ac_ext
5634ac_ext=F
5635echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5636echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5637if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  cat >conftest.$ac_ext <<_ACEOF
5641      program main
5642#ifndef __GNUC__
5643       choke me
5644#endif
5645
5646      end
5647_ACEOF
5648rm -f conftest.$ac_objext
5649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5650  (eval $ac_compile) 2>conftest.er1
5651  ac_status=$?
5652  grep -v '^ *+' conftest.er1 >conftest.err
5653  rm -f conftest.er1
5654  cat conftest.err >&5
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); } &&
5657	 { ac_try='test -z "$ac_f77_werror_flag"
5658			 || test ! -s conftest.err'
5659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660  (eval $ac_try) 2>&5
5661  ac_status=$?
5662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663  (exit $ac_status); }; } &&
5664	 { ac_try='test -s conftest.$ac_objext'
5665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666  (eval $ac_try) 2>&5
5667  ac_status=$?
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }; }; then
5670  ac_compiler_gnu=yes
5671else
5672  echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675ac_compiler_gnu=no
5676fi
5677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5678ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5679
5680fi
5681echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5682echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5683ac_ext=$ac_save_ext
5684ac_test_FFLAGS=${FFLAGS+set}
5685ac_save_FFLAGS=$FFLAGS
5686FFLAGS=
5687echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5688echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5689if test "${ac_cv_prog_f77_g+set}" = set; then
5690  echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692  FFLAGS=-g
5693cat >conftest.$ac_ext <<_ACEOF
5694      program main
5695
5696      end
5697_ACEOF
5698rm -f conftest.$ac_objext
5699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700  (eval $ac_compile) 2>conftest.er1
5701  ac_status=$?
5702  grep -v '^ *+' conftest.er1 >conftest.err
5703  rm -f conftest.er1
5704  cat conftest.err >&5
5705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706  (exit $ac_status); } &&
5707	 { ac_try='test -z "$ac_f77_werror_flag"
5708			 || test ! -s conftest.err'
5709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710  (eval $ac_try) 2>&5
5711  ac_status=$?
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); }; } &&
5714	 { ac_try='test -s conftest.$ac_objext'
5715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716  (eval $ac_try) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }; }; then
5720  ac_cv_prog_f77_g=yes
5721else
5722  echo "$as_me: failed program was:" >&5
5723sed 's/^/| /' conftest.$ac_ext >&5
5724
5725ac_cv_prog_f77_g=no
5726fi
5727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728
5729fi
5730echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5731echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5732if test "$ac_test_FFLAGS" = set; then
5733  FFLAGS=$ac_save_FFLAGS
5734elif test $ac_cv_prog_f77_g = yes; then
5735  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5736    FFLAGS="-g -O2"
5737  else
5738    FFLAGS="-g"
5739  fi
5740else
5741  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5742    FFLAGS="-O2"
5743  else
5744    FFLAGS=
5745  fi
5746fi
5747
5748G77=`test $ac_compiler_gnu = yes && echo yes`
5749ac_ext=c
5750ac_cpp='$CPP $CPPFLAGS'
5751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756
5757# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5758
5759# find the maximum length of command line arguments
5760echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5761echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5762if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5763  echo $ECHO_N "(cached) $ECHO_C" >&6
5764else
5765    i=0
5766  teststring="ABCD"
5767
5768  case $build_os in
5769  msdosdjgpp*)
5770    # On DJGPP, this test can blow up pretty badly due to problems in libc
5771    # (any single argument exceeding 2000 bytes causes a buffer overrun
5772    # during glob expansion).  Even if it were fixed, the result of this
5773    # check would be larger than it should be.
5774    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5775    ;;
5776
5777  gnu*)
5778    # Under GNU Hurd, this test is not required because there is
5779    # no limit to the length of command line arguments.
5780    # Libtool will interpret -1 as no limit whatsoever
5781    lt_cv_sys_max_cmd_len=-1;
5782    ;;
5783
5784  cygwin* | mingw*)
5785    # On Win9x/ME, this test blows up -- it succeeds, but takes
5786    # about 5 minutes as the teststring grows exponentially.
5787    # Worse, since 9x/ME are not pre-emptively multitasking,
5788    # you end up with a "frozen" computer, even though with patience
5789    # the test eventually succeeds (with a max line length of 256k).
5790    # Instead, let's just punt: use the minimum linelength reported by
5791    # all of the supported platforms: 8192 (on NT/2K/XP).
5792    lt_cv_sys_max_cmd_len=8192;
5793    ;;
5794
5795  amigaos*)
5796    # On AmigaOS with pdksh, this test takes hours, literally.
5797    # So we just punt and use a minimum line length of 8192.
5798    lt_cv_sys_max_cmd_len=8192;
5799    ;;
5800
5801  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5802    # This has been around since 386BSD, at least.  Likely further.
5803    if test -x /sbin/sysctl; then
5804      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5805    elif test -x /usr/sbin/sysctl; then
5806      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5807    else
5808      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5809    fi
5810    # And add a safety zone
5811    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5813    ;;
5814  osf*)
5815    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5816    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5817    # nice to cause kernel panics so lets avoid the loop below.
5818    # First set a reasonable default.
5819    lt_cv_sys_max_cmd_len=16384
5820    #
5821    if test -x /sbin/sysconfig; then
5822      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5823        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5824      esac
5825    fi
5826    ;;
5827  *)
5828    # If test is not a shell built-in, we'll probably end up computing a
5829    # maximum length that is only half of the actual maximum length, but
5830    # we can't tell.
5831    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5832    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5833	       = "XX$teststring") >/dev/null 2>&1 &&
5834	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5835	    lt_cv_sys_max_cmd_len=$new_result &&
5836	    test $i != 17 # 1/2 MB should be enough
5837    do
5838      i=`expr $i + 1`
5839      teststring=$teststring$teststring
5840    done
5841    teststring=
5842    # Add a significant safety factor because C++ compilers can tack on massive
5843    # amounts of additional arguments before passing them to the linker.
5844    # It appears as though 1/2 is a usable value.
5845    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5846    ;;
5847  esac
5848
5849fi
5850
5851if test -n $lt_cv_sys_max_cmd_len ; then
5852  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5853echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5854else
5855  echo "$as_me:$LINENO: result: none" >&5
5856echo "${ECHO_T}none" >&6
5857fi
5858
5859
5860
5861
5862# Check for command to grab the raw symbol name followed by C symbol from nm.
5863echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5864echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5865if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868
5869# These are sane defaults that work on at least a few old systems.
5870# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5871
5872# Character class describing NM global symbol codes.
5873symcode='[BCDEGRST]'
5874
5875# Regexp to match symbols that can be accessed directly from C.
5876sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5877
5878# Transform an extracted symbol line into a proper C declaration
5879lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5880
5881# Transform an extracted symbol line into symbol name and symbol address
5882lt_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'"
5883
5884# Define system-specific variables.
5885case $host_os in
5886aix*)
5887  symcode='[BCDT]'
5888  ;;
5889cygwin* | mingw* | pw32*)
5890  symcode='[ABCDGISTW]'
5891  ;;
5892hpux*) # Its linker distinguishes data from code symbols
5893  if test "$host_cpu" = ia64; then
5894    symcode='[ABCDEGRST]'
5895  fi
5896  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897  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'"
5898  ;;
5899linux*)
5900  if test "$host_cpu" = ia64; then
5901    symcode='[ABCDGIRSTW]'
5902    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5903    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'"
5904  fi
5905  ;;
5906irix* | nonstopux*)
5907  symcode='[BCDEGRST]'
5908  ;;
5909osf*)
5910  symcode='[BCDEGQRST]'
5911  ;;
5912solaris* | sysv5*)
5913  symcode='[BDRT]'
5914  ;;
5915sysv4)
5916  symcode='[DFNSTU]'
5917  ;;
5918esac
5919
5920# Handle CRLF in mingw tool chain
5921opt_cr=
5922case $build_os in
5923mingw*)
5924  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5925  ;;
5926esac
5927
5928# If we're using GNU nm, then use its standard symbol codes.
5929case `$NM -V 2>&1` in
5930*GNU* | *'with BFD'*)
5931  symcode='[ABCDGIRSTW]' ;;
5932esac
5933
5934# Try without a prefix undercore, then with it.
5935for ac_symprfx in "" "_"; do
5936
5937  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5938  symxfrm="\\1 $ac_symprfx\\2 \\2"
5939
5940  # Write the raw and C identifiers.
5941  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5942
5943  # Check to see that the pipe works correctly.
5944  pipe_works=no
5945
5946  rm -f conftest*
5947  cat > conftest.$ac_ext <<EOF
5948#ifdef __cplusplus
5949extern "C" {
5950#endif
5951char nm_test_var;
5952void nm_test_func(){}
5953#ifdef __cplusplus
5954}
5955#endif
5956int main(){nm_test_var='a';nm_test_func();return(0);}
5957EOF
5958
5959  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5960  (eval $ac_compile) 2>&5
5961  ac_status=$?
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); }; then
5964    # Now try to grab the symbols.
5965    nlist=conftest.nm
5966    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5967  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5968  ac_status=$?
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } && test -s "$nlist"; then
5971      # Try sorting and uniquifying the output.
5972      if sort "$nlist" | uniq > "$nlist"T; then
5973	mv -f "$nlist"T "$nlist"
5974      else
5975	rm -f "$nlist"T
5976      fi
5977
5978      # Make sure that we snagged all the symbols we need.
5979      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5980	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5981	  cat <<EOF > conftest.$ac_ext
5982#ifdef __cplusplus
5983extern "C" {
5984#endif
5985
5986EOF
5987	  # Now generate the symbol file.
5988	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5989
5990	  cat <<EOF >> conftest.$ac_ext
5991#if defined (__STDC__) && __STDC__
5992# define lt_ptr_t void *
5993#else
5994# define lt_ptr_t char *
5995# define const
5996#endif
5997
5998/* The mapping between symbol names and symbols. */
5999const struct {
6000  const char *name;
6001  lt_ptr_t address;
6002}
6003lt_preloaded_symbols[] =
6004{
6005EOF
6006	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6007	  cat <<\EOF >> conftest.$ac_ext
6008  {0, (lt_ptr_t) 0}
6009};
6010
6011#ifdef __cplusplus
6012}
6013#endif
6014EOF
6015	  # Now try linking the two files.
6016	  mv conftest.$ac_objext conftstm.$ac_objext
6017	  lt_save_LIBS="$LIBS"
6018	  lt_save_CFLAGS="$CFLAGS"
6019	  LIBS="conftstm.$ac_objext"
6020	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6021	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022  (eval $ac_link) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6026	    pipe_works=yes
6027	  fi
6028	  LIBS="$lt_save_LIBS"
6029	  CFLAGS="$lt_save_CFLAGS"
6030	else
6031	  echo "cannot find nm_test_func in $nlist" >&5
6032	fi
6033      else
6034	echo "cannot find nm_test_var in $nlist" >&5
6035      fi
6036    else
6037      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6038    fi
6039  else
6040    echo "$progname: failed program was:" >&5
6041    cat conftest.$ac_ext >&5
6042  fi
6043  rm -f conftest* conftst*
6044
6045  # Do not use the global_symbol_pipe unless it works.
6046  if test "$pipe_works" = yes; then
6047    break
6048  else
6049    lt_cv_sys_global_symbol_pipe=
6050  fi
6051done
6052
6053fi
6054
6055if test -z "$lt_cv_sys_global_symbol_pipe"; then
6056  lt_cv_sys_global_symbol_to_cdecl=
6057fi
6058if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6059  echo "$as_me:$LINENO: result: failed" >&5
6060echo "${ECHO_T}failed" >&6
6061else
6062  echo "$as_me:$LINENO: result: ok" >&5
6063echo "${ECHO_T}ok" >&6
6064fi
6065
6066echo "$as_me:$LINENO: checking for objdir" >&5
6067echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6068if test "${lt_cv_objdir+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071  rm -f .libs 2>/dev/null
6072mkdir .libs 2>/dev/null
6073if test -d .libs; then
6074  lt_cv_objdir=.libs
6075else
6076  # MS-DOS does not allow filenames that begin with a dot.
6077  lt_cv_objdir=_libs
6078fi
6079rmdir .libs 2>/dev/null
6080fi
6081echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6082echo "${ECHO_T}$lt_cv_objdir" >&6
6083objdir=$lt_cv_objdir
6084
6085
6086
6087
6088
6089case $host_os in
6090aix3*)
6091  # AIX sometimes has problems with the GCC collect2 program.  For some
6092  # reason, if we set the COLLECT_NAMES environment variable, the problems
6093  # vanish in a puff of smoke.
6094  if test "X${COLLECT_NAMES+set}" != Xset; then
6095    COLLECT_NAMES=
6096    export COLLECT_NAMES
6097  fi
6098  ;;
6099esac
6100
6101# Sed substitution that helps us do robust quoting.  It backslashifies
6102# metacharacters that are still active within double-quoted strings.
6103Xsed='sed -e 1s/^X//'
6104sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6105
6106# Same as above, but do not quote variable references.
6107double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6108
6109# Sed substitution to delay expansion of an escaped shell variable in a
6110# double_quote_subst'ed string.
6111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6112
6113# Sed substitution to avoid accidental globbing in evaled expressions
6114no_glob_subst='s/\*/\\\*/g'
6115
6116# Constants:
6117rm="rm -f"
6118
6119# Global variables:
6120default_ofile=libtool
6121can_build_shared=yes
6122
6123# All known linkers require a `.a' archive for static linking (except MSVC,
6124# which needs '.lib').
6125libext=a
6126ltmain="$ac_aux_dir/ltmain.sh"
6127ofile="$default_ofile"
6128with_gnu_ld="$lt_cv_prog_gnu_ld"
6129
6130if test -n "$ac_tool_prefix"; then
6131  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6132set dummy ${ac_tool_prefix}ar; ac_word=$2
6133echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135if test "${ac_cv_prog_AR+set}" = set; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  if test -n "$AR"; then
6139  ac_cv_prog_AR="$AR" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146  for ac_exec_ext in '' $ac_executable_extensions; do
6147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_AR="${ac_tool_prefix}ar"
6149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153done
6154
6155fi
6156fi
6157AR=$ac_cv_prog_AR
6158if test -n "$AR"; then
6159  echo "$as_me:$LINENO: result: $AR" >&5
6160echo "${ECHO_T}$AR" >&6
6161else
6162  echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164fi
6165
6166fi
6167if test -z "$ac_cv_prog_AR"; then
6168  ac_ct_AR=$AR
6169  # Extract the first word of "ar", so it can be a program name with args.
6170set dummy ar; ac_word=$2
6171echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6174  echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176  if test -n "$ac_ct_AR"; then
6177  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  test -z "$as_dir" && as_dir=.
6184  for ac_exec_ext in '' $ac_executable_extensions; do
6185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_AR="ar"
6187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191done
6192
6193  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6194fi
6195fi
6196ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197if test -n "$ac_ct_AR"; then
6198  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199echo "${ECHO_T}$ac_ct_AR" >&6
6200else
6201  echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
6203fi
6204
6205  AR=$ac_ct_AR
6206else
6207  AR="$ac_cv_prog_AR"
6208fi
6209
6210if test -n "$ac_tool_prefix"; then
6211  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6212set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6213echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6215if test "${ac_cv_prog_RANLIB+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  if test -n "$RANLIB"; then
6219  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226  for ac_exec_ext in '' $ac_executable_extensions; do
6227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233done
6234
6235fi
6236fi
6237RANLIB=$ac_cv_prog_RANLIB
6238if test -n "$RANLIB"; then
6239  echo "$as_me:$LINENO: result: $RANLIB" >&5
6240echo "${ECHO_T}$RANLIB" >&6
6241else
6242  echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244fi
6245
6246fi
6247if test -z "$ac_cv_prog_RANLIB"; then
6248  ac_ct_RANLIB=$RANLIB
6249  # Extract the first word of "ranlib", so it can be a program name with args.
6250set dummy ranlib; ac_word=$2
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  if test -n "$ac_ct_RANLIB"; then
6257  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264  for ac_exec_ext in '' $ac_executable_extensions; do
6265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_ac_ct_RANLIB="ranlib"
6267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271done
6272
6273  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6274fi
6275fi
6276ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6277if test -n "$ac_ct_RANLIB"; then
6278  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6279echo "${ECHO_T}$ac_ct_RANLIB" >&6
6280else
6281  echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
6283fi
6284
6285  RANLIB=$ac_ct_RANLIB
6286else
6287  RANLIB="$ac_cv_prog_RANLIB"
6288fi
6289
6290if test -n "$ac_tool_prefix"; then
6291  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6292set dummy ${ac_tool_prefix}strip; ac_word=$2
6293echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6295if test "${ac_cv_prog_STRIP+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  if test -n "$STRIP"; then
6299  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314
6315fi
6316fi
6317STRIP=$ac_cv_prog_STRIP
6318if test -n "$STRIP"; then
6319  echo "$as_me:$LINENO: result: $STRIP" >&5
6320echo "${ECHO_T}$STRIP" >&6
6321else
6322  echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324fi
6325
6326fi
6327if test -z "$ac_cv_prog_STRIP"; then
6328  ac_ct_STRIP=$STRIP
6329  # Extract the first word of "strip", so it can be a program name with args.
6330set dummy strip; ac_word=$2
6331echo "$as_me:$LINENO: checking for $ac_word" >&5
6332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6334  echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336  if test -n "$ac_ct_STRIP"; then
6337  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342  IFS=$as_save_IFS
6343  test -z "$as_dir" && as_dir=.
6344  for ac_exec_ext in '' $ac_executable_extensions; do
6345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346    ac_cv_prog_ac_ct_STRIP="strip"
6347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348    break 2
6349  fi
6350done
6351done
6352
6353  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6354fi
6355fi
6356ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6357if test -n "$ac_ct_STRIP"; then
6358  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6359echo "${ECHO_T}$ac_ct_STRIP" >&6
6360else
6361  echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
6363fi
6364
6365  STRIP=$ac_ct_STRIP
6366else
6367  STRIP="$ac_cv_prog_STRIP"
6368fi
6369
6370
6371old_CC="$CC"
6372old_CFLAGS="$CFLAGS"
6373
6374# Set sane defaults for various variables
6375test -z "$AR" && AR=ar
6376test -z "$AR_FLAGS" && AR_FLAGS=cru
6377test -z "$AS" && AS=as
6378test -z "$CC" && CC=cc
6379test -z "$LTCC" && LTCC=$CC
6380test -z "$DLLTOOL" && DLLTOOL=dlltool
6381test -z "$LD" && LD=ld
6382test -z "$LN_S" && LN_S="ln -s"
6383test -z "$MAGIC_CMD" && MAGIC_CMD=file
6384test -z "$NM" && NM=nm
6385test -z "$SED" && SED=sed
6386test -z "$OBJDUMP" && OBJDUMP=objdump
6387test -z "$RANLIB" && RANLIB=:
6388test -z "$STRIP" && STRIP=:
6389test -z "$ac_objext" && ac_objext=o
6390
6391# Determine commands to create old-style static archives.
6392old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6393old_postinstall_cmds='chmod 644 $oldlib'
6394old_postuninstall_cmds=
6395
6396if test -n "$RANLIB"; then
6397  case $host_os in
6398  openbsd*)
6399    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6400    ;;
6401  *)
6402    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6403    ;;
6404  esac
6405  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6406fi
6407
6408for cc_temp in $compiler""; do
6409  case $cc_temp in
6410    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6411    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6412    \-*) ;;
6413    *) break;;
6414  esac
6415done
6416cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6417
6418
6419# Only perform the check for file, if the check method requires it
6420case $deplibs_check_method in
6421file_magic*)
6422  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6423    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6424echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6425if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  case $MAGIC_CMD in
6429[\\/*] |  ?:[\\/]*)
6430  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6431  ;;
6432*)
6433  lt_save_MAGIC_CMD="$MAGIC_CMD"
6434  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6435  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6436  for ac_dir in $ac_dummy; do
6437    IFS="$lt_save_ifs"
6438    test -z "$ac_dir" && ac_dir=.
6439    if test -f $ac_dir/${ac_tool_prefix}file; then
6440      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6441      if test -n "$file_magic_test_file"; then
6442	case $deplibs_check_method in
6443	"file_magic "*)
6444	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6445	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6446	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6447	    $EGREP "$file_magic_regex" > /dev/null; then
6448	    :
6449	  else
6450	    cat <<EOF 1>&2
6451
6452*** Warning: the command libtool uses to detect shared libraries,
6453*** $file_magic_cmd, produces output that libtool cannot recognize.
6454*** The result is that libtool may fail to recognize shared libraries
6455*** as such.  This will affect the creation of libtool libraries that
6456*** depend on shared libraries, but programs linked with such libtool
6457*** libraries will work regardless of this problem.  Nevertheless, you
6458*** may want to report the problem to your system manager and/or to
6459*** bug-libtool@gnu.org
6460
6461EOF
6462	  fi ;;
6463	esac
6464      fi
6465      break
6466    fi
6467  done
6468  IFS="$lt_save_ifs"
6469  MAGIC_CMD="$lt_save_MAGIC_CMD"
6470  ;;
6471esac
6472fi
6473
6474MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6475if test -n "$MAGIC_CMD"; then
6476  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6477echo "${ECHO_T}$MAGIC_CMD" >&6
6478else
6479  echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481fi
6482
6483if test -z "$lt_cv_path_MAGIC_CMD"; then
6484  if test -n "$ac_tool_prefix"; then
6485    echo "$as_me:$LINENO: checking for file" >&5
6486echo $ECHO_N "checking for file... $ECHO_C" >&6
6487if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6488  echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490  case $MAGIC_CMD in
6491[\\/*] |  ?:[\\/]*)
6492  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6493  ;;
6494*)
6495  lt_save_MAGIC_CMD="$MAGIC_CMD"
6496  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6497  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6498  for ac_dir in $ac_dummy; do
6499    IFS="$lt_save_ifs"
6500    test -z "$ac_dir" && ac_dir=.
6501    if test -f $ac_dir/file; then
6502      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6503      if test -n "$file_magic_test_file"; then
6504	case $deplibs_check_method in
6505	"file_magic "*)
6506	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6507	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6508	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6509	    $EGREP "$file_magic_regex" > /dev/null; then
6510	    :
6511	  else
6512	    cat <<EOF 1>&2
6513
6514*** Warning: the command libtool uses to detect shared libraries,
6515*** $file_magic_cmd, produces output that libtool cannot recognize.
6516*** The result is that libtool may fail to recognize shared libraries
6517*** as such.  This will affect the creation of libtool libraries that
6518*** depend on shared libraries, but programs linked with such libtool
6519*** libraries will work regardless of this problem.  Nevertheless, you
6520*** may want to report the problem to your system manager and/or to
6521*** bug-libtool@gnu.org
6522
6523EOF
6524	  fi ;;
6525	esac
6526      fi
6527      break
6528    fi
6529  done
6530  IFS="$lt_save_ifs"
6531  MAGIC_CMD="$lt_save_MAGIC_CMD"
6532  ;;
6533esac
6534fi
6535
6536MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6537if test -n "$MAGIC_CMD"; then
6538  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6539echo "${ECHO_T}$MAGIC_CMD" >&6
6540else
6541  echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543fi
6544
6545  else
6546    MAGIC_CMD=:
6547  fi
6548fi
6549
6550  fi
6551  ;;
6552esac
6553
6554enable_dlopen=yes
6555enable_win32_dll=yes
6556
6557# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6558if test "${enable_libtool_lock+set}" = set; then
6559  enableval="$enable_libtool_lock"
6560
6561fi;
6562test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6563
6564
6565# Check whether --with-pic or --without-pic was given.
6566if test "${with_pic+set}" = set; then
6567  withval="$with_pic"
6568  pic_mode="$withval"
6569else
6570  pic_mode=default
6571fi;
6572test -z "$pic_mode" && pic_mode=default
6573
6574# Use C for the default configuration in the libtool script
6575tagname=
6576lt_save_CC="$CC"
6577ac_ext=c
6578ac_cpp='$CPP $CPPFLAGS'
6579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582
6583
6584# Source file extension for C test sources.
6585ac_ext=c
6586
6587# Object file extension for compiled C test sources.
6588objext=o
6589objext=$objext
6590
6591# Code to be used in simple compile tests
6592lt_simple_compile_test_code="int some_variable = 0;\n"
6593
6594# Code to be used in simple link tests
6595lt_simple_link_test_code='int main(){return(0);}\n'
6596
6597
6598# If no C compiler was specified, use CC.
6599LTCC=${LTCC-"$CC"}
6600
6601# Allow CC to be a program name with arguments.
6602compiler=$CC
6603
6604
6605# save warnings/boilerplate of simple test code
6606ac_outfile=conftest.$ac_objext
6607printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6608eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6609_lt_compiler_boilerplate=`cat conftest.err`
6610$rm conftest*
6611
6612ac_outfile=conftest.$ac_objext
6613printf "$lt_simple_link_test_code" >conftest.$ac_ext
6614eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6615_lt_linker_boilerplate=`cat conftest.err`
6616$rm conftest*
6617
6618
6619#
6620# Check for any special shared library compilation flags.
6621#
6622lt_prog_cc_shlib=
6623if test "$GCC" = no; then
6624  case $host_os in
6625  sco3.2v5*)
6626    lt_prog_cc_shlib='-belf'
6627    ;;
6628  esac
6629fi
6630if test -n "$lt_prog_cc_shlib"; then
6631  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6632echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6633  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6634  else
6635    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6636echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6637    lt_cv_prog_cc_can_build_shared=no
6638  fi
6639fi
6640
6641
6642#
6643# Check to make sure the static flag actually works.
6644#
6645echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6646echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6647if test "${lt_prog_compiler_static_works+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  lt_prog_compiler_static_works=no
6651   save_LDFLAGS="$LDFLAGS"
6652   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6653   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6654   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6655     # The linker can only warn and ignore the option if not recognized
6656     # So say no if there are warnings
6657     if test -s conftest.err; then
6658       # Append any errors to the config.log.
6659       cat conftest.err 1>&5
6660       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6661       $SED '/^$/d' conftest.err >conftest.er2
6662       if diff conftest.exp conftest.er2 >/dev/null; then
6663         lt_prog_compiler_static_works=yes
6664       fi
6665     else
6666       lt_prog_compiler_static_works=yes
6667     fi
6668   fi
6669   $rm conftest*
6670   LDFLAGS="$save_LDFLAGS"
6671
6672fi
6673echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6674echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6675
6676if test x"$lt_prog_compiler_static_works" = xyes; then
6677    :
6678else
6679    lt_prog_compiler_static=
6680fi
6681
6682
6683
6684## CAVEAT EMPTOR:
6685## There is no encapsulation within the following macros, do not change
6686## the running order or otherwise move them around unless you know exactly
6687## what you are doing...
6688
6689lt_prog_compiler_no_builtin_flag=
6690
6691if test "$GCC" = yes; then
6692  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6693
6694
6695echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  lt_cv_prog_compiler_rtti_exceptions=no
6701  ac_outfile=conftest.$ac_objext
6702   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6703   lt_compiler_flag="-fno-rtti -fno-exceptions"
6704   # Insert the option either (1) after the last *FLAGS variable, or
6705   # (2) before a word containing "conftest.", or (3) at the end.
6706   # Note that $ac_compile itself does not contain backslashes and begins
6707   # with a dollar sign (not a hyphen), so the echo should work correctly.
6708   # The option is referenced via a variable to avoid confusing sed.
6709   lt_compile=`echo "$ac_compile" | $SED \
6710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6712   -e 's:$: $lt_compiler_flag:'`
6713   (eval echo "\"\$as_me:6713: $lt_compile\"" >&5)
6714   (eval "$lt_compile" 2>conftest.err)
6715   ac_status=$?
6716   cat conftest.err >&5
6717   echo "$as_me:6717: \$? = $ac_status" >&5
6718   if (exit $ac_status) && test -s "$ac_outfile"; then
6719     # The compiler can only warn and ignore the option if not recognized
6720     # So say no if there are warnings other than the usual output.
6721     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6722     $SED '/^$/d' conftest.err >conftest.er2
6723     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6724       lt_cv_prog_compiler_rtti_exceptions=yes
6725     fi
6726   fi
6727   $rm conftest*
6728
6729fi
6730echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6731echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6732
6733if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6734    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6735else
6736    :
6737fi
6738
6739fi
6740
6741lt_prog_compiler_wl=
6742lt_prog_compiler_pic=
6743lt_prog_compiler_static=
6744
6745echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6746echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6747
6748  if test "$GCC" = yes; then
6749    lt_prog_compiler_wl='-Wl,'
6750    lt_prog_compiler_static='-static'
6751
6752    case $host_os in
6753      aix*)
6754      # All AIX code is PIC.
6755      if test "$host_cpu" = ia64; then
6756	# AIX 5 now supports IA64 processor
6757	lt_prog_compiler_static='-Bstatic'
6758      fi
6759      ;;
6760
6761    amigaos*)
6762      # FIXME: we need at least 68020 code to build shared libraries, but
6763      # adding the `-m68020' flag to GCC prevents building anything better,
6764      # like `-m68040'.
6765      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6766      ;;
6767
6768    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
6769    | osf5*)
6770      # PIC is the default for these OSes.
6771      ;;
6772
6773    mingw* | pw32* | os2*)
6774      # This hack is so that the source file can tell whether it is being
6775      # built for inclusion in a dll (and should export symbols for example).
6776      lt_prog_compiler_pic='-DDLL_EXPORT'
6777      ;;
6778
6779    darwin* | rhapsody*)
6780      # PIC is the default on this platform
6781      # Common symbols not allowed in MH_DYLIB files
6782      lt_prog_compiler_pic='-fno-common'
6783      ;;
6784
6785    msdosdjgpp*)
6786      # Just because we use GCC doesn't mean we suddenly get shared libraries
6787      # on systems that don't support them.
6788      lt_prog_compiler_can_build_shared=no
6789      enable_shared=no
6790      ;;
6791
6792    sysv4*MP*)
6793      if test -d /usr/nec; then
6794	lt_prog_compiler_pic=-Kconform_pic
6795      fi
6796      ;;
6797
6798    hpux*)
6799      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6800      # not for PA HP-UX.
6801      case $host_cpu in
6802      hppa*64*|ia64*)
6803	# +Z the default
6804	;;
6805      *)
6806	lt_prog_compiler_pic='-fPIC'
6807	;;
6808      esac
6809      ;;
6810
6811    *)
6812      lt_prog_compiler_pic='-fPIC'
6813      ;;
6814    esac
6815  else
6816    # PORTME Check for flag to pass linker flags through the system compiler.
6817    case $host_os in
6818    aix*)
6819      lt_prog_compiler_wl='-Wl,'
6820      if test "$host_cpu" = ia64; then
6821	# AIX 5 now supports IA64 processor
6822	lt_prog_compiler_static='-Bstatic'
6823      else
6824	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6825      fi
6826      ;;
6827      darwin*)
6828        # PIC is the default on this platform
6829        # Common symbols not allowed in MH_DYLIB files
6830       case $cc_basename in
6831         xlc*)
6832         lt_prog_compiler_pic='-qnocommon'
6833         lt_prog_compiler_wl='-Wl,'
6834         ;;
6835       esac
6836       ;;
6837
6838    mingw* | pw32* | os2*)
6839      # This hack is so that the source file can tell whether it is being
6840      # built for inclusion in a dll (and should export symbols for example).
6841      lt_prog_compiler_pic='-DDLL_EXPORT'
6842      ;;
6843
6844    hpux9* | hpux10* | hpux11*)
6845      lt_prog_compiler_wl='-Wl,'
6846      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6847      # not for PA HP-UX.
6848      case $host_cpu in
6849      hppa*64*|ia64*)
6850	# +Z the default
6851	;;
6852      *)
6853	lt_prog_compiler_pic='+Z'
6854	;;
6855      esac
6856      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6857      lt_prog_compiler_static='${wl}-a ${wl}archive'
6858      ;;
6859
6860    irix5* | irix6* | nonstopux*)
6861      lt_prog_compiler_wl='-Wl,'
6862      # PIC (with -KPIC) is the default.
6863      lt_prog_compiler_static='-non_shared'
6864      ;;
6865
6866    newsos6)
6867      lt_prog_compiler_pic='-KPIC'
6868      lt_prog_compiler_static='-Bstatic'
6869      ;;
6870
6871    linux*)
6872      case $cc_basename in
6873      icc* | ecc*)
6874	lt_prog_compiler_wl='-Wl,'
6875	lt_prog_compiler_pic='-KPIC'
6876	lt_prog_compiler_static='-static'
6877        ;;
6878      pgcc* | pgf77* | pgf90* | pgf95*)
6879        # Portland Group compilers (*not* the Pentium gcc compiler,
6880	# which looks to be a dead project)
6881	lt_prog_compiler_wl='-Wl,'
6882	lt_prog_compiler_pic='-fpic'
6883	lt_prog_compiler_static='-Bstatic'
6884        ;;
6885      ccc*)
6886        lt_prog_compiler_wl='-Wl,'
6887        # All Alpha code is PIC.
6888        lt_prog_compiler_static='-non_shared'
6889        ;;
6890      esac
6891      ;;
6892
6893    osf3* | osf4* | osf5*)
6894      lt_prog_compiler_wl='-Wl,'
6895      # All OSF/1 code is PIC.
6896      lt_prog_compiler_static='-non_shared'
6897      ;;
6898
6899    sco3.2v5*)
6900      lt_prog_compiler_pic='-Kpic'
6901      lt_prog_compiler_static='-dn'
6902      ;;
6903
6904    solaris*)
6905      lt_prog_compiler_pic='-KPIC'
6906      lt_prog_compiler_static='-Bstatic'
6907      case $cc_basename in
6908      f77* | f90* | f95*)
6909	lt_prog_compiler_wl='-Qoption ld ';;
6910      *)
6911	lt_prog_compiler_wl='-Wl,';;
6912      esac
6913      ;;
6914
6915    sunos4*)
6916      lt_prog_compiler_wl='-Qoption ld '
6917      lt_prog_compiler_pic='-PIC'
6918      lt_prog_compiler_static='-Bstatic'
6919      ;;
6920
6921    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6922      lt_prog_compiler_wl='-Wl,'
6923      lt_prog_compiler_pic='-KPIC'
6924      lt_prog_compiler_static='-Bstatic'
6925      ;;
6926
6927    sysv4*MP*)
6928      if test -d /usr/nec ;then
6929	lt_prog_compiler_pic='-Kconform_pic'
6930	lt_prog_compiler_static='-Bstatic'
6931      fi
6932      ;;
6933
6934    unicos*)
6935      lt_prog_compiler_wl='-Wl,'
6936      lt_prog_compiler_can_build_shared=no
6937      ;;
6938
6939    uts4*)
6940      lt_prog_compiler_pic='-pic'
6941      lt_prog_compiler_static='-Bstatic'
6942      ;;
6943
6944    *)
6945      lt_prog_compiler_can_build_shared=no
6946      ;;
6947    esac
6948  fi
6949
6950echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6951echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6952
6953#
6954# Check to make sure the PIC flag actually works.
6955#
6956if test -n "$lt_prog_compiler_pic"; then
6957
6958echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6959echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6960if test "${lt_prog_compiler_pic_works+set}" = set; then
6961  echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963  lt_prog_compiler_pic_works=no
6964  ac_outfile=conftest.$ac_objext
6965   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6966   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6967   # Insert the option either (1) after the last *FLAGS variable, or
6968   # (2) before a word containing "conftest.", or (3) at the end.
6969   # Note that $ac_compile itself does not contain backslashes and begins
6970   # with a dollar sign (not a hyphen), so the echo should work correctly.
6971   # The option is referenced via a variable to avoid confusing sed.
6972   lt_compile=`echo "$ac_compile" | $SED \
6973   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6974   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6975   -e 's:$: $lt_compiler_flag:'`
6976   (eval echo "\"\$as_me:6976: $lt_compile\"" >&5)
6977   (eval "$lt_compile" 2>conftest.err)
6978   ac_status=$?
6979   cat conftest.err >&5
6980   echo "$as_me:6980: \$? = $ac_status" >&5
6981   if (exit $ac_status) && test -s "$ac_outfile"; then
6982     # The compiler can only warn and ignore the option if not recognized
6983     # So say no if there are warnings other than the usual output.
6984     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6985     $SED '/^$/d' conftest.err >conftest.er2
6986     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6987       lt_prog_compiler_pic_works=yes
6988     fi
6989   fi
6990   $rm conftest*
6991
6992fi
6993echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6994echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6995
6996if test x"$lt_prog_compiler_pic_works" = xyes; then
6997    case $lt_prog_compiler_pic in
6998     "" | " "*) ;;
6999     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7000     esac
7001else
7002    lt_prog_compiler_pic=
7003     lt_prog_compiler_can_build_shared=no
7004fi
7005
7006fi
7007case $host_os in
7008  # For platforms which do not support PIC, -DPIC is meaningless:
7009  *djgpp*)
7010    lt_prog_compiler_pic=
7011    ;;
7012  *)
7013    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7014    ;;
7015esac
7016
7017echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7018echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7019if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  lt_cv_prog_compiler_c_o=no
7023   $rm -r conftest 2>/dev/null
7024   mkdir conftest
7025   cd conftest
7026   mkdir out
7027   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7028
7029   lt_compiler_flag="-o out/conftest2.$ac_objext"
7030   # Insert the option either (1) after the last *FLAGS variable, or
7031   # (2) before a word containing "conftest.", or (3) at the end.
7032   # Note that $ac_compile itself does not contain backslashes and begins
7033   # with a dollar sign (not a hyphen), so the echo should work correctly.
7034   lt_compile=`echo "$ac_compile" | $SED \
7035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7037   -e 's:$: $lt_compiler_flag:'`
7038   (eval echo "\"\$as_me:7038: $lt_compile\"" >&5)
7039   (eval "$lt_compile" 2>out/conftest.err)
7040   ac_status=$?
7041   cat out/conftest.err >&5
7042   echo "$as_me:7042: \$? = $ac_status" >&5
7043   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7044   then
7045     # The compiler can only warn and ignore the option if not recognized
7046     # So say no if there are warnings
7047     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7048     $SED '/^$/d' out/conftest.err >out/conftest.er2
7049     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7050       lt_cv_prog_compiler_c_o=yes
7051     fi
7052   fi
7053   chmod u+w . 2>&5
7054   $rm conftest*
7055   # SGI C++ compiler will create directory out/ii_files/ for
7056   # template instantiation
7057   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7058   $rm out/* && rmdir out
7059   cd ..
7060   rmdir conftest
7061   $rm conftest*
7062
7063fi
7064echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7065echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7066
7067
7068hard_links="nottested"
7069if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7070  # do not overwrite the value of need_locks provided by the user
7071  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7072echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7073  hard_links=yes
7074  $rm conftest*
7075  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7076  touch conftest.a
7077  ln conftest.a conftest.b 2>&5 || hard_links=no
7078  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7079  echo "$as_me:$LINENO: result: $hard_links" >&5
7080echo "${ECHO_T}$hard_links" >&6
7081  if test "$hard_links" = no; then
7082    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7083echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7084    need_locks=warn
7085  fi
7086else
7087  need_locks=no
7088fi
7089
7090echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7091echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7092
7093  runpath_var=
7094  allow_undefined_flag=
7095  enable_shared_with_static_runtimes=no
7096  archive_cmds=
7097  archive_expsym_cmds=
7098  old_archive_From_new_cmds=
7099  old_archive_from_expsyms_cmds=
7100  export_dynamic_flag_spec=
7101  whole_archive_flag_spec=
7102  thread_safe_flag_spec=
7103  hardcode_libdir_flag_spec=
7104  hardcode_libdir_flag_spec_ld=
7105  hardcode_libdir_separator=
7106  hardcode_direct=no
7107  hardcode_minus_L=no
7108  hardcode_shlibpath_var=unsupported
7109  link_all_deplibs=unknown
7110  hardcode_automatic=no
7111  module_cmds=
7112  module_expsym_cmds=
7113  always_export_symbols=no
7114  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7115  # include_expsyms should be a list of space-separated symbols to be *always*
7116  # included in the symbol list
7117  include_expsyms=
7118  # exclude_expsyms can be an extended regexp of symbols to exclude
7119  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7120  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7121  # as well as any symbol that contains `d'.
7122  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7123  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7124  # platforms (ab)use it in PIC code, but their linkers get confused if
7125  # the symbol is explicitly referenced.  Since portable code cannot
7126  # rely on this symbol name, it's probably fine to never include it in
7127  # preloaded symbol tables.
7128  extract_expsyms_cmds=
7129  # Just being paranoid about ensuring that cc_basename is set.
7130  for cc_temp in $compiler""; do
7131  case $cc_temp in
7132    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7133    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7134    \-*) ;;
7135    *) break;;
7136  esac
7137done
7138cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7139
7140  case $host_os in
7141  cygwin* | mingw* | pw32*)
7142    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7143    # When not using gcc, we currently assume that we are using
7144    # Microsoft Visual C++.
7145    if test "$GCC" != yes; then
7146      with_gnu_ld=no
7147    fi
7148    ;;
7149  openbsd*)
7150    with_gnu_ld=no
7151    ;;
7152  esac
7153
7154  ld_shlibs=yes
7155  if test "$with_gnu_ld" = yes; then
7156    # If archive_cmds runs LD, not CC, wlarc should be empty
7157    wlarc='${wl}'
7158
7159    # Set some defaults for GNU ld with shared library support. These
7160    # are reset later if shared libraries are not supported. Putting them
7161    # here allows them to be overridden if necessary.
7162    runpath_var=LD_RUN_PATH
7163    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7164    export_dynamic_flag_spec='${wl}--export-dynamic'
7165    # ancient GNU ld didn't support --whole-archive et. al.
7166    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7167	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7168      else
7169  	whole_archive_flag_spec=
7170    fi
7171    supports_anon_versioning=no
7172    case `$LD -v 2>/dev/null` in
7173      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7174      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7175      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7176      *\ 2.11.*) ;; # other 2.11 versions
7177      *) supports_anon_versioning=yes ;;
7178    esac
7179
7180    # See if GNU ld supports shared libraries.
7181    case $host_os in
7182    aix3* | aix4* | aix5*)
7183      # On AIX/PPC, the GNU linker is very broken
7184      if test "$host_cpu" != ia64; then
7185	ld_shlibs=no
7186	cat <<EOF 1>&2
7187
7188*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7189*** to be unable to reliably create shared libraries on AIX.
7190*** Therefore, libtool is disabling shared libraries support.  If you
7191*** really care for shared libraries, you may want to modify your PATH
7192*** so that a non-GNU linker is found, and then restart.
7193
7194EOF
7195      fi
7196      ;;
7197
7198    amigaos*)
7199      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)'
7200      hardcode_libdir_flag_spec='-L$libdir'
7201      hardcode_minus_L=yes
7202
7203      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7204      # that the semantics of dynamic libraries on AmigaOS, at least up
7205      # to version 4, is to share data among multiple programs linked
7206      # with the same dynamic library.  Since this doesn't match the
7207      # behavior of shared libraries on other platforms, we can't use
7208      # them.
7209      ld_shlibs=no
7210      ;;
7211
7212    beos*)
7213      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7214	allow_undefined_flag=unsupported
7215	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7216	# support --undefined.  This deserves some investigation.  FIXME
7217	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218      else
7219	ld_shlibs=no
7220      fi
7221      ;;
7222
7223    cygwin* | mingw* | pw32*)
7224      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7225      # as there is no search path for DLLs.
7226      hardcode_libdir_flag_spec='-L$libdir'
7227      allow_undefined_flag=unsupported
7228      always_export_symbols=no
7229      enable_shared_with_static_runtimes=yes
7230      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7231
7232      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7233        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7234	# If the export-symbols file already is a .def file (1st line
7235	# is EXPORTS), use it as is; otherwise, prepend...
7236	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7237	  cp $export_symbols $output_objdir/$soname.def;
7238	else
7239	  echo EXPORTS > $output_objdir/$soname.def;
7240	  cat $export_symbols >> $output_objdir/$soname.def;
7241	fi~
7242	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7243      else
7244	ld_shlibs=no
7245      fi
7246      ;;
7247
7248    haiku*)
7249      allow_undefined_flag=unsupported
7250      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251      ;;
7252
7253    linux*)
7254      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7255	tmp_addflag=
7256	case $cc_basename,$host_cpu in
7257	pgcc*)				# Portland Group C compiler
7258	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7259	  tmp_addflag=' $pic_flag'
7260	  ;;
7261	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7262	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7263	  tmp_addflag=' $pic_flag -Mnomain' ;;
7264	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7265	  tmp_addflag=' -i_dynamic' ;;
7266	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7267	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7268	ifc* | ifort*)			# Intel Fortran compiler
7269	  tmp_addflag=' -nofor_main' ;;
7270	esac
7271	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7272
7273	if test $supports_anon_versioning = yes; then
7274	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7275  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7276  $echo "local: *; };" >> $output_objdir/$libname.ver~
7277	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7278	fi
7279      else
7280	ld_shlibs=no
7281      fi
7282      ;;
7283
7284    netbsd*)
7285      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7286	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7287	wlarc=
7288      else
7289	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7290	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7291      fi
7292      ;;
7293
7294    solaris* | sysv5*)
7295      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7296	ld_shlibs=no
7297	cat <<EOF 1>&2
7298
7299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7300*** create shared libraries on Solaris systems.  Therefore, libtool
7301*** is disabling shared libraries support.  We urge you to upgrade GNU
7302*** binutils to release 2.9.1 or newer.  Another option is to modify
7303*** your PATH or compiler configuration so that the native linker is
7304*** used, and then restart.
7305
7306EOF
7307      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7308	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7309	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7310      else
7311	ld_shlibs=no
7312      fi
7313      ;;
7314
7315    sunos4*)
7316      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7317      wlarc=
7318      hardcode_direct=yes
7319      hardcode_shlibpath_var=no
7320      ;;
7321
7322    *)
7323      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7324	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7325	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7326      else
7327	ld_shlibs=no
7328      fi
7329      ;;
7330    esac
7331
7332    if test "$ld_shlibs" = no; then
7333      runpath_var=
7334      hardcode_libdir_flag_spec=
7335      export_dynamic_flag_spec=
7336      whole_archive_flag_spec=
7337    fi
7338  else
7339    # PORTME fill in a description of your system's linker (not GNU ld)
7340    case $host_os in
7341    aix3*)
7342      allow_undefined_flag=unsupported
7343      always_export_symbols=yes
7344      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'
7345      # Note: this linker hardcodes the directories in LIBPATH if there
7346      # are no directories specified by -L.
7347      hardcode_minus_L=yes
7348      if test "$GCC" = yes && test -z "$link_static_flag"; then
7349	# Neither direct hardcoding nor static linking is supported with a
7350	# broken collect2.
7351	hardcode_direct=unsupported
7352      fi
7353      ;;
7354
7355    aix4* | aix5*)
7356      if test "$host_cpu" = ia64; then
7357	# On IA64, the linker does run time linking by default, so we don't
7358	# have to do anything special.
7359	aix_use_runtimelinking=no
7360	exp_sym_flag='-Bexport'
7361	no_entry_flag=""
7362      else
7363	# If we're using GNU nm, then we don't want the "-C" option.
7364	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7365	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7366	  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'
7367	else
7368	  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'
7369	fi
7370	aix_use_runtimelinking=no
7371
7372	# Test if we are trying to use run time linking or normal
7373	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7374	# need to do runtime linking.
7375	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7376	  for ld_flag in $LDFLAGS; do
7377  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7378  	    aix_use_runtimelinking=yes
7379  	    break
7380  	  fi
7381	  done
7382	esac
7383
7384	exp_sym_flag='-bexport'
7385	no_entry_flag='-bnoentry'
7386      fi
7387
7388      # When large executables or shared objects are built, AIX ld can
7389      # have problems creating the table of contents.  If linking a library
7390      # or program results in "error TOC overflow" add -mminimal-toc to
7391      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7392      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7393
7394      archive_cmds=''
7395      hardcode_direct=yes
7396      hardcode_libdir_separator=':'
7397      link_all_deplibs=yes
7398
7399      if test "$GCC" = yes; then
7400	case $host_os in aix4.[012]|aix4.[012].*)
7401	# We only want to do this on AIX 4.2 and lower, the check
7402	# below for broken collect2 doesn't work under 4.3+
7403	  collect2name=`${CC} -print-prog-name=collect2`
7404	  if test -f "$collect2name" && \
7405  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7406	  then
7407  	  # We have reworked collect2
7408  	  hardcode_direct=yes
7409	  else
7410  	  # We have old collect2
7411  	  hardcode_direct=unsupported
7412  	  # It fails to find uninstalled libraries when the uninstalled
7413  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7414  	  # to unsupported forces relinking
7415  	  hardcode_minus_L=yes
7416  	  hardcode_libdir_flag_spec='-L$libdir'
7417  	  hardcode_libdir_separator=
7418	  fi
7419	esac
7420	shared_flag='-shared'
7421	if test "$aix_use_runtimelinking" = yes; then
7422	  shared_flag="$shared_flag "'${wl}-G'
7423	fi
7424      else
7425	# not using gcc
7426	if test "$host_cpu" = ia64; then
7427  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7428  	# chokes on -Wl,-G. The following line is correct:
7429	  shared_flag='-G'
7430	else
7431  	if test "$aix_use_runtimelinking" = yes; then
7432	    shared_flag='${wl}-G'
7433	  else
7434	    shared_flag='${wl}-bM:SRE'
7435  	fi
7436	fi
7437      fi
7438
7439      # It seems that -bexpall does not export symbols beginning with
7440      # underscore (_), so it is better to generate a list of symbols to export.
7441      always_export_symbols=yes
7442      if test "$aix_use_runtimelinking" = yes; then
7443	# Warning - without using the other runtime loading flags (-brtl),
7444	# -berok will link without error, but may produce a broken library.
7445	allow_undefined_flag='-berok'
7446       # Determine the default libpath from the value encoded in an empty executable.
7447       cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h.  */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h.  */
7453
7454int
7455main ()
7456{
7457
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext conftest$ac_exeext
7463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464  (eval $ac_link) 2>conftest.er1
7465  ac_status=$?
7466  grep -v '^ *+' conftest.er1 >conftest.err
7467  rm -f conftest.er1
7468  cat conftest.err >&5
7469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470  (exit $ac_status); } &&
7471	 { ac_try='test -z "$ac_c_werror_flag"
7472			 || test ! -s conftest.err'
7473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474  (eval $ac_try) 2>&5
7475  ac_status=$?
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); }; } &&
7478	 { ac_try='test -s conftest$ac_exeext'
7479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480  (eval $ac_try) 2>&5
7481  ac_status=$?
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); }; }; then
7484
7485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7486}'`
7487# Check for a 64-bit object if we didn't find anything.
7488if 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; }
7489}'`; fi
7490else
7491  echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
7494fi
7495rm -f conftest.err conftest.$ac_objext \
7496      conftest$ac_exeext conftest.$ac_ext
7497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7498
7499       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7500	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"
7501       else
7502	if test "$host_cpu" = ia64; then
7503	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7504	  allow_undefined_flag="-z nodefs"
7505	  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"
7506	else
7507	 # Determine the default libpath from the value encoded in an empty executable.
7508	 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h.  */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h.  */
7514
7515int
7516main ()
7517{
7518
7519  ;
7520  return 0;
7521}
7522_ACEOF
7523rm -f conftest.$ac_objext conftest$ac_exeext
7524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525  (eval $ac_link) 2>conftest.er1
7526  ac_status=$?
7527  grep -v '^ *+' conftest.er1 >conftest.err
7528  rm -f conftest.er1
7529  cat conftest.err >&5
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); } &&
7532	 { ac_try='test -z "$ac_c_werror_flag"
7533			 || test ! -s conftest.err'
7534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535  (eval $ac_try) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); }; } &&
7539	 { ac_try='test -s conftest$ac_exeext'
7540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541  (eval $ac_try) 2>&5
7542  ac_status=$?
7543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544  (exit $ac_status); }; }; then
7545
7546aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7547}'`
7548# Check for a 64-bit object if we didn't find anything.
7549if 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; }
7550}'`; fi
7551else
7552  echo "$as_me: failed program was:" >&5
7553sed 's/^/| /' conftest.$ac_ext >&5
7554
7555fi
7556rm -f conftest.err conftest.$ac_objext \
7557      conftest$ac_exeext conftest.$ac_ext
7558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7559
7560	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7561	  # Warning - without using the other run time loading flags,
7562	  # -berok will link without error, but may produce a broken library.
7563	  no_undefined_flag=' ${wl}-bernotok'
7564	  allow_undefined_flag=' ${wl}-berok'
7565	  # -bexpall does not export symbols beginning with underscore (_)
7566	  always_export_symbols=yes
7567	  # Exported symbols can be pulled into shared objects from archives
7568	  whole_archive_flag_spec=' '
7569	  archive_cmds_need_lc=yes
7570	  # This is similar to how AIX traditionally builds its shared libraries.
7571	  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'
7572	fi
7573      fi
7574      ;;
7575
7576    amigaos*)
7577      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)'
7578      hardcode_libdir_flag_spec='-L$libdir'
7579      hardcode_minus_L=yes
7580      # see comment about different semantics on the GNU ld section
7581      ld_shlibs=no
7582      ;;
7583
7584    bsdi[45]*)
7585      export_dynamic_flag_spec=-rdynamic
7586      ;;
7587
7588    cygwin* | mingw* | pw32*)
7589      # When not using gcc, we currently assume that we are using
7590      # Microsoft Visual C++.
7591      # hardcode_libdir_flag_spec is actually meaningless, as there is
7592      # no search path for DLLs.
7593      hardcode_libdir_flag_spec=' '
7594      allow_undefined_flag=unsupported
7595      # Tell ltmain to make .lib files, not .a files.
7596      libext=lib
7597      # Tell ltmain to make .dll files, not .so files.
7598      shrext_cmds=".dll"
7599      # FIXME: Setting linknames here is a bad hack.
7600      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7601      # The linker will automatically build a .lib file if we build a DLL.
7602      old_archive_From_new_cmds='true'
7603      # FIXME: Should let the user specify the lib program.
7604      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7605      fix_srcfile_path='`cygpath -w "$srcfile"`'
7606      enable_shared_with_static_runtimes=yes
7607      ;;
7608
7609    darwin* | rhapsody*)
7610      case $host_os in
7611        rhapsody* | darwin1.[012])
7612         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7613         ;;
7614       *) # Darwin 1.3 on
7615         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7616           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7617         else
7618           case ${MACOSX_DEPLOYMENT_TARGET} in
7619             10.[012])
7620               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7621               ;;
7622             10.*)
7623               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7624               ;;
7625           esac
7626         fi
7627         ;;
7628      esac
7629      archive_cmds_need_lc=no
7630      hardcode_direct=no
7631      hardcode_automatic=yes
7632      hardcode_shlibpath_var=unsupported
7633      whole_archive_flag_spec=''
7634      link_all_deplibs=yes
7635    if test "$GCC" = yes ; then
7636    	output_verbose_link_cmd='echo'
7637        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7638      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7639      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7640      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}'
7641      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}'
7642    else
7643      case $cc_basename in
7644        xlc*)
7645         output_verbose_link_cmd='echo'
7646         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7647         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7648          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7649         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7650          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}'
7651          ;;
7652       *)
7653         ld_shlibs=no
7654          ;;
7655      esac
7656    fi
7657      ;;
7658
7659    dgux*)
7660      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661      hardcode_libdir_flag_spec='-L$libdir'
7662      hardcode_shlibpath_var=no
7663      ;;
7664
7665    freebsd1*)
7666      ld_shlibs=no
7667      ;;
7668
7669    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7670    # support.  Future versions do this automatically, but an explicit c++rt0.o
7671    # does not break anything, and helps significantly (at the cost of a little
7672    # extra space).
7673    freebsd2.2*)
7674      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7675      hardcode_libdir_flag_spec='-R$libdir'
7676      hardcode_direct=yes
7677      hardcode_shlibpath_var=no
7678      ;;
7679
7680    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7681    freebsd2*)
7682      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7683      hardcode_direct=yes
7684      hardcode_minus_L=yes
7685      hardcode_shlibpath_var=no
7686      ;;
7687
7688    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7689    freebsd* | kfreebsd*-gnu | dragonfly*)
7690      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7691      hardcode_libdir_flag_spec='-R$libdir'
7692      hardcode_direct=yes
7693      hardcode_shlibpath_var=no
7694      ;;
7695
7696    hpux9*)
7697      if test "$GCC" = yes; then
7698	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'
7699      else
7700	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'
7701      fi
7702      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7703      hardcode_libdir_separator=:
7704      hardcode_direct=yes
7705
7706      # hardcode_minus_L: Not really in the search PATH,
7707      # but as the default location of the library.
7708      hardcode_minus_L=yes
7709      export_dynamic_flag_spec='${wl}-E'
7710      ;;
7711
7712    hpux10* | hpux11*)
7713      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7714	case $host_cpu in
7715	hppa*64*|ia64*)
7716	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717	  ;;
7718	*)
7719	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7720	  ;;
7721	esac
7722      else
7723	case $host_cpu in
7724	hppa*64*|ia64*)
7725	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7726	  ;;
7727	*)
7728	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729	  ;;
7730	esac
7731      fi
7732      if test "$with_gnu_ld" = no; then
7733	case $host_cpu in
7734	hppa*64*)
7735	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7736	  hardcode_libdir_flag_spec_ld='+b $libdir'
7737	  hardcode_libdir_separator=:
7738	  hardcode_direct=no
7739	  hardcode_shlibpath_var=no
7740	  ;;
7741	ia64*)
7742	  hardcode_libdir_flag_spec='-L$libdir'
7743	  hardcode_direct=no
7744	  hardcode_shlibpath_var=no
7745
7746	  # hardcode_minus_L: Not really in the search PATH,
7747	  # but as the default location of the library.
7748	  hardcode_minus_L=yes
7749	  ;;
7750	*)
7751	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7752	  hardcode_libdir_separator=:
7753	  hardcode_direct=yes
7754	  export_dynamic_flag_spec='${wl}-E'
7755
7756	  # hardcode_minus_L: Not really in the search PATH,
7757	  # but as the default location of the library.
7758	  hardcode_minus_L=yes
7759	  ;;
7760	esac
7761      fi
7762      ;;
7763
7764    irix5* | irix6* | nonstopux*)
7765      if test "$GCC" = yes; then
7766	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'
7767      else
7768	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'
7769	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7770      fi
7771      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7772      hardcode_libdir_separator=:
7773      link_all_deplibs=yes
7774      ;;
7775
7776    netbsd*)
7777      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7778	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7779      else
7780	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7781      fi
7782      hardcode_libdir_flag_spec='-R$libdir'
7783      hardcode_direct=yes
7784      hardcode_shlibpath_var=no
7785      ;;
7786
7787    newsos6)
7788      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789      hardcode_direct=yes
7790      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7791      hardcode_libdir_separator=:
7792      hardcode_shlibpath_var=no
7793      ;;
7794
7795    openbsd*)
7796      hardcode_direct=yes
7797      hardcode_shlibpath_var=no
7798      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7799	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7800	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7801	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7802	export_dynamic_flag_spec='${wl}-E'
7803      else
7804       case $host_os in
7805	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7806	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7807	   hardcode_libdir_flag_spec='-R$libdir'
7808	   ;;
7809	 *)
7810	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7811	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7812	   ;;
7813       esac
7814      fi
7815      ;;
7816
7817    os2*)
7818      hardcode_libdir_flag_spec='-L$libdir'
7819      hardcode_minus_L=yes
7820      allow_undefined_flag=unsupported
7821      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'
7822      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7823      ;;
7824
7825    osf3*)
7826      if test "$GCC" = yes; then
7827	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7828	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'
7829      else
7830	allow_undefined_flag=' -expect_unresolved \*'
7831	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'
7832      fi
7833      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7834      hardcode_libdir_separator=:
7835      ;;
7836
7837    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7838      if test "$GCC" = yes; then
7839	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7840	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'
7841	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7842      else
7843	allow_undefined_flag=' -expect_unresolved \*'
7844	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'
7845	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7846	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7847
7848	# Both c and cxx compiler support -rpath directly
7849	hardcode_libdir_flag_spec='-rpath $libdir'
7850      fi
7851      hardcode_libdir_separator=:
7852      ;;
7853
7854    sco3.2v5*)
7855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7856      hardcode_shlibpath_var=no
7857      export_dynamic_flag_spec='${wl}-Bexport'
7858      runpath_var=LD_RUN_PATH
7859      hardcode_runpath_var=yes
7860      ;;
7861
7862    solaris*)
7863      no_undefined_flag=' -z text'
7864      if test "$GCC" = yes; then
7865	wlarc='${wl}'
7866	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7867	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7868	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7869      else
7870	wlarc=''
7871	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7873  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7874      fi
7875      hardcode_libdir_flag_spec='-R$libdir'
7876      hardcode_shlibpath_var=no
7877      case $host_os in
7878      solaris2.[0-5] | solaris2.[0-5].*) ;;
7879      *)
7880 	# The compiler driver will combine linker options so we
7881 	# cannot just pass the convience library names through
7882 	# without $wl, iff we do not link with $LD.
7883 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7884 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7885 	case $wlarc in
7886 	'')
7887 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7888 	*)
7889 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7890 	esac ;;
7891      esac
7892      link_all_deplibs=yes
7893      ;;
7894
7895    sunos4*)
7896      if test "x$host_vendor" = xsequent; then
7897	# Use $CC to link under sequent, because it throws in some extra .o
7898	# files that make .init and .fini sections work.
7899	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7900      else
7901	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7902      fi
7903      hardcode_libdir_flag_spec='-L$libdir'
7904      hardcode_direct=yes
7905      hardcode_minus_L=yes
7906      hardcode_shlibpath_var=no
7907      ;;
7908
7909    sysv4)
7910      case $host_vendor in
7911	sni)
7912	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913	  hardcode_direct=yes # is this really true???
7914	;;
7915	siemens)
7916	  ## LD is ld it makes a PLAMLIB
7917	  ## CC just makes a GrossModule.
7918	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7919	  reload_cmds='$CC -r -o $output$reload_objs'
7920	  hardcode_direct=no
7921        ;;
7922	motorola)
7923	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7924	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7925	;;
7926      esac
7927      runpath_var='LD_RUN_PATH'
7928      hardcode_shlibpath_var=no
7929      ;;
7930
7931    sysv4.3*)
7932      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933      hardcode_shlibpath_var=no
7934      export_dynamic_flag_spec='-Bexport'
7935      ;;
7936
7937    sysv4*MP*)
7938      if test -d /usr/nec; then
7939	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940	hardcode_shlibpath_var=no
7941	runpath_var=LD_RUN_PATH
7942	hardcode_runpath_var=yes
7943	ld_shlibs=yes
7944      fi
7945      ;;
7946
7947    sysv4.2uw2*)
7948      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7949      hardcode_direct=yes
7950      hardcode_minus_L=no
7951      hardcode_shlibpath_var=no
7952      hardcode_runpath_var=yes
7953      runpath_var=LD_RUN_PATH
7954      ;;
7955
7956   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7957      no_undefined_flag='${wl}-z ${wl}text'
7958      if test "$GCC" = yes; then
7959	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7960      else
7961	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7962      fi
7963      runpath_var='LD_RUN_PATH'
7964      hardcode_shlibpath_var=no
7965      ;;
7966
7967    sysv5*)
7968      no_undefined_flag=' -z text'
7969      # $CC -shared without GNU ld will not create a library from C++
7970      # object files and a static libstdc++, better avoid it by now
7971      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7973  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7974      hardcode_libdir_flag_spec=
7975      hardcode_shlibpath_var=no
7976      runpath_var='LD_RUN_PATH'
7977      ;;
7978
7979    uts4*)
7980      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981      hardcode_libdir_flag_spec='-L$libdir'
7982      hardcode_shlibpath_var=no
7983      ;;
7984
7985    *)
7986      ld_shlibs=no
7987      ;;
7988    esac
7989  fi
7990
7991echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7992echo "${ECHO_T}$ld_shlibs" >&6
7993test "$ld_shlibs" = no && can_build_shared=no
7994
7995variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7996if test "$GCC" = yes; then
7997  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7998fi
7999
8000#
8001# Do we need to explicitly link libc?
8002#
8003case "x$archive_cmds_need_lc" in
8004x|xyes)
8005  # Assume -lc should be added
8006  archive_cmds_need_lc=yes
8007
8008  if test "$enable_shared" = yes && test "$GCC" = yes; then
8009    case $archive_cmds in
8010    *'~'*)
8011      # FIXME: we may have to deal with multi-command sequences.
8012      ;;
8013    '$CC '*)
8014      # Test whether the compiler implicitly links with -lc since on some
8015      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8016      # to ld, don't add -lc before -lgcc.
8017      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8018echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8019      $rm conftest*
8020      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8021
8022      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023  (eval $ac_compile) 2>&5
8024  ac_status=$?
8025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026  (exit $ac_status); } 2>conftest.err; then
8027        soname=conftest
8028        lib=conftest
8029        libobjs=conftest.$ac_objext
8030        deplibs=
8031        wl=$lt_prog_compiler_wl
8032        compiler_flags=-v
8033        linker_flags=-v
8034        verstring=
8035        output_objdir=.
8036        libname=conftest
8037        lt_save_allow_undefined_flag=$allow_undefined_flag
8038        allow_undefined_flag=
8039        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8040  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8041  ac_status=$?
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); }
8044        then
8045	  archive_cmds_need_lc=no
8046        else
8047	  archive_cmds_need_lc=yes
8048        fi
8049        allow_undefined_flag=$lt_save_allow_undefined_flag
8050      else
8051        cat conftest.err 1>&5
8052      fi
8053      $rm conftest*
8054      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8055echo "${ECHO_T}$archive_cmds_need_lc" >&6
8056      ;;
8057    esac
8058  fi
8059  ;;
8060esac
8061
8062echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8063echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8064library_names_spec=
8065libname_spec='lib$name'
8066soname_spec=
8067shrext_cmds=".so"
8068postinstall_cmds=
8069postuninstall_cmds=
8070finish_cmds=
8071finish_eval=
8072shlibpath_var=
8073shlibpath_overrides_runpath=unknown
8074version_type=none
8075dynamic_linker="$host_os ld.so"
8076sys_lib_dlsearch_path_spec="/lib /usr/lib"
8077if test "$GCC" = yes; then
8078  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8079  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8080    # if the path contains ";" then we assume it to be the separator
8081    # otherwise default to the standard path separator (i.e. ":") - it is
8082    # assumed that no part of a normal pathname contains ";" but that should
8083    # okay in the real world where ";" in dirpaths is itself problematic.
8084    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8085  else
8086    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8087  fi
8088else
8089  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8090fi
8091need_lib_prefix=unknown
8092hardcode_into_libs=no
8093
8094# when you set need_version to no, make sure it does not cause -set_version
8095# flags to be left without arguments
8096need_version=unknown
8097
8098case $host_os in
8099aix3*)
8100  version_type=linux
8101  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8102  shlibpath_var=LIBPATH
8103
8104  # AIX 3 has no versioning support, so we append a major version to the name.
8105  soname_spec='${libname}${release}${shared_ext}$major'
8106  ;;
8107
8108aix4* | aix5*)
8109  version_type=linux
8110  need_lib_prefix=no
8111  need_version=no
8112  hardcode_into_libs=yes
8113  if test "$host_cpu" = ia64; then
8114    # AIX 5 supports IA64
8115    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8116    shlibpath_var=LD_LIBRARY_PATH
8117  else
8118    # With GCC up to 2.95.x, collect2 would create an import file
8119    # for dependence libraries.  The import file would start with
8120    # the line `#! .'.  This would cause the generated library to
8121    # depend on `.', always an invalid library.  This was fixed in
8122    # development snapshots of GCC prior to 3.0.
8123    case $host_os in
8124      aix4 | aix4.[01] | aix4.[01].*)
8125      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8126	   echo ' yes '
8127	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8128	:
8129      else
8130	can_build_shared=no
8131      fi
8132      ;;
8133    esac
8134    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8135    # soname into executable. Probably we can add versioning support to
8136    # collect2, so additional links can be useful in future.
8137    if test "$aix_use_runtimelinking" = yes; then
8138      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8139      # instead of lib<name>.a to let people know that these are not
8140      # typical AIX shared libraries.
8141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8142    else
8143      # We preserve .a as extension for shared libraries through AIX4.2
8144      # and later when we are not doing run time linking.
8145      library_names_spec='${libname}${release}.a $libname.a'
8146      soname_spec='${libname}${release}${shared_ext}$major'
8147    fi
8148    shlibpath_var=LIBPATH
8149  fi
8150  ;;
8151
8152amigaos*)
8153  library_names_spec='$libname.ixlibrary $libname.a'
8154  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8155  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'
8156  ;;
8157
8158beos*)
8159  library_names_spec='${libname}${shared_ext}'
8160  dynamic_linker="$host_os ld.so"
8161  shlibpath_var=LIBRARY_PATH
8162  ;;
8163
8164bsdi[45]*)
8165  version_type=linux
8166  need_version=no
8167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168  soname_spec='${libname}${release}${shared_ext}$major'
8169  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8170  shlibpath_var=LD_LIBRARY_PATH
8171  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8172  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8173  # the default ld.so.conf also contains /usr/contrib/lib and
8174  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8175  # libtool to hard-code these into programs
8176  ;;
8177
8178cygwin* | mingw* | pw32*)
8179  version_type=windows
8180  shrext_cmds=".dll"
8181  need_version=no
8182  need_lib_prefix=no
8183
8184  case $GCC,$host_os in
8185  yes,cygwin* | yes,mingw* | yes,pw32*)
8186    library_names_spec='$libname.dll.a'
8187    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8188    postinstall_cmds='base_file=`basename \${file}`~
8189      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8190      dldir=$destdir/`dirname \$dlpath`~
8191      test -d \$dldir || mkdir -p \$dldir~
8192      $install_prog $dir/$dlname \$dldir/$dlname~
8193      chmod a+x \$dldir/$dlname'
8194    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8195      dlpath=$dir/\$dldll~
8196       $rm \$dlpath'
8197    shlibpath_overrides_runpath=yes
8198
8199    case $host_os in
8200    cygwin*)
8201      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8202      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8203      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8204      ;;
8205    mingw*)
8206      # MinGW DLLs use traditional 'lib' prefix
8207      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8208      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8209      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8210        # It is most probably a Windows format PATH printed by
8211        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8212        # path with ; separators, and with drive letters. We can handle the
8213        # drive letters (cygwin fileutils understands them), so leave them,
8214        # especially as we might pass files found there to a mingw objdump,
8215        # which wouldn't understand a cygwinified path. Ahh.
8216        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8217      else
8218        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8219      fi
8220      ;;
8221    pw32*)
8222      # pw32 DLLs use 'pw' prefix rather than 'lib'
8223      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8224      ;;
8225    esac
8226    ;;
8227
8228  *)
8229    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8230    ;;
8231  esac
8232  dynamic_linker='Win32 ld.exe'
8233  # FIXME: first we should search . and the directory the executable is in
8234  shlibpath_var=PATH
8235  ;;
8236
8237darwin* | rhapsody*)
8238  dynamic_linker="$host_os dyld"
8239  version_type=darwin
8240  need_lib_prefix=no
8241  need_version=no
8242  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8243  soname_spec='${libname}${release}${major}$shared_ext'
8244  shlibpath_overrides_runpath=yes
8245  shlibpath_var=DYLD_LIBRARY_PATH
8246  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8247  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8248  if test "$GCC" = yes; then
8249    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"`
8250  else
8251    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8252  fi
8253  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8254  ;;
8255
8256dgux*)
8257  version_type=linux
8258  need_lib_prefix=no
8259  need_version=no
8260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8261  soname_spec='${libname}${release}${shared_ext}$major'
8262  shlibpath_var=LD_LIBRARY_PATH
8263  ;;
8264
8265freebsd1*)
8266  dynamic_linker=no
8267  ;;
8268
8269haiku*)
8270  library_names_spec='${libname}${shared_ext}'
8271  dynamic_linker="$host_os ld.so"
8272  shlibpath_var=LIBRARY_PATH
8273  ;;
8274
8275kfreebsd*-gnu)
8276  version_type=linux
8277  need_lib_prefix=no
8278  need_version=no
8279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280  soname_spec='${libname}${release}${shared_ext}$major'
8281  shlibpath_var=LD_LIBRARY_PATH
8282  shlibpath_overrides_runpath=no
8283  hardcode_into_libs=yes
8284  dynamic_linker='GNU ld.so'
8285  ;;
8286
8287freebsd* | dragonfly*)
8288  # DragonFly does not have aout.  When/if they implement a new
8289  # versioning mechanism, adjust this.
8290  if test -x /usr/bin/objformat; then
8291    objformat=`/usr/bin/objformat`
8292  else
8293    case $host_os in
8294    freebsd[123]*) objformat=aout ;;
8295    *) objformat=elf ;;
8296    esac
8297  fi
8298  version_type=freebsd-$objformat
8299  case $version_type in
8300    freebsd-elf*)
8301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8302      need_version=no
8303      need_lib_prefix=no
8304      ;;
8305    freebsd-*)
8306      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8307      need_version=yes
8308      ;;
8309  esac
8310  shlibpath_var=LD_LIBRARY_PATH
8311  case $host_os in
8312  freebsd2*)
8313    shlibpath_overrides_runpath=yes
8314    ;;
8315  freebsd3.[01]* | freebsdelf3.[01]*)
8316    shlibpath_overrides_runpath=yes
8317    hardcode_into_libs=yes
8318    ;;
8319  *) # from 3.2 on
8320    shlibpath_overrides_runpath=no
8321    hardcode_into_libs=yes
8322    ;;
8323  esac
8324  ;;
8325
8326gnu*)
8327  version_type=linux
8328  need_lib_prefix=no
8329  need_version=no
8330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8331  soname_spec='${libname}${release}${shared_ext}$major'
8332  shlibpath_var=LD_LIBRARY_PATH
8333  hardcode_into_libs=yes
8334  ;;
8335
8336hpux9* | hpux10* | hpux11*)
8337  # Give a soname corresponding to the major version so that dld.sl refuses to
8338  # link against other versions.
8339  version_type=sunos
8340  need_lib_prefix=no
8341  need_version=no
8342  case $host_cpu in
8343  ia64*)
8344    shrext_cmds='.so'
8345    hardcode_into_libs=yes
8346    dynamic_linker="$host_os dld.so"
8347    shlibpath_var=LD_LIBRARY_PATH
8348    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350    soname_spec='${libname}${release}${shared_ext}$major'
8351    if test "X$HPUX_IA64_MODE" = X32; then
8352      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8353    else
8354      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8355    fi
8356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8357    ;;
8358   hppa*64*)
8359     shrext_cmds='.sl'
8360     hardcode_into_libs=yes
8361     dynamic_linker="$host_os dld.sl"
8362     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8363     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365     soname_spec='${libname}${release}${shared_ext}$major'
8366     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8368     ;;
8369   *)
8370    shrext_cmds='.sl'
8371    dynamic_linker="$host_os dld.sl"
8372    shlibpath_var=SHLIB_PATH
8373    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8375    soname_spec='${libname}${release}${shared_ext}$major'
8376    ;;
8377  esac
8378  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8379  postinstall_cmds='chmod 555 $lib'
8380  ;;
8381
8382irix5* | irix6* | nonstopux*)
8383  case $host_os in
8384    nonstopux*) version_type=nonstopux ;;
8385    *)
8386	if test "$lt_cv_prog_gnu_ld" = yes; then
8387		version_type=linux
8388	else
8389		version_type=irix
8390	fi ;;
8391  esac
8392  need_lib_prefix=no
8393  need_version=no
8394  soname_spec='${libname}${release}${shared_ext}$major'
8395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8396  case $host_os in
8397  irix5* | nonstopux*)
8398    libsuff= shlibsuff=
8399    ;;
8400  *)
8401    case $LD in # libtool.m4 will add one of these switches to LD
8402    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8403      libsuff= shlibsuff= libmagic=32-bit;;
8404    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8405      libsuff=32 shlibsuff=N32 libmagic=N32;;
8406    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8407      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8408    *) libsuff= shlibsuff= libmagic=never-match;;
8409    esac
8410    ;;
8411  esac
8412  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8413  shlibpath_overrides_runpath=no
8414  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8415  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8416  hardcode_into_libs=yes
8417  ;;
8418
8419# No shared lib support for Linux oldld, aout, or coff.
8420linux*oldld* | linux*aout* | linux*coff*)
8421  dynamic_linker=no
8422  ;;
8423
8424# This must be Linux ELF.
8425linux*)
8426  version_type=linux
8427  need_lib_prefix=no
8428  need_version=no
8429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8430  soname_spec='${libname}${release}${shared_ext}$major'
8431  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8432  shlibpath_var=LD_LIBRARY_PATH
8433  shlibpath_overrides_runpath=no
8434  # This implies no fast_install, which is unacceptable.
8435  # Some rework will be needed to allow for fast_install
8436  # before this can be enabled.
8437  hardcode_into_libs=yes
8438
8439  # Append ld.so.conf contents to the search path
8440  if test -f /etc/ld.so.conf; then
8441    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8442    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8443  fi
8444
8445  # We used to test for /lib/ld.so.1 and disable shared libraries on
8446  # powerpc, because MkLinux only supported shared libraries with the
8447  # GNU dynamic linker.  Since this was broken with cross compilers,
8448  # most powerpc-linux boxes support dynamic linking these days and
8449  # people can always --disable-shared, the test was removed, and we
8450  # assume the GNU/Linux dynamic linker is in use.
8451  dynamic_linker='GNU/Linux ld.so'
8452  ;;
8453
8454knetbsd*-gnu)
8455  version_type=linux
8456  need_lib_prefix=no
8457  need_version=no
8458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8459  soname_spec='${libname}${release}${shared_ext}$major'
8460  shlibpath_var=LD_LIBRARY_PATH
8461  shlibpath_overrides_runpath=no
8462  hardcode_into_libs=yes
8463  dynamic_linker='GNU ld.so'
8464  ;;
8465
8466netbsd*)
8467  version_type=sunos
8468  need_lib_prefix=no
8469  need_version=no
8470  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8472    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8473    dynamic_linker='NetBSD (a.out) ld.so'
8474  else
8475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8476    soname_spec='${libname}${release}${shared_ext}$major'
8477    dynamic_linker='NetBSD ld.elf_so'
8478  fi
8479  shlibpath_var=LD_LIBRARY_PATH
8480  shlibpath_overrides_runpath=yes
8481  hardcode_into_libs=yes
8482  ;;
8483
8484newsos6)
8485  version_type=linux
8486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8487  shlibpath_var=LD_LIBRARY_PATH
8488  shlibpath_overrides_runpath=yes
8489  ;;
8490
8491nto-qnx*)
8492  version_type=linux
8493  need_lib_prefix=no
8494  need_version=no
8495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8496  soname_spec='${libname}${release}${shared_ext}$major'
8497  shlibpath_var=LD_LIBRARY_PATH
8498  shlibpath_overrides_runpath=yes
8499  ;;
8500
8501openbsd*)
8502  version_type=sunos
8503  need_lib_prefix=no
8504  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8505  case $host_os in
8506    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8507    *)                         need_version=no  ;;
8508  esac
8509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8510  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8511  shlibpath_var=LD_LIBRARY_PATH
8512  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8513    case $host_os in
8514      openbsd2.[89] | openbsd2.[89].*)
8515	shlibpath_overrides_runpath=no
8516	;;
8517      *)
8518	shlibpath_overrides_runpath=yes
8519	;;
8520      esac
8521  else
8522    shlibpath_overrides_runpath=yes
8523  fi
8524  ;;
8525
8526os2*)
8527  libname_spec='$name'
8528  shrext_cmds=".dll"
8529  need_lib_prefix=no
8530  library_names_spec='$libname${shared_ext} $libname.a'
8531  dynamic_linker='OS/2 ld.exe'
8532  shlibpath_var=LIBPATH
8533  ;;
8534
8535osf3* | osf4* | osf5*)
8536  version_type=osf
8537  need_lib_prefix=no
8538  need_version=no
8539  soname_spec='${libname}${release}${shared_ext}$major'
8540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8541  shlibpath_var=LD_LIBRARY_PATH
8542  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8543  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8544  ;;
8545
8546sco3.2v5*)
8547  version_type=osf
8548  soname_spec='${libname}${release}${shared_ext}$major'
8549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550  shlibpath_var=LD_LIBRARY_PATH
8551  ;;
8552
8553solaris*)
8554  version_type=linux
8555  need_lib_prefix=no
8556  need_version=no
8557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558  soname_spec='${libname}${release}${shared_ext}$major'
8559  shlibpath_var=LD_LIBRARY_PATH
8560  shlibpath_overrides_runpath=yes
8561  hardcode_into_libs=yes
8562  # ldd complains unless libraries are executable
8563  postinstall_cmds='chmod +x $lib'
8564  ;;
8565
8566sunos4*)
8567  version_type=sunos
8568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8569  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8570  shlibpath_var=LD_LIBRARY_PATH
8571  shlibpath_overrides_runpath=yes
8572  if test "$with_gnu_ld" = yes; then
8573    need_lib_prefix=no
8574  fi
8575  need_version=yes
8576  ;;
8577
8578sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8579  version_type=linux
8580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8581  soname_spec='${libname}${release}${shared_ext}$major'
8582  shlibpath_var=LD_LIBRARY_PATH
8583  case $host_vendor in
8584    sni)
8585      shlibpath_overrides_runpath=no
8586      need_lib_prefix=no
8587      export_dynamic_flag_spec='${wl}-Blargedynsym'
8588      runpath_var=LD_RUN_PATH
8589      ;;
8590    siemens)
8591      need_lib_prefix=no
8592      ;;
8593    motorola)
8594      need_lib_prefix=no
8595      need_version=no
8596      shlibpath_overrides_runpath=no
8597      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8598      ;;
8599  esac
8600  ;;
8601
8602sysv4*MP*)
8603  if test -d /usr/nec ;then
8604    version_type=linux
8605    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8606    soname_spec='$libname${shared_ext}.$major'
8607    shlibpath_var=LD_LIBRARY_PATH
8608  fi
8609  ;;
8610
8611uts4*)
8612  version_type=linux
8613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614  soname_spec='${libname}${release}${shared_ext}$major'
8615  shlibpath_var=LD_LIBRARY_PATH
8616  ;;
8617
8618*)
8619  dynamic_linker=no
8620  ;;
8621esac
8622echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8623echo "${ECHO_T}$dynamic_linker" >&6
8624test "$dynamic_linker" = no && can_build_shared=no
8625
8626echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8627echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8628hardcode_action=
8629if test -n "$hardcode_libdir_flag_spec" || \
8630   test -n "$runpath_var" || \
8631   test "X$hardcode_automatic" = "Xyes" ; then
8632
8633  # We can hardcode non-existant directories.
8634  if test "$hardcode_direct" != no &&
8635     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8636     # have to relink, otherwise we might link with an installed library
8637     # when we should be linking with a yet-to-be-installed one
8638     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8639     test "$hardcode_minus_L" != no; then
8640    # Linking always hardcodes the temporary library directory.
8641    hardcode_action=relink
8642  else
8643    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8644    hardcode_action=immediate
8645  fi
8646else
8647  # We cannot hardcode anything, or else we can only hardcode existing
8648  # directories.
8649  hardcode_action=unsupported
8650fi
8651echo "$as_me:$LINENO: result: $hardcode_action" >&5
8652echo "${ECHO_T}$hardcode_action" >&6
8653
8654if test "$hardcode_action" = relink; then
8655  # Fast installation is not supported
8656  enable_fast_install=no
8657elif test "$shlibpath_overrides_runpath" = yes ||
8658     test "$enable_shared" = no; then
8659  # Fast installation is not necessary
8660  enable_fast_install=needless
8661fi
8662
8663striplib=
8664old_striplib=
8665echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8666echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8667if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8668  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8669  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8670  echo "$as_me:$LINENO: result: yes" >&5
8671echo "${ECHO_T}yes" >&6
8672else
8673# FIXME - insert some real tests, host_os isn't really good enough
8674  case $host_os in
8675   darwin*)
8676       if test -n "$STRIP" ; then
8677         striplib="$STRIP -x"
8678         echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680       else
8681  echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
8683fi
8684       ;;
8685   *)
8686  echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688    ;;
8689  esac
8690fi
8691
8692if test "x$enable_dlopen" != xyes; then
8693  enable_dlopen=unknown
8694  enable_dlopen_self=unknown
8695  enable_dlopen_self_static=unknown
8696else
8697  lt_cv_dlopen=no
8698  lt_cv_dlopen_libs=
8699
8700  case $host_os in
8701  beos*)
8702    lt_cv_dlopen="load_add_on"
8703    lt_cv_dlopen_libs=
8704    lt_cv_dlopen_self=yes
8705    ;;
8706
8707  mingw* | pw32*)
8708    lt_cv_dlopen="LoadLibrary"
8709    lt_cv_dlopen_libs=
8710   ;;
8711
8712  cygwin*)
8713    lt_cv_dlopen="dlopen"
8714    lt_cv_dlopen_libs=
8715   ;;
8716
8717  darwin*)
8718  # if libdl is installed we need to link against it
8719    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8720echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8721if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  ac_check_lib_save_LIBS=$LIBS
8725LIBS="-ldl  $LIBS"
8726cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h.  */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h.  */
8732
8733/* Override any gcc2 internal prototype to avoid an error.  */
8734#ifdef __cplusplus
8735extern "C"
8736#endif
8737/* We use char because int might match the return type of a gcc2
8738   builtin and then its argument prototype would still apply.  */
8739char dlopen ();
8740int
8741main ()
8742{
8743dlopen ();
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext conftest$ac_exeext
8749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750  (eval $ac_link) 2>conftest.er1
8751  ac_status=$?
8752  grep -v '^ *+' conftest.er1 >conftest.err
8753  rm -f conftest.er1
8754  cat conftest.err >&5
8755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); } &&
8757	 { ac_try='test -z "$ac_c_werror_flag"
8758			 || test ! -s conftest.err'
8759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760  (eval $ac_try) 2>&5
8761  ac_status=$?
8762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763  (exit $ac_status); }; } &&
8764	 { ac_try='test -s conftest$ac_exeext'
8765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766  (eval $ac_try) 2>&5
8767  ac_status=$?
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); }; }; then
8770  ac_cv_lib_dl_dlopen=yes
8771else
8772  echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
8775ac_cv_lib_dl_dlopen=no
8776fi
8777rm -f conftest.err conftest.$ac_objext \
8778      conftest$ac_exeext conftest.$ac_ext
8779LIBS=$ac_check_lib_save_LIBS
8780fi
8781echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8782echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8783if test $ac_cv_lib_dl_dlopen = yes; then
8784  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8785else
8786
8787    lt_cv_dlopen="dyld"
8788    lt_cv_dlopen_libs=
8789    lt_cv_dlopen_self=yes
8790
8791fi
8792
8793   ;;
8794
8795  haiku*)
8796    lt_cv_dlopen="load_add_on"
8797    lt_cv_dlopen_libs=
8798    lt_cv_dlopen_self=yes
8799    ;;
8800
8801  *)
8802    echo "$as_me:$LINENO: checking for shl_load" >&5
8803echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8804if test "${ac_cv_func_shl_load+set}" = set; then
8805  echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807  cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h.  */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
8812/* end confdefs.h.  */
8813/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8814   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8815#define shl_load innocuous_shl_load
8816
8817/* System header to define __stub macros and hopefully few prototypes,
8818    which can conflict with char shl_load (); below.
8819    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8820    <limits.h> exists even on freestanding compilers.  */
8821
8822#ifdef __STDC__
8823# include <limits.h>
8824#else
8825# include <assert.h>
8826#endif
8827
8828#undef shl_load
8829
8830/* Override any gcc2 internal prototype to avoid an error.  */
8831#ifdef __cplusplus
8832extern "C"
8833{
8834#endif
8835/* We use char because int might match the return type of a gcc2
8836   builtin and then its argument prototype would still apply.  */
8837char shl_load ();
8838/* The GNU C library defines this for functions which it implements
8839    to always fail with ENOSYS.  Some functions are actually named
8840    something starting with __ and the normal name is an alias.  */
8841#if defined (__stub_shl_load) || defined (__stub___shl_load)
8842choke me
8843#else
8844char (*f) () = shl_load;
8845#endif
8846#ifdef __cplusplus
8847}
8848#endif
8849
8850int
8851main ()
8852{
8853return f != shl_load;
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858rm -f conftest.$ac_objext conftest$ac_exeext
8859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8860  (eval $ac_link) 2>conftest.er1
8861  ac_status=$?
8862  grep -v '^ *+' conftest.er1 >conftest.err
8863  rm -f conftest.er1
8864  cat conftest.err >&5
8865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866  (exit $ac_status); } &&
8867	 { ac_try='test -z "$ac_c_werror_flag"
8868			 || test ! -s conftest.err'
8869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870  (eval $ac_try) 2>&5
8871  ac_status=$?
8872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873  (exit $ac_status); }; } &&
8874	 { ac_try='test -s conftest$ac_exeext'
8875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876  (eval $ac_try) 2>&5
8877  ac_status=$?
8878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879  (exit $ac_status); }; }; then
8880  ac_cv_func_shl_load=yes
8881else
8882  echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885ac_cv_func_shl_load=no
8886fi
8887rm -f conftest.err conftest.$ac_objext \
8888      conftest$ac_exeext conftest.$ac_ext
8889fi
8890echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8891echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8892if test $ac_cv_func_shl_load = yes; then
8893  lt_cv_dlopen="shl_load"
8894else
8895  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8896echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8897if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8898  echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900  ac_check_lib_save_LIBS=$LIBS
8901LIBS="-ldld  $LIBS"
8902cat >conftest.$ac_ext <<_ACEOF
8903/* confdefs.h.  */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h.  */
8908
8909/* Override any gcc2 internal prototype to avoid an error.  */
8910#ifdef __cplusplus
8911extern "C"
8912#endif
8913/* We use char because int might match the return type of a gcc2
8914   builtin and then its argument prototype would still apply.  */
8915char shl_load ();
8916int
8917main ()
8918{
8919shl_load ();
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext conftest$ac_exeext
8925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926  (eval $ac_link) 2>conftest.er1
8927  ac_status=$?
8928  grep -v '^ *+' conftest.er1 >conftest.err
8929  rm -f conftest.er1
8930  cat conftest.err >&5
8931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932  (exit $ac_status); } &&
8933	 { ac_try='test -z "$ac_c_werror_flag"
8934			 || test ! -s conftest.err'
8935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936  (eval $ac_try) 2>&5
8937  ac_status=$?
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); }; } &&
8940	 { ac_try='test -s conftest$ac_exeext'
8941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942  (eval $ac_try) 2>&5
8943  ac_status=$?
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); }; }; then
8946  ac_cv_lib_dld_shl_load=yes
8947else
8948  echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951ac_cv_lib_dld_shl_load=no
8952fi
8953rm -f conftest.err conftest.$ac_objext \
8954      conftest$ac_exeext conftest.$ac_ext
8955LIBS=$ac_check_lib_save_LIBS
8956fi
8957echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8958echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8959if test $ac_cv_lib_dld_shl_load = yes; then
8960  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8961else
8962  echo "$as_me:$LINENO: checking for dlopen" >&5
8963echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8964if test "${ac_cv_func_dlopen+set}" = set; then
8965  echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967  cat >conftest.$ac_ext <<_ACEOF
8968/* confdefs.h.  */
8969_ACEOF
8970cat confdefs.h >>conftest.$ac_ext
8971cat >>conftest.$ac_ext <<_ACEOF
8972/* end confdefs.h.  */
8973/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8974   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8975#define dlopen innocuous_dlopen
8976
8977/* System header to define __stub macros and hopefully few prototypes,
8978    which can conflict with char dlopen (); below.
8979    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8980    <limits.h> exists even on freestanding compilers.  */
8981
8982#ifdef __STDC__
8983# include <limits.h>
8984#else
8985# include <assert.h>
8986#endif
8987
8988#undef dlopen
8989
8990/* Override any gcc2 internal prototype to avoid an error.  */
8991#ifdef __cplusplus
8992extern "C"
8993{
8994#endif
8995/* We use char because int might match the return type of a gcc2
8996   builtin and then its argument prototype would still apply.  */
8997char dlopen ();
8998/* The GNU C library defines this for functions which it implements
8999    to always fail with ENOSYS.  Some functions are actually named
9000    something starting with __ and the normal name is an alias.  */
9001#if defined (__stub_dlopen) || defined (__stub___dlopen)
9002choke me
9003#else
9004char (*f) () = dlopen;
9005#endif
9006#ifdef __cplusplus
9007}
9008#endif
9009
9010int
9011main ()
9012{
9013return f != dlopen;
9014  ;
9015  return 0;
9016}
9017_ACEOF
9018rm -f conftest.$ac_objext conftest$ac_exeext
9019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020  (eval $ac_link) 2>conftest.er1
9021  ac_status=$?
9022  grep -v '^ *+' conftest.er1 >conftest.err
9023  rm -f conftest.er1
9024  cat conftest.err >&5
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); } &&
9027	 { ac_try='test -z "$ac_c_werror_flag"
9028			 || test ! -s conftest.err'
9029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030  (eval $ac_try) 2>&5
9031  ac_status=$?
9032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033  (exit $ac_status); }; } &&
9034	 { ac_try='test -s conftest$ac_exeext'
9035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036  (eval $ac_try) 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); }; }; then
9040  ac_cv_func_dlopen=yes
9041else
9042  echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045ac_cv_func_dlopen=no
9046fi
9047rm -f conftest.err conftest.$ac_objext \
9048      conftest$ac_exeext conftest.$ac_ext
9049fi
9050echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9051echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9052if test $ac_cv_func_dlopen = yes; then
9053  lt_cv_dlopen="dlopen"
9054else
9055  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9056echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9057if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9058  echo $ECHO_N "(cached) $ECHO_C" >&6
9059else
9060  ac_check_lib_save_LIBS=$LIBS
9061LIBS="-ldl  $LIBS"
9062cat >conftest.$ac_ext <<_ACEOF
9063/* confdefs.h.  */
9064_ACEOF
9065cat confdefs.h >>conftest.$ac_ext
9066cat >>conftest.$ac_ext <<_ACEOF
9067/* end confdefs.h.  */
9068
9069/* Override any gcc2 internal prototype to avoid an error.  */
9070#ifdef __cplusplus
9071extern "C"
9072#endif
9073/* We use char because int might match the return type of a gcc2
9074   builtin and then its argument prototype would still apply.  */
9075char dlopen ();
9076int
9077main ()
9078{
9079dlopen ();
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext conftest$ac_exeext
9085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086  (eval $ac_link) 2>conftest.er1
9087  ac_status=$?
9088  grep -v '^ *+' conftest.er1 >conftest.err
9089  rm -f conftest.er1
9090  cat conftest.err >&5
9091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092  (exit $ac_status); } &&
9093	 { ac_try='test -z "$ac_c_werror_flag"
9094			 || test ! -s conftest.err'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; } &&
9100	 { ac_try='test -s conftest$ac_exeext'
9101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102  (eval $ac_try) 2>&5
9103  ac_status=$?
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); }; }; then
9106  ac_cv_lib_dl_dlopen=yes
9107else
9108  echo "$as_me: failed program was:" >&5
9109sed 's/^/| /' conftest.$ac_ext >&5
9110
9111ac_cv_lib_dl_dlopen=no
9112fi
9113rm -f conftest.err conftest.$ac_objext \
9114      conftest$ac_exeext conftest.$ac_ext
9115LIBS=$ac_check_lib_save_LIBS
9116fi
9117echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9118echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9119if test $ac_cv_lib_dl_dlopen = yes; then
9120  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9121else
9122  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9123echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9124if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9125  echo $ECHO_N "(cached) $ECHO_C" >&6
9126else
9127  ac_check_lib_save_LIBS=$LIBS
9128LIBS="-lsvld  $LIBS"
9129cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h.  */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
9134/* end confdefs.h.  */
9135
9136/* Override any gcc2 internal prototype to avoid an error.  */
9137#ifdef __cplusplus
9138extern "C"
9139#endif
9140/* We use char because int might match the return type of a gcc2
9141   builtin and then its argument prototype would still apply.  */
9142char dlopen ();
9143int
9144main ()
9145{
9146dlopen ();
9147  ;
9148  return 0;
9149}
9150_ACEOF
9151rm -f conftest.$ac_objext conftest$ac_exeext
9152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153  (eval $ac_link) 2>conftest.er1
9154  ac_status=$?
9155  grep -v '^ *+' conftest.er1 >conftest.err
9156  rm -f conftest.er1
9157  cat conftest.err >&5
9158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159  (exit $ac_status); } &&
9160	 { ac_try='test -z "$ac_c_werror_flag"
9161			 || test ! -s conftest.err'
9162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163  (eval $ac_try) 2>&5
9164  ac_status=$?
9165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166  (exit $ac_status); }; } &&
9167	 { ac_try='test -s conftest$ac_exeext'
9168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169  (eval $ac_try) 2>&5
9170  ac_status=$?
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); }; }; then
9173  ac_cv_lib_svld_dlopen=yes
9174else
9175  echo "$as_me: failed program was:" >&5
9176sed 's/^/| /' conftest.$ac_ext >&5
9177
9178ac_cv_lib_svld_dlopen=no
9179fi
9180rm -f conftest.err conftest.$ac_objext \
9181      conftest$ac_exeext conftest.$ac_ext
9182LIBS=$ac_check_lib_save_LIBS
9183fi
9184echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9185echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9186if test $ac_cv_lib_svld_dlopen = yes; then
9187  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9188else
9189  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9190echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9191if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9192  echo $ECHO_N "(cached) $ECHO_C" >&6
9193else
9194  ac_check_lib_save_LIBS=$LIBS
9195LIBS="-ldld  $LIBS"
9196cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h.  */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h.  */
9202
9203/* Override any gcc2 internal prototype to avoid an error.  */
9204#ifdef __cplusplus
9205extern "C"
9206#endif
9207/* We use char because int might match the return type of a gcc2
9208   builtin and then its argument prototype would still apply.  */
9209char dld_link ();
9210int
9211main ()
9212{
9213dld_link ();
9214  ;
9215  return 0;
9216}
9217_ACEOF
9218rm -f conftest.$ac_objext conftest$ac_exeext
9219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220  (eval $ac_link) 2>conftest.er1
9221  ac_status=$?
9222  grep -v '^ *+' conftest.er1 >conftest.err
9223  rm -f conftest.er1
9224  cat conftest.err >&5
9225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226  (exit $ac_status); } &&
9227	 { ac_try='test -z "$ac_c_werror_flag"
9228			 || test ! -s conftest.err'
9229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230  (eval $ac_try) 2>&5
9231  ac_status=$?
9232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233  (exit $ac_status); }; } &&
9234	 { ac_try='test -s conftest$ac_exeext'
9235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236  (eval $ac_try) 2>&5
9237  ac_status=$?
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); }; }; then
9240  ac_cv_lib_dld_dld_link=yes
9241else
9242  echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
9245ac_cv_lib_dld_dld_link=no
9246fi
9247rm -f conftest.err conftest.$ac_objext \
9248      conftest$ac_exeext conftest.$ac_ext
9249LIBS=$ac_check_lib_save_LIBS
9250fi
9251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9252echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9253if test $ac_cv_lib_dld_dld_link = yes; then
9254  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9255fi
9256
9257
9258fi
9259
9260
9261fi
9262
9263
9264fi
9265
9266
9267fi
9268
9269
9270fi
9271
9272    ;;
9273  esac
9274
9275  if test "x$lt_cv_dlopen" != xno; then
9276    enable_dlopen=yes
9277  else
9278    enable_dlopen=no
9279  fi
9280
9281  case $lt_cv_dlopen in
9282  dlopen)
9283    save_CPPFLAGS="$CPPFLAGS"
9284    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9285
9286    save_LDFLAGS="$LDFLAGS"
9287    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9288
9289    save_LIBS="$LIBS"
9290    LIBS="$lt_cv_dlopen_libs $LIBS"
9291
9292    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9293echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9294if test "${lt_cv_dlopen_self+set}" = set; then
9295  echo $ECHO_N "(cached) $ECHO_C" >&6
9296else
9297  	  if test "$cross_compiling" = yes; then :
9298  lt_cv_dlopen_self=cross
9299else
9300  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9301  lt_status=$lt_dlunknown
9302  cat > conftest.$ac_ext <<EOF
9303#line 9303 "configure"
9304#include "confdefs.h"
9305
9306#if HAVE_DLFCN_H
9307#include <dlfcn.h>
9308#endif
9309
9310#include <stdio.h>
9311
9312#ifdef RTLD_GLOBAL
9313#  define LT_DLGLOBAL		RTLD_GLOBAL
9314#else
9315#  ifdef DL_GLOBAL
9316#    define LT_DLGLOBAL		DL_GLOBAL
9317#  else
9318#    define LT_DLGLOBAL		0
9319#  endif
9320#endif
9321
9322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9323   find out it does not work in some platform. */
9324#ifndef LT_DLLAZY_OR_NOW
9325#  ifdef RTLD_LAZY
9326#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9327#  else
9328#    ifdef DL_LAZY
9329#      define LT_DLLAZY_OR_NOW		DL_LAZY
9330#    else
9331#      ifdef RTLD_NOW
9332#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9333#      else
9334#        ifdef DL_NOW
9335#          define LT_DLLAZY_OR_NOW	DL_NOW
9336#        else
9337#          define LT_DLLAZY_OR_NOW	0
9338#        endif
9339#      endif
9340#    endif
9341#  endif
9342#endif
9343
9344#ifdef __cplusplus
9345extern "C" void exit (int);
9346#endif
9347
9348void fnord() { int i=42;}
9349int main ()
9350{
9351  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9352  int status = $lt_dlunknown;
9353
9354  if (self)
9355    {
9356      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9357      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9358      /* dlclose (self); */
9359    }
9360
9361    exit (status);
9362}
9363EOF
9364  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365  (eval $ac_link) 2>&5
9366  ac_status=$?
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9369    (./conftest; exit; ) >&5 2>/dev/null
9370    lt_status=$?
9371    case x$lt_status in
9372      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9373      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9374      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9375    esac
9376  else :
9377    # compilation failed
9378    lt_cv_dlopen_self=no
9379  fi
9380fi
9381rm -fr conftest*
9382
9383
9384fi
9385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9386echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9387
9388    if test "x$lt_cv_dlopen_self" = xyes; then
9389      LDFLAGS="$LDFLAGS $link_static_flag"
9390      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9391echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9392if test "${lt_cv_dlopen_self_static+set}" = set; then
9393  echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395  	  if test "$cross_compiling" = yes; then :
9396  lt_cv_dlopen_self_static=cross
9397else
9398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9399  lt_status=$lt_dlunknown
9400  cat > conftest.$ac_ext <<EOF
9401#line 9401 "configure"
9402#include "confdefs.h"
9403
9404#if HAVE_DLFCN_H
9405#include <dlfcn.h>
9406#endif
9407
9408#include <stdio.h>
9409
9410#ifdef RTLD_GLOBAL
9411#  define LT_DLGLOBAL		RTLD_GLOBAL
9412#else
9413#  ifdef DL_GLOBAL
9414#    define LT_DLGLOBAL		DL_GLOBAL
9415#  else
9416#    define LT_DLGLOBAL		0
9417#  endif
9418#endif
9419
9420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421   find out it does not work in some platform. */
9422#ifndef LT_DLLAZY_OR_NOW
9423#  ifdef RTLD_LAZY
9424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9425#  else
9426#    ifdef DL_LAZY
9427#      define LT_DLLAZY_OR_NOW		DL_LAZY
9428#    else
9429#      ifdef RTLD_NOW
9430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9431#      else
9432#        ifdef DL_NOW
9433#          define LT_DLLAZY_OR_NOW	DL_NOW
9434#        else
9435#          define LT_DLLAZY_OR_NOW	0
9436#        endif
9437#      endif
9438#    endif
9439#  endif
9440#endif
9441
9442#ifdef __cplusplus
9443extern "C" void exit (int);
9444#endif
9445
9446void fnord() { int i=42;}
9447int main ()
9448{
9449  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450  int status = $lt_dlunknown;
9451
9452  if (self)
9453    {
9454      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9455      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456      /* dlclose (self); */
9457    }
9458
9459    exit (status);
9460}
9461EOF
9462  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463  (eval $ac_link) 2>&5
9464  ac_status=$?
9465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9467    (./conftest; exit; ) >&5 2>/dev/null
9468    lt_status=$?
9469    case x$lt_status in
9470      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9471      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9472      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9473    esac
9474  else :
9475    # compilation failed
9476    lt_cv_dlopen_self_static=no
9477  fi
9478fi
9479rm -fr conftest*
9480
9481
9482fi
9483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9484echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9485    fi
9486
9487    CPPFLAGS="$save_CPPFLAGS"
9488    LDFLAGS="$save_LDFLAGS"
9489    LIBS="$save_LIBS"
9490    ;;
9491  esac
9492
9493  case $lt_cv_dlopen_self in
9494  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9495  *) enable_dlopen_self=unknown ;;
9496  esac
9497
9498  case $lt_cv_dlopen_self_static in
9499  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9500  *) enable_dlopen_self_static=unknown ;;
9501  esac
9502fi
9503
9504
9505# Report which librarie types wil actually be built
9506echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9507echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9508echo "$as_me:$LINENO: result: $can_build_shared" >&5
9509echo "${ECHO_T}$can_build_shared" >&6
9510
9511echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9512echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9513test "$can_build_shared" = "no" && enable_shared=no
9514
9515# On AIX, shared libraries and static libraries use the same namespace, and
9516# are all built from PIC.
9517case $host_os in
9518aix3*)
9519  test "$enable_shared" = yes && enable_static=no
9520  if test -n "$RANLIB"; then
9521    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9522    postinstall_cmds='$RANLIB $lib'
9523  fi
9524  ;;
9525
9526aix4* | aix5*)
9527  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9528    test "$enable_shared" = yes && enable_static=no
9529  fi
9530    ;;
9531esac
9532echo "$as_me:$LINENO: result: $enable_shared" >&5
9533echo "${ECHO_T}$enable_shared" >&6
9534
9535echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9536echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9537# Make sure either enable_shared or enable_static is yes.
9538test "$enable_shared" = yes || enable_static=yes
9539echo "$as_me:$LINENO: result: $enable_static" >&5
9540echo "${ECHO_T}$enable_static" >&6
9541
9542# The else clause should only fire when bootstrapping the
9543# libtool distribution, otherwise you forgot to ship ltmain.sh
9544# with your package, and you will get complaints that there are
9545# no rules to generate ltmain.sh.
9546if test -f "$ltmain"; then
9547  # See if we are running on zsh, and set the options which allow our commands through
9548  # without removal of \ escapes.
9549  if test -n "${ZSH_VERSION+set}" ; then
9550    setopt NO_GLOB_SUBST
9551  fi
9552  # Now quote all the things that may contain metacharacters while being
9553  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9554  # variables and quote the copies for generation of the libtool script.
9555  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9556    SED SHELL STRIP \
9557    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9558    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9559    deplibs_check_method reload_flag reload_cmds need_locks \
9560    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9561    lt_cv_sys_global_symbol_to_c_name_address \
9562    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9563    old_postinstall_cmds old_postuninstall_cmds \
9564    compiler \
9565    CC \
9566    LD \
9567    lt_prog_compiler_wl \
9568    lt_prog_compiler_pic \
9569    lt_prog_compiler_static \
9570    lt_prog_compiler_no_builtin_flag \
9571    export_dynamic_flag_spec \
9572    thread_safe_flag_spec \
9573    whole_archive_flag_spec \
9574    enable_shared_with_static_runtimes \
9575    old_archive_cmds \
9576    old_archive_from_new_cmds \
9577    predep_objects \
9578    postdep_objects \
9579    predeps \
9580    postdeps \
9581    compiler_lib_search_path \
9582    archive_cmds \
9583    archive_expsym_cmds \
9584    postinstall_cmds \
9585    postuninstall_cmds \
9586    old_archive_from_expsyms_cmds \
9587    allow_undefined_flag \
9588    no_undefined_flag \
9589    export_symbols_cmds \
9590    hardcode_libdir_flag_spec \
9591    hardcode_libdir_flag_spec_ld \
9592    hardcode_libdir_separator \
9593    hardcode_automatic \
9594    module_cmds \
9595    module_expsym_cmds \
9596    lt_cv_prog_compiler_c_o \
9597    exclude_expsyms \
9598    include_expsyms; do
9599
9600    case $var in
9601    old_archive_cmds | \
9602    old_archive_from_new_cmds | \
9603    archive_cmds | \
9604    archive_expsym_cmds | \
9605    module_cmds | \
9606    module_expsym_cmds | \
9607    old_archive_from_expsyms_cmds | \
9608    export_symbols_cmds | \
9609    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9610    postinstall_cmds | postuninstall_cmds | \
9611    old_postinstall_cmds | old_postuninstall_cmds | \
9612    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9613      # Double-quote double-evaled strings.
9614      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9615      ;;
9616    *)
9617      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9618      ;;
9619    esac
9620  done
9621
9622  case $lt_echo in
9623  *'\$0 --fallback-echo"')
9624    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9625    ;;
9626  esac
9627
9628cfgfile="${ofile}T"
9629  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9630  $rm -f "$cfgfile"
9631  { echo "$as_me:$LINENO: creating $ofile" >&5
9632echo "$as_me: creating $ofile" >&6;}
9633
9634  cat <<__EOF__ >> "$cfgfile"
9635#! $SHELL
9636
9637# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9638# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9639# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9640#
9641# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9642# Free Software Foundation, Inc.
9643#
9644# This file is part of GNU Libtool:
9645# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9646#
9647# This program is free software; you can redistribute it and/or modify
9648# it under the terms of the GNU General Public License as published by
9649# the Free Software Foundation; either version 2 of the License, or
9650# (at your option) any later version.
9651#
9652# This program is distributed in the hope that it will be useful, but
9653# WITHOUT ANY WARRANTY; without even the implied warranty of
9654# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9655# General Public License for more details.
9656#
9657# You should have received a copy of the GNU General Public License
9658# along with this program; if not, write to the Free Software
9659# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9660#
9661# As a special exception to the GNU General Public License, if you
9662# distribute this file as part of a program that contains a
9663# configuration script generated by Autoconf, you may include it under
9664# the same distribution terms that you use for the rest of that program.
9665
9666# A sed program that does not truncate output.
9667SED=$lt_SED
9668
9669# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9670Xsed="$SED -e 1s/^X//"
9671
9672# The HP-UX ksh and POSIX shell print the target directory to stdout
9673# if CDPATH is set.
9674(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9675
9676# The names of the tagged configurations supported by this script.
9677available_tags=
9678
9679# ### BEGIN LIBTOOL CONFIG
9680
9681# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9682
9683# Shell to use when invoking shell scripts.
9684SHELL=$lt_SHELL
9685
9686# Whether or not to build shared libraries.
9687build_libtool_libs=$enable_shared
9688
9689# Whether or not to build static libraries.
9690build_old_libs=$enable_static
9691
9692# Whether or not to add -lc for building shared libraries.
9693build_libtool_need_lc=$archive_cmds_need_lc
9694
9695# Whether or not to disallow shared libs when runtime libs are static
9696allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9697
9698# Whether or not to optimize for fast installation.
9699fast_install=$enable_fast_install
9700
9701# The host system.
9702host_alias=$host_alias
9703host=$host
9704host_os=$host_os
9705
9706# The build system.
9707build_alias=$build_alias
9708build=$build
9709build_os=$build_os
9710
9711# An echo program that does not interpret backslashes.
9712echo=$lt_echo
9713
9714# The archiver.
9715AR=$lt_AR
9716AR_FLAGS=$lt_AR_FLAGS
9717
9718# A C compiler.
9719LTCC=$lt_LTCC
9720
9721# A language-specific compiler.
9722CC=$lt_compiler
9723
9724# Is the compiler the GNU C compiler?
9725with_gcc=$GCC
9726
9727# An ERE matcher.
9728EGREP=$lt_EGREP
9729
9730# The linker used to build libraries.
9731LD=$lt_LD
9732
9733# Whether we need hard or soft links.
9734LN_S=$lt_LN_S
9735
9736# A BSD-compatible nm program.
9737NM=$lt_NM
9738
9739# A symbol stripping program
9740STRIP=$lt_STRIP
9741
9742# Used to examine libraries when file_magic_cmd begins "file"
9743MAGIC_CMD=$MAGIC_CMD
9744
9745# Used on cygwin: DLL creation program.
9746DLLTOOL="$DLLTOOL"
9747
9748# Used on cygwin: object dumper.
9749OBJDUMP="$OBJDUMP"
9750
9751# Used on cygwin: assembler.
9752AS="$AS"
9753
9754# The name of the directory that contains temporary libtool files.
9755objdir=$objdir
9756
9757# How to create reloadable object files.
9758reload_flag=$lt_reload_flag
9759reload_cmds=$lt_reload_cmds
9760
9761# How to pass a linker flag through the compiler.
9762wl=$lt_lt_prog_compiler_wl
9763
9764# Object file suffix (normally "o").
9765objext="$ac_objext"
9766
9767# Old archive suffix (normally "a").
9768libext="$libext"
9769
9770# Shared library suffix (normally ".so").
9771shrext_cmds='$shrext_cmds'
9772
9773# Executable file suffix (normally "").
9774exeext="$exeext"
9775
9776# Additional compiler flags for building library objects.
9777pic_flag=$lt_lt_prog_compiler_pic
9778pic_mode=$pic_mode
9779
9780# What is the maximum length of a command?
9781max_cmd_len=$lt_cv_sys_max_cmd_len
9782
9783# Does compiler simultaneously support -c and -o options?
9784compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9785
9786# Must we lock files when doing compilation?
9787need_locks=$lt_need_locks
9788
9789# Do we need the lib prefix for modules?
9790need_lib_prefix=$need_lib_prefix
9791
9792# Do we need a version for libraries?
9793need_version=$need_version
9794
9795# Whether dlopen is supported.
9796dlopen_support=$enable_dlopen
9797
9798# Whether dlopen of programs is supported.
9799dlopen_self=$enable_dlopen_self
9800
9801# Whether dlopen of statically linked programs is supported.
9802dlopen_self_static=$enable_dlopen_self_static
9803
9804# Compiler flag to prevent dynamic linking.
9805link_static_flag=$lt_lt_prog_compiler_static
9806
9807# Compiler flag to turn off builtin functions.
9808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9809
9810# Compiler flag to allow reflexive dlopens.
9811export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9812
9813# Compiler flag to generate shared objects directly from archives.
9814whole_archive_flag_spec=$lt_whole_archive_flag_spec
9815
9816# Compiler flag to generate thread-safe objects.
9817thread_safe_flag_spec=$lt_thread_safe_flag_spec
9818
9819# Library versioning type.
9820version_type=$version_type
9821
9822# Format of library name prefix.
9823libname_spec=$lt_libname_spec
9824
9825# List of archive names.  First name is the real one, the rest are links.
9826# The last name is the one that the linker finds with -lNAME.
9827library_names_spec=$lt_library_names_spec
9828
9829# The coded name of the library, if different from the real name.
9830soname_spec=$lt_soname_spec
9831
9832# Commands used to build and install an old-style archive.
9833RANLIB=$lt_RANLIB
9834old_archive_cmds=$lt_old_archive_cmds
9835old_postinstall_cmds=$lt_old_postinstall_cmds
9836old_postuninstall_cmds=$lt_old_postuninstall_cmds
9837
9838# Create an old-style archive from a shared archive.
9839old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9840
9841# Create a temporary old-style archive to link instead of a shared archive.
9842old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9843
9844# Commands used to build and install a shared archive.
9845archive_cmds=$lt_archive_cmds
9846archive_expsym_cmds=$lt_archive_expsym_cmds
9847postinstall_cmds=$lt_postinstall_cmds
9848postuninstall_cmds=$lt_postuninstall_cmds
9849
9850# Commands used to build a loadable module (assumed same as above if empty)
9851module_cmds=$lt_module_cmds
9852module_expsym_cmds=$lt_module_expsym_cmds
9853
9854# Commands to strip libraries.
9855old_striplib=$lt_old_striplib
9856striplib=$lt_striplib
9857
9858# Dependencies to place before the objects being linked to create a
9859# shared library.
9860predep_objects=$lt_predep_objects
9861
9862# Dependencies to place after the objects being linked to create a
9863# shared library.
9864postdep_objects=$lt_postdep_objects
9865
9866# Dependencies to place before the objects being linked to create a
9867# shared library.
9868predeps=$lt_predeps
9869
9870# Dependencies to place after the objects being linked to create a
9871# shared library.
9872postdeps=$lt_postdeps
9873
9874# The library search path used internally by the compiler when linking
9875# a shared library.
9876compiler_lib_search_path=$lt_compiler_lib_search_path
9877
9878# Method to check whether dependent libraries are shared objects.
9879deplibs_check_method=$lt_deplibs_check_method
9880
9881# Command to use when deplibs_check_method == file_magic.
9882file_magic_cmd=$lt_file_magic_cmd
9883
9884# Flag that allows shared libraries with undefined symbols to be built.
9885allow_undefined_flag=$lt_allow_undefined_flag
9886
9887# Flag that forces no undefined symbols.
9888no_undefined_flag=$lt_no_undefined_flag
9889
9890# Commands used to finish a libtool library installation in a directory.
9891finish_cmds=$lt_finish_cmds
9892
9893# Same as above, but a single script fragment to be evaled but not shown.
9894finish_eval=$lt_finish_eval
9895
9896# Take the output of nm and produce a listing of raw symbols and C names.
9897global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9898
9899# Transform the output of nm in a proper C declaration
9900global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9901
9902# Transform the output of nm in a C name address pair
9903global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9904
9905# This is the shared library runtime path variable.
9906runpath_var=$runpath_var
9907
9908# This is the shared library path variable.
9909shlibpath_var=$shlibpath_var
9910
9911# Is shlibpath searched before the hard-coded library search path?
9912shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9913
9914# How to hardcode a shared library path into an executable.
9915hardcode_action=$hardcode_action
9916
9917# Whether we should hardcode library paths into libraries.
9918hardcode_into_libs=$hardcode_into_libs
9919
9920# Flag to hardcode \$libdir into a binary during linking.
9921# This must work even if \$libdir does not exist.
9922hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9923
9924# If ld is used when linking, flag to hardcode \$libdir into
9925# a binary during linking. This must work even if \$libdir does
9926# not exist.
9927hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9928
9929# Whether we need a single -rpath flag with a separated argument.
9930hardcode_libdir_separator=$lt_hardcode_libdir_separator
9931
9932# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9933# resulting binary.
9934hardcode_direct=$hardcode_direct
9935
9936# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9937# resulting binary.
9938hardcode_minus_L=$hardcode_minus_L
9939
9940# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9941# the resulting binary.
9942hardcode_shlibpath_var=$hardcode_shlibpath_var
9943
9944# Set to yes if building a shared library automatically hardcodes DIR into the library
9945# and all subsequent libraries and executables linked against it.
9946hardcode_automatic=$hardcode_automatic
9947
9948# Variables whose values should be saved in libtool wrapper scripts and
9949# restored at relink time.
9950variables_saved_for_relink="$variables_saved_for_relink"
9951
9952# Whether libtool must link a program against all its dependency libraries.
9953link_all_deplibs=$link_all_deplibs
9954
9955# Compile-time system search path for libraries
9956sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9957
9958# Run-time system search path for libraries
9959sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9960
9961# Fix the shell variable \$srcfile for the compiler.
9962fix_srcfile_path="$fix_srcfile_path"
9963
9964# Set to yes if exported symbols are required.
9965always_export_symbols=$always_export_symbols
9966
9967# The commands to list exported symbols.
9968export_symbols_cmds=$lt_export_symbols_cmds
9969
9970# The commands to extract the exported symbol list from a shared archive.
9971extract_expsyms_cmds=$lt_extract_expsyms_cmds
9972
9973# Symbols that should not be listed in the preloaded symbols.
9974exclude_expsyms=$lt_exclude_expsyms
9975
9976# Symbols that must always be exported.
9977include_expsyms=$lt_include_expsyms
9978
9979# ### END LIBTOOL CONFIG
9980
9981__EOF__
9982
9983
9984  case $host_os in
9985  aix3*)
9986    cat <<\EOF >> "$cfgfile"
9987
9988# AIX sometimes has problems with the GCC collect2 program.  For some
9989# reason, if we set the COLLECT_NAMES environment variable, the problems
9990# vanish in a puff of smoke.
9991if test "X${COLLECT_NAMES+set}" != Xset; then
9992  COLLECT_NAMES=
9993  export COLLECT_NAMES
9994fi
9995EOF
9996    ;;
9997  esac
9998
9999  # We use sed instead of cat because bash on DJGPP gets confused if
10000  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10001  # text mode, it properly converts lines to CR/LF.  This bash problem
10002  # is reportedly fixed, but why not run on old versions too?
10003  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10004
10005  mv -f "$cfgfile" "$ofile" || \
10006    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10007  chmod +x "$ofile"
10008
10009else
10010  # If there is no Makefile yet, we rely on a make rule to execute
10011  # `config.status --recheck' to rerun these tests and create the
10012  # libtool script then.
10013  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10014  if test -f "$ltmain_in"; then
10015    test -f Makefile && make "$ltmain"
10016  fi
10017fi
10018
10019
10020ac_ext=c
10021ac_cpp='$CPP $CPPFLAGS'
10022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10024ac_compiler_gnu=$ac_cv_c_compiler_gnu
10025
10026CC="$lt_save_CC"
10027
10028
10029# Check whether --with-tags or --without-tags was given.
10030if test "${with_tags+set}" = set; then
10031  withval="$with_tags"
10032  tagnames="$withval"
10033fi;
10034
10035if test -f "$ltmain" && test -n "$tagnames"; then
10036  if test ! -f "${ofile}"; then
10037    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10038echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10039  fi
10040
10041  if test -z "$LTCC"; then
10042    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10043    if test -z "$LTCC"; then
10044      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10045echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10046    else
10047      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10048echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10049    fi
10050  fi
10051
10052  # Extract list of available tagged configurations in $ofile.
10053  # Note that this assumes the entire list is on one line.
10054  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10055
10056  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10057  for tagname in $tagnames; do
10058    IFS="$lt_save_ifs"
10059    # Check whether tagname contains only valid characters
10060    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10061    "") ;;
10062    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10063echo "$as_me: error: invalid tag name: $tagname" >&2;}
10064   { (exit 1); exit 1; }; }
10065	;;
10066    esac
10067
10068    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10069    then
10070      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10071echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10072   { (exit 1); exit 1; }; }
10073    fi
10074
10075    # Update the list of available tags.
10076    if test -n "$tagname"; then
10077      echo appending configuration tag \"$tagname\" to $ofile
10078
10079      case $tagname in
10080      CXX)
10081	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10082	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10083	    (test "X$CXX" != "Xg++"))) ; then
10084	  ac_ext=cc
10085ac_cpp='$CXXCPP $CPPFLAGS'
10086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10089
10090
10091
10092
10093archive_cmds_need_lc_CXX=no
10094allow_undefined_flag_CXX=
10095always_export_symbols_CXX=no
10096archive_expsym_cmds_CXX=
10097export_dynamic_flag_spec_CXX=
10098hardcode_direct_CXX=no
10099hardcode_libdir_flag_spec_CXX=
10100hardcode_libdir_flag_spec_ld_CXX=
10101hardcode_libdir_separator_CXX=
10102hardcode_minus_L_CXX=no
10103hardcode_automatic_CXX=no
10104module_cmds_CXX=
10105module_expsym_cmds_CXX=
10106link_all_deplibs_CXX=unknown
10107old_archive_cmds_CXX=$old_archive_cmds
10108no_undefined_flag_CXX=
10109whole_archive_flag_spec_CXX=
10110enable_shared_with_static_runtimes_CXX=no
10111
10112# Dependencies to place before and after the object being linked:
10113predep_objects_CXX=
10114postdep_objects_CXX=
10115predeps_CXX=
10116postdeps_CXX=
10117compiler_lib_search_path_CXX=
10118
10119# Source file extension for C++ test sources.
10120ac_ext=cpp
10121
10122# Object file extension for compiled C++ test sources.
10123objext=o
10124objext_CXX=$objext
10125
10126# Code to be used in simple compile tests
10127lt_simple_compile_test_code="int some_variable = 0;\n"
10128
10129# Code to be used in simple link tests
10130lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10131
10132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10133
10134# If no C compiler was specified, use CC.
10135LTCC=${LTCC-"$CC"}
10136
10137# Allow CC to be a program name with arguments.
10138compiler=$CC
10139
10140
10141# save warnings/boilerplate of simple test code
10142ac_outfile=conftest.$ac_objext
10143printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10144eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10145_lt_compiler_boilerplate=`cat conftest.err`
10146$rm conftest*
10147
10148ac_outfile=conftest.$ac_objext
10149printf "$lt_simple_link_test_code" >conftest.$ac_ext
10150eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10151_lt_linker_boilerplate=`cat conftest.err`
10152$rm conftest*
10153
10154
10155# Allow CC to be a program name with arguments.
10156lt_save_CC=$CC
10157lt_save_LD=$LD
10158lt_save_GCC=$GCC
10159GCC=$GXX
10160lt_save_with_gnu_ld=$with_gnu_ld
10161lt_save_path_LD=$lt_cv_path_LD
10162if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10163  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10164else
10165  unset lt_cv_prog_gnu_ld
10166fi
10167if test -n "${lt_cv_path_LDCXX+set}"; then
10168  lt_cv_path_LD=$lt_cv_path_LDCXX
10169else
10170  unset lt_cv_path_LD
10171fi
10172test -z "${LDCXX+set}" || LD=$LDCXX
10173CC=${CXX-"c++"}
10174compiler=$CC
10175compiler_CXX=$CC
10176for cc_temp in $compiler""; do
10177  case $cc_temp in
10178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10180    \-*) ;;
10181    *) break;;
10182  esac
10183done
10184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10185
10186
10187# We don't want -fno-exception wen compiling C++ code, so set the
10188# no_builtin_flag separately
10189if test "$GXX" = yes; then
10190  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10191else
10192  lt_prog_compiler_no_builtin_flag_CXX=
10193fi
10194
10195if test "$GXX" = yes; then
10196  # Set up default GNU C++ configuration
10197
10198
10199# Check whether --with-gnu-ld or --without-gnu-ld was given.
10200if test "${with_gnu_ld+set}" = set; then
10201  withval="$with_gnu_ld"
10202  test "$withval" = no || with_gnu_ld=yes
10203else
10204  with_gnu_ld=no
10205fi;
10206ac_prog=ld
10207if test "$GCC" = yes; then
10208  # Check if gcc -print-prog-name=ld gives a path.
10209  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10210echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10211  case $host in
10212  *-*-mingw*)
10213    # gcc leaves a trailing carriage return which upsets mingw
10214    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10215  *)
10216    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10217  esac
10218  case $ac_prog in
10219    # Accept absolute paths.
10220    [\\/]* | ?:[\\/]*)
10221      re_direlt='/[^/][^/]*/\.\./'
10222      # Canonicalize the pathname of ld
10223      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10224      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10225	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10226      done
10227      test -z "$LD" && LD="$ac_prog"
10228      ;;
10229  "")
10230    # If it fails, then pretend we aren't using GCC.
10231    ac_prog=ld
10232    ;;
10233  *)
10234    # If it is relative, then search for the first ld in PATH.
10235    with_gnu_ld=unknown
10236    ;;
10237  esac
10238elif test "$with_gnu_ld" = yes; then
10239  echo "$as_me:$LINENO: checking for GNU ld" >&5
10240echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10241else
10242  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10243echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10244fi
10245if test "${lt_cv_path_LD+set}" = set; then
10246  echo $ECHO_N "(cached) $ECHO_C" >&6
10247else
10248  if test -z "$LD"; then
10249  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10250  for ac_dir in $PATH; do
10251    IFS="$lt_save_ifs"
10252    test -z "$ac_dir" && ac_dir=.
10253    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10254      lt_cv_path_LD="$ac_dir/$ac_prog"
10255      # Check to see if the program is GNU ld.  I'd rather use --version,
10256      # but apparently some variants of GNU ld only accept -v.
10257      # Break only if it was the GNU/non-GNU ld that we prefer.
10258      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10259      *GNU* | *'with BFD'*)
10260	test "$with_gnu_ld" != no && break
10261	;;
10262      *)
10263	test "$with_gnu_ld" != yes && break
10264	;;
10265      esac
10266    fi
10267  done
10268  IFS="$lt_save_ifs"
10269else
10270  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10271fi
10272fi
10273
10274LD="$lt_cv_path_LD"
10275if test -n "$LD"; then
10276  echo "$as_me:$LINENO: result: $LD" >&5
10277echo "${ECHO_T}$LD" >&6
10278else
10279  echo "$as_me:$LINENO: result: no" >&5
10280echo "${ECHO_T}no" >&6
10281fi
10282test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10283echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10284   { (exit 1); exit 1; }; }
10285echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10286echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10287if test "${lt_cv_prog_gnu_ld+set}" = set; then
10288  echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10291case `$LD -v 2>&1 </dev/null` in
10292*GNU* | *'with BFD'*)
10293  lt_cv_prog_gnu_ld=yes
10294  ;;
10295*)
10296  lt_cv_prog_gnu_ld=no
10297  ;;
10298esac
10299fi
10300echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10301echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10302with_gnu_ld=$lt_cv_prog_gnu_ld
10303
10304
10305
10306  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10307  # archiving commands below assume that GNU ld is being used.
10308  if test "$with_gnu_ld" = yes; then
10309    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10310    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'
10311
10312    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10313    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10314
10315    # If archive_cmds runs LD, not CC, wlarc should be empty
10316    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10317    #     investigate it a little bit more. (MM)
10318    wlarc='${wl}'
10319
10320    # ancient GNU ld didn't support --whole-archive et. al.
10321    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10322	grep 'no-whole-archive' > /dev/null; then
10323      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10324    else
10325      whole_archive_flag_spec_CXX=
10326    fi
10327  else
10328    with_gnu_ld=no
10329    wlarc=
10330
10331    # A generic and very simple default shared library creation
10332    # command for GNU C++ for the case where it uses the native
10333    # linker, instead of GNU ld.  If possible, this setting should
10334    # overridden to take advantage of the native linker features on
10335    # the platform it is being used on.
10336    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10337  fi
10338
10339  # Commands to make compiler produce verbose output that lists
10340  # what "hidden" libraries, object files and flags are used when
10341  # linking a shared library.
10342  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10343
10344else
10345  GXX=no
10346  with_gnu_ld=no
10347  wlarc=
10348fi
10349
10350# PORTME: fill in a description of your system's C++ link characteristics
10351echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10352echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10353ld_shlibs_CXX=yes
10354case $host_os in
10355  aix3*)
10356    # FIXME: insert proper C++ library support
10357    ld_shlibs_CXX=no
10358    ;;
10359  aix4* | aix5*)
10360    if test "$host_cpu" = ia64; then
10361      # On IA64, the linker does run time linking by default, so we don't
10362      # have to do anything special.
10363      aix_use_runtimelinking=no
10364      exp_sym_flag='-Bexport'
10365      no_entry_flag=""
10366    else
10367      aix_use_runtimelinking=no
10368
10369      # Test if we are trying to use run time linking or normal
10370      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10371      # need to do runtime linking.
10372      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10373	for ld_flag in $LDFLAGS; do
10374	  case $ld_flag in
10375	  *-brtl*)
10376	    aix_use_runtimelinking=yes
10377	    break
10378	    ;;
10379	  esac
10380	done
10381      esac
10382
10383      exp_sym_flag='-bexport'
10384      no_entry_flag='-bnoentry'
10385    fi
10386
10387    # When large executables or shared objects are built, AIX ld can
10388    # have problems creating the table of contents.  If linking a library
10389    # or program results in "error TOC overflow" add -mminimal-toc to
10390    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10391    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10392
10393    archive_cmds_CXX=''
10394    hardcode_direct_CXX=yes
10395    hardcode_libdir_separator_CXX=':'
10396    link_all_deplibs_CXX=yes
10397
10398    if test "$GXX" = yes; then
10399      case $host_os in aix4.[012]|aix4.[012].*)
10400      # We only want to do this on AIX 4.2 and lower, the check
10401      # below for broken collect2 doesn't work under 4.3+
10402	collect2name=`${CC} -print-prog-name=collect2`
10403	if test -f "$collect2name" && \
10404	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10405	then
10406	  # We have reworked collect2
10407	  hardcode_direct_CXX=yes
10408	else
10409	  # We have old collect2
10410	  hardcode_direct_CXX=unsupported
10411	  # It fails to find uninstalled libraries when the uninstalled
10412	  # path is not listed in the libpath.  Setting hardcode_minus_L
10413	  # to unsupported forces relinking
10414	  hardcode_minus_L_CXX=yes
10415	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10416	  hardcode_libdir_separator_CXX=
10417	fi
10418      esac
10419      shared_flag='-shared'
10420      if test "$aix_use_runtimelinking" = yes; then
10421	shared_flag="$shared_flag "'${wl}-G'
10422      fi
10423    else
10424      # not using gcc
10425      if test "$host_cpu" = ia64; then
10426	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10427	# chokes on -Wl,-G. The following line is correct:
10428	shared_flag='-G'
10429      else
10430	if test "$aix_use_runtimelinking" = yes; then
10431	  shared_flag='${wl}-G'
10432	else
10433	  shared_flag='${wl}-bM:SRE'
10434	fi
10435      fi
10436    fi
10437
10438    # It seems that -bexpall does not export symbols beginning with
10439    # underscore (_), so it is better to generate a list of symbols to export.
10440    always_export_symbols_CXX=yes
10441    if test "$aix_use_runtimelinking" = yes; then
10442      # Warning - without using the other runtime loading flags (-brtl),
10443      # -berok will link without error, but may produce a broken library.
10444      allow_undefined_flag_CXX='-berok'
10445      # Determine the default libpath from the value encoded in an empty executable.
10446      cat >conftest.$ac_ext <<_ACEOF
10447/* confdefs.h.  */
10448_ACEOF
10449cat confdefs.h >>conftest.$ac_ext
10450cat >>conftest.$ac_ext <<_ACEOF
10451/* end confdefs.h.  */
10452
10453int
10454main ()
10455{
10456
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461rm -f conftest.$ac_objext conftest$ac_exeext
10462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463  (eval $ac_link) 2>conftest.er1
10464  ac_status=$?
10465  grep -v '^ *+' conftest.er1 >conftest.err
10466  rm -f conftest.er1
10467  cat conftest.err >&5
10468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469  (exit $ac_status); } &&
10470	 { ac_try='test -z "$ac_cxx_werror_flag"
10471			 || test ! -s conftest.err'
10472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473  (eval $ac_try) 2>&5
10474  ac_status=$?
10475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476  (exit $ac_status); }; } &&
10477	 { ac_try='test -s conftest$ac_exeext'
10478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479  (eval $ac_try) 2>&5
10480  ac_status=$?
10481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); }; }; then
10483
10484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10485}'`
10486# Check for a 64-bit object if we didn't find anything.
10487if 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; }
10488}'`; fi
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493fi
10494rm -f conftest.err conftest.$ac_objext \
10495      conftest$ac_exeext conftest.$ac_ext
10496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10497
10498      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10499
10500      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"
10501     else
10502      if test "$host_cpu" = ia64; then
10503	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10504	allow_undefined_flag_CXX="-z nodefs"
10505	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"
10506      else
10507	# Determine the default libpath from the value encoded in an empty executable.
10508	cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h.  */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h.  */
10514
10515int
10516main ()
10517{
10518
10519  ;
10520  return 0;
10521}
10522_ACEOF
10523rm -f conftest.$ac_objext conftest$ac_exeext
10524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525  (eval $ac_link) 2>conftest.er1
10526  ac_status=$?
10527  grep -v '^ *+' conftest.er1 >conftest.err
10528  rm -f conftest.er1
10529  cat conftest.err >&5
10530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531  (exit $ac_status); } &&
10532	 { ac_try='test -z "$ac_cxx_werror_flag"
10533			 || test ! -s conftest.err'
10534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535  (eval $ac_try) 2>&5
10536  ac_status=$?
10537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); }; } &&
10539	 { ac_try='test -s conftest$ac_exeext'
10540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541  (eval $ac_try) 2>&5
10542  ac_status=$?
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); }; }; then
10545
10546aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10547}'`
10548# Check for a 64-bit object if we didn't find anything.
10549if 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; }
10550}'`; fi
10551else
10552  echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555fi
10556rm -f conftest.err conftest.$ac_objext \
10557      conftest$ac_exeext conftest.$ac_ext
10558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10559
10560	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10561	# Warning - without using the other run time loading flags,
10562	# -berok will link without error, but may produce a broken library.
10563	no_undefined_flag_CXX=' ${wl}-bernotok'
10564	allow_undefined_flag_CXX=' ${wl}-berok'
10565	# -bexpall does not export symbols beginning with underscore (_)
10566	always_export_symbols_CXX=yes
10567	# Exported symbols can be pulled into shared objects from archives
10568	whole_archive_flag_spec_CXX=' '
10569	archive_cmds_need_lc_CXX=yes
10570	# This is similar to how AIX traditionally builds its shared libraries.
10571	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'
10572      fi
10573    fi
10574    ;;
10575  chorus*)
10576    case $cc_basename in
10577      *)
10578	# FIXME: insert proper C++ library support
10579	ld_shlibs_CXX=no
10580	;;
10581    esac
10582    ;;
10583
10584
10585  cygwin* | mingw* | pw32*)
10586    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10587    # as there is no search path for DLLs.
10588    hardcode_libdir_flag_spec_CXX='-L$libdir'
10589    allow_undefined_flag_CXX=unsupported
10590    always_export_symbols_CXX=no
10591    enable_shared_with_static_runtimes_CXX=yes
10592
10593    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10594      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'
10595      # If the export-symbols file already is a .def file (1st line
10596      # is EXPORTS), use it as is; otherwise, prepend...
10597      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10598	cp $export_symbols $output_objdir/$soname.def;
10599      else
10600	echo EXPORTS > $output_objdir/$soname.def;
10601	cat $export_symbols >> $output_objdir/$soname.def;
10602      fi~
10603      $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'
10604    else
10605      ld_shlibs_CXX=no
10606    fi
10607  ;;
10608      darwin* | rhapsody*)
10609        case $host_os in
10610        rhapsody* | darwin1.[012])
10611         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10612         ;;
10613       *) # Darwin 1.3 on
10614         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10615           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10616         else
10617           case ${MACOSX_DEPLOYMENT_TARGET} in
10618             10.[012])
10619               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10620               ;;
10621             10.*)
10622               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10623               ;;
10624           esac
10625         fi
10626         ;;
10627        esac
10628      archive_cmds_need_lc_CXX=no
10629      hardcode_direct_CXX=no
10630      hardcode_automatic_CXX=yes
10631      hardcode_shlibpath_var_CXX=unsupported
10632      whole_archive_flag_spec_CXX=''
10633      link_all_deplibs_CXX=yes
10634
10635    if test "$GXX" = yes ; then
10636      lt_int_apple_cc_single_mod=no
10637      output_verbose_link_cmd='echo'
10638      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10639       lt_int_apple_cc_single_mod=yes
10640      fi
10641      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10642       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10643      else
10644          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10645        fi
10646        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10647        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10648          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10649            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}'
10650          else
10651            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10652          fi
10653            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}'
10654      else
10655      case $cc_basename in
10656        xlc*)
10657         output_verbose_link_cmd='echo'
10658          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10659          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10661          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10662          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}'
10663          ;;
10664       *)
10665         ld_shlibs_CXX=no
10666          ;;
10667      esac
10668      fi
10669        ;;
10670
10671  dgux*)
10672    case $cc_basename in
10673      ec++*)
10674	# FIXME: insert proper C++ library support
10675	ld_shlibs_CXX=no
10676	;;
10677      ghcx*)
10678	# Green Hills C++ Compiler
10679	# FIXME: insert proper C++ library support
10680	ld_shlibs_CXX=no
10681	;;
10682      *)
10683	# FIXME: insert proper C++ library support
10684	ld_shlibs_CXX=no
10685	;;
10686    esac
10687    ;;
10688  freebsd[12]*)
10689    # C++ shared libraries reported to be fairly broken before switch to ELF
10690    ld_shlibs_CXX=no
10691    ;;
10692  freebsd-elf*)
10693    archive_cmds_need_lc_CXX=no
10694    ;;
10695  freebsd* | kfreebsd*-gnu | dragonfly*)
10696    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10697    # conventions
10698    ld_shlibs_CXX=yes
10699    ;;
10700  gnu*)
10701    ;;
10702  hpux9*)
10703    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10704    hardcode_libdir_separator_CXX=:
10705    export_dynamic_flag_spec_CXX='${wl}-E'
10706    hardcode_direct_CXX=yes
10707    hardcode_minus_L_CXX=yes # Not in the search PATH,
10708				# but as the default
10709				# location of the library.
10710
10711    case $cc_basename in
10712    CC*)
10713      # FIXME: insert proper C++ library support
10714      ld_shlibs_CXX=no
10715      ;;
10716    aCC*)
10717      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'
10718      # Commands to make compiler produce verbose output that lists
10719      # what "hidden" libraries, object files and flags are used when
10720      # linking a shared library.
10721      #
10722      # There doesn't appear to be a way to prevent this compiler from
10723      # explicitly linking system object files so we need to strip them
10724      # from the output so that they don't get included in the library
10725      # dependencies.
10726      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'
10727      ;;
10728    *)
10729      if test "$GXX" = yes; then
10730        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'
10731      else
10732        # FIXME: insert proper C++ library support
10733        ld_shlibs_CXX=no
10734      fi
10735      ;;
10736    esac
10737    ;;
10738  hpux10*|hpux11*)
10739    if test $with_gnu_ld = no; then
10740      case $host_cpu in
10741      hppa*64*)
10742	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10743	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10744	hardcode_libdir_separator_CXX=:
10745        ;;
10746      ia64*)
10747	hardcode_libdir_flag_spec_CXX='-L$libdir'
10748        ;;
10749      *)
10750	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10751	hardcode_libdir_separator_CXX=:
10752	export_dynamic_flag_spec_CXX='${wl}-E'
10753        ;;
10754      esac
10755    fi
10756    case $host_cpu in
10757    hppa*64*)
10758      hardcode_direct_CXX=no
10759      hardcode_shlibpath_var_CXX=no
10760      ;;
10761    ia64*)
10762      hardcode_direct_CXX=no
10763      hardcode_shlibpath_var_CXX=no
10764      hardcode_minus_L_CXX=yes # Not in the search PATH,
10765					      # but as the default
10766					      # location of the library.
10767      ;;
10768    *)
10769      hardcode_direct_CXX=yes
10770      hardcode_minus_L_CXX=yes # Not in the search PATH,
10771					      # but as the default
10772					      # location of the library.
10773      ;;
10774    esac
10775
10776    case $cc_basename in
10777      CC*)
10778	# FIXME: insert proper C++ library support
10779	ld_shlibs_CXX=no
10780	;;
10781      aCC*)
10782	case $host_cpu in
10783	hppa*64*|ia64*)
10784	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10785	  ;;
10786	*)
10787	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10788	  ;;
10789	esac
10790	# Commands to make compiler produce verbose output that lists
10791	# what "hidden" libraries, object files and flags are used when
10792	# linking a shared library.
10793	#
10794	# There doesn't appear to be a way to prevent this compiler from
10795	# explicitly linking system object files so we need to strip them
10796	# from the output so that they don't get included in the library
10797	# dependencies.
10798	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'
10799	;;
10800      *)
10801	if test "$GXX" = yes; then
10802	  if test $with_gnu_ld = no; then
10803	    case $host_cpu in
10804	    ia64*|hppa*64*)
10805	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10806	      ;;
10807	    *)
10808	      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'
10809	      ;;
10810	    esac
10811	  fi
10812	else
10813	  # FIXME: insert proper C++ library support
10814	  ld_shlibs_CXX=no
10815	fi
10816	;;
10817    esac
10818    ;;
10819  irix5* | irix6*)
10820    case $cc_basename in
10821      CC*)
10822	# SGI C++
10823	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10824
10825	# Archives containing C++ object files must be created using
10826	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10827	# necessary to make sure instantiated templates are included
10828	# in the archive.
10829	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10830	;;
10831      *)
10832	if test "$GXX" = yes; then
10833	  if test "$with_gnu_ld" = no; then
10834	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10835	  else
10836	    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'
10837	  fi
10838	fi
10839	link_all_deplibs_CXX=yes
10840	;;
10841    esac
10842    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10843    hardcode_libdir_separator_CXX=:
10844    ;;
10845  linux*)
10846    case $cc_basename in
10847      KCC*)
10848	# Kuck and Associates, Inc. (KAI) C++ Compiler
10849
10850	# KCC will only create a shared library if the output file
10851	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10852	# to its proper name (with version) after linking.
10853	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'
10854	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'
10855	# Commands to make compiler produce verbose output that lists
10856	# what "hidden" libraries, object files and flags are used when
10857	# linking a shared library.
10858	#
10859	# There doesn't appear to be a way to prevent this compiler from
10860	# explicitly linking system object files so we need to strip them
10861	# from the output so that they don't get included in the library
10862	# dependencies.
10863	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'
10864
10865	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10866	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10867
10868	# Archives containing C++ object files must be created using
10869	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10870	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10871	;;
10872      icpc*)
10873	# Intel C++
10874	with_gnu_ld=yes
10875	# version 8.0 and above of icpc choke on multiply defined symbols
10876	# if we add $predep_objects and $postdep_objects, however 7.1 and
10877	# earlier do not add the objects themselves.
10878	case `$CC -V 2>&1` in
10879	*"Version 7."*)
10880  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10881  	  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'
10882	  ;;
10883	*)  # Version 8.0 or newer
10884	  tmp_idyn=
10885	  case $host_cpu in
10886	    ia64*) tmp_idyn=' -i_dynamic';;
10887	  esac
10888  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10889	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10890	  ;;
10891	esac
10892	archive_cmds_need_lc_CXX=no
10893	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10894	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10895	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10896	;;
10897      pgCC*)
10898        # Portland Group C++ compiler
10899	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10900  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10901
10902	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10903	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10904	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10905        ;;
10906      cxx*)
10907	# Compaq C++
10908	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10909	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'
10910
10911	runpath_var=LD_RUN_PATH
10912	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10913	hardcode_libdir_separator_CXX=:
10914
10915	# Commands to make compiler produce verbose output that lists
10916	# what "hidden" libraries, object files and flags are used when
10917	# linking a shared library.
10918	#
10919	# There doesn't appear to be a way to prevent this compiler from
10920	# explicitly linking system object files so we need to strip them
10921	# from the output so that they don't get included in the library
10922	# dependencies.
10923	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'
10924	;;
10925    esac
10926    ;;
10927  lynxos*)
10928    # FIXME: insert proper C++ library support
10929    ld_shlibs_CXX=no
10930    ;;
10931  m88k*)
10932    # FIXME: insert proper C++ library support
10933    ld_shlibs_CXX=no
10934    ;;
10935  mvs*)
10936    case $cc_basename in
10937      cxx*)
10938	# FIXME: insert proper C++ library support
10939	ld_shlibs_CXX=no
10940	;;
10941      *)
10942	# FIXME: insert proper C++ library support
10943	ld_shlibs_CXX=no
10944	;;
10945    esac
10946    ;;
10947  netbsd*)
10948    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10949      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10950      wlarc=
10951      hardcode_libdir_flag_spec_CXX='-R$libdir'
10952      hardcode_direct_CXX=yes
10953      hardcode_shlibpath_var_CXX=no
10954    fi
10955    # Workaround some broken pre-1.5 toolchains
10956    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10957    ;;
10958  openbsd2*)
10959    # C++ shared libraries are fairly broken
10960    ld_shlibs_CXX=no
10961    ;;
10962  openbsd*)
10963    hardcode_direct_CXX=yes
10964    hardcode_shlibpath_var_CXX=no
10965    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10966    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10967    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10968      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10969      export_dynamic_flag_spec_CXX='${wl}-E'
10970      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10971    fi
10972    output_verbose_link_cmd='echo'
10973    ;;
10974  osf3*)
10975    case $cc_basename in
10976      KCC*)
10977	# Kuck and Associates, Inc. (KAI) C++ Compiler
10978
10979	# KCC will only create a shared library if the output file
10980	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10981	# to its proper name (with version) after linking.
10982	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'
10983
10984	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10985	hardcode_libdir_separator_CXX=:
10986
10987	# Archives containing C++ object files must be created using
10988	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10989	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10990
10991	;;
10992      RCC*)
10993	# Rational C++ 2.4.1
10994	# FIXME: insert proper C++ library support
10995	ld_shlibs_CXX=no
10996	;;
10997      cxx*)
10998	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10999	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11000
11001	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11002	hardcode_libdir_separator_CXX=:
11003
11004	# Commands to make compiler produce verbose output that lists
11005	# what "hidden" libraries, object files and flags are used when
11006	# linking a shared library.
11007	#
11008	# There doesn't appear to be a way to prevent this compiler from
11009	# explicitly linking system object files so we need to strip them
11010	# from the output so that they don't get included in the library
11011	# dependencies.
11012	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'
11013	;;
11014      *)
11015	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11016	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11017	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11018
11019	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11020	  hardcode_libdir_separator_CXX=:
11021
11022	  # Commands to make compiler produce verbose output that lists
11023	  # what "hidden" libraries, object files and flags are used when
11024	  # linking a shared library.
11025	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11026
11027	else
11028	  # FIXME: insert proper C++ library support
11029	  ld_shlibs_CXX=no
11030	fi
11031	;;
11032    esac
11033    ;;
11034  osf4* | osf5*)
11035    case $cc_basename in
11036      KCC*)
11037	# Kuck and Associates, Inc. (KAI) C++ Compiler
11038
11039	# KCC will only create a shared library if the output file
11040	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11041	# to its proper name (with version) after linking.
11042	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'
11043
11044	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11045	hardcode_libdir_separator_CXX=:
11046
11047	# Archives containing C++ object files must be created using
11048	# the KAI C++ compiler.
11049	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11050	;;
11051      RCC*)
11052	# Rational C++ 2.4.1
11053	# FIXME: insert proper C++ library support
11054	ld_shlibs_CXX=no
11055	;;
11056      cxx*)
11057	allow_undefined_flag_CXX=' -expect_unresolved \*'
11058	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11059	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11060	  echo "-hidden">> $lib.exp~
11061	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11062	  $rm $lib.exp'
11063
11064	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11065	hardcode_libdir_separator_CXX=:
11066
11067	# Commands to make compiler produce verbose output that lists
11068	# what "hidden" libraries, object files and flags are used when
11069	# linking a shared library.
11070	#
11071	# There doesn't appear to be a way to prevent this compiler from
11072	# explicitly linking system object files so we need to strip them
11073	# from the output so that they don't get included in the library
11074	# dependencies.
11075	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'
11076	;;
11077      *)
11078	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11079	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11081
11082	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083	  hardcode_libdir_separator_CXX=:
11084
11085	  # Commands to make compiler produce verbose output that lists
11086	  # what "hidden" libraries, object files and flags are used when
11087	  # linking a shared library.
11088	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11089
11090	else
11091	  # FIXME: insert proper C++ library support
11092	  ld_shlibs_CXX=no
11093	fi
11094	;;
11095    esac
11096    ;;
11097  psos*)
11098    # FIXME: insert proper C++ library support
11099    ld_shlibs_CXX=no
11100    ;;
11101  sco*)
11102    archive_cmds_need_lc_CXX=no
11103    case $cc_basename in
11104      CC*)
11105	# FIXME: insert proper C++ library support
11106	ld_shlibs_CXX=no
11107	;;
11108      *)
11109	# FIXME: insert proper C++ library support
11110	ld_shlibs_CXX=no
11111	;;
11112    esac
11113    ;;
11114  sunos4*)
11115    case $cc_basename in
11116      CC*)
11117	# Sun C++ 4.x
11118	# FIXME: insert proper C++ library support
11119	ld_shlibs_CXX=no
11120	;;
11121      lcc*)
11122	# Lucid
11123	# FIXME: insert proper C++ library support
11124	ld_shlibs_CXX=no
11125	;;
11126      *)
11127	# FIXME: insert proper C++ library support
11128	ld_shlibs_CXX=no
11129	;;
11130    esac
11131    ;;
11132  solaris*)
11133    case $cc_basename in
11134      CC*)
11135	# Sun C++ 4.2, 5.x and Centerline C++
11136        archive_cmds_need_lc_CXX=yes
11137	no_undefined_flag_CXX=' -zdefs'
11138	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11139	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11140	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11141
11142	hardcode_libdir_flag_spec_CXX='-R$libdir'
11143	hardcode_shlibpath_var_CXX=no
11144	case $host_os in
11145	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11146	  *)
11147	    # The C++ compiler is used as linker so we must use $wl
11148	    # flag to pass the commands to the underlying system
11149	    # linker. We must also pass each convience library through
11150	    # to the system linker between allextract/defaultextract.
11151	    # The C++ compiler will combine linker options so we
11152	    # cannot just pass the convience library names through
11153	    # without $wl.
11154	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11155	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11156	    ;;
11157	esac
11158	link_all_deplibs_CXX=yes
11159
11160	output_verbose_link_cmd='echo'
11161
11162	# Archives containing C++ object files must be created using
11163	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11164	# necessary to make sure instantiated templates are included
11165	# in the archive.
11166	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11167	;;
11168      gcx*)
11169	# Green Hills C++ Compiler
11170	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11171
11172	# The C++ compiler must be used to create the archive.
11173	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11174	;;
11175      *)
11176	# GNU C++ compiler with Solaris linker
11177	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11178	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11179	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11180	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11181	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11182		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11183
11184	    # Commands to make compiler produce verbose output that lists
11185	    # what "hidden" libraries, object files and flags are used when
11186	    # linking a shared library.
11187	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11188	  else
11189	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11190	    # platform.
11191	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11192	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11193		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11194
11195	    # Commands to make compiler produce verbose output that lists
11196	    # what "hidden" libraries, object files and flags are used when
11197	    # linking a shared library.
11198	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11199	  fi
11200
11201	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11202	fi
11203	;;
11204    esac
11205    ;;
11206  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11207    archive_cmds_need_lc_CXX=no
11208    ;;
11209  tandem*)
11210    case $cc_basename in
11211      NCC*)
11212	# NonStop-UX NCC 3.20
11213	# FIXME: insert proper C++ library support
11214	ld_shlibs_CXX=no
11215	;;
11216      *)
11217	# FIXME: insert proper C++ library support
11218	ld_shlibs_CXX=no
11219	;;
11220    esac
11221    ;;
11222  vxworks*)
11223    # FIXME: insert proper C++ library support
11224    ld_shlibs_CXX=no
11225    ;;
11226  *)
11227    # FIXME: insert proper C++ library support
11228    ld_shlibs_CXX=no
11229    ;;
11230esac
11231echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11232echo "${ECHO_T}$ld_shlibs_CXX" >&6
11233test "$ld_shlibs_CXX" = no && can_build_shared=no
11234
11235GCC_CXX="$GXX"
11236LD_CXX="$LD"
11237
11238## CAVEAT EMPTOR:
11239## There is no encapsulation within the following macros, do not change
11240## the running order or otherwise move them around unless you know exactly
11241## what you are doing...
11242
11243cat > conftest.$ac_ext <<EOF
11244class Foo
11245{
11246public:
11247  Foo (void) { a = 0; }
11248private:
11249  int a;
11250};
11251EOF
11252
11253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254  (eval $ac_compile) 2>&5
11255  ac_status=$?
11256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257  (exit $ac_status); }; then
11258  # Parse the compiler output and extract the necessary
11259  # objects, libraries and library flags.
11260
11261  # Sentinel used to keep track of whether or not we are before
11262  # the conftest object file.
11263  pre_test_object_deps_done=no
11264
11265  # The `*' in the case matches for architectures that use `case' in
11266  # $output_verbose_cmd can trigger glob expansion during the loop
11267  # eval without this substitution.
11268  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11269
11270  for p in `eval $output_verbose_link_cmd`; do
11271    case $p in
11272
11273    -L* | -R* | -l*)
11274       # Some compilers place space between "-{L,R}" and the path.
11275       # Remove the space.
11276       if test $p = "-L" \
11277	  || test $p = "-R"; then
11278	 prev=$p
11279	 continue
11280       else
11281	 prev=
11282       fi
11283
11284       if test "$pre_test_object_deps_done" = no; then
11285	 case $p in
11286	 -L* | -R*)
11287	   # Internal compiler library paths should come after those
11288	   # provided the user.  The postdeps already come after the
11289	   # user supplied libs so there is no need to process them.
11290	   if test -z "$compiler_lib_search_path_CXX"; then
11291	     compiler_lib_search_path_CXX="${prev}${p}"
11292	   else
11293	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11294	   fi
11295	   ;;
11296	 # The "-l" case would never come before the object being
11297	 # linked, so don't bother handling this case.
11298	 esac
11299       else
11300	 if test -z "$postdeps_CXX"; then
11301	   postdeps_CXX="${prev}${p}"
11302	 else
11303	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11304	 fi
11305       fi
11306       ;;
11307
11308    *.$objext)
11309       # This assumes that the test object file only shows up
11310       # once in the compiler output.
11311       if test "$p" = "conftest.$objext"; then
11312	 pre_test_object_deps_done=yes
11313	 continue
11314       fi
11315
11316       if test "$pre_test_object_deps_done" = no; then
11317	 if test -z "$predep_objects_CXX"; then
11318	   predep_objects_CXX="$p"
11319	 else
11320	   predep_objects_CXX="$predep_objects_CXX $p"
11321	 fi
11322       else
11323	 if test -z "$postdep_objects_CXX"; then
11324	   postdep_objects_CXX="$p"
11325	 else
11326	   postdep_objects_CXX="$postdep_objects_CXX $p"
11327	 fi
11328       fi
11329       ;;
11330
11331    *) ;; # Ignore the rest.
11332
11333    esac
11334  done
11335
11336  # Clean up.
11337  rm -f a.out a.exe
11338else
11339  echo "libtool.m4: error: problem compiling CXX test program"
11340fi
11341
11342$rm -f confest.$objext
11343
11344# PORTME: override above test on systems where it is broken
11345case $host_os in
11346solaris*)
11347  case $cc_basename in
11348  CC*)
11349    # Adding this requires a known-good setup of shared libraries for
11350    # Sun compiler versions before 5.6, else PIC objects from an old
11351    # archive will be linked into the output, leading to subtle bugs.
11352    postdeps_CXX='-lCstd -lCrun'
11353    ;;
11354  esac
11355esac
11356
11357
11358case " $postdeps_CXX " in
11359*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11360esac
11361
11362lt_prog_compiler_wl_CXX=
11363lt_prog_compiler_pic_CXX=
11364lt_prog_compiler_static_CXX=
11365
11366echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11367echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11368
11369  # C++ specific cases for pic, static, wl, etc.
11370  if test "$GXX" = yes; then
11371    lt_prog_compiler_wl_CXX='-Wl,'
11372    lt_prog_compiler_static_CXX='-static'
11373
11374    case $host_os in
11375    aix*)
11376      # All AIX code is PIC.
11377      if test "$host_cpu" = ia64; then
11378	# AIX 5 now supports IA64 processor
11379	lt_prog_compiler_static_CXX='-Bstatic'
11380      fi
11381      ;;
11382    amigaos*)
11383      # FIXME: we need at least 68020 code to build shared libraries, but
11384      # adding the `-m68020' flag to GCC prevents building anything better,
11385      # like `-m68040'.
11386      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11387      ;;
11388    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
11389    | osf5*)
11390      # PIC is the default for these OSes.
11391      ;;
11392    mingw* | os2* | pw32*)
11393      # This hack is so that the source file can tell whether it is being
11394      # built for inclusion in a dll (and should export symbols for example).
11395      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11396      ;;
11397    darwin* | rhapsody*)
11398      # PIC is the default on this platform
11399      # Common symbols not allowed in MH_DYLIB files
11400      lt_prog_compiler_pic_CXX='-fno-common'
11401      ;;
11402    *djgpp*)
11403      # DJGPP does not support shared libraries at all
11404      lt_prog_compiler_pic_CXX=
11405      ;;
11406    sysv4*MP*)
11407      if test -d /usr/nec; then
11408	lt_prog_compiler_pic_CXX=-Kconform_pic
11409      fi
11410      ;;
11411    hpux*)
11412      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11413      # not for PA HP-UX.
11414      case $host_cpu in
11415      hppa*64*|ia64*)
11416	;;
11417      *)
11418	lt_prog_compiler_pic_CXX='-fPIC'
11419	;;
11420      esac
11421      ;;
11422    *)
11423      lt_prog_compiler_pic_CXX='-fPIC'
11424      ;;
11425    esac
11426  else
11427    case $host_os in
11428      aix4* | aix5*)
11429	# All AIX code is PIC.
11430	if test "$host_cpu" = ia64; then
11431	  # AIX 5 now supports IA64 processor
11432	  lt_prog_compiler_static_CXX='-Bstatic'
11433	else
11434	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11435	fi
11436	;;
11437      chorus*)
11438	case $cc_basename in
11439	cxch68*)
11440	  # Green Hills C++ Compiler
11441	  # _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"
11442	  ;;
11443	esac
11444	;;
11445       darwin*)
11446         # PIC is the default on this platform
11447         # Common symbols not allowed in MH_DYLIB files
11448         case $cc_basename in
11449           xlc*)
11450           lt_prog_compiler_pic_CXX='-qnocommon'
11451           lt_prog_compiler_wl_CXX='-Wl,'
11452           ;;
11453         esac
11454       ;;
11455      dgux*)
11456	case $cc_basename in
11457	  ec++*)
11458	    lt_prog_compiler_pic_CXX='-KPIC'
11459	    ;;
11460	  ghcx*)
11461	    # Green Hills C++ Compiler
11462	    lt_prog_compiler_pic_CXX='-pic'
11463	    ;;
11464	  *)
11465	    ;;
11466	esac
11467	;;
11468      freebsd* | kfreebsd*-gnu | dragonfly*)
11469	# FreeBSD uses GNU C++
11470	;;
11471      hpux9* | hpux10* | hpux11*)
11472	case $cc_basename in
11473	  CC*)
11474	    lt_prog_compiler_wl_CXX='-Wl,'
11475	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11476	    if test "$host_cpu" != ia64; then
11477	      lt_prog_compiler_pic_CXX='+Z'
11478	    fi
11479	    ;;
11480	  aCC*)
11481	    lt_prog_compiler_wl_CXX='-Wl,'
11482	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11483	    case $host_cpu in
11484	    hppa*64*|ia64*)
11485	      # +Z the default
11486	      ;;
11487	    *)
11488	      lt_prog_compiler_pic_CXX='+Z'
11489	      ;;
11490	    esac
11491	    ;;
11492	  *)
11493	    ;;
11494	esac
11495	;;
11496      irix5* | irix6* | nonstopux*)
11497	case $cc_basename in
11498	  CC*)
11499	    lt_prog_compiler_wl_CXX='-Wl,'
11500	    lt_prog_compiler_static_CXX='-non_shared'
11501	    # CC pic flag -KPIC is the default.
11502	    ;;
11503	  *)
11504	    ;;
11505	esac
11506	;;
11507      linux*)
11508	case $cc_basename in
11509	  KCC*)
11510	    # KAI C++ Compiler
11511	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11512	    lt_prog_compiler_pic_CXX='-fPIC'
11513	    ;;
11514	  icpc* | ecpc*)
11515	    # Intel C++
11516	    lt_prog_compiler_wl_CXX='-Wl,'
11517	    lt_prog_compiler_pic_CXX='-KPIC'
11518	    lt_prog_compiler_static_CXX='-static'
11519	    ;;
11520	  pgCC*)
11521	    # Portland Group C++ compiler.
11522	    lt_prog_compiler_wl_CXX='-Wl,'
11523	    lt_prog_compiler_pic_CXX='-fpic'
11524	    lt_prog_compiler_static_CXX='-Bstatic'
11525	    ;;
11526	  cxx*)
11527	    # Compaq C++
11528	    # Make sure the PIC flag is empty.  It appears that all Alpha
11529	    # Linux and Compaq Tru64 Unix objects are PIC.
11530	    lt_prog_compiler_pic_CXX=
11531	    lt_prog_compiler_static_CXX='-non_shared'
11532	    ;;
11533	  *)
11534	    ;;
11535	esac
11536	;;
11537      lynxos*)
11538	;;
11539      m88k*)
11540	;;
11541      mvs*)
11542	case $cc_basename in
11543	  cxx*)
11544	    lt_prog_compiler_pic_CXX='-W c,exportall'
11545	    ;;
11546	  *)
11547	    ;;
11548	esac
11549	;;
11550      netbsd*)
11551	;;
11552      osf3* | osf4* | osf5*)
11553	case $cc_basename in
11554	  KCC*)
11555	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11556	    ;;
11557	  RCC*)
11558	    # Rational C++ 2.4.1
11559	    lt_prog_compiler_pic_CXX='-pic'
11560	    ;;
11561	  cxx*)
11562	    # Digital/Compaq C++
11563	    lt_prog_compiler_wl_CXX='-Wl,'
11564	    # Make sure the PIC flag is empty.  It appears that all Alpha
11565	    # Linux and Compaq Tru64 Unix objects are PIC.
11566	    lt_prog_compiler_pic_CXX=
11567	    lt_prog_compiler_static_CXX='-non_shared'
11568	    ;;
11569	  *)
11570	    ;;
11571	esac
11572	;;
11573      psos*)
11574	;;
11575      sco*)
11576	case $cc_basename in
11577	  CC*)
11578	    lt_prog_compiler_pic_CXX='-fPIC'
11579	    ;;
11580	  *)
11581	    ;;
11582	esac
11583	;;
11584      solaris*)
11585	case $cc_basename in
11586	  CC*)
11587	    # Sun C++ 4.2, 5.x and Centerline C++
11588	    lt_prog_compiler_pic_CXX='-KPIC'
11589	    lt_prog_compiler_static_CXX='-Bstatic'
11590	    lt_prog_compiler_wl_CXX='-Qoption ld '
11591	    ;;
11592	  gcx*)
11593	    # Green Hills C++ Compiler
11594	    lt_prog_compiler_pic_CXX='-PIC'
11595	    ;;
11596	  *)
11597	    ;;
11598	esac
11599	;;
11600      sunos4*)
11601	case $cc_basename in
11602	  CC*)
11603	    # Sun C++ 4.x
11604	    lt_prog_compiler_pic_CXX='-pic'
11605	    lt_prog_compiler_static_CXX='-Bstatic'
11606	    ;;
11607	  lcc*)
11608	    # Lucid
11609	    lt_prog_compiler_pic_CXX='-pic'
11610	    ;;
11611	  *)
11612	    ;;
11613	esac
11614	;;
11615      tandem*)
11616	case $cc_basename in
11617	  NCC*)
11618	    # NonStop-UX NCC 3.20
11619	    lt_prog_compiler_pic_CXX='-KPIC'
11620	    ;;
11621	  *)
11622	    ;;
11623	esac
11624	;;
11625      unixware*)
11626	;;
11627      vxworks*)
11628	;;
11629      *)
11630	lt_prog_compiler_can_build_shared_CXX=no
11631	;;
11632    esac
11633  fi
11634
11635echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11636echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11637
11638#
11639# Check to make sure the PIC flag actually works.
11640#
11641if test -n "$lt_prog_compiler_pic_CXX"; then
11642
11643echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11644echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11645if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11646  echo $ECHO_N "(cached) $ECHO_C" >&6
11647else
11648  lt_prog_compiler_pic_works_CXX=no
11649  ac_outfile=conftest.$ac_objext
11650   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11651   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11652   # Insert the option either (1) after the last *FLAGS variable, or
11653   # (2) before a word containing "conftest.", or (3) at the end.
11654   # Note that $ac_compile itself does not contain backslashes and begins
11655   # with a dollar sign (not a hyphen), so the echo should work correctly.
11656   # The option is referenced via a variable to avoid confusing sed.
11657   lt_compile=`echo "$ac_compile" | $SED \
11658   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11660   -e 's:$: $lt_compiler_flag:'`
11661   (eval echo "\"\$as_me:11661: $lt_compile\"" >&5)
11662   (eval "$lt_compile" 2>conftest.err)
11663   ac_status=$?
11664   cat conftest.err >&5
11665   echo "$as_me:11665: \$? = $ac_status" >&5
11666   if (exit $ac_status) && test -s "$ac_outfile"; then
11667     # The compiler can only warn and ignore the option if not recognized
11668     # So say no if there are warnings other than the usual output.
11669     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11670     $SED '/^$/d' conftest.err >conftest.er2
11671     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11672       lt_prog_compiler_pic_works_CXX=yes
11673     fi
11674   fi
11675   $rm conftest*
11676
11677fi
11678echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11679echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11680
11681if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11682    case $lt_prog_compiler_pic_CXX in
11683     "" | " "*) ;;
11684     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11685     esac
11686else
11687    lt_prog_compiler_pic_CXX=
11688     lt_prog_compiler_can_build_shared_CXX=no
11689fi
11690
11691fi
11692case $host_os in
11693  # For platforms which do not support PIC, -DPIC is meaningless:
11694  *djgpp*)
11695    lt_prog_compiler_pic_CXX=
11696    ;;
11697  *)
11698    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11699    ;;
11700esac
11701
11702echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11703echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11704if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11705  echo $ECHO_N "(cached) $ECHO_C" >&6
11706else
11707  lt_cv_prog_compiler_c_o_CXX=no
11708   $rm -r conftest 2>/dev/null
11709   mkdir conftest
11710   cd conftest
11711   mkdir out
11712   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11713
11714   lt_compiler_flag="-o out/conftest2.$ac_objext"
11715   # Insert the option either (1) after the last *FLAGS variable, or
11716   # (2) before a word containing "conftest.", or (3) at the end.
11717   # Note that $ac_compile itself does not contain backslashes and begins
11718   # with a dollar sign (not a hyphen), so the echo should work correctly.
11719   lt_compile=`echo "$ac_compile" | $SED \
11720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11722   -e 's:$: $lt_compiler_flag:'`
11723   (eval echo "\"\$as_me:11723: $lt_compile\"" >&5)
11724   (eval "$lt_compile" 2>out/conftest.err)
11725   ac_status=$?
11726   cat out/conftest.err >&5
11727   echo "$as_me:11727: \$? = $ac_status" >&5
11728   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11729   then
11730     # The compiler can only warn and ignore the option if not recognized
11731     # So say no if there are warnings
11732     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11733     $SED '/^$/d' out/conftest.err >out/conftest.er2
11734     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11735       lt_cv_prog_compiler_c_o_CXX=yes
11736     fi
11737   fi
11738   chmod u+w . 2>&5
11739   $rm conftest*
11740   # SGI C++ compiler will create directory out/ii_files/ for
11741   # template instantiation
11742   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11743   $rm out/* && rmdir out
11744   cd ..
11745   rmdir conftest
11746   $rm conftest*
11747
11748fi
11749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11750echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11751
11752
11753hard_links="nottested"
11754if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11755  # do not overwrite the value of need_locks provided by the user
11756  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11757echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11758  hard_links=yes
11759  $rm conftest*
11760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11761  touch conftest.a
11762  ln conftest.a conftest.b 2>&5 || hard_links=no
11763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11764  echo "$as_me:$LINENO: result: $hard_links" >&5
11765echo "${ECHO_T}$hard_links" >&6
11766  if test "$hard_links" = no; then
11767    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11768echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11769    need_locks=warn
11770  fi
11771else
11772  need_locks=no
11773fi
11774
11775echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11777
11778  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11779  case $host_os in
11780  aix4* | aix5*)
11781    # If we're using GNU nm, then we don't want the "-C" option.
11782    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11783    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11784      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'
11785    else
11786      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'
11787    fi
11788    ;;
11789  pw32*)
11790    export_symbols_cmds_CXX="$ltdll_cmds"
11791  ;;
11792  cygwin* | mingw*)
11793    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11794  ;;
11795  *)
11796    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11797  ;;
11798  esac
11799
11800echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11801echo "${ECHO_T}$ld_shlibs_CXX" >&6
11802test "$ld_shlibs_CXX" = no && can_build_shared=no
11803
11804variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11805if test "$GCC" = yes; then
11806  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11807fi
11808
11809#
11810# Do we need to explicitly link libc?
11811#
11812case "x$archive_cmds_need_lc_CXX" in
11813x|xyes)
11814  # Assume -lc should be added
11815  archive_cmds_need_lc_CXX=yes
11816
11817  if test "$enable_shared" = yes && test "$GCC" = yes; then
11818    case $archive_cmds_CXX in
11819    *'~'*)
11820      # FIXME: we may have to deal with multi-command sequences.
11821      ;;
11822    '$CC '*)
11823      # Test whether the compiler implicitly links with -lc since on some
11824      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11825      # to ld, don't add -lc before -lgcc.
11826      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11827echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11828      $rm conftest*
11829      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11830
11831      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832  (eval $ac_compile) 2>&5
11833  ac_status=$?
11834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835  (exit $ac_status); } 2>conftest.err; then
11836        soname=conftest
11837        lib=conftest
11838        libobjs=conftest.$ac_objext
11839        deplibs=
11840        wl=$lt_prog_compiler_wl_CXX
11841        compiler_flags=-v
11842        linker_flags=-v
11843        verstring=
11844        output_objdir=.
11845        libname=conftest
11846        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11847        allow_undefined_flag_CXX=
11848        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11849  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11850  ac_status=$?
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); }
11853        then
11854	  archive_cmds_need_lc_CXX=no
11855        else
11856	  archive_cmds_need_lc_CXX=yes
11857        fi
11858        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11859      else
11860        cat conftest.err 1>&5
11861      fi
11862      $rm conftest*
11863      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11864echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11865      ;;
11866    esac
11867  fi
11868  ;;
11869esac
11870
11871echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11872echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11873library_names_spec=
11874libname_spec='lib$name'
11875soname_spec=
11876shrext_cmds=".so"
11877postinstall_cmds=
11878postuninstall_cmds=
11879finish_cmds=
11880finish_eval=
11881shlibpath_var=
11882shlibpath_overrides_runpath=unknown
11883version_type=none
11884dynamic_linker="$host_os ld.so"
11885sys_lib_dlsearch_path_spec="/lib /usr/lib"
11886if test "$GCC" = yes; then
11887  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11888  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11889    # if the path contains ";" then we assume it to be the separator
11890    # otherwise default to the standard path separator (i.e. ":") - it is
11891    # assumed that no part of a normal pathname contains ";" but that should
11892    # okay in the real world where ";" in dirpaths is itself problematic.
11893    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11894  else
11895    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11896  fi
11897else
11898  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11899fi
11900need_lib_prefix=unknown
11901hardcode_into_libs=no
11902
11903# when you set need_version to no, make sure it does not cause -set_version
11904# flags to be left without arguments
11905need_version=unknown
11906
11907case $host_os in
11908aix3*)
11909  version_type=linux
11910  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11911  shlibpath_var=LIBPATH
11912
11913  # AIX 3 has no versioning support, so we append a major version to the name.
11914  soname_spec='${libname}${release}${shared_ext}$major'
11915  ;;
11916
11917aix4* | aix5*)
11918  version_type=linux
11919  need_lib_prefix=no
11920  need_version=no
11921  hardcode_into_libs=yes
11922  if test "$host_cpu" = ia64; then
11923    # AIX 5 supports IA64
11924    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11925    shlibpath_var=LD_LIBRARY_PATH
11926  else
11927    # With GCC up to 2.95.x, collect2 would create an import file
11928    # for dependence libraries.  The import file would start with
11929    # the line `#! .'.  This would cause the generated library to
11930    # depend on `.', always an invalid library.  This was fixed in
11931    # development snapshots of GCC prior to 3.0.
11932    case $host_os in
11933      aix4 | aix4.[01] | aix4.[01].*)
11934      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11935	   echo ' yes '
11936	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11937	:
11938      else
11939	can_build_shared=no
11940      fi
11941      ;;
11942    esac
11943    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11944    # soname into executable. Probably we can add versioning support to
11945    # collect2, so additional links can be useful in future.
11946    if test "$aix_use_runtimelinking" = yes; then
11947      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11948      # instead of lib<name>.a to let people know that these are not
11949      # typical AIX shared libraries.
11950      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951    else
11952      # We preserve .a as extension for shared libraries through AIX4.2
11953      # and later when we are not doing run time linking.
11954      library_names_spec='${libname}${release}.a $libname.a'
11955      soname_spec='${libname}${release}${shared_ext}$major'
11956    fi
11957    shlibpath_var=LIBPATH
11958  fi
11959  ;;
11960
11961amigaos*)
11962  library_names_spec='$libname.ixlibrary $libname.a'
11963  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11964  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'
11965  ;;
11966
11967beos*)
11968  library_names_spec='${libname}${shared_ext}'
11969  dynamic_linker="$host_os ld.so"
11970  shlibpath_var=LIBRARY_PATH
11971  ;;
11972
11973bsdi[45]*)
11974  version_type=linux
11975  need_version=no
11976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977  soname_spec='${libname}${release}${shared_ext}$major'
11978  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11979  shlibpath_var=LD_LIBRARY_PATH
11980  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11981  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11982  # the default ld.so.conf also contains /usr/contrib/lib and
11983  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11984  # libtool to hard-code these into programs
11985  ;;
11986
11987cygwin* | mingw* | pw32*)
11988  version_type=windows
11989  shrext_cmds=".dll"
11990  need_version=no
11991  need_lib_prefix=no
11992
11993  case $GCC,$host_os in
11994  yes,cygwin* | yes,mingw* | yes,pw32*)
11995    library_names_spec='$libname.dll.a'
11996    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11997    postinstall_cmds='base_file=`basename \${file}`~
11998      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11999      dldir=$destdir/`dirname \$dlpath`~
12000      test -d \$dldir || mkdir -p \$dldir~
12001      $install_prog $dir/$dlname \$dldir/$dlname~
12002      chmod a+x \$dldir/$dlname'
12003    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12004      dlpath=$dir/\$dldll~
12005       $rm \$dlpath'
12006    shlibpath_overrides_runpath=yes
12007
12008    case $host_os in
12009    cygwin*)
12010      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12011      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12012      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12013      ;;
12014    mingw*)
12015      # MinGW DLLs use traditional 'lib' prefix
12016      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12017      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12018      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12019        # It is most probably a Windows format PATH printed by
12020        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12021        # path with ; separators, and with drive letters. We can handle the
12022        # drive letters (cygwin fileutils understands them), so leave them,
12023        # especially as we might pass files found there to a mingw objdump,
12024        # which wouldn't understand a cygwinified path. Ahh.
12025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12026      else
12027        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12028      fi
12029      ;;
12030    pw32*)
12031      # pw32 DLLs use 'pw' prefix rather than 'lib'
12032      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12033      ;;
12034    esac
12035    ;;
12036
12037  *)
12038    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12039    ;;
12040  esac
12041  dynamic_linker='Win32 ld.exe'
12042  # FIXME: first we should search . and the directory the executable is in
12043  shlibpath_var=PATH
12044  ;;
12045
12046darwin* | rhapsody*)
12047  dynamic_linker="$host_os dyld"
12048  version_type=darwin
12049  need_lib_prefix=no
12050  need_version=no
12051  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12052  soname_spec='${libname}${release}${major}$shared_ext'
12053  shlibpath_overrides_runpath=yes
12054  shlibpath_var=DYLD_LIBRARY_PATH
12055  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12056  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12057  if test "$GCC" = yes; then
12058    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"`
12059  else
12060    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12061  fi
12062  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12063  ;;
12064
12065dgux*)
12066  version_type=linux
12067  need_lib_prefix=no
12068  need_version=no
12069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12070  soname_spec='${libname}${release}${shared_ext}$major'
12071  shlibpath_var=LD_LIBRARY_PATH
12072  ;;
12073
12074freebsd1*)
12075  dynamic_linker=no
12076  ;;
12077
12078haiku*)
12079  library_names_spec='${libname}${shared_ext}'
12080  dynamic_linker="$host_os ld.so"
12081  shlibpath_var=LIBRARY_PATH
12082  ;;
12083
12084kfreebsd*-gnu)
12085  version_type=linux
12086  need_lib_prefix=no
12087  need_version=no
12088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12089  soname_spec='${libname}${release}${shared_ext}$major'
12090  shlibpath_var=LD_LIBRARY_PATH
12091  shlibpath_overrides_runpath=no
12092  hardcode_into_libs=yes
12093  dynamic_linker='GNU ld.so'
12094  ;;
12095
12096freebsd* | dragonfly*)
12097  # DragonFly does not have aout.  When/if they implement a new
12098  # versioning mechanism, adjust this.
12099  if test -x /usr/bin/objformat; then
12100    objformat=`/usr/bin/objformat`
12101  else
12102    case $host_os in
12103    freebsd[123]*) objformat=aout ;;
12104    *) objformat=elf ;;
12105    esac
12106  fi
12107  version_type=freebsd-$objformat
12108  case $version_type in
12109    freebsd-elf*)
12110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12111      need_version=no
12112      need_lib_prefix=no
12113      ;;
12114    freebsd-*)
12115      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12116      need_version=yes
12117      ;;
12118  esac
12119  shlibpath_var=LD_LIBRARY_PATH
12120  case $host_os in
12121  freebsd2*)
12122    shlibpath_overrides_runpath=yes
12123    ;;
12124  freebsd3.[01]* | freebsdelf3.[01]*)
12125    shlibpath_overrides_runpath=yes
12126    hardcode_into_libs=yes
12127    ;;
12128  *) # from 3.2 on
12129    shlibpath_overrides_runpath=no
12130    hardcode_into_libs=yes
12131    ;;
12132  esac
12133  ;;
12134
12135gnu*)
12136  version_type=linux
12137  need_lib_prefix=no
12138  need_version=no
12139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12140  soname_spec='${libname}${release}${shared_ext}$major'
12141  shlibpath_var=LD_LIBRARY_PATH
12142  hardcode_into_libs=yes
12143  ;;
12144
12145hpux9* | hpux10* | hpux11*)
12146  # Give a soname corresponding to the major version so that dld.sl refuses to
12147  # link against other versions.
12148  version_type=sunos
12149  need_lib_prefix=no
12150  need_version=no
12151  case $host_cpu in
12152  ia64*)
12153    shrext_cmds='.so'
12154    hardcode_into_libs=yes
12155    dynamic_linker="$host_os dld.so"
12156    shlibpath_var=LD_LIBRARY_PATH
12157    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159    soname_spec='${libname}${release}${shared_ext}$major'
12160    if test "X$HPUX_IA64_MODE" = X32; then
12161      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12162    else
12163      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12164    fi
12165    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12166    ;;
12167   hppa*64*)
12168     shrext_cmds='.sl'
12169     hardcode_into_libs=yes
12170     dynamic_linker="$host_os dld.sl"
12171     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174     soname_spec='${libname}${release}${shared_ext}$major'
12175     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12177     ;;
12178   *)
12179    shrext_cmds='.sl'
12180    dynamic_linker="$host_os dld.sl"
12181    shlibpath_var=SHLIB_PATH
12182    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184    soname_spec='${libname}${release}${shared_ext}$major'
12185    ;;
12186  esac
12187  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12188  postinstall_cmds='chmod 555 $lib'
12189  ;;
12190
12191irix5* | irix6* | nonstopux*)
12192  case $host_os in
12193    nonstopux*) version_type=nonstopux ;;
12194    *)
12195	if test "$lt_cv_prog_gnu_ld" = yes; then
12196		version_type=linux
12197	else
12198		version_type=irix
12199	fi ;;
12200  esac
12201  need_lib_prefix=no
12202  need_version=no
12203  soname_spec='${libname}${release}${shared_ext}$major'
12204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12205  case $host_os in
12206  irix5* | nonstopux*)
12207    libsuff= shlibsuff=
12208    ;;
12209  *)
12210    case $LD in # libtool.m4 will add one of these switches to LD
12211    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12212      libsuff= shlibsuff= libmagic=32-bit;;
12213    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12214      libsuff=32 shlibsuff=N32 libmagic=N32;;
12215    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12216      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12217    *) libsuff= shlibsuff= libmagic=never-match;;
12218    esac
12219    ;;
12220  esac
12221  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12222  shlibpath_overrides_runpath=no
12223  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12224  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12225  hardcode_into_libs=yes
12226  ;;
12227
12228# No shared lib support for Linux oldld, aout, or coff.
12229linux*oldld* | linux*aout* | linux*coff*)
12230  dynamic_linker=no
12231  ;;
12232
12233# This must be Linux ELF.
12234linux*)
12235  version_type=linux
12236  need_lib_prefix=no
12237  need_version=no
12238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239  soname_spec='${libname}${release}${shared_ext}$major'
12240  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12241  shlibpath_var=LD_LIBRARY_PATH
12242  shlibpath_overrides_runpath=no
12243  # This implies no fast_install, which is unacceptable.
12244  # Some rework will be needed to allow for fast_install
12245  # before this can be enabled.
12246  hardcode_into_libs=yes
12247
12248  # Append ld.so.conf contents to the search path
12249  if test -f /etc/ld.so.conf; then
12250    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12251    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12252  fi
12253
12254  # We used to test for /lib/ld.so.1 and disable shared libraries on
12255  # powerpc, because MkLinux only supported shared libraries with the
12256  # GNU dynamic linker.  Since this was broken with cross compilers,
12257  # most powerpc-linux boxes support dynamic linking these days and
12258  # people can always --disable-shared, the test was removed, and we
12259  # assume the GNU/Linux dynamic linker is in use.
12260  dynamic_linker='GNU/Linux ld.so'
12261  ;;
12262
12263knetbsd*-gnu)
12264  version_type=linux
12265  need_lib_prefix=no
12266  need_version=no
12267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12268  soname_spec='${libname}${release}${shared_ext}$major'
12269  shlibpath_var=LD_LIBRARY_PATH
12270  shlibpath_overrides_runpath=no
12271  hardcode_into_libs=yes
12272  dynamic_linker='GNU ld.so'
12273  ;;
12274
12275netbsd*)
12276  version_type=sunos
12277  need_lib_prefix=no
12278  need_version=no
12279  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12281    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12282    dynamic_linker='NetBSD (a.out) ld.so'
12283  else
12284    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12285    soname_spec='${libname}${release}${shared_ext}$major'
12286    dynamic_linker='NetBSD ld.elf_so'
12287  fi
12288  shlibpath_var=LD_LIBRARY_PATH
12289  shlibpath_overrides_runpath=yes
12290  hardcode_into_libs=yes
12291  ;;
12292
12293newsos6)
12294  version_type=linux
12295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296  shlibpath_var=LD_LIBRARY_PATH
12297  shlibpath_overrides_runpath=yes
12298  ;;
12299
12300nto-qnx*)
12301  version_type=linux
12302  need_lib_prefix=no
12303  need_version=no
12304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305  soname_spec='${libname}${release}${shared_ext}$major'
12306  shlibpath_var=LD_LIBRARY_PATH
12307  shlibpath_overrides_runpath=yes
12308  ;;
12309
12310openbsd*)
12311  version_type=sunos
12312  need_lib_prefix=no
12313  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12314  case $host_os in
12315    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12316    *)                         need_version=no  ;;
12317  esac
12318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12319  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12322    case $host_os in
12323      openbsd2.[89] | openbsd2.[89].*)
12324	shlibpath_overrides_runpath=no
12325	;;
12326      *)
12327	shlibpath_overrides_runpath=yes
12328	;;
12329      esac
12330  else
12331    shlibpath_overrides_runpath=yes
12332  fi
12333  ;;
12334
12335os2*)
12336  libname_spec='$name'
12337  shrext_cmds=".dll"
12338  need_lib_prefix=no
12339  library_names_spec='$libname${shared_ext} $libname.a'
12340  dynamic_linker='OS/2 ld.exe'
12341  shlibpath_var=LIBPATH
12342  ;;
12343
12344osf3* | osf4* | osf5*)
12345  version_type=osf
12346  need_lib_prefix=no
12347  need_version=no
12348  soname_spec='${libname}${release}${shared_ext}$major'
12349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350  shlibpath_var=LD_LIBRARY_PATH
12351  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12352  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12353  ;;
12354
12355sco3.2v5*)
12356  version_type=osf
12357  soname_spec='${libname}${release}${shared_ext}$major'
12358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359  shlibpath_var=LD_LIBRARY_PATH
12360  ;;
12361
12362solaris*)
12363  version_type=linux
12364  need_lib_prefix=no
12365  need_version=no
12366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367  soname_spec='${libname}${release}${shared_ext}$major'
12368  shlibpath_var=LD_LIBRARY_PATH
12369  shlibpath_overrides_runpath=yes
12370  hardcode_into_libs=yes
12371  # ldd complains unless libraries are executable
12372  postinstall_cmds='chmod +x $lib'
12373  ;;
12374
12375sunos4*)
12376  version_type=sunos
12377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12378  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12379  shlibpath_var=LD_LIBRARY_PATH
12380  shlibpath_overrides_runpath=yes
12381  if test "$with_gnu_ld" = yes; then
12382    need_lib_prefix=no
12383  fi
12384  need_version=yes
12385  ;;
12386
12387sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12388  version_type=linux
12389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390  soname_spec='${libname}${release}${shared_ext}$major'
12391  shlibpath_var=LD_LIBRARY_PATH
12392  case $host_vendor in
12393    sni)
12394      shlibpath_overrides_runpath=no
12395      need_lib_prefix=no
12396      export_dynamic_flag_spec='${wl}-Blargedynsym'
12397      runpath_var=LD_RUN_PATH
12398      ;;
12399    siemens)
12400      need_lib_prefix=no
12401      ;;
12402    motorola)
12403      need_lib_prefix=no
12404      need_version=no
12405      shlibpath_overrides_runpath=no
12406      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12407      ;;
12408  esac
12409  ;;
12410
12411sysv4*MP*)
12412  if test -d /usr/nec ;then
12413    version_type=linux
12414    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12415    soname_spec='$libname${shared_ext}.$major'
12416    shlibpath_var=LD_LIBRARY_PATH
12417  fi
12418  ;;
12419
12420uts4*)
12421  version_type=linux
12422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12423  soname_spec='${libname}${release}${shared_ext}$major'
12424  shlibpath_var=LD_LIBRARY_PATH
12425  ;;
12426
12427*)
12428  dynamic_linker=no
12429  ;;
12430esac
12431echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12432echo "${ECHO_T}$dynamic_linker" >&6
12433test "$dynamic_linker" = no && can_build_shared=no
12434
12435echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12436echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12437hardcode_action_CXX=
12438if test -n "$hardcode_libdir_flag_spec_CXX" || \
12439   test -n "$runpath_var_CXX" || \
12440   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12441
12442  # We can hardcode non-existant directories.
12443  if test "$hardcode_direct_CXX" != no &&
12444     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12445     # have to relink, otherwise we might link with an installed library
12446     # when we should be linking with a yet-to-be-installed one
12447     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12448     test "$hardcode_minus_L_CXX" != no; then
12449    # Linking always hardcodes the temporary library directory.
12450    hardcode_action_CXX=relink
12451  else
12452    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12453    hardcode_action_CXX=immediate
12454  fi
12455else
12456  # We cannot hardcode anything, or else we can only hardcode existing
12457  # directories.
12458  hardcode_action_CXX=unsupported
12459fi
12460echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12461echo "${ECHO_T}$hardcode_action_CXX" >&6
12462
12463if test "$hardcode_action_CXX" = relink; then
12464  # Fast installation is not supported
12465  enable_fast_install=no
12466elif test "$shlibpath_overrides_runpath" = yes ||
12467     test "$enable_shared" = no; then
12468  # Fast installation is not necessary
12469  enable_fast_install=needless
12470fi
12471
12472striplib=
12473old_striplib=
12474echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12475echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12476if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12477  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12478  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12479  echo "$as_me:$LINENO: result: yes" >&5
12480echo "${ECHO_T}yes" >&6
12481else
12482# FIXME - insert some real tests, host_os isn't really good enough
12483  case $host_os in
12484   darwin*)
12485       if test -n "$STRIP" ; then
12486         striplib="$STRIP -x"
12487         echo "$as_me:$LINENO: result: yes" >&5
12488echo "${ECHO_T}yes" >&6
12489       else
12490  echo "$as_me:$LINENO: result: no" >&5
12491echo "${ECHO_T}no" >&6
12492fi
12493       ;;
12494   *)
12495  echo "$as_me:$LINENO: result: no" >&5
12496echo "${ECHO_T}no" >&6
12497    ;;
12498  esac
12499fi
12500
12501if test "x$enable_dlopen" != xyes; then
12502  enable_dlopen=unknown
12503  enable_dlopen_self=unknown
12504  enable_dlopen_self_static=unknown
12505else
12506  lt_cv_dlopen=no
12507  lt_cv_dlopen_libs=
12508
12509  case $host_os in
12510  beos*)
12511    lt_cv_dlopen="load_add_on"
12512    lt_cv_dlopen_libs=
12513    lt_cv_dlopen_self=yes
12514    ;;
12515
12516  mingw* | pw32*)
12517    lt_cv_dlopen="LoadLibrary"
12518    lt_cv_dlopen_libs=
12519   ;;
12520
12521  cygwin*)
12522    lt_cv_dlopen="dlopen"
12523    lt_cv_dlopen_libs=
12524   ;;
12525
12526  darwin*)
12527  # if libdl is installed we need to link against it
12528    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12529echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12530if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12531  echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
12533  ac_check_lib_save_LIBS=$LIBS
12534LIBS="-ldl  $LIBS"
12535cat >conftest.$ac_ext <<_ACEOF
12536/* confdefs.h.  */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
12540/* end confdefs.h.  */
12541
12542/* Override any gcc2 internal prototype to avoid an error.  */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546/* We use char because int might match the return type of a gcc2
12547   builtin and then its argument prototype would still apply.  */
12548char dlopen ();
12549int
12550main ()
12551{
12552dlopen ();
12553  ;
12554  return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext conftest$ac_exeext
12558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559  (eval $ac_link) 2>conftest.er1
12560  ac_status=$?
12561  grep -v '^ *+' conftest.er1 >conftest.err
12562  rm -f conftest.er1
12563  cat conftest.err >&5
12564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565  (exit $ac_status); } &&
12566	 { ac_try='test -z "$ac_cxx_werror_flag"
12567			 || test ! -s conftest.err'
12568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569  (eval $ac_try) 2>&5
12570  ac_status=$?
12571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572  (exit $ac_status); }; } &&
12573	 { ac_try='test -s conftest$ac_exeext'
12574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575  (eval $ac_try) 2>&5
12576  ac_status=$?
12577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578  (exit $ac_status); }; }; then
12579  ac_cv_lib_dl_dlopen=yes
12580else
12581  echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584ac_cv_lib_dl_dlopen=no
12585fi
12586rm -f conftest.err conftest.$ac_objext \
12587      conftest$ac_exeext conftest.$ac_ext
12588LIBS=$ac_check_lib_save_LIBS
12589fi
12590echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12591echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12592if test $ac_cv_lib_dl_dlopen = yes; then
12593  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12594else
12595
12596    lt_cv_dlopen="dyld"
12597    lt_cv_dlopen_libs=
12598    lt_cv_dlopen_self=yes
12599
12600fi
12601
12602   ;;
12603
12604  haiku*)
12605    lt_cv_dlopen="load_add_on"
12606    lt_cv_dlopen_libs=
12607    lt_cv_dlopen_self=yes
12608    ;;
12609
12610  *)
12611    echo "$as_me:$LINENO: checking for shl_load" >&5
12612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12613if test "${ac_cv_func_shl_load+set}" = set; then
12614  echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616  cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h.  */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h.  */
12622/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12624#define shl_load innocuous_shl_load
12625
12626/* System header to define __stub macros and hopefully few prototypes,
12627    which can conflict with char shl_load (); below.
12628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629    <limits.h> exists even on freestanding compilers.  */
12630
12631#ifdef __STDC__
12632# include <limits.h>
12633#else
12634# include <assert.h>
12635#endif
12636
12637#undef shl_load
12638
12639/* Override any gcc2 internal prototype to avoid an error.  */
12640#ifdef __cplusplus
12641extern "C"
12642{
12643#endif
12644/* We use char because int might match the return type of a gcc2
12645   builtin and then its argument prototype would still apply.  */
12646char shl_load ();
12647/* The GNU C library defines this for functions which it implements
12648    to always fail with ENOSYS.  Some functions are actually named
12649    something starting with __ and the normal name is an alias.  */
12650#if defined (__stub_shl_load) || defined (__stub___shl_load)
12651choke me
12652#else
12653char (*f) () = shl_load;
12654#endif
12655#ifdef __cplusplus
12656}
12657#endif
12658
12659int
12660main ()
12661{
12662return f != shl_load;
12663  ;
12664  return 0;
12665}
12666_ACEOF
12667rm -f conftest.$ac_objext conftest$ac_exeext
12668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669  (eval $ac_link) 2>conftest.er1
12670  ac_status=$?
12671  grep -v '^ *+' conftest.er1 >conftest.err
12672  rm -f conftest.er1
12673  cat conftest.err >&5
12674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675  (exit $ac_status); } &&
12676	 { ac_try='test -z "$ac_cxx_werror_flag"
12677			 || test ! -s conftest.err'
12678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679  (eval $ac_try) 2>&5
12680  ac_status=$?
12681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682  (exit $ac_status); }; } &&
12683	 { ac_try='test -s conftest$ac_exeext'
12684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685  (eval $ac_try) 2>&5
12686  ac_status=$?
12687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688  (exit $ac_status); }; }; then
12689  ac_cv_func_shl_load=yes
12690else
12691  echo "$as_me: failed program was:" >&5
12692sed 's/^/| /' conftest.$ac_ext >&5
12693
12694ac_cv_func_shl_load=no
12695fi
12696rm -f conftest.err conftest.$ac_objext \
12697      conftest$ac_exeext conftest.$ac_ext
12698fi
12699echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12700echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12701if test $ac_cv_func_shl_load = yes; then
12702  lt_cv_dlopen="shl_load"
12703else
12704  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12705echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12706if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12707  echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709  ac_check_lib_save_LIBS=$LIBS
12710LIBS="-ldld  $LIBS"
12711cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h.  */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h.  */
12717
12718/* Override any gcc2 internal prototype to avoid an error.  */
12719#ifdef __cplusplus
12720extern "C"
12721#endif
12722/* We use char because int might match the return type of a gcc2
12723   builtin and then its argument prototype would still apply.  */
12724char shl_load ();
12725int
12726main ()
12727{
12728shl_load ();
12729  ;
12730  return 0;
12731}
12732_ACEOF
12733rm -f conftest.$ac_objext conftest$ac_exeext
12734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735  (eval $ac_link) 2>conftest.er1
12736  ac_status=$?
12737  grep -v '^ *+' conftest.er1 >conftest.err
12738  rm -f conftest.er1
12739  cat conftest.err >&5
12740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741  (exit $ac_status); } &&
12742	 { ac_try='test -z "$ac_cxx_werror_flag"
12743			 || test ! -s conftest.err'
12744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745  (eval $ac_try) 2>&5
12746  ac_status=$?
12747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748  (exit $ac_status); }; } &&
12749	 { ac_try='test -s conftest$ac_exeext'
12750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751  (eval $ac_try) 2>&5
12752  ac_status=$?
12753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754  (exit $ac_status); }; }; then
12755  ac_cv_lib_dld_shl_load=yes
12756else
12757  echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760ac_cv_lib_dld_shl_load=no
12761fi
12762rm -f conftest.err conftest.$ac_objext \
12763      conftest$ac_exeext conftest.$ac_ext
12764LIBS=$ac_check_lib_save_LIBS
12765fi
12766echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12768if test $ac_cv_lib_dld_shl_load = yes; then
12769  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12770else
12771  echo "$as_me:$LINENO: checking for dlopen" >&5
12772echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12773if test "${ac_cv_func_dlopen+set}" = set; then
12774  echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776  cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h.  */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h.  */
12782/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12783   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12784#define dlopen innocuous_dlopen
12785
12786/* System header to define __stub macros and hopefully few prototypes,
12787    which can conflict with char dlopen (); below.
12788    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12789    <limits.h> exists even on freestanding compilers.  */
12790
12791#ifdef __STDC__
12792# include <limits.h>
12793#else
12794# include <assert.h>
12795#endif
12796
12797#undef dlopen
12798
12799/* Override any gcc2 internal prototype to avoid an error.  */
12800#ifdef __cplusplus
12801extern "C"
12802{
12803#endif
12804/* We use char because int might match the return type of a gcc2
12805   builtin and then its argument prototype would still apply.  */
12806char dlopen ();
12807/* The GNU C library defines this for functions which it implements
12808    to always fail with ENOSYS.  Some functions are actually named
12809    something starting with __ and the normal name is an alias.  */
12810#if defined (__stub_dlopen) || defined (__stub___dlopen)
12811choke me
12812#else
12813char (*f) () = dlopen;
12814#endif
12815#ifdef __cplusplus
12816}
12817#endif
12818
12819int
12820main ()
12821{
12822return f != dlopen;
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12829  (eval $ac_link) 2>conftest.er1
12830  ac_status=$?
12831  grep -v '^ *+' conftest.er1 >conftest.err
12832  rm -f conftest.er1
12833  cat conftest.err >&5
12834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835  (exit $ac_status); } &&
12836	 { ac_try='test -z "$ac_cxx_werror_flag"
12837			 || test ! -s conftest.err'
12838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839  (eval $ac_try) 2>&5
12840  ac_status=$?
12841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842  (exit $ac_status); }; } &&
12843	 { ac_try='test -s conftest$ac_exeext'
12844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845  (eval $ac_try) 2>&5
12846  ac_status=$?
12847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848  (exit $ac_status); }; }; then
12849  ac_cv_func_dlopen=yes
12850else
12851  echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854ac_cv_func_dlopen=no
12855fi
12856rm -f conftest.err conftest.$ac_objext \
12857      conftest$ac_exeext conftest.$ac_ext
12858fi
12859echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12860echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12861if test $ac_cv_func_dlopen = yes; then
12862  lt_cv_dlopen="dlopen"
12863else
12864  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12865echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12867  echo $ECHO_N "(cached) $ECHO_C" >&6
12868else
12869  ac_check_lib_save_LIBS=$LIBS
12870LIBS="-ldl  $LIBS"
12871cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h.  */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h.  */
12877
12878/* Override any gcc2 internal prototype to avoid an error.  */
12879#ifdef __cplusplus
12880extern "C"
12881#endif
12882/* We use char because int might match the return type of a gcc2
12883   builtin and then its argument prototype would still apply.  */
12884char dlopen ();
12885int
12886main ()
12887{
12888dlopen ();
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext conftest$ac_exeext
12894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895  (eval $ac_link) 2>conftest.er1
12896  ac_status=$?
12897  grep -v '^ *+' conftest.er1 >conftest.err
12898  rm -f conftest.er1
12899  cat conftest.err >&5
12900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901  (exit $ac_status); } &&
12902	 { ac_try='test -z "$ac_cxx_werror_flag"
12903			 || test ! -s conftest.err'
12904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905  (eval $ac_try) 2>&5
12906  ac_status=$?
12907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); }; } &&
12909	 { ac_try='test -s conftest$ac_exeext'
12910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911  (eval $ac_try) 2>&5
12912  ac_status=$?
12913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914  (exit $ac_status); }; }; then
12915  ac_cv_lib_dl_dlopen=yes
12916else
12917  echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920ac_cv_lib_dl_dlopen=no
12921fi
12922rm -f conftest.err conftest.$ac_objext \
12923      conftest$ac_exeext conftest.$ac_ext
12924LIBS=$ac_check_lib_save_LIBS
12925fi
12926echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12927echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12928if test $ac_cv_lib_dl_dlopen = yes; then
12929  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12930else
12931  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12932echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12933if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12934  echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936  ac_check_lib_save_LIBS=$LIBS
12937LIBS="-lsvld  $LIBS"
12938cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h.  */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h.  */
12944
12945/* Override any gcc2 internal prototype to avoid an error.  */
12946#ifdef __cplusplus
12947extern "C"
12948#endif
12949/* We use char because int might match the return type of a gcc2
12950   builtin and then its argument prototype would still apply.  */
12951char dlopen ();
12952int
12953main ()
12954{
12955dlopen ();
12956  ;
12957  return 0;
12958}
12959_ACEOF
12960rm -f conftest.$ac_objext conftest$ac_exeext
12961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12962  (eval $ac_link) 2>conftest.er1
12963  ac_status=$?
12964  grep -v '^ *+' conftest.er1 >conftest.err
12965  rm -f conftest.er1
12966  cat conftest.err >&5
12967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968  (exit $ac_status); } &&
12969	 { ac_try='test -z "$ac_cxx_werror_flag"
12970			 || test ! -s conftest.err'
12971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972  (eval $ac_try) 2>&5
12973  ac_status=$?
12974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975  (exit $ac_status); }; } &&
12976	 { ac_try='test -s conftest$ac_exeext'
12977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978  (eval $ac_try) 2>&5
12979  ac_status=$?
12980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981  (exit $ac_status); }; }; then
12982  ac_cv_lib_svld_dlopen=yes
12983else
12984  echo "$as_me: failed program was:" >&5
12985sed 's/^/| /' conftest.$ac_ext >&5
12986
12987ac_cv_lib_svld_dlopen=no
12988fi
12989rm -f conftest.err conftest.$ac_objext \
12990      conftest$ac_exeext conftest.$ac_ext
12991LIBS=$ac_check_lib_save_LIBS
12992fi
12993echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12994echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12995if test $ac_cv_lib_svld_dlopen = yes; then
12996  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12997else
12998  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12999echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13000if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13001  echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003  ac_check_lib_save_LIBS=$LIBS
13004LIBS="-ldld  $LIBS"
13005cat >conftest.$ac_ext <<_ACEOF
13006/* confdefs.h.  */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
13010/* end confdefs.h.  */
13011
13012/* Override any gcc2 internal prototype to avoid an error.  */
13013#ifdef __cplusplus
13014extern "C"
13015#endif
13016/* We use char because int might match the return type of a gcc2
13017   builtin and then its argument prototype would still apply.  */
13018char dld_link ();
13019int
13020main ()
13021{
13022dld_link ();
13023  ;
13024  return 0;
13025}
13026_ACEOF
13027rm -f conftest.$ac_objext conftest$ac_exeext
13028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029  (eval $ac_link) 2>conftest.er1
13030  ac_status=$?
13031  grep -v '^ *+' conftest.er1 >conftest.err
13032  rm -f conftest.er1
13033  cat conftest.err >&5
13034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035  (exit $ac_status); } &&
13036	 { ac_try='test -z "$ac_cxx_werror_flag"
13037			 || test ! -s conftest.err'
13038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039  (eval $ac_try) 2>&5
13040  ac_status=$?
13041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042  (exit $ac_status); }; } &&
13043	 { ac_try='test -s conftest$ac_exeext'
13044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045  (eval $ac_try) 2>&5
13046  ac_status=$?
13047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048  (exit $ac_status); }; }; then
13049  ac_cv_lib_dld_dld_link=yes
13050else
13051  echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
13053
13054ac_cv_lib_dld_dld_link=no
13055fi
13056rm -f conftest.err conftest.$ac_objext \
13057      conftest$ac_exeext conftest.$ac_ext
13058LIBS=$ac_check_lib_save_LIBS
13059fi
13060echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13061echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13062if test $ac_cv_lib_dld_dld_link = yes; then
13063  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13064fi
13065
13066
13067fi
13068
13069
13070fi
13071
13072
13073fi
13074
13075
13076fi
13077
13078
13079fi
13080
13081    ;;
13082  esac
13083
13084  if test "x$lt_cv_dlopen" != xno; then
13085    enable_dlopen=yes
13086  else
13087    enable_dlopen=no
13088  fi
13089
13090  case $lt_cv_dlopen in
13091  dlopen)
13092    save_CPPFLAGS="$CPPFLAGS"
13093    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13094
13095    save_LDFLAGS="$LDFLAGS"
13096    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13097
13098    save_LIBS="$LIBS"
13099    LIBS="$lt_cv_dlopen_libs $LIBS"
13100
13101    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13102echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13103if test "${lt_cv_dlopen_self+set}" = set; then
13104  echo $ECHO_N "(cached) $ECHO_C" >&6
13105else
13106  	  if test "$cross_compiling" = yes; then :
13107  lt_cv_dlopen_self=cross
13108else
13109  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13110  lt_status=$lt_dlunknown
13111  cat > conftest.$ac_ext <<EOF
13112#line 13112 "configure"
13113#include "confdefs.h"
13114
13115#if HAVE_DLFCN_H
13116#include <dlfcn.h>
13117#endif
13118
13119#include <stdio.h>
13120
13121#ifdef RTLD_GLOBAL
13122#  define LT_DLGLOBAL		RTLD_GLOBAL
13123#else
13124#  ifdef DL_GLOBAL
13125#    define LT_DLGLOBAL		DL_GLOBAL
13126#  else
13127#    define LT_DLGLOBAL		0
13128#  endif
13129#endif
13130
13131/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13132   find out it does not work in some platform. */
13133#ifndef LT_DLLAZY_OR_NOW
13134#  ifdef RTLD_LAZY
13135#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13136#  else
13137#    ifdef DL_LAZY
13138#      define LT_DLLAZY_OR_NOW		DL_LAZY
13139#    else
13140#      ifdef RTLD_NOW
13141#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13142#      else
13143#        ifdef DL_NOW
13144#          define LT_DLLAZY_OR_NOW	DL_NOW
13145#        else
13146#          define LT_DLLAZY_OR_NOW	0
13147#        endif
13148#      endif
13149#    endif
13150#  endif
13151#endif
13152
13153#ifdef __cplusplus
13154extern "C" void exit (int);
13155#endif
13156
13157void fnord() { int i=42;}
13158int main ()
13159{
13160  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13161  int status = $lt_dlunknown;
13162
13163  if (self)
13164    {
13165      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13166      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13167      /* dlclose (self); */
13168    }
13169
13170    exit (status);
13171}
13172EOF
13173  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174  (eval $ac_link) 2>&5
13175  ac_status=$?
13176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13178    (./conftest; exit; ) >&5 2>/dev/null
13179    lt_status=$?
13180    case x$lt_status in
13181      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13182      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13183      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13184    esac
13185  else :
13186    # compilation failed
13187    lt_cv_dlopen_self=no
13188  fi
13189fi
13190rm -fr conftest*
13191
13192
13193fi
13194echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13195echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13196
13197    if test "x$lt_cv_dlopen_self" = xyes; then
13198      LDFLAGS="$LDFLAGS $link_static_flag"
13199      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13200echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13201if test "${lt_cv_dlopen_self_static+set}" = set; then
13202  echo $ECHO_N "(cached) $ECHO_C" >&6
13203else
13204  	  if test "$cross_compiling" = yes; then :
13205  lt_cv_dlopen_self_static=cross
13206else
13207  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13208  lt_status=$lt_dlunknown
13209  cat > conftest.$ac_ext <<EOF
13210#line 13210 "configure"
13211#include "confdefs.h"
13212
13213#if HAVE_DLFCN_H
13214#include <dlfcn.h>
13215#endif
13216
13217#include <stdio.h>
13218
13219#ifdef RTLD_GLOBAL
13220#  define LT_DLGLOBAL		RTLD_GLOBAL
13221#else
13222#  ifdef DL_GLOBAL
13223#    define LT_DLGLOBAL		DL_GLOBAL
13224#  else
13225#    define LT_DLGLOBAL		0
13226#  endif
13227#endif
13228
13229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13230   find out it does not work in some platform. */
13231#ifndef LT_DLLAZY_OR_NOW
13232#  ifdef RTLD_LAZY
13233#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13234#  else
13235#    ifdef DL_LAZY
13236#      define LT_DLLAZY_OR_NOW		DL_LAZY
13237#    else
13238#      ifdef RTLD_NOW
13239#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13240#      else
13241#        ifdef DL_NOW
13242#          define LT_DLLAZY_OR_NOW	DL_NOW
13243#        else
13244#          define LT_DLLAZY_OR_NOW	0
13245#        endif
13246#      endif
13247#    endif
13248#  endif
13249#endif
13250
13251#ifdef __cplusplus
13252extern "C" void exit (int);
13253#endif
13254
13255void fnord() { int i=42;}
13256int main ()
13257{
13258  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13259  int status = $lt_dlunknown;
13260
13261  if (self)
13262    {
13263      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13264      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13265      /* dlclose (self); */
13266    }
13267
13268    exit (status);
13269}
13270EOF
13271  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272  (eval $ac_link) 2>&5
13273  ac_status=$?
13274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13276    (./conftest; exit; ) >&5 2>/dev/null
13277    lt_status=$?
13278    case x$lt_status in
13279      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13280      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13281      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13282    esac
13283  else :
13284    # compilation failed
13285    lt_cv_dlopen_self_static=no
13286  fi
13287fi
13288rm -fr conftest*
13289
13290
13291fi
13292echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13293echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13294    fi
13295
13296    CPPFLAGS="$save_CPPFLAGS"
13297    LDFLAGS="$save_LDFLAGS"
13298    LIBS="$save_LIBS"
13299    ;;
13300  esac
13301
13302  case $lt_cv_dlopen_self in
13303  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13304  *) enable_dlopen_self=unknown ;;
13305  esac
13306
13307  case $lt_cv_dlopen_self_static in
13308  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13309  *) enable_dlopen_self_static=unknown ;;
13310  esac
13311fi
13312
13313
13314# The else clause should only fire when bootstrapping the
13315# libtool distribution, otherwise you forgot to ship ltmain.sh
13316# with your package, and you will get complaints that there are
13317# no rules to generate ltmain.sh.
13318if test -f "$ltmain"; then
13319  # See if we are running on zsh, and set the options which allow our commands through
13320  # without removal of \ escapes.
13321  if test -n "${ZSH_VERSION+set}" ; then
13322    setopt NO_GLOB_SUBST
13323  fi
13324  # Now quote all the things that may contain metacharacters while being
13325  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13326  # variables and quote the copies for generation of the libtool script.
13327  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13328    SED SHELL STRIP \
13329    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13330    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13331    deplibs_check_method reload_flag reload_cmds need_locks \
13332    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13333    lt_cv_sys_global_symbol_to_c_name_address \
13334    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13335    old_postinstall_cmds old_postuninstall_cmds \
13336    compiler_CXX \
13337    CC_CXX \
13338    LD_CXX \
13339    lt_prog_compiler_wl_CXX \
13340    lt_prog_compiler_pic_CXX \
13341    lt_prog_compiler_static_CXX \
13342    lt_prog_compiler_no_builtin_flag_CXX \
13343    export_dynamic_flag_spec_CXX \
13344    thread_safe_flag_spec_CXX \
13345    whole_archive_flag_spec_CXX \
13346    enable_shared_with_static_runtimes_CXX \
13347    old_archive_cmds_CXX \
13348    old_archive_from_new_cmds_CXX \
13349    predep_objects_CXX \
13350    postdep_objects_CXX \
13351    predeps_CXX \
13352    postdeps_CXX \
13353    compiler_lib_search_path_CXX \
13354    archive_cmds_CXX \
13355    archive_expsym_cmds_CXX \
13356    postinstall_cmds_CXX \
13357    postuninstall_cmds_CXX \
13358    old_archive_from_expsyms_cmds_CXX \
13359    allow_undefined_flag_CXX \
13360    no_undefined_flag_CXX \
13361    export_symbols_cmds_CXX \
13362    hardcode_libdir_flag_spec_CXX \
13363    hardcode_libdir_flag_spec_ld_CXX \
13364    hardcode_libdir_separator_CXX \
13365    hardcode_automatic_CXX \
13366    module_cmds_CXX \
13367    module_expsym_cmds_CXX \
13368    lt_cv_prog_compiler_c_o_CXX \
13369    exclude_expsyms_CXX \
13370    include_expsyms_CXX; do
13371
13372    case $var in
13373    old_archive_cmds_CXX | \
13374    old_archive_from_new_cmds_CXX | \
13375    archive_cmds_CXX | \
13376    archive_expsym_cmds_CXX | \
13377    module_cmds_CXX | \
13378    module_expsym_cmds_CXX | \
13379    old_archive_from_expsyms_cmds_CXX | \
13380    export_symbols_cmds_CXX | \
13381    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13382    postinstall_cmds | postuninstall_cmds | \
13383    old_postinstall_cmds | old_postuninstall_cmds | \
13384    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13385      # Double-quote double-evaled strings.
13386      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13387      ;;
13388    *)
13389      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13390      ;;
13391    esac
13392  done
13393
13394  case $lt_echo in
13395  *'\$0 --fallback-echo"')
13396    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13397    ;;
13398  esac
13399
13400cfgfile="$ofile"
13401
13402  cat <<__EOF__ >> "$cfgfile"
13403# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13404
13405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13406
13407# Shell to use when invoking shell scripts.
13408SHELL=$lt_SHELL
13409
13410# Whether or not to build shared libraries.
13411build_libtool_libs=$enable_shared
13412
13413# Whether or not to build static libraries.
13414build_old_libs=$enable_static
13415
13416# Whether or not to add -lc for building shared libraries.
13417build_libtool_need_lc=$archive_cmds_need_lc_CXX
13418
13419# Whether or not to disallow shared libs when runtime libs are static
13420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13421
13422# Whether or not to optimize for fast installation.
13423fast_install=$enable_fast_install
13424
13425# The host system.
13426host_alias=$host_alias
13427host=$host
13428host_os=$host_os
13429
13430# The build system.
13431build_alias=$build_alias
13432build=$build
13433build_os=$build_os
13434
13435# An echo program that does not interpret backslashes.
13436echo=$lt_echo
13437
13438# The archiver.
13439AR=$lt_AR
13440AR_FLAGS=$lt_AR_FLAGS
13441
13442# A C compiler.
13443LTCC=$lt_LTCC
13444
13445# A language-specific compiler.
13446CC=$lt_compiler_CXX
13447
13448# Is the compiler the GNU C compiler?
13449with_gcc=$GCC_CXX
13450
13451# An ERE matcher.
13452EGREP=$lt_EGREP
13453
13454# The linker used to build libraries.
13455LD=$lt_LD_CXX
13456
13457# Whether we need hard or soft links.
13458LN_S=$lt_LN_S
13459
13460# A BSD-compatible nm program.
13461NM=$lt_NM
13462
13463# A symbol stripping program
13464STRIP=$lt_STRIP
13465
13466# Used to examine libraries when file_magic_cmd begins "file"
13467MAGIC_CMD=$MAGIC_CMD
13468
13469# Used on cygwin: DLL creation program.
13470DLLTOOL="$DLLTOOL"
13471
13472# Used on cygwin: object dumper.
13473OBJDUMP="$OBJDUMP"
13474
13475# Used on cygwin: assembler.
13476AS="$AS"
13477
13478# The name of the directory that contains temporary libtool files.
13479objdir=$objdir
13480
13481# How to create reloadable object files.
13482reload_flag=$lt_reload_flag
13483reload_cmds=$lt_reload_cmds
13484
13485# How to pass a linker flag through the compiler.
13486wl=$lt_lt_prog_compiler_wl_CXX
13487
13488# Object file suffix (normally "o").
13489objext="$ac_objext"
13490
13491# Old archive suffix (normally "a").
13492libext="$libext"
13493
13494# Shared library suffix (normally ".so").
13495shrext_cmds='$shrext_cmds'
13496
13497# Executable file suffix (normally "").
13498exeext="$exeext"
13499
13500# Additional compiler flags for building library objects.
13501pic_flag=$lt_lt_prog_compiler_pic_CXX
13502pic_mode=$pic_mode
13503
13504# What is the maximum length of a command?
13505max_cmd_len=$lt_cv_sys_max_cmd_len
13506
13507# Does compiler simultaneously support -c and -o options?
13508compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13509
13510# Must we lock files when doing compilation?
13511need_locks=$lt_need_locks
13512
13513# Do we need the lib prefix for modules?
13514need_lib_prefix=$need_lib_prefix
13515
13516# Do we need a version for libraries?
13517need_version=$need_version
13518
13519# Whether dlopen is supported.
13520dlopen_support=$enable_dlopen
13521
13522# Whether dlopen of programs is supported.
13523dlopen_self=$enable_dlopen_self
13524
13525# Whether dlopen of statically linked programs is supported.
13526dlopen_self_static=$enable_dlopen_self_static
13527
13528# Compiler flag to prevent dynamic linking.
13529link_static_flag=$lt_lt_prog_compiler_static_CXX
13530
13531# Compiler flag to turn off builtin functions.
13532no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13533
13534# Compiler flag to allow reflexive dlopens.
13535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13536
13537# Compiler flag to generate shared objects directly from archives.
13538whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13539
13540# Compiler flag to generate thread-safe objects.
13541thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13542
13543# Library versioning type.
13544version_type=$version_type
13545
13546# Format of library name prefix.
13547libname_spec=$lt_libname_spec
13548
13549# List of archive names.  First name is the real one, the rest are links.
13550# The last name is the one that the linker finds with -lNAME.
13551library_names_spec=$lt_library_names_spec
13552
13553# The coded name of the library, if different from the real name.
13554soname_spec=$lt_soname_spec
13555
13556# Commands used to build and install an old-style archive.
13557RANLIB=$lt_RANLIB
13558old_archive_cmds=$lt_old_archive_cmds_CXX
13559old_postinstall_cmds=$lt_old_postinstall_cmds
13560old_postuninstall_cmds=$lt_old_postuninstall_cmds
13561
13562# Create an old-style archive from a shared archive.
13563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13564
13565# Create a temporary old-style archive to link instead of a shared archive.
13566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13567
13568# Commands used to build and install a shared archive.
13569archive_cmds=$lt_archive_cmds_CXX
13570archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13571postinstall_cmds=$lt_postinstall_cmds
13572postuninstall_cmds=$lt_postuninstall_cmds
13573
13574# Commands used to build a loadable module (assumed same as above if empty)
13575module_cmds=$lt_module_cmds_CXX
13576module_expsym_cmds=$lt_module_expsym_cmds_CXX
13577
13578# Commands to strip libraries.
13579old_striplib=$lt_old_striplib
13580striplib=$lt_striplib
13581
13582# Dependencies to place before the objects being linked to create a
13583# shared library.
13584predep_objects=$lt_predep_objects_CXX
13585
13586# Dependencies to place after the objects being linked to create a
13587# shared library.
13588postdep_objects=$lt_postdep_objects_CXX
13589
13590# Dependencies to place before the objects being linked to create a
13591# shared library.
13592predeps=$lt_predeps_CXX
13593
13594# Dependencies to place after the objects being linked to create a
13595# shared library.
13596postdeps=$lt_postdeps_CXX
13597
13598# The library search path used internally by the compiler when linking
13599# a shared library.
13600compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13601
13602# Method to check whether dependent libraries are shared objects.
13603deplibs_check_method=$lt_deplibs_check_method
13604
13605# Command to use when deplibs_check_method == file_magic.
13606file_magic_cmd=$lt_file_magic_cmd
13607
13608# Flag that allows shared libraries with undefined symbols to be built.
13609allow_undefined_flag=$lt_allow_undefined_flag_CXX
13610
13611# Flag that forces no undefined symbols.
13612no_undefined_flag=$lt_no_undefined_flag_CXX
13613
13614# Commands used to finish a libtool library installation in a directory.
13615finish_cmds=$lt_finish_cmds
13616
13617# Same as above, but a single script fragment to be evaled but not shown.
13618finish_eval=$lt_finish_eval
13619
13620# Take the output of nm and produce a listing of raw symbols and C names.
13621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13622
13623# Transform the output of nm in a proper C declaration
13624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13625
13626# Transform the output of nm in a C name address pair
13627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13628
13629# This is the shared library runtime path variable.
13630runpath_var=$runpath_var
13631
13632# This is the shared library path variable.
13633shlibpath_var=$shlibpath_var
13634
13635# Is shlibpath searched before the hard-coded library search path?
13636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13637
13638# How to hardcode a shared library path into an executable.
13639hardcode_action=$hardcode_action_CXX
13640
13641# Whether we should hardcode library paths into libraries.
13642hardcode_into_libs=$hardcode_into_libs
13643
13644# Flag to hardcode \$libdir into a binary during linking.
13645# This must work even if \$libdir does not exist.
13646hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13647
13648# If ld is used when linking, flag to hardcode \$libdir into
13649# a binary during linking. This must work even if \$libdir does
13650# not exist.
13651hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13652
13653# Whether we need a single -rpath flag with a separated argument.
13654hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13655
13656# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13657# resulting binary.
13658hardcode_direct=$hardcode_direct_CXX
13659
13660# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13661# resulting binary.
13662hardcode_minus_L=$hardcode_minus_L_CXX
13663
13664# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13665# the resulting binary.
13666hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13667
13668# Set to yes if building a shared library automatically hardcodes DIR into the library
13669# and all subsequent libraries and executables linked against it.
13670hardcode_automatic=$hardcode_automatic_CXX
13671
13672# Variables whose values should be saved in libtool wrapper scripts and
13673# restored at relink time.
13674variables_saved_for_relink="$variables_saved_for_relink"
13675
13676# Whether libtool must link a program against all its dependency libraries.
13677link_all_deplibs=$link_all_deplibs_CXX
13678
13679# Compile-time system search path for libraries
13680sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13681
13682# Run-time system search path for libraries
13683sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13684
13685# Fix the shell variable \$srcfile for the compiler.
13686fix_srcfile_path="$fix_srcfile_path_CXX"
13687
13688# Set to yes if exported symbols are required.
13689always_export_symbols=$always_export_symbols_CXX
13690
13691# The commands to list exported symbols.
13692export_symbols_cmds=$lt_export_symbols_cmds_CXX
13693
13694# The commands to extract the exported symbol list from a shared archive.
13695extract_expsyms_cmds=$lt_extract_expsyms_cmds
13696
13697# Symbols that should not be listed in the preloaded symbols.
13698exclude_expsyms=$lt_exclude_expsyms_CXX
13699
13700# Symbols that must always be exported.
13701include_expsyms=$lt_include_expsyms_CXX
13702
13703# ### END LIBTOOL TAG CONFIG: $tagname
13704
13705__EOF__
13706
13707
13708else
13709  # If there is no Makefile yet, we rely on a make rule to execute
13710  # `config.status --recheck' to rerun these tests and create the
13711  # libtool script then.
13712  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13713  if test -f "$ltmain_in"; then
13714    test -f Makefile && make "$ltmain"
13715  fi
13716fi
13717
13718
13719ac_ext=c
13720ac_cpp='$CPP $CPPFLAGS'
13721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725CC=$lt_save_CC
13726LDCXX=$LD
13727LD=$lt_save_LD
13728GCC=$lt_save_GCC
13729with_gnu_ldcxx=$with_gnu_ld
13730with_gnu_ld=$lt_save_with_gnu_ld
13731lt_cv_path_LDCXX=$lt_cv_path_LD
13732lt_cv_path_LD=$lt_save_path_LD
13733lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13734lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13735
13736	else
13737	  tagname=""
13738	fi
13739	;;
13740
13741      F77)
13742	if test -n "$F77" && test "X$F77" != "Xno"; then
13743
13744ac_ext=f
13745ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13746ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13748
13749
13750archive_cmds_need_lc_F77=no
13751allow_undefined_flag_F77=
13752always_export_symbols_F77=no
13753archive_expsym_cmds_F77=
13754export_dynamic_flag_spec_F77=
13755hardcode_direct_F77=no
13756hardcode_libdir_flag_spec_F77=
13757hardcode_libdir_flag_spec_ld_F77=
13758hardcode_libdir_separator_F77=
13759hardcode_minus_L_F77=no
13760hardcode_automatic_F77=no
13761module_cmds_F77=
13762module_expsym_cmds_F77=
13763link_all_deplibs_F77=unknown
13764old_archive_cmds_F77=$old_archive_cmds
13765no_undefined_flag_F77=
13766whole_archive_flag_spec_F77=
13767enable_shared_with_static_runtimes_F77=no
13768
13769# Source file extension for f77 test sources.
13770ac_ext=f
13771
13772# Object file extension for compiled f77 test sources.
13773objext=o
13774objext_F77=$objext
13775
13776# Code to be used in simple compile tests
13777lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13778
13779# Code to be used in simple link tests
13780lt_simple_link_test_code="      program t\n      end\n"
13781
13782# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13783
13784# If no C compiler was specified, use CC.
13785LTCC=${LTCC-"$CC"}
13786
13787# Allow CC to be a program name with arguments.
13788compiler=$CC
13789
13790
13791# save warnings/boilerplate of simple test code
13792ac_outfile=conftest.$ac_objext
13793printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13794eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13795_lt_compiler_boilerplate=`cat conftest.err`
13796$rm conftest*
13797
13798ac_outfile=conftest.$ac_objext
13799printf "$lt_simple_link_test_code" >conftest.$ac_ext
13800eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13801_lt_linker_boilerplate=`cat conftest.err`
13802$rm conftest*
13803
13804
13805# Allow CC to be a program name with arguments.
13806lt_save_CC="$CC"
13807CC=${F77-"f77"}
13808compiler=$CC
13809compiler_F77=$CC
13810for cc_temp in $compiler""; do
13811  case $cc_temp in
13812    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13813    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13814    \-*) ;;
13815    *) break;;
13816  esac
13817done
13818cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13819
13820
13821echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13822echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13823echo "$as_me:$LINENO: result: $can_build_shared" >&5
13824echo "${ECHO_T}$can_build_shared" >&6
13825
13826echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13827echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13828test "$can_build_shared" = "no" && enable_shared=no
13829
13830# On AIX, shared libraries and static libraries use the same namespace, and
13831# are all built from PIC.
13832case $host_os in
13833aix3*)
13834  test "$enable_shared" = yes && enable_static=no
13835  if test -n "$RANLIB"; then
13836    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13837    postinstall_cmds='$RANLIB $lib'
13838  fi
13839  ;;
13840aix4* | aix5*)
13841  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13842    test "$enable_shared" = yes && enable_static=no
13843  fi
13844  ;;
13845esac
13846echo "$as_me:$LINENO: result: $enable_shared" >&5
13847echo "${ECHO_T}$enable_shared" >&6
13848
13849echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13850echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13851# Make sure either enable_shared or enable_static is yes.
13852test "$enable_shared" = yes || enable_static=yes
13853echo "$as_me:$LINENO: result: $enable_static" >&5
13854echo "${ECHO_T}$enable_static" >&6
13855
13856test "$ld_shlibs_F77" = no && can_build_shared=no
13857
13858GCC_F77="$G77"
13859LD_F77="$LD"
13860
13861lt_prog_compiler_wl_F77=
13862lt_prog_compiler_pic_F77=
13863lt_prog_compiler_static_F77=
13864
13865echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13866echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13867
13868  if test "$GCC" = yes; then
13869    lt_prog_compiler_wl_F77='-Wl,'
13870    lt_prog_compiler_static_F77='-static'
13871
13872    case $host_os in
13873      aix*)
13874      # All AIX code is PIC.
13875      if test "$host_cpu" = ia64; then
13876	# AIX 5 now supports IA64 processor
13877	lt_prog_compiler_static_F77='-Bstatic'
13878      fi
13879      ;;
13880
13881    amigaos*)
13882      # FIXME: we need at least 68020 code to build shared libraries, but
13883      # adding the `-m68020' flag to GCC prevents building anything better,
13884      # like `-m68040'.
13885      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13886      ;;
13887
13888    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
13889    | osf5*)
13890      # PIC is the default for these OSes.
13891      ;;
13892
13893    mingw* | pw32* | os2*)
13894      # This hack is so that the source file can tell whether it is being
13895      # built for inclusion in a dll (and should export symbols for example).
13896      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13897      ;;
13898
13899    darwin* | rhapsody*)
13900      # PIC is the default on this platform
13901      # Common symbols not allowed in MH_DYLIB files
13902      lt_prog_compiler_pic_F77='-fno-common'
13903      ;;
13904
13905    msdosdjgpp*)
13906      # Just because we use GCC doesn't mean we suddenly get shared libraries
13907      # on systems that don't support them.
13908      lt_prog_compiler_can_build_shared_F77=no
13909      enable_shared=no
13910      ;;
13911
13912    sysv4*MP*)
13913      if test -d /usr/nec; then
13914	lt_prog_compiler_pic_F77=-Kconform_pic
13915      fi
13916      ;;
13917
13918    hpux*)
13919      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13920      # not for PA HP-UX.
13921      case $host_cpu in
13922      hppa*64*|ia64*)
13923	# +Z the default
13924	;;
13925      *)
13926	lt_prog_compiler_pic_F77='-fPIC'
13927	;;
13928      esac
13929      ;;
13930
13931    *)
13932      lt_prog_compiler_pic_F77='-fPIC'
13933      ;;
13934    esac
13935  else
13936    # PORTME Check for flag to pass linker flags through the system compiler.
13937    case $host_os in
13938    aix*)
13939      lt_prog_compiler_wl_F77='-Wl,'
13940      if test "$host_cpu" = ia64; then
13941	# AIX 5 now supports IA64 processor
13942	lt_prog_compiler_static_F77='-Bstatic'
13943      else
13944	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13945      fi
13946      ;;
13947      darwin*)
13948        # PIC is the default on this platform
13949        # Common symbols not allowed in MH_DYLIB files
13950       case $cc_basename in
13951         xlc*)
13952         lt_prog_compiler_pic_F77='-qnocommon'
13953         lt_prog_compiler_wl_F77='-Wl,'
13954         ;;
13955       esac
13956       ;;
13957
13958    mingw* | pw32* | os2*)
13959      # This hack is so that the source file can tell whether it is being
13960      # built for inclusion in a dll (and should export symbols for example).
13961      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13962      ;;
13963
13964    hpux9* | hpux10* | hpux11*)
13965      lt_prog_compiler_wl_F77='-Wl,'
13966      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13967      # not for PA HP-UX.
13968      case $host_cpu in
13969      hppa*64*|ia64*)
13970	# +Z the default
13971	;;
13972      *)
13973	lt_prog_compiler_pic_F77='+Z'
13974	;;
13975      esac
13976      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13977      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13978      ;;
13979
13980    irix5* | irix6* | nonstopux*)
13981      lt_prog_compiler_wl_F77='-Wl,'
13982      # PIC (with -KPIC) is the default.
13983      lt_prog_compiler_static_F77='-non_shared'
13984      ;;
13985
13986    newsos6)
13987      lt_prog_compiler_pic_F77='-KPIC'
13988      lt_prog_compiler_static_F77='-Bstatic'
13989      ;;
13990
13991    linux*)
13992      case $cc_basename in
13993      icc* | ecc*)
13994	lt_prog_compiler_wl_F77='-Wl,'
13995	lt_prog_compiler_pic_F77='-KPIC'
13996	lt_prog_compiler_static_F77='-static'
13997        ;;
13998      pgcc* | pgf77* | pgf90* | pgf95*)
13999        # Portland Group compilers (*not* the Pentium gcc compiler,
14000	# which looks to be a dead project)
14001	lt_prog_compiler_wl_F77='-Wl,'
14002	lt_prog_compiler_pic_F77='-fpic'
14003	lt_prog_compiler_static_F77='-Bstatic'
14004        ;;
14005      ccc*)
14006        lt_prog_compiler_wl_F77='-Wl,'
14007        # All Alpha code is PIC.
14008        lt_prog_compiler_static_F77='-non_shared'
14009        ;;
14010      esac
14011      ;;
14012
14013    osf3* | osf4* | osf5*)
14014      lt_prog_compiler_wl_F77='-Wl,'
14015      # All OSF/1 code is PIC.
14016      lt_prog_compiler_static_F77='-non_shared'
14017      ;;
14018
14019    sco3.2v5*)
14020      lt_prog_compiler_pic_F77='-Kpic'
14021      lt_prog_compiler_static_F77='-dn'
14022      ;;
14023
14024    solaris*)
14025      lt_prog_compiler_pic_F77='-KPIC'
14026      lt_prog_compiler_static_F77='-Bstatic'
14027      case $cc_basename in
14028      f77* | f90* | f95*)
14029	lt_prog_compiler_wl_F77='-Qoption ld ';;
14030      *)
14031	lt_prog_compiler_wl_F77='-Wl,';;
14032      esac
14033      ;;
14034
14035    sunos4*)
14036      lt_prog_compiler_wl_F77='-Qoption ld '
14037      lt_prog_compiler_pic_F77='-PIC'
14038      lt_prog_compiler_static_F77='-Bstatic'
14039      ;;
14040
14041    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14042      lt_prog_compiler_wl_F77='-Wl,'
14043      lt_prog_compiler_pic_F77='-KPIC'
14044      lt_prog_compiler_static_F77='-Bstatic'
14045      ;;
14046
14047    sysv4*MP*)
14048      if test -d /usr/nec ;then
14049	lt_prog_compiler_pic_F77='-Kconform_pic'
14050	lt_prog_compiler_static_F77='-Bstatic'
14051      fi
14052      ;;
14053
14054    unicos*)
14055      lt_prog_compiler_wl_F77='-Wl,'
14056      lt_prog_compiler_can_build_shared_F77=no
14057      ;;
14058
14059    uts4*)
14060      lt_prog_compiler_pic_F77='-pic'
14061      lt_prog_compiler_static_F77='-Bstatic'
14062      ;;
14063
14064    *)
14065      lt_prog_compiler_can_build_shared_F77=no
14066      ;;
14067    esac
14068  fi
14069
14070echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14071echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14072
14073#
14074# Check to make sure the PIC flag actually works.
14075#
14076if test -n "$lt_prog_compiler_pic_F77"; then
14077
14078echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14079echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14080if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14081  echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083  lt_prog_compiler_pic_works_F77=no
14084  ac_outfile=conftest.$ac_objext
14085   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14086   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14087   # Insert the option either (1) after the last *FLAGS variable, or
14088   # (2) before a word containing "conftest.", or (3) at the end.
14089   # Note that $ac_compile itself does not contain backslashes and begins
14090   # with a dollar sign (not a hyphen), so the echo should work correctly.
14091   # The option is referenced via a variable to avoid confusing sed.
14092   lt_compile=`echo "$ac_compile" | $SED \
14093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095   -e 's:$: $lt_compiler_flag:'`
14096   (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14097   (eval "$lt_compile" 2>conftest.err)
14098   ac_status=$?
14099   cat conftest.err >&5
14100   echo "$as_me:14100: \$? = $ac_status" >&5
14101   if (exit $ac_status) && test -s "$ac_outfile"; then
14102     # The compiler can only warn and ignore the option if not recognized
14103     # So say no if there are warnings other than the usual output.
14104     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14105     $SED '/^$/d' conftest.err >conftest.er2
14106     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14107       lt_prog_compiler_pic_works_F77=yes
14108     fi
14109   fi
14110   $rm conftest*
14111
14112fi
14113echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14114echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14115
14116if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14117    case $lt_prog_compiler_pic_F77 in
14118     "" | " "*) ;;
14119     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14120     esac
14121else
14122    lt_prog_compiler_pic_F77=
14123     lt_prog_compiler_can_build_shared_F77=no
14124fi
14125
14126fi
14127case $host_os in
14128  # For platforms which do not support PIC, -DPIC is meaningless:
14129  *djgpp*)
14130    lt_prog_compiler_pic_F77=
14131    ;;
14132  *)
14133    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14134    ;;
14135esac
14136
14137echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14138echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14139if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14140  echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142  lt_cv_prog_compiler_c_o_F77=no
14143   $rm -r conftest 2>/dev/null
14144   mkdir conftest
14145   cd conftest
14146   mkdir out
14147   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14148
14149   lt_compiler_flag="-o out/conftest2.$ac_objext"
14150   # Insert the option either (1) after the last *FLAGS variable, or
14151   # (2) before a word containing "conftest.", or (3) at the end.
14152   # Note that $ac_compile itself does not contain backslashes and begins
14153   # with a dollar sign (not a hyphen), so the echo should work correctly.
14154   lt_compile=`echo "$ac_compile" | $SED \
14155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157   -e 's:$: $lt_compiler_flag:'`
14158   (eval echo "\"\$as_me:14158: $lt_compile\"" >&5)
14159   (eval "$lt_compile" 2>out/conftest.err)
14160   ac_status=$?
14161   cat out/conftest.err >&5
14162   echo "$as_me:14162: \$? = $ac_status" >&5
14163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14164   then
14165     # The compiler can only warn and ignore the option if not recognized
14166     # So say no if there are warnings
14167     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14168     $SED '/^$/d' out/conftest.err >out/conftest.er2
14169     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14170       lt_cv_prog_compiler_c_o_F77=yes
14171     fi
14172   fi
14173   chmod u+w . 2>&5
14174   $rm conftest*
14175   # SGI C++ compiler will create directory out/ii_files/ for
14176   # template instantiation
14177   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14178   $rm out/* && rmdir out
14179   cd ..
14180   rmdir conftest
14181   $rm conftest*
14182
14183fi
14184echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14185echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14186
14187
14188hard_links="nottested"
14189if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14190  # do not overwrite the value of need_locks provided by the user
14191  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14192echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14193  hard_links=yes
14194  $rm conftest*
14195  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14196  touch conftest.a
14197  ln conftest.a conftest.b 2>&5 || hard_links=no
14198  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14199  echo "$as_me:$LINENO: result: $hard_links" >&5
14200echo "${ECHO_T}$hard_links" >&6
14201  if test "$hard_links" = no; then
14202    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14203echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14204    need_locks=warn
14205  fi
14206else
14207  need_locks=no
14208fi
14209
14210echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14211echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14212
14213  runpath_var=
14214  allow_undefined_flag_F77=
14215  enable_shared_with_static_runtimes_F77=no
14216  archive_cmds_F77=
14217  archive_expsym_cmds_F77=
14218  old_archive_From_new_cmds_F77=
14219  old_archive_from_expsyms_cmds_F77=
14220  export_dynamic_flag_spec_F77=
14221  whole_archive_flag_spec_F77=
14222  thread_safe_flag_spec_F77=
14223  hardcode_libdir_flag_spec_F77=
14224  hardcode_libdir_flag_spec_ld_F77=
14225  hardcode_libdir_separator_F77=
14226  hardcode_direct_F77=no
14227  hardcode_minus_L_F77=no
14228  hardcode_shlibpath_var_F77=unsupported
14229  link_all_deplibs_F77=unknown
14230  hardcode_automatic_F77=no
14231  module_cmds_F77=
14232  module_expsym_cmds_F77=
14233  always_export_symbols_F77=no
14234  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14235  # include_expsyms should be a list of space-separated symbols to be *always*
14236  # included in the symbol list
14237  include_expsyms_F77=
14238  # exclude_expsyms can be an extended regexp of symbols to exclude
14239  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14240  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14241  # as well as any symbol that contains `d'.
14242  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14243  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14244  # platforms (ab)use it in PIC code, but their linkers get confused if
14245  # the symbol is explicitly referenced.  Since portable code cannot
14246  # rely on this symbol name, it's probably fine to never include it in
14247  # preloaded symbol tables.
14248  extract_expsyms_cmds=
14249  # Just being paranoid about ensuring that cc_basename is set.
14250  for cc_temp in $compiler""; do
14251  case $cc_temp in
14252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14254    \-*) ;;
14255    *) break;;
14256  esac
14257done
14258cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14259
14260  case $host_os in
14261  cygwin* | mingw* | pw32*)
14262    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14263    # When not using gcc, we currently assume that we are using
14264    # Microsoft Visual C++.
14265    if test "$GCC" != yes; then
14266      with_gnu_ld=no
14267    fi
14268    ;;
14269  openbsd*)
14270    with_gnu_ld=no
14271    ;;
14272  esac
14273
14274  ld_shlibs_F77=yes
14275  if test "$with_gnu_ld" = yes; then
14276    # If archive_cmds runs LD, not CC, wlarc should be empty
14277    wlarc='${wl}'
14278
14279    # Set some defaults for GNU ld with shared library support. These
14280    # are reset later if shared libraries are not supported. Putting them
14281    # here allows them to be overridden if necessary.
14282    runpath_var=LD_RUN_PATH
14283    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14284    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14285    # ancient GNU ld didn't support --whole-archive et. al.
14286    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14287	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14288      else
14289  	whole_archive_flag_spec_F77=
14290    fi
14291    supports_anon_versioning=no
14292    case `$LD -v 2>/dev/null` in
14293      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14294      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14295      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14296      *\ 2.11.*) ;; # other 2.11 versions
14297      *) supports_anon_versioning=yes ;;
14298    esac
14299
14300    # See if GNU ld supports shared libraries.
14301    case $host_os in
14302    aix3* | aix4* | aix5*)
14303      # On AIX/PPC, the GNU linker is very broken
14304      if test "$host_cpu" != ia64; then
14305	ld_shlibs_F77=no
14306	cat <<EOF 1>&2
14307
14308*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14309*** to be unable to reliably create shared libraries on AIX.
14310*** Therefore, libtool is disabling shared libraries support.  If you
14311*** really care for shared libraries, you may want to modify your PATH
14312*** so that a non-GNU linker is found, and then restart.
14313
14314EOF
14315      fi
14316      ;;
14317
14318    amigaos*)
14319      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)'
14320      hardcode_libdir_flag_spec_F77='-L$libdir'
14321      hardcode_minus_L_F77=yes
14322
14323      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14324      # that the semantics of dynamic libraries on AmigaOS, at least up
14325      # to version 4, is to share data among multiple programs linked
14326      # with the same dynamic library.  Since this doesn't match the
14327      # behavior of shared libraries on other platforms, we can't use
14328      # them.
14329      ld_shlibs_F77=no
14330      ;;
14331
14332    beos*)
14333      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14334	allow_undefined_flag_F77=unsupported
14335	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14336	# support --undefined.  This deserves some investigation.  FIXME
14337	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338      else
14339	ld_shlibs_F77=no
14340      fi
14341      ;;
14342
14343    cygwin* | mingw* | pw32*)
14344      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14345      # as there is no search path for DLLs.
14346      hardcode_libdir_flag_spec_F77='-L$libdir'
14347      allow_undefined_flag_F77=unsupported
14348      always_export_symbols_F77=no
14349      enable_shared_with_static_runtimes_F77=yes
14350      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14351
14352      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14353        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14354	# If the export-symbols file already is a .def file (1st line
14355	# is EXPORTS), use it as is; otherwise, prepend...
14356	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14357	  cp $export_symbols $output_objdir/$soname.def;
14358	else
14359	  echo EXPORTS > $output_objdir/$soname.def;
14360	  cat $export_symbols >> $output_objdir/$soname.def;
14361	fi~
14362	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14363      else
14364	ld_shlibs_F77=no
14365      fi
14366      ;;
14367
14368    haiku*)
14369      allow_undefined_flag_F77=unsupported
14370      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14371      ;;
14372
14373    linux*)
14374      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14375	tmp_addflag=
14376	case $cc_basename,$host_cpu in
14377	pgcc*)				# Portland Group C compiler
14378	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14379	  tmp_addflag=' $pic_flag'
14380	  ;;
14381	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14382	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14383	  tmp_addflag=' $pic_flag -Mnomain' ;;
14384	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14385	  tmp_addflag=' -i_dynamic' ;;
14386	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14387	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14388	ifc* | ifort*)			# Intel Fortran compiler
14389	  tmp_addflag=' -nofor_main' ;;
14390	esac
14391	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392
14393	if test $supports_anon_versioning = yes; then
14394	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14395  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14396  $echo "local: *; };" >> $output_objdir/$libname.ver~
14397	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14398	fi
14399      else
14400	ld_shlibs_F77=no
14401      fi
14402      ;;
14403
14404    netbsd*)
14405      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14406	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14407	wlarc=
14408      else
14409	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14411      fi
14412      ;;
14413
14414    solaris* | sysv5*)
14415      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14416	ld_shlibs_F77=no
14417	cat <<EOF 1>&2
14418
14419*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14420*** create shared libraries on Solaris systems.  Therefore, libtool
14421*** is disabling shared libraries support.  We urge you to upgrade GNU
14422*** binutils to release 2.9.1 or newer.  Another option is to modify
14423*** your PATH or compiler configuration so that the native linker is
14424*** used, and then restart.
14425
14426EOF
14427      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14428	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430      else
14431	ld_shlibs_F77=no
14432      fi
14433      ;;
14434
14435    sunos4*)
14436      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14437      wlarc=
14438      hardcode_direct_F77=yes
14439      hardcode_shlibpath_var_F77=no
14440      ;;
14441
14442    *)
14443      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14444	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14446      else
14447	ld_shlibs_F77=no
14448      fi
14449      ;;
14450    esac
14451
14452    if test "$ld_shlibs_F77" = no; then
14453      runpath_var=
14454      hardcode_libdir_flag_spec_F77=
14455      export_dynamic_flag_spec_F77=
14456      whole_archive_flag_spec_F77=
14457    fi
14458  else
14459    # PORTME fill in a description of your system's linker (not GNU ld)
14460    case $host_os in
14461    aix3*)
14462      allow_undefined_flag_F77=unsupported
14463      always_export_symbols_F77=yes
14464      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'
14465      # Note: this linker hardcodes the directories in LIBPATH if there
14466      # are no directories specified by -L.
14467      hardcode_minus_L_F77=yes
14468      if test "$GCC" = yes && test -z "$link_static_flag"; then
14469	# Neither direct hardcoding nor static linking is supported with a
14470	# broken collect2.
14471	hardcode_direct_F77=unsupported
14472      fi
14473      ;;
14474
14475    aix4* | aix5*)
14476      if test "$host_cpu" = ia64; then
14477	# On IA64, the linker does run time linking by default, so we don't
14478	# have to do anything special.
14479	aix_use_runtimelinking=no
14480	exp_sym_flag='-Bexport'
14481	no_entry_flag=""
14482      else
14483	# If we're using GNU nm, then we don't want the "-C" option.
14484	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14485	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14486	  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'
14487	else
14488	  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'
14489	fi
14490	aix_use_runtimelinking=no
14491
14492	# Test if we are trying to use run time linking or normal
14493	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14494	# need to do runtime linking.
14495	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14496	  for ld_flag in $LDFLAGS; do
14497  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14498  	    aix_use_runtimelinking=yes
14499  	    break
14500  	  fi
14501	  done
14502	esac
14503
14504	exp_sym_flag='-bexport'
14505	no_entry_flag='-bnoentry'
14506      fi
14507
14508      # When large executables or shared objects are built, AIX ld can
14509      # have problems creating the table of contents.  If linking a library
14510      # or program results in "error TOC overflow" add -mminimal-toc to
14511      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14512      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14513
14514      archive_cmds_F77=''
14515      hardcode_direct_F77=yes
14516      hardcode_libdir_separator_F77=':'
14517      link_all_deplibs_F77=yes
14518
14519      if test "$GCC" = yes; then
14520	case $host_os in aix4.[012]|aix4.[012].*)
14521	# We only want to do this on AIX 4.2 and lower, the check
14522	# below for broken collect2 doesn't work under 4.3+
14523	  collect2name=`${CC} -print-prog-name=collect2`
14524	  if test -f "$collect2name" && \
14525  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14526	  then
14527  	  # We have reworked collect2
14528  	  hardcode_direct_F77=yes
14529	  else
14530  	  # We have old collect2
14531  	  hardcode_direct_F77=unsupported
14532  	  # It fails to find uninstalled libraries when the uninstalled
14533  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14534  	  # to unsupported forces relinking
14535  	  hardcode_minus_L_F77=yes
14536  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14537  	  hardcode_libdir_separator_F77=
14538	  fi
14539	esac
14540	shared_flag='-shared'
14541	if test "$aix_use_runtimelinking" = yes; then
14542	  shared_flag="$shared_flag "'${wl}-G'
14543	fi
14544      else
14545	# not using gcc
14546	if test "$host_cpu" = ia64; then
14547  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14548  	# chokes on -Wl,-G. The following line is correct:
14549	  shared_flag='-G'
14550	else
14551  	if test "$aix_use_runtimelinking" = yes; then
14552	    shared_flag='${wl}-G'
14553	  else
14554	    shared_flag='${wl}-bM:SRE'
14555  	fi
14556	fi
14557      fi
14558
14559      # It seems that -bexpall does not export symbols beginning with
14560      # underscore (_), so it is better to generate a list of symbols to export.
14561      always_export_symbols_F77=yes
14562      if test "$aix_use_runtimelinking" = yes; then
14563	# Warning - without using the other runtime loading flags (-brtl),
14564	# -berok will link without error, but may produce a broken library.
14565	allow_undefined_flag_F77='-berok'
14566       # Determine the default libpath from the value encoded in an empty executable.
14567       cat >conftest.$ac_ext <<_ACEOF
14568      program main
14569
14570      end
14571_ACEOF
14572rm -f conftest.$ac_objext conftest$ac_exeext
14573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574  (eval $ac_link) 2>conftest.er1
14575  ac_status=$?
14576  grep -v '^ *+' conftest.er1 >conftest.err
14577  rm -f conftest.er1
14578  cat conftest.err >&5
14579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580  (exit $ac_status); } &&
14581	 { ac_try='test -z "$ac_f77_werror_flag"
14582			 || test ! -s conftest.err'
14583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584  (eval $ac_try) 2>&5
14585  ac_status=$?
14586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587  (exit $ac_status); }; } &&
14588	 { ac_try='test -s conftest$ac_exeext'
14589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590  (eval $ac_try) 2>&5
14591  ac_status=$?
14592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593  (exit $ac_status); }; }; then
14594
14595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14596}'`
14597# Check for a 64-bit object if we didn't find anything.
14598if 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; }
14599}'`; fi
14600else
14601  echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604fi
14605rm -f conftest.err conftest.$ac_objext \
14606      conftest$ac_exeext conftest.$ac_ext
14607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14608
14609       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14610	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"
14611       else
14612	if test "$host_cpu" = ia64; then
14613	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14614	  allow_undefined_flag_F77="-z nodefs"
14615	  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"
14616	else
14617	 # Determine the default libpath from the value encoded in an empty executable.
14618	 cat >conftest.$ac_ext <<_ACEOF
14619      program main
14620
14621      end
14622_ACEOF
14623rm -f conftest.$ac_objext conftest$ac_exeext
14624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625  (eval $ac_link) 2>conftest.er1
14626  ac_status=$?
14627  grep -v '^ *+' conftest.er1 >conftest.err
14628  rm -f conftest.er1
14629  cat conftest.err >&5
14630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631  (exit $ac_status); } &&
14632	 { ac_try='test -z "$ac_f77_werror_flag"
14633			 || test ! -s conftest.err'
14634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635  (eval $ac_try) 2>&5
14636  ac_status=$?
14637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638  (exit $ac_status); }; } &&
14639	 { ac_try='test -s conftest$ac_exeext'
14640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641  (eval $ac_try) 2>&5
14642  ac_status=$?
14643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644  (exit $ac_status); }; }; then
14645
14646aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14647}'`
14648# Check for a 64-bit object if we didn't find anything.
14649if 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; }
14650}'`; fi
14651else
14652  echo "$as_me: failed program was:" >&5
14653sed 's/^/| /' conftest.$ac_ext >&5
14654
14655fi
14656rm -f conftest.err conftest.$ac_objext \
14657      conftest$ac_exeext conftest.$ac_ext
14658if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14659
14660	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14661	  # Warning - without using the other run time loading flags,
14662	  # -berok will link without error, but may produce a broken library.
14663	  no_undefined_flag_F77=' ${wl}-bernotok'
14664	  allow_undefined_flag_F77=' ${wl}-berok'
14665	  # -bexpall does not export symbols beginning with underscore (_)
14666	  always_export_symbols_F77=yes
14667	  # Exported symbols can be pulled into shared objects from archives
14668	  whole_archive_flag_spec_F77=' '
14669	  archive_cmds_need_lc_F77=yes
14670	  # This is similar to how AIX traditionally builds its shared libraries.
14671	  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'
14672	fi
14673      fi
14674      ;;
14675
14676    amigaos*)
14677      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)'
14678      hardcode_libdir_flag_spec_F77='-L$libdir'
14679      hardcode_minus_L_F77=yes
14680      # see comment about different semantics on the GNU ld section
14681      ld_shlibs_F77=no
14682      ;;
14683
14684    bsdi[45]*)
14685      export_dynamic_flag_spec_F77=-rdynamic
14686      ;;
14687
14688    cygwin* | mingw* | pw32*)
14689      # When not using gcc, we currently assume that we are using
14690      # Microsoft Visual C++.
14691      # hardcode_libdir_flag_spec is actually meaningless, as there is
14692      # no search path for DLLs.
14693      hardcode_libdir_flag_spec_F77=' '
14694      allow_undefined_flag_F77=unsupported
14695      # Tell ltmain to make .lib files, not .a files.
14696      libext=lib
14697      # Tell ltmain to make .dll files, not .so files.
14698      shrext_cmds=".dll"
14699      # FIXME: Setting linknames here is a bad hack.
14700      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14701      # The linker will automatically build a .lib file if we build a DLL.
14702      old_archive_From_new_cmds_F77='true'
14703      # FIXME: Should let the user specify the lib program.
14704      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14705      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14706      enable_shared_with_static_runtimes_F77=yes
14707      ;;
14708
14709    darwin* | rhapsody*)
14710      case $host_os in
14711        rhapsody* | darwin1.[012])
14712         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14713         ;;
14714       *) # Darwin 1.3 on
14715         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14716           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14717         else
14718           case ${MACOSX_DEPLOYMENT_TARGET} in
14719             10.[012])
14720               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14721               ;;
14722             10.*)
14723               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14724               ;;
14725           esac
14726         fi
14727         ;;
14728      esac
14729      archive_cmds_need_lc_F77=no
14730      hardcode_direct_F77=no
14731      hardcode_automatic_F77=yes
14732      hardcode_shlibpath_var_F77=unsupported
14733      whole_archive_flag_spec_F77=''
14734      link_all_deplibs_F77=yes
14735    if test "$GCC" = yes ; then
14736    	output_verbose_link_cmd='echo'
14737        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14738      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14739      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14740      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14741      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}'
14742    else
14743      case $cc_basename in
14744        xlc*)
14745         output_verbose_link_cmd='echo'
14746         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14747         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14748          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14749         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14750          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}'
14751          ;;
14752       *)
14753         ld_shlibs_F77=no
14754          ;;
14755      esac
14756    fi
14757      ;;
14758
14759    dgux*)
14760      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761      hardcode_libdir_flag_spec_F77='-L$libdir'
14762      hardcode_shlibpath_var_F77=no
14763      ;;
14764
14765    freebsd1*)
14766      ld_shlibs_F77=no
14767      ;;
14768
14769    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770    # support.  Future versions do this automatically, but an explicit c++rt0.o
14771    # does not break anything, and helps significantly (at the cost of a little
14772    # extra space).
14773    freebsd2.2*)
14774      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775      hardcode_libdir_flag_spec_F77='-R$libdir'
14776      hardcode_direct_F77=yes
14777      hardcode_shlibpath_var_F77=no
14778      ;;
14779
14780    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14781    freebsd2*)
14782      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783      hardcode_direct_F77=yes
14784      hardcode_minus_L_F77=yes
14785      hardcode_shlibpath_var_F77=no
14786      ;;
14787
14788    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789    freebsd* | kfreebsd*-gnu | dragonfly*)
14790      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791      hardcode_libdir_flag_spec_F77='-R$libdir'
14792      hardcode_direct_F77=yes
14793      hardcode_shlibpath_var_F77=no
14794      ;;
14795
14796    hpux9*)
14797      if test "$GCC" = yes; then
14798	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'
14799      else
14800	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'
14801      fi
14802      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14803      hardcode_libdir_separator_F77=:
14804      hardcode_direct_F77=yes
14805
14806      # hardcode_minus_L: Not really in the search PATH,
14807      # but as the default location of the library.
14808      hardcode_minus_L_F77=yes
14809      export_dynamic_flag_spec_F77='${wl}-E'
14810      ;;
14811
14812    hpux10* | hpux11*)
14813      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14814	case $host_cpu in
14815	hppa*64*|ia64*)
14816	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14817	  ;;
14818	*)
14819	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14820	  ;;
14821	esac
14822      else
14823	case $host_cpu in
14824	hppa*64*|ia64*)
14825	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14826	  ;;
14827	*)
14828	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14829	  ;;
14830	esac
14831      fi
14832      if test "$with_gnu_ld" = no; then
14833	case $host_cpu in
14834	hppa*64*)
14835	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14836	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14837	  hardcode_libdir_separator_F77=:
14838	  hardcode_direct_F77=no
14839	  hardcode_shlibpath_var_F77=no
14840	  ;;
14841	ia64*)
14842	  hardcode_libdir_flag_spec_F77='-L$libdir'
14843	  hardcode_direct_F77=no
14844	  hardcode_shlibpath_var_F77=no
14845
14846	  # hardcode_minus_L: Not really in the search PATH,
14847	  # but as the default location of the library.
14848	  hardcode_minus_L_F77=yes
14849	  ;;
14850	*)
14851	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14852	  hardcode_libdir_separator_F77=:
14853	  hardcode_direct_F77=yes
14854	  export_dynamic_flag_spec_F77='${wl}-E'
14855
14856	  # hardcode_minus_L: Not really in the search PATH,
14857	  # but as the default location of the library.
14858	  hardcode_minus_L_F77=yes
14859	  ;;
14860	esac
14861      fi
14862      ;;
14863
14864    irix5* | irix6* | nonstopux*)
14865      if test "$GCC" = yes; then
14866	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'
14867      else
14868	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'
14869	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14870      fi
14871      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14872      hardcode_libdir_separator_F77=:
14873      link_all_deplibs_F77=yes
14874      ;;
14875
14876    netbsd*)
14877      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14878	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14879      else
14880	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14881      fi
14882      hardcode_libdir_flag_spec_F77='-R$libdir'
14883      hardcode_direct_F77=yes
14884      hardcode_shlibpath_var_F77=no
14885      ;;
14886
14887    newsos6)
14888      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889      hardcode_direct_F77=yes
14890      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14891      hardcode_libdir_separator_F77=:
14892      hardcode_shlibpath_var_F77=no
14893      ;;
14894
14895    openbsd*)
14896      hardcode_direct_F77=yes
14897      hardcode_shlibpath_var_F77=no
14898      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14900	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14901	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14902	export_dynamic_flag_spec_F77='${wl}-E'
14903      else
14904       case $host_os in
14905	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14906	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14907	   hardcode_libdir_flag_spec_F77='-R$libdir'
14908	   ;;
14909	 *)
14910	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14911	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14912	   ;;
14913       esac
14914      fi
14915      ;;
14916
14917    os2*)
14918      hardcode_libdir_flag_spec_F77='-L$libdir'
14919      hardcode_minus_L_F77=yes
14920      allow_undefined_flag_F77=unsupported
14921      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'
14922      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14923      ;;
14924
14925    osf3*)
14926      if test "$GCC" = yes; then
14927	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14928	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'
14929      else
14930	allow_undefined_flag_F77=' -expect_unresolved \*'
14931	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'
14932      fi
14933      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14934      hardcode_libdir_separator_F77=:
14935      ;;
14936
14937    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14938      if test "$GCC" = yes; then
14939	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14940	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'
14941	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14942      else
14943	allow_undefined_flag_F77=' -expect_unresolved \*'
14944	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'
14945	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~
14946	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14947
14948	# Both c and cxx compiler support -rpath directly
14949	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14950      fi
14951      hardcode_libdir_separator_F77=:
14952      ;;
14953
14954    sco3.2v5*)
14955      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14956      hardcode_shlibpath_var_F77=no
14957      export_dynamic_flag_spec_F77='${wl}-Bexport'
14958      runpath_var=LD_RUN_PATH
14959      hardcode_runpath_var=yes
14960      ;;
14961
14962    solaris*)
14963      no_undefined_flag_F77=' -z text'
14964      if test "$GCC" = yes; then
14965	wlarc='${wl}'
14966	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14968	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14969      else
14970	wlarc=''
14971	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14973  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14974      fi
14975      hardcode_libdir_flag_spec_F77='-R$libdir'
14976      hardcode_shlibpath_var_F77=no
14977      case $host_os in
14978      solaris2.[0-5] | solaris2.[0-5].*) ;;
14979      *)
14980 	# The compiler driver will combine linker options so we
14981 	# cannot just pass the convience library names through
14982 	# without $wl, iff we do not link with $LD.
14983 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14984 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14985 	case $wlarc in
14986 	'')
14987 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14988 	*)
14989 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14990 	esac ;;
14991      esac
14992      link_all_deplibs_F77=yes
14993      ;;
14994
14995    sunos4*)
14996      if test "x$host_vendor" = xsequent; then
14997	# Use $CC to link under sequent, because it throws in some extra .o
14998	# files that make .init and .fini sections work.
14999	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15000      else
15001	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15002      fi
15003      hardcode_libdir_flag_spec_F77='-L$libdir'
15004      hardcode_direct_F77=yes
15005      hardcode_minus_L_F77=yes
15006      hardcode_shlibpath_var_F77=no
15007      ;;
15008
15009    sysv4)
15010      case $host_vendor in
15011	sni)
15012	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013	  hardcode_direct_F77=yes # is this really true???
15014	;;
15015	siemens)
15016	  ## LD is ld it makes a PLAMLIB
15017	  ## CC just makes a GrossModule.
15018	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15019	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15020	  hardcode_direct_F77=no
15021        ;;
15022	motorola)
15023	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15024	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15025	;;
15026      esac
15027      runpath_var='LD_RUN_PATH'
15028      hardcode_shlibpath_var_F77=no
15029      ;;
15030
15031    sysv4.3*)
15032      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15033      hardcode_shlibpath_var_F77=no
15034      export_dynamic_flag_spec_F77='-Bexport'
15035      ;;
15036
15037    sysv4*MP*)
15038      if test -d /usr/nec; then
15039	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040	hardcode_shlibpath_var_F77=no
15041	runpath_var=LD_RUN_PATH
15042	hardcode_runpath_var=yes
15043	ld_shlibs_F77=yes
15044      fi
15045      ;;
15046
15047    sysv4.2uw2*)
15048      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15049      hardcode_direct_F77=yes
15050      hardcode_minus_L_F77=no
15051      hardcode_shlibpath_var_F77=no
15052      hardcode_runpath_var=yes
15053      runpath_var=LD_RUN_PATH
15054      ;;
15055
15056   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15057      no_undefined_flag_F77='${wl}-z ${wl}text'
15058      if test "$GCC" = yes; then
15059	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15060      else
15061	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062      fi
15063      runpath_var='LD_RUN_PATH'
15064      hardcode_shlibpath_var_F77=no
15065      ;;
15066
15067    sysv5*)
15068      no_undefined_flag_F77=' -z text'
15069      # $CC -shared without GNU ld will not create a library from C++
15070      # object files and a static libstdc++, better avoid it by now
15071      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15073  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15074      hardcode_libdir_flag_spec_F77=
15075      hardcode_shlibpath_var_F77=no
15076      runpath_var='LD_RUN_PATH'
15077      ;;
15078
15079    uts4*)
15080      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081      hardcode_libdir_flag_spec_F77='-L$libdir'
15082      hardcode_shlibpath_var_F77=no
15083      ;;
15084
15085    *)
15086      ld_shlibs_F77=no
15087      ;;
15088    esac
15089  fi
15090
15091echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15092echo "${ECHO_T}$ld_shlibs_F77" >&6
15093test "$ld_shlibs_F77" = no && can_build_shared=no
15094
15095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15096if test "$GCC" = yes; then
15097  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15098fi
15099
15100#
15101# Do we need to explicitly link libc?
15102#
15103case "x$archive_cmds_need_lc_F77" in
15104x|xyes)
15105  # Assume -lc should be added
15106  archive_cmds_need_lc_F77=yes
15107
15108  if test "$enable_shared" = yes && test "$GCC" = yes; then
15109    case $archive_cmds_F77 in
15110    *'~'*)
15111      # FIXME: we may have to deal with multi-command sequences.
15112      ;;
15113    '$CC '*)
15114      # Test whether the compiler implicitly links with -lc since on some
15115      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15116      # to ld, don't add -lc before -lgcc.
15117      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15118echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15119      $rm conftest*
15120      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15121
15122      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123  (eval $ac_compile) 2>&5
15124  ac_status=$?
15125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126  (exit $ac_status); } 2>conftest.err; then
15127        soname=conftest
15128        lib=conftest
15129        libobjs=conftest.$ac_objext
15130        deplibs=
15131        wl=$lt_prog_compiler_wl_F77
15132        compiler_flags=-v
15133        linker_flags=-v
15134        verstring=
15135        output_objdir=.
15136        libname=conftest
15137        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15138        allow_undefined_flag_F77=
15139        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15140  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15141  ac_status=$?
15142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143  (exit $ac_status); }
15144        then
15145	  archive_cmds_need_lc_F77=no
15146        else
15147	  archive_cmds_need_lc_F77=yes
15148        fi
15149        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15150      else
15151        cat conftest.err 1>&5
15152      fi
15153      $rm conftest*
15154      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15155echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15156      ;;
15157    esac
15158  fi
15159  ;;
15160esac
15161
15162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15164library_names_spec=
15165libname_spec='lib$name'
15166soname_spec=
15167shrext_cmds=".so"
15168postinstall_cmds=
15169postuninstall_cmds=
15170finish_cmds=
15171finish_eval=
15172shlibpath_var=
15173shlibpath_overrides_runpath=unknown
15174version_type=none
15175dynamic_linker="$host_os ld.so"
15176sys_lib_dlsearch_path_spec="/lib /usr/lib"
15177if test "$GCC" = yes; then
15178  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15179  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15180    # if the path contains ";" then we assume it to be the separator
15181    # otherwise default to the standard path separator (i.e. ":") - it is
15182    # assumed that no part of a normal pathname contains ";" but that should
15183    # okay in the real world where ";" in dirpaths is itself problematic.
15184    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15185  else
15186    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15187  fi
15188else
15189  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15190fi
15191need_lib_prefix=unknown
15192hardcode_into_libs=no
15193
15194# when you set need_version to no, make sure it does not cause -set_version
15195# flags to be left without arguments
15196need_version=unknown
15197
15198case $host_os in
15199aix3*)
15200  version_type=linux
15201  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15202  shlibpath_var=LIBPATH
15203
15204  # AIX 3 has no versioning support, so we append a major version to the name.
15205  soname_spec='${libname}${release}${shared_ext}$major'
15206  ;;
15207
15208aix4* | aix5*)
15209  version_type=linux
15210  need_lib_prefix=no
15211  need_version=no
15212  hardcode_into_libs=yes
15213  if test "$host_cpu" = ia64; then
15214    # AIX 5 supports IA64
15215    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15216    shlibpath_var=LD_LIBRARY_PATH
15217  else
15218    # With GCC up to 2.95.x, collect2 would create an import file
15219    # for dependence libraries.  The import file would start with
15220    # the line `#! .'.  This would cause the generated library to
15221    # depend on `.', always an invalid library.  This was fixed in
15222    # development snapshots of GCC prior to 3.0.
15223    case $host_os in
15224      aix4 | aix4.[01] | aix4.[01].*)
15225      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15226	   echo ' yes '
15227	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15228	:
15229      else
15230	can_build_shared=no
15231      fi
15232      ;;
15233    esac
15234    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15235    # soname into executable. Probably we can add versioning support to
15236    # collect2, so additional links can be useful in future.
15237    if test "$aix_use_runtimelinking" = yes; then
15238      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15239      # instead of lib<name>.a to let people know that these are not
15240      # typical AIX shared libraries.
15241      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242    else
15243      # We preserve .a as extension for shared libraries through AIX4.2
15244      # and later when we are not doing run time linking.
15245      library_names_spec='${libname}${release}.a $libname.a'
15246      soname_spec='${libname}${release}${shared_ext}$major'
15247    fi
15248    shlibpath_var=LIBPATH
15249  fi
15250  ;;
15251
15252amigaos*)
15253  library_names_spec='$libname.ixlibrary $libname.a'
15254  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15255  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'
15256  ;;
15257
15258beos*)
15259  library_names_spec='${libname}${shared_ext}'
15260  dynamic_linker="$host_os ld.so"
15261  shlibpath_var=LIBRARY_PATH
15262  ;;
15263
15264bsdi[45]*)
15265  version_type=linux
15266  need_version=no
15267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268  soname_spec='${libname}${release}${shared_ext}$major'
15269  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270  shlibpath_var=LD_LIBRARY_PATH
15271  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273  # the default ld.so.conf also contains /usr/contrib/lib and
15274  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275  # libtool to hard-code these into programs
15276  ;;
15277
15278cygwin* | mingw* | pw32*)
15279  version_type=windows
15280  shrext_cmds=".dll"
15281  need_version=no
15282  need_lib_prefix=no
15283
15284  case $GCC,$host_os in
15285  yes,cygwin* | yes,mingw* | yes,pw32*)
15286    library_names_spec='$libname.dll.a'
15287    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288    postinstall_cmds='base_file=`basename \${file}`~
15289      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15290      dldir=$destdir/`dirname \$dlpath`~
15291      test -d \$dldir || mkdir -p \$dldir~
15292      $install_prog $dir/$dlname \$dldir/$dlname~
15293      chmod a+x \$dldir/$dlname'
15294    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15295      dlpath=$dir/\$dldll~
15296       $rm \$dlpath'
15297    shlibpath_overrides_runpath=yes
15298
15299    case $host_os in
15300    cygwin*)
15301      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15302      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15303      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15304      ;;
15305    mingw*)
15306      # MinGW DLLs use traditional 'lib' prefix
15307      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15308      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15309      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15310        # It is most probably a Windows format PATH printed by
15311        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15312        # path with ; separators, and with drive letters. We can handle the
15313        # drive letters (cygwin fileutils understands them), so leave them,
15314        # especially as we might pass files found there to a mingw objdump,
15315        # which wouldn't understand a cygwinified path. Ahh.
15316        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15317      else
15318        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15319      fi
15320      ;;
15321    pw32*)
15322      # pw32 DLLs use 'pw' prefix rather than 'lib'
15323      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15324      ;;
15325    esac
15326    ;;
15327
15328  *)
15329    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15330    ;;
15331  esac
15332  dynamic_linker='Win32 ld.exe'
15333  # FIXME: first we should search . and the directory the executable is in
15334  shlibpath_var=PATH
15335  ;;
15336
15337darwin* | rhapsody*)
15338  dynamic_linker="$host_os dyld"
15339  version_type=darwin
15340  need_lib_prefix=no
15341  need_version=no
15342  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15343  soname_spec='${libname}${release}${major}$shared_ext'
15344  shlibpath_overrides_runpath=yes
15345  shlibpath_var=DYLD_LIBRARY_PATH
15346  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15347  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15348  if test "$GCC" = yes; then
15349    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"`
15350  else
15351    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15352  fi
15353  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15354  ;;
15355
15356dgux*)
15357  version_type=linux
15358  need_lib_prefix=no
15359  need_version=no
15360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15361  soname_spec='${libname}${release}${shared_ext}$major'
15362  shlibpath_var=LD_LIBRARY_PATH
15363  ;;
15364
15365freebsd1*)
15366  dynamic_linker=no
15367  ;;
15368
15369haiku*)
15370  library_names_spec='${libname}${shared_ext}'
15371  dynamic_linker="$host_os ld.so"
15372  shlibpath_var=LIBRARY_PATH
15373  ;;
15374
15375kfreebsd*-gnu)
15376  version_type=linux
15377  need_lib_prefix=no
15378  need_version=no
15379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15380  soname_spec='${libname}${release}${shared_ext}$major'
15381  shlibpath_var=LD_LIBRARY_PATH
15382  shlibpath_overrides_runpath=no
15383  hardcode_into_libs=yes
15384  dynamic_linker='GNU ld.so'
15385  ;;
15386
15387freebsd* | dragonfly*)
15388  # DragonFly does not have aout.  When/if they implement a new
15389  # versioning mechanism, adjust this.
15390  if test -x /usr/bin/objformat; then
15391    objformat=`/usr/bin/objformat`
15392  else
15393    case $host_os in
15394    freebsd[123]*) objformat=aout ;;
15395    *) objformat=elf ;;
15396    esac
15397  fi
15398  version_type=freebsd-$objformat
15399  case $version_type in
15400    freebsd-elf*)
15401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15402      need_version=no
15403      need_lib_prefix=no
15404      ;;
15405    freebsd-*)
15406      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15407      need_version=yes
15408      ;;
15409  esac
15410  shlibpath_var=LD_LIBRARY_PATH
15411  case $host_os in
15412  freebsd2*)
15413    shlibpath_overrides_runpath=yes
15414    ;;
15415  freebsd3.[01]* | freebsdelf3.[01]*)
15416    shlibpath_overrides_runpath=yes
15417    hardcode_into_libs=yes
15418    ;;
15419  *) # from 3.2 on
15420    shlibpath_overrides_runpath=no
15421    hardcode_into_libs=yes
15422    ;;
15423  esac
15424  ;;
15425
15426gnu*)
15427  version_type=linux
15428  need_lib_prefix=no
15429  need_version=no
15430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15431  soname_spec='${libname}${release}${shared_ext}$major'
15432  shlibpath_var=LD_LIBRARY_PATH
15433  hardcode_into_libs=yes
15434  ;;
15435
15436hpux9* | hpux10* | hpux11*)
15437  # Give a soname corresponding to the major version so that dld.sl refuses to
15438  # link against other versions.
15439  version_type=sunos
15440  need_lib_prefix=no
15441  need_version=no
15442  case $host_cpu in
15443  ia64*)
15444    shrext_cmds='.so'
15445    hardcode_into_libs=yes
15446    dynamic_linker="$host_os dld.so"
15447    shlibpath_var=LD_LIBRARY_PATH
15448    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450    soname_spec='${libname}${release}${shared_ext}$major'
15451    if test "X$HPUX_IA64_MODE" = X32; then
15452      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15453    else
15454      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15455    fi
15456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457    ;;
15458   hppa*64*)
15459     shrext_cmds='.sl'
15460     hardcode_into_libs=yes
15461     dynamic_linker="$host_os dld.sl"
15462     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15463     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465     soname_spec='${libname}${release}${shared_ext}$major'
15466     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15467     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15468     ;;
15469   *)
15470    shrext_cmds='.sl'
15471    dynamic_linker="$host_os dld.sl"
15472    shlibpath_var=SHLIB_PATH
15473    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475    soname_spec='${libname}${release}${shared_ext}$major'
15476    ;;
15477  esac
15478  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15479  postinstall_cmds='chmod 555 $lib'
15480  ;;
15481
15482irix5* | irix6* | nonstopux*)
15483  case $host_os in
15484    nonstopux*) version_type=nonstopux ;;
15485    *)
15486	if test "$lt_cv_prog_gnu_ld" = yes; then
15487		version_type=linux
15488	else
15489		version_type=irix
15490	fi ;;
15491  esac
15492  need_lib_prefix=no
15493  need_version=no
15494  soname_spec='${libname}${release}${shared_ext}$major'
15495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15496  case $host_os in
15497  irix5* | nonstopux*)
15498    libsuff= shlibsuff=
15499    ;;
15500  *)
15501    case $LD in # libtool.m4 will add one of these switches to LD
15502    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503      libsuff= shlibsuff= libmagic=32-bit;;
15504    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505      libsuff=32 shlibsuff=N32 libmagic=N32;;
15506    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508    *) libsuff= shlibsuff= libmagic=never-match;;
15509    esac
15510    ;;
15511  esac
15512  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513  shlibpath_overrides_runpath=no
15514  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516  hardcode_into_libs=yes
15517  ;;
15518
15519# No shared lib support for Linux oldld, aout, or coff.
15520linux*oldld* | linux*aout* | linux*coff*)
15521  dynamic_linker=no
15522  ;;
15523
15524# This must be Linux ELF.
15525linux*)
15526  version_type=linux
15527  need_lib_prefix=no
15528  need_version=no
15529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530  soname_spec='${libname}${release}${shared_ext}$major'
15531  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532  shlibpath_var=LD_LIBRARY_PATH
15533  shlibpath_overrides_runpath=no
15534  # This implies no fast_install, which is unacceptable.
15535  # Some rework will be needed to allow for fast_install
15536  # before this can be enabled.
15537  hardcode_into_libs=yes
15538
15539  # Append ld.so.conf contents to the search path
15540  if test -f /etc/ld.so.conf; then
15541    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15542    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15543  fi
15544
15545  # We used to test for /lib/ld.so.1 and disable shared libraries on
15546  # powerpc, because MkLinux only supported shared libraries with the
15547  # GNU dynamic linker.  Since this was broken with cross compilers,
15548  # most powerpc-linux boxes support dynamic linking these days and
15549  # people can always --disable-shared, the test was removed, and we
15550  # assume the GNU/Linux dynamic linker is in use.
15551  dynamic_linker='GNU/Linux ld.so'
15552  ;;
15553
15554knetbsd*-gnu)
15555  version_type=linux
15556  need_lib_prefix=no
15557  need_version=no
15558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15559  soname_spec='${libname}${release}${shared_ext}$major'
15560  shlibpath_var=LD_LIBRARY_PATH
15561  shlibpath_overrides_runpath=no
15562  hardcode_into_libs=yes
15563  dynamic_linker='GNU ld.so'
15564  ;;
15565
15566netbsd*)
15567  version_type=sunos
15568  need_lib_prefix=no
15569  need_version=no
15570  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573    dynamic_linker='NetBSD (a.out) ld.so'
15574  else
15575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15576    soname_spec='${libname}${release}${shared_ext}$major'
15577    dynamic_linker='NetBSD ld.elf_so'
15578  fi
15579  shlibpath_var=LD_LIBRARY_PATH
15580  shlibpath_overrides_runpath=yes
15581  hardcode_into_libs=yes
15582  ;;
15583
15584newsos6)
15585  version_type=linux
15586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587  shlibpath_var=LD_LIBRARY_PATH
15588  shlibpath_overrides_runpath=yes
15589  ;;
15590
15591nto-qnx*)
15592  version_type=linux
15593  need_lib_prefix=no
15594  need_version=no
15595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596  soname_spec='${libname}${release}${shared_ext}$major'
15597  shlibpath_var=LD_LIBRARY_PATH
15598  shlibpath_overrides_runpath=yes
15599  ;;
15600
15601openbsd*)
15602  version_type=sunos
15603  need_lib_prefix=no
15604  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15605  case $host_os in
15606    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15607    *)                         need_version=no  ;;
15608  esac
15609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15610  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15611  shlibpath_var=LD_LIBRARY_PATH
15612  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613    case $host_os in
15614      openbsd2.[89] | openbsd2.[89].*)
15615	shlibpath_overrides_runpath=no
15616	;;
15617      *)
15618	shlibpath_overrides_runpath=yes
15619	;;
15620      esac
15621  else
15622    shlibpath_overrides_runpath=yes
15623  fi
15624  ;;
15625
15626os2*)
15627  libname_spec='$name'
15628  shrext_cmds=".dll"
15629  need_lib_prefix=no
15630  library_names_spec='$libname${shared_ext} $libname.a'
15631  dynamic_linker='OS/2 ld.exe'
15632  shlibpath_var=LIBPATH
15633  ;;
15634
15635osf3* | osf4* | osf5*)
15636  version_type=osf
15637  need_lib_prefix=no
15638  need_version=no
15639  soname_spec='${libname}${release}${shared_ext}$major'
15640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641  shlibpath_var=LD_LIBRARY_PATH
15642  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15643  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15644  ;;
15645
15646sco3.2v5*)
15647  version_type=osf
15648  soname_spec='${libname}${release}${shared_ext}$major'
15649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650  shlibpath_var=LD_LIBRARY_PATH
15651  ;;
15652
15653solaris*)
15654  version_type=linux
15655  need_lib_prefix=no
15656  need_version=no
15657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658  soname_spec='${libname}${release}${shared_ext}$major'
15659  shlibpath_var=LD_LIBRARY_PATH
15660  shlibpath_overrides_runpath=yes
15661  hardcode_into_libs=yes
15662  # ldd complains unless libraries are executable
15663  postinstall_cmds='chmod +x $lib'
15664  ;;
15665
15666sunos4*)
15667  version_type=sunos
15668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15670  shlibpath_var=LD_LIBRARY_PATH
15671  shlibpath_overrides_runpath=yes
15672  if test "$with_gnu_ld" = yes; then
15673    need_lib_prefix=no
15674  fi
15675  need_version=yes
15676  ;;
15677
15678sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15679  version_type=linux
15680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681  soname_spec='${libname}${release}${shared_ext}$major'
15682  shlibpath_var=LD_LIBRARY_PATH
15683  case $host_vendor in
15684    sni)
15685      shlibpath_overrides_runpath=no
15686      need_lib_prefix=no
15687      export_dynamic_flag_spec='${wl}-Blargedynsym'
15688      runpath_var=LD_RUN_PATH
15689      ;;
15690    siemens)
15691      need_lib_prefix=no
15692      ;;
15693    motorola)
15694      need_lib_prefix=no
15695      need_version=no
15696      shlibpath_overrides_runpath=no
15697      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15698      ;;
15699  esac
15700  ;;
15701
15702sysv4*MP*)
15703  if test -d /usr/nec ;then
15704    version_type=linux
15705    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15706    soname_spec='$libname${shared_ext}.$major'
15707    shlibpath_var=LD_LIBRARY_PATH
15708  fi
15709  ;;
15710
15711uts4*)
15712  version_type=linux
15713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714  soname_spec='${libname}${release}${shared_ext}$major'
15715  shlibpath_var=LD_LIBRARY_PATH
15716  ;;
15717
15718*)
15719  dynamic_linker=no
15720  ;;
15721esac
15722echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15723echo "${ECHO_T}$dynamic_linker" >&6
15724test "$dynamic_linker" = no && can_build_shared=no
15725
15726echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15727echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15728hardcode_action_F77=
15729if test -n "$hardcode_libdir_flag_spec_F77" || \
15730   test -n "$runpath_var_F77" || \
15731   test "X$hardcode_automatic_F77" = "Xyes" ; then
15732
15733  # We can hardcode non-existant directories.
15734  if test "$hardcode_direct_F77" != no &&
15735     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15736     # have to relink, otherwise we might link with an installed library
15737     # when we should be linking with a yet-to-be-installed one
15738     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15739     test "$hardcode_minus_L_F77" != no; then
15740    # Linking always hardcodes the temporary library directory.
15741    hardcode_action_F77=relink
15742  else
15743    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15744    hardcode_action_F77=immediate
15745  fi
15746else
15747  # We cannot hardcode anything, or else we can only hardcode existing
15748  # directories.
15749  hardcode_action_F77=unsupported
15750fi
15751echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15752echo "${ECHO_T}$hardcode_action_F77" >&6
15753
15754if test "$hardcode_action_F77" = relink; then
15755  # Fast installation is not supported
15756  enable_fast_install=no
15757elif test "$shlibpath_overrides_runpath" = yes ||
15758     test "$enable_shared" = no; then
15759  # Fast installation is not necessary
15760  enable_fast_install=needless
15761fi
15762
15763striplib=
15764old_striplib=
15765echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15766echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15767if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15768  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15769  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15770  echo "$as_me:$LINENO: result: yes" >&5
15771echo "${ECHO_T}yes" >&6
15772else
15773# FIXME - insert some real tests, host_os isn't really good enough
15774  case $host_os in
15775   darwin*)
15776       if test -n "$STRIP" ; then
15777         striplib="$STRIP -x"
15778         echo "$as_me:$LINENO: result: yes" >&5
15779echo "${ECHO_T}yes" >&6
15780       else
15781  echo "$as_me:$LINENO: result: no" >&5
15782echo "${ECHO_T}no" >&6
15783fi
15784       ;;
15785   *)
15786  echo "$as_me:$LINENO: result: no" >&5
15787echo "${ECHO_T}no" >&6
15788    ;;
15789  esac
15790fi
15791
15792
15793
15794# The else clause should only fire when bootstrapping the
15795# libtool distribution, otherwise you forgot to ship ltmain.sh
15796# with your package, and you will get complaints that there are
15797# no rules to generate ltmain.sh.
15798if test -f "$ltmain"; then
15799  # See if we are running on zsh, and set the options which allow our commands through
15800  # without removal of \ escapes.
15801  if test -n "${ZSH_VERSION+set}" ; then
15802    setopt NO_GLOB_SUBST
15803  fi
15804  # Now quote all the things that may contain metacharacters while being
15805  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15806  # variables and quote the copies for generation of the libtool script.
15807  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15808    SED SHELL STRIP \
15809    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15810    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15811    deplibs_check_method reload_flag reload_cmds need_locks \
15812    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15813    lt_cv_sys_global_symbol_to_c_name_address \
15814    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15815    old_postinstall_cmds old_postuninstall_cmds \
15816    compiler_F77 \
15817    CC_F77 \
15818    LD_F77 \
15819    lt_prog_compiler_wl_F77 \
15820    lt_prog_compiler_pic_F77 \
15821    lt_prog_compiler_static_F77 \
15822    lt_prog_compiler_no_builtin_flag_F77 \
15823    export_dynamic_flag_spec_F77 \
15824    thread_safe_flag_spec_F77 \
15825    whole_archive_flag_spec_F77 \
15826    enable_shared_with_static_runtimes_F77 \
15827    old_archive_cmds_F77 \
15828    old_archive_from_new_cmds_F77 \
15829    predep_objects_F77 \
15830    postdep_objects_F77 \
15831    predeps_F77 \
15832    postdeps_F77 \
15833    compiler_lib_search_path_F77 \
15834    archive_cmds_F77 \
15835    archive_expsym_cmds_F77 \
15836    postinstall_cmds_F77 \
15837    postuninstall_cmds_F77 \
15838    old_archive_from_expsyms_cmds_F77 \
15839    allow_undefined_flag_F77 \
15840    no_undefined_flag_F77 \
15841    export_symbols_cmds_F77 \
15842    hardcode_libdir_flag_spec_F77 \
15843    hardcode_libdir_flag_spec_ld_F77 \
15844    hardcode_libdir_separator_F77 \
15845    hardcode_automatic_F77 \
15846    module_cmds_F77 \
15847    module_expsym_cmds_F77 \
15848    lt_cv_prog_compiler_c_o_F77 \
15849    exclude_expsyms_F77 \
15850    include_expsyms_F77; do
15851
15852    case $var in
15853    old_archive_cmds_F77 | \
15854    old_archive_from_new_cmds_F77 | \
15855    archive_cmds_F77 | \
15856    archive_expsym_cmds_F77 | \
15857    module_cmds_F77 | \
15858    module_expsym_cmds_F77 | \
15859    old_archive_from_expsyms_cmds_F77 | \
15860    export_symbols_cmds_F77 | \
15861    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15862    postinstall_cmds | postuninstall_cmds | \
15863    old_postinstall_cmds | old_postuninstall_cmds | \
15864    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15865      # Double-quote double-evaled strings.
15866      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15867      ;;
15868    *)
15869      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15870      ;;
15871    esac
15872  done
15873
15874  case $lt_echo in
15875  *'\$0 --fallback-echo"')
15876    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15877    ;;
15878  esac
15879
15880cfgfile="$ofile"
15881
15882  cat <<__EOF__ >> "$cfgfile"
15883# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15884
15885# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15886
15887# Shell to use when invoking shell scripts.
15888SHELL=$lt_SHELL
15889
15890# Whether or not to build shared libraries.
15891build_libtool_libs=$enable_shared
15892
15893# Whether or not to build static libraries.
15894build_old_libs=$enable_static
15895
15896# Whether or not to add -lc for building shared libraries.
15897build_libtool_need_lc=$archive_cmds_need_lc_F77
15898
15899# Whether or not to disallow shared libs when runtime libs are static
15900allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15901
15902# Whether or not to optimize for fast installation.
15903fast_install=$enable_fast_install
15904
15905# The host system.
15906host_alias=$host_alias
15907host=$host
15908host_os=$host_os
15909
15910# The build system.
15911build_alias=$build_alias
15912build=$build
15913build_os=$build_os
15914
15915# An echo program that does not interpret backslashes.
15916echo=$lt_echo
15917
15918# The archiver.
15919AR=$lt_AR
15920AR_FLAGS=$lt_AR_FLAGS
15921
15922# A C compiler.
15923LTCC=$lt_LTCC
15924
15925# A language-specific compiler.
15926CC=$lt_compiler_F77
15927
15928# Is the compiler the GNU C compiler?
15929with_gcc=$GCC_F77
15930
15931# An ERE matcher.
15932EGREP=$lt_EGREP
15933
15934# The linker used to build libraries.
15935LD=$lt_LD_F77
15936
15937# Whether we need hard or soft links.
15938LN_S=$lt_LN_S
15939
15940# A BSD-compatible nm program.
15941NM=$lt_NM
15942
15943# A symbol stripping program
15944STRIP=$lt_STRIP
15945
15946# Used to examine libraries when file_magic_cmd begins "file"
15947MAGIC_CMD=$MAGIC_CMD
15948
15949# Used on cygwin: DLL creation program.
15950DLLTOOL="$DLLTOOL"
15951
15952# Used on cygwin: object dumper.
15953OBJDUMP="$OBJDUMP"
15954
15955# Used on cygwin: assembler.
15956AS="$AS"
15957
15958# The name of the directory that contains temporary libtool files.
15959objdir=$objdir
15960
15961# How to create reloadable object files.
15962reload_flag=$lt_reload_flag
15963reload_cmds=$lt_reload_cmds
15964
15965# How to pass a linker flag through the compiler.
15966wl=$lt_lt_prog_compiler_wl_F77
15967
15968# Object file suffix (normally "o").
15969objext="$ac_objext"
15970
15971# Old archive suffix (normally "a").
15972libext="$libext"
15973
15974# Shared library suffix (normally ".so").
15975shrext_cmds='$shrext_cmds'
15976
15977# Executable file suffix (normally "").
15978exeext="$exeext"
15979
15980# Additional compiler flags for building library objects.
15981pic_flag=$lt_lt_prog_compiler_pic_F77
15982pic_mode=$pic_mode
15983
15984# What is the maximum length of a command?
15985max_cmd_len=$lt_cv_sys_max_cmd_len
15986
15987# Does compiler simultaneously support -c and -o options?
15988compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15989
15990# Must we lock files when doing compilation?
15991need_locks=$lt_need_locks
15992
15993# Do we need the lib prefix for modules?
15994need_lib_prefix=$need_lib_prefix
15995
15996# Do we need a version for libraries?
15997need_version=$need_version
15998
15999# Whether dlopen is supported.
16000dlopen_support=$enable_dlopen
16001
16002# Whether dlopen of programs is supported.
16003dlopen_self=$enable_dlopen_self
16004
16005# Whether dlopen of statically linked programs is supported.
16006dlopen_self_static=$enable_dlopen_self_static
16007
16008# Compiler flag to prevent dynamic linking.
16009link_static_flag=$lt_lt_prog_compiler_static_F77
16010
16011# Compiler flag to turn off builtin functions.
16012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16013
16014# Compiler flag to allow reflexive dlopens.
16015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16016
16017# Compiler flag to generate shared objects directly from archives.
16018whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16019
16020# Compiler flag to generate thread-safe objects.
16021thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16022
16023# Library versioning type.
16024version_type=$version_type
16025
16026# Format of library name prefix.
16027libname_spec=$lt_libname_spec
16028
16029# List of archive names.  First name is the real one, the rest are links.
16030# The last name is the one that the linker finds with -lNAME.
16031library_names_spec=$lt_library_names_spec
16032
16033# The coded name of the library, if different from the real name.
16034soname_spec=$lt_soname_spec
16035
16036# Commands used to build and install an old-style archive.
16037RANLIB=$lt_RANLIB
16038old_archive_cmds=$lt_old_archive_cmds_F77
16039old_postinstall_cmds=$lt_old_postinstall_cmds
16040old_postuninstall_cmds=$lt_old_postuninstall_cmds
16041
16042# Create an old-style archive from a shared archive.
16043old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16044
16045# Create a temporary old-style archive to link instead of a shared archive.
16046old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16047
16048# Commands used to build and install a shared archive.
16049archive_cmds=$lt_archive_cmds_F77
16050archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16051postinstall_cmds=$lt_postinstall_cmds
16052postuninstall_cmds=$lt_postuninstall_cmds
16053
16054# Commands used to build a loadable module (assumed same as above if empty)
16055module_cmds=$lt_module_cmds_F77
16056module_expsym_cmds=$lt_module_expsym_cmds_F77
16057
16058# Commands to strip libraries.
16059old_striplib=$lt_old_striplib
16060striplib=$lt_striplib
16061
16062# Dependencies to place before the objects being linked to create a
16063# shared library.
16064predep_objects=$lt_predep_objects_F77
16065
16066# Dependencies to place after the objects being linked to create a
16067# shared library.
16068postdep_objects=$lt_postdep_objects_F77
16069
16070# Dependencies to place before the objects being linked to create a
16071# shared library.
16072predeps=$lt_predeps_F77
16073
16074# Dependencies to place after the objects being linked to create a
16075# shared library.
16076postdeps=$lt_postdeps_F77
16077
16078# The library search path used internally by the compiler when linking
16079# a shared library.
16080compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16081
16082# Method to check whether dependent libraries are shared objects.
16083deplibs_check_method=$lt_deplibs_check_method
16084
16085# Command to use when deplibs_check_method == file_magic.
16086file_magic_cmd=$lt_file_magic_cmd
16087
16088# Flag that allows shared libraries with undefined symbols to be built.
16089allow_undefined_flag=$lt_allow_undefined_flag_F77
16090
16091# Flag that forces no undefined symbols.
16092no_undefined_flag=$lt_no_undefined_flag_F77
16093
16094# Commands used to finish a libtool library installation in a directory.
16095finish_cmds=$lt_finish_cmds
16096
16097# Same as above, but a single script fragment to be evaled but not shown.
16098finish_eval=$lt_finish_eval
16099
16100# Take the output of nm and produce a listing of raw symbols and C names.
16101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16102
16103# Transform the output of nm in a proper C declaration
16104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16105
16106# Transform the output of nm in a C name address pair
16107global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16108
16109# This is the shared library runtime path variable.
16110runpath_var=$runpath_var
16111
16112# This is the shared library path variable.
16113shlibpath_var=$shlibpath_var
16114
16115# Is shlibpath searched before the hard-coded library search path?
16116shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16117
16118# How to hardcode a shared library path into an executable.
16119hardcode_action=$hardcode_action_F77
16120
16121# Whether we should hardcode library paths into libraries.
16122hardcode_into_libs=$hardcode_into_libs
16123
16124# Flag to hardcode \$libdir into a binary during linking.
16125# This must work even if \$libdir does not exist.
16126hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16127
16128# If ld is used when linking, flag to hardcode \$libdir into
16129# a binary during linking. This must work even if \$libdir does
16130# not exist.
16131hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16132
16133# Whether we need a single -rpath flag with a separated argument.
16134hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16135
16136# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16137# resulting binary.
16138hardcode_direct=$hardcode_direct_F77
16139
16140# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16141# resulting binary.
16142hardcode_minus_L=$hardcode_minus_L_F77
16143
16144# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16145# the resulting binary.
16146hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16147
16148# Set to yes if building a shared library automatically hardcodes DIR into the library
16149# and all subsequent libraries and executables linked against it.
16150hardcode_automatic=$hardcode_automatic_F77
16151
16152# Variables whose values should be saved in libtool wrapper scripts and
16153# restored at relink time.
16154variables_saved_for_relink="$variables_saved_for_relink"
16155
16156# Whether libtool must link a program against all its dependency libraries.
16157link_all_deplibs=$link_all_deplibs_F77
16158
16159# Compile-time system search path for libraries
16160sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16161
16162# Run-time system search path for libraries
16163sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16164
16165# Fix the shell variable \$srcfile for the compiler.
16166fix_srcfile_path="$fix_srcfile_path_F77"
16167
16168# Set to yes if exported symbols are required.
16169always_export_symbols=$always_export_symbols_F77
16170
16171# The commands to list exported symbols.
16172export_symbols_cmds=$lt_export_symbols_cmds_F77
16173
16174# The commands to extract the exported symbol list from a shared archive.
16175extract_expsyms_cmds=$lt_extract_expsyms_cmds
16176
16177# Symbols that should not be listed in the preloaded symbols.
16178exclude_expsyms=$lt_exclude_expsyms_F77
16179
16180# Symbols that must always be exported.
16181include_expsyms=$lt_include_expsyms_F77
16182
16183# ### END LIBTOOL TAG CONFIG: $tagname
16184
16185__EOF__
16186
16187
16188else
16189  # If there is no Makefile yet, we rely on a make rule to execute
16190  # `config.status --recheck' to rerun these tests and create the
16191  # libtool script then.
16192  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16193  if test -f "$ltmain_in"; then
16194    test -f Makefile && make "$ltmain"
16195  fi
16196fi
16197
16198
16199ac_ext=c
16200ac_cpp='$CPP $CPPFLAGS'
16201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16203ac_compiler_gnu=$ac_cv_c_compiler_gnu
16204
16205CC="$lt_save_CC"
16206
16207	else
16208	  tagname=""
16209	fi
16210	;;
16211
16212      GCJ)
16213	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16214
16215
16216
16217# Source file extension for Java test sources.
16218ac_ext=java
16219
16220# Object file extension for compiled Java test sources.
16221objext=o
16222objext_GCJ=$objext
16223
16224# Code to be used in simple compile tests
16225lt_simple_compile_test_code="class foo {}\n"
16226
16227# Code to be used in simple link tests
16228lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16229
16230# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16231
16232# If no C compiler was specified, use CC.
16233LTCC=${LTCC-"$CC"}
16234
16235# Allow CC to be a program name with arguments.
16236compiler=$CC
16237
16238
16239# save warnings/boilerplate of simple test code
16240ac_outfile=conftest.$ac_objext
16241printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16242eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16243_lt_compiler_boilerplate=`cat conftest.err`
16244$rm conftest*
16245
16246ac_outfile=conftest.$ac_objext
16247printf "$lt_simple_link_test_code" >conftest.$ac_ext
16248eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16249_lt_linker_boilerplate=`cat conftest.err`
16250$rm conftest*
16251
16252
16253# Allow CC to be a program name with arguments.
16254lt_save_CC="$CC"
16255CC=${GCJ-"gcj"}
16256compiler=$CC
16257compiler_GCJ=$CC
16258for cc_temp in $compiler""; do
16259  case $cc_temp in
16260    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16261    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16262    \-*) ;;
16263    *) break;;
16264  esac
16265done
16266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16267
16268
16269# GCJ did not exist at the time GCC didn't implicitly link libc in.
16270archive_cmds_need_lc_GCJ=no
16271
16272old_archive_cmds_GCJ=$old_archive_cmds
16273
16274## CAVEAT EMPTOR:
16275## There is no encapsulation within the following macros, do not change
16276## the running order or otherwise move them around unless you know exactly
16277## what you are doing...
16278
16279lt_prog_compiler_no_builtin_flag_GCJ=
16280
16281if test "$GCC" = yes; then
16282  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16283
16284
16285echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16286echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16287if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16288  echo $ECHO_N "(cached) $ECHO_C" >&6
16289else
16290  lt_cv_prog_compiler_rtti_exceptions=no
16291  ac_outfile=conftest.$ac_objext
16292   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16293   lt_compiler_flag="-fno-rtti -fno-exceptions"
16294   # Insert the option either (1) after the last *FLAGS variable, or
16295   # (2) before a word containing "conftest.", or (3) at the end.
16296   # Note that $ac_compile itself does not contain backslashes and begins
16297   # with a dollar sign (not a hyphen), so the echo should work correctly.
16298   # The option is referenced via a variable to avoid confusing sed.
16299   lt_compile=`echo "$ac_compile" | $SED \
16300   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16301   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16302   -e 's:$: $lt_compiler_flag:'`
16303   (eval echo "\"\$as_me:16303: $lt_compile\"" >&5)
16304   (eval "$lt_compile" 2>conftest.err)
16305   ac_status=$?
16306   cat conftest.err >&5
16307   echo "$as_me:16307: \$? = $ac_status" >&5
16308   if (exit $ac_status) && test -s "$ac_outfile"; then
16309     # The compiler can only warn and ignore the option if not recognized
16310     # So say no if there are warnings other than the usual output.
16311     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16312     $SED '/^$/d' conftest.err >conftest.er2
16313     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16314       lt_cv_prog_compiler_rtti_exceptions=yes
16315     fi
16316   fi
16317   $rm conftest*
16318
16319fi
16320echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16321echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16322
16323if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16324    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16325else
16326    :
16327fi
16328
16329fi
16330
16331lt_prog_compiler_wl_GCJ=
16332lt_prog_compiler_pic_GCJ=
16333lt_prog_compiler_static_GCJ=
16334
16335echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16336echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16337
16338  if test "$GCC" = yes; then
16339    lt_prog_compiler_wl_GCJ='-Wl,'
16340    lt_prog_compiler_static_GCJ='-static'
16341
16342    case $host_os in
16343      aix*)
16344      # All AIX code is PIC.
16345      if test "$host_cpu" = ia64; then
16346	# AIX 5 now supports IA64 processor
16347	lt_prog_compiler_static_GCJ='-Bstatic'
16348      fi
16349      ;;
16350
16351    amigaos*)
16352      # FIXME: we need at least 68020 code to build shared libraries, but
16353      # adding the `-m68020' flag to GCC prevents building anything better,
16354      # like `-m68040'.
16355      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16356      ;;
16357
16358    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
16359    | osf5*)
16360      # PIC is the default for these OSes.
16361      ;;
16362
16363    mingw* | pw32* | os2*)
16364      # This hack is so that the source file can tell whether it is being
16365      # built for inclusion in a dll (and should export symbols for example).
16366      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16367      ;;
16368
16369    darwin* | rhapsody*)
16370      # PIC is the default on this platform
16371      # Common symbols not allowed in MH_DYLIB files
16372      lt_prog_compiler_pic_GCJ='-fno-common'
16373      ;;
16374
16375    msdosdjgpp*)
16376      # Just because we use GCC doesn't mean we suddenly get shared libraries
16377      # on systems that don't support them.
16378      lt_prog_compiler_can_build_shared_GCJ=no
16379      enable_shared=no
16380      ;;
16381
16382    sysv4*MP*)
16383      if test -d /usr/nec; then
16384	lt_prog_compiler_pic_GCJ=-Kconform_pic
16385      fi
16386      ;;
16387
16388    hpux*)
16389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16390      # not for PA HP-UX.
16391      case $host_cpu in
16392      hppa*64*|ia64*)
16393	# +Z the default
16394	;;
16395      *)
16396	lt_prog_compiler_pic_GCJ='-fPIC'
16397	;;
16398      esac
16399      ;;
16400
16401    *)
16402      lt_prog_compiler_pic_GCJ='-fPIC'
16403      ;;
16404    esac
16405  else
16406    # PORTME Check for flag to pass linker flags through the system compiler.
16407    case $host_os in
16408    aix*)
16409      lt_prog_compiler_wl_GCJ='-Wl,'
16410      if test "$host_cpu" = ia64; then
16411	# AIX 5 now supports IA64 processor
16412	lt_prog_compiler_static_GCJ='-Bstatic'
16413      else
16414	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16415      fi
16416      ;;
16417      darwin*)
16418        # PIC is the default on this platform
16419        # Common symbols not allowed in MH_DYLIB files
16420       case $cc_basename in
16421         xlc*)
16422         lt_prog_compiler_pic_GCJ='-qnocommon'
16423         lt_prog_compiler_wl_GCJ='-Wl,'
16424         ;;
16425       esac
16426       ;;
16427
16428    mingw* | pw32* | os2*)
16429      # This hack is so that the source file can tell whether it is being
16430      # built for inclusion in a dll (and should export symbols for example).
16431      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16432      ;;
16433
16434    hpux9* | hpux10* | hpux11*)
16435      lt_prog_compiler_wl_GCJ='-Wl,'
16436      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16437      # not for PA HP-UX.
16438      case $host_cpu in
16439      hppa*64*|ia64*)
16440	# +Z the default
16441	;;
16442      *)
16443	lt_prog_compiler_pic_GCJ='+Z'
16444	;;
16445      esac
16446      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16447      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16448      ;;
16449
16450    irix5* | irix6* | nonstopux*)
16451      lt_prog_compiler_wl_GCJ='-Wl,'
16452      # PIC (with -KPIC) is the default.
16453      lt_prog_compiler_static_GCJ='-non_shared'
16454      ;;
16455
16456    newsos6)
16457      lt_prog_compiler_pic_GCJ='-KPIC'
16458      lt_prog_compiler_static_GCJ='-Bstatic'
16459      ;;
16460
16461    linux*)
16462      case $cc_basename in
16463      icc* | ecc*)
16464	lt_prog_compiler_wl_GCJ='-Wl,'
16465	lt_prog_compiler_pic_GCJ='-KPIC'
16466	lt_prog_compiler_static_GCJ='-static'
16467        ;;
16468      pgcc* | pgf77* | pgf90* | pgf95*)
16469        # Portland Group compilers (*not* the Pentium gcc compiler,
16470	# which looks to be a dead project)
16471	lt_prog_compiler_wl_GCJ='-Wl,'
16472	lt_prog_compiler_pic_GCJ='-fpic'
16473	lt_prog_compiler_static_GCJ='-Bstatic'
16474        ;;
16475      ccc*)
16476        lt_prog_compiler_wl_GCJ='-Wl,'
16477        # All Alpha code is PIC.
16478        lt_prog_compiler_static_GCJ='-non_shared'
16479        ;;
16480      esac
16481      ;;
16482
16483    osf3* | osf4* | osf5*)
16484      lt_prog_compiler_wl_GCJ='-Wl,'
16485      # All OSF/1 code is PIC.
16486      lt_prog_compiler_static_GCJ='-non_shared'
16487      ;;
16488
16489    sco3.2v5*)
16490      lt_prog_compiler_pic_GCJ='-Kpic'
16491      lt_prog_compiler_static_GCJ='-dn'
16492      ;;
16493
16494    solaris*)
16495      lt_prog_compiler_pic_GCJ='-KPIC'
16496      lt_prog_compiler_static_GCJ='-Bstatic'
16497      case $cc_basename in
16498      f77* | f90* | f95*)
16499	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16500      *)
16501	lt_prog_compiler_wl_GCJ='-Wl,';;
16502      esac
16503      ;;
16504
16505    sunos4*)
16506      lt_prog_compiler_wl_GCJ='-Qoption ld '
16507      lt_prog_compiler_pic_GCJ='-PIC'
16508      lt_prog_compiler_static_GCJ='-Bstatic'
16509      ;;
16510
16511    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16512      lt_prog_compiler_wl_GCJ='-Wl,'
16513      lt_prog_compiler_pic_GCJ='-KPIC'
16514      lt_prog_compiler_static_GCJ='-Bstatic'
16515      ;;
16516
16517    sysv4*MP*)
16518      if test -d /usr/nec ;then
16519	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16520	lt_prog_compiler_static_GCJ='-Bstatic'
16521      fi
16522      ;;
16523
16524    unicos*)
16525      lt_prog_compiler_wl_GCJ='-Wl,'
16526      lt_prog_compiler_can_build_shared_GCJ=no
16527      ;;
16528
16529    uts4*)
16530      lt_prog_compiler_pic_GCJ='-pic'
16531      lt_prog_compiler_static_GCJ='-Bstatic'
16532      ;;
16533
16534    *)
16535      lt_prog_compiler_can_build_shared_GCJ=no
16536      ;;
16537    esac
16538  fi
16539
16540echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16541echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16542
16543#
16544# Check to make sure the PIC flag actually works.
16545#
16546if test -n "$lt_prog_compiler_pic_GCJ"; then
16547
16548echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16549echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16550if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16551  echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553  lt_prog_compiler_pic_works_GCJ=no
16554  ac_outfile=conftest.$ac_objext
16555   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16556   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16557   # Insert the option either (1) after the last *FLAGS variable, or
16558   # (2) before a word containing "conftest.", or (3) at the end.
16559   # Note that $ac_compile itself does not contain backslashes and begins
16560   # with a dollar sign (not a hyphen), so the echo should work correctly.
16561   # The option is referenced via a variable to avoid confusing sed.
16562   lt_compile=`echo "$ac_compile" | $SED \
16563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16565   -e 's:$: $lt_compiler_flag:'`
16566   (eval echo "\"\$as_me:16566: $lt_compile\"" >&5)
16567   (eval "$lt_compile" 2>conftest.err)
16568   ac_status=$?
16569   cat conftest.err >&5
16570   echo "$as_me:16570: \$? = $ac_status" >&5
16571   if (exit $ac_status) && test -s "$ac_outfile"; then
16572     # The compiler can only warn and ignore the option if not recognized
16573     # So say no if there are warnings other than the usual output.
16574     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16575     $SED '/^$/d' conftest.err >conftest.er2
16576     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16577       lt_prog_compiler_pic_works_GCJ=yes
16578     fi
16579   fi
16580   $rm conftest*
16581
16582fi
16583echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16584echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16585
16586if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16587    case $lt_prog_compiler_pic_GCJ in
16588     "" | " "*) ;;
16589     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16590     esac
16591else
16592    lt_prog_compiler_pic_GCJ=
16593     lt_prog_compiler_can_build_shared_GCJ=no
16594fi
16595
16596fi
16597case $host_os in
16598  # For platforms which do not support PIC, -DPIC is meaningless:
16599  *djgpp*)
16600    lt_prog_compiler_pic_GCJ=
16601    ;;
16602  *)
16603    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16604    ;;
16605esac
16606
16607echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16608echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16609if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16610  echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612  lt_cv_prog_compiler_c_o_GCJ=no
16613   $rm -r conftest 2>/dev/null
16614   mkdir conftest
16615   cd conftest
16616   mkdir out
16617   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16618
16619   lt_compiler_flag="-o out/conftest2.$ac_objext"
16620   # Insert the option either (1) after the last *FLAGS variable, or
16621   # (2) before a word containing "conftest.", or (3) at the end.
16622   # Note that $ac_compile itself does not contain backslashes and begins
16623   # with a dollar sign (not a hyphen), so the echo should work correctly.
16624   lt_compile=`echo "$ac_compile" | $SED \
16625   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16626   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16627   -e 's:$: $lt_compiler_flag:'`
16628   (eval echo "\"\$as_me:16628: $lt_compile\"" >&5)
16629   (eval "$lt_compile" 2>out/conftest.err)
16630   ac_status=$?
16631   cat out/conftest.err >&5
16632   echo "$as_me:16632: \$? = $ac_status" >&5
16633   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16634   then
16635     # The compiler can only warn and ignore the option if not recognized
16636     # So say no if there are warnings
16637     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16638     $SED '/^$/d' out/conftest.err >out/conftest.er2
16639     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16640       lt_cv_prog_compiler_c_o_GCJ=yes
16641     fi
16642   fi
16643   chmod u+w . 2>&5
16644   $rm conftest*
16645   # SGI C++ compiler will create directory out/ii_files/ for
16646   # template instantiation
16647   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16648   $rm out/* && rmdir out
16649   cd ..
16650   rmdir conftest
16651   $rm conftest*
16652
16653fi
16654echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16655echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16656
16657
16658hard_links="nottested"
16659if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16660  # do not overwrite the value of need_locks provided by the user
16661  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16662echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16663  hard_links=yes
16664  $rm conftest*
16665  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16666  touch conftest.a
16667  ln conftest.a conftest.b 2>&5 || hard_links=no
16668  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16669  echo "$as_me:$LINENO: result: $hard_links" >&5
16670echo "${ECHO_T}$hard_links" >&6
16671  if test "$hard_links" = no; then
16672    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16673echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16674    need_locks=warn
16675  fi
16676else
16677  need_locks=no
16678fi
16679
16680echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16681echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16682
16683  runpath_var=
16684  allow_undefined_flag_GCJ=
16685  enable_shared_with_static_runtimes_GCJ=no
16686  archive_cmds_GCJ=
16687  archive_expsym_cmds_GCJ=
16688  old_archive_From_new_cmds_GCJ=
16689  old_archive_from_expsyms_cmds_GCJ=
16690  export_dynamic_flag_spec_GCJ=
16691  whole_archive_flag_spec_GCJ=
16692  thread_safe_flag_spec_GCJ=
16693  hardcode_libdir_flag_spec_GCJ=
16694  hardcode_libdir_flag_spec_ld_GCJ=
16695  hardcode_libdir_separator_GCJ=
16696  hardcode_direct_GCJ=no
16697  hardcode_minus_L_GCJ=no
16698  hardcode_shlibpath_var_GCJ=unsupported
16699  link_all_deplibs_GCJ=unknown
16700  hardcode_automatic_GCJ=no
16701  module_cmds_GCJ=
16702  module_expsym_cmds_GCJ=
16703  always_export_symbols_GCJ=no
16704  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16705  # include_expsyms should be a list of space-separated symbols to be *always*
16706  # included in the symbol list
16707  include_expsyms_GCJ=
16708  # exclude_expsyms can be an extended regexp of symbols to exclude
16709  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16710  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16711  # as well as any symbol that contains `d'.
16712  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16713  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16714  # platforms (ab)use it in PIC code, but their linkers get confused if
16715  # the symbol is explicitly referenced.  Since portable code cannot
16716  # rely on this symbol name, it's probably fine to never include it in
16717  # preloaded symbol tables.
16718  extract_expsyms_cmds=
16719  # Just being paranoid about ensuring that cc_basename is set.
16720  for cc_temp in $compiler""; do
16721  case $cc_temp in
16722    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16723    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16724    \-*) ;;
16725    *) break;;
16726  esac
16727done
16728cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16729
16730  case $host_os in
16731  cygwin* | mingw* | pw32*)
16732    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16733    # When not using gcc, we currently assume that we are using
16734    # Microsoft Visual C++.
16735    if test "$GCC" != yes; then
16736      with_gnu_ld=no
16737    fi
16738    ;;
16739  openbsd*)
16740    with_gnu_ld=no
16741    ;;
16742  esac
16743
16744  ld_shlibs_GCJ=yes
16745  if test "$with_gnu_ld" = yes; then
16746    # If archive_cmds runs LD, not CC, wlarc should be empty
16747    wlarc='${wl}'
16748
16749    # Set some defaults for GNU ld with shared library support. These
16750    # are reset later if shared libraries are not supported. Putting them
16751    # here allows them to be overridden if necessary.
16752    runpath_var=LD_RUN_PATH
16753    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16754    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16755    # ancient GNU ld didn't support --whole-archive et. al.
16756    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16757	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16758      else
16759  	whole_archive_flag_spec_GCJ=
16760    fi
16761    supports_anon_versioning=no
16762    case `$LD -v 2>/dev/null` in
16763      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16764      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16765      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16766      *\ 2.11.*) ;; # other 2.11 versions
16767      *) supports_anon_versioning=yes ;;
16768    esac
16769
16770    # See if GNU ld supports shared libraries.
16771    case $host_os in
16772    aix3* | aix4* | aix5*)
16773      # On AIX/PPC, the GNU linker is very broken
16774      if test "$host_cpu" != ia64; then
16775	ld_shlibs_GCJ=no
16776	cat <<EOF 1>&2
16777
16778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16779*** to be unable to reliably create shared libraries on AIX.
16780*** Therefore, libtool is disabling shared libraries support.  If you
16781*** really care for shared libraries, you may want to modify your PATH
16782*** so that a non-GNU linker is found, and then restart.
16783
16784EOF
16785      fi
16786      ;;
16787
16788    amigaos*)
16789      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)'
16790      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791      hardcode_minus_L_GCJ=yes
16792
16793      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16794      # that the semantics of dynamic libraries on AmigaOS, at least up
16795      # to version 4, is to share data among multiple programs linked
16796      # with the same dynamic library.  Since this doesn't match the
16797      # behavior of shared libraries on other platforms, we can't use
16798      # them.
16799      ld_shlibs_GCJ=no
16800      ;;
16801
16802    beos*)
16803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16804	allow_undefined_flag_GCJ=unsupported
16805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16806	# support --undefined.  This deserves some investigation.  FIXME
16807	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16808      else
16809	ld_shlibs_GCJ=no
16810      fi
16811      ;;
16812
16813    cygwin* | mingw* | pw32*)
16814      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16815      # as there is no search path for DLLs.
16816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817      allow_undefined_flag_GCJ=unsupported
16818      always_export_symbols_GCJ=no
16819      enable_shared_with_static_runtimes_GCJ=yes
16820      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16821
16822      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16823        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16824	# If the export-symbols file already is a .def file (1st line
16825	# is EXPORTS), use it as is; otherwise, prepend...
16826	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16827	  cp $export_symbols $output_objdir/$soname.def;
16828	else
16829	  echo EXPORTS > $output_objdir/$soname.def;
16830	  cat $export_symbols >> $output_objdir/$soname.def;
16831	fi~
16832	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16833      else
16834	ld_shlibs_GCJ=no
16835      fi
16836      ;;
16837
16838    haiku*)
16839      allow_undefined_flag_GCJ=unsupported
16840      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16841      ;;
16842
16843    linux*)
16844      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16845	tmp_addflag=
16846	case $cc_basename,$host_cpu in
16847	pgcc*)				# Portland Group C compiler
16848	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16849	  tmp_addflag=' $pic_flag'
16850	  ;;
16851	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16852	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16853	  tmp_addflag=' $pic_flag -Mnomain' ;;
16854	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16855	  tmp_addflag=' -i_dynamic' ;;
16856	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16857	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16858	ifc* | ifort*)			# Intel Fortran compiler
16859	  tmp_addflag=' -nofor_main' ;;
16860	esac
16861	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862
16863	if test $supports_anon_versioning = yes; then
16864	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16865  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16866  $echo "local: *; };" >> $output_objdir/$libname.ver~
16867	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16868	fi
16869      else
16870	ld_shlibs_GCJ=no
16871      fi
16872      ;;
16873
16874    netbsd*)
16875      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16876	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16877	wlarc=
16878      else
16879	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16880	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16881      fi
16882      ;;
16883
16884    solaris* | sysv5*)
16885      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16886	ld_shlibs_GCJ=no
16887	cat <<EOF 1>&2
16888
16889*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16890*** create shared libraries on Solaris systems.  Therefore, libtool
16891*** is disabling shared libraries support.  We urge you to upgrade GNU
16892*** binutils to release 2.9.1 or newer.  Another option is to modify
16893*** your PATH or compiler configuration so that the native linker is
16894*** used, and then restart.
16895
16896EOF
16897      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16898	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16899	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16900      else
16901	ld_shlibs_GCJ=no
16902      fi
16903      ;;
16904
16905    sunos4*)
16906      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16907      wlarc=
16908      hardcode_direct_GCJ=yes
16909      hardcode_shlibpath_var_GCJ=no
16910      ;;
16911
16912    *)
16913      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16914	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16916      else
16917	ld_shlibs_GCJ=no
16918      fi
16919      ;;
16920    esac
16921
16922    if test "$ld_shlibs_GCJ" = no; then
16923      runpath_var=
16924      hardcode_libdir_flag_spec_GCJ=
16925      export_dynamic_flag_spec_GCJ=
16926      whole_archive_flag_spec_GCJ=
16927    fi
16928  else
16929    # PORTME fill in a description of your system's linker (not GNU ld)
16930    case $host_os in
16931    aix3*)
16932      allow_undefined_flag_GCJ=unsupported
16933      always_export_symbols_GCJ=yes
16934      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'
16935      # Note: this linker hardcodes the directories in LIBPATH if there
16936      # are no directories specified by -L.
16937      hardcode_minus_L_GCJ=yes
16938      if test "$GCC" = yes && test -z "$link_static_flag"; then
16939	# Neither direct hardcoding nor static linking is supported with a
16940	# broken collect2.
16941	hardcode_direct_GCJ=unsupported
16942      fi
16943      ;;
16944
16945    aix4* | aix5*)
16946      if test "$host_cpu" = ia64; then
16947	# On IA64, the linker does run time linking by default, so we don't
16948	# have to do anything special.
16949	aix_use_runtimelinking=no
16950	exp_sym_flag='-Bexport'
16951	no_entry_flag=""
16952      else
16953	# If we're using GNU nm, then we don't want the "-C" option.
16954	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16955	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16956	  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'
16957	else
16958	  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'
16959	fi
16960	aix_use_runtimelinking=no
16961
16962	# Test if we are trying to use run time linking or normal
16963	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16964	# need to do runtime linking.
16965	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16966	  for ld_flag in $LDFLAGS; do
16967  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16968  	    aix_use_runtimelinking=yes
16969  	    break
16970  	  fi
16971	  done
16972	esac
16973
16974	exp_sym_flag='-bexport'
16975	no_entry_flag='-bnoentry'
16976      fi
16977
16978      # When large executables or shared objects are built, AIX ld can
16979      # have problems creating the table of contents.  If linking a library
16980      # or program results in "error TOC overflow" add -mminimal-toc to
16981      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16982      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16983
16984      archive_cmds_GCJ=''
16985      hardcode_direct_GCJ=yes
16986      hardcode_libdir_separator_GCJ=':'
16987      link_all_deplibs_GCJ=yes
16988
16989      if test "$GCC" = yes; then
16990	case $host_os in aix4.[012]|aix4.[012].*)
16991	# We only want to do this on AIX 4.2 and lower, the check
16992	# below for broken collect2 doesn't work under 4.3+
16993	  collect2name=`${CC} -print-prog-name=collect2`
16994	  if test -f "$collect2name" && \
16995  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16996	  then
16997  	  # We have reworked collect2
16998  	  hardcode_direct_GCJ=yes
16999	  else
17000  	  # We have old collect2
17001  	  hardcode_direct_GCJ=unsupported
17002  	  # It fails to find uninstalled libraries when the uninstalled
17003  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17004  	  # to unsupported forces relinking
17005  	  hardcode_minus_L_GCJ=yes
17006  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17007  	  hardcode_libdir_separator_GCJ=
17008	  fi
17009	esac
17010	shared_flag='-shared'
17011	if test "$aix_use_runtimelinking" = yes; then
17012	  shared_flag="$shared_flag "'${wl}-G'
17013	fi
17014      else
17015	# not using gcc
17016	if test "$host_cpu" = ia64; then
17017  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17018  	# chokes on -Wl,-G. The following line is correct:
17019	  shared_flag='-G'
17020	else
17021  	if test "$aix_use_runtimelinking" = yes; then
17022	    shared_flag='${wl}-G'
17023	  else
17024	    shared_flag='${wl}-bM:SRE'
17025  	fi
17026	fi
17027      fi
17028
17029      # It seems that -bexpall does not export symbols beginning with
17030      # underscore (_), so it is better to generate a list of symbols to export.
17031      always_export_symbols_GCJ=yes
17032      if test "$aix_use_runtimelinking" = yes; then
17033	# Warning - without using the other runtime loading flags (-brtl),
17034	# -berok will link without error, but may produce a broken library.
17035	allow_undefined_flag_GCJ='-berok'
17036       # Determine the default libpath from the value encoded in an empty executable.
17037       cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h.  */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h.  */
17043
17044int
17045main ()
17046{
17047
17048  ;
17049  return 0;
17050}
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
17053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054  (eval $ac_link) 2>conftest.er1
17055  ac_status=$?
17056  grep -v '^ *+' conftest.er1 >conftest.err
17057  rm -f conftest.er1
17058  cat conftest.err >&5
17059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060  (exit $ac_status); } &&
17061	 { ac_try='test -z "$ac_c_werror_flag"
17062			 || test ! -s conftest.err'
17063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064  (eval $ac_try) 2>&5
17065  ac_status=$?
17066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067  (exit $ac_status); }; } &&
17068	 { ac_try='test -s conftest$ac_exeext'
17069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070  (eval $ac_try) 2>&5
17071  ac_status=$?
17072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073  (exit $ac_status); }; }; then
17074
17075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17076}'`
17077# Check for a 64-bit object if we didn't find anything.
17078if 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; }
17079}'`; fi
17080else
17081  echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084fi
17085rm -f conftest.err conftest.$ac_objext \
17086      conftest$ac_exeext conftest.$ac_ext
17087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17088
17089       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17090	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"
17091       else
17092	if test "$host_cpu" = ia64; then
17093	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17094	  allow_undefined_flag_GCJ="-z nodefs"
17095	  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"
17096	else
17097	 # Determine the default libpath from the value encoded in an empty executable.
17098	 cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h.  */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h.  */
17104
17105int
17106main ()
17107{
17108
17109  ;
17110  return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115  (eval $ac_link) 2>conftest.er1
17116  ac_status=$?
17117  grep -v '^ *+' conftest.er1 >conftest.err
17118  rm -f conftest.er1
17119  cat conftest.err >&5
17120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121  (exit $ac_status); } &&
17122	 { ac_try='test -z "$ac_c_werror_flag"
17123			 || test ! -s conftest.err'
17124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125  (eval $ac_try) 2>&5
17126  ac_status=$?
17127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128  (exit $ac_status); }; } &&
17129	 { ac_try='test -s conftest$ac_exeext'
17130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131  (eval $ac_try) 2>&5
17132  ac_status=$?
17133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134  (exit $ac_status); }; }; then
17135
17136aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17137}'`
17138# Check for a 64-bit object if we didn't find anything.
17139if 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; }
17140}'`; fi
17141else
17142  echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
17145fi
17146rm -f conftest.err conftest.$ac_objext \
17147      conftest$ac_exeext conftest.$ac_ext
17148if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17149
17150	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17151	  # Warning - without using the other run time loading flags,
17152	  # -berok will link without error, but may produce a broken library.
17153	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17154	  allow_undefined_flag_GCJ=' ${wl}-berok'
17155	  # -bexpall does not export symbols beginning with underscore (_)
17156	  always_export_symbols_GCJ=yes
17157	  # Exported symbols can be pulled into shared objects from archives
17158	  whole_archive_flag_spec_GCJ=' '
17159	  archive_cmds_need_lc_GCJ=yes
17160	  # This is similar to how AIX traditionally builds its shared libraries.
17161	  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'
17162	fi
17163      fi
17164      ;;
17165
17166    amigaos*)
17167      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)'
17168      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17169      hardcode_minus_L_GCJ=yes
17170      # see comment about different semantics on the GNU ld section
17171      ld_shlibs_GCJ=no
17172      ;;
17173
17174    bsdi[45]*)
17175      export_dynamic_flag_spec_GCJ=-rdynamic
17176      ;;
17177
17178    cygwin* | mingw* | pw32*)
17179      # When not using gcc, we currently assume that we are using
17180      # Microsoft Visual C++.
17181      # hardcode_libdir_flag_spec is actually meaningless, as there is
17182      # no search path for DLLs.
17183      hardcode_libdir_flag_spec_GCJ=' '
17184      allow_undefined_flag_GCJ=unsupported
17185      # Tell ltmain to make .lib files, not .a files.
17186      libext=lib
17187      # Tell ltmain to make .dll files, not .so files.
17188      shrext_cmds=".dll"
17189      # FIXME: Setting linknames here is a bad hack.
17190      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17191      # The linker will automatically build a .lib file if we build a DLL.
17192      old_archive_From_new_cmds_GCJ='true'
17193      # FIXME: Should let the user specify the lib program.
17194      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17195      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17196      enable_shared_with_static_runtimes_GCJ=yes
17197      ;;
17198
17199    darwin* | rhapsody*)
17200      case $host_os in
17201        rhapsody* | darwin1.[012])
17202         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17203         ;;
17204       *) # Darwin 1.3 on
17205         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17206           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17207         else
17208           case ${MACOSX_DEPLOYMENT_TARGET} in
17209             10.[012])
17210               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17211               ;;
17212             10.*)
17213               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17214               ;;
17215           esac
17216         fi
17217         ;;
17218      esac
17219      archive_cmds_need_lc_GCJ=no
17220      hardcode_direct_GCJ=no
17221      hardcode_automatic_GCJ=yes
17222      hardcode_shlibpath_var_GCJ=unsupported
17223      whole_archive_flag_spec_GCJ=''
17224      link_all_deplibs_GCJ=yes
17225    if test "$GCC" = yes ; then
17226    	output_verbose_link_cmd='echo'
17227        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17228      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17229      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17230      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17231      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}'
17232    else
17233      case $cc_basename in
17234        xlc*)
17235         output_verbose_link_cmd='echo'
17236         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17237         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17238          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17239         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17240          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}'
17241          ;;
17242       *)
17243         ld_shlibs_GCJ=no
17244          ;;
17245      esac
17246    fi
17247      ;;
17248
17249    dgux*)
17250      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17251      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17252      hardcode_shlibpath_var_GCJ=no
17253      ;;
17254
17255    freebsd1*)
17256      ld_shlibs_GCJ=no
17257      ;;
17258
17259    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17260    # support.  Future versions do this automatically, but an explicit c++rt0.o
17261    # does not break anything, and helps significantly (at the cost of a little
17262    # extra space).
17263    freebsd2.2*)
17264      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17265      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17266      hardcode_direct_GCJ=yes
17267      hardcode_shlibpath_var_GCJ=no
17268      ;;
17269
17270    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17271    freebsd2*)
17272      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17273      hardcode_direct_GCJ=yes
17274      hardcode_minus_L_GCJ=yes
17275      hardcode_shlibpath_var_GCJ=no
17276      ;;
17277
17278    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17279    freebsd* | kfreebsd*-gnu | dragonfly*)
17280      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17281      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17282      hardcode_direct_GCJ=yes
17283      hardcode_shlibpath_var_GCJ=no
17284      ;;
17285
17286    hpux9*)
17287      if test "$GCC" = yes; then
17288	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'
17289      else
17290	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'
17291      fi
17292      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17293      hardcode_libdir_separator_GCJ=:
17294      hardcode_direct_GCJ=yes
17295
17296      # hardcode_minus_L: Not really in the search PATH,
17297      # but as the default location of the library.
17298      hardcode_minus_L_GCJ=yes
17299      export_dynamic_flag_spec_GCJ='${wl}-E'
17300      ;;
17301
17302    hpux10* | hpux11*)
17303      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17304	case $host_cpu in
17305	hppa*64*|ia64*)
17306	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17307	  ;;
17308	*)
17309	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17310	  ;;
17311	esac
17312      else
17313	case $host_cpu in
17314	hppa*64*|ia64*)
17315	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17316	  ;;
17317	*)
17318	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17319	  ;;
17320	esac
17321      fi
17322      if test "$with_gnu_ld" = no; then
17323	case $host_cpu in
17324	hppa*64*)
17325	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17326	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17327	  hardcode_libdir_separator_GCJ=:
17328	  hardcode_direct_GCJ=no
17329	  hardcode_shlibpath_var_GCJ=no
17330	  ;;
17331	ia64*)
17332	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17333	  hardcode_direct_GCJ=no
17334	  hardcode_shlibpath_var_GCJ=no
17335
17336	  # hardcode_minus_L: Not really in the search PATH,
17337	  # but as the default location of the library.
17338	  hardcode_minus_L_GCJ=yes
17339	  ;;
17340	*)
17341	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17342	  hardcode_libdir_separator_GCJ=:
17343	  hardcode_direct_GCJ=yes
17344	  export_dynamic_flag_spec_GCJ='${wl}-E'
17345
17346	  # hardcode_minus_L: Not really in the search PATH,
17347	  # but as the default location of the library.
17348	  hardcode_minus_L_GCJ=yes
17349	  ;;
17350	esac
17351      fi
17352      ;;
17353
17354    irix5* | irix6* | nonstopux*)
17355      if test "$GCC" = yes; then
17356	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'
17357      else
17358	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'
17359	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17360      fi
17361      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17362      hardcode_libdir_separator_GCJ=:
17363      link_all_deplibs_GCJ=yes
17364      ;;
17365
17366    netbsd*)
17367      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17368	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17369      else
17370	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17371      fi
17372      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17373      hardcode_direct_GCJ=yes
17374      hardcode_shlibpath_var_GCJ=no
17375      ;;
17376
17377    newsos6)
17378      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17379      hardcode_direct_GCJ=yes
17380      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17381      hardcode_libdir_separator_GCJ=:
17382      hardcode_shlibpath_var_GCJ=no
17383      ;;
17384
17385    openbsd*)
17386      hardcode_direct_GCJ=yes
17387      hardcode_shlibpath_var_GCJ=no
17388      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17389	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17390	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17391	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17392	export_dynamic_flag_spec_GCJ='${wl}-E'
17393      else
17394       case $host_os in
17395	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17396	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17397	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17398	   ;;
17399	 *)
17400	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17401	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17402	   ;;
17403       esac
17404      fi
17405      ;;
17406
17407    os2*)
17408      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409      hardcode_minus_L_GCJ=yes
17410      allow_undefined_flag_GCJ=unsupported
17411      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'
17412      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17413      ;;
17414
17415    osf3*)
17416      if test "$GCC" = yes; then
17417	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17418	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'
17419      else
17420	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17421	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'
17422      fi
17423      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17424      hardcode_libdir_separator_GCJ=:
17425      ;;
17426
17427    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17428      if test "$GCC" = yes; then
17429	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17430	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'
17431	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17432      else
17433	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17434	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'
17435	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~
17436	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17437
17438	# Both c and cxx compiler support -rpath directly
17439	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17440      fi
17441      hardcode_libdir_separator_GCJ=:
17442      ;;
17443
17444    sco3.2v5*)
17445      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446      hardcode_shlibpath_var_GCJ=no
17447      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17448      runpath_var=LD_RUN_PATH
17449      hardcode_runpath_var=yes
17450      ;;
17451
17452    solaris*)
17453      no_undefined_flag_GCJ=' -z text'
17454      if test "$GCC" = yes; then
17455	wlarc='${wl}'
17456	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17457	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17458	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17459      else
17460	wlarc=''
17461	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17462	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17463  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17464      fi
17465      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17466      hardcode_shlibpath_var_GCJ=no
17467      case $host_os in
17468      solaris2.[0-5] | solaris2.[0-5].*) ;;
17469      *)
17470 	# The compiler driver will combine linker options so we
17471 	# cannot just pass the convience library names through
17472 	# without $wl, iff we do not link with $LD.
17473 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17474 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17475 	case $wlarc in
17476 	'')
17477 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17478 	*)
17479 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17480 	esac ;;
17481      esac
17482      link_all_deplibs_GCJ=yes
17483      ;;
17484
17485    sunos4*)
17486      if test "x$host_vendor" = xsequent; then
17487	# Use $CC to link under sequent, because it throws in some extra .o
17488	# files that make .init and .fini sections work.
17489	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17490      else
17491	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17492      fi
17493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494      hardcode_direct_GCJ=yes
17495      hardcode_minus_L_GCJ=yes
17496      hardcode_shlibpath_var_GCJ=no
17497      ;;
17498
17499    sysv4)
17500      case $host_vendor in
17501	sni)
17502	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17503	  hardcode_direct_GCJ=yes # is this really true???
17504	;;
17505	siemens)
17506	  ## LD is ld it makes a PLAMLIB
17507	  ## CC just makes a GrossModule.
17508	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17509	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17510	  hardcode_direct_GCJ=no
17511        ;;
17512	motorola)
17513	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17514	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17515	;;
17516      esac
17517      runpath_var='LD_RUN_PATH'
17518      hardcode_shlibpath_var_GCJ=no
17519      ;;
17520
17521    sysv4.3*)
17522      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17523      hardcode_shlibpath_var_GCJ=no
17524      export_dynamic_flag_spec_GCJ='-Bexport'
17525      ;;
17526
17527    sysv4*MP*)
17528      if test -d /usr/nec; then
17529	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530	hardcode_shlibpath_var_GCJ=no
17531	runpath_var=LD_RUN_PATH
17532	hardcode_runpath_var=yes
17533	ld_shlibs_GCJ=yes
17534      fi
17535      ;;
17536
17537    sysv4.2uw2*)
17538      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17539      hardcode_direct_GCJ=yes
17540      hardcode_minus_L_GCJ=no
17541      hardcode_shlibpath_var_GCJ=no
17542      hardcode_runpath_var=yes
17543      runpath_var=LD_RUN_PATH
17544      ;;
17545
17546   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17547      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17548      if test "$GCC" = yes; then
17549	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17550      else
17551	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17552      fi
17553      runpath_var='LD_RUN_PATH'
17554      hardcode_shlibpath_var_GCJ=no
17555      ;;
17556
17557    sysv5*)
17558      no_undefined_flag_GCJ=' -z text'
17559      # $CC -shared without GNU ld will not create a library from C++
17560      # object files and a static libstdc++, better avoid it by now
17561      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17563  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17564      hardcode_libdir_flag_spec_GCJ=
17565      hardcode_shlibpath_var_GCJ=no
17566      runpath_var='LD_RUN_PATH'
17567      ;;
17568
17569    uts4*)
17570      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17572      hardcode_shlibpath_var_GCJ=no
17573      ;;
17574
17575    *)
17576      ld_shlibs_GCJ=no
17577      ;;
17578    esac
17579  fi
17580
17581echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17582echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17583test "$ld_shlibs_GCJ" = no && can_build_shared=no
17584
17585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17586if test "$GCC" = yes; then
17587  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17588fi
17589
17590#
17591# Do we need to explicitly link libc?
17592#
17593case "x$archive_cmds_need_lc_GCJ" in
17594x|xyes)
17595  # Assume -lc should be added
17596  archive_cmds_need_lc_GCJ=yes
17597
17598  if test "$enable_shared" = yes && test "$GCC" = yes; then
17599    case $archive_cmds_GCJ in
17600    *'~'*)
17601      # FIXME: we may have to deal with multi-command sequences.
17602      ;;
17603    '$CC '*)
17604      # Test whether the compiler implicitly links with -lc since on some
17605      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17606      # to ld, don't add -lc before -lgcc.
17607      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17609      $rm conftest*
17610      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17611
17612      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17613  (eval $ac_compile) 2>&5
17614  ac_status=$?
17615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616  (exit $ac_status); } 2>conftest.err; then
17617        soname=conftest
17618        lib=conftest
17619        libobjs=conftest.$ac_objext
17620        deplibs=
17621        wl=$lt_prog_compiler_wl_GCJ
17622        compiler_flags=-v
17623        linker_flags=-v
17624        verstring=
17625        output_objdir=.
17626        libname=conftest
17627        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17628        allow_undefined_flag_GCJ=
17629        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17630  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17631  ac_status=$?
17632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633  (exit $ac_status); }
17634        then
17635	  archive_cmds_need_lc_GCJ=no
17636        else
17637	  archive_cmds_need_lc_GCJ=yes
17638        fi
17639        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17640      else
17641        cat conftest.err 1>&5
17642      fi
17643      $rm conftest*
17644      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17645echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17646      ;;
17647    esac
17648  fi
17649  ;;
17650esac
17651
17652echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17653echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17654library_names_spec=
17655libname_spec='lib$name'
17656soname_spec=
17657shrext_cmds=".so"
17658postinstall_cmds=
17659postuninstall_cmds=
17660finish_cmds=
17661finish_eval=
17662shlibpath_var=
17663shlibpath_overrides_runpath=unknown
17664version_type=none
17665dynamic_linker="$host_os ld.so"
17666sys_lib_dlsearch_path_spec="/lib /usr/lib"
17667if test "$GCC" = yes; then
17668  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17669  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17670    # if the path contains ";" then we assume it to be the separator
17671    # otherwise default to the standard path separator (i.e. ":") - it is
17672    # assumed that no part of a normal pathname contains ";" but that should
17673    # okay in the real world where ";" in dirpaths is itself problematic.
17674    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17675  else
17676    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17677  fi
17678else
17679  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17680fi
17681need_lib_prefix=unknown
17682hardcode_into_libs=no
17683
17684# when you set need_version to no, make sure it does not cause -set_version
17685# flags to be left without arguments
17686need_version=unknown
17687
17688case $host_os in
17689aix3*)
17690  version_type=linux
17691  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17692  shlibpath_var=LIBPATH
17693
17694  # AIX 3 has no versioning support, so we append a major version to the name.
17695  soname_spec='${libname}${release}${shared_ext}$major'
17696  ;;
17697
17698aix4* | aix5*)
17699  version_type=linux
17700  need_lib_prefix=no
17701  need_version=no
17702  hardcode_into_libs=yes
17703  if test "$host_cpu" = ia64; then
17704    # AIX 5 supports IA64
17705    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17706    shlibpath_var=LD_LIBRARY_PATH
17707  else
17708    # With GCC up to 2.95.x, collect2 would create an import file
17709    # for dependence libraries.  The import file would start with
17710    # the line `#! .'.  This would cause the generated library to
17711    # depend on `.', always an invalid library.  This was fixed in
17712    # development snapshots of GCC prior to 3.0.
17713    case $host_os in
17714      aix4 | aix4.[01] | aix4.[01].*)
17715      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17716	   echo ' yes '
17717	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17718	:
17719      else
17720	can_build_shared=no
17721      fi
17722      ;;
17723    esac
17724    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17725    # soname into executable. Probably we can add versioning support to
17726    # collect2, so additional links can be useful in future.
17727    if test "$aix_use_runtimelinking" = yes; then
17728      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17729      # instead of lib<name>.a to let people know that these are not
17730      # typical AIX shared libraries.
17731      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732    else
17733      # We preserve .a as extension for shared libraries through AIX4.2
17734      # and later when we are not doing run time linking.
17735      library_names_spec='${libname}${release}.a $libname.a'
17736      soname_spec='${libname}${release}${shared_ext}$major'
17737    fi
17738    shlibpath_var=LIBPATH
17739  fi
17740  ;;
17741
17742amigaos*)
17743  library_names_spec='$libname.ixlibrary $libname.a'
17744  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17745  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'
17746  ;;
17747
17748beos*)
17749  library_names_spec='${libname}${shared_ext}'
17750  dynamic_linker="$host_os ld.so"
17751  shlibpath_var=LIBRARY_PATH
17752  ;;
17753
17754bsdi[45]*)
17755  version_type=linux
17756  need_version=no
17757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758  soname_spec='${libname}${release}${shared_ext}$major'
17759  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17760  shlibpath_var=LD_LIBRARY_PATH
17761  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17762  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17763  # the default ld.so.conf also contains /usr/contrib/lib and
17764  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17765  # libtool to hard-code these into programs
17766  ;;
17767
17768cygwin* | mingw* | pw32*)
17769  version_type=windows
17770  shrext_cmds=".dll"
17771  need_version=no
17772  need_lib_prefix=no
17773
17774  case $GCC,$host_os in
17775  yes,cygwin* | yes,mingw* | yes,pw32*)
17776    library_names_spec='$libname.dll.a'
17777    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17778    postinstall_cmds='base_file=`basename \${file}`~
17779      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17780      dldir=$destdir/`dirname \$dlpath`~
17781      test -d \$dldir || mkdir -p \$dldir~
17782      $install_prog $dir/$dlname \$dldir/$dlname~
17783      chmod a+x \$dldir/$dlname'
17784    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17785      dlpath=$dir/\$dldll~
17786       $rm \$dlpath'
17787    shlibpath_overrides_runpath=yes
17788
17789    case $host_os in
17790    cygwin*)
17791      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17792      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17793      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17794      ;;
17795    mingw*)
17796      # MinGW DLLs use traditional 'lib' prefix
17797      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17798      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17799      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17800        # It is most probably a Windows format PATH printed by
17801        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17802        # path with ; separators, and with drive letters. We can handle the
17803        # drive letters (cygwin fileutils understands them), so leave them,
17804        # especially as we might pass files found there to a mingw objdump,
17805        # which wouldn't understand a cygwinified path. Ahh.
17806        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17807      else
17808        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17809      fi
17810      ;;
17811    pw32*)
17812      # pw32 DLLs use 'pw' prefix rather than 'lib'
17813      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17814      ;;
17815    esac
17816    ;;
17817
17818  *)
17819    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17820    ;;
17821  esac
17822  dynamic_linker='Win32 ld.exe'
17823  # FIXME: first we should search . and the directory the executable is in
17824  shlibpath_var=PATH
17825  ;;
17826
17827darwin* | rhapsody*)
17828  dynamic_linker="$host_os dyld"
17829  version_type=darwin
17830  need_lib_prefix=no
17831  need_version=no
17832  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17833  soname_spec='${libname}${release}${major}$shared_ext'
17834  shlibpath_overrides_runpath=yes
17835  shlibpath_var=DYLD_LIBRARY_PATH
17836  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17837  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17838  if test "$GCC" = yes; then
17839    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"`
17840  else
17841    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17842  fi
17843  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17844  ;;
17845
17846dgux*)
17847  version_type=linux
17848  need_lib_prefix=no
17849  need_version=no
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17851  soname_spec='${libname}${release}${shared_ext}$major'
17852  shlibpath_var=LD_LIBRARY_PATH
17853  ;;
17854
17855freebsd1*)
17856  dynamic_linker=no
17857  ;;
17858
17859haiku*)
17860  library_names_spec='${libname}${shared_ext}'
17861  dynamic_linker="$host_os ld.so"
17862  shlibpath_var=LIBRARY_PATH
17863  ;;
17864
17865kfreebsd*-gnu)
17866  version_type=linux
17867  need_lib_prefix=no
17868  need_version=no
17869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17870  soname_spec='${libname}${release}${shared_ext}$major'
17871  shlibpath_var=LD_LIBRARY_PATH
17872  shlibpath_overrides_runpath=no
17873  hardcode_into_libs=yes
17874  dynamic_linker='GNU ld.so'
17875  ;;
17876
17877freebsd* | dragonfly*)
17878  # DragonFly does not have aout.  When/if they implement a new
17879  # versioning mechanism, adjust this.
17880  if test -x /usr/bin/objformat; then
17881    objformat=`/usr/bin/objformat`
17882  else
17883    case $host_os in
17884    freebsd[123]*) objformat=aout ;;
17885    *) objformat=elf ;;
17886    esac
17887  fi
17888  version_type=freebsd-$objformat
17889  case $version_type in
17890    freebsd-elf*)
17891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892      need_version=no
17893      need_lib_prefix=no
17894      ;;
17895    freebsd-*)
17896      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17897      need_version=yes
17898      ;;
17899  esac
17900  shlibpath_var=LD_LIBRARY_PATH
17901  case $host_os in
17902  freebsd2*)
17903    shlibpath_overrides_runpath=yes
17904    ;;
17905  freebsd3.[01]* | freebsdelf3.[01]*)
17906    shlibpath_overrides_runpath=yes
17907    hardcode_into_libs=yes
17908    ;;
17909  *) # from 3.2 on
17910    shlibpath_overrides_runpath=no
17911    hardcode_into_libs=yes
17912    ;;
17913  esac
17914  ;;
17915
17916gnu*)
17917  version_type=linux
17918  need_lib_prefix=no
17919  need_version=no
17920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17921  soname_spec='${libname}${release}${shared_ext}$major'
17922  shlibpath_var=LD_LIBRARY_PATH
17923  hardcode_into_libs=yes
17924  ;;
17925
17926hpux9* | hpux10* | hpux11*)
17927  # Give a soname corresponding to the major version so that dld.sl refuses to
17928  # link against other versions.
17929  version_type=sunos
17930  need_lib_prefix=no
17931  need_version=no
17932  case $host_cpu in
17933  ia64*)
17934    shrext_cmds='.so'
17935    hardcode_into_libs=yes
17936    dynamic_linker="$host_os dld.so"
17937    shlibpath_var=LD_LIBRARY_PATH
17938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940    soname_spec='${libname}${release}${shared_ext}$major'
17941    if test "X$HPUX_IA64_MODE" = X32; then
17942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17943    else
17944      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17945    fi
17946    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17947    ;;
17948   hppa*64*)
17949     shrext_cmds='.sl'
17950     hardcode_into_libs=yes
17951     dynamic_linker="$host_os dld.sl"
17952     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17953     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955     soname_spec='${libname}${release}${shared_ext}$major'
17956     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17958     ;;
17959   *)
17960    shrext_cmds='.sl'
17961    dynamic_linker="$host_os dld.sl"
17962    shlibpath_var=SHLIB_PATH
17963    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965    soname_spec='${libname}${release}${shared_ext}$major'
17966    ;;
17967  esac
17968  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17969  postinstall_cmds='chmod 555 $lib'
17970  ;;
17971
17972irix5* | irix6* | nonstopux*)
17973  case $host_os in
17974    nonstopux*) version_type=nonstopux ;;
17975    *)
17976	if test "$lt_cv_prog_gnu_ld" = yes; then
17977		version_type=linux
17978	else
17979		version_type=irix
17980	fi ;;
17981  esac
17982  need_lib_prefix=no
17983  need_version=no
17984  soname_spec='${libname}${release}${shared_ext}$major'
17985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17986  case $host_os in
17987  irix5* | nonstopux*)
17988    libsuff= shlibsuff=
17989    ;;
17990  *)
17991    case $LD in # libtool.m4 will add one of these switches to LD
17992    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17993      libsuff= shlibsuff= libmagic=32-bit;;
17994    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17995      libsuff=32 shlibsuff=N32 libmagic=N32;;
17996    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17997      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17998    *) libsuff= shlibsuff= libmagic=never-match;;
17999    esac
18000    ;;
18001  esac
18002  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18003  shlibpath_overrides_runpath=no
18004  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18005  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18006  hardcode_into_libs=yes
18007  ;;
18008
18009# No shared lib support for Linux oldld, aout, or coff.
18010linux*oldld* | linux*aout* | linux*coff*)
18011  dynamic_linker=no
18012  ;;
18013
18014# This must be Linux ELF.
18015linux*)
18016  version_type=linux
18017  need_lib_prefix=no
18018  need_version=no
18019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020  soname_spec='${libname}${release}${shared_ext}$major'
18021  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18022  shlibpath_var=LD_LIBRARY_PATH
18023  shlibpath_overrides_runpath=no
18024  # This implies no fast_install, which is unacceptable.
18025  # Some rework will be needed to allow for fast_install
18026  # before this can be enabled.
18027  hardcode_into_libs=yes
18028
18029  # Append ld.so.conf contents to the search path
18030  if test -f /etc/ld.so.conf; then
18031    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18032    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18033  fi
18034
18035  # We used to test for /lib/ld.so.1 and disable shared libraries on
18036  # powerpc, because MkLinux only supported shared libraries with the
18037  # GNU dynamic linker.  Since this was broken with cross compilers,
18038  # most powerpc-linux boxes support dynamic linking these days and
18039  # people can always --disable-shared, the test was removed, and we
18040  # assume the GNU/Linux dynamic linker is in use.
18041  dynamic_linker='GNU/Linux ld.so'
18042  ;;
18043
18044knetbsd*-gnu)
18045  version_type=linux
18046  need_lib_prefix=no
18047  need_version=no
18048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18049  soname_spec='${libname}${release}${shared_ext}$major'
18050  shlibpath_var=LD_LIBRARY_PATH
18051  shlibpath_overrides_runpath=no
18052  hardcode_into_libs=yes
18053  dynamic_linker='GNU ld.so'
18054  ;;
18055
18056netbsd*)
18057  version_type=sunos
18058  need_lib_prefix=no
18059  need_version=no
18060  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18061    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18062    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18063    dynamic_linker='NetBSD (a.out) ld.so'
18064  else
18065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18066    soname_spec='${libname}${release}${shared_ext}$major'
18067    dynamic_linker='NetBSD ld.elf_so'
18068  fi
18069  shlibpath_var=LD_LIBRARY_PATH
18070  shlibpath_overrides_runpath=yes
18071  hardcode_into_libs=yes
18072  ;;
18073
18074newsos6)
18075  version_type=linux
18076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077  shlibpath_var=LD_LIBRARY_PATH
18078  shlibpath_overrides_runpath=yes
18079  ;;
18080
18081nto-qnx*)
18082  version_type=linux
18083  need_lib_prefix=no
18084  need_version=no
18085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086  soname_spec='${libname}${release}${shared_ext}$major'
18087  shlibpath_var=LD_LIBRARY_PATH
18088  shlibpath_overrides_runpath=yes
18089  ;;
18090
18091openbsd*)
18092  version_type=sunos
18093  need_lib_prefix=no
18094  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18095  case $host_os in
18096    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18097    *)                         need_version=no  ;;
18098  esac
18099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18100  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18101  shlibpath_var=LD_LIBRARY_PATH
18102  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18103    case $host_os in
18104      openbsd2.[89] | openbsd2.[89].*)
18105	shlibpath_overrides_runpath=no
18106	;;
18107      *)
18108	shlibpath_overrides_runpath=yes
18109	;;
18110      esac
18111  else
18112    shlibpath_overrides_runpath=yes
18113  fi
18114  ;;
18115
18116os2*)
18117  libname_spec='$name'
18118  shrext_cmds=".dll"
18119  need_lib_prefix=no
18120  library_names_spec='$libname${shared_ext} $libname.a'
18121  dynamic_linker='OS/2 ld.exe'
18122  shlibpath_var=LIBPATH
18123  ;;
18124
18125osf3* | osf4* | osf5*)
18126  version_type=osf
18127  need_lib_prefix=no
18128  need_version=no
18129  soname_spec='${libname}${release}${shared_ext}$major'
18130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131  shlibpath_var=LD_LIBRARY_PATH
18132  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18133  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18134  ;;
18135
18136sco3.2v5*)
18137  version_type=osf
18138  soname_spec='${libname}${release}${shared_ext}$major'
18139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140  shlibpath_var=LD_LIBRARY_PATH
18141  ;;
18142
18143solaris*)
18144  version_type=linux
18145  need_lib_prefix=no
18146  need_version=no
18147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148  soname_spec='${libname}${release}${shared_ext}$major'
18149  shlibpath_var=LD_LIBRARY_PATH
18150  shlibpath_overrides_runpath=yes
18151  hardcode_into_libs=yes
18152  # ldd complains unless libraries are executable
18153  postinstall_cmds='chmod +x $lib'
18154  ;;
18155
18156sunos4*)
18157  version_type=sunos
18158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18159  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18160  shlibpath_var=LD_LIBRARY_PATH
18161  shlibpath_overrides_runpath=yes
18162  if test "$with_gnu_ld" = yes; then
18163    need_lib_prefix=no
18164  fi
18165  need_version=yes
18166  ;;
18167
18168sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18169  version_type=linux
18170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171  soname_spec='${libname}${release}${shared_ext}$major'
18172  shlibpath_var=LD_LIBRARY_PATH
18173  case $host_vendor in
18174    sni)
18175      shlibpath_overrides_runpath=no
18176      need_lib_prefix=no
18177      export_dynamic_flag_spec='${wl}-Blargedynsym'
18178      runpath_var=LD_RUN_PATH
18179      ;;
18180    siemens)
18181      need_lib_prefix=no
18182      ;;
18183    motorola)
18184      need_lib_prefix=no
18185      need_version=no
18186      shlibpath_overrides_runpath=no
18187      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18188      ;;
18189  esac
18190  ;;
18191
18192sysv4*MP*)
18193  if test -d /usr/nec ;then
18194    version_type=linux
18195    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18196    soname_spec='$libname${shared_ext}.$major'
18197    shlibpath_var=LD_LIBRARY_PATH
18198  fi
18199  ;;
18200
18201uts4*)
18202  version_type=linux
18203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204  soname_spec='${libname}${release}${shared_ext}$major'
18205  shlibpath_var=LD_LIBRARY_PATH
18206  ;;
18207
18208*)
18209  dynamic_linker=no
18210  ;;
18211esac
18212echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18213echo "${ECHO_T}$dynamic_linker" >&6
18214test "$dynamic_linker" = no && can_build_shared=no
18215
18216echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18217echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18218hardcode_action_GCJ=
18219if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18220   test -n "$runpath_var_GCJ" || \
18221   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18222
18223  # We can hardcode non-existant directories.
18224  if test "$hardcode_direct_GCJ" != no &&
18225     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18226     # have to relink, otherwise we might link with an installed library
18227     # when we should be linking with a yet-to-be-installed one
18228     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18229     test "$hardcode_minus_L_GCJ" != no; then
18230    # Linking always hardcodes the temporary library directory.
18231    hardcode_action_GCJ=relink
18232  else
18233    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18234    hardcode_action_GCJ=immediate
18235  fi
18236else
18237  # We cannot hardcode anything, or else we can only hardcode existing
18238  # directories.
18239  hardcode_action_GCJ=unsupported
18240fi
18241echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18242echo "${ECHO_T}$hardcode_action_GCJ" >&6
18243
18244if test "$hardcode_action_GCJ" = relink; then
18245  # Fast installation is not supported
18246  enable_fast_install=no
18247elif test "$shlibpath_overrides_runpath" = yes ||
18248     test "$enable_shared" = no; then
18249  # Fast installation is not necessary
18250  enable_fast_install=needless
18251fi
18252
18253striplib=
18254old_striplib=
18255echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18256echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18257if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18258  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18259  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18260  echo "$as_me:$LINENO: result: yes" >&5
18261echo "${ECHO_T}yes" >&6
18262else
18263# FIXME - insert some real tests, host_os isn't really good enough
18264  case $host_os in
18265   darwin*)
18266       if test -n "$STRIP" ; then
18267         striplib="$STRIP -x"
18268         echo "$as_me:$LINENO: result: yes" >&5
18269echo "${ECHO_T}yes" >&6
18270       else
18271  echo "$as_me:$LINENO: result: no" >&5
18272echo "${ECHO_T}no" >&6
18273fi
18274       ;;
18275   *)
18276  echo "$as_me:$LINENO: result: no" >&5
18277echo "${ECHO_T}no" >&6
18278    ;;
18279  esac
18280fi
18281
18282if test "x$enable_dlopen" != xyes; then
18283  enable_dlopen=unknown
18284  enable_dlopen_self=unknown
18285  enable_dlopen_self_static=unknown
18286else
18287  lt_cv_dlopen=no
18288  lt_cv_dlopen_libs=
18289
18290  case $host_os in
18291  beos*)
18292    lt_cv_dlopen="load_add_on"
18293    lt_cv_dlopen_libs=
18294    lt_cv_dlopen_self=yes
18295    ;;
18296
18297  mingw* | pw32*)
18298    lt_cv_dlopen="LoadLibrary"
18299    lt_cv_dlopen_libs=
18300   ;;
18301
18302  cygwin*)
18303    lt_cv_dlopen="dlopen"
18304    lt_cv_dlopen_libs=
18305   ;;
18306
18307  darwin*)
18308  # if libdl is installed we need to link against it
18309    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18312  echo $ECHO_N "(cached) $ECHO_C" >&6
18313else
18314  ac_check_lib_save_LIBS=$LIBS
18315LIBS="-ldl  $LIBS"
18316cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h.  */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h.  */
18322
18323/* Override any gcc2 internal prototype to avoid an error.  */
18324#ifdef __cplusplus
18325extern "C"
18326#endif
18327/* We use char because int might match the return type of a gcc2
18328   builtin and then its argument prototype would still apply.  */
18329char dlopen ();
18330int
18331main ()
18332{
18333dlopen ();
18334  ;
18335  return 0;
18336}
18337_ACEOF
18338rm -f conftest.$ac_objext conftest$ac_exeext
18339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340  (eval $ac_link) 2>conftest.er1
18341  ac_status=$?
18342  grep -v '^ *+' conftest.er1 >conftest.err
18343  rm -f conftest.er1
18344  cat conftest.err >&5
18345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346  (exit $ac_status); } &&
18347	 { ac_try='test -z "$ac_c_werror_flag"
18348			 || test ! -s conftest.err'
18349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350  (eval $ac_try) 2>&5
18351  ac_status=$?
18352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353  (exit $ac_status); }; } &&
18354	 { ac_try='test -s conftest$ac_exeext'
18355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356  (eval $ac_try) 2>&5
18357  ac_status=$?
18358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359  (exit $ac_status); }; }; then
18360  ac_cv_lib_dl_dlopen=yes
18361else
18362  echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365ac_cv_lib_dl_dlopen=no
18366fi
18367rm -f conftest.err conftest.$ac_objext \
18368      conftest$ac_exeext conftest.$ac_ext
18369LIBS=$ac_check_lib_save_LIBS
18370fi
18371echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18372echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18373if test $ac_cv_lib_dl_dlopen = yes; then
18374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18375else
18376
18377    lt_cv_dlopen="dyld"
18378    lt_cv_dlopen_libs=
18379    lt_cv_dlopen_self=yes
18380
18381fi
18382
18383   ;;
18384
18385  haiku*)
18386    lt_cv_dlopen="load_add_on"
18387    lt_cv_dlopen_libs=
18388    lt_cv_dlopen_self=yes
18389    ;;
18390
18391  *)
18392    echo "$as_me:$LINENO: checking for shl_load" >&5
18393echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18394if test "${ac_cv_func_shl_load+set}" = set; then
18395  echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397  cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h.  */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h.  */
18403/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18405#define shl_load innocuous_shl_load
18406
18407/* System header to define __stub macros and hopefully few prototypes,
18408    which can conflict with char shl_load (); below.
18409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18410    <limits.h> exists even on freestanding compilers.  */
18411
18412#ifdef __STDC__
18413# include <limits.h>
18414#else
18415# include <assert.h>
18416#endif
18417
18418#undef shl_load
18419
18420/* Override any gcc2 internal prototype to avoid an error.  */
18421#ifdef __cplusplus
18422extern "C"
18423{
18424#endif
18425/* We use char because int might match the return type of a gcc2
18426   builtin and then its argument prototype would still apply.  */
18427char shl_load ();
18428/* The GNU C library defines this for functions which it implements
18429    to always fail with ENOSYS.  Some functions are actually named
18430    something starting with __ and the normal name is an alias.  */
18431#if defined (__stub_shl_load) || defined (__stub___shl_load)
18432choke me
18433#else
18434char (*f) () = shl_load;
18435#endif
18436#ifdef __cplusplus
18437}
18438#endif
18439
18440int
18441main ()
18442{
18443return f != shl_load;
18444  ;
18445  return 0;
18446}
18447_ACEOF
18448rm -f conftest.$ac_objext conftest$ac_exeext
18449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18450  (eval $ac_link) 2>conftest.er1
18451  ac_status=$?
18452  grep -v '^ *+' conftest.er1 >conftest.err
18453  rm -f conftest.er1
18454  cat conftest.err >&5
18455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456  (exit $ac_status); } &&
18457	 { ac_try='test -z "$ac_c_werror_flag"
18458			 || test ! -s conftest.err'
18459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460  (eval $ac_try) 2>&5
18461  ac_status=$?
18462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); }; } &&
18464	 { ac_try='test -s conftest$ac_exeext'
18465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466  (eval $ac_try) 2>&5
18467  ac_status=$?
18468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469  (exit $ac_status); }; }; then
18470  ac_cv_func_shl_load=yes
18471else
18472  echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_cv_func_shl_load=no
18476fi
18477rm -f conftest.err conftest.$ac_objext \
18478      conftest$ac_exeext conftest.$ac_ext
18479fi
18480echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18481echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18482if test $ac_cv_func_shl_load = yes; then
18483  lt_cv_dlopen="shl_load"
18484else
18485  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18486echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18487if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18488  echo $ECHO_N "(cached) $ECHO_C" >&6
18489else
18490  ac_check_lib_save_LIBS=$LIBS
18491LIBS="-ldld  $LIBS"
18492cat >conftest.$ac_ext <<_ACEOF
18493/* confdefs.h.  */
18494_ACEOF
18495cat confdefs.h >>conftest.$ac_ext
18496cat >>conftest.$ac_ext <<_ACEOF
18497/* end confdefs.h.  */
18498
18499/* Override any gcc2 internal prototype to avoid an error.  */
18500#ifdef __cplusplus
18501extern "C"
18502#endif
18503/* We use char because int might match the return type of a gcc2
18504   builtin and then its argument prototype would still apply.  */
18505char shl_load ();
18506int
18507main ()
18508{
18509shl_load ();
18510  ;
18511  return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext conftest$ac_exeext
18515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516  (eval $ac_link) 2>conftest.er1
18517  ac_status=$?
18518  grep -v '^ *+' conftest.er1 >conftest.err
18519  rm -f conftest.er1
18520  cat conftest.err >&5
18521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522  (exit $ac_status); } &&
18523	 { ac_try='test -z "$ac_c_werror_flag"
18524			 || test ! -s conftest.err'
18525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526  (eval $ac_try) 2>&5
18527  ac_status=$?
18528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529  (exit $ac_status); }; } &&
18530	 { ac_try='test -s conftest$ac_exeext'
18531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532  (eval $ac_try) 2>&5
18533  ac_status=$?
18534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535  (exit $ac_status); }; }; then
18536  ac_cv_lib_dld_shl_load=yes
18537else
18538  echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
18541ac_cv_lib_dld_shl_load=no
18542fi
18543rm -f conftest.err conftest.$ac_objext \
18544      conftest$ac_exeext conftest.$ac_ext
18545LIBS=$ac_check_lib_save_LIBS
18546fi
18547echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18548echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18549if test $ac_cv_lib_dld_shl_load = yes; then
18550  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18551else
18552  echo "$as_me:$LINENO: checking for dlopen" >&5
18553echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18554if test "${ac_cv_func_dlopen+set}" = set; then
18555  echo $ECHO_N "(cached) $ECHO_C" >&6
18556else
18557  cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h.  */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h.  */
18563/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18564   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18565#define dlopen innocuous_dlopen
18566
18567/* System header to define __stub macros and hopefully few prototypes,
18568    which can conflict with char dlopen (); below.
18569    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570    <limits.h> exists even on freestanding compilers.  */
18571
18572#ifdef __STDC__
18573# include <limits.h>
18574#else
18575# include <assert.h>
18576#endif
18577
18578#undef dlopen
18579
18580/* Override any gcc2 internal prototype to avoid an error.  */
18581#ifdef __cplusplus
18582extern "C"
18583{
18584#endif
18585/* We use char because int might match the return type of a gcc2
18586   builtin and then its argument prototype would still apply.  */
18587char dlopen ();
18588/* The GNU C library defines this for functions which it implements
18589    to always fail with ENOSYS.  Some functions are actually named
18590    something starting with __ and the normal name is an alias.  */
18591#if defined (__stub_dlopen) || defined (__stub___dlopen)
18592choke me
18593#else
18594char (*f) () = dlopen;
18595#endif
18596#ifdef __cplusplus
18597}
18598#endif
18599
18600int
18601main ()
18602{
18603return f != dlopen;
18604  ;
18605  return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext conftest$ac_exeext
18609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18610  (eval $ac_link) 2>conftest.er1
18611  ac_status=$?
18612  grep -v '^ *+' conftest.er1 >conftest.err
18613  rm -f conftest.er1
18614  cat conftest.err >&5
18615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616  (exit $ac_status); } &&
18617	 { ac_try='test -z "$ac_c_werror_flag"
18618			 || test ! -s conftest.err'
18619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620  (eval $ac_try) 2>&5
18621  ac_status=$?
18622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623  (exit $ac_status); }; } &&
18624	 { ac_try='test -s conftest$ac_exeext'
18625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626  (eval $ac_try) 2>&5
18627  ac_status=$?
18628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629  (exit $ac_status); }; }; then
18630  ac_cv_func_dlopen=yes
18631else
18632  echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635ac_cv_func_dlopen=no
18636fi
18637rm -f conftest.err conftest.$ac_objext \
18638      conftest$ac_exeext conftest.$ac_ext
18639fi
18640echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18641echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18642if test $ac_cv_func_dlopen = yes; then
18643  lt_cv_dlopen="dlopen"
18644else
18645  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18647if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18648  echo $ECHO_N "(cached) $ECHO_C" >&6
18649else
18650  ac_check_lib_save_LIBS=$LIBS
18651LIBS="-ldl  $LIBS"
18652cat >conftest.$ac_ext <<_ACEOF
18653/* confdefs.h.  */
18654_ACEOF
18655cat confdefs.h >>conftest.$ac_ext
18656cat >>conftest.$ac_ext <<_ACEOF
18657/* end confdefs.h.  */
18658
18659/* Override any gcc2 internal prototype to avoid an error.  */
18660#ifdef __cplusplus
18661extern "C"
18662#endif
18663/* We use char because int might match the return type of a gcc2
18664   builtin and then its argument prototype would still apply.  */
18665char dlopen ();
18666int
18667main ()
18668{
18669dlopen ();
18670  ;
18671  return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext conftest$ac_exeext
18675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676  (eval $ac_link) 2>conftest.er1
18677  ac_status=$?
18678  grep -v '^ *+' conftest.er1 >conftest.err
18679  rm -f conftest.er1
18680  cat conftest.err >&5
18681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682  (exit $ac_status); } &&
18683	 { ac_try='test -z "$ac_c_werror_flag"
18684			 || test ! -s conftest.err'
18685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686  (eval $ac_try) 2>&5
18687  ac_status=$?
18688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689  (exit $ac_status); }; } &&
18690	 { ac_try='test -s conftest$ac_exeext'
18691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692  (eval $ac_try) 2>&5
18693  ac_status=$?
18694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695  (exit $ac_status); }; }; then
18696  ac_cv_lib_dl_dlopen=yes
18697else
18698  echo "$as_me: failed program was:" >&5
18699sed 's/^/| /' conftest.$ac_ext >&5
18700
18701ac_cv_lib_dl_dlopen=no
18702fi
18703rm -f conftest.err conftest.$ac_objext \
18704      conftest$ac_exeext conftest.$ac_ext
18705LIBS=$ac_check_lib_save_LIBS
18706fi
18707echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18708echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18709if test $ac_cv_lib_dl_dlopen = yes; then
18710  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18711else
18712  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18713echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18714if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18715  echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717  ac_check_lib_save_LIBS=$LIBS
18718LIBS="-lsvld  $LIBS"
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h.  */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h.  */
18725
18726/* Override any gcc2 internal prototype to avoid an error.  */
18727#ifdef __cplusplus
18728extern "C"
18729#endif
18730/* We use char because int might match the return type of a gcc2
18731   builtin and then its argument prototype would still apply.  */
18732char dlopen ();
18733int
18734main ()
18735{
18736dlopen ();
18737  ;
18738  return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743  (eval $ac_link) 2>conftest.er1
18744  ac_status=$?
18745  grep -v '^ *+' conftest.er1 >conftest.err
18746  rm -f conftest.er1
18747  cat conftest.err >&5
18748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749  (exit $ac_status); } &&
18750	 { ac_try='test -z "$ac_c_werror_flag"
18751			 || test ! -s conftest.err'
18752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753  (eval $ac_try) 2>&5
18754  ac_status=$?
18755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756  (exit $ac_status); }; } &&
18757	 { ac_try='test -s conftest$ac_exeext'
18758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759  (eval $ac_try) 2>&5
18760  ac_status=$?
18761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762  (exit $ac_status); }; }; then
18763  ac_cv_lib_svld_dlopen=yes
18764else
18765  echo "$as_me: failed program was:" >&5
18766sed 's/^/| /' conftest.$ac_ext >&5
18767
18768ac_cv_lib_svld_dlopen=no
18769fi
18770rm -f conftest.err conftest.$ac_objext \
18771      conftest$ac_exeext conftest.$ac_ext
18772LIBS=$ac_check_lib_save_LIBS
18773fi
18774echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18775echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18776if test $ac_cv_lib_svld_dlopen = yes; then
18777  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18778else
18779  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18780echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18781if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18782  echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784  ac_check_lib_save_LIBS=$LIBS
18785LIBS="-ldld  $LIBS"
18786cat >conftest.$ac_ext <<_ACEOF
18787/* confdefs.h.  */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h.  */
18792
18793/* Override any gcc2 internal prototype to avoid an error.  */
18794#ifdef __cplusplus
18795extern "C"
18796#endif
18797/* We use char because int might match the return type of a gcc2
18798   builtin and then its argument prototype would still apply.  */
18799char dld_link ();
18800int
18801main ()
18802{
18803dld_link ();
18804  ;
18805  return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext conftest$ac_exeext
18809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810  (eval $ac_link) 2>conftest.er1
18811  ac_status=$?
18812  grep -v '^ *+' conftest.er1 >conftest.err
18813  rm -f conftest.er1
18814  cat conftest.err >&5
18815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816  (exit $ac_status); } &&
18817	 { ac_try='test -z "$ac_c_werror_flag"
18818			 || test ! -s conftest.err'
18819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820  (eval $ac_try) 2>&5
18821  ac_status=$?
18822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823  (exit $ac_status); }; } &&
18824	 { ac_try='test -s conftest$ac_exeext'
18825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826  (eval $ac_try) 2>&5
18827  ac_status=$?
18828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829  (exit $ac_status); }; }; then
18830  ac_cv_lib_dld_dld_link=yes
18831else
18832  echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835ac_cv_lib_dld_dld_link=no
18836fi
18837rm -f conftest.err conftest.$ac_objext \
18838      conftest$ac_exeext conftest.$ac_ext
18839LIBS=$ac_check_lib_save_LIBS
18840fi
18841echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18842echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18843if test $ac_cv_lib_dld_dld_link = yes; then
18844  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18845fi
18846
18847
18848fi
18849
18850
18851fi
18852
18853
18854fi
18855
18856
18857fi
18858
18859
18860fi
18861
18862    ;;
18863  esac
18864
18865  if test "x$lt_cv_dlopen" != xno; then
18866    enable_dlopen=yes
18867  else
18868    enable_dlopen=no
18869  fi
18870
18871  case $lt_cv_dlopen in
18872  dlopen)
18873    save_CPPFLAGS="$CPPFLAGS"
18874    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18875
18876    save_LDFLAGS="$LDFLAGS"
18877    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18878
18879    save_LIBS="$LIBS"
18880    LIBS="$lt_cv_dlopen_libs $LIBS"
18881
18882    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18883echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18884if test "${lt_cv_dlopen_self+set}" = set; then
18885  echo $ECHO_N "(cached) $ECHO_C" >&6
18886else
18887  	  if test "$cross_compiling" = yes; then :
18888  lt_cv_dlopen_self=cross
18889else
18890  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18891  lt_status=$lt_dlunknown
18892  cat > conftest.$ac_ext <<EOF
18893#line 18893 "configure"
18894#include "confdefs.h"
18895
18896#if HAVE_DLFCN_H
18897#include <dlfcn.h>
18898#endif
18899
18900#include <stdio.h>
18901
18902#ifdef RTLD_GLOBAL
18903#  define LT_DLGLOBAL		RTLD_GLOBAL
18904#else
18905#  ifdef DL_GLOBAL
18906#    define LT_DLGLOBAL		DL_GLOBAL
18907#  else
18908#    define LT_DLGLOBAL		0
18909#  endif
18910#endif
18911
18912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18913   find out it does not work in some platform. */
18914#ifndef LT_DLLAZY_OR_NOW
18915#  ifdef RTLD_LAZY
18916#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18917#  else
18918#    ifdef DL_LAZY
18919#      define LT_DLLAZY_OR_NOW		DL_LAZY
18920#    else
18921#      ifdef RTLD_NOW
18922#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18923#      else
18924#        ifdef DL_NOW
18925#          define LT_DLLAZY_OR_NOW	DL_NOW
18926#        else
18927#          define LT_DLLAZY_OR_NOW	0
18928#        endif
18929#      endif
18930#    endif
18931#  endif
18932#endif
18933
18934#ifdef __cplusplus
18935extern "C" void exit (int);
18936#endif
18937
18938void fnord() { int i=42;}
18939int main ()
18940{
18941  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18942  int status = $lt_dlunknown;
18943
18944  if (self)
18945    {
18946      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18947      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18948      /* dlclose (self); */
18949    }
18950
18951    exit (status);
18952}
18953EOF
18954  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955  (eval $ac_link) 2>&5
18956  ac_status=$?
18957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18959    (./conftest; exit; ) >&5 2>/dev/null
18960    lt_status=$?
18961    case x$lt_status in
18962      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18963      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18964      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18965    esac
18966  else :
18967    # compilation failed
18968    lt_cv_dlopen_self=no
18969  fi
18970fi
18971rm -fr conftest*
18972
18973
18974fi
18975echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18976echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18977
18978    if test "x$lt_cv_dlopen_self" = xyes; then
18979      LDFLAGS="$LDFLAGS $link_static_flag"
18980      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18981echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18982if test "${lt_cv_dlopen_self_static+set}" = set; then
18983  echo $ECHO_N "(cached) $ECHO_C" >&6
18984else
18985  	  if test "$cross_compiling" = yes; then :
18986  lt_cv_dlopen_self_static=cross
18987else
18988  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18989  lt_status=$lt_dlunknown
18990  cat > conftest.$ac_ext <<EOF
18991#line 18991 "configure"
18992#include "confdefs.h"
18993
18994#if HAVE_DLFCN_H
18995#include <dlfcn.h>
18996#endif
18997
18998#include <stdio.h>
18999
19000#ifdef RTLD_GLOBAL
19001#  define LT_DLGLOBAL		RTLD_GLOBAL
19002#else
19003#  ifdef DL_GLOBAL
19004#    define LT_DLGLOBAL		DL_GLOBAL
19005#  else
19006#    define LT_DLGLOBAL		0
19007#  endif
19008#endif
19009
19010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19011   find out it does not work in some platform. */
19012#ifndef LT_DLLAZY_OR_NOW
19013#  ifdef RTLD_LAZY
19014#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19015#  else
19016#    ifdef DL_LAZY
19017#      define LT_DLLAZY_OR_NOW		DL_LAZY
19018#    else
19019#      ifdef RTLD_NOW
19020#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19021#      else
19022#        ifdef DL_NOW
19023#          define LT_DLLAZY_OR_NOW	DL_NOW
19024#        else
19025#          define LT_DLLAZY_OR_NOW	0
19026#        endif
19027#      endif
19028#    endif
19029#  endif
19030#endif
19031
19032#ifdef __cplusplus
19033extern "C" void exit (int);
19034#endif
19035
19036void fnord() { int i=42;}
19037int main ()
19038{
19039  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19040  int status = $lt_dlunknown;
19041
19042  if (self)
19043    {
19044      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19045      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19046      /* dlclose (self); */
19047    }
19048
19049    exit (status);
19050}
19051EOF
19052  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19053  (eval $ac_link) 2>&5
19054  ac_status=$?
19055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19057    (./conftest; exit; ) >&5 2>/dev/null
19058    lt_status=$?
19059    case x$lt_status in
19060      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19061      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19062      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19063    esac
19064  else :
19065    # compilation failed
19066    lt_cv_dlopen_self_static=no
19067  fi
19068fi
19069rm -fr conftest*
19070
19071
19072fi
19073echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19074echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19075    fi
19076
19077    CPPFLAGS="$save_CPPFLAGS"
19078    LDFLAGS="$save_LDFLAGS"
19079    LIBS="$save_LIBS"
19080    ;;
19081  esac
19082
19083  case $lt_cv_dlopen_self in
19084  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19085  *) enable_dlopen_self=unknown ;;
19086  esac
19087
19088  case $lt_cv_dlopen_self_static in
19089  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19090  *) enable_dlopen_self_static=unknown ;;
19091  esac
19092fi
19093
19094
19095# The else clause should only fire when bootstrapping the
19096# libtool distribution, otherwise you forgot to ship ltmain.sh
19097# with your package, and you will get complaints that there are
19098# no rules to generate ltmain.sh.
19099if test -f "$ltmain"; then
19100  # See if we are running on zsh, and set the options which allow our commands through
19101  # without removal of \ escapes.
19102  if test -n "${ZSH_VERSION+set}" ; then
19103    setopt NO_GLOB_SUBST
19104  fi
19105  # Now quote all the things that may contain metacharacters while being
19106  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19107  # variables and quote the copies for generation of the libtool script.
19108  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19109    SED SHELL STRIP \
19110    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19111    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19112    deplibs_check_method reload_flag reload_cmds need_locks \
19113    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19114    lt_cv_sys_global_symbol_to_c_name_address \
19115    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19116    old_postinstall_cmds old_postuninstall_cmds \
19117    compiler_GCJ \
19118    CC_GCJ \
19119    LD_GCJ \
19120    lt_prog_compiler_wl_GCJ \
19121    lt_prog_compiler_pic_GCJ \
19122    lt_prog_compiler_static_GCJ \
19123    lt_prog_compiler_no_builtin_flag_GCJ \
19124    export_dynamic_flag_spec_GCJ \
19125    thread_safe_flag_spec_GCJ \
19126    whole_archive_flag_spec_GCJ \
19127    enable_shared_with_static_runtimes_GCJ \
19128    old_archive_cmds_GCJ \
19129    old_archive_from_new_cmds_GCJ \
19130    predep_objects_GCJ \
19131    postdep_objects_GCJ \
19132    predeps_GCJ \
19133    postdeps_GCJ \
19134    compiler_lib_search_path_GCJ \
19135    archive_cmds_GCJ \
19136    archive_expsym_cmds_GCJ \
19137    postinstall_cmds_GCJ \
19138    postuninstall_cmds_GCJ \
19139    old_archive_from_expsyms_cmds_GCJ \
19140    allow_undefined_flag_GCJ \
19141    no_undefined_flag_GCJ \
19142    export_symbols_cmds_GCJ \
19143    hardcode_libdir_flag_spec_GCJ \
19144    hardcode_libdir_flag_spec_ld_GCJ \
19145    hardcode_libdir_separator_GCJ \
19146    hardcode_automatic_GCJ \
19147    module_cmds_GCJ \
19148    module_expsym_cmds_GCJ \
19149    lt_cv_prog_compiler_c_o_GCJ \
19150    exclude_expsyms_GCJ \
19151    include_expsyms_GCJ; do
19152
19153    case $var in
19154    old_archive_cmds_GCJ | \
19155    old_archive_from_new_cmds_GCJ | \
19156    archive_cmds_GCJ | \
19157    archive_expsym_cmds_GCJ | \
19158    module_cmds_GCJ | \
19159    module_expsym_cmds_GCJ | \
19160    old_archive_from_expsyms_cmds_GCJ | \
19161    export_symbols_cmds_GCJ | \
19162    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19163    postinstall_cmds | postuninstall_cmds | \
19164    old_postinstall_cmds | old_postuninstall_cmds | \
19165    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19166      # Double-quote double-evaled strings.
19167      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19168      ;;
19169    *)
19170      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19171      ;;
19172    esac
19173  done
19174
19175  case $lt_echo in
19176  *'\$0 --fallback-echo"')
19177    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19178    ;;
19179  esac
19180
19181cfgfile="$ofile"
19182
19183  cat <<__EOF__ >> "$cfgfile"
19184# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19185
19186# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19187
19188# Shell to use when invoking shell scripts.
19189SHELL=$lt_SHELL
19190
19191# Whether or not to build shared libraries.
19192build_libtool_libs=$enable_shared
19193
19194# Whether or not to build static libraries.
19195build_old_libs=$enable_static
19196
19197# Whether or not to add -lc for building shared libraries.
19198build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19199
19200# Whether or not to disallow shared libs when runtime libs are static
19201allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19202
19203# Whether or not to optimize for fast installation.
19204fast_install=$enable_fast_install
19205
19206# The host system.
19207host_alias=$host_alias
19208host=$host
19209host_os=$host_os
19210
19211# The build system.
19212build_alias=$build_alias
19213build=$build
19214build_os=$build_os
19215
19216# An echo program that does not interpret backslashes.
19217echo=$lt_echo
19218
19219# The archiver.
19220AR=$lt_AR
19221AR_FLAGS=$lt_AR_FLAGS
19222
19223# A C compiler.
19224LTCC=$lt_LTCC
19225
19226# A language-specific compiler.
19227CC=$lt_compiler_GCJ
19228
19229# Is the compiler the GNU C compiler?
19230with_gcc=$GCC_GCJ
19231
19232# An ERE matcher.
19233EGREP=$lt_EGREP
19234
19235# The linker used to build libraries.
19236LD=$lt_LD_GCJ
19237
19238# Whether we need hard or soft links.
19239LN_S=$lt_LN_S
19240
19241# A BSD-compatible nm program.
19242NM=$lt_NM
19243
19244# A symbol stripping program
19245STRIP=$lt_STRIP
19246
19247# Used to examine libraries when file_magic_cmd begins "file"
19248MAGIC_CMD=$MAGIC_CMD
19249
19250# Used on cygwin: DLL creation program.
19251DLLTOOL="$DLLTOOL"
19252
19253# Used on cygwin: object dumper.
19254OBJDUMP="$OBJDUMP"
19255
19256# Used on cygwin: assembler.
19257AS="$AS"
19258
19259# The name of the directory that contains temporary libtool files.
19260objdir=$objdir
19261
19262# How to create reloadable object files.
19263reload_flag=$lt_reload_flag
19264reload_cmds=$lt_reload_cmds
19265
19266# How to pass a linker flag through the compiler.
19267wl=$lt_lt_prog_compiler_wl_GCJ
19268
19269# Object file suffix (normally "o").
19270objext="$ac_objext"
19271
19272# Old archive suffix (normally "a").
19273libext="$libext"
19274
19275# Shared library suffix (normally ".so").
19276shrext_cmds='$shrext_cmds'
19277
19278# Executable file suffix (normally "").
19279exeext="$exeext"
19280
19281# Additional compiler flags for building library objects.
19282pic_flag=$lt_lt_prog_compiler_pic_GCJ
19283pic_mode=$pic_mode
19284
19285# What is the maximum length of a command?
19286max_cmd_len=$lt_cv_sys_max_cmd_len
19287
19288# Does compiler simultaneously support -c and -o options?
19289compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19290
19291# Must we lock files when doing compilation?
19292need_locks=$lt_need_locks
19293
19294# Do we need the lib prefix for modules?
19295need_lib_prefix=$need_lib_prefix
19296
19297# Do we need a version for libraries?
19298need_version=$need_version
19299
19300# Whether dlopen is supported.
19301dlopen_support=$enable_dlopen
19302
19303# Whether dlopen of programs is supported.
19304dlopen_self=$enable_dlopen_self
19305
19306# Whether dlopen of statically linked programs is supported.
19307dlopen_self_static=$enable_dlopen_self_static
19308
19309# Compiler flag to prevent dynamic linking.
19310link_static_flag=$lt_lt_prog_compiler_static_GCJ
19311
19312# Compiler flag to turn off builtin functions.
19313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19314
19315# Compiler flag to allow reflexive dlopens.
19316export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19317
19318# Compiler flag to generate shared objects directly from archives.
19319whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19320
19321# Compiler flag to generate thread-safe objects.
19322thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19323
19324# Library versioning type.
19325version_type=$version_type
19326
19327# Format of library name prefix.
19328libname_spec=$lt_libname_spec
19329
19330# List of archive names.  First name is the real one, the rest are links.
19331# The last name is the one that the linker finds with -lNAME.
19332library_names_spec=$lt_library_names_spec
19333
19334# The coded name of the library, if different from the real name.
19335soname_spec=$lt_soname_spec
19336
19337# Commands used to build and install an old-style archive.
19338RANLIB=$lt_RANLIB
19339old_archive_cmds=$lt_old_archive_cmds_GCJ
19340old_postinstall_cmds=$lt_old_postinstall_cmds
19341old_postuninstall_cmds=$lt_old_postuninstall_cmds
19342
19343# Create an old-style archive from a shared archive.
19344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19345
19346# Create a temporary old-style archive to link instead of a shared archive.
19347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19348
19349# Commands used to build and install a shared archive.
19350archive_cmds=$lt_archive_cmds_GCJ
19351archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19352postinstall_cmds=$lt_postinstall_cmds
19353postuninstall_cmds=$lt_postuninstall_cmds
19354
19355# Commands used to build a loadable module (assumed same as above if empty)
19356module_cmds=$lt_module_cmds_GCJ
19357module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19358
19359# Commands to strip libraries.
19360old_striplib=$lt_old_striplib
19361striplib=$lt_striplib
19362
19363# Dependencies to place before the objects being linked to create a
19364# shared library.
19365predep_objects=$lt_predep_objects_GCJ
19366
19367# Dependencies to place after the objects being linked to create a
19368# shared library.
19369postdep_objects=$lt_postdep_objects_GCJ
19370
19371# Dependencies to place before the objects being linked to create a
19372# shared library.
19373predeps=$lt_predeps_GCJ
19374
19375# Dependencies to place after the objects being linked to create a
19376# shared library.
19377postdeps=$lt_postdeps_GCJ
19378
19379# The library search path used internally by the compiler when linking
19380# a shared library.
19381compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19382
19383# Method to check whether dependent libraries are shared objects.
19384deplibs_check_method=$lt_deplibs_check_method
19385
19386# Command to use when deplibs_check_method == file_magic.
19387file_magic_cmd=$lt_file_magic_cmd
19388
19389# Flag that allows shared libraries with undefined symbols to be built.
19390allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19391
19392# Flag that forces no undefined symbols.
19393no_undefined_flag=$lt_no_undefined_flag_GCJ
19394
19395# Commands used to finish a libtool library installation in a directory.
19396finish_cmds=$lt_finish_cmds
19397
19398# Same as above, but a single script fragment to be evaled but not shown.
19399finish_eval=$lt_finish_eval
19400
19401# Take the output of nm and produce a listing of raw symbols and C names.
19402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19403
19404# Transform the output of nm in a proper C declaration
19405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19406
19407# Transform the output of nm in a C name address pair
19408global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19409
19410# This is the shared library runtime path variable.
19411runpath_var=$runpath_var
19412
19413# This is the shared library path variable.
19414shlibpath_var=$shlibpath_var
19415
19416# Is shlibpath searched before the hard-coded library search path?
19417shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19418
19419# How to hardcode a shared library path into an executable.
19420hardcode_action=$hardcode_action_GCJ
19421
19422# Whether we should hardcode library paths into libraries.
19423hardcode_into_libs=$hardcode_into_libs
19424
19425# Flag to hardcode \$libdir into a binary during linking.
19426# This must work even if \$libdir does not exist.
19427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19428
19429# If ld is used when linking, flag to hardcode \$libdir into
19430# a binary during linking. This must work even if \$libdir does
19431# not exist.
19432hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19433
19434# Whether we need a single -rpath flag with a separated argument.
19435hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19436
19437# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19438# resulting binary.
19439hardcode_direct=$hardcode_direct_GCJ
19440
19441# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19442# resulting binary.
19443hardcode_minus_L=$hardcode_minus_L_GCJ
19444
19445# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19446# the resulting binary.
19447hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19448
19449# Set to yes if building a shared library automatically hardcodes DIR into the library
19450# and all subsequent libraries and executables linked against it.
19451hardcode_automatic=$hardcode_automatic_GCJ
19452
19453# Variables whose values should be saved in libtool wrapper scripts and
19454# restored at relink time.
19455variables_saved_for_relink="$variables_saved_for_relink"
19456
19457# Whether libtool must link a program against all its dependency libraries.
19458link_all_deplibs=$link_all_deplibs_GCJ
19459
19460# Compile-time system search path for libraries
19461sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19462
19463# Run-time system search path for libraries
19464sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19465
19466# Fix the shell variable \$srcfile for the compiler.
19467fix_srcfile_path="$fix_srcfile_path_GCJ"
19468
19469# Set to yes if exported symbols are required.
19470always_export_symbols=$always_export_symbols_GCJ
19471
19472# The commands to list exported symbols.
19473export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19474
19475# The commands to extract the exported symbol list from a shared archive.
19476extract_expsyms_cmds=$lt_extract_expsyms_cmds
19477
19478# Symbols that should not be listed in the preloaded symbols.
19479exclude_expsyms=$lt_exclude_expsyms_GCJ
19480
19481# Symbols that must always be exported.
19482include_expsyms=$lt_include_expsyms_GCJ
19483
19484# ### END LIBTOOL TAG CONFIG: $tagname
19485
19486__EOF__
19487
19488
19489else
19490  # If there is no Makefile yet, we rely on a make rule to execute
19491  # `config.status --recheck' to rerun these tests and create the
19492  # libtool script then.
19493  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19494  if test -f "$ltmain_in"; then
19495    test -f Makefile && make "$ltmain"
19496  fi
19497fi
19498
19499
19500ac_ext=c
19501ac_cpp='$CPP $CPPFLAGS'
19502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504ac_compiler_gnu=$ac_cv_c_compiler_gnu
19505
19506CC="$lt_save_CC"
19507
19508	else
19509	  tagname=""
19510	fi
19511	;;
19512
19513      RC)
19514
19515
19516
19517# Source file extension for RC test sources.
19518ac_ext=rc
19519
19520# Object file extension for compiled RC test sources.
19521objext=o
19522objext_RC=$objext
19523
19524# Code to be used in simple compile tests
19525lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19526
19527# Code to be used in simple link tests
19528lt_simple_link_test_code="$lt_simple_compile_test_code"
19529
19530# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19531
19532# If no C compiler was specified, use CC.
19533LTCC=${LTCC-"$CC"}
19534
19535# Allow CC to be a program name with arguments.
19536compiler=$CC
19537
19538
19539# save warnings/boilerplate of simple test code
19540ac_outfile=conftest.$ac_objext
19541printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19542eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19543_lt_compiler_boilerplate=`cat conftest.err`
19544$rm conftest*
19545
19546ac_outfile=conftest.$ac_objext
19547printf "$lt_simple_link_test_code" >conftest.$ac_ext
19548eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19549_lt_linker_boilerplate=`cat conftest.err`
19550$rm conftest*
19551
19552
19553# Allow CC to be a program name with arguments.
19554lt_save_CC="$CC"
19555CC=${RC-"windres"}
19556compiler=$CC
19557compiler_RC=$CC
19558for cc_temp in $compiler""; do
19559  case $cc_temp in
19560    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19561    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19562    \-*) ;;
19563    *) break;;
19564  esac
19565done
19566cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19567
19568lt_cv_prog_compiler_c_o_RC=yes
19569
19570# The else clause should only fire when bootstrapping the
19571# libtool distribution, otherwise you forgot to ship ltmain.sh
19572# with your package, and you will get complaints that there are
19573# no rules to generate ltmain.sh.
19574if test -f "$ltmain"; then
19575  # See if we are running on zsh, and set the options which allow our commands through
19576  # without removal of \ escapes.
19577  if test -n "${ZSH_VERSION+set}" ; then
19578    setopt NO_GLOB_SUBST
19579  fi
19580  # Now quote all the things that may contain metacharacters while being
19581  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19582  # variables and quote the copies for generation of the libtool script.
19583  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19584    SED SHELL STRIP \
19585    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19586    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19587    deplibs_check_method reload_flag reload_cmds need_locks \
19588    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19589    lt_cv_sys_global_symbol_to_c_name_address \
19590    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19591    old_postinstall_cmds old_postuninstall_cmds \
19592    compiler_RC \
19593    CC_RC \
19594    LD_RC \
19595    lt_prog_compiler_wl_RC \
19596    lt_prog_compiler_pic_RC \
19597    lt_prog_compiler_static_RC \
19598    lt_prog_compiler_no_builtin_flag_RC \
19599    export_dynamic_flag_spec_RC \
19600    thread_safe_flag_spec_RC \
19601    whole_archive_flag_spec_RC \
19602    enable_shared_with_static_runtimes_RC \
19603    old_archive_cmds_RC \
19604    old_archive_from_new_cmds_RC \
19605    predep_objects_RC \
19606    postdep_objects_RC \
19607    predeps_RC \
19608    postdeps_RC \
19609    compiler_lib_search_path_RC \
19610    archive_cmds_RC \
19611    archive_expsym_cmds_RC \
19612    postinstall_cmds_RC \
19613    postuninstall_cmds_RC \
19614    old_archive_from_expsyms_cmds_RC \
19615    allow_undefined_flag_RC \
19616    no_undefined_flag_RC \
19617    export_symbols_cmds_RC \
19618    hardcode_libdir_flag_spec_RC \
19619    hardcode_libdir_flag_spec_ld_RC \
19620    hardcode_libdir_separator_RC \
19621    hardcode_automatic_RC \
19622    module_cmds_RC \
19623    module_expsym_cmds_RC \
19624    lt_cv_prog_compiler_c_o_RC \
19625    exclude_expsyms_RC \
19626    include_expsyms_RC; do
19627
19628    case $var in
19629    old_archive_cmds_RC | \
19630    old_archive_from_new_cmds_RC | \
19631    archive_cmds_RC | \
19632    archive_expsym_cmds_RC | \
19633    module_cmds_RC | \
19634    module_expsym_cmds_RC | \
19635    old_archive_from_expsyms_cmds_RC | \
19636    export_symbols_cmds_RC | \
19637    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19638    postinstall_cmds | postuninstall_cmds | \
19639    old_postinstall_cmds | old_postuninstall_cmds | \
19640    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19641      # Double-quote double-evaled strings.
19642      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19643      ;;
19644    *)
19645      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19646      ;;
19647    esac
19648  done
19649
19650  case $lt_echo in
19651  *'\$0 --fallback-echo"')
19652    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19653    ;;
19654  esac
19655
19656cfgfile="$ofile"
19657
19658  cat <<__EOF__ >> "$cfgfile"
19659# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19660
19661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19662
19663# Shell to use when invoking shell scripts.
19664SHELL=$lt_SHELL
19665
19666# Whether or not to build shared libraries.
19667build_libtool_libs=$enable_shared
19668
19669# Whether or not to build static libraries.
19670build_old_libs=$enable_static
19671
19672# Whether or not to add -lc for building shared libraries.
19673build_libtool_need_lc=$archive_cmds_need_lc_RC
19674
19675# Whether or not to disallow shared libs when runtime libs are static
19676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19677
19678# Whether or not to optimize for fast installation.
19679fast_install=$enable_fast_install
19680
19681# The host system.
19682host_alias=$host_alias
19683host=$host
19684host_os=$host_os
19685
19686# The build system.
19687build_alias=$build_alias
19688build=$build
19689build_os=$build_os
19690
19691# An echo program that does not interpret backslashes.
19692echo=$lt_echo
19693
19694# The archiver.
19695AR=$lt_AR
19696AR_FLAGS=$lt_AR_FLAGS
19697
19698# A C compiler.
19699LTCC=$lt_LTCC
19700
19701# A language-specific compiler.
19702CC=$lt_compiler_RC
19703
19704# Is the compiler the GNU C compiler?
19705with_gcc=$GCC_RC
19706
19707# An ERE matcher.
19708EGREP=$lt_EGREP
19709
19710# The linker used to build libraries.
19711LD=$lt_LD_RC
19712
19713# Whether we need hard or soft links.
19714LN_S=$lt_LN_S
19715
19716# A BSD-compatible nm program.
19717NM=$lt_NM
19718
19719# A symbol stripping program
19720STRIP=$lt_STRIP
19721
19722# Used to examine libraries when file_magic_cmd begins "file"
19723MAGIC_CMD=$MAGIC_CMD
19724
19725# Used on cygwin: DLL creation program.
19726DLLTOOL="$DLLTOOL"
19727
19728# Used on cygwin: object dumper.
19729OBJDUMP="$OBJDUMP"
19730
19731# Used on cygwin: assembler.
19732AS="$AS"
19733
19734# The name of the directory that contains temporary libtool files.
19735objdir=$objdir
19736
19737# How to create reloadable object files.
19738reload_flag=$lt_reload_flag
19739reload_cmds=$lt_reload_cmds
19740
19741# How to pass a linker flag through the compiler.
19742wl=$lt_lt_prog_compiler_wl_RC
19743
19744# Object file suffix (normally "o").
19745objext="$ac_objext"
19746
19747# Old archive suffix (normally "a").
19748libext="$libext"
19749
19750# Shared library suffix (normally ".so").
19751shrext_cmds='$shrext_cmds'
19752
19753# Executable file suffix (normally "").
19754exeext="$exeext"
19755
19756# Additional compiler flags for building library objects.
19757pic_flag=$lt_lt_prog_compiler_pic_RC
19758pic_mode=$pic_mode
19759
19760# What is the maximum length of a command?
19761max_cmd_len=$lt_cv_sys_max_cmd_len
19762
19763# Does compiler simultaneously support -c and -o options?
19764compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19765
19766# Must we lock files when doing compilation?
19767need_locks=$lt_need_locks
19768
19769# Do we need the lib prefix for modules?
19770need_lib_prefix=$need_lib_prefix
19771
19772# Do we need a version for libraries?
19773need_version=$need_version
19774
19775# Whether dlopen is supported.
19776dlopen_support=$enable_dlopen
19777
19778# Whether dlopen of programs is supported.
19779dlopen_self=$enable_dlopen_self
19780
19781# Whether dlopen of statically linked programs is supported.
19782dlopen_self_static=$enable_dlopen_self_static
19783
19784# Compiler flag to prevent dynamic linking.
19785link_static_flag=$lt_lt_prog_compiler_static_RC
19786
19787# Compiler flag to turn off builtin functions.
19788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19789
19790# Compiler flag to allow reflexive dlopens.
19791export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19792
19793# Compiler flag to generate shared objects directly from archives.
19794whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19795
19796# Compiler flag to generate thread-safe objects.
19797thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19798
19799# Library versioning type.
19800version_type=$version_type
19801
19802# Format of library name prefix.
19803libname_spec=$lt_libname_spec
19804
19805# List of archive names.  First name is the real one, the rest are links.
19806# The last name is the one that the linker finds with -lNAME.
19807library_names_spec=$lt_library_names_spec
19808
19809# The coded name of the library, if different from the real name.
19810soname_spec=$lt_soname_spec
19811
19812# Commands used to build and install an old-style archive.
19813RANLIB=$lt_RANLIB
19814old_archive_cmds=$lt_old_archive_cmds_RC
19815old_postinstall_cmds=$lt_old_postinstall_cmds
19816old_postuninstall_cmds=$lt_old_postuninstall_cmds
19817
19818# Create an old-style archive from a shared archive.
19819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19820
19821# Create a temporary old-style archive to link instead of a shared archive.
19822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19823
19824# Commands used to build and install a shared archive.
19825archive_cmds=$lt_archive_cmds_RC
19826archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19827postinstall_cmds=$lt_postinstall_cmds
19828postuninstall_cmds=$lt_postuninstall_cmds
19829
19830# Commands used to build a loadable module (assumed same as above if empty)
19831module_cmds=$lt_module_cmds_RC
19832module_expsym_cmds=$lt_module_expsym_cmds_RC
19833
19834# Commands to strip libraries.
19835old_striplib=$lt_old_striplib
19836striplib=$lt_striplib
19837
19838# Dependencies to place before the objects being linked to create a
19839# shared library.
19840predep_objects=$lt_predep_objects_RC
19841
19842# Dependencies to place after the objects being linked to create a
19843# shared library.
19844postdep_objects=$lt_postdep_objects_RC
19845
19846# Dependencies to place before the objects being linked to create a
19847# shared library.
19848predeps=$lt_predeps_RC
19849
19850# Dependencies to place after the objects being linked to create a
19851# shared library.
19852postdeps=$lt_postdeps_RC
19853
19854# The library search path used internally by the compiler when linking
19855# a shared library.
19856compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19857
19858# Method to check whether dependent libraries are shared objects.
19859deplibs_check_method=$lt_deplibs_check_method
19860
19861# Command to use when deplibs_check_method == file_magic.
19862file_magic_cmd=$lt_file_magic_cmd
19863
19864# Flag that allows shared libraries with undefined symbols to be built.
19865allow_undefined_flag=$lt_allow_undefined_flag_RC
19866
19867# Flag that forces no undefined symbols.
19868no_undefined_flag=$lt_no_undefined_flag_RC
19869
19870# Commands used to finish a libtool library installation in a directory.
19871finish_cmds=$lt_finish_cmds
19872
19873# Same as above, but a single script fragment to be evaled but not shown.
19874finish_eval=$lt_finish_eval
19875
19876# Take the output of nm and produce a listing of raw symbols and C names.
19877global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19878
19879# Transform the output of nm in a proper C declaration
19880global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19881
19882# Transform the output of nm in a C name address pair
19883global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19884
19885# This is the shared library runtime path variable.
19886runpath_var=$runpath_var
19887
19888# This is the shared library path variable.
19889shlibpath_var=$shlibpath_var
19890
19891# Is shlibpath searched before the hard-coded library search path?
19892shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19893
19894# How to hardcode a shared library path into an executable.
19895hardcode_action=$hardcode_action_RC
19896
19897# Whether we should hardcode library paths into libraries.
19898hardcode_into_libs=$hardcode_into_libs
19899
19900# Flag to hardcode \$libdir into a binary during linking.
19901# This must work even if \$libdir does not exist.
19902hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19903
19904# If ld is used when linking, flag to hardcode \$libdir into
19905# a binary during linking. This must work even if \$libdir does
19906# not exist.
19907hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19908
19909# Whether we need a single -rpath flag with a separated argument.
19910hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19911
19912# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19913# resulting binary.
19914hardcode_direct=$hardcode_direct_RC
19915
19916# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19917# resulting binary.
19918hardcode_minus_L=$hardcode_minus_L_RC
19919
19920# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19921# the resulting binary.
19922hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19923
19924# Set to yes if building a shared library automatically hardcodes DIR into the library
19925# and all subsequent libraries and executables linked against it.
19926hardcode_automatic=$hardcode_automatic_RC
19927
19928# Variables whose values should be saved in libtool wrapper scripts and
19929# restored at relink time.
19930variables_saved_for_relink="$variables_saved_for_relink"
19931
19932# Whether libtool must link a program against all its dependency libraries.
19933link_all_deplibs=$link_all_deplibs_RC
19934
19935# Compile-time system search path for libraries
19936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19937
19938# Run-time system search path for libraries
19939sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19940
19941# Fix the shell variable \$srcfile for the compiler.
19942fix_srcfile_path="$fix_srcfile_path_RC"
19943
19944# Set to yes if exported symbols are required.
19945always_export_symbols=$always_export_symbols_RC
19946
19947# The commands to list exported symbols.
19948export_symbols_cmds=$lt_export_symbols_cmds_RC
19949
19950# The commands to extract the exported symbol list from a shared archive.
19951extract_expsyms_cmds=$lt_extract_expsyms_cmds
19952
19953# Symbols that should not be listed in the preloaded symbols.
19954exclude_expsyms=$lt_exclude_expsyms_RC
19955
19956# Symbols that must always be exported.
19957include_expsyms=$lt_include_expsyms_RC
19958
19959# ### END LIBTOOL TAG CONFIG: $tagname
19960
19961__EOF__
19962
19963
19964else
19965  # If there is no Makefile yet, we rely on a make rule to execute
19966  # `config.status --recheck' to rerun these tests and create the
19967  # libtool script then.
19968  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19969  if test -f "$ltmain_in"; then
19970    test -f Makefile && make "$ltmain"
19971  fi
19972fi
19973
19974
19975ac_ext=c
19976ac_cpp='$CPP $CPPFLAGS'
19977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979ac_compiler_gnu=$ac_cv_c_compiler_gnu
19980
19981CC="$lt_save_CC"
19982
19983	;;
19984
19985      *)
19986	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19987echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19988   { (exit 1); exit 1; }; }
19989	;;
19990      esac
19991
19992      # Append the new tag name to the list of available tags.
19993      if test -n "$tagname" ; then
19994      available_tags="$available_tags $tagname"
19995    fi
19996    fi
19997  done
19998  IFS="$lt_save_ifs"
19999
20000  # Now substitute the updated list of available tags.
20001  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20002    mv "${ofile}T" "$ofile"
20003    chmod +x "$ofile"
20004  else
20005    rm -f "${ofile}T"
20006    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20007echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20008   { (exit 1); exit 1; }; }
20009  fi
20010fi
20011
20012
20013
20014# This can be used to rebuild libtool when needed
20015LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20016
20017# Always use our own libtool.
20018LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20019
20020# Prevent multiple expansion
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043if ./libtool --features | grep '^enable static libraries$' > /dev/null 2>&1; then
20044  STATIC=-static
20045else
20046  STATIC=
20047fi
20048
20049
20050
20051
20052if grep '^global_symbol_pipe=..*$' ./libtool >/dev/null; then
20053  BINARY_HELLDL_TRUE=
20054  BINARY_HELLDL_FALSE='#'
20055else
20056  BINARY_HELLDL_TRUE='#'
20057  BINARY_HELLDL_FALSE=
20058fi
20059
20060
20061
20062## ---------------------------- ##
20063## C headers required by cdemo. ##
20064## ---------------------------- ##
20065
20066
20067for ac_header in string.h math.h
20068do
20069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20070if eval "test \"\${$as_ac_Header+set}\" = set"; then
20071  echo "$as_me:$LINENO: checking for $ac_header" >&5
20072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20073if eval "test \"\${$as_ac_Header+set}\" = set"; then
20074  echo $ECHO_N "(cached) $ECHO_C" >&6
20075fi
20076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20078else
20079  # Is the header compilable?
20080echo "$as_me:$LINENO: checking $ac_header usability" >&5
20081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20082cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h.  */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h.  */
20088$ac_includes_default
20089#include <$ac_header>
20090_ACEOF
20091rm -f conftest.$ac_objext
20092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20093  (eval $ac_compile) 2>conftest.er1
20094  ac_status=$?
20095  grep -v '^ *+' conftest.er1 >conftest.err
20096  rm -f conftest.er1
20097  cat conftest.err >&5
20098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099  (exit $ac_status); } &&
20100	 { ac_try='test -z "$ac_c_werror_flag"
20101			 || test ! -s conftest.err'
20102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103  (eval $ac_try) 2>&5
20104  ac_status=$?
20105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106  (exit $ac_status); }; } &&
20107	 { ac_try='test -s conftest.$ac_objext'
20108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109  (eval $ac_try) 2>&5
20110  ac_status=$?
20111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112  (exit $ac_status); }; }; then
20113  ac_header_compiler=yes
20114else
20115  echo "$as_me: failed program was:" >&5
20116sed 's/^/| /' conftest.$ac_ext >&5
20117
20118ac_header_compiler=no
20119fi
20120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20122echo "${ECHO_T}$ac_header_compiler" >&6
20123
20124# Is the header present?
20125echo "$as_me:$LINENO: checking $ac_header presence" >&5
20126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20127cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h.  */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h.  */
20133#include <$ac_header>
20134_ACEOF
20135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20136  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20137  ac_status=$?
20138  grep -v '^ *+' conftest.er1 >conftest.err
20139  rm -f conftest.er1
20140  cat conftest.err >&5
20141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142  (exit $ac_status); } >/dev/null; then
20143  if test -s conftest.err; then
20144    ac_cpp_err=$ac_c_preproc_warn_flag
20145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20146  else
20147    ac_cpp_err=
20148  fi
20149else
20150  ac_cpp_err=yes
20151fi
20152if test -z "$ac_cpp_err"; then
20153  ac_header_preproc=yes
20154else
20155  echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158  ac_header_preproc=no
20159fi
20160rm -f conftest.err conftest.$ac_ext
20161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20162echo "${ECHO_T}$ac_header_preproc" >&6
20163
20164# So?  What about this header?
20165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20166  yes:no: )
20167    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20171    ac_header_preproc=yes
20172    ;;
20173  no:yes:* )
20174    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20176    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20177echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20178    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20180    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20181echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20184    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20186    (
20187      cat <<\_ASBOX
20188## ---------------------------------- ##
20189## Report this to bug-libtool@gnu.org ##
20190## ---------------------------------- ##
20191_ASBOX
20192    ) |
20193      sed "s/^/$as_me: WARNING:     /" >&2
20194    ;;
20195esac
20196echo "$as_me:$LINENO: checking for $ac_header" >&5
20197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20198if eval "test \"\${$as_ac_Header+set}\" = set"; then
20199  echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201  eval "$as_ac_Header=\$ac_header_preproc"
20202fi
20203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20205
20206fi
20207if test `eval echo '${'$as_ac_Header'}'` = yes; then
20208  cat >>confdefs.h <<_ACEOF
20209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20210_ACEOF
20211
20212fi
20213
20214done
20215
20216
20217
20218## --------------------------- ##
20219## Libraries required by demo. ##
20220## --------------------------- ##
20221LIBM=
20222case $host in
20223*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
20224  # These system don't have libm, or don't need it
20225  ;;
20226*-ncr-sysv4.3*)
20227  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20228echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20229if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20230  echo $ECHO_N "(cached) $ECHO_C" >&6
20231else
20232  ac_check_lib_save_LIBS=$LIBS
20233LIBS="-lmw  $LIBS"
20234cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h.  */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h.  */
20240
20241/* Override any gcc2 internal prototype to avoid an error.  */
20242#ifdef __cplusplus
20243extern "C"
20244#endif
20245/* We use char because int might match the return type of a gcc2
20246   builtin and then its argument prototype would still apply.  */
20247char _mwvalidcheckl ();
20248int
20249main ()
20250{
20251_mwvalidcheckl ();
20252  ;
20253  return 0;
20254}
20255_ACEOF
20256rm -f conftest.$ac_objext conftest$ac_exeext
20257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20258  (eval $ac_link) 2>conftest.er1
20259  ac_status=$?
20260  grep -v '^ *+' conftest.er1 >conftest.err
20261  rm -f conftest.er1
20262  cat conftest.err >&5
20263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264  (exit $ac_status); } &&
20265	 { ac_try='test -z "$ac_c_werror_flag"
20266			 || test ! -s conftest.err'
20267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268  (eval $ac_try) 2>&5
20269  ac_status=$?
20270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271  (exit $ac_status); }; } &&
20272	 { ac_try='test -s conftest$ac_exeext'
20273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274  (eval $ac_try) 2>&5
20275  ac_status=$?
20276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277  (exit $ac_status); }; }; then
20278  ac_cv_lib_mw__mwvalidcheckl=yes
20279else
20280  echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283ac_cv_lib_mw__mwvalidcheckl=no
20284fi
20285rm -f conftest.err conftest.$ac_objext \
20286      conftest$ac_exeext conftest.$ac_ext
20287LIBS=$ac_check_lib_save_LIBS
20288fi
20289echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20290echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20291if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20292  LIBM="-lmw"
20293fi
20294
20295  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20296echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20297if test "${ac_cv_lib_m_cos+set}" = set; then
20298  echo $ECHO_N "(cached) $ECHO_C" >&6
20299else
20300  ac_check_lib_save_LIBS=$LIBS
20301LIBS="-lm  $LIBS"
20302cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h.  */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h.  */
20308
20309/* Override any gcc2 internal prototype to avoid an error.  */
20310#ifdef __cplusplus
20311extern "C"
20312#endif
20313/* We use char because int might match the return type of a gcc2
20314   builtin and then its argument prototype would still apply.  */
20315char cos ();
20316int
20317main ()
20318{
20319cos ();
20320  ;
20321  return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext conftest$ac_exeext
20325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326  (eval $ac_link) 2>conftest.er1
20327  ac_status=$?
20328  grep -v '^ *+' conftest.er1 >conftest.err
20329  rm -f conftest.er1
20330  cat conftest.err >&5
20331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332  (exit $ac_status); } &&
20333	 { ac_try='test -z "$ac_c_werror_flag"
20334			 || test ! -s conftest.err'
20335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336  (eval $ac_try) 2>&5
20337  ac_status=$?
20338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339  (exit $ac_status); }; } &&
20340	 { ac_try='test -s conftest$ac_exeext'
20341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342  (eval $ac_try) 2>&5
20343  ac_status=$?
20344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345  (exit $ac_status); }; }; then
20346  ac_cv_lib_m_cos=yes
20347else
20348  echo "$as_me: failed program was:" >&5
20349sed 's/^/| /' conftest.$ac_ext >&5
20350
20351ac_cv_lib_m_cos=no
20352fi
20353rm -f conftest.err conftest.$ac_objext \
20354      conftest$ac_exeext conftest.$ac_ext
20355LIBS=$ac_check_lib_save_LIBS
20356fi
20357echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20358echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20359if test $ac_cv_lib_m_cos = yes; then
20360  LIBM="$LIBM -lm"
20361fi
20362
20363  ;;
20364*)
20365  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20366echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20367if test "${ac_cv_lib_m_cos+set}" = set; then
20368  echo $ECHO_N "(cached) $ECHO_C" >&6
20369else
20370  ac_check_lib_save_LIBS=$LIBS
20371LIBS="-lm  $LIBS"
20372cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h.  */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h.  */
20378
20379/* Override any gcc2 internal prototype to avoid an error.  */
20380#ifdef __cplusplus
20381extern "C"
20382#endif
20383/* We use char because int might match the return type of a gcc2
20384   builtin and then its argument prototype would still apply.  */
20385char cos ();
20386int
20387main ()
20388{
20389cos ();
20390  ;
20391  return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext conftest$ac_exeext
20395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396  (eval $ac_link) 2>conftest.er1
20397  ac_status=$?
20398  grep -v '^ *+' conftest.er1 >conftest.err
20399  rm -f conftest.er1
20400  cat conftest.err >&5
20401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402  (exit $ac_status); } &&
20403	 { ac_try='test -z "$ac_c_werror_flag"
20404			 || test ! -s conftest.err'
20405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406  (eval $ac_try) 2>&5
20407  ac_status=$?
20408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409  (exit $ac_status); }; } &&
20410	 { ac_try='test -s conftest$ac_exeext'
20411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412  (eval $ac_try) 2>&5
20413  ac_status=$?
20414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415  (exit $ac_status); }; }; then
20416  ac_cv_lib_m_cos=yes
20417else
20418  echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421ac_cv_lib_m_cos=no
20422fi
20423rm -f conftest.err conftest.$ac_objext \
20424      conftest$ac_exeext conftest.$ac_ext
20425LIBS=$ac_check_lib_save_LIBS
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20428echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20429if test $ac_cv_lib_m_cos = yes; then
20430  LIBM="-lm"
20431fi
20432
20433  ;;
20434esac
20435
20436
20437
20438
20439## -------- ##
20440## Outputs. ##
20441## -------- ##
20442          ac_config_files="$ac_config_files Makefile"
20443
20444cat >confcache <<\_ACEOF
20445# This file is a shell script that caches the results of configure
20446# tests run on this system so they can be shared between configure
20447# scripts and configure runs, see configure's option --config-cache.
20448# It is not useful on other systems.  If it contains results you don't
20449# want to keep, you may remove or edit it.
20450#
20451# config.status only pays attention to the cache file if you give it
20452# the --recheck option to rerun configure.
20453#
20454# `ac_cv_env_foo' variables (set or unset) will be overridden when
20455# loading this file, other *unset* `ac_cv_foo' will be assigned the
20456# following values.
20457
20458_ACEOF
20459
20460# The following way of writing the cache mishandles newlines in values,
20461# but we know of no workaround that is simple, portable, and efficient.
20462# So, don't put newlines in cache variables' values.
20463# Ultrix sh set writes to stderr and can't be redirected directly,
20464# and sets the high bit in the cache file unless we assign to the vars.
20465{
20466  (set) 2>&1 |
20467    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20468    *ac_space=\ *)
20469      # `set' does not quote correctly, so add quotes (double-quote
20470      # substitution turns \\\\ into \\, and sed turns \\ into \).
20471      sed -n \
20472	"s/'/'\\\\''/g;
20473	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20474      ;;
20475    *)
20476      # `set' quotes correctly as required by POSIX, so do not add quotes.
20477      sed -n \
20478	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20479      ;;
20480    esac;
20481} |
20482  sed '
20483     t clear
20484     : clear
20485     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20486     t end
20487     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20488     : end' >>confcache
20489if diff $cache_file confcache >/dev/null 2>&1; then :; else
20490  if test -w $cache_file; then
20491    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20492    cat confcache >$cache_file
20493  else
20494    echo "not updating unwritable cache $cache_file"
20495  fi
20496fi
20497rm -f confcache
20498
20499test "x$prefix" = xNONE && prefix=$ac_default_prefix
20500# Let make expand exec_prefix.
20501test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20502
20503# VPATH may cause trouble with some makes, so we remove $(srcdir),
20504# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20505# trailing colons and then remove the whole line if VPATH becomes empty
20506# (actually we leave an empty line to preserve line numbers).
20507if test "x$srcdir" = x.; then
20508  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20509s/:*\$(srcdir):*/:/;
20510s/:*\${srcdir}:*/:/;
20511s/:*@srcdir@:*/:/;
20512s/^\([^=]*=[	 ]*\):*/\1/;
20513s/:*$//;
20514s/^[^=]*=[	 ]*$//;
20515}'
20516fi
20517
20518# Transform confdefs.h into DEFS.
20519# Protect against shell expansion while executing Makefile rules.
20520# Protect against Makefile macro expansion.
20521#
20522# If the first sed substitution is executed (which looks for macros that
20523# take arguments), then we branch to the quote section.  Otherwise,
20524# look for a macro that doesn't take arguments.
20525cat >confdef2opt.sed <<\_ACEOF
20526t clear
20527: clear
20528s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20529t quote
20530s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20531t quote
20532d
20533: quote
20534s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20535s,\[,\\&,g
20536s,\],\\&,g
20537s,\$,$$,g
20538p
20539_ACEOF
20540# We use echo to avoid assuming a particular line-breaking character.
20541# The extra dot is to prevent the shell from consuming trailing
20542# line-breaks from the sub-command output.  A line-break within
20543# single-quotes doesn't work because, if this script is created in a
20544# platform that uses two characters for line-breaks (e.g., DOS), tr
20545# would break.
20546ac_LF_and_DOT=`echo; echo .`
20547DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20548rm -f confdef2opt.sed
20549
20550
20551ac_libobjs=
20552ac_ltlibobjs=
20553for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20554  # 1. Remove the extension, and $U if already installed.
20555  ac_i=`echo "$ac_i" |
20556	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20557  # 2. Add them.
20558  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20559  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20560done
20561LIBOBJS=$ac_libobjs
20562
20563LTLIBOBJS=$ac_ltlibobjs
20564
20565
20566if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20567  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20568Usually this means the macro was only invoked conditionally." >&5
20569echo "$as_me: error: conditional \"AMDEP\" was never defined.
20570Usually this means the macro was only invoked conditionally." >&2;}
20571   { (exit 1); exit 1; }; }
20572fi
20573if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20574  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20575Usually this means the macro was only invoked conditionally." >&5
20576echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20577Usually this means the macro was only invoked conditionally." >&2;}
20578   { (exit 1); exit 1; }; }
20579fi
20580if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20581  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20582Usually this means the macro was only invoked conditionally." >&5
20583echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20584Usually this means the macro was only invoked conditionally." >&2;}
20585   { (exit 1); exit 1; }; }
20586fi
20587if test -z "${BINARY_HELLDL_TRUE}" && test -z "${BINARY_HELLDL_FALSE}"; then
20588  { { echo "$as_me:$LINENO: error: conditional \"BINARY_HELLDL\" was never defined.
20589Usually this means the macro was only invoked conditionally." >&5
20590echo "$as_me: error: conditional \"BINARY_HELLDL\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&2;}
20592   { (exit 1); exit 1; }; }
20593fi
20594
20595: ${CONFIG_STATUS=./config.status}
20596ac_clean_files_save=$ac_clean_files
20597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20598{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20599echo "$as_me: creating $CONFIG_STATUS" >&6;}
20600cat >$CONFIG_STATUS <<_ACEOF
20601#! $SHELL
20602# Generated by $as_me.
20603# Run this file to recreate the current configuration.
20604# Compiler output produced by configure, useful for debugging
20605# configure, is in config.log if it exists.
20606
20607debug=false
20608ac_cs_recheck=false
20609ac_cs_silent=false
20610SHELL=\${CONFIG_SHELL-$SHELL}
20611_ACEOF
20612
20613cat >>$CONFIG_STATUS <<\_ACEOF
20614## --------------------- ##
20615## M4sh Initialization.  ##
20616## --------------------- ##
20617
20618# Be Bourne compatible
20619if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20620  emulate sh
20621  NULLCMD=:
20622  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20623  # is contrary to our usage.  Disable this feature.
20624  alias -g '${1+"$@"}'='"$@"'
20625elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20626  set -o posix
20627fi
20628DUALCASE=1; export DUALCASE # for MKS sh
20629
20630# Support unset when possible.
20631if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20632  as_unset=unset
20633else
20634  as_unset=false
20635fi
20636
20637
20638# Work around bugs in pre-3.0 UWIN ksh.
20639$as_unset ENV MAIL MAILPATH
20640PS1='$ '
20641PS2='> '
20642PS4='+ '
20643
20644# NLS nuisances.
20645for as_var in \
20646  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20647  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20648  LC_TELEPHONE LC_TIME
20649do
20650  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20651    eval $as_var=C; export $as_var
20652  else
20653    $as_unset $as_var
20654  fi
20655done
20656
20657# Required to use basename.
20658if expr a : '\(a\)' >/dev/null 2>&1; then
20659  as_expr=expr
20660else
20661  as_expr=false
20662fi
20663
20664if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20665  as_basename=basename
20666else
20667  as_basename=false
20668fi
20669
20670
20671# Name of the executable.
20672as_me=`$as_basename "$0" ||
20673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20674	 X"$0" : 'X\(//\)$' \| \
20675	 X"$0" : 'X\(/\)$' \| \
20676	 .     : '\(.\)' 2>/dev/null ||
20677echo X/"$0" |
20678    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20679  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20680  	  /^X\/\(\/\).*/{ s//\1/; q; }
20681  	  s/.*/./; q'`
20682
20683
20684# PATH needs CR, and LINENO needs CR and PATH.
20685# Avoid depending upon Character Ranges.
20686as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20688as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20689as_cr_digits='0123456789'
20690as_cr_alnum=$as_cr_Letters$as_cr_digits
20691
20692# The user is always right.
20693if test "${PATH_SEPARATOR+set}" != set; then
20694  echo "#! /bin/sh" >conf$$.sh
20695  echo  "exit 0"   >>conf$$.sh
20696  chmod +x conf$$.sh
20697  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20698    PATH_SEPARATOR=';'
20699  else
20700    PATH_SEPARATOR=:
20701  fi
20702  rm -f conf$$.sh
20703fi
20704
20705
20706  as_lineno_1=$LINENO
20707  as_lineno_2=$LINENO
20708  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20709  test "x$as_lineno_1" != "x$as_lineno_2" &&
20710  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20711  # Find who we are.  Look in the path if we contain no path at all
20712  # relative or not.
20713  case $0 in
20714    *[\\/]* ) as_myself=$0 ;;
20715    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716for as_dir in $PATH
20717do
20718  IFS=$as_save_IFS
20719  test -z "$as_dir" && as_dir=.
20720  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20721done
20722
20723       ;;
20724  esac
20725  # We did not find ourselves, most probably we were run as `sh COMMAND'
20726  # in which case we are not to be found in the path.
20727  if test "x$as_myself" = x; then
20728    as_myself=$0
20729  fi
20730  if test ! -f "$as_myself"; then
20731    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20732echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20733   { (exit 1); exit 1; }; }
20734  fi
20735  case $CONFIG_SHELL in
20736  '')
20737    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20738for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20739do
20740  IFS=$as_save_IFS
20741  test -z "$as_dir" && as_dir=.
20742  for as_base in sh bash ksh sh5; do
20743	 case $as_dir in
20744	 /*)
20745	   if ("$as_dir/$as_base" -c '
20746  as_lineno_1=$LINENO
20747  as_lineno_2=$LINENO
20748  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20749  test "x$as_lineno_1" != "x$as_lineno_2" &&
20750  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20751	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20752	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20753	     CONFIG_SHELL=$as_dir/$as_base
20754	     export CONFIG_SHELL
20755	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20756	   fi;;
20757	 esac
20758       done
20759done
20760;;
20761  esac
20762
20763  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20764  # uniformly replaced by the line number.  The first 'sed' inserts a
20765  # line-number line before each line; the second 'sed' does the real
20766  # work.  The second script uses 'N' to pair each line-number line
20767  # with the numbered line, and appends trailing '-' during
20768  # substitution so that $LINENO is not a special case at line end.
20769  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20770  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20771  sed '=' <$as_myself |
20772    sed '
20773      N
20774      s,$,-,
20775      : loop
20776      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20777      t loop
20778      s,-$,,
20779      s,^['$as_cr_digits']*\n,,
20780    ' >$as_me.lineno &&
20781  chmod +x $as_me.lineno ||
20782    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20783echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20784   { (exit 1); exit 1; }; }
20785
20786  # Don't try to exec as it changes $[0], causing all sort of problems
20787  # (the dirname of $[0] is not the place where we might find the
20788  # original and so on.  Autoconf is especially sensible to this).
20789  . ./$as_me.lineno
20790  # Exit status is that of the last command.
20791  exit
20792}
20793
20794
20795case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20796  *c*,-n*) ECHO_N= ECHO_C='
20797' ECHO_T='	' ;;
20798  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20799  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20800esac
20801
20802if expr a : '\(a\)' >/dev/null 2>&1; then
20803  as_expr=expr
20804else
20805  as_expr=false
20806fi
20807
20808rm -f conf$$ conf$$.exe conf$$.file
20809echo >conf$$.file
20810if ln -s conf$$.file conf$$ 2>/dev/null; then
20811  # We could just check for DJGPP; but this test a) works b) is more generic
20812  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20813  if test -f conf$$.exe; then
20814    # Don't use ln at all; we don't have any links
20815    as_ln_s='cp -p'
20816  else
20817    as_ln_s='ln -s'
20818  fi
20819elif ln conf$$.file conf$$ 2>/dev/null; then
20820  as_ln_s=ln
20821else
20822  as_ln_s='cp -p'
20823fi
20824rm -f conf$$ conf$$.exe conf$$.file
20825
20826if mkdir -p . 2>/dev/null; then
20827  as_mkdir_p=:
20828else
20829  test -d ./-p && rmdir ./-p
20830  as_mkdir_p=false
20831fi
20832
20833as_executable_p="test -f"
20834
20835# Sed expression to map a string onto a valid CPP name.
20836as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20837
20838# Sed expression to map a string onto a valid variable name.
20839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20840
20841
20842# IFS
20843# We need space, tab and new line, in precisely that order.
20844as_nl='
20845'
20846IFS=" 	$as_nl"
20847
20848# CDPATH.
20849$as_unset CDPATH
20850
20851exec 6>&1
20852
20853# Open the log real soon, to keep \$[0] and so on meaningful, and to
20854# report actual input values of CONFIG_FILES etc. instead of their
20855# values after options handling.  Logging --version etc. is OK.
20856exec 5>>config.log
20857{
20858  echo
20859  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20860## Running $as_me. ##
20861_ASBOX
20862} >&5
20863cat >&5 <<_CSEOF
20864
20865This file was extended by demo $as_me 1.0, which was
20866generated by GNU Autoconf 2.59.  Invocation command line was
20867
20868  CONFIG_FILES    = $CONFIG_FILES
20869  CONFIG_HEADERS  = $CONFIG_HEADERS
20870  CONFIG_LINKS    = $CONFIG_LINKS
20871  CONFIG_COMMANDS = $CONFIG_COMMANDS
20872  $ $0 $@
20873
20874_CSEOF
20875echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20876echo >&5
20877_ACEOF
20878
20879# Files that config.status was made for.
20880if test -n "$ac_config_files"; then
20881  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20882fi
20883
20884if test -n "$ac_config_headers"; then
20885  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20886fi
20887
20888if test -n "$ac_config_links"; then
20889  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20890fi
20891
20892if test -n "$ac_config_commands"; then
20893  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20894fi
20895
20896cat >>$CONFIG_STATUS <<\_ACEOF
20897
20898ac_cs_usage="\
20899\`$as_me' instantiates files from templates according to the
20900current configuration.
20901
20902Usage: $0 [OPTIONS] [FILE]...
20903
20904  -h, --help       print this help, then exit
20905  -V, --version    print version number, then exit
20906  -q, --quiet      do not print progress messages
20907  -d, --debug      don't remove temporary files
20908      --recheck    update $as_me by reconfiguring in the same conditions
20909  --file=FILE[:TEMPLATE]
20910		   instantiate the configuration file FILE
20911
20912Configuration files:
20913$config_files
20914
20915Configuration commands:
20916$config_commands
20917
20918Report bugs to <bug-autoconf@gnu.org>."
20919_ACEOF
20920
20921cat >>$CONFIG_STATUS <<_ACEOF
20922ac_cs_version="\\
20923demo config.status 1.0
20924configured by $0, generated by GNU Autoconf 2.59,
20925  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20926
20927Copyright (C) 2003 Free Software Foundation, Inc.
20928This config.status script is free software; the Free Software Foundation
20929gives unlimited permission to copy, distribute and modify it."
20930srcdir=$srcdir
20931INSTALL="$INSTALL"
20932_ACEOF
20933
20934cat >>$CONFIG_STATUS <<\_ACEOF
20935# If no file are specified by the user, then we need to provide default
20936# value.  By we need to know if files were specified by the user.
20937ac_need_defaults=:
20938while test $# != 0
20939do
20940  case $1 in
20941  --*=*)
20942    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20943    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20944    ac_shift=:
20945    ;;
20946  -*)
20947    ac_option=$1
20948    ac_optarg=$2
20949    ac_shift=shift
20950    ;;
20951  *) # This is not an option, so the user has probably given explicit
20952     # arguments.
20953     ac_option=$1
20954     ac_need_defaults=false;;
20955  esac
20956
20957  case $ac_option in
20958  # Handling of the options.
20959_ACEOF
20960cat >>$CONFIG_STATUS <<\_ACEOF
20961  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20962    ac_cs_recheck=: ;;
20963  --version | --vers* | -V )
20964    echo "$ac_cs_version"; exit 0 ;;
20965  --he | --h)
20966    # Conflict between --help and --header
20967    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20968Try \`$0 --help' for more information." >&5
20969echo "$as_me: error: ambiguous option: $1
20970Try \`$0 --help' for more information." >&2;}
20971   { (exit 1); exit 1; }; };;
20972  --help | --hel | -h )
20973    echo "$ac_cs_usage"; exit 0 ;;
20974  --debug | --d* | -d )
20975    debug=: ;;
20976  --file | --fil | --fi | --f )
20977    $ac_shift
20978    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20979    ac_need_defaults=false;;
20980  --header | --heade | --head | --hea )
20981    $ac_shift
20982    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20983    ac_need_defaults=false;;
20984  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20985  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20986    ac_cs_silent=: ;;
20987
20988  # This is an error.
20989  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20990Try \`$0 --help' for more information." >&5
20991echo "$as_me: error: unrecognized option: $1
20992Try \`$0 --help' for more information." >&2;}
20993   { (exit 1); exit 1; }; } ;;
20994
20995  *) ac_config_targets="$ac_config_targets $1" ;;
20996
20997  esac
20998  shift
20999done
21000
21001ac_configure_extra_args=
21002
21003if $ac_cs_silent; then
21004  exec 6>/dev/null
21005  ac_configure_extra_args="$ac_configure_extra_args --silent"
21006fi
21007
21008_ACEOF
21009cat >>$CONFIG_STATUS <<_ACEOF
21010if \$ac_cs_recheck; then
21011  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21012  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21013fi
21014
21015_ACEOF
21016
21017cat >>$CONFIG_STATUS <<_ACEOF
21018#
21019# INIT-COMMANDS section.
21020#
21021
21022AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21023
21024_ACEOF
21025
21026
21027
21028cat >>$CONFIG_STATUS <<\_ACEOF
21029for ac_config_target in $ac_config_targets
21030do
21031  case "$ac_config_target" in
21032  # Handling of arguments.
21033  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21034  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21035  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21036echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21037   { (exit 1); exit 1; }; };;
21038  esac
21039done
21040
21041# If the user did not use the arguments to specify the items to instantiate,
21042# then the envvar interface is used.  Set only those that are not.
21043# We use the long form for the default assignment because of an extremely
21044# bizarre bug on SunOS 4.1.3.
21045if $ac_need_defaults; then
21046  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21047  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21048fi
21049
21050# Have a temporary directory for convenience.  Make it in the build tree
21051# simply because there is no reason to put it here, and in addition,
21052# creating and moving files from /tmp can sometimes cause problems.
21053# Create a temporary directory, and hook for its removal unless debugging.
21054$debug ||
21055{
21056  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21057  trap '{ (exit 1); exit 1; }' 1 2 13 15
21058}
21059
21060# Create a (secure) tmp directory for tmp files.
21061
21062{
21063  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21064  test -n "$tmp" && test -d "$tmp"
21065}  ||
21066{
21067  tmp=./confstat$$-$RANDOM
21068  (umask 077 && mkdir $tmp)
21069} ||
21070{
21071   echo "$me: cannot create a temporary directory in ." >&2
21072   { (exit 1); exit 1; }
21073}
21074
21075_ACEOF
21076
21077cat >>$CONFIG_STATUS <<_ACEOF
21078
21079#
21080# CONFIG_FILES section.
21081#
21082
21083# No need to generate the scripts if there are no CONFIG_FILES.
21084# This happens for instance when ./config.status config.h
21085if test -n "\$CONFIG_FILES"; then
21086  # Protect against being on the right side of a sed subst in config.status.
21087  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21088   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21089s,@SHELL@,$SHELL,;t t
21090s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21091s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21092s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21093s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21094s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21095s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21096s,@exec_prefix@,$exec_prefix,;t t
21097s,@prefix@,$prefix,;t t
21098s,@program_transform_name@,$program_transform_name,;t t
21099s,@bindir@,$bindir,;t t
21100s,@sbindir@,$sbindir,;t t
21101s,@libexecdir@,$libexecdir,;t t
21102s,@datadir@,$datadir,;t t
21103s,@sysconfdir@,$sysconfdir,;t t
21104s,@sharedstatedir@,$sharedstatedir,;t t
21105s,@localstatedir@,$localstatedir,;t t
21106s,@libdir@,$libdir,;t t
21107s,@includedir@,$includedir,;t t
21108s,@oldincludedir@,$oldincludedir,;t t
21109s,@infodir@,$infodir,;t t
21110s,@mandir@,$mandir,;t t
21111s,@build_alias@,$build_alias,;t t
21112s,@host_alias@,$host_alias,;t t
21113s,@target_alias@,$target_alias,;t t
21114s,@DEFS@,$DEFS,;t t
21115s,@ECHO_C@,$ECHO_C,;t t
21116s,@ECHO_N@,$ECHO_N,;t t
21117s,@ECHO_T@,$ECHO_T,;t t
21118s,@LIBS@,$LIBS,;t t
21119s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21120s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21121s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21122s,@CYGPATH_W@,$CYGPATH_W,;t t
21123s,@PACKAGE@,$PACKAGE,;t t
21124s,@VERSION@,$VERSION,;t t
21125s,@ACLOCAL@,$ACLOCAL,;t t
21126s,@AUTOCONF@,$AUTOCONF,;t t
21127s,@AUTOMAKE@,$AUTOMAKE,;t t
21128s,@AUTOHEADER@,$AUTOHEADER,;t t
21129s,@MAKEINFO@,$MAKEINFO,;t t
21130s,@install_sh@,$install_sh,;t t
21131s,@STRIP@,$STRIP,;t t
21132s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21133s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21134s,@mkdir_p@,$mkdir_p,;t t
21135s,@AWK@,$AWK,;t t
21136s,@SET_MAKE@,$SET_MAKE,;t t
21137s,@am__leading_dot@,$am__leading_dot,;t t
21138s,@AMTAR@,$AMTAR,;t t
21139s,@am__tar@,$am__tar,;t t
21140s,@am__untar@,$am__untar,;t t
21141s,@CC@,$CC,;t t
21142s,@CFLAGS@,$CFLAGS,;t t
21143s,@LDFLAGS@,$LDFLAGS,;t t
21144s,@CPPFLAGS@,$CPPFLAGS,;t t
21145s,@ac_ct_CC@,$ac_ct_CC,;t t
21146s,@EXEEXT@,$EXEEXT,;t t
21147s,@OBJEXT@,$OBJEXT,;t t
21148s,@DEPDIR@,$DEPDIR,;t t
21149s,@am__include@,$am__include,;t t
21150s,@am__quote@,$am__quote,;t t
21151s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21152s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21153s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21154s,@CCDEPMODE@,$CCDEPMODE,;t t
21155s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21156s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21157s,@build@,$build,;t t
21158s,@build_cpu@,$build_cpu,;t t
21159s,@build_vendor@,$build_vendor,;t t
21160s,@build_os@,$build_os,;t t
21161s,@host@,$host,;t t
21162s,@host_cpu@,$host_cpu,;t t
21163s,@host_vendor@,$host_vendor,;t t
21164s,@host_os@,$host_os,;t t
21165s,@EGREP@,$EGREP,;t t
21166s,@LN_S@,$LN_S,;t t
21167s,@ECHO@,$ECHO,;t t
21168s,@AR@,$AR,;t t
21169s,@ac_ct_AR@,$ac_ct_AR,;t t
21170s,@RANLIB@,$RANLIB,;t t
21171s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21172s,@DLLTOOL@,$DLLTOOL,;t t
21173s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21174s,@AS@,$AS,;t t
21175s,@ac_ct_AS@,$ac_ct_AS,;t t
21176s,@OBJDUMP@,$OBJDUMP,;t t
21177s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21178s,@CPP@,$CPP,;t t
21179s,@CXX@,$CXX,;t t
21180s,@CXXFLAGS@,$CXXFLAGS,;t t
21181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21182s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21183s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21184s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21185s,@CXXCPP@,$CXXCPP,;t t
21186s,@F77@,$F77,;t t
21187s,@FFLAGS@,$FFLAGS,;t t
21188s,@ac_ct_F77@,$ac_ct_F77,;t t
21189s,@LIBTOOL@,$LIBTOOL,;t t
21190s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21191s,@STATIC@,$STATIC,;t t
21192s,@BINARY_HELLDL_TRUE@,$BINARY_HELLDL_TRUE,;t t
21193s,@BINARY_HELLDL_FALSE@,$BINARY_HELLDL_FALSE,;t t
21194s,@LIBM@,$LIBM,;t t
21195s,@LIBOBJS@,$LIBOBJS,;t t
21196s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21197CEOF
21198
21199_ACEOF
21200
21201  cat >>$CONFIG_STATUS <<\_ACEOF
21202  # Split the substitutions into bite-sized pieces for seds with
21203  # small command number limits, like on Digital OSF/1 and HP-UX.
21204  ac_max_sed_lines=48
21205  ac_sed_frag=1 # Number of current file.
21206  ac_beg=1 # First line for current file.
21207  ac_end=$ac_max_sed_lines # Line after last line for current file.
21208  ac_more_lines=:
21209  ac_sed_cmds=
21210  while $ac_more_lines; do
21211    if test $ac_beg -gt 1; then
21212      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21213    else
21214      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21215    fi
21216    if test ! -s $tmp/subs.frag; then
21217      ac_more_lines=false
21218    else
21219      # The purpose of the label and of the branching condition is to
21220      # speed up the sed processing (if there are no `@' at all, there
21221      # is no need to browse any of the substitutions).
21222      # These are the two extra sed commands mentioned above.
21223      (echo ':t
21224  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21225      if test -z "$ac_sed_cmds"; then
21226	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21227      else
21228	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21229      fi
21230      ac_sed_frag=`expr $ac_sed_frag + 1`
21231      ac_beg=$ac_end
21232      ac_end=`expr $ac_end + $ac_max_sed_lines`
21233    fi
21234  done
21235  if test -z "$ac_sed_cmds"; then
21236    ac_sed_cmds=cat
21237  fi
21238fi # test -n "$CONFIG_FILES"
21239
21240_ACEOF
21241cat >>$CONFIG_STATUS <<\_ACEOF
21242for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21243  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21244  case $ac_file in
21245  - | *:- | *:-:* ) # input from stdin
21246	cat >$tmp/stdin
21247	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21248	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21249  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21250	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21251  * )   ac_file_in=$ac_file.in ;;
21252  esac
21253
21254  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21255  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257	 X"$ac_file" : 'X\(//\)[^/]' \| \
21258	 X"$ac_file" : 'X\(//\)$' \| \
21259	 X"$ac_file" : 'X\(/\)' \| \
21260	 .     : '\(.\)' 2>/dev/null ||
21261echo X"$ac_file" |
21262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21263  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21264  	  /^X\(\/\/\)$/{ s//\1/; q; }
21265  	  /^X\(\/\).*/{ s//\1/; q; }
21266  	  s/.*/./; q'`
21267  { if $as_mkdir_p; then
21268    mkdir -p "$ac_dir"
21269  else
21270    as_dir="$ac_dir"
21271    as_dirs=
21272    while test ! -d "$as_dir"; do
21273      as_dirs="$as_dir $as_dirs"
21274      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21275$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21276	 X"$as_dir" : 'X\(//\)[^/]' \| \
21277	 X"$as_dir" : 'X\(//\)$' \| \
21278	 X"$as_dir" : 'X\(/\)' \| \
21279	 .     : '\(.\)' 2>/dev/null ||
21280echo X"$as_dir" |
21281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21282  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21283  	  /^X\(\/\/\)$/{ s//\1/; q; }
21284  	  /^X\(\/\).*/{ s//\1/; q; }
21285  	  s/.*/./; q'`
21286    done
21287    test ! -n "$as_dirs" || mkdir $as_dirs
21288  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21289echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21290   { (exit 1); exit 1; }; }; }
21291
21292  ac_builddir=.
21293
21294if test "$ac_dir" != .; then
21295  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21296  # A "../" for each directory in $ac_dir_suffix.
21297  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21298else
21299  ac_dir_suffix= ac_top_builddir=
21300fi
21301
21302case $srcdir in
21303  .)  # No --srcdir option.  We are building in place.
21304    ac_srcdir=.
21305    if test -z "$ac_top_builddir"; then
21306       ac_top_srcdir=.
21307    else
21308       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21309    fi ;;
21310  [\\/]* | ?:[\\/]* )  # Absolute path.
21311    ac_srcdir=$srcdir$ac_dir_suffix;
21312    ac_top_srcdir=$srcdir ;;
21313  *) # Relative path.
21314    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21315    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21316esac
21317
21318# Do not use `cd foo && pwd` to compute absolute paths, because
21319# the directories may not exist.
21320case `pwd` in
21321.) ac_abs_builddir="$ac_dir";;
21322*)
21323  case "$ac_dir" in
21324  .) ac_abs_builddir=`pwd`;;
21325  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21326  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21327  esac;;
21328esac
21329case $ac_abs_builddir in
21330.) ac_abs_top_builddir=${ac_top_builddir}.;;
21331*)
21332  case ${ac_top_builddir}. in
21333  .) ac_abs_top_builddir=$ac_abs_builddir;;
21334  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21335  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21336  esac;;
21337esac
21338case $ac_abs_builddir in
21339.) ac_abs_srcdir=$ac_srcdir;;
21340*)
21341  case $ac_srcdir in
21342  .) ac_abs_srcdir=$ac_abs_builddir;;
21343  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21344  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21345  esac;;
21346esac
21347case $ac_abs_builddir in
21348.) ac_abs_top_srcdir=$ac_top_srcdir;;
21349*)
21350  case $ac_top_srcdir in
21351  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21352  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21353  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21354  esac;;
21355esac
21356
21357
21358  case $INSTALL in
21359  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21360  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21361  esac
21362
21363  if test x"$ac_file" != x-; then
21364    { echo "$as_me:$LINENO: creating $ac_file" >&5
21365echo "$as_me: creating $ac_file" >&6;}
21366    rm -f "$ac_file"
21367  fi
21368  # Let's still pretend it is `configure' which instantiates (i.e., don't
21369  # use $as_me), people would be surprised to read:
21370  #    /* config.h.  Generated by config.status.  */
21371  if test x"$ac_file" = x-; then
21372    configure_input=
21373  else
21374    configure_input="$ac_file.  "
21375  fi
21376  configure_input=$configure_input"Generated from `echo $ac_file_in |
21377				     sed 's,.*/,,'` by configure."
21378
21379  # First look for the input files in the build tree, otherwise in the
21380  # src tree.
21381  ac_file_inputs=`IFS=:
21382    for f in $ac_file_in; do
21383      case $f in
21384      -) echo $tmp/stdin ;;
21385      [\\/$]*)
21386	 # Absolute (can't be DOS-style, as IFS=:)
21387	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21388echo "$as_me: error: cannot find input file: $f" >&2;}
21389   { (exit 1); exit 1; }; }
21390	 echo "$f";;
21391      *) # Relative
21392	 if test -f "$f"; then
21393	   # Build tree
21394	   echo "$f"
21395	 elif test -f "$srcdir/$f"; then
21396	   # Source tree
21397	   echo "$srcdir/$f"
21398	 else
21399	   # /dev/null tree
21400	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21401echo "$as_me: error: cannot find input file: $f" >&2;}
21402   { (exit 1); exit 1; }; }
21403	 fi;;
21404      esac
21405    done` || { (exit 1); exit 1; }
21406_ACEOF
21407cat >>$CONFIG_STATUS <<_ACEOF
21408  sed "$ac_vpsub
21409$extrasub
21410_ACEOF
21411cat >>$CONFIG_STATUS <<\_ACEOF
21412:t
21413/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21414s,@configure_input@,$configure_input,;t t
21415s,@srcdir@,$ac_srcdir,;t t
21416s,@abs_srcdir@,$ac_abs_srcdir,;t t
21417s,@top_srcdir@,$ac_top_srcdir,;t t
21418s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21419s,@builddir@,$ac_builddir,;t t
21420s,@abs_builddir@,$ac_abs_builddir,;t t
21421s,@top_builddir@,$ac_top_builddir,;t t
21422s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21423s,@INSTALL@,$ac_INSTALL,;t t
21424" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21425  rm -f $tmp/stdin
21426  if test x"$ac_file" != x-; then
21427    mv $tmp/out $ac_file
21428  else
21429    cat $tmp/out
21430    rm -f $tmp/out
21431  fi
21432
21433done
21434_ACEOF
21435cat >>$CONFIG_STATUS <<\_ACEOF
21436
21437#
21438# CONFIG_COMMANDS section.
21439#
21440for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21441  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21442  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21443  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21444$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21445	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21446	 X"$ac_dest" : 'X\(//\)$' \| \
21447	 X"$ac_dest" : 'X\(/\)' \| \
21448	 .     : '\(.\)' 2>/dev/null ||
21449echo X"$ac_dest" |
21450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21451  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21452  	  /^X\(\/\/\)$/{ s//\1/; q; }
21453  	  /^X\(\/\).*/{ s//\1/; q; }
21454  	  s/.*/./; q'`
21455  { if $as_mkdir_p; then
21456    mkdir -p "$ac_dir"
21457  else
21458    as_dir="$ac_dir"
21459    as_dirs=
21460    while test ! -d "$as_dir"; do
21461      as_dirs="$as_dir $as_dirs"
21462      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21464	 X"$as_dir" : 'X\(//\)[^/]' \| \
21465	 X"$as_dir" : 'X\(//\)$' \| \
21466	 X"$as_dir" : 'X\(/\)' \| \
21467	 .     : '\(.\)' 2>/dev/null ||
21468echo X"$as_dir" |
21469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21470  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21471  	  /^X\(\/\/\)$/{ s//\1/; q; }
21472  	  /^X\(\/\).*/{ s//\1/; q; }
21473  	  s/.*/./; q'`
21474    done
21475    test ! -n "$as_dirs" || mkdir $as_dirs
21476  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21478   { (exit 1); exit 1; }; }; }
21479
21480  ac_builddir=.
21481
21482if test "$ac_dir" != .; then
21483  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21484  # A "../" for each directory in $ac_dir_suffix.
21485  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21486else
21487  ac_dir_suffix= ac_top_builddir=
21488fi
21489
21490case $srcdir in
21491  .)  # No --srcdir option.  We are building in place.
21492    ac_srcdir=.
21493    if test -z "$ac_top_builddir"; then
21494       ac_top_srcdir=.
21495    else
21496       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21497    fi ;;
21498  [\\/]* | ?:[\\/]* )  # Absolute path.
21499    ac_srcdir=$srcdir$ac_dir_suffix;
21500    ac_top_srcdir=$srcdir ;;
21501  *) # Relative path.
21502    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21503    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21504esac
21505
21506# Do not use `cd foo && pwd` to compute absolute paths, because
21507# the directories may not exist.
21508case `pwd` in
21509.) ac_abs_builddir="$ac_dir";;
21510*)
21511  case "$ac_dir" in
21512  .) ac_abs_builddir=`pwd`;;
21513  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21514  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21515  esac;;
21516esac
21517case $ac_abs_builddir in
21518.) ac_abs_top_builddir=${ac_top_builddir}.;;
21519*)
21520  case ${ac_top_builddir}. in
21521  .) ac_abs_top_builddir=$ac_abs_builddir;;
21522  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21523  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21524  esac;;
21525esac
21526case $ac_abs_builddir in
21527.) ac_abs_srcdir=$ac_srcdir;;
21528*)
21529  case $ac_srcdir in
21530  .) ac_abs_srcdir=$ac_abs_builddir;;
21531  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21532  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21533  esac;;
21534esac
21535case $ac_abs_builddir in
21536.) ac_abs_top_srcdir=$ac_top_srcdir;;
21537*)
21538  case $ac_top_srcdir in
21539  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21540  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21541  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21542  esac;;
21543esac
21544
21545
21546  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21547echo "$as_me: executing $ac_dest commands" >&6;}
21548  case $ac_dest in
21549    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21550  # Strip MF so we end up with the name of the file.
21551  mf=`echo "$mf" | sed -e 's/:.*$//'`
21552  # Check whether this is an Automake generated Makefile or not.
21553  # We used to match only the files named `Makefile.in', but
21554  # some people rename them; so instead we look at the file content.
21555  # Grep'ing the first line is not enough: some people post-process
21556  # each Makefile.in and add a new line on top of each file to say so.
21557  # So let's grep whole file.
21558  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21559    dirpart=`(dirname "$mf") 2>/dev/null ||
21560$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21561	 X"$mf" : 'X\(//\)[^/]' \| \
21562	 X"$mf" : 'X\(//\)$' \| \
21563	 X"$mf" : 'X\(/\)' \| \
21564	 .     : '\(.\)' 2>/dev/null ||
21565echo X"$mf" |
21566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21567  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21568  	  /^X\(\/\/\)$/{ s//\1/; q; }
21569  	  /^X\(\/\).*/{ s//\1/; q; }
21570  	  s/.*/./; q'`
21571  else
21572    continue
21573  fi
21574  # Extract the definition of DEPDIR, am__include, and am__quote
21575  # from the Makefile without running `make'.
21576  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21577  test -z "$DEPDIR" && continue
21578  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21579  test -z "am__include" && continue
21580  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21581  # When using ansi2knr, U may be empty or an underscore; expand it
21582  U=`sed -n 's/^U = //p' < "$mf"`
21583  # Find all dependency output files, they are included files with
21584  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21585  # simplest approach to changing $(DEPDIR) to its actual value in the
21586  # expansion.
21587  for file in `sed -n "
21588    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21589       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21590    # Make sure the directory exists.
21591    test -f "$dirpart/$file" && continue
21592    fdir=`(dirname "$file") 2>/dev/null ||
21593$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21594	 X"$file" : 'X\(//\)[^/]' \| \
21595	 X"$file" : 'X\(//\)$' \| \
21596	 X"$file" : 'X\(/\)' \| \
21597	 .     : '\(.\)' 2>/dev/null ||
21598echo X"$file" |
21599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21600  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21601  	  /^X\(\/\/\)$/{ s//\1/; q; }
21602  	  /^X\(\/\).*/{ s//\1/; q; }
21603  	  s/.*/./; q'`
21604    { if $as_mkdir_p; then
21605    mkdir -p $dirpart/$fdir
21606  else
21607    as_dir=$dirpart/$fdir
21608    as_dirs=
21609    while test ! -d "$as_dir"; do
21610      as_dirs="$as_dir $as_dirs"
21611      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21613	 X"$as_dir" : 'X\(//\)[^/]' \| \
21614	 X"$as_dir" : 'X\(//\)$' \| \
21615	 X"$as_dir" : 'X\(/\)' \| \
21616	 .     : '\(.\)' 2>/dev/null ||
21617echo X"$as_dir" |
21618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21619  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21620  	  /^X\(\/\/\)$/{ s//\1/; q; }
21621  	  /^X\(\/\).*/{ s//\1/; q; }
21622  	  s/.*/./; q'`
21623    done
21624    test ! -n "$as_dirs" || mkdir $as_dirs
21625  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21626echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21627   { (exit 1); exit 1; }; }; }
21628
21629    # echo "creating $dirpart/$file"
21630    echo '# dummy' > "$dirpart/$file"
21631  done
21632done
21633 ;;
21634  esac
21635done
21636_ACEOF
21637
21638cat >>$CONFIG_STATUS <<\_ACEOF
21639
21640{ (exit 0); exit 0; }
21641_ACEOF
21642chmod +x $CONFIG_STATUS
21643ac_clean_files=$ac_clean_files_save
21644
21645
21646# configure is writing to config.log, and then calls config.status.
21647# config.status does its own redirection, appending to config.log.
21648# Unfortunately, on DOS this fails, as config.log is still kept open
21649# by configure, so config.status won't be able to write to it; its
21650# output is simply discarded.  So we exec the FD to /dev/null,
21651# effectively closing config.log, so it can be properly (re)opened and
21652# appended to by config.status.  When coming back to configure, we
21653# need to make the FD available again.
21654if test "$no_create" != yes; then
21655  ac_cs_success=:
21656  ac_config_status_args=
21657  test "$silent" = yes &&
21658    ac_config_status_args="$ac_config_status_args --quiet"
21659  exec 5>/dev/null
21660  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21661  exec 5>>config.log
21662  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21663  # would make configure fail if this is the last instruction.
21664  $ac_cs_success || { (exit 1); exit 1; }
21665fi
21666
21667