1#! /bin/sh
2# From configure.ac Revision: 1.3 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for libvc 003.
5#
6# Report bugs to <ahsu@users.sf.net>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12#
13# Copyright (C) 2003  Andrew Hsu
14## --------------------- ##
15## M4sh Initialization.  ##
16## --------------------- ##
17
18# Be Bourne compatible
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20  emulate sh
21  NULLCMD=:
22  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# Support unset when possible.
30if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
31  as_unset=unset
32else
33  as_unset=false
34fi
35
36
37# Work around bugs in pre-3.0 UWIN ksh.
38$as_unset ENV MAIL MAILPATH
39PS1='$ '
40PS2='> '
41PS4='+ '
42
43# NLS nuisances.
44for as_var in \
45  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47  LC_TELEPHONE LC_TIME
48do
49  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
50    eval $as_var=C; export $as_var
51  else
52    $as_unset $as_var
53  fi
54done
55
56# Required to use basename.
57if expr a : '\(a\)' >/dev/null 2>&1; then
58  as_expr=expr
59else
60  as_expr=false
61fi
62
63if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64  as_basename=basename
65else
66  as_basename=false
67fi
68
69
70# Name of the executable.
71as_me=`$as_basename "$0" ||
72$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73	 X"$0" : 'X\(//\)$' \| \
74	 X"$0" : 'X\(/\)$' \| \
75	 .     : '\(.\)' 2>/dev/null ||
76echo X/"$0" |
77    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
78  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
79  	  /^X\/\(\/\).*/{ s//\1/; q; }
80  	  s/.*/./; q'`
81
82
83# PATH needs CR, and LINENO needs CR and PATH.
84# Avoid depending upon Character Ranges.
85as_cr_letters='abcdefghijklmnopqrstuvwxyz'
86as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
87as_cr_Letters=$as_cr_letters$as_cr_LETTERS
88as_cr_digits='0123456789'
89as_cr_alnum=$as_cr_Letters$as_cr_digits
90
91# The user is always right.
92if test "${PATH_SEPARATOR+set}" != set; then
93  echo "#! /bin/sh" >conf$$.sh
94  echo  "exit 0"   >>conf$$.sh
95  chmod +x conf$$.sh
96  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
97    PATH_SEPARATOR=';'
98  else
99    PATH_SEPARATOR=:
100  fi
101  rm -f conf$$.sh
102fi
103
104
105  as_lineno_1=$LINENO
106  as_lineno_2=$LINENO
107  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
108  test "x$as_lineno_1" != "x$as_lineno_2" &&
109  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
110  # Find who we are.  Look in the path if we contain no path at all
111  # relative or not.
112  case $0 in
113    *[\\/]* ) as_myself=$0 ;;
114    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115for as_dir in $PATH
116do
117  IFS=$as_save_IFS
118  test -z "$as_dir" && as_dir=.
119  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120done
121
122       ;;
123  esac
124  # We did not find ourselves, most probably we were run as `sh COMMAND'
125  # in which case we are not to be found in the path.
126  if test "x$as_myself" = x; then
127    as_myself=$0
128  fi
129  if test ! -f "$as_myself"; then
130    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
131   { (exit 1); exit 1; }; }
132  fi
133  case $CONFIG_SHELL in
134  '')
135    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137do
138  IFS=$as_save_IFS
139  test -z "$as_dir" && as_dir=.
140  for as_base in sh bash ksh sh5; do
141	 case $as_dir in
142	 /*)
143	   if ("$as_dir/$as_base" -c '
144  as_lineno_1=$LINENO
145  as_lineno_2=$LINENO
146  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
147  test "x$as_lineno_1" != "x$as_lineno_2" &&
148  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
149	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
150	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
151	     CONFIG_SHELL=$as_dir/$as_base
152	     export CONFIG_SHELL
153	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
154	   fi;;
155	 esac
156       done
157done
158;;
159  esac
160
161  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
162  # uniformly replaced by the line number.  The first 'sed' inserts a
163  # line-number line before each line; the second 'sed' does the real
164  # work.  The second script uses 'N' to pair each line-number line
165  # with the numbered line, and appends trailing '-' during
166  # substitution so that $LINENO is not a special case at line end.
167  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
168  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
169  sed '=' <$as_myself |
170    sed '
171      N
172      s,$,-,
173      : loop
174      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175      t loop
176      s,-$,,
177      s,^['$as_cr_digits']*\n,,
178    ' >$as_me.lineno &&
179  chmod +x $as_me.lineno ||
180    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
181   { (exit 1); exit 1; }; }
182
183  # Don't try to exec as it changes $[0], causing all sort of problems
184  # (the dirname of $[0] is not the place where we might find the
185  # original and so on.  Autoconf is especially sensible to this).
186  . ./$as_me.lineno
187  # Exit status is that of the last command.
188  exit
189}
190
191
192case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
193  *c*,-n*) ECHO_N= ECHO_C='
194' ECHO_T='	' ;;
195  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
196  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
197esac
198
199if expr a : '\(a\)' >/dev/null 2>&1; then
200  as_expr=expr
201else
202  as_expr=false
203fi
204
205rm -f conf$$ conf$$.exe conf$$.file
206echo >conf$$.file
207if ln -s conf$$.file conf$$ 2>/dev/null; then
208  # We could just check for DJGPP; but this test a) works b) is more generic
209  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
210  if test -f conf$$.exe; then
211    # Don't use ln at all; we don't have any links
212    as_ln_s='cp -p'
213  else
214    as_ln_s='ln -s'
215  fi
216elif ln conf$$.file conf$$ 2>/dev/null; then
217  as_ln_s=ln
218else
219  as_ln_s='cp -p'
220fi
221rm -f conf$$ conf$$.exe conf$$.file
222
223if mkdir -p . 2>/dev/null; then
224  as_mkdir_p=:
225else
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254  # Remove one level of quotation (which was required for Make).
255  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256  ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261  # Discard the --no-reexec flag, and continue.
262  shift
263elif test "X$1" = X--fallback-echo; then
264  # Avoid inline document here, it may be left over
265  :
266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267  # Yippee, $echo works!
268  :
269else
270  # Restart under the correct shell.
271  exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275  # used as fallback echo
276  shift
277  cat <<EOF
278$*
279EOF
280  exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
285if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293       echo_test_string="`eval $cmd`" &&
294       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295    then
296      break
297    fi
298  done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303   test "X$echo_testing_string" = "X$echo_test_string"; then
304  :
305else
306  # The Solaris, AIX, and Digital Unix default echo programs unquote
307  # backslashes.  This makes it impossible to quote backslashes using
308  #   echo "$something" | sed 's/\\/\\\\/g'
309  #
310  # So, first we look for a working echo in the user's PATH.
311
312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313  for dir in $PATH /usr/ucb; do
314    IFS="$lt_save_ifs"
315    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318       test "X$echo_testing_string" = "X$echo_test_string"; then
319      echo="$dir/echo"
320      break
321    fi
322  done
323  IFS="$lt_save_ifs"
324
325  if test "X$echo" = Xecho; then
326    # We didn't find a better echo, so look for alternatives.
327    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      # This shell has a builtin print -r that does the trick.
331      echo='print -r'
332    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333	 test "X$CONFIG_SHELL" != X/bin/ksh; then
334      # If we have ksh, try running configure again with it.
335      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336      export ORIGINAL_CONFIG_SHELL
337      CONFIG_SHELL=/bin/ksh
338      export CONFIG_SHELL
339      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340    else
341      # Try using printf.
342      echo='printf %s\n'
343      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345	 test "X$echo_testing_string" = "X$echo_test_string"; then
346	# Cool, printf works
347	:
348      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349	   test "X$echo_testing_string" = 'X\t' &&
350	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351	   test "X$echo_testing_string" = "X$echo_test_string"; then
352	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353	export CONFIG_SHELL
354	SHELL="$CONFIG_SHELL"
355	export SHELL
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358	   test "X$echo_testing_string" = 'X\t' &&
359	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360	   test "X$echo_testing_string" = "X$echo_test_string"; then
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      else
363	# maybe with a smaller string...
364	prev=:
365
366	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368	  then
369	    break
370	  fi
371	  prev="$cmd"
372	done
373
374	if test "$prev" != 'sed 50q "$0"'; then
375	  echo_test_string=`eval $prev`
376	  export echo_test_string
377	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378	else
379	  # Oops.  We lost completely, so just stick with echo.
380	  echo=echo
381	fi
382      fi
383    fi
384  fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
397
398tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
399
400tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME='libvc'
427PACKAGE_TARNAME='libvc'
428PACKAGE_VERSION='003'
429PACKAGE_STRING='libvc 003'
430PACKAGE_BUGREPORT='ahsu@users.sf.net'
431
432ac_unique_file="src/vc.c"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 LEX LEXLIB LEX_OUTPUT_ROOT YACC 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829              localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869         X"$0" : 'X\(//\)[^/]' \| \
870         X"$0" : 'X\(//\)$' \| \
871         X"$0" : 'X\(/\)' \| \
872         .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956  # Omit some internal or obsolete options to make the list less imposing.
957  # This message is too long to be a string in the A/UX 3.1 sh.
958  cat <<_ACEOF
959\`configure' configures libvc 003 to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969  -h, --help              display this help and exit
970      --help=short        display options specific to this package
971      --help=recursive    display the short help of all the included packages
972  -V, --version           display version information and exit
973  -q, --quiet, --silent   do not print \`checking...' messages
974      --cache-file=FILE   cache test results in FILE [disabled]
975  -C, --config-cache      alias for \`--cache-file=config.cache'
976  -n, --no-create         do not create output files
977      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981  cat <<_ACEOF
982Installation directories:
983  --prefix=PREFIX         install architecture-independent files in PREFIX
984                          [$ac_default_prefix]
985  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                          [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996  --bindir=DIR           user executables [EPREFIX/bin]
997  --sbindir=DIR          system admin executables [EPREFIX/sbin]
998  --libexecdir=DIR       program executables [EPREFIX/libexec]
999  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003  --libdir=DIR           object code libraries [EPREFIX/lib]
1004  --includedir=DIR       C header files [PREFIX/include]
1005  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006  --infodir=DIR          info documentation [PREFIX/info]
1007  --mandir=DIR           man documentation [PREFIX/man]
1008_ACEOF
1009
1010  cat <<\_ACEOF
1011
1012Program names:
1013  --program-prefix=PREFIX            prepend PREFIX to installed program names
1014  --program-suffix=SUFFIX            append SUFFIX to installed program names
1015  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017System types:
1018  --build=BUILD     configure for building on BUILD [guessed]
1019  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020_ACEOF
1021fi
1022
1023if test -n "$ac_init_help"; then
1024  case $ac_init_help in
1025     short | recursive ) echo "Configuration of libvc 003:";;
1026   esac
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --disable-dependency-tracking Speeds up one-time builds
1033  --enable-dependency-tracking  Do not reject slow dependency extractors
1034  --enable-shared[=PKGS]
1035                          build shared libraries [default=yes]
1036  --enable-static[=PKGS]
1037                          build static libraries [default=yes]
1038  --enable-fast-install[=PKGS]
1039                          optimize for fast installation [default=yes]
1040  --disable-libtool-lock  avoid locking (might break parallel builds)
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046  --with-pic              try to use only PIC/non-PIC objects [default=use
1047                          both]
1048  --with-tags[=TAGS]
1049                          include additional configurations [automatic]
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CPP         C preprocessor
1059  CXX         C++ compiler command
1060  CXXFLAGS    C++ compiler flags
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068Report bugs to <ahsu@users.sf.net>.
1069_ACEOF
1070fi
1071
1072if test "$ac_init_help" = "recursive"; then
1073  # If there are subdirs, report their specific --help.
1074  ac_popdir=`pwd`
1075  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076    test -d $ac_dir || continue
1077    ac_builddir=.
1078
1079if test "$ac_dir" != .; then
1080  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081  # A "../" for each directory in $ac_dir_suffix.
1082  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083else
1084  ac_dir_suffix= ac_top_builddir=
1085fi
1086
1087case $srcdir in
1088  .)  # No --srcdir option.  We are building in place.
1089    ac_srcdir=.
1090    if test -z "$ac_top_builddir"; then
1091       ac_top_srcdir=.
1092    else
1093       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094    fi ;;
1095  [\\/]* | ?:[\\/]* )  # Absolute path.
1096    ac_srcdir=$srcdir$ac_dir_suffix;
1097    ac_top_srcdir=$srcdir ;;
1098  *) # Relative path.
1099    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101esac
1102# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1103# absolute.
1104ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1105ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1106ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1107ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1108
1109    cd $ac_dir
1110    # Check for guested configure; otherwise get Cygnus style configure.
1111    if test -f $ac_srcdir/configure.gnu; then
1112      echo
1113      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1114    elif test -f $ac_srcdir/configure; then
1115      echo
1116      $SHELL $ac_srcdir/configure  --help=recursive
1117    elif test -f $ac_srcdir/configure.ac ||
1118           test -f $ac_srcdir/configure.in; then
1119      echo
1120      $ac_configure --help
1121    else
1122      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123    fi
1124    cd $ac_popdir
1125  done
1126fi
1127
1128test -n "$ac_init_help" && exit 0
1129if $ac_init_version; then
1130  cat <<\_ACEOF
1131libvc configure 003
1132generated by GNU Autoconf 2.57
1133
1134Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1135Free Software Foundation, Inc.
1136This configure script is free software; the Free Software Foundation
1137gives unlimited permission to copy, distribute and modify it.
1138
1139Copyright (C) 2003  Andrew Hsu
1140_ACEOF
1141  exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
1147
1148It was created by libvc $as_me 003, which was
1149generated by GNU Autoconf 2.57.  Invocation command line was
1150
1151  $ $0 $@
1152
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1168
1169/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1170/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1173/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1174/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1175/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182  IFS=$as_save_IFS
1183  test -z "$as_dir" && as_dir=.
1184  echo "PATH: $as_dir"
1185done
1186
1187} >&5
1188
1189cat >&5 <<_ACEOF
1190
1191
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
1201# Strip out --silent because we don't want to record it for future runs.
1202# Also quote any args containing shell meta-characters.
1203# Make two passes to allow for proper duplicate-argument suppression.
1204ac_configure_args=
1205ac_configure_args0=
1206ac_configure_args1=
1207ac_sep=
1208ac_must_keep_next=false
1209for ac_pass in 1 2
1210do
1211  for ac_arg
1212  do
1213    case $ac_arg in
1214    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216    | -silent | --silent | --silen | --sile | --sil)
1217      continue ;;
1218    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220    esac
1221    case $ac_pass in
1222    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223    2)
1224      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225      if test $ac_must_keep_next = true; then
1226        ac_must_keep_next=false # Got value, back to normal.
1227      else
1228        case $ac_arg in
1229          *=* | --config-cache | -C | -disable-* | --disable-* \
1230          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232          | -with-* | --with-* | -without-* | --without-* | --x)
1233            case "$ac_configure_args0 " in
1234              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235            esac
1236            ;;
1237          -* ) ac_must_keep_next=true ;;
1238        esac
1239      fi
1240      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241      # Get rid of the leading space.
1242      ac_sep=" "
1243      ;;
1244    esac
1245  done
1246done
1247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log.  We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256  # Save into config.log some information that might help in debugging.
1257  {
1258    echo
1259
1260    cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265    echo
1266    # The following way of writing the cache mishandles newlines in values,
1267{
1268  (set) 2>&1 |
1269    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270    *ac_space=\ *)
1271      sed -n \
1272        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274      ;;
1275    *)
1276      sed -n \
1277        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278      ;;
1279    esac;
1280}
1281    echo
1282
1283    cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288    echo
1289    for ac_var in $ac_subst_vars
1290    do
1291      eval ac_val=$`echo $ac_var`
1292      echo "$ac_var='"'"'$ac_val'"'"'"
1293    done | sort
1294    echo
1295
1296    if test -n "$ac_subst_files"; then
1297      cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302      echo
1303      for ac_var in $ac_subst_files
1304      do
1305	eval ac_val=$`echo $ac_var`
1306        echo "$ac_var='"'"'$ac_val'"'"'"
1307      done | sort
1308      echo
1309    fi
1310
1311    if test -s confdefs.h; then
1312      cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317      echo
1318      sed "/^$/d" confdefs.h | sort
1319      echo
1320    fi
1321    test "$ac_signal" != 0 &&
1322      echo "$as_me: caught signal $ac_signal"
1323    echo "$as_me: exit $exit_status"
1324  } >&5
1325  rm -f core core.* *.core &&
1326  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327    exit $exit_status
1328     ' 0
1329for ac_signal in 1 2 13 15; do
1330  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369  if test "x$prefix" != xNONE; then
1370    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371  else
1372    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373  fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376  if test -r "$ac_site_file"; then
1377    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379    sed 's/^/| /' "$ac_site_file" >&5
1380    . "$ac_site_file"
1381  fi
1382done
1383
1384if test -r "$cache_file"; then
1385  # Some versions of bash will fail to source /dev/null (special
1386  # files actually), so we avoid doing that.
1387  if test -f "$cache_file"; then
1388    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390    case $cache_file in
1391      [\\/]* | ?:[\\/]* ) . $cache_file;;
1392      *)                      . ./$cache_file;;
1393    esac
1394  fi
1395else
1396  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398  >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
1405               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407  eval ac_new_set=\$ac_env_${ac_var}_set
1408  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409  eval ac_new_val="\$ac_env_${ac_var}_value"
1410  case $ac_old_set,$ac_new_set in
1411    set,)
1412      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414      ac_cache_corrupted=: ;;
1415    ,set)
1416      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418      ac_cache_corrupted=: ;;
1419    ,);;
1420    *)
1421      if test "x$ac_old_val" != "x$ac_new_val"; then
1422        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1425echo "$as_me:   former value:  $ac_old_val" >&2;}
1426        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1427echo "$as_me:   current value: $ac_new_val" >&2;}
1428        ac_cache_corrupted=:
1429      fi;;
1430  esac
1431  # Pass precious variables to config.status.
1432  if test "$ac_new_set" = set; then
1433    case $ac_new_val in
1434    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436    *) ac_arg=$ac_var=$ac_new_val ;;
1437    esac
1438    case " $ac_configure_args " in
1439      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1440      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1441    esac
1442  fi
1443done
1444if $ac_cache_corrupted; then
1445  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449   { (exit 1); exit 1; }; }
1450fi
1451
1452ac_ext=c
1453ac_cpp='$CPP $CPPFLAGS'
1454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484am__api_version="1.7"
1485ac_aux_dir=
1486for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487  if test -f $ac_dir/install-sh; then
1488    ac_aux_dir=$ac_dir
1489    ac_install_sh="$ac_aux_dir/install-sh -c"
1490    break
1491  elif test -f $ac_dir/install.sh; then
1492    ac_aux_dir=$ac_dir
1493    ac_install_sh="$ac_aux_dir/install.sh -c"
1494    break
1495  elif test -f $ac_dir/shtool; then
1496    ac_aux_dir=$ac_dir
1497    ac_install_sh="$ac_aux_dir/shtool install -c"
1498    break
1499  fi
1500done
1501if test -z "$ac_aux_dir"; then
1502  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504   { (exit 1); exit 1; }; }
1505fi
1506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
1510# Find a good install program.  We prefer a C program (faster),
1511# so one script is as good as another.  But avoid the broken or
1512# incompatible versions:
1513# SysV /etc/install, /usr/sbin/install
1514# SunOS /usr/etc/install
1515# IRIX /sbin/install
1516# AIX /bin/install
1517# AmigaOS /C/install, which installs bootblocks on floppy discs
1518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1521# ./install, which can be erroneously created by make from ./install.sh.
1522echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1524if test -z "$INSTALL"; then
1525if test "${ac_cv_path_install+set}" = set; then
1526  echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531  IFS=$as_save_IFS
1532  test -z "$as_dir" && as_dir=.
1533  # Account for people who put trailing slashes in PATH elements.
1534case $as_dir/ in
1535  ./ | .// | /cC/* | \
1536  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1537  /usr/ucb/* ) ;;
1538  *)
1539    # OSF1 and SCO ODT 3.0 have their own names for install.
1540    # Don't use installbsd from OSF since it installs stuff as root
1541    # by default.
1542    for ac_prog in ginstall scoinst install; do
1543      for ac_exec_ext in '' $ac_executable_extensions; do
1544        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1545          if test $ac_prog = install &&
1546            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1547            # AIX install.  It has an incompatible calling convention.
1548            :
1549          elif test $ac_prog = install &&
1550            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1551            # program-specific install script used by HP pwplus--don't use.
1552            :
1553          else
1554            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1555            break 3
1556          fi
1557        fi
1558      done
1559    done
1560    ;;
1561esac
1562done
1563
1564
1565fi
1566  if test "${ac_cv_path_install+set}" = set; then
1567    INSTALL=$ac_cv_path_install
1568  else
1569    # As a last resort, use the slow shell script.  We don't cache a
1570    # path for INSTALL within a source directory, because that will
1571    # break other packages using the cache if that directory is
1572    # removed, or if the path is relative.
1573    INSTALL=$ac_install_sh
1574  fi
1575fi
1576echo "$as_me:$LINENO: result: $INSTALL" >&5
1577echo "${ECHO_T}$INSTALL" >&6
1578
1579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1580# It thinks the first close brace ends the variable substitution.
1581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1582
1583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1584
1585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1586
1587echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1588echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1589# Just in case
1590sleep 1
1591echo timestamp > conftest.file
1592# Do `set' in a subshell so we don't clobber the current shell's
1593# arguments.  Must try -L first in case configure is actually a
1594# symlink; some systems play weird games with the mod time of symlinks
1595# (eg FreeBSD returns the mod time of the symlink's containing
1596# directory).
1597if (
1598   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1599   if test "$*" = "X"; then
1600      # -L didn't work.
1601      set X `ls -t $srcdir/configure conftest.file`
1602   fi
1603   rm -f conftest.file
1604   if test "$*" != "X $srcdir/configure conftest.file" \
1605      && test "$*" != "X conftest.file $srcdir/configure"; then
1606
1607      # If neither matched, then we have a broken ls.  This can happen
1608      # if, for instance, CONFIG_SHELL is bash and it inherits a
1609      # broken ls alias from the environment.  This has actually
1610      # happened.  Such a system could not be considered "sane".
1611      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1612alias in your environment" >&5
1613echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1614alias in your environment" >&2;}
1615   { (exit 1); exit 1; }; }
1616   fi
1617
1618   test "$2" = conftest.file
1619   )
1620then
1621   # Ok.
1622   :
1623else
1624   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1625Check your system clock" >&5
1626echo "$as_me: error: newly created file is older than distributed files!
1627Check your system clock" >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630echo "$as_me:$LINENO: result: yes" >&5
1631echo "${ECHO_T}yes" >&6
1632test "$program_prefix" != NONE &&
1633  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1634# Use a double $ so make ignores it.
1635test "$program_suffix" != NONE &&
1636  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1637# Double any \ or $.  echo might interpret backslashes.
1638# By default was `s,x,x', remove it if useless.
1639cat <<\_ACEOF >conftest.sed
1640s/[\\$]/&&/g;s/;s,x,x,$//
1641_ACEOF
1642program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1643rm conftest.sed
1644
1645
1646# expand $ac_aux_dir to an absolute path
1647am_aux_dir=`cd $ac_aux_dir && pwd`
1648
1649test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1650# Use eval to expand $SHELL
1651if eval "$MISSING --run true"; then
1652  am_missing_run="$MISSING --run "
1653else
1654  am_missing_run=
1655  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1656echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1657fi
1658
1659for ac_prog in gawk mawk nawk awk
1660do
1661  # Extract the first word of "$ac_prog", so it can be a program name with args.
1662set dummy $ac_prog; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_AWK+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  if test -n "$AWK"; then
1669  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674  IFS=$as_save_IFS
1675  test -z "$as_dir" && as_dir=.
1676  for ac_exec_ext in '' $ac_executable_extensions; do
1677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678    ac_cv_prog_AWK="$ac_prog"
1679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680    break 2
1681  fi
1682done
1683done
1684
1685fi
1686fi
1687AWK=$ac_cv_prog_AWK
1688if test -n "$AWK"; then
1689  echo "$as_me:$LINENO: result: $AWK" >&5
1690echo "${ECHO_T}$AWK" >&6
1691else
1692  echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696  test -n "$AWK" && break
1697done
1698
1699echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1700echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1701set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1702if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1703  echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705  cat >conftest.make <<\_ACEOF
1706all:
1707	@echo 'ac_maketemp="$(MAKE)"'
1708_ACEOF
1709# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1710eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1711if test -n "$ac_maketemp"; then
1712  eval ac_cv_prog_make_${ac_make}_set=yes
1713else
1714  eval ac_cv_prog_make_${ac_make}_set=no
1715fi
1716rm -f conftest.make
1717fi
1718if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1719  echo "$as_me:$LINENO: result: yes" >&5
1720echo "${ECHO_T}yes" >&6
1721  SET_MAKE=
1722else
1723  echo "$as_me:$LINENO: result: no" >&5
1724echo "${ECHO_T}no" >&6
1725  SET_MAKE="MAKE=${MAKE-make}"
1726fi
1727
1728rm -rf .tst 2>/dev/null
1729mkdir .tst 2>/dev/null
1730if test -d .tst; then
1731  am__leading_dot=.
1732else
1733  am__leading_dot=_
1734fi
1735rmdir .tst 2>/dev/null
1736
1737 # test to see if srcdir already configured
1738if test "`cd $srcdir && pwd`" != "`pwd`" &&
1739   test -f $srcdir/config.status; then
1740  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1741echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744
1745# test whether we have cygpath
1746if test -z "$CYGPATH_W"; then
1747  if (cygpath --version) >/dev/null 2>/dev/null; then
1748    CYGPATH_W='cygpath -w'
1749  else
1750    CYGPATH_W=echo
1751  fi
1752fi
1753
1754
1755# Define the identity of the package.
1756 PACKAGE='libvc'
1757 VERSION='003'
1758
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE "$PACKAGE"
1762_ACEOF
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define VERSION "$VERSION"
1767_ACEOF
1768
1769# Some tools Automake needs.
1770
1771ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1772
1773
1774AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1775
1776
1777AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1778
1779
1780AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1781
1782
1783MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1784
1785
1786AMTAR=${AMTAR-"${am_missing_run}tar"}
1787
1788install_sh=${install_sh-"$am_aux_dir/install-sh"}
1789
1790# Installed binaries are usually stripped using `strip' when the user
1791# run `make install-strip'.  However `strip' might not be the right
1792# tool to use in cross-compilation environments, therefore Automake
1793# will honor the `STRIP' environment variable to overrule this program.
1794if test "$cross_compiling" != no; then
1795  if test -n "$ac_tool_prefix"; then
1796  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1797set dummy ${ac_tool_prefix}strip; ac_word=$2
1798echo "$as_me:$LINENO: checking for $ac_word" >&5
1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800if test "${ac_cv_prog_STRIP+set}" = set; then
1801  echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803  if test -n "$STRIP"; then
1804  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1805else
1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807for as_dir in $PATH
1808do
1809  IFS=$as_save_IFS
1810  test -z "$as_dir" && as_dir=.
1811  for ac_exec_ext in '' $ac_executable_extensions; do
1812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815    break 2
1816  fi
1817done
1818done
1819
1820fi
1821fi
1822STRIP=$ac_cv_prog_STRIP
1823if test -n "$STRIP"; then
1824  echo "$as_me:$LINENO: result: $STRIP" >&5
1825echo "${ECHO_T}$STRIP" >&6
1826else
1827  echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831fi
1832if test -z "$ac_cv_prog_STRIP"; then
1833  ac_ct_STRIP=$STRIP
1834  # Extract the first word of "strip", so it can be a program name with args.
1835set dummy strip; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1839  echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841  if test -n "$ac_ct_STRIP"; then
1842  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847  IFS=$as_save_IFS
1848  test -z "$as_dir" && as_dir=.
1849  for ac_exec_ext in '' $ac_executable_extensions; do
1850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851    ac_cv_prog_ac_ct_STRIP="strip"
1852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853    break 2
1854  fi
1855done
1856done
1857
1858  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1859fi
1860fi
1861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1862if test -n "$ac_ct_STRIP"; then
1863  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1864echo "${ECHO_T}$ac_ct_STRIP" >&6
1865else
1866  echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870  STRIP=$ac_ct_STRIP
1871else
1872  STRIP="$ac_cv_prog_STRIP"
1873fi
1874
1875fi
1876INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1877
1878# We need awk for the "check" target.  The system "awk" is bad on
1879# some platforms.
1880
1881
1882
1883
1884
1885
1886
1887
1888# Checks for programs.
1889ac_ext=c
1890ac_cpp='$CPP $CPPFLAGS'
1891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1893ac_compiler_gnu=$ac_cv_c_compiler_gnu
1894if test -n "$ac_tool_prefix"; then
1895  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1896set dummy ${ac_tool_prefix}gcc; ac_word=$2
1897echo "$as_me:$LINENO: checking for $ac_word" >&5
1898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899if test "${ac_cv_prog_CC+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  if test -n "$CC"; then
1903  ac_cv_prog_CC="$CC" # Let the user override the test.
1904else
1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906for as_dir in $PATH
1907do
1908  IFS=$as_save_IFS
1909  test -z "$as_dir" && as_dir=.
1910  for ac_exec_ext in '' $ac_executable_extensions; do
1911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914    break 2
1915  fi
1916done
1917done
1918
1919fi
1920fi
1921CC=$ac_cv_prog_CC
1922if test -n "$CC"; then
1923  echo "$as_me:$LINENO: result: $CC" >&5
1924echo "${ECHO_T}$CC" >&6
1925else
1926  echo "$as_me:$LINENO: result: no" >&5
1927echo "${ECHO_T}no" >&6
1928fi
1929
1930fi
1931if test -z "$ac_cv_prog_CC"; then
1932  ac_ct_CC=$CC
1933  # Extract the first word of "gcc", so it can be a program name with args.
1934set dummy gcc; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$ac_ct_CC"; then
1941  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950    ac_cv_prog_ac_ct_CC="gcc"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960if test -n "$ac_ct_CC"; then
1961  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962echo "${ECHO_T}$ac_ct_CC" >&6
1963else
1964  echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968  CC=$ac_ct_CC
1969else
1970  CC="$ac_cv_prog_CC"
1971fi
1972
1973if test -z "$CC"; then
1974  if test -n "$ac_tool_prefix"; then
1975  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1976set dummy ${ac_tool_prefix}cc; ac_word=$2
1977echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979if test "${ac_cv_prog_CC+set}" = set; then
1980  echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982  if test -n "$CC"; then
1983  ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990  for ac_exec_ext in '' $ac_executable_extensions; do
1991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992    ac_cv_prog_CC="${ac_tool_prefix}cc"
1993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994    break 2
1995  fi
1996done
1997done
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003  echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6
2005else
2006  echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6
2008fi
2009
2010fi
2011if test -z "$ac_cv_prog_CC"; then
2012  ac_ct_CC=$CC
2013  # Extract the first word of "cc", so it can be a program name with args.
2014set dummy cc; ac_word=$2
2015echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018  echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020  if test -n "$ac_ct_CC"; then
2021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026  IFS=$as_save_IFS
2027  test -z "$as_dir" && as_dir=.
2028  for ac_exec_ext in '' $ac_executable_extensions; do
2029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030    ac_cv_prog_ac_ct_CC="cc"
2031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035done
2036
2037fi
2038fi
2039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
2041  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6
2043else
2044  echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048  CC=$ac_ct_CC
2049else
2050  CC="$ac_cv_prog_CC"
2051fi
2052
2053fi
2054if test -z "$CC"; then
2055  # Extract the first word of "cc", so it can be a program name with args.
2056set dummy cc; ac_word=$2
2057echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065  ac_prog_rejected=no
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2074       ac_prog_rejected=yes
2075       continue
2076     fi
2077    ac_cv_prog_CC="cc"
2078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079    break 2
2080  fi
2081done
2082done
2083
2084if test $ac_prog_rejected = yes; then
2085  # We found a bogon in the path, so make sure we never use it.
2086  set dummy $ac_cv_prog_CC
2087  shift
2088  if test $# != 0; then
2089    # We chose a different compiler from the bogus one.
2090    # However, it has the same basename, so the bogon will be chosen
2091    # first if we set CC to just the basename; use the full file name.
2092    shift
2093    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2094  fi
2095fi
2096fi
2097fi
2098CC=$ac_cv_prog_CC
2099if test -n "$CC"; then
2100  echo "$as_me:$LINENO: result: $CC" >&5
2101echo "${ECHO_T}$CC" >&6
2102else
2103  echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107fi
2108if test -z "$CC"; then
2109  if test -n "$ac_tool_prefix"; then
2110  for ac_prog in cl
2111  do
2112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114echo "$as_me:$LINENO: checking for $ac_word" >&5
2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116if test "${ac_cv_prog_CC+set}" = set; then
2117  echo $ECHO_N "(cached) $ECHO_C" >&6
2118else
2119  if test -n "$CC"; then
2120  ac_cv_prog_CC="$CC" # Let the user override the test.
2121else
2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in $PATH
2124do
2125  IFS=$as_save_IFS
2126  test -z "$as_dir" && as_dir=.
2127  for ac_exec_ext in '' $ac_executable_extensions; do
2128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131    break 2
2132  fi
2133done
2134done
2135
2136fi
2137fi
2138CC=$ac_cv_prog_CC
2139if test -n "$CC"; then
2140  echo "$as_me:$LINENO: result: $CC" >&5
2141echo "${ECHO_T}$CC" >&6
2142else
2143  echo "$as_me:$LINENO: result: no" >&5
2144echo "${ECHO_T}no" >&6
2145fi
2146
2147    test -n "$CC" && break
2148  done
2149fi
2150if test -z "$CC"; then
2151  ac_ct_CC=$CC
2152  for ac_prog in cl
2153do
2154  # Extract the first word of "$ac_prog", so it can be a program name with args.
2155set dummy $ac_prog; ac_word=$2
2156echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159  echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161  if test -n "$ac_ct_CC"; then
2162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169  for ac_exec_ext in '' $ac_executable_extensions; do
2170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171    ac_cv_prog_ac_ct_CC="$ac_prog"
2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173    break 2
2174  fi
2175done
2176done
2177
2178fi
2179fi
2180ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181if test -n "$ac_ct_CC"; then
2182  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183echo "${ECHO_T}$ac_ct_CC" >&6
2184else
2185  echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6
2187fi
2188
2189  test -n "$ac_ct_CC" && break
2190done
2191
2192  CC=$ac_ct_CC
2193fi
2194
2195fi
2196
2197
2198test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: no acceptable C compiler found in \$PATH
2201See \`config.log' for more details." >&2;}
2202   { (exit 1); exit 1; }; }
2203
2204# Provide some information about the compiler.
2205echo "$as_me:$LINENO:" \
2206     "checking for C compiler version" >&5
2207ac_compiler=`set X $ac_compile; echo $2`
2208{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2209  (eval $ac_compiler --version </dev/null >&5) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }
2213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2214  (eval $ac_compiler -v </dev/null >&5) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2219  (eval $ac_compiler -V </dev/null >&5) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223
2224cat >conftest.$ac_ext <<_ACEOF
2225#line $LINENO "configure"
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231
2232int
2233main ()
2234{
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240ac_clean_files_save=$ac_clean_files
2241ac_clean_files="$ac_clean_files a.out a.exe b.out"
2242# Try to create an executable without -o first, disregard a.out.
2243# It will help us diagnose broken compilers, and finding out an intuition
2244# of exeext.
2245echo "$as_me:$LINENO: checking for C compiler default output" >&5
2246echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2247ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2248if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2249  (eval $ac_link_default) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; then
2253  # Find the output, starting from the most likely.  This scheme is
2254# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2255# resort.
2256
2257# Be careful to initialize this variable, since it used to be cached.
2258# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2259ac_cv_exeext=
2260# b.out is created by i960 compilers.
2261for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2262do
2263  test -f "$ac_file" || continue
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2266        ;;
2267    conftest.$ac_ext )
2268        # This is the source file.
2269        ;;
2270    [ab].out )
2271        # We found the default executable, but exeext='' is most
2272        # certainly right.
2273        break;;
2274    *.* )
2275        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276        # FIXME: I believe we export ac_cv_exeext for Libtool,
2277        # but it would be cool to find out if it's true.  Does anybody
2278        # maintain Libtool? --akim.
2279        export ac_cv_exeext
2280        break;;
2281    * )
2282        break;;
2283  esac
2284done
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: C compiler cannot create executables
2292See \`config.log' for more details." >&2;}
2293   { (exit 77); exit 77; }; }
2294fi
2295
2296ac_exeext=$ac_cv_exeext
2297echo "$as_me:$LINENO: result: $ac_file" >&5
2298echo "${ECHO_T}$ac_file" >&6
2299
2300# Check the compiler produces executables we can run.  If not, either
2301# the compiler is broken, or we cross compile.
2302echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2303echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2304# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2305# If not cross compiling, check that we can run a simple program.
2306if test "$cross_compiling" != yes; then
2307  if { ac_try='./$ac_file'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313    cross_compiling=no
2314  else
2315    if test "$cross_compiling" = maybe; then
2316	cross_compiling=yes
2317    else
2318	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2319If you meant to cross compile, use \`--host'.
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&2;}
2324   { (exit 1); exit 1; }; }
2325    fi
2326  fi
2327fi
2328echo "$as_me:$LINENO: result: yes" >&5
2329echo "${ECHO_T}yes" >&6
2330
2331rm -f a.out a.exe conftest$ac_cv_exeext b.out
2332ac_clean_files=$ac_clean_files_save
2333# Check the compiler produces executables we can run.  If not, either
2334# the compiler is broken, or we cross compile.
2335echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2336echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2337echo "$as_me:$LINENO: result: $cross_compiling" >&5
2338echo "${ECHO_T}$cross_compiling" >&6
2339
2340echo "$as_me:$LINENO: checking for suffix of executables" >&5
2341echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2343  (eval $ac_link) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; then
2347  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2348# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2349# work properly (i.e., refer to `conftest.exe'), while it won't with
2350# `rm'.
2351for ac_file in conftest.exe conftest conftest.*; do
2352  test -f "$ac_file" || continue
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2355    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2356          export ac_cv_exeext
2357          break;;
2358    * ) break;;
2359  esac
2360done
2361else
2362  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest$ac_cv_exeext
2370echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2371echo "${ECHO_T}$ac_cv_exeext" >&6
2372
2373rm -f conftest.$ac_ext
2374EXEEXT=$ac_cv_exeext
2375ac_exeext=$EXEEXT
2376echo "$as_me:$LINENO: checking for suffix of object files" >&5
2377echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2378if test "${ac_cv_objext+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382#line $LINENO "configure"
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388
2389int
2390main ()
2391{
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.o conftest.obj
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; then
2403  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2404  case $ac_file in
2405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2406    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2407       break;;
2408  esac
2409done
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415See \`config.log' for more details." >&5
2416echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&2;}
2418   { (exit 1); exit 1; }; }
2419fi
2420
2421rm -f conftest.$ac_cv_objext conftest.$ac_ext
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424echo "${ECHO_T}$ac_cv_objext" >&6
2425OBJEXT=$ac_cv_objext
2426ac_objext=$OBJEXT
2427echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433#line $LINENO "configure"
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439
2440int
2441main ()
2442{
2443#ifndef __GNUC__
2444       choke me
2445#endif
2446
2447  ;
2448  return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453  (eval $ac_compile) 2>&5
2454  ac_status=$?
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457         { ac_try='test -s conftest.$ac_objext'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; }; then
2463  ac_compiler_gnu=yes
2464else
2465  echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468ac_compiler_gnu=no
2469fi
2470rm -f conftest.$ac_objext conftest.$ac_ext
2471ac_cv_c_compiler_gnu=$ac_compiler_gnu
2472
2473fi
2474echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2475echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2476GCC=`test $ac_compiler_gnu = yes && echo yes`
2477ac_test_CFLAGS=${CFLAGS+set}
2478ac_save_CFLAGS=$CFLAGS
2479CFLAGS="-g"
2480echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2481echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_g+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  cat >conftest.$ac_ext <<_ACEOF
2486#line $LINENO "configure"
2487/* confdefs.h.  */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h.  */
2492
2493int
2494main ()
2495{
2496
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501rm -f conftest.$ac_objext
2502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503  (eval $ac_compile) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507         { ac_try='test -s conftest.$ac_objext'
2508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509  (eval $ac_try) 2>&5
2510  ac_status=$?
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); }; }; then
2513  ac_cv_prog_cc_g=yes
2514else
2515  echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518ac_cv_prog_cc_g=no
2519fi
2520rm -f conftest.$ac_objext conftest.$ac_ext
2521fi
2522echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2523echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2524if test "$ac_test_CFLAGS" = set; then
2525  CFLAGS=$ac_save_CFLAGS
2526elif test $ac_cv_prog_cc_g = yes; then
2527  if test "$GCC" = yes; then
2528    CFLAGS="-g -O2"
2529  else
2530    CFLAGS="-g"
2531  fi
2532else
2533  if test "$GCC" = yes; then
2534    CFLAGS="-O2"
2535  else
2536    CFLAGS=
2537  fi
2538fi
2539echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2540echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2541if test "${ac_cv_prog_cc_stdc+set}" = set; then
2542  echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
2544  ac_cv_prog_cc_stdc=no
2545ac_save_CC=$CC
2546cat >conftest.$ac_ext <<_ACEOF
2547#line $LINENO "configure"
2548/* confdefs.h.  */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h.  */
2553#include <stdarg.h>
2554#include <stdio.h>
2555#include <sys/types.h>
2556#include <sys/stat.h>
2557/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2558struct buf { int x; };
2559FILE * (*rcsopen) (struct buf *, struct stat *, int);
2560static char *e (p, i)
2561     char **p;
2562     int i;
2563{
2564  return p[i];
2565}
2566static char *f (char * (*g) (char **, int), char **p, ...)
2567{
2568  char *s;
2569  va_list v;
2570  va_start (v,p);
2571  s = g (p, va_arg (v,int));
2572  va_end (v);
2573  return s;
2574}
2575int test (int i, double x);
2576struct s1 {int (*f) (int a);};
2577struct s2 {int (*f) (double a);};
2578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2579int argc;
2580char **argv;
2581int
2582main ()
2583{
2584return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589# Don't try gcc -ansi; that turns off useful extensions and
2590# breaks some systems' header files.
2591# AIX			-qlanglvl=ansi
2592# Ultrix and OSF/1	-std1
2593# HP-UX 10.20 and later	-Ae
2594# HP-UX older versions	-Aa -D_HPUX_SOURCE
2595# SVR4			-Xc -D__EXTENSIONS__
2596for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2597do
2598  CC="$ac_save_CC $ac_arg"
2599  rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601  (eval $ac_compile) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  ac_cv_prog_cc_stdc=$ac_arg
2612break
2613else
2614  echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617fi
2618rm -f conftest.$ac_objext
2619done
2620rm -f conftest.$ac_ext conftest.$ac_objext
2621CC=$ac_save_CC
2622
2623fi
2624
2625case "x$ac_cv_prog_cc_stdc" in
2626  x|xno)
2627    echo "$as_me:$LINENO: result: none needed" >&5
2628echo "${ECHO_T}none needed" >&6 ;;
2629  *)
2630    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2631echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2632    CC="$CC $ac_cv_prog_cc_stdc" ;;
2633esac
2634
2635# Some people use a C++ compiler to compile C.  Since we use `exit',
2636# in C++ we need to declare it.  In case someone uses the same compiler
2637# for both compiling C and C++ we need to have the C++ compiler decide
2638# the declaration of exit, since it's the most demanding environment.
2639cat >conftest.$ac_ext <<_ACEOF
2640#ifndef __cplusplus
2641  choke me
2642#endif
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646  (eval $ac_compile) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  for ac_declaration in \
2657   ''\
2658   '#include <stdlib.h>' \
2659   'extern "C" void std::exit (int) throw (); using std::exit;' \
2660   'extern "C" void std::exit (int); using std::exit;' \
2661   'extern "C" void exit (int) throw ();' \
2662   'extern "C" void exit (int);' \
2663   'void exit (int);'
2664do
2665  cat >conftest.$ac_ext <<_ACEOF
2666#line $LINENO "configure"
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672#include <stdlib.h>
2673$ac_declaration
2674int
2675main ()
2676{
2677exit (42);
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682rm -f conftest.$ac_objext
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684  (eval $ac_compile) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); } &&
2688         { ac_try='test -s conftest.$ac_objext'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; }; then
2694  :
2695else
2696  echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699continue
2700fi
2701rm -f conftest.$ac_objext conftest.$ac_ext
2702  cat >conftest.$ac_ext <<_ACEOF
2703#line $LINENO "configure"
2704/* confdefs.h.  */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h.  */
2709$ac_declaration
2710int
2711main ()
2712{
2713exit (42);
2714  ;
2715  return 0;
2716}
2717_ACEOF
2718rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720  (eval $ac_compile) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } &&
2724         { ac_try='test -s conftest.$ac_objext'
2725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726  (eval $ac_try) 2>&5
2727  ac_status=$?
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); }; }; then
2730  break
2731else
2732  echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735fi
2736rm -f conftest.$ac_objext conftest.$ac_ext
2737done
2738rm -f conftest*
2739if test -n "$ac_declaration"; then
2740  echo '#ifdef __cplusplus' >>confdefs.h
2741  echo $ac_declaration      >>confdefs.h
2742  echo '#endif'             >>confdefs.h
2743fi
2744
2745else
2746  echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749fi
2750rm -f conftest.$ac_objext conftest.$ac_ext
2751ac_ext=c
2752ac_cpp='$CPP $CPPFLAGS'
2753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756DEPDIR="${am__leading_dot}deps"
2757
2758          ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761am_make=${MAKE-make}
2762cat > confinc << 'END'
2763doit:
2764	@echo done
2765END
2766# If we don't find an include directive, just comment out the code.
2767echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2768echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2769am__include="#"
2770am__quote=
2771_am_result=none
2772# First try GNU make style include.
2773echo "include confinc" > confmf
2774# We grep out `Entering directory' and `Leaving directory'
2775# messages which can occur if `w' ends up in MAKEFLAGS.
2776# In particular we don't look at `^make:' because GNU make might
2777# be invoked under some other name (usually "gmake"), in which
2778# case it prints its new name instead of `make'.
2779if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2780   am__include=include
2781   am__quote=
2782   _am_result=GNU
2783fi
2784# Now try BSD make style include.
2785if test "$am__include" = "#"; then
2786   echo '.include "confinc"' > confmf
2787   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2788      am__include=.include
2789      am__quote="\""
2790      _am_result=BSD
2791   fi
2792fi
2793
2794
2795echo "$as_me:$LINENO: result: $_am_result" >&5
2796echo "${ECHO_T}$_am_result" >&6
2797rm -f confinc confmf
2798
2799# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2800if test "${enable_dependency_tracking+set}" = set; then
2801  enableval="$enable_dependency_tracking"
2802
2803fi;
2804if test "x$enable_dependency_tracking" != xno; then
2805  am_depcomp="$ac_aux_dir/depcomp"
2806  AMDEPBACKSLASH='\'
2807fi
2808
2809
2810if test "x$enable_dependency_tracking" != xno; then
2811  AMDEP_TRUE=
2812  AMDEP_FALSE='#'
2813else
2814  AMDEP_TRUE='#'
2815  AMDEP_FALSE=
2816fi
2817
2818
2819
2820
2821depcc="$CC"   am_compiler_list=
2822
2823echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2824echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2825if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2826  echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2829  # We make a subdir and do the tests there.  Otherwise we can end up
2830  # making bogus files that we don't know about and never remove.  For
2831  # instance it was reported that on HP-UX the gcc test will end up
2832  # making a dummy file named `D' -- because `-MD' means `put the output
2833  # in D'.
2834  mkdir conftest.dir
2835  # Copy depcomp to subdir because otherwise we won't find it if we're
2836  # using a relative directory.
2837  cp "$am_depcomp" conftest.dir
2838  cd conftest.dir
2839
2840  am_cv_CC_dependencies_compiler_type=none
2841  if test "$am_compiler_list" = ""; then
2842     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2843  fi
2844  for depmode in $am_compiler_list; do
2845    # We need to recreate these files for each test, as the compiler may
2846    # overwrite some of them when testing with obscure command lines.
2847    # This happens at least with the AIX C compiler.
2848    echo '#include "conftest.h"' > conftest.c
2849    echo 'int i;' > conftest.h
2850    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2851
2852    case $depmode in
2853    nosideeffect)
2854      # after this tag, mechanisms are not by side-effect, so they'll
2855      # only be used when explicitly requested
2856      if test "x$enable_dependency_tracking" = xyes; then
2857	continue
2858      else
2859	break
2860      fi
2861      ;;
2862    none) break ;;
2863    esac
2864    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2865    # mode.  It turns out that the SunPro C++ compiler does not properly
2866    # handle `-M -o', and we need to detect this.
2867    if depmode=$depmode \
2868       source=conftest.c object=conftest.o \
2869       depfile=conftest.Po tmpdepfile=conftest.TPo \
2870       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2871         >/dev/null 2>conftest.err &&
2872       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2873       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2874      # icc doesn't choke on unknown options, it will just issue warnings
2875      # (even with -Werror).  So we grep stderr for any message
2876      # that says an option was ignored.
2877      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2878        am_cv_CC_dependencies_compiler_type=$depmode
2879        break
2880      fi
2881    fi
2882  done
2883
2884  cd ..
2885  rm -rf conftest.dir
2886else
2887  am_cv_CC_dependencies_compiler_type=none
2888fi
2889
2890fi
2891echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2892echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2893CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2894
2895
2896
2897if
2898  test "x$enable_dependency_tracking" != xno \
2899  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2900  am__fastdepCC_TRUE=
2901  am__fastdepCC_FALSE='#'
2902else
2903  am__fastdepCC_TRUE='#'
2904  am__fastdepCC_FALSE=
2905fi
2906
2907
2908
2909for ac_prog in flex lex
2910do
2911  # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915if test "${ac_cv_prog_LEX+set}" = set; then
2916  echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918  if test -n "$LEX"; then
2919  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926  for ac_exec_ext in '' $ac_executable_extensions; do
2927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928    ac_cv_prog_LEX="$ac_prog"
2929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933done
2934
2935fi
2936fi
2937LEX=$ac_cv_prog_LEX
2938if test -n "$LEX"; then
2939  echo "$as_me:$LINENO: result: $LEX" >&5
2940echo "${ECHO_T}$LEX" >&6
2941else
2942  echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
2944fi
2945
2946  test -n "$LEX" && break
2947done
2948test -n "$LEX" || LEX=":"
2949
2950if test -z "$LEXLIB"
2951then
2952  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2953echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2954if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2955  echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957  ac_check_lib_save_LIBS=$LIBS
2958LIBS="-lfl  $LIBS"
2959cat >conftest.$ac_ext <<_ACEOF
2960#line $LINENO "configure"
2961/* confdefs.h.  */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h.  */
2966
2967/* Override any gcc2 internal prototype to avoid an error.  */
2968#ifdef __cplusplus
2969extern "C"
2970#endif
2971/* We use char because int might match the return type of a gcc2
2972   builtin and then its argument prototype would still apply.  */
2973char yywrap ();
2974int
2975main ()
2976{
2977yywrap ();
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext conftest$ac_exeext
2983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2984  (eval $ac_link) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988         { ac_try='test -s conftest$ac_exeext'
2989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990  (eval $ac_try) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }; }; then
2994  ac_cv_lib_fl_yywrap=yes
2995else
2996  echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999ac_cv_lib_fl_yywrap=no
3000fi
3001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3002LIBS=$ac_check_lib_save_LIBS
3003fi
3004echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3005echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3006if test $ac_cv_lib_fl_yywrap = yes; then
3007  LEXLIB="-lfl"
3008else
3009  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3010echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3011if test "${ac_cv_lib_l_yywrap+set}" = set; then
3012  echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014  ac_check_lib_save_LIBS=$LIBS
3015LIBS="-ll  $LIBS"
3016cat >conftest.$ac_ext <<_ACEOF
3017#line $LINENO "configure"
3018/* confdefs.h.  */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h.  */
3023
3024/* Override any gcc2 internal prototype to avoid an error.  */
3025#ifdef __cplusplus
3026extern "C"
3027#endif
3028/* We use char because int might match the return type of a gcc2
3029   builtin and then its argument prototype would still apply.  */
3030char yywrap ();
3031int
3032main ()
3033{
3034yywrap ();
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext conftest$ac_exeext
3040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3041  (eval $ac_link) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); } &&
3045         { ac_try='test -s conftest$ac_exeext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  ac_cv_lib_l_yywrap=yes
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056ac_cv_lib_l_yywrap=no
3057fi
3058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3059LIBS=$ac_check_lib_save_LIBS
3060fi
3061echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3062echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3063if test $ac_cv_lib_l_yywrap = yes; then
3064  LEXLIB="-ll"
3065fi
3066
3067fi
3068
3069fi
3070
3071if test "x$LEX" != "x:"; then
3072  echo "$as_me:$LINENO: checking lex output file root" >&5
3073echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3074if test "${ac_cv_prog_lex_root+set}" = set; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  # The minimal lex program is just a single line: %%.  But some broken lexes
3078# (Solaris, I think it was) want two %% lines, so accommodate them.
3079cat >conftest.l <<_ACEOF
3080%%
3081%%
3082_ACEOF
3083{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3084  (eval $LEX conftest.l) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }
3088if test -f lex.yy.c; then
3089  ac_cv_prog_lex_root=lex.yy
3090elif test -f lexyy.c; then
3091  ac_cv_prog_lex_root=lexyy
3092else
3093  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3094echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3095   { (exit 1); exit 1; }; }
3096fi
3097fi
3098echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3099echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3100rm -f conftest.l
3101LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3102
3103echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3104echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3105if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3106  echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108  # POSIX says lex can declare yytext either as a pointer or an array; the
3109# default is implementation-dependent. Figure out which it is, since
3110# not all implementations provide the %pointer and %array declarations.
3111ac_cv_prog_lex_yytext_pointer=no
3112echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3113ac_save_LIBS=$LIBS
3114LIBS="$LIBS $LEXLIB"
3115cat >conftest.$ac_ext <<_ACEOF
3116`cat $LEX_OUTPUT_ROOT.c`
3117_ACEOF
3118rm -f conftest.$ac_objext conftest$ac_exeext
3119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120  (eval $ac_link) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } &&
3124         { ac_try='test -s conftest$ac_exeext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  ac_cv_prog_lex_yytext_pointer=yes
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135fi
3136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3137LIBS=$ac_save_LIBS
3138rm -f "${LEX_OUTPUT_ROOT}.c"
3139
3140fi
3141echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3142echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3143if test $ac_cv_prog_lex_yytext_pointer = yes; then
3144
3145cat >>confdefs.h <<\_ACEOF
3146#define YYTEXT_POINTER 1
3147_ACEOF
3148
3149fi
3150
3151fi
3152for ac_prog in 'bison -y' byacc
3153do
3154  # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156echo "$as_me:$LINENO: checking for $ac_word" >&5
3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158if test "${ac_cv_prog_YACC+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  if test -n "$YACC"; then
3162  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169  for ac_exec_ext in '' $ac_executable_extensions; do
3170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_YACC="$ac_prog"
3172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176done
3177
3178fi
3179fi
3180YACC=$ac_cv_prog_YACC
3181if test -n "$YACC"; then
3182  echo "$as_me:$LINENO: result: $YACC" >&5
3183echo "${ECHO_T}$YACC" >&6
3184else
3185  echo "$as_me:$LINENO: result: no" >&5
3186echo "${ECHO_T}no" >&6
3187fi
3188
3189  test -n "$YACC" && break
3190done
3191test -n "$YACC" || YACC="yacc"
3192
3193# Check whether --enable-shared or --disable-shared was given.
3194if test "${enable_shared+set}" = set; then
3195  enableval="$enable_shared"
3196  p=${PACKAGE-default}
3197    case $enableval in
3198    yes) enable_shared=yes ;;
3199    no) enable_shared=no ;;
3200    *)
3201      enable_shared=no
3202      # Look at the argument we got.  We use all the common list separators.
3203      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3204      for pkg in $enableval; do
3205	IFS="$lt_save_ifs"
3206	if test "X$pkg" = "X$p"; then
3207	  enable_shared=yes
3208	fi
3209      done
3210      IFS="$lt_save_ifs"
3211      ;;
3212    esac
3213else
3214  enable_shared=yes
3215fi;
3216
3217# Check whether --enable-static or --disable-static was given.
3218if test "${enable_static+set}" = set; then
3219  enableval="$enable_static"
3220  p=${PACKAGE-default}
3221    case $enableval in
3222    yes) enable_static=yes ;;
3223    no) enable_static=no ;;
3224    *)
3225     enable_static=no
3226      # Look at the argument we got.  We use all the common list separators.
3227      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3228      for pkg in $enableval; do
3229	IFS="$lt_save_ifs"
3230	if test "X$pkg" = "X$p"; then
3231	  enable_static=yes
3232	fi
3233      done
3234      IFS="$lt_save_ifs"
3235      ;;
3236    esac
3237else
3238  enable_static=yes
3239fi;
3240
3241# Check whether --enable-fast-install or --disable-fast-install was given.
3242if test "${enable_fast_install+set}" = set; then
3243  enableval="$enable_fast_install"
3244  p=${PACKAGE-default}
3245    case $enableval in
3246    yes) enable_fast_install=yes ;;
3247    no) enable_fast_install=no ;;
3248    *)
3249      enable_fast_install=no
3250      # Look at the argument we got.  We use all the common list separators.
3251      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3252      for pkg in $enableval; do
3253	IFS="$lt_save_ifs"
3254	if test "X$pkg" = "X$p"; then
3255	  enable_fast_install=yes
3256	fi
3257      done
3258      IFS="$lt_save_ifs"
3259      ;;
3260    esac
3261else
3262  enable_fast_install=yes
3263fi;
3264
3265# Make sure we can run config.sub.
3266$ac_config_sub sun4 >/dev/null 2>&1 ||
3267  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3268echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3269   { (exit 1); exit 1; }; }
3270
3271echo "$as_me:$LINENO: checking build system type" >&5
3272echo $ECHO_N "checking build system type... $ECHO_C" >&6
3273if test "${ac_cv_build+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  ac_cv_build_alias=$build_alias
3277test -z "$ac_cv_build_alias" &&
3278  ac_cv_build_alias=`$ac_config_guess`
3279test -z "$ac_cv_build_alias" &&
3280  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3281echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3282   { (exit 1); exit 1; }; }
3283ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3284  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3285echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3286   { (exit 1); exit 1; }; }
3287
3288fi
3289echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3290echo "${ECHO_T}$ac_cv_build" >&6
3291build=$ac_cv_build
3292build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3293build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3294build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3295
3296
3297echo "$as_me:$LINENO: checking host system type" >&5
3298echo $ECHO_N "checking host system type... $ECHO_C" >&6
3299if test "${ac_cv_host+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  ac_cv_host_alias=$host_alias
3303test -z "$ac_cv_host_alias" &&
3304  ac_cv_host_alias=$ac_cv_build_alias
3305ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3306  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3307echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3308   { (exit 1); exit 1; }; }
3309
3310fi
3311echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3312echo "${ECHO_T}$ac_cv_host" >&6
3313host=$ac_cv_host
3314host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3315host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3316host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3317
3318
3319echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3320echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3321if test "${lt_cv_path_SED+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  # Loop through the user's path and test for sed and gsed.
3325# Then use that list of sed's as ones to test for truncation.
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331  for lt_ac_prog in sed gsed; do
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3334        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3335      fi
3336    done
3337  done
3338done
3339lt_ac_max=0
3340lt_ac_count=0
3341# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3342# along with /bin/sed that truncates output.
3343for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3344  test ! -f $lt_ac_sed && break
3345  cat /dev/null > conftest.in
3346  lt_ac_count=0
3347  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3348  # Check for GNU sed and select it if it is found.
3349  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3350    lt_cv_path_SED=$lt_ac_sed
3351    break
3352  fi
3353  while true; do
3354    cat conftest.in conftest.in >conftest.tmp
3355    mv conftest.tmp conftest.in
3356    cp conftest.in conftest.nl
3357    echo >>conftest.nl
3358    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3359    cmp -s conftest.out conftest.nl || break
3360    # 10000 chars as input seems more than enough
3361    test $lt_ac_count -gt 10 && break
3362    lt_ac_count=`expr $lt_ac_count + 1`
3363    if test $lt_ac_count -gt $lt_ac_max; then
3364      lt_ac_max=$lt_ac_count
3365      lt_cv_path_SED=$lt_ac_sed
3366    fi
3367  done
3368done
3369SED=$lt_cv_path_SED
3370
3371fi
3372
3373echo "$as_me:$LINENO: result: $SED" >&5
3374echo "${ECHO_T}$SED" >&6
3375
3376echo "$as_me:$LINENO: checking for egrep" >&5
3377echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3378if test "${ac_cv_prog_egrep+set}" = set; then
3379  echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3382    then ac_cv_prog_egrep='grep -E'
3383    else ac_cv_prog_egrep='egrep'
3384    fi
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3387echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3388 EGREP=$ac_cv_prog_egrep
3389
3390
3391
3392# Check whether --with-gnu-ld or --without-gnu-ld was given.
3393if test "${with_gnu_ld+set}" = set; then
3394  withval="$with_gnu_ld"
3395  test "$withval" = no || with_gnu_ld=yes
3396else
3397  with_gnu_ld=no
3398fi;
3399ac_prog=ld
3400if test "$GCC" = yes; then
3401  # Check if gcc -print-prog-name=ld gives a path.
3402  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3403echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3404  case $host in
3405  *-*-mingw*)
3406    # gcc leaves a trailing carriage return which upsets mingw
3407    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3408  *)
3409    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3410  esac
3411  case $ac_prog in
3412    # Accept absolute paths.
3413    [\\/]* | ?:[\\/]*)
3414      re_direlt='/[^/][^/]*/\.\./'
3415      # Canonicalize the path of ld
3416      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3417      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3418	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3419      done
3420      test -z "$LD" && LD="$ac_prog"
3421      ;;
3422  "")
3423    # If it fails, then pretend we aren't using GCC.
3424    ac_prog=ld
3425    ;;
3426  *)
3427    # If it is relative, then search for the first ld in PATH.
3428    with_gnu_ld=unknown
3429    ;;
3430  esac
3431elif test "$with_gnu_ld" = yes; then
3432  echo "$as_me:$LINENO: checking for GNU ld" >&5
3433echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3434else
3435  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3436echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3437fi
3438if test "${lt_cv_path_LD+set}" = set; then
3439  echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441  if test -z "$LD"; then
3442  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3443  for ac_dir in $PATH; do
3444    IFS="$lt_save_ifs"
3445    test -z "$ac_dir" && ac_dir=.
3446    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3447      lt_cv_path_LD="$ac_dir/$ac_prog"
3448      # Check to see if the program is GNU ld.  I'd rather use --version,
3449      # but apparently some GNU ld's only accept -v.
3450      # Break only if it was the GNU/non-GNU ld that we prefer.
3451      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3452      *GNU* | *'with BFD'*)
3453	test "$with_gnu_ld" != no && break
3454	;;
3455      *)
3456	test "$with_gnu_ld" != yes && break
3457	;;
3458      esac
3459    fi
3460  done
3461  IFS="$lt_save_ifs"
3462else
3463  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3464fi
3465fi
3466
3467LD="$lt_cv_path_LD"
3468if test -n "$LD"; then
3469  echo "$as_me:$LINENO: result: $LD" >&5
3470echo "${ECHO_T}$LD" >&6
3471else
3472  echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
3474fi
3475test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3476echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3477   { (exit 1); exit 1; }; }
3478echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3479echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3480if test "${lt_cv_prog_gnu_ld+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3484case `"$LD" -v 2>&1 </dev/null` in
3485*GNU* | *'with BFD'*)
3486  lt_cv_prog_gnu_ld=yes
3487  ;;
3488*)
3489  lt_cv_prog_gnu_ld=no
3490  ;;
3491esac
3492fi
3493echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3494echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3495with_gnu_ld=$lt_cv_prog_gnu_ld
3496
3497
3498echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3499echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3500if test "${lt_cv_ld_reload_flag+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  lt_cv_ld_reload_flag='-r'
3504fi
3505echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3506echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3507reload_flag=$lt_cv_ld_reload_flag
3508case $reload_flag in
3509"" | " "*) ;;
3510*) reload_flag=" $reload_flag" ;;
3511esac
3512reload_cmds='$LD$reload_flag -o $output$reload_objs'
3513
3514echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3515echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3516if test "${lt_cv_path_NM+set}" = set; then
3517  echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519  if test -n "$NM"; then
3520  # Let the user override the test.
3521  lt_cv_path_NM="$NM"
3522else
3523  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3524  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3525    IFS="$lt_save_ifs"
3526    test -z "$ac_dir" && ac_dir=.
3527    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3528    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3529      # Check to see if the nm accepts a BSD-compat flag.
3530      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3531      #   nm: unknown option "B" ignored
3532      # Tru64's nm complains that /dev/null is an invalid object file
3533      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3534      */dev/null* | *'Invalid file or object type'*)
3535	lt_cv_path_NM="$tmp_nm -B"
3536	break
3537        ;;
3538      *)
3539	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3540	*/dev/null*)
3541	  lt_cv_path_NM="$tmp_nm -p"
3542	  break
3543	  ;;
3544	*)
3545	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3546	  continue # so that we can try to find one that supports BSD flags
3547	  ;;
3548	esac
3549      esac
3550    fi
3551  done
3552  IFS="$lt_save_ifs"
3553  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3554fi
3555fi
3556echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3557echo "${ECHO_T}$lt_cv_path_NM" >&6
3558NM="$lt_cv_path_NM"
3559
3560echo "$as_me:$LINENO: checking whether ln -s works" >&5
3561echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3562LN_S=$as_ln_s
3563if test "$LN_S" = "ln -s"; then
3564  echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
3566else
3567  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3568echo "${ECHO_T}no, using $LN_S" >&6
3569fi
3570
3571echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3572echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3573if test "${lt_cv_deplibs_check_method+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  lt_cv_file_magic_cmd='$MAGIC_CMD'
3577lt_cv_file_magic_test_file=
3578lt_cv_deplibs_check_method='unknown'
3579# Need to set the preceding variable on all platforms that support
3580# interlibrary dependencies.
3581# 'none' -- dependencies not supported.
3582# `unknown' -- same as none, but documents that we really don't know.
3583# 'pass_all' -- all dependencies passed with no checks.
3584# 'test_compile' -- check by making test program.
3585# 'file_magic [[regex]]' -- check by looking for files in library path
3586# which responds to the $file_magic_cmd with a given extended regex.
3587# If you have `file' or equivalent on your system and you're not sure
3588# whether `pass_all' will *always* work, you probably want this one.
3589
3590case $host_os in
3591aix4* | aix5*)
3592  lt_cv_deplibs_check_method=pass_all
3593  ;;
3594
3595beos*)
3596  lt_cv_deplibs_check_method=pass_all
3597  ;;
3598
3599bsdi4*)
3600  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3601  lt_cv_file_magic_cmd='/usr/bin/file -L'
3602  lt_cv_file_magic_test_file=/shlib/libc.so
3603  ;;
3604
3605cygwin* | mingw* | pw32*)
3606  # win32_libid is a shell function defined in ltmain.sh
3607  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3608  lt_cv_file_magic_cmd='win32_libid'
3609  ;;
3610
3611darwin* | rhapsody*)
3612  # this will be overwritten by pass_all, but leave it in just in case
3613  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3614  lt_cv_file_magic_cmd='/usr/bin/file -L'
3615  case "$host_os" in
3616  rhapsody* | darwin1.[012])
3617    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3618    ;;
3619  *) # Darwin 1.3 on
3620    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3621    ;;
3622  esac
3623  lt_cv_deplibs_check_method=pass_all
3624  ;;
3625
3626freebsd*)
3627  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628    case $host_cpu in
3629    i*86 )
3630      # Not sure whether the presence of OpenBSD here was a mistake.
3631      # Let's accept both of them until this is cleared up.
3632      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3633      lt_cv_file_magic_cmd=/usr/bin/file
3634      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3635      ;;
3636    esac
3637  else
3638    lt_cv_deplibs_check_method=pass_all
3639  fi
3640  ;;
3641
3642gnu*)
3643  lt_cv_deplibs_check_method=pass_all
3644  ;;
3645
3646hpux10.20* | hpux11*)
3647  lt_cv_file_magic_cmd=/usr/bin/file
3648  case "$host_cpu" in
3649  ia64*)
3650    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3651    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3652    ;;
3653  hppa*64*)
3654    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]'
3655    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3656    ;;
3657  *)
3658    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3659    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3660    ;;
3661  esac
3662  ;;
3663
3664irix5* | irix6* | nonstopux*)
3665  case $host_os in
3666  irix5* | nonstopux*)
3667    # this will be overridden with pass_all, but let us keep it just in case
3668    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3669    ;;
3670  *)
3671    case $LD in
3672    *-32|*"-32 ") libmagic=32-bit;;
3673    *-n32|*"-n32 ") libmagic=N32;;
3674    *-64|*"-64 ") libmagic=64-bit;;
3675    *) libmagic=never-match;;
3676    esac
3677    # this will be overridden with pass_all, but let us keep it just in case
3678    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3679    ;;
3680  esac
3681  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3682  lt_cv_deplibs_check_method=pass_all
3683  ;;
3684
3685# This must be Linux ELF.
3686linux*)
3687  case $host_cpu in
3688  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3689    lt_cv_deplibs_check_method=pass_all ;;
3690  *)
3691    # glibc up to 2.1.1 does not perform some relocations on ARM
3692    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3693  esac
3694  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3695  ;;
3696
3697netbsd*)
3698  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3700  else
3701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3702  fi
3703  ;;
3704
3705newos6*)
3706  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3707  lt_cv_file_magic_cmd=/usr/bin/file
3708  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3709  ;;
3710
3711nto-qnx)
3712  lt_cv_deplibs_check_method=unknown
3713  ;;
3714
3715openbsd*)
3716  lt_cv_file_magic_cmd=/usr/bin/file
3717  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3718  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3719    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3720  else
3721    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3722  fi
3723  ;;
3724
3725osf3* | osf4* | osf5*)
3726  # this will be overridden with pass_all, but let us keep it just in case
3727  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3728  lt_cv_file_magic_test_file=/shlib/libc.so
3729  lt_cv_deplibs_check_method=pass_all
3730  ;;
3731
3732sco3.2v5*)
3733  lt_cv_deplibs_check_method=pass_all
3734  ;;
3735
3736solaris*)
3737  lt_cv_deplibs_check_method=pass_all
3738  lt_cv_file_magic_test_file=/lib/libc.so
3739  ;;
3740
3741sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3742  case $host_vendor in
3743  motorola)
3744    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]'
3745    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3746    ;;
3747  ncr)
3748    lt_cv_deplibs_check_method=pass_all
3749    ;;
3750  sequent)
3751    lt_cv_file_magic_cmd='/bin/file'
3752    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3753    ;;
3754  sni)
3755    lt_cv_file_magic_cmd='/bin/file'
3756    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3757    lt_cv_file_magic_test_file=/lib/libc.so
3758    ;;
3759  siemens)
3760    lt_cv_deplibs_check_method=pass_all
3761    ;;
3762  esac
3763  ;;
3764
3765sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3766  lt_cv_deplibs_check_method=pass_all
3767  ;;
3768esac
3769
3770fi
3771echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3772echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3773file_magic_cmd=$lt_cv_file_magic_cmd
3774deplibs_check_method=$lt_cv_deplibs_check_method
3775test -z "$deplibs_check_method" && deplibs_check_method=unknown
3776
3777
3778
3779
3780# If no C compiler was specified, use CC.
3781LTCC=${LTCC-"$CC"}
3782
3783# Allow CC to be a program name with arguments.
3784compiler=$CC
3785
3786# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3787if test "${enable_libtool_lock+set}" = set; then
3788  enableval="$enable_libtool_lock"
3789
3790fi;
3791test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3792
3793# Some flags need to be propagated to the compiler or linker for good
3794# libtool support.
3795case $host in
3796ia64-*-hpux*)
3797  # Find out which ABI we are using.
3798  echo 'int i;' > conftest.$ac_ext
3799  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800  (eval $ac_compile) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; then
3804    case `/usr/bin/file conftest.$ac_objext` in
3805    *ELF-32*)
3806      HPUX_IA64_MODE="32"
3807      ;;
3808    *ELF-64*)
3809      HPUX_IA64_MODE="64"
3810      ;;
3811    esac
3812  fi
3813  rm -rf conftest*
3814  ;;
3815*-*-irix6*)
3816  # Find out which ABI we are using.
3817  echo '#line 3817 "configure"' > conftest.$ac_ext
3818  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819  (eval $ac_compile) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; then
3823   if test "$lt_cv_prog_gnu_ld" = yes; then
3824    case `/usr/bin/file conftest.$ac_objext` in
3825    *32-bit*)
3826      LD="${LD-ld} -melf32bsmip"
3827      ;;
3828    *N32*)
3829      LD="${LD-ld} -melf32bmipn32"
3830      ;;
3831    *64-bit*)
3832      LD="${LD-ld} -melf64bmip"
3833      ;;
3834    esac
3835   else
3836    case `/usr/bin/file conftest.$ac_objext` in
3837    *32-bit*)
3838      LD="${LD-ld} -32"
3839      ;;
3840    *N32*)
3841      LD="${LD-ld} -n32"
3842      ;;
3843    *64-bit*)
3844      LD="${LD-ld} -64"
3845      ;;
3846    esac
3847   fi
3848  fi
3849  rm -rf conftest*
3850  ;;
3851
3852x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3853  # Find out which ABI we are using.
3854  echo 'int i;' > conftest.$ac_ext
3855  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856  (eval $ac_compile) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; then
3860    case "`/usr/bin/file conftest.o`" in
3861    *32-bit*)
3862      case $host in
3863        x86_64-*linux*)
3864          LD="${LD-ld} -m elf_i386"
3865          ;;
3866        ppc64-*linux*)
3867          LD="${LD-ld} -m elf32ppclinux"
3868          ;;
3869        s390x-*linux*)
3870          LD="${LD-ld} -m elf_s390"
3871          ;;
3872        sparc64-*linux*)
3873          LD="${LD-ld} -m elf32_sparc"
3874          ;;
3875      esac
3876      ;;
3877    *64-bit*)
3878      case $host in
3879        x86_64-*linux*)
3880          LD="${LD-ld} -m elf_x86_64"
3881          ;;
3882        ppc*-*linux*|powerpc*-*linux*)
3883          LD="${LD-ld} -m elf64ppc"
3884          ;;
3885        s390*-*linux*)
3886          LD="${LD-ld} -m elf64_s390"
3887          ;;
3888        sparc*-*linux*)
3889          LD="${LD-ld} -m elf64_sparc"
3890          ;;
3891      esac
3892      ;;
3893    esac
3894  fi
3895  rm -rf conftest*
3896  ;;
3897
3898*-*-sco3.2v5*)
3899  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3900  SAVE_CFLAGS="$CFLAGS"
3901  CFLAGS="$CFLAGS -belf"
3902  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3903echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3904if test "${lt_cv_cc_needs_belf+set}" = set; then
3905  echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907  ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913     cat >conftest.$ac_ext <<_ACEOF
3914#line $LINENO "configure"
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920
3921int
3922main ()
3923{
3924
3925  ;
3926  return 0;
3927}
3928_ACEOF
3929rm -f conftest.$ac_objext conftest$ac_exeext
3930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931  (eval $ac_link) 2>&5
3932  ac_status=$?
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); } &&
3935         { ac_try='test -s conftest$ac_exeext'
3936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937  (eval $ac_try) 2>&5
3938  ac_status=$?
3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940  (exit $ac_status); }; }; then
3941  lt_cv_cc_needs_belf=yes
3942else
3943  echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946lt_cv_cc_needs_belf=no
3947fi
3948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3949     ac_ext=c
3950ac_cpp='$CPP $CPPFLAGS'
3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955fi
3956echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3957echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3958  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3959    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3960    CFLAGS="$SAVE_CFLAGS"
3961  fi
3962  ;;
3963
3964esac
3965
3966need_locks="$enable_libtool_lock"
3967
3968
3969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3975echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3976# On Suns, sometimes $CPP names a directory.
3977if test -n "$CPP" && test -d "$CPP"; then
3978  CPP=
3979fi
3980if test -z "$CPP"; then
3981  if test "${ac_cv_prog_CPP+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984      # Double quotes because CPP needs to be expanded
3985    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3986    do
3987      ac_preproc_ok=false
3988for ac_c_preproc_warn_flag in '' yes
3989do
3990  # Use a header file that comes with gcc, so configuring glibc
3991  # with a fresh cross-compiler works.
3992  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993  # <limits.h> exists even on freestanding compilers.
3994  # On the NeXT, cc -E runs the code through the compiler's parser,
3995  # not just through cpp. "Syntax error" is here to catch this case.
3996  cat >conftest.$ac_ext <<_ACEOF
3997#line $LINENO "configure"
3998/* confdefs.h.  */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h.  */
4003#ifdef __STDC__
4004# include <limits.h>
4005#else
4006# include <assert.h>
4007#endif
4008                     Syntax error
4009_ACEOF
4010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012  ac_status=$?
4013  grep -v '^ *+' conftest.er1 >conftest.err
4014  rm -f conftest.er1
4015  cat conftest.err >&5
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); } >/dev/null; then
4018  if test -s conftest.err; then
4019    ac_cpp_err=$ac_c_preproc_warn_flag
4020  else
4021    ac_cpp_err=
4022  fi
4023else
4024  ac_cpp_err=yes
4025fi
4026if test -z "$ac_cpp_err"; then
4027  :
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032  # Broken: fails on valid input.
4033continue
4034fi
4035rm -f conftest.err conftest.$ac_ext
4036
4037  # OK, works on sane cases.  Now check whether non-existent headers
4038  # can be detected and how.
4039  cat >conftest.$ac_ext <<_ACEOF
4040#line $LINENO "configure"
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046#include <ac_nonexistent.h>
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050  ac_status=$?
4051  grep -v '^ *+' conftest.er1 >conftest.err
4052  rm -f conftest.er1
4053  cat conftest.err >&5
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } >/dev/null; then
4056  if test -s conftest.err; then
4057    ac_cpp_err=$ac_c_preproc_warn_flag
4058  else
4059    ac_cpp_err=
4060  fi
4061else
4062  ac_cpp_err=yes
4063fi
4064if test -z "$ac_cpp_err"; then
4065  # Broken: success on invalid input.
4066continue
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then
4081  break
4082fi
4083
4084    done
4085    ac_cv_prog_CPP=$CPP
4086
4087fi
4088  CPP=$ac_cv_prog_CPP
4089else
4090  ac_cv_prog_CPP=$CPP
4091fi
4092echo "$as_me:$LINENO: result: $CPP" >&5
4093echo "${ECHO_T}$CPP" >&6
4094ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat >conftest.$ac_ext <<_ACEOF
4104#line $LINENO "configure"
4105/* confdefs.h.  */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h.  */
4110#ifdef __STDC__
4111# include <limits.h>
4112#else
4113# include <assert.h>
4114#endif
4115                     Syntax error
4116_ACEOF
4117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } >/dev/null; then
4125  if test -s conftest.err; then
4126    ac_cpp_err=$ac_c_preproc_warn_flag
4127  else
4128    ac_cpp_err=
4129  fi
4130else
4131  ac_cpp_err=yes
4132fi
4133if test -z "$ac_cpp_err"; then
4134  :
4135else
4136  echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139  # Broken: fails on valid input.
4140continue
4141fi
4142rm -f conftest.err conftest.$ac_ext
4143
4144  # OK, works on sane cases.  Now check whether non-existent headers
4145  # can be detected and how.
4146  cat >conftest.$ac_ext <<_ACEOF
4147#line $LINENO "configure"
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153#include <ac_nonexistent.h>
4154_ACEOF
4155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4156  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157  ac_status=$?
4158  grep -v '^ *+' conftest.er1 >conftest.err
4159  rm -f conftest.er1
4160  cat conftest.err >&5
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); } >/dev/null; then
4163  if test -s conftest.err; then
4164    ac_cpp_err=$ac_c_preproc_warn_flag
4165  else
4166    ac_cpp_err=
4167  fi
4168else
4169  ac_cpp_err=yes
4170fi
4171if test -z "$ac_cpp_err"; then
4172  # Broken: success on invalid input.
4173continue
4174else
4175  echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178  # Passes both tests.
4179ac_preproc_ok=:
4180break
4181fi
4182rm -f conftest.err conftest.$ac_ext
4183
4184done
4185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186rm -f conftest.err conftest.$ac_ext
4187if $ac_preproc_ok; then
4188  :
4189else
4190  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4191See \`config.log' for more details." >&5
4192echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193See \`config.log' for more details." >&2;}
4194   { (exit 1); exit 1; }; }
4195fi
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4205echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4206if test "${ac_cv_header_stdc+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  cat >conftest.$ac_ext <<_ACEOF
4210#line $LINENO "configure"
4211/* confdefs.h.  */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h.  */
4216#include <stdlib.h>
4217#include <stdarg.h>
4218#include <string.h>
4219#include <float.h>
4220
4221int
4222main ()
4223{
4224
4225  ;
4226  return 0;
4227}
4228_ACEOF
4229rm -f conftest.$ac_objext
4230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231  (eval $ac_compile) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); } &&
4235         { ac_try='test -s conftest.$ac_objext'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; }; then
4241  ac_cv_header_stdc=yes
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv_header_stdc=no
4247fi
4248rm -f conftest.$ac_objext conftest.$ac_ext
4249
4250if test $ac_cv_header_stdc = yes; then
4251  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4252  cat >conftest.$ac_ext <<_ACEOF
4253#line $LINENO "configure"
4254/* confdefs.h.  */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h.  */
4259#include <string.h>
4260
4261_ACEOF
4262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263  $EGREP "memchr" >/dev/null 2>&1; then
4264  :
4265else
4266  ac_cv_header_stdc=no
4267fi
4268rm -f conftest*
4269
4270fi
4271
4272if test $ac_cv_header_stdc = yes; then
4273  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274  cat >conftest.$ac_ext <<_ACEOF
4275#line $LINENO "configure"
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281#include <stdlib.h>
4282
4283_ACEOF
4284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285  $EGREP "free" >/dev/null 2>&1; then
4286  :
4287else
4288  ac_cv_header_stdc=no
4289fi
4290rm -f conftest*
4291
4292fi
4293
4294if test $ac_cv_header_stdc = yes; then
4295  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296  if test "$cross_compiling" = yes; then
4297  :
4298else
4299  cat >conftest.$ac_ext <<_ACEOF
4300#line $LINENO "configure"
4301/* confdefs.h.  */
4302_ACEOF
4303cat confdefs.h >>conftest.$ac_ext
4304cat >>conftest.$ac_ext <<_ACEOF
4305/* end confdefs.h.  */
4306#include <ctype.h>
4307#if ((' ' & 0x0FF) == 0x020)
4308# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310#else
4311# define ISLOWER(c) \
4312                   (('a' <= (c) && (c) <= 'i') \
4313                     || ('j' <= (c) && (c) <= 'r') \
4314                     || ('s' <= (c) && (c) <= 'z'))
4315# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316#endif
4317
4318#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319int
4320main ()
4321{
4322  int i;
4323  for (i = 0; i < 256; i++)
4324    if (XOR (islower (i), ISLOWER (i))
4325        || toupper (i) != TOUPPER (i))
4326      exit(2);
4327  exit (0);
4328}
4329_ACEOF
4330rm -f conftest$ac_exeext
4331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332  (eval $ac_link) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337  (eval $ac_try) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; }; then
4341  :
4342else
4343  echo "$as_me: program exited with status $ac_status" >&5
4344echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347( exit $ac_status )
4348ac_cv_header_stdc=no
4349fi
4350rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351fi
4352fi
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4355echo "${ECHO_T}$ac_cv_header_stdc" >&6
4356if test $ac_cv_header_stdc = yes; then
4357
4358cat >>confdefs.h <<\_ACEOF
4359#define STDC_HEADERS 1
4360_ACEOF
4361
4362fi
4363
4364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4375                  inttypes.h stdint.h unistd.h
4376do
4377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4378echo "$as_me:$LINENO: checking for $ac_header" >&5
4379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4380if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381  echo $ECHO_N "(cached) $ECHO_C" >&6
4382else
4383  cat >conftest.$ac_ext <<_ACEOF
4384#line $LINENO "configure"
4385/* confdefs.h.  */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h.  */
4390$ac_includes_default
4391
4392#include <$ac_header>
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396  (eval $ac_compile) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } &&
4400         { ac_try='test -s conftest.$ac_objext'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  eval "$as_ac_Header=yes"
4407else
4408  echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411eval "$as_ac_Header=no"
4412fi
4413rm -f conftest.$ac_objext conftest.$ac_ext
4414fi
4415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4417if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418  cat >>confdefs.h <<_ACEOF
4419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4420_ACEOF
4421
4422fi
4423
4424done
4425
4426
4427
4428for ac_header in dlfcn.h
4429do
4430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431if eval "test \"\${$as_ac_Header+set}\" = set"; then
4432  echo "$as_me:$LINENO: checking for $ac_header" >&5
4433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4434if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436fi
4437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439else
4440  # Is the header compilable?
4441echo "$as_me:$LINENO: checking $ac_header usability" >&5
4442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4443cat >conftest.$ac_ext <<_ACEOF
4444#line $LINENO "configure"
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450$ac_includes_default
4451#include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } &&
4459         { ac_try='test -s conftest.$ac_objext'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; }; then
4465  ac_header_compiler=yes
4466else
4467  echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470ac_header_compiler=no
4471fi
4472rm -f conftest.$ac_objext conftest.$ac_ext
4473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474echo "${ECHO_T}$ac_header_compiler" >&6
4475
4476# Is the header present?
4477echo "$as_me:$LINENO: checking $ac_header presence" >&5
4478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4479cat >conftest.$ac_ext <<_ACEOF
4480#line $LINENO "configure"
4481/* confdefs.h.  */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h.  */
4486#include <$ac_header>
4487_ACEOF
4488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490  ac_status=$?
4491  grep -v '^ *+' conftest.er1 >conftest.err
4492  rm -f conftest.er1
4493  cat conftest.err >&5
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); } >/dev/null; then
4496  if test -s conftest.err; then
4497    ac_cpp_err=$ac_c_preproc_warn_flag
4498  else
4499    ac_cpp_err=
4500  fi
4501else
4502  ac_cpp_err=yes
4503fi
4504if test -z "$ac_cpp_err"; then
4505  ac_header_preproc=yes
4506else
4507  echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510  ac_header_preproc=no
4511fi
4512rm -f conftest.err conftest.$ac_ext
4513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4514echo "${ECHO_T}$ac_header_preproc" >&6
4515
4516# So?  What about this header?
4517case $ac_header_compiler:$ac_header_preproc in
4518  yes:no )
4519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4523    (
4524      cat <<\_ASBOX
4525## ------------------------------------ ##
4526## Report this to bug-autoconf@gnu.org. ##
4527## ------------------------------------ ##
4528_ASBOX
4529    ) |
4530      sed "s/^/$as_me: WARNING:     /" >&2
4531    ;;
4532  no:yes )
4533    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4539    (
4540      cat <<\_ASBOX
4541## ------------------------------------ ##
4542## Report this to bug-autoconf@gnu.org. ##
4543## ------------------------------------ ##
4544_ASBOX
4545    ) |
4546      sed "s/^/$as_me: WARNING:     /" >&2
4547    ;;
4548esac
4549echo "$as_me:$LINENO: checking for $ac_header" >&5
4550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  eval "$as_ac_Header=$ac_header_preproc"
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558
4559fi
4560if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561  cat >>confdefs.h <<_ACEOF
4562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563_ACEOF
4564
4565fi
4566
4567done
4568
4569ac_ext=cc
4570ac_cpp='$CXXCPP $CPPFLAGS'
4571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574if test -n "$ac_tool_prefix"; then
4575  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4576  do
4577    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_prog_CXX+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  if test -n "$CXX"; then
4585  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4586else
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592  for ac_exec_ext in '' $ac_executable_extensions; do
4593  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596    break 2
4597  fi
4598done
4599done
4600
4601fi
4602fi
4603CXX=$ac_cv_prog_CXX
4604if test -n "$CXX"; then
4605  echo "$as_me:$LINENO: result: $CXX" >&5
4606echo "${ECHO_T}$CXX" >&6
4607else
4608  echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610fi
4611
4612    test -n "$CXX" && break
4613  done
4614fi
4615if test -z "$CXX"; then
4616  ac_ct_CXX=$CXX
4617  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4618do
4619  # Extract the first word of "$ac_prog", so it can be a program name with args.
4620set dummy $ac_prog; ac_word=$2
4621echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$ac_ct_CXX"; then
4627  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636    ac_cv_prog_ac_ct_CXX="$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642
4643fi
4644fi
4645ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4646if test -n "$ac_ct_CXX"; then
4647  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4648echo "${ECHO_T}$ac_ct_CXX" >&6
4649else
4650  echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
4654  test -n "$ac_ct_CXX" && break
4655done
4656test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4657
4658  CXX=$ac_ct_CXX
4659fi
4660
4661
4662# Provide some information about the compiler.
4663echo "$as_me:$LINENO:" \
4664     "checking for C++ compiler version" >&5
4665ac_compiler=`set X $ac_compile; echo $2`
4666{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4667  (eval $ac_compiler --version </dev/null >&5) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }
4671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4672  (eval $ac_compiler -v </dev/null >&5) 2>&5
4673  ac_status=$?
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); }
4676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4677  (eval $ac_compiler -V </dev/null >&5) 2>&5
4678  ac_status=$?
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); }
4681
4682echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4683echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4684if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  cat >conftest.$ac_ext <<_ACEOF
4688#line $LINENO "configure"
4689/* confdefs.h.  */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h.  */
4694
4695int
4696main ()
4697{
4698#ifndef __GNUC__
4699       choke me
4700#endif
4701
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708  (eval $ac_compile) 2>&5
4709  ac_status=$?
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); } &&
4712         { ac_try='test -s conftest.$ac_objext'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; }; then
4718  ac_compiler_gnu=yes
4719else
4720  echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723ac_compiler_gnu=no
4724fi
4725rm -f conftest.$ac_objext conftest.$ac_ext
4726ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4727
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4730echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4731GXX=`test $ac_compiler_gnu = yes && echo yes`
4732ac_test_CXXFLAGS=${CXXFLAGS+set}
4733ac_save_CXXFLAGS=$CXXFLAGS
4734CXXFLAGS="-g"
4735echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4736echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4737if test "${ac_cv_prog_cxx_g+set}" = set; then
4738  echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740  cat >conftest.$ac_ext <<_ACEOF
4741#line $LINENO "configure"
4742/* confdefs.h.  */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h.  */
4747
4748int
4749main ()
4750{
4751
4752  ;
4753  return 0;
4754}
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758  (eval $ac_compile) 2>&5
4759  ac_status=$?
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); } &&
4762         { ac_try='test -s conftest.$ac_objext'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; }; then
4768  ac_cv_prog_cxx_g=yes
4769else
4770  echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773ac_cv_prog_cxx_g=no
4774fi
4775rm -f conftest.$ac_objext conftest.$ac_ext
4776fi
4777echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4778echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4779if test "$ac_test_CXXFLAGS" = set; then
4780  CXXFLAGS=$ac_save_CXXFLAGS
4781elif test $ac_cv_prog_cxx_g = yes; then
4782  if test "$GXX" = yes; then
4783    CXXFLAGS="-g -O2"
4784  else
4785    CXXFLAGS="-g"
4786  fi
4787else
4788  if test "$GXX" = yes; then
4789    CXXFLAGS="-O2"
4790  else
4791    CXXFLAGS=
4792  fi
4793fi
4794for ac_declaration in \
4795   ''\
4796   '#include <stdlib.h>' \
4797   'extern "C" void std::exit (int) throw (); using std::exit;' \
4798   'extern "C" void std::exit (int); using std::exit;' \
4799   'extern "C" void exit (int) throw ();' \
4800   'extern "C" void exit (int);' \
4801   'void exit (int);'
4802do
4803  cat >conftest.$ac_ext <<_ACEOF
4804#line $LINENO "configure"
4805/* confdefs.h.  */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h.  */
4810#include <stdlib.h>
4811$ac_declaration
4812int
4813main ()
4814{
4815exit (42);
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822  (eval $ac_compile) 2>&5
4823  ac_status=$?
4824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825  (exit $ac_status); } &&
4826         { ac_try='test -s conftest.$ac_objext'
4827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828  (eval $ac_try) 2>&5
4829  ac_status=$?
4830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831  (exit $ac_status); }; }; then
4832  :
4833else
4834  echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837continue
4838fi
4839rm -f conftest.$ac_objext conftest.$ac_ext
4840  cat >conftest.$ac_ext <<_ACEOF
4841#line $LINENO "configure"
4842/* confdefs.h.  */
4843_ACEOF
4844cat confdefs.h >>conftest.$ac_ext
4845cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h.  */
4847$ac_declaration
4848int
4849main ()
4850{
4851exit (42);
4852  ;
4853  return 0;
4854}
4855_ACEOF
4856rm -f conftest.$ac_objext
4857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858  (eval $ac_compile) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); } &&
4862         { ac_try='test -s conftest.$ac_objext'
4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864  (eval $ac_try) 2>&5
4865  ac_status=$?
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); }; }; then
4868  break
4869else
4870  echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873fi
4874rm -f conftest.$ac_objext conftest.$ac_ext
4875done
4876rm -f conftest*
4877if test -n "$ac_declaration"; then
4878  echo '#ifdef __cplusplus' >>confdefs.h
4879  echo $ac_declaration      >>confdefs.h
4880  echo '#endif'             >>confdefs.h
4881fi
4882
4883ac_ext=cc
4884ac_cpp='$CXXCPP $CPPFLAGS'
4885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4888
4889depcc="$CXX"  am_compiler_list=
4890
4891echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4892echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4893if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4897  # We make a subdir and do the tests there.  Otherwise we can end up
4898  # making bogus files that we don't know about and never remove.  For
4899  # instance it was reported that on HP-UX the gcc test will end up
4900  # making a dummy file named `D' -- because `-MD' means `put the output
4901  # in D'.
4902  mkdir conftest.dir
4903  # Copy depcomp to subdir because otherwise we won't find it if we're
4904  # using a relative directory.
4905  cp "$am_depcomp" conftest.dir
4906  cd conftest.dir
4907
4908  am_cv_CXX_dependencies_compiler_type=none
4909  if test "$am_compiler_list" = ""; then
4910     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4911  fi
4912  for depmode in $am_compiler_list; do
4913    # We need to recreate these files for each test, as the compiler may
4914    # overwrite some of them when testing with obscure command lines.
4915    # This happens at least with the AIX C compiler.
4916    echo '#include "conftest.h"' > conftest.c
4917    echo 'int i;' > conftest.h
4918    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4919
4920    case $depmode in
4921    nosideeffect)
4922      # after this tag, mechanisms are not by side-effect, so they'll
4923      # only be used when explicitly requested
4924      if test "x$enable_dependency_tracking" = xyes; then
4925	continue
4926      else
4927	break
4928      fi
4929      ;;
4930    none) break ;;
4931    esac
4932    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4933    # mode.  It turns out that the SunPro C++ compiler does not properly
4934    # handle `-M -o', and we need to detect this.
4935    if depmode=$depmode \
4936       source=conftest.c object=conftest.o \
4937       depfile=conftest.Po tmpdepfile=conftest.TPo \
4938       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
4939         >/dev/null 2>conftest.err &&
4940       grep conftest.h conftest.Po > /dev/null 2>&1 &&
4941       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4942      # icc doesn't choke on unknown options, it will just issue warnings
4943      # (even with -Werror).  So we grep stderr for any message
4944      # that says an option was ignored.
4945      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4946        am_cv_CXX_dependencies_compiler_type=$depmode
4947        break
4948      fi
4949    fi
4950  done
4951
4952  cd ..
4953  rm -rf conftest.dir
4954else
4955  am_cv_CXX_dependencies_compiler_type=none
4956fi
4957
4958fi
4959echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4960echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4961CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4962
4963
4964
4965if
4966  test "x$enable_dependency_tracking" != xno \
4967  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4968  am__fastdepCXX_TRUE=
4969  am__fastdepCXX_FALSE='#'
4970else
4971  am__fastdepCXX_TRUE='#'
4972  am__fastdepCXX_FALSE=
4973fi
4974
4975
4976ac_ext=cc
4977ac_cpp='$CXXCPP $CPPFLAGS'
4978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4981echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4982echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4983if test -z "$CXXCPP"; then
4984  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987      # Double quotes because CXXCPP needs to be expanded
4988    for CXXCPP in "$CXX -E" "/lib/cpp"
4989    do
4990      ac_preproc_ok=false
4991for ac_cxx_preproc_warn_flag in '' yes
4992do
4993  # Use a header file that comes with gcc, so configuring glibc
4994  # with a fresh cross-compiler works.
4995  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996  # <limits.h> exists even on freestanding compilers.
4997  # On the NeXT, cc -E runs the code through the compiler's parser,
4998  # not just through cpp. "Syntax error" is here to catch this case.
4999  cat >conftest.$ac_ext <<_ACEOF
5000#line $LINENO "configure"
5001/* confdefs.h.  */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h.  */
5006#ifdef __STDC__
5007# include <limits.h>
5008#else
5009# include <assert.h>
5010#endif
5011                     Syntax error
5012_ACEOF
5013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5021  if test -s conftest.err; then
5022    ac_cpp_err=$ac_cxx_preproc_warn_flag
5023  else
5024    ac_cpp_err=
5025  fi
5026else
5027  ac_cpp_err=yes
5028fi
5029if test -z "$ac_cpp_err"; then
5030  :
5031else
5032  echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035  # Broken: fails on valid input.
5036continue
5037fi
5038rm -f conftest.err conftest.$ac_ext
5039
5040  # OK, works on sane cases.  Now check whether non-existent headers
5041  # can be detected and how.
5042  cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044/* confdefs.h.  */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h.  */
5049#include <ac_nonexistent.h>
5050_ACEOF
5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053  ac_status=$?
5054  grep -v '^ *+' conftest.er1 >conftest.err
5055  rm -f conftest.er1
5056  cat conftest.err >&5
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); } >/dev/null; then
5059  if test -s conftest.err; then
5060    ac_cpp_err=$ac_cxx_preproc_warn_flag
5061  else
5062    ac_cpp_err=
5063  fi
5064else
5065  ac_cpp_err=yes
5066fi
5067if test -z "$ac_cpp_err"; then
5068  # Broken: success on invalid input.
5069continue
5070else
5071  echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074  # Passes both tests.
5075ac_preproc_ok=:
5076break
5077fi
5078rm -f conftest.err conftest.$ac_ext
5079
5080done
5081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082rm -f conftest.err conftest.$ac_ext
5083if $ac_preproc_ok; then
5084  break
5085fi
5086
5087    done
5088    ac_cv_prog_CXXCPP=$CXXCPP
5089
5090fi
5091  CXXCPP=$ac_cv_prog_CXXCPP
5092else
5093  ac_cv_prog_CXXCPP=$CXXCPP
5094fi
5095echo "$as_me:$LINENO: result: $CXXCPP" >&5
5096echo "${ECHO_T}$CXXCPP" >&6
5097ac_preproc_ok=false
5098for ac_cxx_preproc_warn_flag in '' yes
5099do
5100  # Use a header file that comes with gcc, so configuring glibc
5101  # with a fresh cross-compiler works.
5102  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103  # <limits.h> exists even on freestanding compilers.
5104  # On the NeXT, cc -E runs the code through the compiler's parser,
5105  # not just through cpp. "Syntax error" is here to catch this case.
5106  cat >conftest.$ac_ext <<_ACEOF
5107#line $LINENO "configure"
5108/* confdefs.h.  */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h.  */
5113#ifdef __STDC__
5114# include <limits.h>
5115#else
5116# include <assert.h>
5117#endif
5118                     Syntax error
5119_ACEOF
5120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } >/dev/null; then
5128  if test -s conftest.err; then
5129    ac_cpp_err=$ac_cxx_preproc_warn_flag
5130  else
5131    ac_cpp_err=
5132  fi
5133else
5134  ac_cpp_err=yes
5135fi
5136if test -z "$ac_cpp_err"; then
5137  :
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142  # Broken: fails on valid input.
5143continue
5144fi
5145rm -f conftest.err conftest.$ac_ext
5146
5147  # OK, works on sane cases.  Now check whether non-existent headers
5148  # can be detected and how.
5149  cat >conftest.$ac_ext <<_ACEOF
5150#line $LINENO "configure"
5151/* confdefs.h.  */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h.  */
5156#include <ac_nonexistent.h>
5157_ACEOF
5158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160  ac_status=$?
5161  grep -v '^ *+' conftest.er1 >conftest.err
5162  rm -f conftest.er1
5163  cat conftest.err >&5
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); } >/dev/null; then
5166  if test -s conftest.err; then
5167    ac_cpp_err=$ac_cxx_preproc_warn_flag
5168  else
5169    ac_cpp_err=
5170  fi
5171else
5172  ac_cpp_err=yes
5173fi
5174if test -z "$ac_cpp_err"; then
5175  # Broken: success on invalid input.
5176continue
5177else
5178  echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181  # Passes both tests.
5182ac_preproc_ok=:
5183break
5184fi
5185rm -f conftest.err conftest.$ac_ext
5186
5187done
5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189rm -f conftest.err conftest.$ac_ext
5190if $ac_preproc_ok; then
5191  :
5192else
5193  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5194See \`config.log' for more details." >&5
5195echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5196See \`config.log' for more details." >&2;}
5197   { (exit 1); exit 1; }; }
5198fi
5199
5200ac_ext=cc
5201ac_cpp='$CXXCPP $CPPFLAGS'
5202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5205
5206
5207ac_ext=f
5208ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5209ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5211if test -n "$ac_tool_prefix"; then
5212  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5213  do
5214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216echo "$as_me:$LINENO: checking for $ac_word" >&5
5217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218if test "${ac_cv_prog_F77+set}" = set; then
5219  echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221  if test -n "$F77"; then
5222  ac_cv_prog_F77="$F77" # Let the user override the test.
5223else
5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227  IFS=$as_save_IFS
5228  test -z "$as_dir" && as_dir=.
5229  for ac_exec_ext in '' $ac_executable_extensions; do
5230  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5232    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233    break 2
5234  fi
5235done
5236done
5237
5238fi
5239fi
5240F77=$ac_cv_prog_F77
5241if test -n "$F77"; then
5242  echo "$as_me:$LINENO: result: $F77" >&5
5243echo "${ECHO_T}$F77" >&6
5244else
5245  echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247fi
5248
5249    test -n "$F77" && break
5250  done
5251fi
5252if test -z "$F77"; then
5253  ac_ct_F77=$F77
5254  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5255do
5256  # Extract the first word of "$ac_prog", so it can be a program name with args.
5257set dummy $ac_prog; ac_word=$2
5258echo "$as_me:$LINENO: checking for $ac_word" >&5
5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  if test -n "$ac_ct_F77"; then
5264  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271  for ac_exec_ext in '' $ac_executable_extensions; do
5272  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273    ac_cv_prog_ac_ct_F77="$ac_prog"
5274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278done
5279
5280fi
5281fi
5282ac_ct_F77=$ac_cv_prog_ac_ct_F77
5283if test -n "$ac_ct_F77"; then
5284  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5285echo "${ECHO_T}$ac_ct_F77" >&6
5286else
5287  echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289fi
5290
5291  test -n "$ac_ct_F77" && break
5292done
5293
5294  F77=$ac_ct_F77
5295fi
5296
5297
5298# Provide some information about the compiler.
5299echo "$as_me:5299:" \
5300     "checking for Fortran 77 compiler version" >&5
5301ac_compiler=`set X $ac_compile; echo $2`
5302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5303  (eval $ac_compiler --version </dev/null >&5) 2>&5
5304  ac_status=$?
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); }
5307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5308  (eval $ac_compiler -v </dev/null >&5) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }
5312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5313  (eval $ac_compiler -V </dev/null >&5) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }
5317
5318# If we don't use `.F' as extension, the preprocessor is not run on the
5319# input file.
5320ac_save_ext=$ac_ext
5321ac_ext=F
5322echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5323echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5324if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5325  echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327  cat >conftest.$ac_ext <<_ACEOF
5328      program main
5329#ifndef __GNUC__
5330       choke me
5331#endif
5332
5333      end
5334_ACEOF
5335rm -f conftest.$ac_objext
5336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337  (eval $ac_compile) 2>&5
5338  ac_status=$?
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); } &&
5341         { ac_try='test -s conftest.$ac_objext'
5342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343  (eval $ac_try) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }; }; then
5347  ac_compiler_gnu=yes
5348else
5349  echo "$as_me: failed program was:" >&5
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
5352ac_compiler_gnu=no
5353fi
5354rm -f conftest.$ac_objext conftest.$ac_ext
5355ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5356
5357fi
5358echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5359echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5360ac_ext=$ac_save_ext
5361G77=`test $ac_compiler_gnu = yes && echo yes`
5362ac_test_FFLAGS=${FFLAGS+set}
5363ac_save_FFLAGS=$FFLAGS
5364FFLAGS=
5365echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5366echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5367if test "${ac_cv_prog_f77_g+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  FFLAGS=-g
5371cat >conftest.$ac_ext <<_ACEOF
5372      program main
5373
5374      end
5375_ACEOF
5376rm -f conftest.$ac_objext
5377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378  (eval $ac_compile) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); } &&
5382         { ac_try='test -s conftest.$ac_objext'
5383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384  (eval $ac_try) 2>&5
5385  ac_status=$?
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); }; }; then
5388  ac_cv_prog_f77_g=yes
5389else
5390  echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393ac_cv_prog_f77_g=no
5394fi
5395rm -f conftest.$ac_objext conftest.$ac_ext
5396
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5399echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5400if test "$ac_test_FFLAGS" = set; then
5401  FFLAGS=$ac_save_FFLAGS
5402elif test $ac_cv_prog_f77_g = yes; then
5403  if test "$G77" = yes; then
5404    FFLAGS="-g -O2"
5405  else
5406    FFLAGS="-g"
5407  fi
5408else
5409  if test "$G77" = yes; then
5410    FFLAGS="-O2"
5411  else
5412    FFLAGS=
5413  fi
5414fi
5415ac_ext=c
5416ac_cpp='$CPP $CPPFLAGS'
5417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420
5421
5422
5423# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5424
5425# find the maximum length of command line arguments
5426echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5427echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5428if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5429  echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431    i=0
5432  testring="ABCD"
5433
5434  case $build_os in
5435  msdosdjgpp*)
5436    # On DJGPP, this test can blow up pretty badly due to problems in libc
5437    # (any single argument exceeding 2000 bytes causes a buffer overrun
5438    # during glob expansion).  Even if it were fixed, the result of this
5439    # check would be larger than it should be.
5440    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5441    ;;
5442
5443  gnu*)
5444    # Under GNU Hurd, this test is not required because there is
5445    # no limit to the length of command line arguments.
5446    # Libtool will interpret -1 as no limit whatsoever
5447    lt_cv_sys_max_cmd_len=-1;
5448    ;;
5449
5450  cygwin* | mingw*)
5451    # On Win9x/ME, this test blows up -- it succeeds, but takes
5452    # about 5 minutes as the teststring grows exponentially.
5453    # Worse, since 9x/ME are not pre-emptively multitasking,
5454    # you end up with a "frozen" computer, even though with patience
5455    # the test eventually succeeds (with a max line length of 256k).
5456    # Instead, let's just punt: use the minimum linelength reported by
5457    # all of the supported platforms: 8192 (on NT/2K/XP).
5458    lt_cv_sys_max_cmd_len=8192;
5459    ;;
5460
5461 *)
5462    # If test is not a shell built-in, we'll probably end up computing a
5463    # maximum length that is only half of the actual maximum length, but
5464    # we can't tell.
5465    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5466	       = "XX$testring") >/dev/null 2>&1 &&
5467	    new_result=`expr "X$testring" : ".*" 2>&1` &&
5468	    lt_cv_sys_max_cmd_len=$new_result &&
5469	    test $i != 17 # 1/2 MB should be enough
5470    do
5471      i=`expr $i + 1`
5472      testring=$testring$testring
5473    done
5474    testring=
5475    # Add a significant safety factor because C++ compilers can tack on massive
5476    # amounts of additional arguments before passing them to the linker.
5477    # It appears as though 1/2 is a usable value.
5478    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479    ;;
5480  esac
5481
5482fi
5483
5484if test -n $lt_cv_sys_max_cmd_len ; then
5485  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5486echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5487else
5488  echo "$as_me:$LINENO: result: none" >&5
5489echo "${ECHO_T}none" >&6
5490fi
5491
5492
5493
5494
5495# Check for command to grab the raw symbol name followed by C symbol from nm.
5496echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501
5502# These are sane defaults that work on at least a few old systems.
5503# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5504
5505# Character class describing NM global symbol codes.
5506symcode='[BCDEGRST]'
5507
5508# Regexp to match symbols that can be accessed directly from C.
5509sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
5511# Transform the above into a raw symbol and a C symbol.
5512symxfrm='\1 \2\3 \3'
5513
5514# Transform an extracted symbol line into a proper C declaration
5515lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5516
5517# Transform an extracted symbol line into symbol name and symbol address
5518lt_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'"
5519
5520# Define system-specific variables.
5521case $host_os in
5522aix*)
5523  symcode='[BCDT]'
5524  ;;
5525cygwin* | mingw* | pw32*)
5526  symcode='[ABCDGISTW]'
5527  ;;
5528hpux*) # Its linker distinguishes data from code symbols
5529  if test "$host_cpu" = ia64; then
5530    symcode='[ABCDEGRST]'
5531  fi
5532  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5533  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'"
5534  ;;
5535irix* | nonstopux*)
5536  symcode='[BCDEGRST]'
5537  ;;
5538osf*)
5539  symcode='[BCDEGQRST]'
5540  ;;
5541solaris* | sysv5*)
5542  symcode='[BDT]'
5543  ;;
5544sysv4)
5545  symcode='[DFNSTU]'
5546  ;;
5547esac
5548
5549# Handle CRLF in mingw tool chain
5550opt_cr=
5551case $build_os in
5552mingw*)
5553  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5554  ;;
5555esac
5556
5557# If we're using GNU nm, then use its standard symbol codes.
5558case `$NM -V 2>&1` in
5559*GNU* | *'with BFD'*)
5560  symcode='[ABCDGISTW]' ;;
5561esac
5562
5563# Try without a prefix undercore, then with it.
5564for ac_symprfx in "" "_"; do
5565
5566  # Write the raw and C identifiers.
5567  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5568
5569  # Check to see that the pipe works correctly.
5570  pipe_works=no
5571
5572  rm -f conftest*
5573  cat > conftest.$ac_ext <<EOF
5574#ifdef __cplusplus
5575extern "C" {
5576#endif
5577char nm_test_var;
5578void nm_test_func(){}
5579#ifdef __cplusplus
5580}
5581#endif
5582int main(){nm_test_var='a';nm_test_func();return(0);}
5583EOF
5584
5585  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586  (eval $ac_compile) 2>&5
5587  ac_status=$?
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); }; then
5590    # Now try to grab the symbols.
5591    nlist=conftest.nm
5592    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5593  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5594  ac_status=$?
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); } && test -s "$nlist"; then
5597      # Try sorting and uniquifying the output.
5598      if sort "$nlist" | uniq > "$nlist"T; then
5599	mv -f "$nlist"T "$nlist"
5600      else
5601	rm -f "$nlist"T
5602      fi
5603
5604      # Make sure that we snagged all the symbols we need.
5605      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5606	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5607	  cat <<EOF > conftest.$ac_ext
5608#ifdef __cplusplus
5609extern "C" {
5610#endif
5611
5612EOF
5613	  # Now generate the symbol file.
5614	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5615
5616	  cat <<EOF >> conftest.$ac_ext
5617#if defined (__STDC__) && __STDC__
5618# define lt_ptr_t void *
5619#else
5620# define lt_ptr_t char *
5621# define const
5622#endif
5623
5624/* The mapping between symbol names and symbols. */
5625const struct {
5626  const char *name;
5627  lt_ptr_t address;
5628}
5629lt_preloaded_symbols[] =
5630{
5631EOF
5632	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5633	  cat <<\EOF >> conftest.$ac_ext
5634  {0, (lt_ptr_t) 0}
5635};
5636
5637#ifdef __cplusplus
5638}
5639#endif
5640EOF
5641	  # Now try linking the two files.
5642	  mv conftest.$ac_objext conftstm.$ac_objext
5643	  lt_save_LIBS="$LIBS"
5644	  lt_save_CFLAGS="$CFLAGS"
5645	  LIBS="conftstm.$ac_objext"
5646	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5647	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648  (eval $ac_link) 2>&5
5649  ac_status=$?
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5652	    pipe_works=yes
5653	  fi
5654	  LIBS="$lt_save_LIBS"
5655	  CFLAGS="$lt_save_CFLAGS"
5656	else
5657	  echo "cannot find nm_test_func in $nlist" >&5
5658	fi
5659      else
5660	echo "cannot find nm_test_var in $nlist" >&5
5661      fi
5662    else
5663      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5664    fi
5665  else
5666    echo "$progname: failed program was:" >&5
5667    cat conftest.$ac_ext >&5
5668  fi
5669  rm -f conftest* conftst*
5670
5671  # Do not use the global_symbol_pipe unless it works.
5672  if test "$pipe_works" = yes; then
5673    break
5674  else
5675    lt_cv_sys_global_symbol_pipe=
5676  fi
5677done
5678
5679fi
5680
5681if test -z "$lt_cv_sys_global_symbol_pipe"; then
5682  lt_cv_sys_global_symbol_to_cdecl=
5683fi
5684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5685  echo "$as_me:$LINENO: result: failed" >&5
5686echo "${ECHO_T}failed" >&6
5687else
5688  echo "$as_me:$LINENO: result: ok" >&5
5689echo "${ECHO_T}ok" >&6
5690fi
5691
5692echo "$as_me:$LINENO: checking for objdir" >&5
5693echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5694if test "${lt_cv_objdir+set}" = set; then
5695  echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697  rm -f .libs 2>/dev/null
5698mkdir .libs 2>/dev/null
5699if test -d .libs; then
5700  lt_cv_objdir=.libs
5701else
5702  # MS-DOS does not allow filenames that begin with a dot.
5703  lt_cv_objdir=_libs
5704fi
5705rmdir .libs 2>/dev/null
5706fi
5707echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5708echo "${ECHO_T}$lt_cv_objdir" >&6
5709objdir=$lt_cv_objdir
5710
5711
5712
5713
5714
5715case $host_os in
5716aix3*)
5717  # AIX sometimes has problems with the GCC collect2 program.  For some
5718  # reason, if we set the COLLECT_NAMES environment variable, the problems
5719  # vanish in a puff of smoke.
5720  if test "X${COLLECT_NAMES+set}" != Xset; then
5721    COLLECT_NAMES=
5722    export COLLECT_NAMES
5723  fi
5724  ;;
5725esac
5726
5727# Sed substitution that helps us do robust quoting.  It backslashifies
5728# metacharacters that are still active within double-quoted strings.
5729Xsed='sed -e s/^X//'
5730sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5731
5732# Same as above, but do not quote variable references.
5733double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5734
5735# Sed substitution to delay expansion of an escaped shell variable in a
5736# double_quote_subst'ed string.
5737delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5738
5739# Sed substitution to avoid accidental globbing in evaled expressions
5740no_glob_subst='s/\*/\\\*/g'
5741
5742# Constants:
5743rm="rm -f"
5744
5745# Global variables:
5746default_ofile=libtool
5747can_build_shared=yes
5748
5749# All known linkers require a `.a' archive for static linking (except M$VC,
5750# which needs '.lib').
5751libext=a
5752ltmain="$ac_aux_dir/ltmain.sh"
5753ofile="$default_ofile"
5754with_gnu_ld="$lt_cv_prog_gnu_ld"
5755
5756if test -n "$ac_tool_prefix"; then
5757  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5758set dummy ${ac_tool_prefix}ar; ac_word=$2
5759echo "$as_me:$LINENO: checking for $ac_word" >&5
5760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5761if test "${ac_cv_prog_AR+set}" = set; then
5762  echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764  if test -n "$AR"; then
5765  ac_cv_prog_AR="$AR" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770  IFS=$as_save_IFS
5771  test -z "$as_dir" && as_dir=.
5772  for ac_exec_ext in '' $ac_executable_extensions; do
5773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774    ac_cv_prog_AR="${ac_tool_prefix}ar"
5775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776    break 2
5777  fi
5778done
5779done
5780
5781fi
5782fi
5783AR=$ac_cv_prog_AR
5784if test -n "$AR"; then
5785  echo "$as_me:$LINENO: result: $AR" >&5
5786echo "${ECHO_T}$AR" >&6
5787else
5788  echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
5790fi
5791
5792fi
5793if test -z "$ac_cv_prog_AR"; then
5794  ac_ct_AR=$AR
5795  # Extract the first word of "ar", so it can be a program name with args.
5796set dummy ar; ac_word=$2
5797echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  if test -n "$ac_ct_AR"; then
5803  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810  for ac_exec_ext in '' $ac_executable_extensions; do
5811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812    ac_cv_prog_ac_ct_AR="ar"
5813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814    break 2
5815  fi
5816done
5817done
5818
5819  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5820fi
5821fi
5822ac_ct_AR=$ac_cv_prog_ac_ct_AR
5823if test -n "$ac_ct_AR"; then
5824  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5825echo "${ECHO_T}$ac_ct_AR" >&6
5826else
5827  echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829fi
5830
5831  AR=$ac_ct_AR
5832else
5833  AR="$ac_cv_prog_AR"
5834fi
5835
5836if test -n "$ac_tool_prefix"; then
5837  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839echo "$as_me:$LINENO: checking for $ac_word" >&5
5840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841if test "${ac_cv_prog_RANLIB+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844  if test -n "$RANLIB"; then
5845  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852  for ac_exec_ext in '' $ac_executable_extensions; do
5853  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859done
5860
5861fi
5862fi
5863RANLIB=$ac_cv_prog_RANLIB
5864if test -n "$RANLIB"; then
5865  echo "$as_me:$LINENO: result: $RANLIB" >&5
5866echo "${ECHO_T}$RANLIB" >&6
5867else
5868  echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870fi
5871
5872fi
5873if test -z "$ac_cv_prog_RANLIB"; then
5874  ac_ct_RANLIB=$RANLIB
5875  # Extract the first word of "ranlib", so it can be a program name with args.
5876set dummy ranlib; ac_word=$2
5877echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5880  echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882  if test -n "$ac_ct_RANLIB"; then
5883  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890  for ac_exec_ext in '' $ac_executable_extensions; do
5891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892    ac_cv_prog_ac_ct_RANLIB="ranlib"
5893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897done
5898
5899  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5900fi
5901fi
5902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5903if test -n "$ac_ct_RANLIB"; then
5904  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5905echo "${ECHO_T}$ac_ct_RANLIB" >&6
5906else
5907  echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909fi
5910
5911  RANLIB=$ac_ct_RANLIB
5912else
5913  RANLIB="$ac_cv_prog_RANLIB"
5914fi
5915
5916if test -n "$ac_tool_prefix"; then
5917  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5918set dummy ${ac_tool_prefix}strip; ac_word=$2
5919echo "$as_me:$LINENO: checking for $ac_word" >&5
5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921if test "${ac_cv_prog_STRIP+set}" = set; then
5922  echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924  if test -n "$STRIP"; then
5925  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930  IFS=$as_save_IFS
5931  test -z "$as_dir" && as_dir=.
5932  for ac_exec_ext in '' $ac_executable_extensions; do
5933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936    break 2
5937  fi
5938done
5939done
5940
5941fi
5942fi
5943STRIP=$ac_cv_prog_STRIP
5944if test -n "$STRIP"; then
5945  echo "$as_me:$LINENO: result: $STRIP" >&5
5946echo "${ECHO_T}$STRIP" >&6
5947else
5948  echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6
5950fi
5951
5952fi
5953if test -z "$ac_cv_prog_STRIP"; then
5954  ac_ct_STRIP=$STRIP
5955  # Extract the first word of "strip", so it can be a program name with args.
5956set dummy strip; ac_word=$2
5957echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962  if test -n "$ac_ct_STRIP"; then
5963  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970  for ac_exec_ext in '' $ac_executable_extensions; do
5971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_ac_ct_STRIP="strip"
5973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977done
5978
5979  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5980fi
5981fi
5982ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5983if test -n "$ac_ct_STRIP"; then
5984  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5985echo "${ECHO_T}$ac_ct_STRIP" >&6
5986else
5987  echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989fi
5990
5991  STRIP=$ac_ct_STRIP
5992else
5993  STRIP="$ac_cv_prog_STRIP"
5994fi
5995
5996
5997old_CC="$CC"
5998old_CFLAGS="$CFLAGS"
5999
6000# Set sane defaults for various variables
6001test -z "$AR" && AR=ar
6002test -z "$AR_FLAGS" && AR_FLAGS=cru
6003test -z "$AS" && AS=as
6004test -z "$CC" && CC=cc
6005test -z "$LTCC" && LTCC=$CC
6006test -z "$DLLTOOL" && DLLTOOL=dlltool
6007test -z "$LD" && LD=ld
6008test -z "$LN_S" && LN_S="ln -s"
6009test -z "$MAGIC_CMD" && MAGIC_CMD=file
6010test -z "$NM" && NM=nm
6011test -z "$SED" && SED=sed
6012test -z "$OBJDUMP" && OBJDUMP=objdump
6013test -z "$RANLIB" && RANLIB=:
6014test -z "$STRIP" && STRIP=:
6015test -z "$ac_objext" && ac_objext=o
6016
6017# Determine commands to create old-style static archives.
6018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6019old_postinstall_cmds='chmod 644 $oldlib'
6020old_postuninstall_cmds=
6021
6022if test -n "$RANLIB"; then
6023  case $host_os in
6024  openbsd*)
6025    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6026    ;;
6027  *)
6028    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6029    ;;
6030  esac
6031  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6032fi
6033
6034# Only perform the check for file, if the check method requires it
6035case $deplibs_check_method in
6036file_magic*)
6037  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6038    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6039echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6040if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6041  echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043  case $MAGIC_CMD in
6044[\\/*] |  ?:[\\/]*)
6045  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6046  ;;
6047*)
6048  lt_save_MAGIC_CMD="$MAGIC_CMD"
6049  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6050  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6051  for ac_dir in $ac_dummy; do
6052    IFS="$lt_save_ifs"
6053    test -z "$ac_dir" && ac_dir=.
6054    if test -f $ac_dir/${ac_tool_prefix}file; then
6055      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6056      if test -n "$file_magic_test_file"; then
6057	case $deplibs_check_method in
6058	"file_magic "*)
6059	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6060	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6061	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6062	    $EGREP "$file_magic_regex" > /dev/null; then
6063	    :
6064	  else
6065	    cat <<EOF 1>&2
6066
6067*** Warning: the command libtool uses to detect shared libraries,
6068*** $file_magic_cmd, produces output that libtool cannot recognize.
6069*** The result is that libtool may fail to recognize shared libraries
6070*** as such.  This will affect the creation of libtool libraries that
6071*** depend on shared libraries, but programs linked with such libtool
6072*** libraries will work regardless of this problem.  Nevertheless, you
6073*** may want to report the problem to your system manager and/or to
6074*** bug-libtool@gnu.org
6075
6076EOF
6077	  fi ;;
6078	esac
6079      fi
6080      break
6081    fi
6082  done
6083  IFS="$lt_save_ifs"
6084  MAGIC_CMD="$lt_save_MAGIC_CMD"
6085  ;;
6086esac
6087fi
6088
6089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090if test -n "$MAGIC_CMD"; then
6091  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6092echo "${ECHO_T}$MAGIC_CMD" >&6
6093else
6094  echo "$as_me:$LINENO: result: no" >&5
6095echo "${ECHO_T}no" >&6
6096fi
6097
6098if test -z "$lt_cv_path_MAGIC_CMD"; then
6099  if test -n "$ac_tool_prefix"; then
6100    echo "$as_me:$LINENO: checking for file" >&5
6101echo $ECHO_N "checking for file... $ECHO_C" >&6
6102if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6103  echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105  case $MAGIC_CMD in
6106[\\/*] |  ?:[\\/]*)
6107  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6108  ;;
6109*)
6110  lt_save_MAGIC_CMD="$MAGIC_CMD"
6111  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6112  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6113  for ac_dir in $ac_dummy; do
6114    IFS="$lt_save_ifs"
6115    test -z "$ac_dir" && ac_dir=.
6116    if test -f $ac_dir/file; then
6117      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6118      if test -n "$file_magic_test_file"; then
6119	case $deplibs_check_method in
6120	"file_magic "*)
6121	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6122	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6123	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6124	    $EGREP "$file_magic_regex" > /dev/null; then
6125	    :
6126	  else
6127	    cat <<EOF 1>&2
6128
6129*** Warning: the command libtool uses to detect shared libraries,
6130*** $file_magic_cmd, produces output that libtool cannot recognize.
6131*** The result is that libtool may fail to recognize shared libraries
6132*** as such.  This will affect the creation of libtool libraries that
6133*** depend on shared libraries, but programs linked with such libtool
6134*** libraries will work regardless of this problem.  Nevertheless, you
6135*** may want to report the problem to your system manager and/or to
6136*** bug-libtool@gnu.org
6137
6138EOF
6139	  fi ;;
6140	esac
6141      fi
6142      break
6143    fi
6144  done
6145  IFS="$lt_save_ifs"
6146  MAGIC_CMD="$lt_save_MAGIC_CMD"
6147  ;;
6148esac
6149fi
6150
6151MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6152if test -n "$MAGIC_CMD"; then
6153  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6154echo "${ECHO_T}$MAGIC_CMD" >&6
6155else
6156  echo "$as_me:$LINENO: result: no" >&5
6157echo "${ECHO_T}no" >&6
6158fi
6159
6160  else
6161    MAGIC_CMD=:
6162  fi
6163fi
6164
6165  fi
6166  ;;
6167esac
6168
6169enable_dlopen=no
6170enable_win32_dll=no
6171
6172# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6173if test "${enable_libtool_lock+set}" = set; then
6174  enableval="$enable_libtool_lock"
6175
6176fi;
6177test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6178
6179
6180# Check whether --with-pic or --without-pic was given.
6181if test "${with_pic+set}" = set; then
6182  withval="$with_pic"
6183  pic_mode="$withval"
6184else
6185  pic_mode=default
6186fi;
6187test -z "$pic_mode" && pic_mode=default
6188
6189# Use C for the default configuration in the libtool script
6190tagname=
6191lt_save_CC="$CC"
6192ac_ext=c
6193ac_cpp='$CPP $CPPFLAGS'
6194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197
6198
6199# Source file extension for C test sources.
6200ac_ext=c
6201
6202# Object file extension for compiled C test sources.
6203objext=o
6204objext=$objext
6205
6206# Code to be used in simple compile tests
6207lt_simple_compile_test_code="int some_variable = 0;\n"
6208
6209# Code to be used in simple link tests
6210lt_simple_link_test_code='int main(){return(0);}\n'
6211
6212
6213# If no C compiler was specified, use CC.
6214LTCC=${LTCC-"$CC"}
6215
6216# Allow CC to be a program name with arguments.
6217compiler=$CC
6218
6219
6220#
6221# Check for any special shared library compilation flags.
6222#
6223lt_prog_cc_shlib=
6224if test "$GCC" = no; then
6225  case $host_os in
6226  sco3.2v5*)
6227    lt_prog_cc_shlib='-belf'
6228    ;;
6229  esac
6230fi
6231if test -n "$lt_prog_cc_shlib"; then
6232  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6233echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6234  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6235  else
6236    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6237echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6238    lt_cv_prog_cc_can_build_shared=no
6239  fi
6240fi
6241
6242
6243#
6244# Check to make sure the static flag actually works.
6245#
6246echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6247echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6248if test "${lt_prog_compiler_static_works+set}" = set; then
6249  echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251  lt_prog_compiler_static_works=no
6252   save_LDFLAGS="$LDFLAGS"
6253   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6254   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6255   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6256     # The compiler can only warn and ignore the option if not recognized
6257     # So say no if there are warnings
6258     if test -s conftest.err; then
6259       # Append any errors to the config.log.
6260       cat conftest.err 1>&5
6261     else
6262       lt_prog_compiler_static_works=yes
6263     fi
6264   fi
6265   $rm conftest*
6266   LDFLAGS="$save_LDFLAGS"
6267
6268fi
6269echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6270echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6271
6272if test x"$lt_prog_compiler_static_works" = xyes; then
6273    :
6274else
6275    lt_prog_compiler_static=
6276fi
6277
6278
6279
6280
6281lt_prog_compiler_no_builtin_flag=
6282
6283if test "$GCC" = yes; then
6284  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6285
6286  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6287echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6288if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6289  echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
6291  lt_cv_prog_compiler_rtti_exceptions=no
6292  ac_outfile=conftest.$ac_objext
6293   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6294   lt_compiler_flag="-fno-rtti -fno-exceptions"
6295   # Insert the option either (1) after the last *FLAGS variable, or
6296   # (2) before a word containing "conftest.", or (3) at the end.
6297   # Note that $ac_compile itself does not contain backslashes and begins
6298   # with a dollar sign (not a hyphen), so the echo should work correctly.
6299   # The option is referenced via a variable to avoid confusing sed.
6300   lt_compile=`echo "$ac_compile" | $SED \
6301   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6302   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6303   -e 's:$: $lt_compiler_flag:'`
6304   (eval echo "\"\$as_me:6304: $lt_compile\"" >&5)
6305   (eval "$lt_compile" 2>conftest.err)
6306   ac_status=$?
6307   cat conftest.err >&5
6308   echo "$as_me:6308: \$? = $ac_status" >&5
6309   if (exit $ac_status) && test -s "$ac_outfile"; then
6310     # The compiler can only warn and ignore the option if not recognized
6311     # So say no if there are warnings
6312     if test ! -s conftest.err; then
6313       lt_cv_prog_compiler_rtti_exceptions=yes
6314     fi
6315   fi
6316   $rm conftest*
6317
6318fi
6319echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6320echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6321
6322if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6323    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6324else
6325    :
6326fi
6327
6328fi
6329
6330lt_prog_compiler_wl=
6331lt_prog_compiler_pic=
6332lt_prog_compiler_static=
6333
6334echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6335echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6336
6337  if test "$GCC" = yes; then
6338    lt_prog_compiler_wl='-Wl,'
6339    lt_prog_compiler_static='-static'
6340
6341    case $host_os in
6342      aix*)
6343      # All AIX code is PIC.
6344      if test "$host_cpu" = ia64; then
6345	# AIX 5 now supports IA64 processor
6346	lt_prog_compiler_static='-Bstatic'
6347      fi
6348      ;;
6349
6350    amigaos*)
6351      # FIXME: we need at least 68020 code to build shared libraries, but
6352      # adding the `-m68020' flag to GCC prevents building anything better,
6353      # like `-m68040'.
6354      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6355      ;;
6356
6357    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6358      # PIC is the default for these OSes.
6359      ;;
6360
6361    mingw* | pw32* | os2*)
6362      # This hack is so that the source file can tell whether it is being
6363      # built for inclusion in a dll (and should export symbols for example).
6364      lt_prog_compiler_pic='-DDLL_EXPORT'
6365      ;;
6366
6367    darwin* | rhapsody*)
6368      # PIC is the default on this platform
6369      # Common symbols not allowed in MH_DYLIB files
6370      lt_prog_compiler_pic='-fno-common'
6371      ;;
6372
6373    msdosdjgpp*)
6374      # Just because we use GCC doesn't mean we suddenly get shared libraries
6375      # on systems that don't support them.
6376      lt_prog_compiler_can_build_shared=no
6377      enable_shared=no
6378      ;;
6379
6380    sysv4*MP*)
6381      if test -d /usr/nec; then
6382	lt_prog_compiler_pic=-Kconform_pic
6383      fi
6384      ;;
6385
6386    hpux*)
6387      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6388      # not for PA HP-UX.
6389      case "$host_cpu" in
6390      hppa*64*|ia64*)
6391	# +Z the default
6392	;;
6393      *)
6394	lt_prog_compiler_pic='-fPIC'
6395	;;
6396      esac
6397      ;;
6398
6399    *)
6400      lt_prog_compiler_pic='-fPIC'
6401      ;;
6402    esac
6403  else
6404    # PORTME Check for flag to pass linker flags through the system compiler.
6405    case $host_os in
6406    aix*)
6407      lt_prog_compiler_wl='-Wl,'
6408      if test "$host_cpu" = ia64; then
6409	# AIX 5 now supports IA64 processor
6410	lt_prog_compiler_static='-Bstatic'
6411      else
6412	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6413      fi
6414      ;;
6415
6416    mingw* | pw32* | os2*)
6417      # This hack is so that the source file can tell whether it is being
6418      # built for inclusion in a dll (and should export symbols for example).
6419      lt_prog_compiler_pic='-DDLL_EXPORT'
6420      ;;
6421
6422    hpux9* | hpux10* | hpux11*)
6423      lt_prog_compiler_wl='-Wl,'
6424      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6425      # not for PA HP-UX.
6426      case "$host_cpu" in
6427      hppa*64*|ia64*)
6428	# +Z the default
6429	;;
6430      *)
6431	lt_prog_compiler_pic='+Z'
6432	;;
6433      esac
6434      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6435      lt_prog_compiler_static='${wl}-a ${wl}archive'
6436      ;;
6437
6438    irix5* | irix6* | nonstopux*)
6439      lt_prog_compiler_wl='-Wl,'
6440      # PIC (with -KPIC) is the default.
6441      lt_prog_compiler_static='-non_shared'
6442      ;;
6443
6444    newsos6)
6445      lt_prog_compiler_pic='-KPIC'
6446      lt_prog_compiler_static='-Bstatic'
6447      ;;
6448
6449    linux*)
6450      case $CC in
6451      icc|ecc)
6452	lt_prog_compiler_wl='-Wl,'
6453	lt_prog_compiler_pic='-KPIC'
6454	lt_prog_compiler_static='-static'
6455        ;;
6456      ccc)
6457        lt_prog_compiler_wl='-Wl,'
6458        # All Alpha code is PIC.
6459        lt_prog_compiler_static='-non_shared'
6460        ;;
6461      esac
6462      ;;
6463
6464    osf3* | osf4* | osf5*)
6465      lt_prog_compiler_wl='-Wl,'
6466      # All OSF/1 code is PIC.
6467      lt_prog_compiler_static='-non_shared'
6468      ;;
6469
6470    sco3.2v5*)
6471      lt_prog_compiler_pic='-Kpic'
6472      lt_prog_compiler_static='-dn'
6473      ;;
6474
6475    solaris*)
6476      lt_prog_compiler_wl='-Wl,'
6477      lt_prog_compiler_pic='-KPIC'
6478      lt_prog_compiler_static='-Bstatic'
6479      ;;
6480
6481    sunos4*)
6482      lt_prog_compiler_wl='-Qoption ld '
6483      lt_prog_compiler_pic='-PIC'
6484      lt_prog_compiler_static='-Bstatic'
6485      ;;
6486
6487    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6488      lt_prog_compiler_wl='-Wl,'
6489      lt_prog_compiler_pic='-KPIC'
6490      lt_prog_compiler_static='-Bstatic'
6491      ;;
6492
6493    sysv4*MP*)
6494      if test -d /usr/nec ;then
6495	lt_prog_compiler_pic='-Kconform_pic'
6496	lt_prog_compiler_static='-Bstatic'
6497      fi
6498      ;;
6499
6500    uts4*)
6501      lt_prog_compiler_pic='-pic'
6502      lt_prog_compiler_static='-Bstatic'
6503      ;;
6504
6505    *)
6506      lt_prog_compiler_can_build_shared=no
6507      ;;
6508    esac
6509  fi
6510
6511echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6512echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6513
6514#
6515# Check to make sure the PIC flag actually works.
6516#
6517if test -n "$lt_prog_compiler_pic"; then
6518  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6519echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6520if test "${lt_prog_compiler_pic_works+set}" = set; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  lt_prog_compiler_pic_works=no
6524  ac_outfile=conftest.$ac_objext
6525   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6526   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6527   # Insert the option either (1) after the last *FLAGS variable, or
6528   # (2) before a word containing "conftest.", or (3) at the end.
6529   # Note that $ac_compile itself does not contain backslashes and begins
6530   # with a dollar sign (not a hyphen), so the echo should work correctly.
6531   # The option is referenced via a variable to avoid confusing sed.
6532   lt_compile=`echo "$ac_compile" | $SED \
6533   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6535   -e 's:$: $lt_compiler_flag:'`
6536   (eval echo "\"\$as_me:6536: $lt_compile\"" >&5)
6537   (eval "$lt_compile" 2>conftest.err)
6538   ac_status=$?
6539   cat conftest.err >&5
6540   echo "$as_me:6540: \$? = $ac_status" >&5
6541   if (exit $ac_status) && test -s "$ac_outfile"; then
6542     # The compiler can only warn and ignore the option if not recognized
6543     # So say no if there are warnings
6544     if test ! -s conftest.err; then
6545       lt_prog_compiler_pic_works=yes
6546     fi
6547   fi
6548   $rm conftest*
6549
6550fi
6551echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6552echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6553
6554if test x"$lt_prog_compiler_pic_works" = xyes; then
6555    case $lt_prog_compiler_pic in
6556     "" | " "*) ;;
6557     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6558     esac
6559else
6560    lt_prog_compiler_pic=
6561     lt_prog_compiler_can_build_shared=no
6562fi
6563
6564fi
6565case "$host_os" in
6566  # For platforms which do not support PIC, -DPIC is meaningless:
6567  *djgpp*)
6568    lt_prog_compiler_pic=
6569    ;;
6570  *)
6571    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6572    ;;
6573esac
6574
6575echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6577if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  lt_cv_prog_compiler_c_o=no
6581   $rm -r conftest 2>/dev/null
6582   mkdir conftest
6583   cd conftest
6584   mkdir out
6585   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6586
6587   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6588   # that will create temporary files in the current directory regardless of
6589   # the output directory.  Thus, making CWD read-only will cause this test
6590   # to fail, enabling locking or at least warning the user not to do parallel
6591   # builds.
6592   chmod -w .
6593
6594   lt_compiler_flag="-o out/conftest2.$ac_objext"
6595   # Insert the option either (1) after the last *FLAGS variable, or
6596   # (2) before a word containing "conftest.", or (3) at the end.
6597   # Note that $ac_compile itself does not contain backslashes and begins
6598   # with a dollar sign (not a hyphen), so the echo should work correctly.
6599   lt_compile=`echo "$ac_compile" | $SED \
6600   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6602   -e 's:$: $lt_compiler_flag:'`
6603   (eval echo "\"\$as_me:6603: $lt_compile\"" >&5)
6604   (eval "$lt_compile" 2>out/conftest.err)
6605   ac_status=$?
6606   cat out/conftest.err >&5
6607   echo "$as_me:6607: \$? = $ac_status" >&5
6608   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6609   then
6610     # The compiler can only warn and ignore the option if not recognized
6611     # So say no if there are warnings
6612     if test ! -s out/conftest.err; then
6613       lt_cv_prog_compiler_c_o=yes
6614     fi
6615   fi
6616   chmod u+w .
6617   $rm conftest* out/*
6618   rmdir out
6619   cd ..
6620   rmdir conftest
6621   $rm conftest*
6622
6623fi
6624echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6625echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6626
6627
6628hard_links="nottested"
6629if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6630  # do not overwrite the value of need_locks provided by the user
6631  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6632echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6633  hard_links=yes
6634  $rm conftest*
6635  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6636  touch conftest.a
6637  ln conftest.a conftest.b 2>&5 || hard_links=no
6638  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6639  echo "$as_me:$LINENO: result: $hard_links" >&5
6640echo "${ECHO_T}$hard_links" >&6
6641  if test "$hard_links" = no; then
6642    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6643echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6644    need_locks=warn
6645  fi
6646else
6647  need_locks=no
6648fi
6649
6650echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6651echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6652
6653  runpath_var=
6654  allow_undefined_flag=
6655  enable_shared_with_static_runtimes=no
6656  archive_cmds=
6657  archive_expsym_cmds=
6658  old_archive_From_new_cmds=
6659  old_archive_from_expsyms_cmds=
6660  export_dynamic_flag_spec=
6661  whole_archive_flag_spec=
6662  thread_safe_flag_spec=
6663  hardcode_libdir_flag_spec=
6664  hardcode_libdir_flag_spec_ld=
6665  hardcode_libdir_separator=
6666  hardcode_direct=no
6667  hardcode_minus_L=no
6668  hardcode_shlibpath_var=unsupported
6669  link_all_deplibs=unknown
6670  hardcode_automatic=no
6671  module_cmds=
6672  module_expsym_cmds=
6673  always_export_symbols=no
6674  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6675  # include_expsyms should be a list of space-separated symbols to be *always*
6676  # included in the symbol list
6677  include_expsyms=
6678  # exclude_expsyms can be an extended regexp of symbols to exclude
6679  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6680  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6681  # as well as any symbol that contains `d'.
6682  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6683  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6684  # platforms (ab)use it in PIC code, but their linkers get confused if
6685  # the symbol is explicitly referenced.  Since portable code cannot
6686  # rely on this symbol name, it's probably fine to never include it in
6687  # preloaded symbol tables.
6688  extract_expsyms_cmds=
6689
6690  case $host_os in
6691  cygwin* | mingw* | pw32*)
6692    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6693    # When not using gcc, we currently assume that we are using
6694    # Microsoft Visual C++.
6695    if test "$GCC" != yes; then
6696      with_gnu_ld=no
6697    fi
6698    ;;
6699  openbsd*)
6700    with_gnu_ld=no
6701    ;;
6702  esac
6703
6704  ld_shlibs=yes
6705  if test "$with_gnu_ld" = yes; then
6706    # If archive_cmds runs LD, not CC, wlarc should be empty
6707    wlarc='${wl}'
6708
6709    # See if GNU ld supports shared libraries.
6710    case $host_os in
6711    aix3* | aix4* | aix5*)
6712      # On AIX/PPC, the GNU linker is very broken
6713      if test "$host_cpu" != ia64; then
6714	ld_shlibs=no
6715	cat <<EOF 1>&2
6716
6717*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6718*** to be unable to reliably create shared libraries on AIX.
6719*** Therefore, libtool is disabling shared libraries support.  If you
6720*** really care for shared libraries, you may want to modify your PATH
6721*** so that a non-GNU linker is found, and then restart.
6722
6723EOF
6724      fi
6725      ;;
6726
6727    amigaos*)
6728      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)'
6729      hardcode_libdir_flag_spec='-L$libdir'
6730      hardcode_minus_L=yes
6731
6732      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6733      # that the semantics of dynamic libraries on AmigaOS, at least up
6734      # to version 4, is to share data among multiple programs linked
6735      # with the same dynamic library.  Since this doesn't match the
6736      # behavior of shared libraries on other platforms, we can't use
6737      # them.
6738      ld_shlibs=no
6739      ;;
6740
6741    beos*)
6742      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6743	allow_undefined_flag=unsupported
6744	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6745	# support --undefined.  This deserves some investigation.  FIXME
6746	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747      else
6748	ld_shlibs=no
6749      fi
6750      ;;
6751
6752    cygwin* | mingw* | pw32*)
6753      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6754      # as there is no search path for DLLs.
6755      hardcode_libdir_flag_spec='-L$libdir'
6756      allow_undefined_flag=unsupported
6757      always_export_symbols=no
6758      enable_shared_with_static_runtimes=yes
6759      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6760
6761      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6762        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6763	# If the export-symbols file already is a .def file (1st line
6764	# is EXPORTS), use it as is; otherwise, prepend...
6765	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6766	  cp $export_symbols $output_objdir/$soname.def;
6767	else
6768	  echo EXPORTS > $output_objdir/$soname.def;
6769	  cat $export_symbols >> $output_objdir/$soname.def;
6770	fi~
6771	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6772      else
6773	ld_shlibs=no
6774      fi
6775      ;;
6776
6777    netbsd*)
6778      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6779	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6780	wlarc=
6781      else
6782	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784      fi
6785      ;;
6786
6787    solaris* | sysv5*)
6788      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6789	ld_shlibs=no
6790	cat <<EOF 1>&2
6791
6792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6793*** create shared libraries on Solaris systems.  Therefore, libtool
6794*** is disabling shared libraries support.  We urge you to upgrade GNU
6795*** binutils to release 2.9.1 or newer.  Another option is to modify
6796*** your PATH or compiler configuration so that the native linker is
6797*** used, and then restart.
6798
6799EOF
6800      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6801	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803      else
6804	ld_shlibs=no
6805      fi
6806      ;;
6807
6808    sunos4*)
6809      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6810      wlarc=
6811      hardcode_direct=yes
6812      hardcode_shlibpath_var=no
6813      ;;
6814
6815    *)
6816      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6817	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819      else
6820	ld_shlibs=no
6821      fi
6822      ;;
6823    esac
6824
6825    if test "$ld_shlibs" = yes; then
6826      runpath_var=LD_RUN_PATH
6827      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6828      export_dynamic_flag_spec='${wl}--export-dynamic'
6829      # ancient GNU ld didn't support --whole-archive et. al.
6830      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6831 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6832      else
6833  	whole_archive_flag_spec=
6834      fi
6835    fi
6836  else
6837    # PORTME fill in a description of your system's linker (not GNU ld)
6838    case $host_os in
6839    aix3*)
6840      allow_undefined_flag=unsupported
6841      always_export_symbols=yes
6842      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'
6843      # Note: this linker hardcodes the directories in LIBPATH if there
6844      # are no directories specified by -L.
6845      hardcode_minus_L=yes
6846      if test "$GCC" = yes && test -z "$link_static_flag"; then
6847	# Neither direct hardcoding nor static linking is supported with a
6848	# broken collect2.
6849	hardcode_direct=unsupported
6850      fi
6851      ;;
6852
6853    aix4* | aix5*)
6854      if test "$host_cpu" = ia64; then
6855	# On IA64, the linker does run time linking by default, so we don't
6856	# have to do anything special.
6857	aix_use_runtimelinking=no
6858	exp_sym_flag='-Bexport'
6859	no_entry_flag=""
6860      else
6861	# If we're using GNU nm, then we don't want the "-C" option.
6862	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6863	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6864	  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'
6865	else
6866	  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'
6867	fi
6868	aix_use_runtimelinking=no
6869
6870	# Test if we are trying to use run time linking or normal
6871	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6872	# need to do runtime linking.
6873	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6874	  for ld_flag in $LDFLAGS; do
6875  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6876  	    aix_use_runtimelinking=yes
6877  	    break
6878  	  fi
6879	  done
6880	esac
6881
6882	exp_sym_flag='-bexport'
6883	no_entry_flag='-bnoentry'
6884      fi
6885
6886      # When large executables or shared objects are built, AIX ld can
6887      # have problems creating the table of contents.  If linking a library
6888      # or program results in "error TOC overflow" add -mminimal-toc to
6889      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6890      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6891
6892      archive_cmds=''
6893      hardcode_direct=yes
6894      hardcode_libdir_separator=':'
6895      link_all_deplibs=yes
6896
6897      if test "$GCC" = yes; then
6898	case $host_os in aix4.012|aix4.012.*)
6899	# We only want to do this on AIX 4.2 and lower, the check
6900	# below for broken collect2 doesn't work under 4.3+
6901	  collect2name=`${CC} -print-prog-name=collect2`
6902	  if test -f "$collect2name" && \
6903  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6904	  then
6905  	  # We have reworked collect2
6906  	  hardcode_direct=yes
6907	  else
6908  	  # We have old collect2
6909  	  hardcode_direct=unsupported
6910  	  # It fails to find uninstalled libraries when the uninstalled
6911  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6912  	  # to unsupported forces relinking
6913  	  hardcode_minus_L=yes
6914  	  hardcode_libdir_flag_spec='-L$libdir'
6915  	  hardcode_libdir_separator=
6916	  fi
6917	esac
6918	shared_flag='-shared'
6919      else
6920	# not using gcc
6921	if test "$host_cpu" = ia64; then
6922  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6923  	# chokes on -Wl,-G. The following line is correct:
6924	  shared_flag='-G'
6925	else
6926  	if test "$aix_use_runtimelinking" = yes; then
6927	    shared_flag='${wl}-G'
6928	  else
6929	    shared_flag='${wl}-bM:SRE'
6930  	fi
6931	fi
6932      fi
6933
6934      # It seems that -bexpall does not export symbols beginning with
6935      # underscore (_), so it is better to generate a list of symbols to export.
6936      always_export_symbols=yes
6937      if test "$aix_use_runtimelinking" = yes; then
6938	# Warning - without using the other runtime loading flags (-brtl),
6939	# -berok will link without error, but may produce a broken library.
6940	allow_undefined_flag='-berok'
6941       # Determine the default libpath from the value encoded in an empty executable.
6942       cat >conftest.$ac_ext <<_ACEOF
6943#line $LINENO "configure"
6944/* confdefs.h.  */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h.  */
6949
6950int
6951main ()
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958rm -f conftest.$ac_objext conftest$ac_exeext
6959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960  (eval $ac_link) 2>&5
6961  ac_status=$?
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); } &&
6964         { ac_try='test -s conftest$ac_exeext'
6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966  (eval $ac_try) 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }; }; then
6970
6971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6972}'`
6973# Check for a 64-bit object if we didn't find anything.
6974if 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; }
6975}'`; fi
6976else
6977  echo "$as_me: failed program was:" >&5
6978sed 's/^/| /' conftest.$ac_ext >&5
6979
6980fi
6981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6983
6984       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6985	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"
6986       else
6987	if test "$host_cpu" = ia64; then
6988	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6989	  allow_undefined_flag="-z nodefs"
6990	  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"
6991	else
6992	 # Determine the default libpath from the value encoded in an empty executable.
6993	 cat >conftest.$ac_ext <<_ACEOF
6994#line $LINENO "configure"
6995/* confdefs.h.  */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h.  */
7000
7001int
7002main ()
7003{
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext conftest$ac_exeext
7010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011  (eval $ac_link) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); } &&
7015         { ac_try='test -s conftest$ac_exeext'
7016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017  (eval $ac_try) 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }; }; then
7021
7022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7023}'`
7024# Check for a 64-bit object if we didn't find anything.
7025if 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; }
7026}'`; fi
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031fi
7032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7034
7035	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7036	  # Warning - without using the other run time loading flags,
7037	  # -berok will link without error, but may produce a broken library.
7038	  no_undefined_flag=' ${wl}-bernotok'
7039	  allow_undefined_flag=' ${wl}-berok'
7040	  # -bexpall does not export symbols beginning with underscore (_)
7041	  always_export_symbols=yes
7042	  # Exported symbols can be pulled into shared objects from archives
7043	  whole_archive_flag_spec=' '
7044	  archive_cmds_need_lc=yes
7045	  # This is similar to how AIX traditionally builds it's shared libraries.
7046	  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'
7047	fi
7048      fi
7049      ;;
7050
7051    amigaos*)
7052      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)'
7053      hardcode_libdir_flag_spec='-L$libdir'
7054      hardcode_minus_L=yes
7055      # see comment about different semantics on the GNU ld section
7056      ld_shlibs=no
7057      ;;
7058
7059    bsdi4*)
7060      export_dynamic_flag_spec=-rdynamic
7061      ;;
7062
7063    cygwin* | mingw* | pw32*)
7064      # When not using gcc, we currently assume that we are using
7065      # Microsoft Visual C++.
7066      # hardcode_libdir_flag_spec is actually meaningless, as there is
7067      # no search path for DLLs.
7068      hardcode_libdir_flag_spec=' '
7069      allow_undefined_flag=unsupported
7070      # Tell ltmain to make .lib files, not .a files.
7071      libext=lib
7072      # Tell ltmain to make .dll files, not .so files.
7073      shrext=".dll"
7074      # FIXME: Setting linknames here is a bad hack.
7075      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7076      # The linker will automatically build a .lib file if we build a DLL.
7077      old_archive_From_new_cmds='true'
7078      # FIXME: Should let the user specify the lib program.
7079      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7080      fix_srcfile_path='`cygpath -w "$srcfile"`'
7081      enable_shared_with_static_runtimes=yes
7082      ;;
7083
7084    darwin* | rhapsody*)
7085    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7086      archive_cmds_need_lc=no
7087      case "$host_os" in
7088      rhapsody* | darwin1.[012])
7089	allow_undefined_flag='-undefined suppress'
7090	;;
7091      *) # Darwin 1.3 on
7092	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7093	;;
7094      esac
7095      # FIXME: Relying on posixy $() will cause problems for
7096      #        cross-compilation, but unfortunately the echo tests do not
7097      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7098      #	       `"' quotes if we put them in here... so don't!
7099    	lt_int_apple_cc_single_mod=no
7100    	output_verbose_link_cmd='echo'
7101    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7102    	  lt_int_apple_cc_single_mod=yes
7103    	fi
7104    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7105    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7106    	else
7107        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7108      fi
7109      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7110      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7111        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7112          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7113        else
7114          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7115        fi
7116          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7117      hardcode_direct=no
7118      hardcode_automatic=yes
7119      hardcode_shlibpath_var=unsupported
7120      whole_archive_flag_spec='-all_load $convenience'
7121      link_all_deplibs=yes
7122    fi
7123      ;;
7124
7125    dgux*)
7126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127      hardcode_libdir_flag_spec='-L$libdir'
7128      hardcode_shlibpath_var=no
7129      ;;
7130
7131    freebsd1*)
7132      ld_shlibs=no
7133      ;;
7134
7135    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7136    # support.  Future versions do this automatically, but an explicit c++rt0.o
7137    # does not break anything, and helps significantly (at the cost of a little
7138    # extra space).
7139    freebsd2.2*)
7140      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7141      hardcode_libdir_flag_spec='-R$libdir'
7142      hardcode_direct=yes
7143      hardcode_shlibpath_var=no
7144      ;;
7145
7146    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7147    freebsd2*)
7148      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7149      hardcode_direct=yes
7150      hardcode_minus_L=yes
7151      hardcode_shlibpath_var=no
7152      ;;
7153
7154    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7155    freebsd*)
7156      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7157      hardcode_libdir_flag_spec='-R$libdir'
7158      hardcode_direct=yes
7159      hardcode_shlibpath_var=no
7160      ;;
7161
7162    hpux9*)
7163      if test "$GCC" = yes; then
7164	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'
7165      else
7166	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'
7167      fi
7168      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7169      hardcode_libdir_separator=:
7170      hardcode_direct=yes
7171
7172      # hardcode_minus_L: Not really in the search PATH,
7173      # but as the default location of the library.
7174      hardcode_minus_L=yes
7175      export_dynamic_flag_spec='${wl}-E'
7176      ;;
7177
7178    hpux10* | hpux11*)
7179      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7180	case "$host_cpu" in
7181	hppa*64*|ia64*)
7182	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7183	  ;;
7184	*)
7185	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7186	  ;;
7187	esac
7188      else
7189	case "$host_cpu" in
7190	hppa*64*|ia64*)
7191	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7192	  ;;
7193	*)
7194	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7195	  ;;
7196	esac
7197      fi
7198      if test "$with_gnu_ld" = no; then
7199	case "$host_cpu" in
7200	hppa*64*)
7201	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7202	  hardcode_libdir_flag_spec_ld='+b $libdir'
7203	  hardcode_libdir_separator=:
7204	  hardcode_direct=no
7205	  hardcode_shlibpath_var=no
7206	  ;;
7207	ia64*)
7208	  hardcode_libdir_flag_spec='-L$libdir'
7209	  hardcode_direct=no
7210	  hardcode_shlibpath_var=no
7211
7212	  # hardcode_minus_L: Not really in the search PATH,
7213	  # but as the default location of the library.
7214	  hardcode_minus_L=yes
7215	  ;;
7216	*)
7217	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7218	  hardcode_libdir_separator=:
7219	  hardcode_direct=yes
7220	  export_dynamic_flag_spec='${wl}-E'
7221
7222	  # hardcode_minus_L: Not really in the search PATH,
7223	  # but as the default location of the library.
7224	  hardcode_minus_L=yes
7225	  ;;
7226	esac
7227      fi
7228      ;;
7229
7230    irix5* | irix6* | nonstopux*)
7231      if test "$GCC" = yes; then
7232	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'
7233      else
7234	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'
7235	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7236      fi
7237      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7238      hardcode_libdir_separator=:
7239      link_all_deplibs=yes
7240      ;;
7241
7242    netbsd*)
7243      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7244	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7245      else
7246	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7247      fi
7248      hardcode_libdir_flag_spec='-R$libdir'
7249      hardcode_direct=yes
7250      hardcode_shlibpath_var=no
7251      ;;
7252
7253    newsos6)
7254      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7255      hardcode_direct=yes
7256      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7257      hardcode_libdir_separator=:
7258      hardcode_shlibpath_var=no
7259      ;;
7260
7261    openbsd*)
7262      hardcode_direct=yes
7263      hardcode_shlibpath_var=no
7264      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7265	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7266	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7267	export_dynamic_flag_spec='${wl}-E'
7268      else
7269       case $host_os in
7270	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7271	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7272	   hardcode_libdir_flag_spec='-R$libdir'
7273	   ;;
7274	 *)
7275	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7276	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7277	   ;;
7278       esac
7279      fi
7280      ;;
7281
7282    os2*)
7283      hardcode_libdir_flag_spec='-L$libdir'
7284      hardcode_minus_L=yes
7285      allow_undefined_flag=unsupported
7286      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'
7287      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7288      ;;
7289
7290    osf3*)
7291      if test "$GCC" = yes; then
7292	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7293	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'
7294      else
7295	allow_undefined_flag=' -expect_unresolved \*'
7296	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'
7297      fi
7298      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7299      hardcode_libdir_separator=:
7300      ;;
7301
7302    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7303      if test "$GCC" = yes; then
7304	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7305	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'
7306	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7307      else
7308	allow_undefined_flag=' -expect_unresolved \*'
7309	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'
7310	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7311	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7312
7313	# Both c and cxx compiler support -rpath directly
7314	hardcode_libdir_flag_spec='-rpath $libdir'
7315      fi
7316      hardcode_libdir_separator=:
7317      ;;
7318
7319    sco3.2v5*)
7320      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321      hardcode_shlibpath_var=no
7322      export_dynamic_flag_spec='${wl}-Bexport'
7323      runpath_var=LD_RUN_PATH
7324      hardcode_runpath_var=yes
7325      ;;
7326
7327    solaris*)
7328      no_undefined_flag=' -z text'
7329      if test "$GCC" = yes; then
7330	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7331	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7332	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7333      else
7334	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7335	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7336  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7337      fi
7338      hardcode_libdir_flag_spec='-R$libdir'
7339      hardcode_shlibpath_var=no
7340      case $host_os in
7341      solaris2.[0-5] | solaris2.[0-5].*) ;;
7342      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7343	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7344      esac
7345      link_all_deplibs=yes
7346      ;;
7347
7348    sunos4*)
7349      if test "x$host_vendor" = xsequent; then
7350	# Use $CC to link under sequent, because it throws in some extra .o
7351	# files that make .init and .fini sections work.
7352	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7353      else
7354	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7355      fi
7356      hardcode_libdir_flag_spec='-L$libdir'
7357      hardcode_direct=yes
7358      hardcode_minus_L=yes
7359      hardcode_shlibpath_var=no
7360      ;;
7361
7362    sysv4)
7363      case $host_vendor in
7364	sni)
7365	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366	  hardcode_direct=yes # is this really true???
7367	;;
7368	siemens)
7369	  ## LD is ld it makes a PLAMLIB
7370	  ## CC just makes a GrossModule.
7371	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7372	  reload_cmds='$CC -r -o $output$reload_objs'
7373	  hardcode_direct=no
7374        ;;
7375	motorola)
7376	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7378	;;
7379      esac
7380      runpath_var='LD_RUN_PATH'
7381      hardcode_shlibpath_var=no
7382      ;;
7383
7384    sysv4.3*)
7385      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7386      hardcode_shlibpath_var=no
7387      export_dynamic_flag_spec='-Bexport'
7388      ;;
7389
7390    sysv4*MP*)
7391      if test -d /usr/nec; then
7392	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393	hardcode_shlibpath_var=no
7394	runpath_var=LD_RUN_PATH
7395	hardcode_runpath_var=yes
7396	ld_shlibs=yes
7397      fi
7398      ;;
7399
7400    sysv4.2uw2*)
7401      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7402      hardcode_direct=yes
7403      hardcode_minus_L=no
7404      hardcode_shlibpath_var=no
7405      hardcode_runpath_var=yes
7406      runpath_var=LD_RUN_PATH
7407      ;;
7408
7409   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7410      no_undefined_flag='${wl}-z ${wl}text'
7411      if test "$GCC" = yes; then
7412	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7413      else
7414	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7415      fi
7416      runpath_var='LD_RUN_PATH'
7417      hardcode_shlibpath_var=no
7418      ;;
7419
7420    sysv5*)
7421      no_undefined_flag=' -z text'
7422      # $CC -shared without GNU ld will not create a library from C++
7423      # object files and a static libstdc++, better avoid it by now
7424      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7426  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7427      hardcode_libdir_flag_spec=
7428      hardcode_shlibpath_var=no
7429      runpath_var='LD_RUN_PATH'
7430      ;;
7431
7432    uts4*)
7433      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434      hardcode_libdir_flag_spec='-L$libdir'
7435      hardcode_shlibpath_var=no
7436      ;;
7437
7438    *)
7439      ld_shlibs=no
7440      ;;
7441    esac
7442  fi
7443
7444echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7445echo "${ECHO_T}$ld_shlibs" >&6
7446test "$ld_shlibs" = no && can_build_shared=no
7447
7448variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7449if test "$GCC" = yes; then
7450  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7451fi
7452
7453#
7454# Do we need to explicitly link libc?
7455#
7456case "x$archive_cmds_need_lc" in
7457x|xyes)
7458  # Assume -lc should be added
7459  archive_cmds_need_lc=yes
7460
7461  if test "$enable_shared" = yes && test "$GCC" = yes; then
7462    case $archive_cmds in
7463    *'~'*)
7464      # FIXME: we may have to deal with multi-command sequences.
7465      ;;
7466    '$CC '*)
7467      # Test whether the compiler implicitly links with -lc since on some
7468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7469      # to ld, don't add -lc before -lgcc.
7470      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7471echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7472      $rm conftest*
7473      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7474
7475      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476  (eval $ac_compile) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } 2>conftest.err; then
7480        soname=conftest
7481        lib=conftest
7482        libobjs=conftest.$ac_objext
7483        deplibs=
7484        wl=$lt_prog_compiler_wl
7485        compiler_flags=-v
7486        linker_flags=-v
7487        verstring=
7488        output_objdir=.
7489        libname=conftest
7490        lt_save_allow_undefined_flag=$allow_undefined_flag
7491        allow_undefined_flag=
7492        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7493  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); }
7497        then
7498	  archive_cmds_need_lc=no
7499        else
7500	  archive_cmds_need_lc=yes
7501        fi
7502        allow_undefined_flag=$lt_save_allow_undefined_flag
7503      else
7504        cat conftest.err 1>&5
7505      fi
7506      $rm conftest*
7507      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7508echo "${ECHO_T}$archive_cmds_need_lc" >&6
7509      ;;
7510    esac
7511  fi
7512  ;;
7513esac
7514
7515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7517hardcode_action=
7518if test -n "$hardcode_libdir_flag_spec" || \
7519   test -n "$runpath_var " || \
7520   test "X$hardcode_automatic"="Xyes" ; then
7521
7522  # We can hardcode non-existant directories.
7523  if test "$hardcode_direct" != no &&
7524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7525     # have to relink, otherwise we might link with an installed library
7526     # when we should be linking with a yet-to-be-installed one
7527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7528     test "$hardcode_minus_L" != no; then
7529    # Linking always hardcodes the temporary library directory.
7530    hardcode_action=relink
7531  else
7532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7533    hardcode_action=immediate
7534  fi
7535else
7536  # We cannot hardcode anything, or else we can only hardcode existing
7537  # directories.
7538  hardcode_action=unsupported
7539fi
7540echo "$as_me:$LINENO: result: $hardcode_action" >&5
7541echo "${ECHO_T}$hardcode_action" >&6
7542
7543if test "$hardcode_action" = relink; then
7544  # Fast installation is not supported
7545  enable_fast_install=no
7546elif test "$shlibpath_overrides_runpath" = yes ||
7547     test "$enable_shared" = no; then
7548  # Fast installation is not necessary
7549  enable_fast_install=needless
7550fi
7551
7552striplib=
7553old_striplib=
7554echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7555echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7556if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7557  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7558  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7559  echo "$as_me:$LINENO: result: yes" >&5
7560echo "${ECHO_T}yes" >&6
7561else
7562# FIXME - insert some real tests, host_os isn't really good enough
7563  case $host_os in
7564   darwin*)
7565       if test -n "$STRIP" ; then
7566         striplib="$STRIP -x"
7567         echo "$as_me:$LINENO: result: yes" >&5
7568echo "${ECHO_T}yes" >&6
7569       else
7570  echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6
7572fi
7573       ;;
7574   *)
7575  echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577    ;;
7578  esac
7579fi
7580
7581echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7582echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7583library_names_spec=
7584libname_spec='lib$name'
7585soname_spec=
7586shrext=".so"
7587postinstall_cmds=
7588postuninstall_cmds=
7589finish_cmds=
7590finish_eval=
7591shlibpath_var=
7592shlibpath_overrides_runpath=unknown
7593version_type=none
7594dynamic_linker="$host_os ld.so"
7595sys_lib_dlsearch_path_spec="/lib /usr/lib"
7596if test "$GCC" = yes; then
7597  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7598  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7599    # if the path contains ";" then we assume it to be the separator
7600    # otherwise default to the standard path separator (i.e. ":") - it is
7601    # assumed that no part of a normal pathname contains ";" but that should
7602    # okay in the real world where ";" in dirpaths is itself problematic.
7603    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7604  else
7605    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7606  fi
7607else
7608  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7609fi
7610need_lib_prefix=unknown
7611hardcode_into_libs=no
7612
7613# when you set need_version to no, make sure it does not cause -set_version
7614# flags to be left without arguments
7615need_version=unknown
7616
7617case $host_os in
7618aix3*)
7619  version_type=linux
7620  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7621  shlibpath_var=LIBPATH
7622
7623  # AIX 3 has no versioning support, so we append a major version to the name.
7624  soname_spec='${libname}${release}${shared_ext}$major'
7625  ;;
7626
7627aix4* | aix5*)
7628  version_type=linux
7629  need_lib_prefix=no
7630  need_version=no
7631  hardcode_into_libs=yes
7632  if test "$host_cpu" = ia64; then
7633    # AIX 5 supports IA64
7634    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7635    shlibpath_var=LD_LIBRARY_PATH
7636  else
7637    # With GCC up to 2.95.x, collect2 would create an import file
7638    # for dependence libraries.  The import file would start with
7639    # the line `#! .'.  This would cause the generated library to
7640    # depend on `.', always an invalid library.  This was fixed in
7641    # development snapshots of GCC prior to 3.0.
7642    case $host_os in
7643      aix4 | aix4.[01] | aix4.[01].*)
7644      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7645	   echo ' yes '
7646	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7647	:
7648      else
7649	can_build_shared=no
7650      fi
7651      ;;
7652    esac
7653    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7654    # soname into executable. Probably we can add versioning support to
7655    # collect2, so additional links can be useful in future.
7656    if test "$aix_use_runtimelinking" = yes; then
7657      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7658      # instead of lib<name>.a to let people know that these are not
7659      # typical AIX shared libraries.
7660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661    else
7662      # We preserve .a as extension for shared libraries through AIX4.2
7663      # and later when we are not doing run time linking.
7664      library_names_spec='${libname}${release}.a $libname.a'
7665      soname_spec='${libname}${release}${shared_ext}$major'
7666    fi
7667    shlibpath_var=LIBPATH
7668  fi
7669  ;;
7670
7671amigaos*)
7672  library_names_spec='$libname.ixlibrary $libname.a'
7673  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7674  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'
7675  ;;
7676
7677beos*)
7678  library_names_spec='${libname}${shared_ext}'
7679  dynamic_linker="$host_os ld.so"
7680  shlibpath_var=LIBRARY_PATH
7681  ;;
7682
7683bsdi4*)
7684  version_type=linux
7685  need_version=no
7686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687  soname_spec='${libname}${release}${shared_ext}$major'
7688  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7689  shlibpath_var=LD_LIBRARY_PATH
7690  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7691  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7692  # the default ld.so.conf also contains /usr/contrib/lib and
7693  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7694  # libtool to hard-code these into programs
7695  ;;
7696
7697cygwin* | mingw* | pw32*)
7698  version_type=windows
7699  shrext=".dll"
7700  need_version=no
7701  need_lib_prefix=no
7702
7703  case $GCC,$host_os in
7704  yes,cygwin* | yes,mingw* | yes,pw32*)
7705    library_names_spec='$libname.dll.a'
7706    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7707    postinstall_cmds='base_file=`basename \${file}`~
7708      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7709      dldir=$destdir/`dirname \$dlpath`~
7710      test -d \$dldir || mkdir -p \$dldir~
7711      $install_prog $dir/$dlname \$dldir/$dlname'
7712    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7713      dlpath=$dir/\$dldll~
7714       $rm \$dlpath'
7715    shlibpath_overrides_runpath=yes
7716
7717    case $host_os in
7718    cygwin*)
7719      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7720      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7722      ;;
7723    mingw*)
7724      # MinGW DLLs use traditional 'lib' prefix
7725      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7726      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7727      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7728        # It is most probably a Windows format PATH printed by
7729        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7730        # path with ; separators, and with drive letters. We can handle the
7731        # drive letters (cygwin fileutils understands them), so leave them,
7732        # especially as we might pass files found there to a mingw objdump,
7733        # which wouldn't understand a cygwinified path. Ahh.
7734        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7735      else
7736        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7737      fi
7738      ;;
7739    pw32*)
7740      # pw32 DLLs use 'pw' prefix rather than 'lib'
7741      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7742      ;;
7743    esac
7744    ;;
7745
7746  *)
7747    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7748    ;;
7749  esac
7750  dynamic_linker='Win32 ld.exe'
7751  # FIXME: first we should search . and the directory the executable is in
7752  shlibpath_var=PATH
7753  ;;
7754
7755darwin* | rhapsody*)
7756  dynamic_linker="$host_os dyld"
7757  version_type=darwin
7758  need_lib_prefix=no
7759  need_version=no
7760  # FIXME: Relying on posixy $() will cause problems for
7761  #        cross-compilation, but unfortunately the echo tests do not
7762  #        yet detect zsh echo's removal of \ escapes.
7763  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7764  soname_spec='${libname}${release}${major}$shared_ext'
7765  shlibpath_overrides_runpath=yes
7766  shlibpath_var=DYLD_LIBRARY_PATH
7767  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7768  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7769  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7770  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"`
7771  fi
7772  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7773  ;;
7774
7775dgux*)
7776  version_type=linux
7777  need_lib_prefix=no
7778  need_version=no
7779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7780  soname_spec='${libname}${release}${shared_ext}$major'
7781  shlibpath_var=LD_LIBRARY_PATH
7782  ;;
7783
7784freebsd1*)
7785  dynamic_linker=no
7786  ;;
7787
7788freebsd*)
7789  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7790  version_type=freebsd-$objformat
7791  case $version_type in
7792    freebsd-elf*)
7793      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7794      need_version=no
7795      need_lib_prefix=no
7796      ;;
7797    freebsd-*)
7798      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7799      need_version=yes
7800      ;;
7801  esac
7802  shlibpath_var=LD_LIBRARY_PATH
7803  case $host_os in
7804  freebsd2*)
7805    shlibpath_overrides_runpath=yes
7806    ;;
7807  freebsd3.01* | freebsdelf3.01*)
7808    shlibpath_overrides_runpath=yes
7809    hardcode_into_libs=yes
7810    ;;
7811  *) # from 3.2 on
7812    shlibpath_overrides_runpath=no
7813    hardcode_into_libs=yes
7814    ;;
7815  esac
7816  ;;
7817
7818gnu*)
7819  version_type=linux
7820  need_lib_prefix=no
7821  need_version=no
7822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7823  soname_spec='${libname}${release}${shared_ext}$major'
7824  shlibpath_var=LD_LIBRARY_PATH
7825  hardcode_into_libs=yes
7826  ;;
7827
7828hpux9* | hpux10* | hpux11*)
7829  # Give a soname corresponding to the major version so that dld.sl refuses to
7830  # link against other versions.
7831  version_type=sunos
7832  need_lib_prefix=no
7833  need_version=no
7834  case "$host_cpu" in
7835  ia64*)
7836    shrext='.so'
7837    hardcode_into_libs=yes
7838    dynamic_linker="$host_os dld.so"
7839    shlibpath_var=LD_LIBRARY_PATH
7840    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842    soname_spec='${libname}${release}${shared_ext}$major'
7843    if test "X$HPUX_IA64_MODE" = X32; then
7844      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7845    else
7846      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7847    fi
7848    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7849    ;;
7850   hppa*64*)
7851     shrext='.sl'
7852     hardcode_into_libs=yes
7853     dynamic_linker="$host_os dld.sl"
7854     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857     soname_spec='${libname}${release}${shared_ext}$major'
7858     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7859     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7860     ;;
7861   *)
7862    shrext='.sl'
7863    dynamic_linker="$host_os dld.sl"
7864    shlibpath_var=SHLIB_PATH
7865    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7866    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867    soname_spec='${libname}${release}${shared_ext}$major'
7868    ;;
7869  esac
7870  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7871  postinstall_cmds='chmod 555 $lib'
7872  ;;
7873
7874irix5* | irix6* | nonstopux*)
7875  case $host_os in
7876    nonstopux*) version_type=nonstopux ;;
7877    *)
7878	if test "$lt_cv_prog_gnu_ld" = yes; then
7879		version_type=linux
7880	else
7881		version_type=irix
7882	fi ;;
7883  esac
7884  need_lib_prefix=no
7885  need_version=no
7886  soname_spec='${libname}${release}${shared_ext}$major'
7887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7888  case $host_os in
7889  irix5* | nonstopux*)
7890    libsuff= shlibsuff=
7891    ;;
7892  *)
7893    case $LD in # libtool.m4 will add one of these switches to LD
7894    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7895      libsuff= shlibsuff= libmagic=32-bit;;
7896    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7897      libsuff=32 shlibsuff=N32 libmagic=N32;;
7898    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7899      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7900    *) libsuff= shlibsuff= libmagic=never-match;;
7901    esac
7902    ;;
7903  esac
7904  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7905  shlibpath_overrides_runpath=no
7906  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7907  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7908  hardcode_into_libs=yes
7909  ;;
7910
7911# No shared lib support for Linux oldld, aout, or coff.
7912linux*oldld* | linux*aout* | linux*coff*)
7913  dynamic_linker=no
7914  ;;
7915
7916# This must be Linux ELF.
7917linux*)
7918  version_type=linux
7919  need_lib_prefix=no
7920  need_version=no
7921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922  soname_spec='${libname}${release}${shared_ext}$major'
7923  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7924  shlibpath_var=LD_LIBRARY_PATH
7925  shlibpath_overrides_runpath=no
7926  # This implies no fast_install, which is unacceptable.
7927  # Some rework will be needed to allow for fast_install
7928  # before this can be enabled.
7929  hardcode_into_libs=yes
7930
7931  # We used to test for /lib/ld.so.1 and disable shared libraries on
7932  # powerpc, because MkLinux only supported shared libraries with the
7933  # GNU dynamic linker.  Since this was broken with cross compilers,
7934  # most powerpc-linux boxes support dynamic linking these days and
7935  # people can always --disable-shared, the test was removed, and we
7936  # assume the GNU/Linux dynamic linker is in use.
7937  dynamic_linker='GNU/Linux ld.so'
7938  ;;
7939
7940netbsd*)
7941  version_type=sunos
7942  need_lib_prefix=no
7943  need_version=no
7944  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7947    dynamic_linker='NetBSD (a.out) ld.so'
7948  else
7949    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7950    soname_spec='${libname}${release}${shared_ext}$major'
7951    dynamic_linker='NetBSD ld.elf_so'
7952  fi
7953  shlibpath_var=LD_LIBRARY_PATH
7954  shlibpath_overrides_runpath=yes
7955  hardcode_into_libs=yes
7956  ;;
7957
7958newsos6)
7959  version_type=linux
7960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961  shlibpath_var=LD_LIBRARY_PATH
7962  shlibpath_overrides_runpath=yes
7963  ;;
7964
7965nto-qnx)
7966  version_type=linux
7967  need_lib_prefix=no
7968  need_version=no
7969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970  soname_spec='${libname}${release}${shared_ext}$major'
7971  shlibpath_var=LD_LIBRARY_PATH
7972  shlibpath_overrides_runpath=yes
7973  ;;
7974
7975openbsd*)
7976  version_type=sunos
7977  need_lib_prefix=no
7978  need_version=no
7979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981  shlibpath_var=LD_LIBRARY_PATH
7982  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7983    case $host_os in
7984      openbsd2.[89] | openbsd2.[89].*)
7985	shlibpath_overrides_runpath=no
7986	;;
7987      *)
7988	shlibpath_overrides_runpath=yes
7989	;;
7990      esac
7991  else
7992    shlibpath_overrides_runpath=yes
7993  fi
7994  ;;
7995
7996os2*)
7997  libname_spec='$name'
7998  shrext=".dll"
7999  need_lib_prefix=no
8000  library_names_spec='$libname${shared_ext} $libname.a'
8001  dynamic_linker='OS/2 ld.exe'
8002  shlibpath_var=LIBPATH
8003  ;;
8004
8005osf3* | osf4* | osf5*)
8006  version_type=osf
8007  need_lib_prefix=no
8008  need_version=no
8009  soname_spec='${libname}${release}${shared_ext}$major'
8010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011  shlibpath_var=LD_LIBRARY_PATH
8012  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8013  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8014  ;;
8015
8016sco3.2v5*)
8017  version_type=osf
8018  soname_spec='${libname}${release}${shared_ext}$major'
8019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020  shlibpath_var=LD_LIBRARY_PATH
8021  ;;
8022
8023solaris*)
8024  version_type=linux
8025  need_lib_prefix=no
8026  need_version=no
8027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028  soname_spec='${libname}${release}${shared_ext}$major'
8029  shlibpath_var=LD_LIBRARY_PATH
8030  shlibpath_overrides_runpath=yes
8031  hardcode_into_libs=yes
8032  # ldd complains unless libraries are executable
8033  postinstall_cmds='chmod +x $lib'
8034  ;;
8035
8036sunos4*)
8037  version_type=sunos
8038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8039  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8040  shlibpath_var=LD_LIBRARY_PATH
8041  shlibpath_overrides_runpath=yes
8042  if test "$with_gnu_ld" = yes; then
8043    need_lib_prefix=no
8044  fi
8045  need_version=yes
8046  ;;
8047
8048sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8049  version_type=linux
8050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051  soname_spec='${libname}${release}${shared_ext}$major'
8052  shlibpath_var=LD_LIBRARY_PATH
8053  case $host_vendor in
8054    sni)
8055      shlibpath_overrides_runpath=no
8056      need_lib_prefix=no
8057      export_dynamic_flag_spec='${wl}-Blargedynsym'
8058      runpath_var=LD_RUN_PATH
8059      ;;
8060    siemens)
8061      need_lib_prefix=no
8062      ;;
8063    motorola)
8064      need_lib_prefix=no
8065      need_version=no
8066      shlibpath_overrides_runpath=no
8067      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8068      ;;
8069  esac
8070  ;;
8071
8072sysv4*MP*)
8073  if test -d /usr/nec ;then
8074    version_type=linux
8075    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8076    soname_spec='$libname${shared_ext}.$major'
8077    shlibpath_var=LD_LIBRARY_PATH
8078  fi
8079  ;;
8080
8081uts4*)
8082  version_type=linux
8083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084  soname_spec='${libname}${release}${shared_ext}$major'
8085  shlibpath_var=LD_LIBRARY_PATH
8086  ;;
8087
8088*)
8089  dynamic_linker=no
8090  ;;
8091esac
8092echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8093echo "${ECHO_T}$dynamic_linker" >&6
8094test "$dynamic_linker" = no && can_build_shared=no
8095
8096if test "x$enable_dlopen" != xyes; then
8097  enable_dlopen=unknown
8098  enable_dlopen_self=unknown
8099  enable_dlopen_self_static=unknown
8100else
8101  lt_cv_dlopen=no
8102  lt_cv_dlopen_libs=
8103
8104  case $host_os in
8105  beos*)
8106    lt_cv_dlopen="load_add_on"
8107    lt_cv_dlopen_libs=
8108    lt_cv_dlopen_self=yes
8109    ;;
8110
8111  mingw* | pw32*)
8112    lt_cv_dlopen="LoadLibrary"
8113    lt_cv_dlopen_libs=
8114   ;;
8115
8116  cygwin*)
8117    lt_cv_dlopen="dlopen"
8118    lt_cv_dlopen_libs=
8119   ;;
8120
8121  darwin*)
8122  # if libdl is installed we need to link against it
8123    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8124echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8125if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8126  echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128  ac_check_lib_save_LIBS=$LIBS
8129LIBS="-ldl  $LIBS"
8130cat >conftest.$ac_ext <<_ACEOF
8131#line $LINENO "configure"
8132/* confdefs.h.  */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h.  */
8137
8138/* Override any gcc2 internal prototype to avoid an error.  */
8139#ifdef __cplusplus
8140extern "C"
8141#endif
8142/* We use char because int might match the return type of a gcc2
8143   builtin and then its argument prototype would still apply.  */
8144char dlopen ();
8145int
8146main ()
8147{
8148dlopen ();
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext conftest$ac_exeext
8154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155  (eval $ac_link) 2>&5
8156  ac_status=$?
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); } &&
8159         { ac_try='test -s conftest$ac_exeext'
8160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161  (eval $ac_try) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }; }; then
8165  ac_cv_lib_dl_dlopen=yes
8166else
8167  echo "$as_me: failed program was:" >&5
8168sed 's/^/| /' conftest.$ac_ext >&5
8169
8170ac_cv_lib_dl_dlopen=no
8171fi
8172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8173LIBS=$ac_check_lib_save_LIBS
8174fi
8175echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8176echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8177if test $ac_cv_lib_dl_dlopen = yes; then
8178  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8179else
8180
8181    lt_cv_dlopen="dyld"
8182    lt_cv_dlopen_libs=
8183    lt_cv_dlopen_self=yes
8184
8185fi
8186
8187   ;;
8188
8189  *)
8190    echo "$as_me:$LINENO: checking for shl_load" >&5
8191echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8192if test "${ac_cv_func_shl_load+set}" = set; then
8193  echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195  cat >conftest.$ac_ext <<_ACEOF
8196#line $LINENO "configure"
8197/* confdefs.h.  */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h.  */
8202/* System header to define __stub macros and hopefully few prototypes,
8203    which can conflict with char shl_load (); below.
8204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8205    <limits.h> exists even on freestanding compilers.  */
8206#ifdef __STDC__
8207# include <limits.h>
8208#else
8209# include <assert.h>
8210#endif
8211/* Override any gcc2 internal prototype to avoid an error.  */
8212#ifdef __cplusplus
8213extern "C"
8214{
8215#endif
8216/* We use char because int might match the return type of a gcc2
8217   builtin and then its argument prototype would still apply.  */
8218char shl_load ();
8219/* The GNU C library defines this for functions which it implements
8220    to always fail with ENOSYS.  Some functions are actually named
8221    something starting with __ and the normal name is an alias.  */
8222#if defined (__stub_shl_load) || defined (__stub___shl_load)
8223choke me
8224#else
8225char (*f) () = shl_load;
8226#endif
8227#ifdef __cplusplus
8228}
8229#endif
8230
8231int
8232main ()
8233{
8234return f != shl_load;
8235  ;
8236  return 0;
8237}
8238_ACEOF
8239rm -f conftest.$ac_objext conftest$ac_exeext
8240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241  (eval $ac_link) 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); } &&
8245         { ac_try='test -s conftest$ac_exeext'
8246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247  (eval $ac_try) 2>&5
8248  ac_status=$?
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); }; }; then
8251  ac_cv_func_shl_load=yes
8252else
8253  echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256ac_cv_func_shl_load=no
8257fi
8258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8259fi
8260echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8261echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8262if test $ac_cv_func_shl_load = yes; then
8263  lt_cv_dlopen="shl_load"
8264else
8265  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8266echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8267if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8268  echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270  ac_check_lib_save_LIBS=$LIBS
8271LIBS="-ldld  $LIBS"
8272cat >conftest.$ac_ext <<_ACEOF
8273#line $LINENO "configure"
8274/* confdefs.h.  */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h.  */
8279
8280/* Override any gcc2 internal prototype to avoid an error.  */
8281#ifdef __cplusplus
8282extern "C"
8283#endif
8284/* We use char because int might match the return type of a gcc2
8285   builtin and then its argument prototype would still apply.  */
8286char shl_load ();
8287int
8288main ()
8289{
8290shl_load ();
8291  ;
8292  return 0;
8293}
8294_ACEOF
8295rm -f conftest.$ac_objext conftest$ac_exeext
8296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297  (eval $ac_link) 2>&5
8298  ac_status=$?
8299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300  (exit $ac_status); } &&
8301         { ac_try='test -s conftest$ac_exeext'
8302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303  (eval $ac_try) 2>&5
8304  ac_status=$?
8305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306  (exit $ac_status); }; }; then
8307  ac_cv_lib_dld_shl_load=yes
8308else
8309  echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
8312ac_cv_lib_dld_shl_load=no
8313fi
8314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315LIBS=$ac_check_lib_save_LIBS
8316fi
8317echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8318echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8319if test $ac_cv_lib_dld_shl_load = yes; then
8320  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8321else
8322  echo "$as_me:$LINENO: checking for dlopen" >&5
8323echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8324if test "${ac_cv_func_dlopen+set}" = set; then
8325  echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327  cat >conftest.$ac_ext <<_ACEOF
8328#line $LINENO "configure"
8329/* confdefs.h.  */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h.  */
8334/* System header to define __stub macros and hopefully few prototypes,
8335    which can conflict with char dlopen (); below.
8336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337    <limits.h> exists even on freestanding compilers.  */
8338#ifdef __STDC__
8339# include <limits.h>
8340#else
8341# include <assert.h>
8342#endif
8343/* Override any gcc2 internal prototype to avoid an error.  */
8344#ifdef __cplusplus
8345extern "C"
8346{
8347#endif
8348/* We use char because int might match the return type of a gcc2
8349   builtin and then its argument prototype would still apply.  */
8350char dlopen ();
8351/* The GNU C library defines this for functions which it implements
8352    to always fail with ENOSYS.  Some functions are actually named
8353    something starting with __ and the normal name is an alias.  */
8354#if defined (__stub_dlopen) || defined (__stub___dlopen)
8355choke me
8356#else
8357char (*f) () = dlopen;
8358#endif
8359#ifdef __cplusplus
8360}
8361#endif
8362
8363int
8364main ()
8365{
8366return f != dlopen;
8367  ;
8368  return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373  (eval $ac_link) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); } &&
8377         { ac_try='test -s conftest$ac_exeext'
8378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379  (eval $ac_try) 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_cv_func_dlopen=yes
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388ac_cv_func_dlopen=no
8389fi
8390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391fi
8392echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8393echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8394if test $ac_cv_func_dlopen = yes; then
8395  lt_cv_dlopen="dlopen"
8396else
8397  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8398echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8399if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8400  echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402  ac_check_lib_save_LIBS=$LIBS
8403LIBS="-ldl  $LIBS"
8404cat >conftest.$ac_ext <<_ACEOF
8405#line $LINENO "configure"
8406/* confdefs.h.  */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h.  */
8411
8412/* Override any gcc2 internal prototype to avoid an error.  */
8413#ifdef __cplusplus
8414extern "C"
8415#endif
8416/* We use char because int might match the return type of a gcc2
8417   builtin and then its argument prototype would still apply.  */
8418char dlopen ();
8419int
8420main ()
8421{
8422dlopen ();
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429  (eval $ac_link) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); } &&
8433         { ac_try='test -s conftest$ac_exeext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_lib_dl_dlopen=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_lib_dl_dlopen=no
8445fi
8446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8447LIBS=$ac_check_lib_save_LIBS
8448fi
8449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8451if test $ac_cv_lib_dl_dlopen = yes; then
8452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8453else
8454  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8455echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8456if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8457  echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459  ac_check_lib_save_LIBS=$LIBS
8460LIBS="-lsvld  $LIBS"
8461cat >conftest.$ac_ext <<_ACEOF
8462#line $LINENO "configure"
8463/* confdefs.h.  */
8464_ACEOF
8465cat confdefs.h >>conftest.$ac_ext
8466cat >>conftest.$ac_ext <<_ACEOF
8467/* end confdefs.h.  */
8468
8469/* Override any gcc2 internal prototype to avoid an error.  */
8470#ifdef __cplusplus
8471extern "C"
8472#endif
8473/* We use char because int might match the return type of a gcc2
8474   builtin and then its argument prototype would still apply.  */
8475char dlopen ();
8476int
8477main ()
8478{
8479dlopen ();
8480  ;
8481  return 0;
8482}
8483_ACEOF
8484rm -f conftest.$ac_objext conftest$ac_exeext
8485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486  (eval $ac_link) 2>&5
8487  ac_status=$?
8488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489  (exit $ac_status); } &&
8490         { ac_try='test -s conftest$ac_exeext'
8491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492  (eval $ac_try) 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; }; then
8496  ac_cv_lib_svld_dlopen=yes
8497else
8498  echo "$as_me: failed program was:" >&5
8499sed 's/^/| /' conftest.$ac_ext >&5
8500
8501ac_cv_lib_svld_dlopen=no
8502fi
8503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504LIBS=$ac_check_lib_save_LIBS
8505fi
8506echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8507echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8508if test $ac_cv_lib_svld_dlopen = yes; then
8509  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8510else
8511  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8512echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8513if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8514  echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516  ac_check_lib_save_LIBS=$LIBS
8517LIBS="-ldld  $LIBS"
8518cat >conftest.$ac_ext <<_ACEOF
8519#line $LINENO "configure"
8520/* confdefs.h.  */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h.  */
8525
8526/* Override any gcc2 internal prototype to avoid an error.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531   builtin and then its argument prototype would still apply.  */
8532char dld_link ();
8533int
8534main ()
8535{
8536dld_link ();
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543  (eval $ac_link) 2>&5
8544  ac_status=$?
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } &&
8547         { ac_try='test -s conftest$ac_exeext'
8548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549  (eval $ac_try) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); }; }; then
8553  ac_cv_lib_dld_dld_link=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558ac_cv_lib_dld_dld_link=no
8559fi
8560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8561LIBS=$ac_check_lib_save_LIBS
8562fi
8563echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8564echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8565if test $ac_cv_lib_dld_dld_link = yes; then
8566  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8567fi
8568
8569
8570fi
8571
8572
8573fi
8574
8575
8576fi
8577
8578
8579fi
8580
8581
8582fi
8583
8584    ;;
8585  esac
8586
8587  if test "x$lt_cv_dlopen" != xno; then
8588    enable_dlopen=yes
8589  else
8590    enable_dlopen=no
8591  fi
8592
8593  case $lt_cv_dlopen in
8594  dlopen)
8595    save_CPPFLAGS="$CPPFLAGS"
8596    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8597
8598    save_LDFLAGS="$LDFLAGS"
8599    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8600
8601    save_LIBS="$LIBS"
8602    LIBS="$lt_cv_dlopen_libs $LIBS"
8603
8604    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8605echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8606if test "${lt_cv_dlopen_self+set}" = set; then
8607  echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609  	  if test "$cross_compiling" = yes; then :
8610  lt_cv_dlopen_self=cross
8611else
8612  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8613  lt_status=$lt_dlunknown
8614  cat > conftest.$ac_ext <<EOF
8615#line 8615 "configure"
8616#include "confdefs.h"
8617
8618#if HAVE_DLFCN_H
8619#include <dlfcn.h>
8620#endif
8621
8622#include <stdio.h>
8623
8624#ifdef RTLD_GLOBAL
8625#  define LT_DLGLOBAL		RTLD_GLOBAL
8626#else
8627#  ifdef DL_GLOBAL
8628#    define LT_DLGLOBAL		DL_GLOBAL
8629#  else
8630#    define LT_DLGLOBAL		0
8631#  endif
8632#endif
8633
8634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8635   find out it does not work in some platform. */
8636#ifndef LT_DLLAZY_OR_NOW
8637#  ifdef RTLD_LAZY
8638#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8639#  else
8640#    ifdef DL_LAZY
8641#      define LT_DLLAZY_OR_NOW		DL_LAZY
8642#    else
8643#      ifdef RTLD_NOW
8644#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8645#      else
8646#        ifdef DL_NOW
8647#          define LT_DLLAZY_OR_NOW	DL_NOW
8648#        else
8649#          define LT_DLLAZY_OR_NOW	0
8650#        endif
8651#      endif
8652#    endif
8653#  endif
8654#endif
8655
8656#ifdef __cplusplus
8657extern "C" void exit (int);
8658#endif
8659
8660void fnord() { int i=42;}
8661int main ()
8662{
8663  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8664  int status = $lt_dlunknown;
8665
8666  if (self)
8667    {
8668      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8669      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8670      /* dlclose (self); */
8671    }
8672
8673    exit (status);
8674}
8675EOF
8676  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677  (eval $ac_link) 2>&5
8678  ac_status=$?
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8681    (./conftest; exit; ) 2>/dev/null
8682    lt_status=$?
8683    case x$lt_status in
8684      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8685      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8686      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8687    esac
8688  else :
8689    # compilation failed
8690    lt_cv_dlopen_self=no
8691  fi
8692fi
8693rm -fr conftest*
8694
8695
8696fi
8697echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8698echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8699
8700    if test "x$lt_cv_dlopen_self" = xyes; then
8701      LDFLAGS="$LDFLAGS $link_static_flag"
8702      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8703echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8704if test "${lt_cv_dlopen_self_static+set}" = set; then
8705  echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707  	  if test "$cross_compiling" = yes; then :
8708  lt_cv_dlopen_self_static=cross
8709else
8710  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8711  lt_status=$lt_dlunknown
8712  cat > conftest.$ac_ext <<EOF
8713#line 8713 "configure"
8714#include "confdefs.h"
8715
8716#if HAVE_DLFCN_H
8717#include <dlfcn.h>
8718#endif
8719
8720#include <stdio.h>
8721
8722#ifdef RTLD_GLOBAL
8723#  define LT_DLGLOBAL		RTLD_GLOBAL
8724#else
8725#  ifdef DL_GLOBAL
8726#    define LT_DLGLOBAL		DL_GLOBAL
8727#  else
8728#    define LT_DLGLOBAL		0
8729#  endif
8730#endif
8731
8732/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8733   find out it does not work in some platform. */
8734#ifndef LT_DLLAZY_OR_NOW
8735#  ifdef RTLD_LAZY
8736#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8737#  else
8738#    ifdef DL_LAZY
8739#      define LT_DLLAZY_OR_NOW		DL_LAZY
8740#    else
8741#      ifdef RTLD_NOW
8742#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8743#      else
8744#        ifdef DL_NOW
8745#          define LT_DLLAZY_OR_NOW	DL_NOW
8746#        else
8747#          define LT_DLLAZY_OR_NOW	0
8748#        endif
8749#      endif
8750#    endif
8751#  endif
8752#endif
8753
8754#ifdef __cplusplus
8755extern "C" void exit (int);
8756#endif
8757
8758void fnord() { int i=42;}
8759int main ()
8760{
8761  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8762  int status = $lt_dlunknown;
8763
8764  if (self)
8765    {
8766      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8767      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8768      /* dlclose (self); */
8769    }
8770
8771    exit (status);
8772}
8773EOF
8774  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775  (eval $ac_link) 2>&5
8776  ac_status=$?
8777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8779    (./conftest; exit; ) 2>/dev/null
8780    lt_status=$?
8781    case x$lt_status in
8782      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8783      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8784      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8785    esac
8786  else :
8787    # compilation failed
8788    lt_cv_dlopen_self_static=no
8789  fi
8790fi
8791rm -fr conftest*
8792
8793
8794fi
8795echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8796echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8797    fi
8798
8799    CPPFLAGS="$save_CPPFLAGS"
8800    LDFLAGS="$save_LDFLAGS"
8801    LIBS="$save_LIBS"
8802    ;;
8803  esac
8804
8805  case $lt_cv_dlopen_self in
8806  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8807  *) enable_dlopen_self=unknown ;;
8808  esac
8809
8810  case $lt_cv_dlopen_self_static in
8811  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8812  *) enable_dlopen_self_static=unknown ;;
8813  esac
8814fi
8815
8816
8817# Report which librarie types wil actually be built
8818echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8819echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8820echo "$as_me:$LINENO: result: $can_build_shared" >&5
8821echo "${ECHO_T}$can_build_shared" >&6
8822
8823echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8824echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8825test "$can_build_shared" = "no" && enable_shared=no
8826
8827# On AIX, shared libraries and static libraries use the same namespace, and
8828# are all built from PIC.
8829case "$host_os" in
8830aix3*)
8831  test "$enable_shared" = yes && enable_static=no
8832  if test -n "$RANLIB"; then
8833    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8834    postinstall_cmds='$RANLIB $lib'
8835  fi
8836  ;;
8837
8838aix4*)
8839  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8840    test "$enable_shared" = yes && enable_static=no
8841  fi
8842  ;;
8843  darwin* | rhapsody*)
8844  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8845    archive_cmds_need_lc=no
8846    case "$host_os" in
8847    rhapsody* | darwin1.[012])
8848      allow_undefined_flag='-undefined suppress'
8849      ;;
8850    *) # Darwin 1.3 on
8851      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8852      ;;
8853    esac
8854    # FIXME: Relying on posixy $() will cause problems for
8855    #        cross-compilation, but unfortunately the echo tests do not
8856    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8857    #	       `"' quotes if we put them in here... so don't!
8858		output_verbose_link_cmd='echo'
8859    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8860    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8861    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8862		  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}'
8863		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8864    hardcode_direct=no
8865    hardcode_automatic=yes
8866    hardcode_shlibpath_var=unsupported
8867    whole_archive_flag_spec='-all_load $convenience'
8868    link_all_deplibs=yes
8869    fi
8870    ;;
8871esac
8872echo "$as_me:$LINENO: result: $enable_shared" >&5
8873echo "${ECHO_T}$enable_shared" >&6
8874
8875echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8876echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8877# Make sure either enable_shared or enable_static is yes.
8878test "$enable_shared" = yes || enable_static=yes
8879echo "$as_me:$LINENO: result: $enable_static" >&5
8880echo "${ECHO_T}$enable_static" >&6
8881
8882# The else clause should only fire when bootstrapping the
8883# libtool distribution, otherwise you forgot to ship ltmain.sh
8884# with your package, and you will get complaints that there are
8885# no rules to generate ltmain.sh.
8886if test -f "$ltmain"; then
8887  # See if we are running on zsh, and set the options which allow our commands through
8888  # without removal of \ escapes.
8889  if test -n "${ZSH_VERSION+set}" ; then
8890    setopt NO_GLOB_SUBST
8891  fi
8892  # Now quote all the things that may contain metacharacters while being
8893  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8894  # variables and quote the copies for generation of the libtool script.
8895  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8896    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8897    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8898    deplibs_check_method reload_flag reload_cmds need_locks \
8899    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8900    lt_cv_sys_global_symbol_to_c_name_address \
8901    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8902    old_postinstall_cmds old_postuninstall_cmds \
8903    compiler \
8904    CC \
8905    LD \
8906    lt_prog_compiler_wl \
8907    lt_prog_compiler_pic \
8908    lt_prog_compiler_static \
8909    lt_prog_compiler_no_builtin_flag \
8910    export_dynamic_flag_spec \
8911    thread_safe_flag_spec \
8912    whole_archive_flag_spec \
8913    enable_shared_with_static_runtimes \
8914    old_archive_cmds \
8915    old_archive_from_new_cmds \
8916    predep_objects \
8917    postdep_objects \
8918    predeps \
8919    postdeps \
8920    compiler_lib_search_path \
8921    archive_cmds \
8922    archive_expsym_cmds \
8923    postinstall_cmds \
8924    postuninstall_cmds \
8925    old_archive_from_expsyms_cmds \
8926    allow_undefined_flag \
8927    no_undefined_flag \
8928    export_symbols_cmds \
8929    hardcode_libdir_flag_spec \
8930    hardcode_libdir_flag_spec_ld \
8931    hardcode_libdir_separator \
8932    hardcode_automatic \
8933    module_cmds \
8934    module_expsym_cmds \
8935    lt_cv_prog_compiler_c_o \
8936    exclude_expsyms \
8937    include_expsyms; do
8938
8939    case $var in
8940    old_archive_cmds | \
8941    old_archive_from_new_cmds | \
8942    archive_cmds | \
8943    archive_expsym_cmds | \
8944    module_cmds | \
8945    module_expsym_cmds | \
8946    old_archive_from_expsyms_cmds | \
8947    export_symbols_cmds | \
8948    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8949    postinstall_cmds | postuninstall_cmds | \
8950    old_postinstall_cmds | old_postuninstall_cmds | \
8951    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8952      # Double-quote double-evaled strings.
8953      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8954      ;;
8955    *)
8956      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8957      ;;
8958    esac
8959  done
8960
8961  case $lt_echo in
8962  *'\$0 --fallback-echo"')
8963    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8964    ;;
8965  esac
8966
8967cfgfile="${ofile}T"
8968  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8969  $rm -f "$cfgfile"
8970  { echo "$as_me:$LINENO: creating $ofile" >&5
8971echo "$as_me: creating $ofile" >&6;}
8972
8973  cat <<__EOF__ >> "$cfgfile"
8974#! $SHELL
8975
8976# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8977# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8978# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8979#
8980# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8981# Free Software Foundation, Inc.
8982#
8983# This file is part of GNU Libtool:
8984# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8985#
8986# This program is free software; you can redistribute it and/or modify
8987# it under the terms of the GNU General Public License as published by
8988# the Free Software Foundation; either version 2 of the License, or
8989# (at your option) any later version.
8990#
8991# This program is distributed in the hope that it will be useful, but
8992# WITHOUT ANY WARRANTY; without even the implied warranty of
8993# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8994# General Public License for more details.
8995#
8996# You should have received a copy of the GNU General Public License
8997# along with this program; if not, write to the Free Software
8998# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8999#
9000# As a special exception to the GNU General Public License, if you
9001# distribute this file as part of a program that contains a
9002# configuration script generated by Autoconf, you may include it under
9003# the same distribution terms that you use for the rest of that program.
9004
9005# A sed program that does not truncate output.
9006SED=$lt_SED
9007
9008# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9009Xsed="$SED -e s/^X//"
9010
9011# The HP-UX ksh and POSIX shell print the target directory to stdout
9012# if CDPATH is set.
9013if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9014
9015# The names of the tagged configurations supported by this script.
9016available_tags=
9017
9018# ### BEGIN LIBTOOL CONFIG
9019
9020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9021
9022# Shell to use when invoking shell scripts.
9023SHELL=$lt_SHELL
9024
9025# Whether or not to build shared libraries.
9026build_libtool_libs=$enable_shared
9027
9028# Whether or not to build static libraries.
9029build_old_libs=$enable_static
9030
9031# Whether or not to add -lc for building shared libraries.
9032build_libtool_need_lc=$archive_cmds_need_lc
9033
9034# Whether or not to disallow shared libs when runtime libs are static
9035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9036
9037# Whether or not to optimize for fast installation.
9038fast_install=$enable_fast_install
9039
9040# The host system.
9041host_alias=$host_alias
9042host=$host
9043
9044# An echo program that does not interpret backslashes.
9045echo=$lt_echo
9046
9047# The archiver.
9048AR=$lt_AR
9049AR_FLAGS=$lt_AR_FLAGS
9050
9051# A C compiler.
9052LTCC=$lt_LTCC
9053
9054# A language-specific compiler.
9055CC=$lt_compiler
9056
9057# Is the compiler the GNU C compiler?
9058with_gcc=$GCC
9059
9060# An ERE matcher.
9061EGREP=$lt_EGREP
9062
9063# The linker used to build libraries.
9064LD=$lt_LD
9065
9066# Whether we need hard or soft links.
9067LN_S=$lt_LN_S
9068
9069# A BSD-compatible nm program.
9070NM=$lt_NM
9071
9072# A symbol stripping program
9073STRIP=$STRIP
9074
9075# Used to examine libraries when file_magic_cmd begins "file"
9076MAGIC_CMD=$MAGIC_CMD
9077
9078# Used on cygwin: DLL creation program.
9079DLLTOOL="$DLLTOOL"
9080
9081# Used on cygwin: object dumper.
9082OBJDUMP="$OBJDUMP"
9083
9084# Used on cygwin: assembler.
9085AS="$AS"
9086
9087# The name of the directory that contains temporary libtool files.
9088objdir=$objdir
9089
9090# How to create reloadable object files.
9091reload_flag=$lt_reload_flag
9092reload_cmds=$lt_reload_cmds
9093
9094# How to pass a linker flag through the compiler.
9095wl=$lt_lt_prog_compiler_wl
9096
9097# Object file suffix (normally "o").
9098objext="$ac_objext"
9099
9100# Old archive suffix (normally "a").
9101libext="$libext"
9102
9103# Shared library suffix (normally ".so").
9104shrext='$shrext'
9105
9106# Executable file suffix (normally "").
9107exeext="$exeext"
9108
9109# Additional compiler flags for building library objects.
9110pic_flag=$lt_lt_prog_compiler_pic
9111pic_mode=$pic_mode
9112
9113# What is the maximum length of a command?
9114max_cmd_len=$lt_cv_sys_max_cmd_len
9115
9116# Does compiler simultaneously support -c and -o options?
9117compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9118
9119# Must we lock files when doing compilation ?
9120need_locks=$lt_need_locks
9121
9122# Do we need the lib prefix for modules?
9123need_lib_prefix=$need_lib_prefix
9124
9125# Do we need a version for libraries?
9126need_version=$need_version
9127
9128# Whether dlopen is supported.
9129dlopen_support=$enable_dlopen
9130
9131# Whether dlopen of programs is supported.
9132dlopen_self=$enable_dlopen_self
9133
9134# Whether dlopen of statically linked programs is supported.
9135dlopen_self_static=$enable_dlopen_self_static
9136
9137# Compiler flag to prevent dynamic linking.
9138link_static_flag=$lt_lt_prog_compiler_static
9139
9140# Compiler flag to turn off builtin functions.
9141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9142
9143# Compiler flag to allow reflexive dlopens.
9144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9145
9146# Compiler flag to generate shared objects directly from archives.
9147whole_archive_flag_spec=$lt_whole_archive_flag_spec
9148
9149# Compiler flag to generate thread-safe objects.
9150thread_safe_flag_spec=$lt_thread_safe_flag_spec
9151
9152# Library versioning type.
9153version_type=$version_type
9154
9155# Format of library name prefix.
9156libname_spec=$lt_libname_spec
9157
9158# List of archive names.  First name is the real one, the rest are links.
9159# The last name is the one that the linker finds with -lNAME.
9160library_names_spec=$lt_library_names_spec
9161
9162# The coded name of the library, if different from the real name.
9163soname_spec=$lt_soname_spec
9164
9165# Commands used to build and install an old-style archive.
9166RANLIB=$lt_RANLIB
9167old_archive_cmds=$lt_old_archive_cmds
9168old_postinstall_cmds=$lt_old_postinstall_cmds
9169old_postuninstall_cmds=$lt_old_postuninstall_cmds
9170
9171# Create an old-style archive from a shared archive.
9172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9173
9174# Create a temporary old-style archive to link instead of a shared archive.
9175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9176
9177# Commands used to build and install a shared archive.
9178archive_cmds=$lt_archive_cmds
9179archive_expsym_cmds=$lt_archive_expsym_cmds
9180postinstall_cmds=$lt_postinstall_cmds
9181postuninstall_cmds=$lt_postuninstall_cmds
9182
9183# Commands used to build a loadable module (assumed same as above if empty)
9184module_cmds=$lt_module_cmds
9185module_expsym_cmds=$lt_module_expsym_cmds
9186
9187# Commands to strip libraries.
9188old_striplib=$lt_old_striplib
9189striplib=$lt_striplib
9190
9191# Dependencies to place before the objects being linked to create a
9192# shared library.
9193predep_objects=$lt_predep_objects
9194
9195# Dependencies to place after the objects being linked to create a
9196# shared library.
9197postdep_objects=$lt_postdep_objects
9198
9199# Dependencies to place before the objects being linked to create a
9200# shared library.
9201predeps=$lt_predeps
9202
9203# Dependencies to place after the objects being linked to create a
9204# shared library.
9205postdeps=$lt_postdeps
9206
9207# The library search path used internally by the compiler when linking
9208# a shared library.
9209compiler_lib_search_path=$lt_compiler_lib_search_path
9210
9211# Method to check whether dependent libraries are shared objects.
9212deplibs_check_method=$lt_deplibs_check_method
9213
9214# Command to use when deplibs_check_method == file_magic.
9215file_magic_cmd=$lt_file_magic_cmd
9216
9217# Flag that allows shared libraries with undefined symbols to be built.
9218allow_undefined_flag=$lt_allow_undefined_flag
9219
9220# Flag that forces no undefined symbols.
9221no_undefined_flag=$lt_no_undefined_flag
9222
9223# Commands used to finish a libtool library installation in a directory.
9224finish_cmds=$lt_finish_cmds
9225
9226# Same as above, but a single script fragment to be evaled but not shown.
9227finish_eval=$lt_finish_eval
9228
9229# Take the output of nm and produce a listing of raw symbols and C names.
9230global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9231
9232# Transform the output of nm in a proper C declaration
9233global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9234
9235# Transform the output of nm in a C name address pair
9236global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9237
9238# This is the shared library runtime path variable.
9239runpath_var=$runpath_var
9240
9241# This is the shared library path variable.
9242shlibpath_var=$shlibpath_var
9243
9244# Is shlibpath searched before the hard-coded library search path?
9245shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9246
9247# How to hardcode a shared library path into an executable.
9248hardcode_action=$hardcode_action
9249
9250# Whether we should hardcode library paths into libraries.
9251hardcode_into_libs=$hardcode_into_libs
9252
9253# Flag to hardcode \$libdir into a binary during linking.
9254# This must work even if \$libdir does not exist.
9255hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9256
9257# If ld is used when linking, flag to hardcode \$libdir into
9258# a binary during linking. This must work even if \$libdir does
9259# not exist.
9260hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9261
9262# Whether we need a single -rpath flag with a separated argument.
9263hardcode_libdir_separator=$lt_hardcode_libdir_separator
9264
9265# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9266# resulting binary.
9267hardcode_direct=$hardcode_direct
9268
9269# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9270# resulting binary.
9271hardcode_minus_L=$hardcode_minus_L
9272
9273# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9274# the resulting binary.
9275hardcode_shlibpath_var=$hardcode_shlibpath_var
9276
9277# Set to yes if building a shared library automatically hardcodes DIR into the library
9278# and all subsequent libraries and executables linked against it.
9279hardcode_automatic=$hardcode_automatic
9280
9281# Variables whose values should be saved in libtool wrapper scripts and
9282# restored at relink time.
9283variables_saved_for_relink="$variables_saved_for_relink"
9284
9285# Whether libtool must link a program against all its dependency libraries.
9286link_all_deplibs=$link_all_deplibs
9287
9288# Compile-time system search path for libraries
9289sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9290
9291# Run-time system search path for libraries
9292sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9293
9294# Fix the shell variable \$srcfile for the compiler.
9295fix_srcfile_path="$fix_srcfile_path"
9296
9297# Set to yes if exported symbols are required.
9298always_export_symbols=$always_export_symbols
9299
9300# The commands to list exported symbols.
9301export_symbols_cmds=$lt_export_symbols_cmds
9302
9303# The commands to extract the exported symbol list from a shared archive.
9304extract_expsyms_cmds=$lt_extract_expsyms_cmds
9305
9306# Symbols that should not be listed in the preloaded symbols.
9307exclude_expsyms=$lt_exclude_expsyms
9308
9309# Symbols that must always be exported.
9310include_expsyms=$lt_include_expsyms
9311
9312# ### END LIBTOOL CONFIG
9313
9314__EOF__
9315
9316
9317  case $host_os in
9318  aix3*)
9319    cat <<\EOF >> "$cfgfile"
9320
9321# AIX sometimes has problems with the GCC collect2 program.  For some
9322# reason, if we set the COLLECT_NAMES environment variable, the problems
9323# vanish in a puff of smoke.
9324if test "X${COLLECT_NAMES+set}" != Xset; then
9325  COLLECT_NAMES=
9326  export COLLECT_NAMES
9327fi
9328EOF
9329    ;;
9330  esac
9331
9332  # We use sed instead of cat because bash on DJGPP gets confused if
9333  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9334  # text mode, it properly converts lines to CR/LF.  This bash problem
9335  # is reportedly fixed, but why not run on old versions too?
9336  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9337
9338  mv -f "$cfgfile" "$ofile" || \
9339    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9340  chmod +x "$ofile"
9341
9342else
9343  # If there is no Makefile yet, we rely on a make rule to execute
9344  # `config.status --recheck' to rerun these tests and create the
9345  # libtool script then.
9346  test -f Makefile && make "$ltmain"
9347fi
9348
9349
9350ac_ext=c
9351ac_cpp='$CPP $CPPFLAGS'
9352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9354ac_compiler_gnu=$ac_cv_c_compiler_gnu
9355
9356CC="$lt_save_CC"
9357
9358
9359# Check whether --with-tags or --without-tags was given.
9360if test "${with_tags+set}" = set; then
9361  withval="$with_tags"
9362  tagnames="$withval"
9363fi;
9364
9365if test -f "$ltmain" && test -n "$tagnames"; then
9366  if test ! -f "${ofile}"; then
9367    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9368echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9369  fi
9370
9371  if test -z "$LTCC"; then
9372    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9373    if test -z "$LTCC"; then
9374      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9375echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9376    else
9377      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9378echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9379    fi
9380  fi
9381
9382  # Extract list of available tagged configurations in $ofile.
9383  # Note that this assumes the entire list is on one line.
9384  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9385
9386  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9387  for tagname in $tagnames; do
9388    IFS="$lt_save_ifs"
9389    # Check whether tagname contains only valid characters
9390    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9391    "") ;;
9392    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9393echo "$as_me: error: invalid tag name: $tagname" >&2;}
9394   { (exit 1); exit 1; }; }
9395	;;
9396    esac
9397
9398    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9399    then
9400      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9401echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9402   { (exit 1); exit 1; }; }
9403    fi
9404
9405    # Update the list of available tags.
9406    if test -n "$tagname"; then
9407      echo appending configuration tag \"$tagname\" to $ofile
9408
9409      case $tagname in
9410      CXX)
9411	if test -n "$CXX" && test "X$CXX" != "Xno"; then
9412	  ac_ext=cc
9413ac_cpp='$CXXCPP $CPPFLAGS'
9414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9417
9418
9419
9420
9421archive_cmds_need_lc_CXX=no
9422allow_undefined_flag_CXX=
9423always_export_symbols_CXX=no
9424archive_expsym_cmds_CXX=
9425export_dynamic_flag_spec_CXX=
9426hardcode_direct_CXX=no
9427hardcode_libdir_flag_spec_CXX=
9428hardcode_libdir_flag_spec_ld_CXX=
9429hardcode_libdir_separator_CXX=
9430hardcode_minus_L_CXX=no
9431hardcode_automatic_CXX=no
9432module_cmds_CXX=
9433module_expsym_cmds_CXX=
9434link_all_deplibs_CXX=unknown
9435old_archive_cmds_CXX=$old_archive_cmds
9436no_undefined_flag_CXX=
9437whole_archive_flag_spec_CXX=
9438enable_shared_with_static_runtimes_CXX=no
9439
9440# Dependencies to place before and after the object being linked:
9441predep_objects_CXX=
9442postdep_objects_CXX=
9443predeps_CXX=
9444postdeps_CXX=
9445compiler_lib_search_path_CXX=
9446
9447# Source file extension for C++ test sources.
9448ac_ext=cc
9449
9450# Object file extension for compiled C++ test sources.
9451objext=o
9452objext_CXX=$objext
9453
9454# Code to be used in simple compile tests
9455lt_simple_compile_test_code="int some_variable = 0;\n"
9456
9457# Code to be used in simple link tests
9458lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9459
9460# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9461
9462# If no C compiler was specified, use CC.
9463LTCC=${LTCC-"$CC"}
9464
9465# Allow CC to be a program name with arguments.
9466compiler=$CC
9467
9468
9469# Allow CC to be a program name with arguments.
9470lt_save_CC=$CC
9471lt_save_LD=$LD
9472lt_save_GCC=$GCC
9473GCC=$GXX
9474lt_save_with_gnu_ld=$with_gnu_ld
9475lt_save_path_LD=$lt_cv_path_LD
9476if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9477  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9478else
9479  unset lt_cv_prog_gnu_ld
9480fi
9481if test -n "${lt_cv_path_LDCXX+set}"; then
9482  lt_cv_path_LD=$lt_cv_path_LDCXX
9483else
9484  unset lt_cv_path_LD
9485fi
9486test -z "${LDCXX+set}" || LD=$LDCXX
9487CC=${CXX-"c++"}
9488compiler=$CC
9489compiler_CXX=$CC
9490cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9491
9492# We don't want -fno-exception wen compiling C++ code, so set the
9493# no_builtin_flag separately
9494if test "$GXX" = yes; then
9495  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9496else
9497  lt_prog_compiler_no_builtin_flag_CXX=
9498fi
9499
9500if test "$GXX" = yes; then
9501  # Set up default GNU C++ configuration
9502
9503
9504# Check whether --with-gnu-ld or --without-gnu-ld was given.
9505if test "${with_gnu_ld+set}" = set; then
9506  withval="$with_gnu_ld"
9507  test "$withval" = no || with_gnu_ld=yes
9508else
9509  with_gnu_ld=no
9510fi;
9511ac_prog=ld
9512if test "$GCC" = yes; then
9513  # Check if gcc -print-prog-name=ld gives a path.
9514  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9515echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9516  case $host in
9517  *-*-mingw*)
9518    # gcc leaves a trailing carriage return which upsets mingw
9519    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9520  *)
9521    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9522  esac
9523  case $ac_prog in
9524    # Accept absolute paths.
9525    [\\/]* | ?:[\\/]*)
9526      re_direlt='/[^/][^/]*/\.\./'
9527      # Canonicalize the path of ld
9528      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9529      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9530	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9531      done
9532      test -z "$LD" && LD="$ac_prog"
9533      ;;
9534  "")
9535    # If it fails, then pretend we aren't using GCC.
9536    ac_prog=ld
9537    ;;
9538  *)
9539    # If it is relative, then search for the first ld in PATH.
9540    with_gnu_ld=unknown
9541    ;;
9542  esac
9543elif test "$with_gnu_ld" = yes; then
9544  echo "$as_me:$LINENO: checking for GNU ld" >&5
9545echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9546else
9547  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9548echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9549fi
9550if test "${lt_cv_path_LD+set}" = set; then
9551  echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553  if test -z "$LD"; then
9554  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9555  for ac_dir in $PATH; do
9556    IFS="$lt_save_ifs"
9557    test -z "$ac_dir" && ac_dir=.
9558    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559      lt_cv_path_LD="$ac_dir/$ac_prog"
9560      # Check to see if the program is GNU ld.  I'd rather use --version,
9561      # but apparently some GNU ld's only accept -v.
9562      # Break only if it was the GNU/non-GNU ld that we prefer.
9563      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9564      *GNU* | *'with BFD'*)
9565	test "$with_gnu_ld" != no && break
9566	;;
9567      *)
9568	test "$with_gnu_ld" != yes && break
9569	;;
9570      esac
9571    fi
9572  done
9573  IFS="$lt_save_ifs"
9574else
9575  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9576fi
9577fi
9578
9579LD="$lt_cv_path_LD"
9580if test -n "$LD"; then
9581  echo "$as_me:$LINENO: result: $LD" >&5
9582echo "${ECHO_T}$LD" >&6
9583else
9584  echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6
9586fi
9587test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9588echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9589   { (exit 1); exit 1; }; }
9590echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9591echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9592if test "${lt_cv_prog_gnu_ld+set}" = set; then
9593  echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9596case `"$LD" -v 2>&1 </dev/null` in
9597*GNU* | *'with BFD'*)
9598  lt_cv_prog_gnu_ld=yes
9599  ;;
9600*)
9601  lt_cv_prog_gnu_ld=no
9602  ;;
9603esac
9604fi
9605echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9606echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9607with_gnu_ld=$lt_cv_prog_gnu_ld
9608
9609
9610
9611  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9612  # archiving commands below assume that GNU ld is being used.
9613  if test "$with_gnu_ld" = yes; then
9614    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615    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'
9616
9617    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9618    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9619
9620    # If archive_cmds runs LD, not CC, wlarc should be empty
9621    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9622    #     investigate it a little bit more. (MM)
9623    wlarc='${wl}'
9624
9625    # ancient GNU ld didn't support --whole-archive et. al.
9626    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9627	grep 'no-whole-archive' > /dev/null; then
9628      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9629    else
9630      whole_archive_flag_spec_CXX=
9631    fi
9632  else
9633    with_gnu_ld=no
9634    wlarc=
9635
9636    # A generic and very simple default shared library creation
9637    # command for GNU C++ for the case where it uses the native
9638    # linker, instead of GNU ld.  If possible, this setting should
9639    # overridden to take advantage of the native linker features on
9640    # the platform it is being used on.
9641    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9642  fi
9643
9644  # Commands to make compiler produce verbose output that lists
9645  # what "hidden" libraries, object files and flags are used when
9646  # linking a shared library.
9647  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9648
9649else
9650  GXX=no
9651  with_gnu_ld=no
9652  wlarc=
9653fi
9654
9655# PORTME: fill in a description of your system's C++ link characteristics
9656echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9657echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9658ld_shlibs_CXX=yes
9659case $host_os in
9660  aix3*)
9661    # FIXME: insert proper C++ library support
9662    ld_shlibs_CXX=no
9663    ;;
9664  aix4* | aix5*)
9665    if test "$host_cpu" = ia64; then
9666      # On IA64, the linker does run time linking by default, so we don't
9667      # have to do anything special.
9668      aix_use_runtimelinking=no
9669      exp_sym_flag='-Bexport'
9670      no_entry_flag=""
9671    else
9672      aix_use_runtimelinking=no
9673
9674      # Test if we are trying to use run time linking or normal
9675      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9676      # need to do runtime linking.
9677      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9678	for ld_flag in $LDFLAGS; do
9679	  case $ld_flag in
9680	  *-brtl*)
9681	    aix_use_runtimelinking=yes
9682	    break
9683	    ;;
9684	  esac
9685	done
9686      esac
9687
9688      exp_sym_flag='-bexport'
9689      no_entry_flag='-bnoentry'
9690    fi
9691
9692    # When large executables or shared objects are built, AIX ld can
9693    # have problems creating the table of contents.  If linking a library
9694    # or program results in "error TOC overflow" add -mminimal-toc to
9695    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9696    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9697
9698    archive_cmds_CXX=''
9699    hardcode_direct_CXX=yes
9700    hardcode_libdir_separator_CXX=':'
9701    link_all_deplibs_CXX=yes
9702
9703    if test "$GXX" = yes; then
9704      case $host_os in aix4.012|aix4.012.*)
9705      # We only want to do this on AIX 4.2 and lower, the check
9706      # below for broken collect2 doesn't work under 4.3+
9707	collect2name=`${CC} -print-prog-name=collect2`
9708	if test -f "$collect2name" && \
9709	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9710	then
9711	  # We have reworked collect2
9712	  hardcode_direct_CXX=yes
9713	else
9714	  # We have old collect2
9715	  hardcode_direct_CXX=unsupported
9716	  # It fails to find uninstalled libraries when the uninstalled
9717	  # path is not listed in the libpath.  Setting hardcode_minus_L
9718	  # to unsupported forces relinking
9719	  hardcode_minus_L_CXX=yes
9720	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9721	  hardcode_libdir_separator_CXX=
9722	fi
9723      esac
9724      shared_flag='-shared'
9725    else
9726      # not using gcc
9727      if test "$host_cpu" = ia64; then
9728	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9729	# chokes on -Wl,-G. The following line is correct:
9730	shared_flag='-G'
9731      else
9732	if test "$aix_use_runtimelinking" = yes; then
9733	  shared_flag='${wl}-G'
9734	else
9735	  shared_flag='${wl}-bM:SRE'
9736	fi
9737      fi
9738    fi
9739
9740    # It seems that -bexpall does not export symbols beginning with
9741    # underscore (_), so it is better to generate a list of symbols to export.
9742    always_export_symbols_CXX=yes
9743    if test "$aix_use_runtimelinking" = yes; then
9744      # Warning - without using the other runtime loading flags (-brtl),
9745      # -berok will link without error, but may produce a broken library.
9746      allow_undefined_flag_CXX='-berok'
9747      # Determine the default libpath from the value encoded in an empty executable.
9748      cat >conftest.$ac_ext <<_ACEOF
9749#line $LINENO "configure"
9750/* confdefs.h.  */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h.  */
9755
9756int
9757main ()
9758{
9759
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766  (eval $ac_link) 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } &&
9770         { ac_try='test -s conftest$ac_exeext'
9771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772  (eval $ac_try) 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); }; }; then
9776
9777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9778}'`
9779# Check for a 64-bit object if we didn't find anything.
9780if 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; }
9781}'`; fi
9782else
9783  echo "$as_me: failed program was:" >&5
9784sed 's/^/| /' conftest.$ac_ext >&5
9785
9786fi
9787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9789
9790      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9791
9792      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"
9793     else
9794      if test "$host_cpu" = ia64; then
9795	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9796	allow_undefined_flag_CXX="-z nodefs"
9797	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"
9798      else
9799	# Determine the default libpath from the value encoded in an empty executable.
9800	cat >conftest.$ac_ext <<_ACEOF
9801#line $LINENO "configure"
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807
9808int
9809main ()
9810{
9811
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
9817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818  (eval $ac_link) 2>&5
9819  ac_status=$?
9820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821  (exit $ac_status); } &&
9822         { ac_try='test -s conftest$ac_exeext'
9823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824  (eval $ac_try) 2>&5
9825  ac_status=$?
9826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827  (exit $ac_status); }; }; then
9828
9829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9830}'`
9831# Check for a 64-bit object if we didn't find anything.
9832if 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; }
9833}'`; fi
9834else
9835  echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838fi
9839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9841
9842	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9843	# Warning - without using the other run time loading flags,
9844	# -berok will link without error, but may produce a broken library.
9845	no_undefined_flag_CXX=' ${wl}-bernotok'
9846	allow_undefined_flag_CXX=' ${wl}-berok'
9847	# -bexpall does not export symbols beginning with underscore (_)
9848	always_export_symbols_CXX=yes
9849	# Exported symbols can be pulled into shared objects from archives
9850	whole_archive_flag_spec_CXX=' '
9851	archive_cmds_need_lc_CXX=yes
9852	# This is similar to how AIX traditionally builds it's shared libraries.
9853	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'
9854      fi
9855    fi
9856    ;;
9857  chorus*)
9858    case $cc_basename in
9859      *)
9860	# FIXME: insert proper C++ library support
9861	ld_shlibs_CXX=no
9862	;;
9863    esac
9864    ;;
9865
9866  cygwin* | mingw* | pw32*)
9867    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9868    # as there is no search path for DLLs.
9869    hardcode_libdir_flag_spec_CXX='-L$libdir'
9870    allow_undefined_flag_CXX=unsupported
9871    always_export_symbols_CXX=no
9872    enable_shared_with_static_runtimes_CXX=yes
9873
9874    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9875      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'
9876      # If the export-symbols file already is a .def file (1st line
9877      # is EXPORTS), use it as is; otherwise, prepend...
9878      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9879	cp $export_symbols $output_objdir/$soname.def;
9880      else
9881	echo EXPORTS > $output_objdir/$soname.def;
9882	cat $export_symbols >> $output_objdir/$soname.def;
9883      fi~
9884      $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'
9885    else
9886      ld_shlibs_CXX=no
9887    fi
9888  ;;
9889
9890  darwin* | rhapsody*)
9891   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9892    archive_cmds_need_lc_CXX=no
9893    case "$host_os" in
9894    rhapsody* | darwin1.[012])
9895      allow_undefined_flag_CXX='-undefined suppress'
9896      ;;
9897    *) # Darwin 1.3 on
9898      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9899      ;;
9900    esac
9901    	lt_int_apple_cc_single_mod=no
9902    	output_verbose_link_cmd='echo'
9903    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9904    	  lt_int_apple_cc_single_mod=yes
9905    	fi
9906    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9907    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9908    	else
9909        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9910      fi
9911      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9912
9913    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9914      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9915        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}'
9916      else
9917        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9918      fi
9919        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9920    hardcode_direct_CXX=no
9921    hardcode_automatic_CXX=yes
9922    hardcode_shlibpath_var_CXX=unsupported
9923    whole_archive_flag_spec_CXX='-all_load $convenience'
9924    link_all_deplibs_CXX=yes
9925   fi
9926    ;;
9927
9928  dgux*)
9929    case $cc_basename in
9930      ec++)
9931	# FIXME: insert proper C++ library support
9932	ld_shlibs_CXX=no
9933	;;
9934      ghcx)
9935	# Green Hills C++ Compiler
9936	# FIXME: insert proper C++ library support
9937	ld_shlibs_CXX=no
9938	;;
9939      *)
9940	# FIXME: insert proper C++ library support
9941	ld_shlibs_CXX=no
9942	;;
9943    esac
9944    ;;
9945  freebsd12*)
9946    # C++ shared libraries reported to be fairly broken before switch to ELF
9947    ld_shlibs_CXX=no
9948    ;;
9949  freebsd-elf*)
9950    archive_cmds_need_lc_CXX=no
9951    ;;
9952  freebsd*)
9953    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9954    # conventions
9955    ld_shlibs_CXX=yes
9956    ;;
9957  gnu*)
9958    ;;
9959  hpux9*)
9960    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961    hardcode_libdir_separator_CXX=:
9962    export_dynamic_flag_spec_CXX='${wl}-E'
9963    hardcode_direct_CXX=yes
9964    hardcode_minus_L_CXX=yes # Not in the search PATH,
9965				# but as the default
9966				# location of the library.
9967
9968    case $cc_basename in
9969    CC)
9970      # FIXME: insert proper C++ library support
9971      ld_shlibs_CXX=no
9972      ;;
9973    aCC)
9974      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'
9975      # Commands to make compiler produce verbose output that lists
9976      # what "hidden" libraries, object files and flags are used when
9977      # linking a shared library.
9978      #
9979      # There doesn't appear to be a way to prevent this compiler from
9980      # explicitly linking system object files so we need to strip them
9981      # from the output so that they don't get included in the library
9982      # dependencies.
9983      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9984      ;;
9985    *)
9986      if test "$GXX" = yes; then
9987        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'
9988      else
9989        # FIXME: insert proper C++ library support
9990        ld_shlibs_CXX=no
9991      fi
9992      ;;
9993    esac
9994    ;;
9995  hpux10*|hpux11*)
9996    if test $with_gnu_ld = no; then
9997      case "$host_cpu" in
9998      hppa*64*)
9999	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10000	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10001	hardcode_libdir_separator_CXX=:
10002        ;;
10003      ia64*)
10004	hardcode_libdir_flag_spec_CXX='-L$libdir'
10005        ;;
10006      *)
10007	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10008	hardcode_libdir_separator_CXX=:
10009	export_dynamic_flag_spec_CXX='${wl}-E'
10010        ;;
10011      esac
10012    fi
10013    case "$host_cpu" in
10014    hppa*64*)
10015      hardcode_direct_CXX=no
10016      hardcode_shlibpath_var_CXX=no
10017      ;;
10018    ia64*)
10019      hardcode_direct_CXX=no
10020      hardcode_shlibpath_var_CXX=no
10021      hardcode_minus_L_CXX=yes # Not in the search PATH,
10022					      # but as the default
10023					      # location of the library.
10024      ;;
10025    *)
10026      hardcode_direct_CXX=yes
10027      hardcode_minus_L_CXX=yes # Not in the search PATH,
10028					      # but as the default
10029					      # location of the library.
10030      ;;
10031    esac
10032
10033    case $cc_basename in
10034      CC)
10035	# FIXME: insert proper C++ library support
10036	ld_shlibs_CXX=no
10037	;;
10038      aCC)
10039	case "$host_cpu" in
10040	hppa*64*|ia64*)
10041	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10042	  ;;
10043	*)
10044	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10045	  ;;
10046	esac
10047	# Commands to make compiler produce verbose output that lists
10048	# what "hidden" libraries, object files and flags are used when
10049	# linking a shared library.
10050	#
10051	# There doesn't appear to be a way to prevent this compiler from
10052	# explicitly linking system object files so we need to strip them
10053	# from the output so that they don't get included in the library
10054	# dependencies.
10055	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'
10056	;;
10057      *)
10058	if test "$GXX" = yes; then
10059	  if test $with_gnu_ld = no; then
10060	    case "$host_cpu" in
10061	    ia64*|hppa*64*)
10062	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10063	      ;;
10064	    *)
10065	      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'
10066	      ;;
10067	    esac
10068	  fi
10069	else
10070	  # FIXME: insert proper C++ library support
10071	  ld_shlibs_CXX=no
10072	fi
10073	;;
10074    esac
10075    ;;
10076  irix5* | irix6*)
10077    case $cc_basename in
10078      CC)
10079	# SGI C++
10080	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10081
10082	# Archives containing C++ object files must be created using
10083	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10084	# necessary to make sure instantiated templates are included
10085	# in the archive.
10086	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10087	;;
10088      *)
10089	if test "$GXX" = yes; then
10090	  if test "$with_gnu_ld" = no; then
10091	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10092	  else
10093	    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'
10094	  fi
10095	fi
10096	link_all_deplibs_CXX=yes
10097	;;
10098    esac
10099    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10100    hardcode_libdir_separator_CXX=:
10101    ;;
10102  linux*)
10103    case $cc_basename in
10104      KCC)
10105	# Kuck and Associates, Inc. (KAI) C++ Compiler
10106
10107	# KCC will only create a shared library if the output file
10108	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10109	# to its proper name (with version) after linking.
10110	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'
10111	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'
10112	# Commands to make compiler produce verbose output that lists
10113	# what "hidden" libraries, object files and flags are used when
10114	# linking a shared library.
10115	#
10116	# There doesn't appear to be a way to prevent this compiler from
10117	# explicitly linking system object files so we need to strip them
10118	# from the output so that they don't get included in the library
10119	# dependencies.
10120	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'
10121
10122	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10123	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10124
10125	# Archives containing C++ object files must be created using
10126	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10127	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10128	;;
10129      icpc)
10130	# Intel C++
10131	with_gnu_ld=yes
10132	archive_cmds_need_lc_CXX=no
10133	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134	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'
10135	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10136	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10137	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10138	;;
10139      cxx)
10140	# Compaq C++
10141	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142	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'
10143
10144	runpath_var=LD_RUN_PATH
10145	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10146	hardcode_libdir_separator_CXX=:
10147
10148	# Commands to make compiler produce verbose output that lists
10149	# what "hidden" libraries, object files and flags are used when
10150	# linking a shared library.
10151	#
10152	# There doesn't appear to be a way to prevent this compiler from
10153	# explicitly linking system object files so we need to strip them
10154	# from the output so that they don't get included in the library
10155	# dependencies.
10156	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'
10157	;;
10158    esac
10159    ;;
10160  lynxos*)
10161    # FIXME: insert proper C++ library support
10162    ld_shlibs_CXX=no
10163    ;;
10164  m88k*)
10165    # FIXME: insert proper C++ library support
10166    ld_shlibs_CXX=no
10167    ;;
10168  mvs*)
10169    case $cc_basename in
10170      cxx)
10171	# FIXME: insert proper C++ library support
10172	ld_shlibs_CXX=no
10173	;;
10174      *)
10175	# FIXME: insert proper C++ library support
10176	ld_shlibs_CXX=no
10177	;;
10178    esac
10179    ;;
10180  netbsd*)
10181    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10182      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10183      wlarc=
10184      hardcode_libdir_flag_spec_CXX='-R$libdir'
10185      hardcode_direct_CXX=yes
10186      hardcode_shlibpath_var_CXX=no
10187    fi
10188    # Workaround some broken pre-1.5 toolchains
10189    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10190    ;;
10191  osf3*)
10192    case $cc_basename in
10193      KCC)
10194	# Kuck and Associates, Inc. (KAI) C++ Compiler
10195
10196	# KCC will only create a shared library if the output file
10197	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10198	# to its proper name (with version) after linking.
10199	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'
10200
10201	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10202	hardcode_libdir_separator_CXX=:
10203
10204	# Archives containing C++ object files must be created using
10205	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10206	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10207
10208	;;
10209      RCC)
10210	# Rational C++ 2.4.1
10211	# FIXME: insert proper C++ library support
10212	ld_shlibs_CXX=no
10213	;;
10214      cxx)
10215	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10216	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10217
10218	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10219	hardcode_libdir_separator_CXX=:
10220
10221	# Commands to make compiler produce verbose output that lists
10222	# what "hidden" libraries, object files and flags are used when
10223	# linking a shared library.
10224	#
10225	# There doesn't appear to be a way to prevent this compiler from
10226	# explicitly linking system object files so we need to strip them
10227	# from the output so that they don't get included in the library
10228	# dependencies.
10229	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'
10230	;;
10231      *)
10232	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10233	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10234	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10235
10236	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10237	  hardcode_libdir_separator_CXX=:
10238
10239	  # Commands to make compiler produce verbose output that lists
10240	  # what "hidden" libraries, object files and flags are used when
10241	  # linking a shared library.
10242	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10243
10244	else
10245	  # FIXME: insert proper C++ library support
10246	  ld_shlibs_CXX=no
10247	fi
10248	;;
10249    esac
10250    ;;
10251  osf4* | osf5*)
10252    case $cc_basename in
10253      KCC)
10254	# Kuck and Associates, Inc. (KAI) C++ Compiler
10255
10256	# KCC will only create a shared library if the output file
10257	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10258	# to its proper name (with version) after linking.
10259	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'
10260
10261	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10262	hardcode_libdir_separator_CXX=:
10263
10264	# Archives containing C++ object files must be created using
10265	# the KAI C++ compiler.
10266	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10267	;;
10268      RCC)
10269	# Rational C++ 2.4.1
10270	# FIXME: insert proper C++ library support
10271	ld_shlibs_CXX=no
10272	;;
10273      cxx)
10274	allow_undefined_flag_CXX=' -expect_unresolved \*'
10275	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10276	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10277	  echo "-hidden">> $lib.exp~
10278	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
10279	  $rm $lib.exp'
10280
10281	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10282	hardcode_libdir_separator_CXX=:
10283
10284	# Commands to make compiler produce verbose output that lists
10285	# what "hidden" libraries, object files and flags are used when
10286	# linking a shared library.
10287	#
10288	# There doesn't appear to be a way to prevent this compiler from
10289	# explicitly linking system object files so we need to strip them
10290	# from the output so that they don't get included in the library
10291	# dependencies.
10292	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'
10293	;;
10294      *)
10295	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10296	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10297	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10298
10299	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10300	  hardcode_libdir_separator_CXX=:
10301
10302	  # Commands to make compiler produce verbose output that lists
10303	  # what "hidden" libraries, object files and flags are used when
10304	  # linking a shared library.
10305	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10306
10307	else
10308	  # FIXME: insert proper C++ library support
10309	  ld_shlibs_CXX=no
10310	fi
10311	;;
10312    esac
10313    ;;
10314  psos*)
10315    # FIXME: insert proper C++ library support
10316    ld_shlibs_CXX=no
10317    ;;
10318  sco*)
10319    archive_cmds_need_lc_CXX=no
10320    case $cc_basename in
10321      CC)
10322	# FIXME: insert proper C++ library support
10323	ld_shlibs_CXX=no
10324	;;
10325      *)
10326	# FIXME: insert proper C++ library support
10327	ld_shlibs_CXX=no
10328	;;
10329    esac
10330    ;;
10331  sunos4*)
10332    case $cc_basename in
10333      CC)
10334	# Sun C++ 4.x
10335	# FIXME: insert proper C++ library support
10336	ld_shlibs_CXX=no
10337	;;
10338      lcc)
10339	# Lucid
10340	# FIXME: insert proper C++ library support
10341	ld_shlibs_CXX=no
10342	;;
10343      *)
10344	# FIXME: insert proper C++ library support
10345	ld_shlibs_CXX=no
10346	;;
10347    esac
10348    ;;
10349  solaris*)
10350    case $cc_basename in
10351      CC)
10352	# Sun C++ 4.2, 5.x and Centerline C++
10353	no_undefined_flag_CXX=' -zdefs'
10354	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10355	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10356	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10357
10358	hardcode_libdir_flag_spec_CXX='-R$libdir'
10359	hardcode_shlibpath_var_CXX=no
10360	case $host_os in
10361	  solaris2.0-5 | solaris2.0-5.*) ;;
10362	  *)
10363	    # The C++ compiler is used as linker so we must use $wl
10364	    # flag to pass the commands to the underlying system
10365	    # linker.
10366	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10367	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10368	    ;;
10369	esac
10370	link_all_deplibs_CXX=yes
10371
10372	# Commands to make compiler produce verbose output that lists
10373	# what "hidden" libraries, object files and flags are used when
10374	# linking a shared library.
10375	#
10376	# There doesn't appear to be a way to prevent this compiler from
10377	# explicitly linking system object files so we need to strip them
10378	# from the output so that they don't get included in the library
10379	# dependencies.
10380	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10381
10382	# Archives containing C++ object files must be created using
10383	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10384	# necessary to make sure instantiated templates are included
10385	# in the archive.
10386	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10387	;;
10388      gcx)
10389	# Green Hills C++ Compiler
10390	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10391
10392	# The C++ compiler must be used to create the archive.
10393	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10394	;;
10395      *)
10396	# GNU C++ compiler with Solaris linker
10397	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10398	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10399	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10400	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10401	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10402		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10403
10404	    # Commands to make compiler produce verbose output that lists
10405	    # what "hidden" libraries, object files and flags are used when
10406	    # linking a shared library.
10407	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10408	  else
10409	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10410	    # platform.
10411	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10412	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10413		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10414
10415	    # Commands to make compiler produce verbose output that lists
10416	    # what "hidden" libraries, object files and flags are used when
10417	    # linking a shared library.
10418	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10419	  fi
10420
10421	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10422	fi
10423	;;
10424    esac
10425    ;;
10426  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10427    archive_cmds_need_lc_CXX=no
10428    ;;
10429  tandem*)
10430    case $cc_basename in
10431      NCC)
10432	# NonStop-UX NCC 3.20
10433	# FIXME: insert proper C++ library support
10434	ld_shlibs_CXX=no
10435	;;
10436      *)
10437	# FIXME: insert proper C++ library support
10438	ld_shlibs_CXX=no
10439	;;
10440    esac
10441    ;;
10442  vxworks*)
10443    # FIXME: insert proper C++ library support
10444    ld_shlibs_CXX=no
10445    ;;
10446  *)
10447    # FIXME: insert proper C++ library support
10448    ld_shlibs_CXX=no
10449    ;;
10450esac
10451echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10452echo "${ECHO_T}$ld_shlibs_CXX" >&6
10453test "$ld_shlibs_CXX" = no && can_build_shared=no
10454
10455GCC_CXX="$GXX"
10456LD_CXX="$LD"
10457
10458
10459cat > conftest.$ac_ext <<EOF
10460class Foo
10461{
10462public:
10463  Foo (void) { a = 0; }
10464private:
10465  int a;
10466};
10467EOF
10468
10469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470  (eval $ac_compile) 2>&5
10471  ac_status=$?
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); }; then
10474  # Parse the compiler output and extract the necessary
10475  # objects, libraries and library flags.
10476
10477  # Sentinel used to keep track of whether or not we are before
10478  # the conftest object file.
10479  pre_test_object_deps_done=no
10480
10481  # The `*' in the case matches for architectures that use `case' in
10482  # $output_verbose_cmd can trigger glob expansion during the loop
10483  # eval without this substitution.
10484  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10485
10486  for p in `eval $output_verbose_link_cmd`; do
10487    case $p in
10488
10489    -L* | -R* | -l*)
10490       # Some compilers place space between "-{L,R}" and the path.
10491       # Remove the space.
10492       if test $p = "-L" \
10493	  || test $p = "-R"; then
10494	 prev=$p
10495	 continue
10496       else
10497	 prev=
10498       fi
10499
10500       if test "$pre_test_object_deps_done" = no; then
10501	 case $p in
10502	 -L* | -R*)
10503	   # Internal compiler library paths should come after those
10504	   # provided the user.  The postdeps already come after the
10505	   # user supplied libs so there is no need to process them.
10506	   if test -z "$compiler_lib_search_path_CXX"; then
10507	     compiler_lib_search_path_CXX="${prev}${p}"
10508	   else
10509	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10510	   fi
10511	   ;;
10512	 # The "-l" case would never come before the object being
10513	 # linked, so don't bother handling this case.
10514	 esac
10515       else
10516	 if test -z "$postdeps_CXX"; then
10517	   postdeps_CXX="${prev}${p}"
10518	 else
10519	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10520	 fi
10521       fi
10522       ;;
10523
10524    *.$objext)
10525       # This assumes that the test object file only shows up
10526       # once in the compiler output.
10527       if test "$p" = "conftest.$objext"; then
10528	 pre_test_object_deps_done=yes
10529	 continue
10530       fi
10531
10532       if test "$pre_test_object_deps_done" = no; then
10533	 if test -z "$predep_objects_CXX"; then
10534	   predep_objects_CXX="$p"
10535	 else
10536	   predep_objects_CXX="$predep_objects_CXX $p"
10537	 fi
10538       else
10539	 if test -z "$postdep_objects_CXX"; then
10540	   postdep_objects_CXX="$p"
10541	 else
10542	   postdep_objects_CXX="$postdep_objects_CXX $p"
10543	 fi
10544       fi
10545       ;;
10546
10547    *) ;; # Ignore the rest.
10548
10549    esac
10550  done
10551
10552  # Clean up.
10553  rm -f a.out a.exe
10554else
10555  echo "libtool.m4: error: problem compiling CXX test program"
10556fi
10557
10558$rm -f confest.$objext
10559
10560case " $postdeps_CXX " in
10561*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10562esac
10563
10564lt_prog_compiler_wl_CXX=
10565lt_prog_compiler_pic_CXX=
10566lt_prog_compiler_static_CXX=
10567
10568echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10569echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10570
10571  # C++ specific cases for pic, static, wl, etc.
10572  if test "$GXX" = yes; then
10573    lt_prog_compiler_wl_CXX='-Wl,'
10574    lt_prog_compiler_static_CXX='-static'
10575
10576    case $host_os in
10577    aix*)
10578      # All AIX code is PIC.
10579      if test "$host_cpu" = ia64; then
10580	# AIX 5 now supports IA64 processor
10581	lt_prog_compiler_static_CXX='-Bstatic'
10582      fi
10583      ;;
10584    amigaos*)
10585      # FIXME: we need at least 68020 code to build shared libraries, but
10586      # adding the `-m68020' flag to GCC prevents building anything better,
10587      # like `-m68040'.
10588      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10589      ;;
10590    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10591      # PIC is the default for these OSes.
10592      ;;
10593    mingw* | os2* | pw32*)
10594      # This hack is so that the source file can tell whether it is being
10595      # built for inclusion in a dll (and should export symbols for example).
10596      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10597      ;;
10598    darwin* | rhapsody*)
10599      # PIC is the default on this platform
10600      # Common symbols not allowed in MH_DYLIB files
10601      lt_prog_compiler_pic_CXX='-fno-common'
10602      ;;
10603    *djgpp*)
10604      # DJGPP does not support shared libraries at all
10605      lt_prog_compiler_pic_CXX=
10606      ;;
10607    sysv4*MP*)
10608      if test -d /usr/nec; then
10609	lt_prog_compiler_pic_CXX=-Kconform_pic
10610      fi
10611      ;;
10612    hpux*)
10613      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10614      # not for PA HP-UX.
10615      case "$host_cpu" in
10616      hppa*64*|ia64*)
10617	;;
10618      *)
10619	lt_prog_compiler_pic_CXX='-fPIC'
10620	;;
10621      esac
10622      ;;
10623    *)
10624      lt_prog_compiler_pic_CXX='-fPIC'
10625      ;;
10626    esac
10627  else
10628    case $host_os in
10629      aix4* | aix5*)
10630	# All AIX code is PIC.
10631	if test "$host_cpu" = ia64; then
10632	  # AIX 5 now supports IA64 processor
10633	  lt_prog_compiler_static_CXX='-Bstatic'
10634	else
10635	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10636	fi
10637	;;
10638      chorus*)
10639	case $cc_basename in
10640	cxch68)
10641	  # Green Hills C++ Compiler
10642	  # _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"
10643	  ;;
10644	esac
10645	;;
10646      dgux*)
10647	case $cc_basename in
10648	  ec++)
10649	    lt_prog_compiler_pic_CXX='-KPIC'
10650	    ;;
10651	  ghcx)
10652	    # Green Hills C++ Compiler
10653	    lt_prog_compiler_pic_CXX='-pic'
10654	    ;;
10655	  *)
10656	    ;;
10657	esac
10658	;;
10659      freebsd*)
10660	# FreeBSD uses GNU C++
10661	;;
10662      hpux9* | hpux10* | hpux11*)
10663	case $cc_basename in
10664	  CC)
10665	    lt_prog_compiler_wl_CXX='-Wl,'
10666	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10667	    if test "$host_cpu" != ia64; then
10668	      lt_prog_compiler_pic_CXX='+Z'
10669	    fi
10670	    ;;
10671	  aCC)
10672	    lt_prog_compiler_wl_CXX='-Wl,'
10673	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10674	    case "$host_cpu" in
10675	    hppa*64*|ia64*)
10676	      # +Z the default
10677	      ;;
10678	    *)
10679	      lt_prog_compiler_pic_CXX='+Z'
10680	      ;;
10681	    esac
10682	    ;;
10683	  *)
10684	    ;;
10685	esac
10686	;;
10687      irix5* | irix6* | nonstopux*)
10688	case $cc_basename in
10689	  CC)
10690	    lt_prog_compiler_wl_CXX='-Wl,'
10691	    lt_prog_compiler_static_CXX='-non_shared'
10692	    # CC pic flag -KPIC is the default.
10693	    ;;
10694	  *)
10695	    ;;
10696	esac
10697	;;
10698      linux*)
10699	case $cc_basename in
10700	  KCC)
10701	    # KAI C++ Compiler
10702	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10703	    lt_prog_compiler_pic_CXX='-fPIC'
10704	    ;;
10705	  icpc)
10706	    # Intel C++
10707	    lt_prog_compiler_wl_CXX='-Wl,'
10708	    lt_prog_compiler_pic_CXX='-KPIC'
10709	    lt_prog_compiler_static_CXX='-static'
10710	    ;;
10711	  cxx)
10712	    # Compaq C++
10713	    # Make sure the PIC flag is empty.  It appears that all Alpha
10714	    # Linux and Compaq Tru64 Unix objects are PIC.
10715	    lt_prog_compiler_pic_CXX=
10716	    lt_prog_compiler_static_CXX='-non_shared'
10717	    ;;
10718	  *)
10719	    ;;
10720	esac
10721	;;
10722      lynxos*)
10723	;;
10724      m88k*)
10725	;;
10726      mvs*)
10727	case $cc_basename in
10728	  cxx)
10729	    lt_prog_compiler_pic_CXX='-W c,exportall'
10730	    ;;
10731	  *)
10732	    ;;
10733	esac
10734	;;
10735      netbsd*)
10736	;;
10737      osf3* | osf4* | osf5*)
10738	case $cc_basename in
10739	  KCC)
10740	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10741	    ;;
10742	  RCC)
10743	    # Rational C++ 2.4.1
10744	    lt_prog_compiler_pic_CXX='-pic'
10745	    ;;
10746	  cxx)
10747	    # Digital/Compaq C++
10748	    lt_prog_compiler_wl_CXX='-Wl,'
10749	    # Make sure the PIC flag is empty.  It appears that all Alpha
10750	    # Linux and Compaq Tru64 Unix objects are PIC.
10751	    lt_prog_compiler_pic_CXX=
10752	    lt_prog_compiler_static_CXX='-non_shared'
10753	    ;;
10754	  *)
10755	    ;;
10756	esac
10757	;;
10758      psos*)
10759	;;
10760      sco*)
10761	case $cc_basename in
10762	  CC)
10763	    lt_prog_compiler_pic_CXX='-fPIC'
10764	    ;;
10765	  *)
10766	    ;;
10767	esac
10768	;;
10769      solaris*)
10770	case $cc_basename in
10771	  CC)
10772	    # Sun C++ 4.2, 5.x and Centerline C++
10773	    lt_prog_compiler_pic_CXX='-KPIC'
10774	    lt_prog_compiler_static_CXX='-Bstatic'
10775	    lt_prog_compiler_wl_CXX='-Qoption ld '
10776	    ;;
10777	  gcx)
10778	    # Green Hills C++ Compiler
10779	    lt_prog_compiler_pic_CXX='-PIC'
10780	    ;;
10781	  *)
10782	    ;;
10783	esac
10784	;;
10785      sunos4*)
10786	case $cc_basename in
10787	  CC)
10788	    # Sun C++ 4.x
10789	    lt_prog_compiler_pic_CXX='-pic'
10790	    lt_prog_compiler_static_CXX='-Bstatic'
10791	    ;;
10792	  lcc)
10793	    # Lucid
10794	    lt_prog_compiler_pic_CXX='-pic'
10795	    ;;
10796	  *)
10797	    ;;
10798	esac
10799	;;
10800      tandem*)
10801	case $cc_basename in
10802	  NCC)
10803	    # NonStop-UX NCC 3.20
10804	    lt_prog_compiler_pic_CXX='-KPIC'
10805	    ;;
10806	  *)
10807	    ;;
10808	esac
10809	;;
10810      unixware*)
10811	;;
10812      vxworks*)
10813	;;
10814      *)
10815	lt_prog_compiler_can_build_shared_CXX=no
10816	;;
10817    esac
10818  fi
10819
10820echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10821echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10822
10823#
10824# Check to make sure the PIC flag actually works.
10825#
10826if test -n "$lt_prog_compiler_pic_CXX"; then
10827  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10828echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10829if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10830  echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832  lt_prog_compiler_pic_works_CXX=no
10833  ac_outfile=conftest.$ac_objext
10834   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10835   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10836   # Insert the option either (1) after the last *FLAGS variable, or
10837   # (2) before a word containing "conftest.", or (3) at the end.
10838   # Note that $ac_compile itself does not contain backslashes and begins
10839   # with a dollar sign (not a hyphen), so the echo should work correctly.
10840   # The option is referenced via a variable to avoid confusing sed.
10841   lt_compile=`echo "$ac_compile" | $SED \
10842   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10844   -e 's:$: $lt_compiler_flag:'`
10845   (eval echo "\"\$as_me:10845: $lt_compile\"" >&5)
10846   (eval "$lt_compile" 2>conftest.err)
10847   ac_status=$?
10848   cat conftest.err >&5
10849   echo "$as_me:10849: \$? = $ac_status" >&5
10850   if (exit $ac_status) && test -s "$ac_outfile"; then
10851     # The compiler can only warn and ignore the option if not recognized
10852     # So say no if there are warnings
10853     if test ! -s conftest.err; then
10854       lt_prog_compiler_pic_works_CXX=yes
10855     fi
10856   fi
10857   $rm conftest*
10858
10859fi
10860echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10861echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10862
10863if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10864    case $lt_prog_compiler_pic_CXX in
10865     "" | " "*) ;;
10866     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10867     esac
10868else
10869    lt_prog_compiler_pic_CXX=
10870     lt_prog_compiler_can_build_shared_CXX=no
10871fi
10872
10873fi
10874case "$host_os" in
10875  # For platforms which do not support PIC, -DPIC is meaningless:
10876  *djgpp*)
10877    lt_prog_compiler_pic_CXX=
10878    ;;
10879  *)
10880    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10881    ;;
10882esac
10883
10884echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10885echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10886if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10887  echo $ECHO_N "(cached) $ECHO_C" >&6
10888else
10889  lt_cv_prog_compiler_c_o_CXX=no
10890   $rm -r conftest 2>/dev/null
10891   mkdir conftest
10892   cd conftest
10893   mkdir out
10894   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10895
10896   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10897   # that will create temporary files in the current directory regardless of
10898   # the output directory.  Thus, making CWD read-only will cause this test
10899   # to fail, enabling locking or at least warning the user not to do parallel
10900   # builds.
10901   chmod -w .
10902
10903   lt_compiler_flag="-o out/conftest2.$ac_objext"
10904   # Insert the option either (1) after the last *FLAGS variable, or
10905   # (2) before a word containing "conftest.", or (3) at the end.
10906   # Note that $ac_compile itself does not contain backslashes and begins
10907   # with a dollar sign (not a hyphen), so the echo should work correctly.
10908   lt_compile=`echo "$ac_compile" | $SED \
10909   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10911   -e 's:$: $lt_compiler_flag:'`
10912   (eval echo "\"\$as_me:10912: $lt_compile\"" >&5)
10913   (eval "$lt_compile" 2>out/conftest.err)
10914   ac_status=$?
10915   cat out/conftest.err >&5
10916   echo "$as_me:10916: \$? = $ac_status" >&5
10917   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10918   then
10919     # The compiler can only warn and ignore the option if not recognized
10920     # So say no if there are warnings
10921     if test ! -s out/conftest.err; then
10922       lt_cv_prog_compiler_c_o_CXX=yes
10923     fi
10924   fi
10925   chmod u+w .
10926   $rm conftest* out/*
10927   rmdir out
10928   cd ..
10929   rmdir conftest
10930   $rm conftest*
10931
10932fi
10933echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10934echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10935
10936
10937hard_links="nottested"
10938if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10939  # do not overwrite the value of need_locks provided by the user
10940  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10941echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10942  hard_links=yes
10943  $rm conftest*
10944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10945  touch conftest.a
10946  ln conftest.a conftest.b 2>&5 || hard_links=no
10947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10948  echo "$as_me:$LINENO: result: $hard_links" >&5
10949echo "${ECHO_T}$hard_links" >&6
10950  if test "$hard_links" = no; then
10951    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10952echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10953    need_locks=warn
10954  fi
10955else
10956  need_locks=no
10957fi
10958
10959echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10960echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10961
10962  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10963  case $host_os in
10964  aix4* | aix5*)
10965    # If we're using GNU nm, then we don't want the "-C" option.
10966    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10967    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10968      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'
10969    else
10970      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'
10971    fi
10972    ;;
10973  pw32*)
10974    export_symbols_cmds_CXX="$ltdll_cmds"
10975  ;;
10976  cygwin* | mingw*)
10977    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10978  ;;
10979  *)
10980    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10981  ;;
10982  esac
10983
10984echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10985echo "${ECHO_T}$ld_shlibs_CXX" >&6
10986test "$ld_shlibs_CXX" = no && can_build_shared=no
10987
10988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10989if test "$GCC" = yes; then
10990  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10991fi
10992
10993#
10994# Do we need to explicitly link libc?
10995#
10996case "x$archive_cmds_need_lc_CXX" in
10997x|xyes)
10998  # Assume -lc should be added
10999  archive_cmds_need_lc_CXX=yes
11000
11001  if test "$enable_shared" = yes && test "$GCC" = yes; then
11002    case $archive_cmds_CXX in
11003    *'~'*)
11004      # FIXME: we may have to deal with multi-command sequences.
11005      ;;
11006    '$CC '*)
11007      # Test whether the compiler implicitly links with -lc since on some
11008      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11009      # to ld, don't add -lc before -lgcc.
11010      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11011echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11012      $rm conftest*
11013      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11014
11015      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016  (eval $ac_compile) 2>&5
11017  ac_status=$?
11018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019  (exit $ac_status); } 2>conftest.err; then
11020        soname=conftest
11021        lib=conftest
11022        libobjs=conftest.$ac_objext
11023        deplibs=
11024        wl=$lt_prog_compiler_wl_CXX
11025        compiler_flags=-v
11026        linker_flags=-v
11027        verstring=
11028        output_objdir=.
11029        libname=conftest
11030        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11031        allow_undefined_flag_CXX=
11032        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11033  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11034  ac_status=$?
11035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036  (exit $ac_status); }
11037        then
11038	  archive_cmds_need_lc_CXX=no
11039        else
11040	  archive_cmds_need_lc_CXX=yes
11041        fi
11042        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11043      else
11044        cat conftest.err 1>&5
11045      fi
11046      $rm conftest*
11047      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11048echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11049      ;;
11050    esac
11051  fi
11052  ;;
11053esac
11054
11055echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11056echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11057hardcode_action_CXX=
11058if test -n "$hardcode_libdir_flag_spec_CXX" || \
11059   test -n "$runpath_var CXX" || \
11060   test "X$hardcode_automatic_CXX"="Xyes" ; then
11061
11062  # We can hardcode non-existant directories.
11063  if test "$hardcode_direct_CXX" != no &&
11064     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11065     # have to relink, otherwise we might link with an installed library
11066     # when we should be linking with a yet-to-be-installed one
11067     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11068     test "$hardcode_minus_L_CXX" != no; then
11069    # Linking always hardcodes the temporary library directory.
11070    hardcode_action_CXX=relink
11071  else
11072    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11073    hardcode_action_CXX=immediate
11074  fi
11075else
11076  # We cannot hardcode anything, or else we can only hardcode existing
11077  # directories.
11078  hardcode_action_CXX=unsupported
11079fi
11080echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11081echo "${ECHO_T}$hardcode_action_CXX" >&6
11082
11083if test "$hardcode_action_CXX" = relink; then
11084  # Fast installation is not supported
11085  enable_fast_install=no
11086elif test "$shlibpath_overrides_runpath" = yes ||
11087     test "$enable_shared" = no; then
11088  # Fast installation is not necessary
11089  enable_fast_install=needless
11090fi
11091
11092striplib=
11093old_striplib=
11094echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11095echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11096if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11097  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11098  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11099  echo "$as_me:$LINENO: result: yes" >&5
11100echo "${ECHO_T}yes" >&6
11101else
11102# FIXME - insert some real tests, host_os isn't really good enough
11103  case $host_os in
11104   darwin*)
11105       if test -n "$STRIP" ; then
11106         striplib="$STRIP -x"
11107         echo "$as_me:$LINENO: result: yes" >&5
11108echo "${ECHO_T}yes" >&6
11109       else
11110  echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
11112fi
11113       ;;
11114   *)
11115  echo "$as_me:$LINENO: result: no" >&5
11116echo "${ECHO_T}no" >&6
11117    ;;
11118  esac
11119fi
11120
11121echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11122echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11123library_names_spec=
11124libname_spec='lib$name'
11125soname_spec=
11126shrext=".so"
11127postinstall_cmds=
11128postuninstall_cmds=
11129finish_cmds=
11130finish_eval=
11131shlibpath_var=
11132shlibpath_overrides_runpath=unknown
11133version_type=none
11134dynamic_linker="$host_os ld.so"
11135sys_lib_dlsearch_path_spec="/lib /usr/lib"
11136if test "$GCC" = yes; then
11137  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11138  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11139    # if the path contains ";" then we assume it to be the separator
11140    # otherwise default to the standard path separator (i.e. ":") - it is
11141    # assumed that no part of a normal pathname contains ";" but that should
11142    # okay in the real world where ";" in dirpaths is itself problematic.
11143    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11144  else
11145    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11146  fi
11147else
11148  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11149fi
11150need_lib_prefix=unknown
11151hardcode_into_libs=no
11152
11153# when you set need_version to no, make sure it does not cause -set_version
11154# flags to be left without arguments
11155need_version=unknown
11156
11157case $host_os in
11158aix3*)
11159  version_type=linux
11160  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11161  shlibpath_var=LIBPATH
11162
11163  # AIX 3 has no versioning support, so we append a major version to the name.
11164  soname_spec='${libname}${release}${shared_ext}$major'
11165  ;;
11166
11167aix4* | aix5*)
11168  version_type=linux
11169  need_lib_prefix=no
11170  need_version=no
11171  hardcode_into_libs=yes
11172  if test "$host_cpu" = ia64; then
11173    # AIX 5 supports IA64
11174    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11175    shlibpath_var=LD_LIBRARY_PATH
11176  else
11177    # With GCC up to 2.95.x, collect2 would create an import file
11178    # for dependence libraries.  The import file would start with
11179    # the line `#! .'.  This would cause the generated library to
11180    # depend on `.', always an invalid library.  This was fixed in
11181    # development snapshots of GCC prior to 3.0.
11182    case $host_os in
11183      aix4 | aix4.[01] | aix4.[01].*)
11184      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11185	   echo ' yes '
11186	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11187	:
11188      else
11189	can_build_shared=no
11190      fi
11191      ;;
11192    esac
11193    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11194    # soname into executable. Probably we can add versioning support to
11195    # collect2, so additional links can be useful in future.
11196    if test "$aix_use_runtimelinking" = yes; then
11197      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11198      # instead of lib<name>.a to let people know that these are not
11199      # typical AIX shared libraries.
11200      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201    else
11202      # We preserve .a as extension for shared libraries through AIX4.2
11203      # and later when we are not doing run time linking.
11204      library_names_spec='${libname}${release}.a $libname.a'
11205      soname_spec='${libname}${release}${shared_ext}$major'
11206    fi
11207    shlibpath_var=LIBPATH
11208  fi
11209  ;;
11210
11211amigaos*)
11212  library_names_spec='$libname.ixlibrary $libname.a'
11213  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11214  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'
11215  ;;
11216
11217beos*)
11218  library_names_spec='${libname}${shared_ext}'
11219  dynamic_linker="$host_os ld.so"
11220  shlibpath_var=LIBRARY_PATH
11221  ;;
11222
11223bsdi4*)
11224  version_type=linux
11225  need_version=no
11226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227  soname_spec='${libname}${release}${shared_ext}$major'
11228  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11229  shlibpath_var=LD_LIBRARY_PATH
11230  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11231  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11232  # the default ld.so.conf also contains /usr/contrib/lib and
11233  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11234  # libtool to hard-code these into programs
11235  ;;
11236
11237cygwin* | mingw* | pw32*)
11238  version_type=windows
11239  shrext=".dll"
11240  need_version=no
11241  need_lib_prefix=no
11242
11243  case $GCC,$host_os in
11244  yes,cygwin* | yes,mingw* | yes,pw32*)
11245    library_names_spec='$libname.dll.a'
11246    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11247    postinstall_cmds='base_file=`basename \${file}`~
11248      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11249      dldir=$destdir/`dirname \$dlpath`~
11250      test -d \$dldir || mkdir -p \$dldir~
11251      $install_prog $dir/$dlname \$dldir/$dlname'
11252    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11253      dlpath=$dir/\$dldll~
11254       $rm \$dlpath'
11255    shlibpath_overrides_runpath=yes
11256
11257    case $host_os in
11258    cygwin*)
11259      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11260      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11261      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11262      ;;
11263    mingw*)
11264      # MinGW DLLs use traditional 'lib' prefix
11265      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11266      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11267      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11268        # It is most probably a Windows format PATH printed by
11269        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11270        # path with ; separators, and with drive letters. We can handle the
11271        # drive letters (cygwin fileutils understands them), so leave them,
11272        # especially as we might pass files found there to a mingw objdump,
11273        # which wouldn't understand a cygwinified path. Ahh.
11274        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11275      else
11276        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11277      fi
11278      ;;
11279    pw32*)
11280      # pw32 DLLs use 'pw' prefix rather than 'lib'
11281      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11282      ;;
11283    esac
11284    ;;
11285
11286  *)
11287    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11288    ;;
11289  esac
11290  dynamic_linker='Win32 ld.exe'
11291  # FIXME: first we should search . and the directory the executable is in
11292  shlibpath_var=PATH
11293  ;;
11294
11295darwin* | rhapsody*)
11296  dynamic_linker="$host_os dyld"
11297  version_type=darwin
11298  need_lib_prefix=no
11299  need_version=no
11300  # FIXME: Relying on posixy $() will cause problems for
11301  #        cross-compilation, but unfortunately the echo tests do not
11302  #        yet detect zsh echo's removal of \ escapes.
11303  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11304  soname_spec='${libname}${release}${major}$shared_ext'
11305  shlibpath_overrides_runpath=yes
11306  shlibpath_var=DYLD_LIBRARY_PATH
11307  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11308  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11309  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11310  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"`
11311  fi
11312  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11313  ;;
11314
11315dgux*)
11316  version_type=linux
11317  need_lib_prefix=no
11318  need_version=no
11319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11320  soname_spec='${libname}${release}${shared_ext}$major'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  ;;
11323
11324freebsd1*)
11325  dynamic_linker=no
11326  ;;
11327
11328freebsd*)
11329  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11330  version_type=freebsd-$objformat
11331  case $version_type in
11332    freebsd-elf*)
11333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11334      need_version=no
11335      need_lib_prefix=no
11336      ;;
11337    freebsd-*)
11338      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11339      need_version=yes
11340      ;;
11341  esac
11342  shlibpath_var=LD_LIBRARY_PATH
11343  case $host_os in
11344  freebsd2*)
11345    shlibpath_overrides_runpath=yes
11346    ;;
11347  freebsd3.01* | freebsdelf3.01*)
11348    shlibpath_overrides_runpath=yes
11349    hardcode_into_libs=yes
11350    ;;
11351  *) # from 3.2 on
11352    shlibpath_overrides_runpath=no
11353    hardcode_into_libs=yes
11354    ;;
11355  esac
11356  ;;
11357
11358gnu*)
11359  version_type=linux
11360  need_lib_prefix=no
11361  need_version=no
11362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11363  soname_spec='${libname}${release}${shared_ext}$major'
11364  shlibpath_var=LD_LIBRARY_PATH
11365  hardcode_into_libs=yes
11366  ;;
11367
11368hpux9* | hpux10* | hpux11*)
11369  # Give a soname corresponding to the major version so that dld.sl refuses to
11370  # link against other versions.
11371  version_type=sunos
11372  need_lib_prefix=no
11373  need_version=no
11374  case "$host_cpu" in
11375  ia64*)
11376    shrext='.so'
11377    hardcode_into_libs=yes
11378    dynamic_linker="$host_os dld.so"
11379    shlibpath_var=LD_LIBRARY_PATH
11380    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382    soname_spec='${libname}${release}${shared_ext}$major'
11383    if test "X$HPUX_IA64_MODE" = X32; then
11384      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11385    else
11386      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11387    fi
11388    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389    ;;
11390   hppa*64*)
11391     shrext='.sl'
11392     hardcode_into_libs=yes
11393     dynamic_linker="$host_os dld.sl"
11394     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397     soname_spec='${libname}${release}${shared_ext}$major'
11398     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11399     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11400     ;;
11401   *)
11402    shrext='.sl'
11403    dynamic_linker="$host_os dld.sl"
11404    shlibpath_var=SHLIB_PATH
11405    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407    soname_spec='${libname}${release}${shared_ext}$major'
11408    ;;
11409  esac
11410  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11411  postinstall_cmds='chmod 555 $lib'
11412  ;;
11413
11414irix5* | irix6* | nonstopux*)
11415  case $host_os in
11416    nonstopux*) version_type=nonstopux ;;
11417    *)
11418	if test "$lt_cv_prog_gnu_ld" = yes; then
11419		version_type=linux
11420	else
11421		version_type=irix
11422	fi ;;
11423  esac
11424  need_lib_prefix=no
11425  need_version=no
11426  soname_spec='${libname}${release}${shared_ext}$major'
11427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11428  case $host_os in
11429  irix5* | nonstopux*)
11430    libsuff= shlibsuff=
11431    ;;
11432  *)
11433    case $LD in # libtool.m4 will add one of these switches to LD
11434    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11435      libsuff= shlibsuff= libmagic=32-bit;;
11436    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11437      libsuff=32 shlibsuff=N32 libmagic=N32;;
11438    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11439      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11440    *) libsuff= shlibsuff= libmagic=never-match;;
11441    esac
11442    ;;
11443  esac
11444  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11445  shlibpath_overrides_runpath=no
11446  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11447  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11448  hardcode_into_libs=yes
11449  ;;
11450
11451# No shared lib support for Linux oldld, aout, or coff.
11452linux*oldld* | linux*aout* | linux*coff*)
11453  dynamic_linker=no
11454  ;;
11455
11456# This must be Linux ELF.
11457linux*)
11458  version_type=linux
11459  need_lib_prefix=no
11460  need_version=no
11461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462  soname_spec='${libname}${release}${shared_ext}$major'
11463  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  shlibpath_overrides_runpath=no
11466  # This implies no fast_install, which is unacceptable.
11467  # Some rework will be needed to allow for fast_install
11468  # before this can be enabled.
11469  hardcode_into_libs=yes
11470
11471  # We used to test for /lib/ld.so.1 and disable shared libraries on
11472  # powerpc, because MkLinux only supported shared libraries with the
11473  # GNU dynamic linker.  Since this was broken with cross compilers,
11474  # most powerpc-linux boxes support dynamic linking these days and
11475  # people can always --disable-shared, the test was removed, and we
11476  # assume the GNU/Linux dynamic linker is in use.
11477  dynamic_linker='GNU/Linux ld.so'
11478  ;;
11479
11480netbsd*)
11481  version_type=sunos
11482  need_lib_prefix=no
11483  need_version=no
11484  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11486    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11487    dynamic_linker='NetBSD (a.out) ld.so'
11488  else
11489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11490    soname_spec='${libname}${release}${shared_ext}$major'
11491    dynamic_linker='NetBSD ld.elf_so'
11492  fi
11493  shlibpath_var=LD_LIBRARY_PATH
11494  shlibpath_overrides_runpath=yes
11495  hardcode_into_libs=yes
11496  ;;
11497
11498newsos6)
11499  version_type=linux
11500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501  shlibpath_var=LD_LIBRARY_PATH
11502  shlibpath_overrides_runpath=yes
11503  ;;
11504
11505nto-qnx)
11506  version_type=linux
11507  need_lib_prefix=no
11508  need_version=no
11509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510  soname_spec='${libname}${release}${shared_ext}$major'
11511  shlibpath_var=LD_LIBRARY_PATH
11512  shlibpath_overrides_runpath=yes
11513  ;;
11514
11515openbsd*)
11516  version_type=sunos
11517  need_lib_prefix=no
11518  need_version=no
11519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521  shlibpath_var=LD_LIBRARY_PATH
11522  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11523    case $host_os in
11524      openbsd2.[89] | openbsd2.[89].*)
11525	shlibpath_overrides_runpath=no
11526	;;
11527      *)
11528	shlibpath_overrides_runpath=yes
11529	;;
11530      esac
11531  else
11532    shlibpath_overrides_runpath=yes
11533  fi
11534  ;;
11535
11536os2*)
11537  libname_spec='$name'
11538  shrext=".dll"
11539  need_lib_prefix=no
11540  library_names_spec='$libname${shared_ext} $libname.a'
11541  dynamic_linker='OS/2 ld.exe'
11542  shlibpath_var=LIBPATH
11543  ;;
11544
11545osf3* | osf4* | osf5*)
11546  version_type=osf
11547  need_lib_prefix=no
11548  need_version=no
11549  soname_spec='${libname}${release}${shared_ext}$major'
11550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11553  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11554  ;;
11555
11556sco3.2v5*)
11557  version_type=osf
11558  soname_spec='${libname}${release}${shared_ext}$major'
11559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  ;;
11562
11563solaris*)
11564  version_type=linux
11565  need_lib_prefix=no
11566  need_version=no
11567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568  soname_spec='${libname}${release}${shared_ext}$major'
11569  shlibpath_var=LD_LIBRARY_PATH
11570  shlibpath_overrides_runpath=yes
11571  hardcode_into_libs=yes
11572  # ldd complains unless libraries are executable
11573  postinstall_cmds='chmod +x $lib'
11574  ;;
11575
11576sunos4*)
11577  version_type=sunos
11578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11579  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  shlibpath_overrides_runpath=yes
11582  if test "$with_gnu_ld" = yes; then
11583    need_lib_prefix=no
11584  fi
11585  need_version=yes
11586  ;;
11587
11588sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11589  version_type=linux
11590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591  soname_spec='${libname}${release}${shared_ext}$major'
11592  shlibpath_var=LD_LIBRARY_PATH
11593  case $host_vendor in
11594    sni)
11595      shlibpath_overrides_runpath=no
11596      need_lib_prefix=no
11597      export_dynamic_flag_spec='${wl}-Blargedynsym'
11598      runpath_var=LD_RUN_PATH
11599      ;;
11600    siemens)
11601      need_lib_prefix=no
11602      ;;
11603    motorola)
11604      need_lib_prefix=no
11605      need_version=no
11606      shlibpath_overrides_runpath=no
11607      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11608      ;;
11609  esac
11610  ;;
11611
11612sysv4*MP*)
11613  if test -d /usr/nec ;then
11614    version_type=linux
11615    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11616    soname_spec='$libname${shared_ext}.$major'
11617    shlibpath_var=LD_LIBRARY_PATH
11618  fi
11619  ;;
11620
11621uts4*)
11622  version_type=linux
11623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624  soname_spec='${libname}${release}${shared_ext}$major'
11625  shlibpath_var=LD_LIBRARY_PATH
11626  ;;
11627
11628*)
11629  dynamic_linker=no
11630  ;;
11631esac
11632echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11633echo "${ECHO_T}$dynamic_linker" >&6
11634test "$dynamic_linker" = no && can_build_shared=no
11635
11636if test "x$enable_dlopen" != xyes; then
11637  enable_dlopen=unknown
11638  enable_dlopen_self=unknown
11639  enable_dlopen_self_static=unknown
11640else
11641  lt_cv_dlopen=no
11642  lt_cv_dlopen_libs=
11643
11644  case $host_os in
11645  beos*)
11646    lt_cv_dlopen="load_add_on"
11647    lt_cv_dlopen_libs=
11648    lt_cv_dlopen_self=yes
11649    ;;
11650
11651  mingw* | pw32*)
11652    lt_cv_dlopen="LoadLibrary"
11653    lt_cv_dlopen_libs=
11654   ;;
11655
11656  cygwin*)
11657    lt_cv_dlopen="dlopen"
11658    lt_cv_dlopen_libs=
11659   ;;
11660
11661  darwin*)
11662  # if libdl is installed we need to link against it
11663    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11666  echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
11668  ac_check_lib_save_LIBS=$LIBS
11669LIBS="-ldl  $LIBS"
11670cat >conftest.$ac_ext <<_ACEOF
11671#line $LINENO "configure"
11672/* confdefs.h.  */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h.  */
11677
11678/* Override any gcc2 internal prototype to avoid an error.  */
11679#ifdef __cplusplus
11680extern "C"
11681#endif
11682/* We use char because int might match the return type of a gcc2
11683   builtin and then its argument prototype would still apply.  */
11684char dlopen ();
11685int
11686main ()
11687{
11688dlopen ();
11689  ;
11690  return 0;
11691}
11692_ACEOF
11693rm -f conftest.$ac_objext conftest$ac_exeext
11694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11695  (eval $ac_link) 2>&5
11696  ac_status=$?
11697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698  (exit $ac_status); } &&
11699         { ac_try='test -s conftest$ac_exeext'
11700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701  (eval $ac_try) 2>&5
11702  ac_status=$?
11703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704  (exit $ac_status); }; }; then
11705  ac_cv_lib_dl_dlopen=yes
11706else
11707  echo "$as_me: failed program was:" >&5
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
11710ac_cv_lib_dl_dlopen=no
11711fi
11712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11713LIBS=$ac_check_lib_save_LIBS
11714fi
11715echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11716echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11717if test $ac_cv_lib_dl_dlopen = yes; then
11718  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11719else
11720
11721    lt_cv_dlopen="dyld"
11722    lt_cv_dlopen_libs=
11723    lt_cv_dlopen_self=yes
11724
11725fi
11726
11727   ;;
11728
11729  *)
11730    echo "$as_me:$LINENO: checking for shl_load" >&5
11731echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11732if test "${ac_cv_func_shl_load+set}" = set; then
11733  echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735  cat >conftest.$ac_ext <<_ACEOF
11736#line $LINENO "configure"
11737/* confdefs.h.  */
11738_ACEOF
11739cat confdefs.h >>conftest.$ac_ext
11740cat >>conftest.$ac_ext <<_ACEOF
11741/* end confdefs.h.  */
11742/* System header to define __stub macros and hopefully few prototypes,
11743    which can conflict with char shl_load (); below.
11744    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745    <limits.h> exists even on freestanding compilers.  */
11746#ifdef __STDC__
11747# include <limits.h>
11748#else
11749# include <assert.h>
11750#endif
11751/* Override any gcc2 internal prototype to avoid an error.  */
11752#ifdef __cplusplus
11753extern "C"
11754{
11755#endif
11756/* We use char because int might match the return type of a gcc2
11757   builtin and then its argument prototype would still apply.  */
11758char shl_load ();
11759/* The GNU C library defines this for functions which it implements
11760    to always fail with ENOSYS.  Some functions are actually named
11761    something starting with __ and the normal name is an alias.  */
11762#if defined (__stub_shl_load) || defined (__stub___shl_load)
11763choke me
11764#else
11765char (*f) () = shl_load;
11766#endif
11767#ifdef __cplusplus
11768}
11769#endif
11770
11771int
11772main ()
11773{
11774return f != shl_load;
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781  (eval $ac_link) 2>&5
11782  ac_status=$?
11783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784  (exit $ac_status); } &&
11785         { ac_try='test -s conftest$ac_exeext'
11786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787  (eval $ac_try) 2>&5
11788  ac_status=$?
11789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790  (exit $ac_status); }; }; then
11791  ac_cv_func_shl_load=yes
11792else
11793  echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796ac_cv_func_shl_load=no
11797fi
11798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799fi
11800echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11801echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11802if test $ac_cv_func_shl_load = yes; then
11803  lt_cv_dlopen="shl_load"
11804else
11805  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11806echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11807if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11808  echo $ECHO_N "(cached) $ECHO_C" >&6
11809else
11810  ac_check_lib_save_LIBS=$LIBS
11811LIBS="-ldld  $LIBS"
11812cat >conftest.$ac_ext <<_ACEOF
11813#line $LINENO "configure"
11814/* confdefs.h.  */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h.  */
11819
11820/* Override any gcc2 internal prototype to avoid an error.  */
11821#ifdef __cplusplus
11822extern "C"
11823#endif
11824/* We use char because int might match the return type of a gcc2
11825   builtin and then its argument prototype would still apply.  */
11826char shl_load ();
11827int
11828main ()
11829{
11830shl_load ();
11831  ;
11832  return 0;
11833}
11834_ACEOF
11835rm -f conftest.$ac_objext conftest$ac_exeext
11836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837  (eval $ac_link) 2>&5
11838  ac_status=$?
11839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); } &&
11841         { ac_try='test -s conftest$ac_exeext'
11842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843  (eval $ac_try) 2>&5
11844  ac_status=$?
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); }; }; then
11847  ac_cv_lib_dld_shl_load=yes
11848else
11849  echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852ac_cv_lib_dld_shl_load=no
11853fi
11854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11858echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11859if test $ac_cv_lib_dld_shl_load = yes; then
11860  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11861else
11862  echo "$as_me:$LINENO: checking for dlopen" >&5
11863echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11864if test "${ac_cv_func_dlopen+set}" = set; then
11865  echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867  cat >conftest.$ac_ext <<_ACEOF
11868#line $LINENO "configure"
11869/* confdefs.h.  */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h.  */
11874/* System header to define __stub macros and hopefully few prototypes,
11875    which can conflict with char dlopen (); below.
11876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877    <limits.h> exists even on freestanding compilers.  */
11878#ifdef __STDC__
11879# include <limits.h>
11880#else
11881# include <assert.h>
11882#endif
11883/* Override any gcc2 internal prototype to avoid an error.  */
11884#ifdef __cplusplus
11885extern "C"
11886{
11887#endif
11888/* We use char because int might match the return type of a gcc2
11889   builtin and then its argument prototype would still apply.  */
11890char dlopen ();
11891/* The GNU C library defines this for functions which it implements
11892    to always fail with ENOSYS.  Some functions are actually named
11893    something starting with __ and the normal name is an alias.  */
11894#if defined (__stub_dlopen) || defined (__stub___dlopen)
11895choke me
11896#else
11897char (*f) () = dlopen;
11898#endif
11899#ifdef __cplusplus
11900}
11901#endif
11902
11903int
11904main ()
11905{
11906return f != dlopen;
11907  ;
11908  return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913  (eval $ac_link) 2>&5
11914  ac_status=$?
11915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916  (exit $ac_status); } &&
11917         { ac_try='test -s conftest$ac_exeext'
11918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919  (eval $ac_try) 2>&5
11920  ac_status=$?
11921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922  (exit $ac_status); }; }; then
11923  ac_cv_func_dlopen=yes
11924else
11925  echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928ac_cv_func_dlopen=no
11929fi
11930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931fi
11932echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11933echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11934if test $ac_cv_func_dlopen = yes; then
11935  lt_cv_dlopen="dlopen"
11936else
11937  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11938echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11939if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11940  echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942  ac_check_lib_save_LIBS=$LIBS
11943LIBS="-ldl  $LIBS"
11944cat >conftest.$ac_ext <<_ACEOF
11945#line $LINENO "configure"
11946/* confdefs.h.  */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h.  */
11951
11952/* Override any gcc2 internal prototype to avoid an error.  */
11953#ifdef __cplusplus
11954extern "C"
11955#endif
11956/* We use char because int might match the return type of a gcc2
11957   builtin and then its argument prototype would still apply.  */
11958char dlopen ();
11959int
11960main ()
11961{
11962dlopen ();
11963  ;
11964  return 0;
11965}
11966_ACEOF
11967rm -f conftest.$ac_objext conftest$ac_exeext
11968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969  (eval $ac_link) 2>&5
11970  ac_status=$?
11971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972  (exit $ac_status); } &&
11973         { ac_try='test -s conftest$ac_exeext'
11974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975  (eval $ac_try) 2>&5
11976  ac_status=$?
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); }; }; then
11979  ac_cv_lib_dl_dlopen=yes
11980else
11981  echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984ac_cv_lib_dl_dlopen=no
11985fi
11986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11990echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11991if test $ac_cv_lib_dl_dlopen = yes; then
11992  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11993else
11994  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11995echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11996if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11997  echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999  ac_check_lib_save_LIBS=$LIBS
12000LIBS="-lsvld  $LIBS"
12001cat >conftest.$ac_ext <<_ACEOF
12002#line $LINENO "configure"
12003/* confdefs.h.  */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h.  */
12008
12009/* Override any gcc2 internal prototype to avoid an error.  */
12010#ifdef __cplusplus
12011extern "C"
12012#endif
12013/* We use char because int might match the return type of a gcc2
12014   builtin and then its argument prototype would still apply.  */
12015char dlopen ();
12016int
12017main ()
12018{
12019dlopen ();
12020  ;
12021  return 0;
12022}
12023_ACEOF
12024rm -f conftest.$ac_objext conftest$ac_exeext
12025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026  (eval $ac_link) 2>&5
12027  ac_status=$?
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); } &&
12030         { ac_try='test -s conftest$ac_exeext'
12031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032  (eval $ac_try) 2>&5
12033  ac_status=$?
12034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); }; }; then
12036  ac_cv_lib_svld_dlopen=yes
12037else
12038  echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041ac_cv_lib_svld_dlopen=no
12042fi
12043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044LIBS=$ac_check_lib_save_LIBS
12045fi
12046echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12047echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12048if test $ac_cv_lib_svld_dlopen = yes; then
12049  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12050else
12051  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12052echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12053if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12054  echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056  ac_check_lib_save_LIBS=$LIBS
12057LIBS="-ldld  $LIBS"
12058cat >conftest.$ac_ext <<_ACEOF
12059#line $LINENO "configure"
12060/* confdefs.h.  */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h.  */
12065
12066/* Override any gcc2 internal prototype to avoid an error.  */
12067#ifdef __cplusplus
12068extern "C"
12069#endif
12070/* We use char because int might match the return type of a gcc2
12071   builtin and then its argument prototype would still apply.  */
12072char dld_link ();
12073int
12074main ()
12075{
12076dld_link ();
12077  ;
12078  return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest$ac_exeext
12082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083  (eval $ac_link) 2>&5
12084  ac_status=$?
12085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086  (exit $ac_status); } &&
12087         { ac_try='test -s conftest$ac_exeext'
12088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089  (eval $ac_try) 2>&5
12090  ac_status=$?
12091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092  (exit $ac_status); }; }; then
12093  ac_cv_lib_dld_dld_link=yes
12094else
12095  echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098ac_cv_lib_dld_dld_link=no
12099fi
12100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12101LIBS=$ac_check_lib_save_LIBS
12102fi
12103echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12104echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12105if test $ac_cv_lib_dld_dld_link = yes; then
12106  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12107fi
12108
12109
12110fi
12111
12112
12113fi
12114
12115
12116fi
12117
12118
12119fi
12120
12121
12122fi
12123
12124    ;;
12125  esac
12126
12127  if test "x$lt_cv_dlopen" != xno; then
12128    enable_dlopen=yes
12129  else
12130    enable_dlopen=no
12131  fi
12132
12133  case $lt_cv_dlopen in
12134  dlopen)
12135    save_CPPFLAGS="$CPPFLAGS"
12136    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12137
12138    save_LDFLAGS="$LDFLAGS"
12139    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12140
12141    save_LIBS="$LIBS"
12142    LIBS="$lt_cv_dlopen_libs $LIBS"
12143
12144    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12145echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12146if test "${lt_cv_dlopen_self+set}" = set; then
12147  echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149  	  if test "$cross_compiling" = yes; then :
12150  lt_cv_dlopen_self=cross
12151else
12152  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12153  lt_status=$lt_dlunknown
12154  cat > conftest.$ac_ext <<EOF
12155#line 12155 "configure"
12156#include "confdefs.h"
12157
12158#if HAVE_DLFCN_H
12159#include <dlfcn.h>
12160#endif
12161
12162#include <stdio.h>
12163
12164#ifdef RTLD_GLOBAL
12165#  define LT_DLGLOBAL		RTLD_GLOBAL
12166#else
12167#  ifdef DL_GLOBAL
12168#    define LT_DLGLOBAL		DL_GLOBAL
12169#  else
12170#    define LT_DLGLOBAL		0
12171#  endif
12172#endif
12173
12174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12175   find out it does not work in some platform. */
12176#ifndef LT_DLLAZY_OR_NOW
12177#  ifdef RTLD_LAZY
12178#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12179#  else
12180#    ifdef DL_LAZY
12181#      define LT_DLLAZY_OR_NOW		DL_LAZY
12182#    else
12183#      ifdef RTLD_NOW
12184#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12185#      else
12186#        ifdef DL_NOW
12187#          define LT_DLLAZY_OR_NOW	DL_NOW
12188#        else
12189#          define LT_DLLAZY_OR_NOW	0
12190#        endif
12191#      endif
12192#    endif
12193#  endif
12194#endif
12195
12196#ifdef __cplusplus
12197extern "C" void exit (int);
12198#endif
12199
12200void fnord() { int i=42;}
12201int main ()
12202{
12203  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204  int status = $lt_dlunknown;
12205
12206  if (self)
12207    {
12208      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12209      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12210      /* dlclose (self); */
12211    }
12212
12213    exit (status);
12214}
12215EOF
12216  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12217  (eval $ac_link) 2>&5
12218  ac_status=$?
12219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12221    (./conftest; exit; ) 2>/dev/null
12222    lt_status=$?
12223    case x$lt_status in
12224      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12225      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12226      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12227    esac
12228  else :
12229    # compilation failed
12230    lt_cv_dlopen_self=no
12231  fi
12232fi
12233rm -fr conftest*
12234
12235
12236fi
12237echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12238echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12239
12240    if test "x$lt_cv_dlopen_self" = xyes; then
12241      LDFLAGS="$LDFLAGS $link_static_flag"
12242      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12243echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12244if test "${lt_cv_dlopen_self_static+set}" = set; then
12245  echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247  	  if test "$cross_compiling" = yes; then :
12248  lt_cv_dlopen_self_static=cross
12249else
12250  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12251  lt_status=$lt_dlunknown
12252  cat > conftest.$ac_ext <<EOF
12253#line 12253 "configure"
12254#include "confdefs.h"
12255
12256#if HAVE_DLFCN_H
12257#include <dlfcn.h>
12258#endif
12259
12260#include <stdio.h>
12261
12262#ifdef RTLD_GLOBAL
12263#  define LT_DLGLOBAL		RTLD_GLOBAL
12264#else
12265#  ifdef DL_GLOBAL
12266#    define LT_DLGLOBAL		DL_GLOBAL
12267#  else
12268#    define LT_DLGLOBAL		0
12269#  endif
12270#endif
12271
12272/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12273   find out it does not work in some platform. */
12274#ifndef LT_DLLAZY_OR_NOW
12275#  ifdef RTLD_LAZY
12276#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12277#  else
12278#    ifdef DL_LAZY
12279#      define LT_DLLAZY_OR_NOW		DL_LAZY
12280#    else
12281#      ifdef RTLD_NOW
12282#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12283#      else
12284#        ifdef DL_NOW
12285#          define LT_DLLAZY_OR_NOW	DL_NOW
12286#        else
12287#          define LT_DLLAZY_OR_NOW	0
12288#        endif
12289#      endif
12290#    endif
12291#  endif
12292#endif
12293
12294#ifdef __cplusplus
12295extern "C" void exit (int);
12296#endif
12297
12298void fnord() { int i=42;}
12299int main ()
12300{
12301  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12302  int status = $lt_dlunknown;
12303
12304  if (self)
12305    {
12306      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12307      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12308      /* dlclose (self); */
12309    }
12310
12311    exit (status);
12312}
12313EOF
12314  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315  (eval $ac_link) 2>&5
12316  ac_status=$?
12317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12319    (./conftest; exit; ) 2>/dev/null
12320    lt_status=$?
12321    case x$lt_status in
12322      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12325    esac
12326  else :
12327    # compilation failed
12328    lt_cv_dlopen_self_static=no
12329  fi
12330fi
12331rm -fr conftest*
12332
12333
12334fi
12335echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12336echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12337    fi
12338
12339    CPPFLAGS="$save_CPPFLAGS"
12340    LDFLAGS="$save_LDFLAGS"
12341    LIBS="$save_LIBS"
12342    ;;
12343  esac
12344
12345  case $lt_cv_dlopen_self in
12346  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347  *) enable_dlopen_self=unknown ;;
12348  esac
12349
12350  case $lt_cv_dlopen_self_static in
12351  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352  *) enable_dlopen_self_static=unknown ;;
12353  esac
12354fi
12355
12356
12357# The else clause should only fire when bootstrapping the
12358# libtool distribution, otherwise you forgot to ship ltmain.sh
12359# with your package, and you will get complaints that there are
12360# no rules to generate ltmain.sh.
12361if test -f "$ltmain"; then
12362  # See if we are running on zsh, and set the options which allow our commands through
12363  # without removal of \ escapes.
12364  if test -n "${ZSH_VERSION+set}" ; then
12365    setopt NO_GLOB_SUBST
12366  fi
12367  # Now quote all the things that may contain metacharacters while being
12368  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12369  # variables and quote the copies for generation of the libtool script.
12370  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12371    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12372    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12373    deplibs_check_method reload_flag reload_cmds need_locks \
12374    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12375    lt_cv_sys_global_symbol_to_c_name_address \
12376    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12377    old_postinstall_cmds old_postuninstall_cmds \
12378    compiler_CXX \
12379    CC_CXX \
12380    LD_CXX \
12381    lt_prog_compiler_wl_CXX \
12382    lt_prog_compiler_pic_CXX \
12383    lt_prog_compiler_static_CXX \
12384    lt_prog_compiler_no_builtin_flag_CXX \
12385    export_dynamic_flag_spec_CXX \
12386    thread_safe_flag_spec_CXX \
12387    whole_archive_flag_spec_CXX \
12388    enable_shared_with_static_runtimes_CXX \
12389    old_archive_cmds_CXX \
12390    old_archive_from_new_cmds_CXX \
12391    predep_objects_CXX \
12392    postdep_objects_CXX \
12393    predeps_CXX \
12394    postdeps_CXX \
12395    compiler_lib_search_path_CXX \
12396    archive_cmds_CXX \
12397    archive_expsym_cmds_CXX \
12398    postinstall_cmds_CXX \
12399    postuninstall_cmds_CXX \
12400    old_archive_from_expsyms_cmds_CXX \
12401    allow_undefined_flag_CXX \
12402    no_undefined_flag_CXX \
12403    export_symbols_cmds_CXX \
12404    hardcode_libdir_flag_spec_CXX \
12405    hardcode_libdir_flag_spec_ld_CXX \
12406    hardcode_libdir_separator_CXX \
12407    hardcode_automatic_CXX \
12408    module_cmds_CXX \
12409    module_expsym_cmds_CXX \
12410    lt_cv_prog_compiler_c_o_CXX \
12411    exclude_expsyms_CXX \
12412    include_expsyms_CXX; do
12413
12414    case $var in
12415    old_archive_cmds_CXX | \
12416    old_archive_from_new_cmds_CXX | \
12417    archive_cmds_CXX | \
12418    archive_expsym_cmds_CXX | \
12419    module_cmds_CXX | \
12420    module_expsym_cmds_CXX | \
12421    old_archive_from_expsyms_cmds_CXX | \
12422    export_symbols_cmds_CXX | \
12423    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12424    postinstall_cmds | postuninstall_cmds | \
12425    old_postinstall_cmds | old_postuninstall_cmds | \
12426    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12427      # Double-quote double-evaled strings.
12428      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12429      ;;
12430    *)
12431      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12432      ;;
12433    esac
12434  done
12435
12436  case $lt_echo in
12437  *'\$0 --fallback-echo"')
12438    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12439    ;;
12440  esac
12441
12442cfgfile="$ofile"
12443
12444  cat <<__EOF__ >> "$cfgfile"
12445# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12446
12447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12448
12449# Shell to use when invoking shell scripts.
12450SHELL=$lt_SHELL
12451
12452# Whether or not to build shared libraries.
12453build_libtool_libs=$enable_shared
12454
12455# Whether or not to build static libraries.
12456build_old_libs=$enable_static
12457
12458# Whether or not to add -lc for building shared libraries.
12459build_libtool_need_lc=$archive_cmds_need_lc_CXX
12460
12461# Whether or not to disallow shared libs when runtime libs are static
12462allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12463
12464# Whether or not to optimize for fast installation.
12465fast_install=$enable_fast_install
12466
12467# The host system.
12468host_alias=$host_alias
12469host=$host
12470
12471# An echo program that does not interpret backslashes.
12472echo=$lt_echo
12473
12474# The archiver.
12475AR=$lt_AR
12476AR_FLAGS=$lt_AR_FLAGS
12477
12478# A C compiler.
12479LTCC=$lt_LTCC
12480
12481# A language-specific compiler.
12482CC=$lt_compiler_CXX
12483
12484# Is the compiler the GNU C compiler?
12485with_gcc=$GCC_CXX
12486
12487# An ERE matcher.
12488EGREP=$lt_EGREP
12489
12490# The linker used to build libraries.
12491LD=$lt_LD_CXX
12492
12493# Whether we need hard or soft links.
12494LN_S=$lt_LN_S
12495
12496# A BSD-compatible nm program.
12497NM=$lt_NM
12498
12499# A symbol stripping program
12500STRIP=$STRIP
12501
12502# Used to examine libraries when file_magic_cmd begins "file"
12503MAGIC_CMD=$MAGIC_CMD
12504
12505# Used on cygwin: DLL creation program.
12506DLLTOOL="$DLLTOOL"
12507
12508# Used on cygwin: object dumper.
12509OBJDUMP="$OBJDUMP"
12510
12511# Used on cygwin: assembler.
12512AS="$AS"
12513
12514# The name of the directory that contains temporary libtool files.
12515objdir=$objdir
12516
12517# How to create reloadable object files.
12518reload_flag=$lt_reload_flag
12519reload_cmds=$lt_reload_cmds
12520
12521# How to pass a linker flag through the compiler.
12522wl=$lt_lt_prog_compiler_wl_CXX
12523
12524# Object file suffix (normally "o").
12525objext="$ac_objext"
12526
12527# Old archive suffix (normally "a").
12528libext="$libext"
12529
12530# Shared library suffix (normally ".so").
12531shrext='$shrext'
12532
12533# Executable file suffix (normally "").
12534exeext="$exeext"
12535
12536# Additional compiler flags for building library objects.
12537pic_flag=$lt_lt_prog_compiler_pic_CXX
12538pic_mode=$pic_mode
12539
12540# What is the maximum length of a command?
12541max_cmd_len=$lt_cv_sys_max_cmd_len
12542
12543# Does compiler simultaneously support -c and -o options?
12544compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12545
12546# Must we lock files when doing compilation ?
12547need_locks=$lt_need_locks
12548
12549# Do we need the lib prefix for modules?
12550need_lib_prefix=$need_lib_prefix
12551
12552# Do we need a version for libraries?
12553need_version=$need_version
12554
12555# Whether dlopen is supported.
12556dlopen_support=$enable_dlopen
12557
12558# Whether dlopen of programs is supported.
12559dlopen_self=$enable_dlopen_self
12560
12561# Whether dlopen of statically linked programs is supported.
12562dlopen_self_static=$enable_dlopen_self_static
12563
12564# Compiler flag to prevent dynamic linking.
12565link_static_flag=$lt_lt_prog_compiler_static_CXX
12566
12567# Compiler flag to turn off builtin functions.
12568no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12569
12570# Compiler flag to allow reflexive dlopens.
12571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12572
12573# Compiler flag to generate shared objects directly from archives.
12574whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12575
12576# Compiler flag to generate thread-safe objects.
12577thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12578
12579# Library versioning type.
12580version_type=$version_type
12581
12582# Format of library name prefix.
12583libname_spec=$lt_libname_spec
12584
12585# List of archive names.  First name is the real one, the rest are links.
12586# The last name is the one that the linker finds with -lNAME.
12587library_names_spec=$lt_library_names_spec
12588
12589# The coded name of the library, if different from the real name.
12590soname_spec=$lt_soname_spec
12591
12592# Commands used to build and install an old-style archive.
12593RANLIB=$lt_RANLIB
12594old_archive_cmds=$lt_old_archive_cmds_CXX
12595old_postinstall_cmds=$lt_old_postinstall_cmds
12596old_postuninstall_cmds=$lt_old_postuninstall_cmds
12597
12598# Create an old-style archive from a shared archive.
12599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12600
12601# Create a temporary old-style archive to link instead of a shared archive.
12602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12603
12604# Commands used to build and install a shared archive.
12605archive_cmds=$lt_archive_cmds_CXX
12606archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12607postinstall_cmds=$lt_postinstall_cmds
12608postuninstall_cmds=$lt_postuninstall_cmds
12609
12610# Commands used to build a loadable module (assumed same as above if empty)
12611module_cmds=$lt_module_cmds_CXX
12612module_expsym_cmds=$lt_module_expsym_cmds_CXX
12613
12614# Commands to strip libraries.
12615old_striplib=$lt_old_striplib
12616striplib=$lt_striplib
12617
12618# Dependencies to place before the objects being linked to create a
12619# shared library.
12620predep_objects=$lt_predep_objects_CXX
12621
12622# Dependencies to place after the objects being linked to create a
12623# shared library.
12624postdep_objects=$lt_postdep_objects_CXX
12625
12626# Dependencies to place before the objects being linked to create a
12627# shared library.
12628predeps=$lt_predeps_CXX
12629
12630# Dependencies to place after the objects being linked to create a
12631# shared library.
12632postdeps=$lt_postdeps_CXX
12633
12634# The library search path used internally by the compiler when linking
12635# a shared library.
12636compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12637
12638# Method to check whether dependent libraries are shared objects.
12639deplibs_check_method=$lt_deplibs_check_method
12640
12641# Command to use when deplibs_check_method == file_magic.
12642file_magic_cmd=$lt_file_magic_cmd
12643
12644# Flag that allows shared libraries with undefined symbols to be built.
12645allow_undefined_flag=$lt_allow_undefined_flag_CXX
12646
12647# Flag that forces no undefined symbols.
12648no_undefined_flag=$lt_no_undefined_flag_CXX
12649
12650# Commands used to finish a libtool library installation in a directory.
12651finish_cmds=$lt_finish_cmds
12652
12653# Same as above, but a single script fragment to be evaled but not shown.
12654finish_eval=$lt_finish_eval
12655
12656# Take the output of nm and produce a listing of raw symbols and C names.
12657global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12658
12659# Transform the output of nm in a proper C declaration
12660global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12661
12662# Transform the output of nm in a C name address pair
12663global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12664
12665# This is the shared library runtime path variable.
12666runpath_var=$runpath_var
12667
12668# This is the shared library path variable.
12669shlibpath_var=$shlibpath_var
12670
12671# Is shlibpath searched before the hard-coded library search path?
12672shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12673
12674# How to hardcode a shared library path into an executable.
12675hardcode_action=$hardcode_action_CXX
12676
12677# Whether we should hardcode library paths into libraries.
12678hardcode_into_libs=$hardcode_into_libs
12679
12680# Flag to hardcode \$libdir into a binary during linking.
12681# This must work even if \$libdir does not exist.
12682hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12683
12684# If ld is used when linking, flag to hardcode \$libdir into
12685# a binary during linking. This must work even if \$libdir does
12686# not exist.
12687hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12688
12689# Whether we need a single -rpath flag with a separated argument.
12690hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12691
12692# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12693# resulting binary.
12694hardcode_direct=$hardcode_direct_CXX
12695
12696# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12697# resulting binary.
12698hardcode_minus_L=$hardcode_minus_L_CXX
12699
12700# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12701# the resulting binary.
12702hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12703
12704# Set to yes if building a shared library automatically hardcodes DIR into the library
12705# and all subsequent libraries and executables linked against it.
12706hardcode_automatic=$hardcode_automatic_CXX
12707
12708# Variables whose values should be saved in libtool wrapper scripts and
12709# restored at relink time.
12710variables_saved_for_relink="$variables_saved_for_relink"
12711
12712# Whether libtool must link a program against all its dependency libraries.
12713link_all_deplibs=$link_all_deplibs_CXX
12714
12715# Compile-time system search path for libraries
12716sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12717
12718# Run-time system search path for libraries
12719sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12720
12721# Fix the shell variable \$srcfile for the compiler.
12722fix_srcfile_path="$fix_srcfile_path_CXX"
12723
12724# Set to yes if exported symbols are required.
12725always_export_symbols=$always_export_symbols_CXX
12726
12727# The commands to list exported symbols.
12728export_symbols_cmds=$lt_export_symbols_cmds_CXX
12729
12730# The commands to extract the exported symbol list from a shared archive.
12731extract_expsyms_cmds=$lt_extract_expsyms_cmds
12732
12733# Symbols that should not be listed in the preloaded symbols.
12734exclude_expsyms=$lt_exclude_expsyms_CXX
12735
12736# Symbols that must always be exported.
12737include_expsyms=$lt_include_expsyms_CXX
12738
12739# ### END LIBTOOL TAG CONFIG: $tagname
12740
12741__EOF__
12742
12743
12744else
12745  # If there is no Makefile yet, we rely on a make rule to execute
12746  # `config.status --recheck' to rerun these tests and create the
12747  # libtool script then.
12748  test -f Makefile && make "$ltmain"
12749fi
12750
12751
12752ac_ext=c
12753ac_cpp='$CPP $CPPFLAGS'
12754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758CC=$lt_save_CC
12759LDCXX=$LD
12760LD=$lt_save_LD
12761GCC=$lt_save_GCC
12762with_gnu_ldcxx=$with_gnu_ld
12763with_gnu_ld=$lt_save_with_gnu_ld
12764lt_cv_path_LDCXX=$lt_cv_path_LD
12765lt_cv_path_LD=$lt_save_path_LD
12766lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12767lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12768
12769	else
12770	  tagname=""
12771	fi
12772	;;
12773
12774      F77)
12775	if test -n "$F77" && test "X$F77" != "Xno"; then
12776
12777ac_ext=f
12778ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12779ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12781
12782
12783archive_cmds_need_lc_F77=no
12784allow_undefined_flag_F77=
12785always_export_symbols_F77=no
12786archive_expsym_cmds_F77=
12787export_dynamic_flag_spec_F77=
12788hardcode_direct_F77=no
12789hardcode_libdir_flag_spec_F77=
12790hardcode_libdir_flag_spec_ld_F77=
12791hardcode_libdir_separator_F77=
12792hardcode_minus_L_F77=no
12793hardcode_automatic_F77=no
12794module_cmds_F77=
12795module_expsym_cmds_F77=
12796link_all_deplibs_F77=unknown
12797old_archive_cmds_F77=$old_archive_cmds
12798no_undefined_flag_F77=
12799whole_archive_flag_spec_F77=
12800enable_shared_with_static_runtimes_F77=no
12801
12802# Source file extension for f77 test sources.
12803ac_ext=f
12804
12805# Object file extension for compiled f77 test sources.
12806objext=o
12807objext_F77=$objext
12808
12809# Code to be used in simple compile tests
12810lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12811
12812# Code to be used in simple link tests
12813lt_simple_link_test_code="      program t\n      end\n"
12814
12815# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12816
12817# If no C compiler was specified, use CC.
12818LTCC=${LTCC-"$CC"}
12819
12820# Allow CC to be a program name with arguments.
12821compiler=$CC
12822
12823
12824# Allow CC to be a program name with arguments.
12825lt_save_CC="$CC"
12826CC=${F77-"f77"}
12827compiler=$CC
12828compiler_F77=$CC
12829cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12830
12831echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12832echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12833echo "$as_me:$LINENO: result: $can_build_shared" >&5
12834echo "${ECHO_T}$can_build_shared" >&6
12835
12836echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12837echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12838test "$can_build_shared" = "no" && enable_shared=no
12839
12840# On AIX, shared libraries and static libraries use the same namespace, and
12841# are all built from PIC.
12842case "$host_os" in
12843aix3*)
12844  test "$enable_shared" = yes && enable_static=no
12845  if test -n "$RANLIB"; then
12846    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12847    postinstall_cmds='$RANLIB $lib'
12848  fi
12849  ;;
12850aix4*)
12851  test "$enable_shared" = yes && enable_static=no
12852  ;;
12853esac
12854echo "$as_me:$LINENO: result: $enable_shared" >&5
12855echo "${ECHO_T}$enable_shared" >&6
12856
12857echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12858echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12859# Make sure either enable_shared or enable_static is yes.
12860test "$enable_shared" = yes || enable_static=yes
12861echo "$as_me:$LINENO: result: $enable_static" >&5
12862echo "${ECHO_T}$enable_static" >&6
12863
12864test "$ld_shlibs_F77" = no && can_build_shared=no
12865
12866GCC_F77="$G77"
12867LD_F77="$LD"
12868
12869lt_prog_compiler_wl_F77=
12870lt_prog_compiler_pic_F77=
12871lt_prog_compiler_static_F77=
12872
12873echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12874echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12875
12876  if test "$GCC" = yes; then
12877    lt_prog_compiler_wl_F77='-Wl,'
12878    lt_prog_compiler_static_F77='-static'
12879
12880    case $host_os in
12881      aix*)
12882      # All AIX code is PIC.
12883      if test "$host_cpu" = ia64; then
12884	# AIX 5 now supports IA64 processor
12885	lt_prog_compiler_static_F77='-Bstatic'
12886      fi
12887      ;;
12888
12889    amigaos*)
12890      # FIXME: we need at least 68020 code to build shared libraries, but
12891      # adding the `-m68020' flag to GCC prevents building anything better,
12892      # like `-m68040'.
12893      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12894      ;;
12895
12896    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12897      # PIC is the default for these OSes.
12898      ;;
12899
12900    mingw* | pw32* | os2*)
12901      # This hack is so that the source file can tell whether it is being
12902      # built for inclusion in a dll (and should export symbols for example).
12903      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12904      ;;
12905
12906    darwin* | rhapsody*)
12907      # PIC is the default on this platform
12908      # Common symbols not allowed in MH_DYLIB files
12909      lt_prog_compiler_pic_F77='-fno-common'
12910      ;;
12911
12912    msdosdjgpp*)
12913      # Just because we use GCC doesn't mean we suddenly get shared libraries
12914      # on systems that don't support them.
12915      lt_prog_compiler_can_build_shared_F77=no
12916      enable_shared=no
12917      ;;
12918
12919    sysv4*MP*)
12920      if test -d /usr/nec; then
12921	lt_prog_compiler_pic_F77=-Kconform_pic
12922      fi
12923      ;;
12924
12925    hpux*)
12926      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12927      # not for PA HP-UX.
12928      case "$host_cpu" in
12929      hppa*64*|ia64*)
12930	# +Z the default
12931	;;
12932      *)
12933	lt_prog_compiler_pic_F77='-fPIC'
12934	;;
12935      esac
12936      ;;
12937
12938    *)
12939      lt_prog_compiler_pic_F77='-fPIC'
12940      ;;
12941    esac
12942  else
12943    # PORTME Check for flag to pass linker flags through the system compiler.
12944    case $host_os in
12945    aix*)
12946      lt_prog_compiler_wl_F77='-Wl,'
12947      if test "$host_cpu" = ia64; then
12948	# AIX 5 now supports IA64 processor
12949	lt_prog_compiler_static_F77='-Bstatic'
12950      else
12951	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12952      fi
12953      ;;
12954
12955    mingw* | pw32* | os2*)
12956      # This hack is so that the source file can tell whether it is being
12957      # built for inclusion in a dll (and should export symbols for example).
12958      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12959      ;;
12960
12961    hpux9* | hpux10* | hpux11*)
12962      lt_prog_compiler_wl_F77='-Wl,'
12963      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12964      # not for PA HP-UX.
12965      case "$host_cpu" in
12966      hppa*64*|ia64*)
12967	# +Z the default
12968	;;
12969      *)
12970	lt_prog_compiler_pic_F77='+Z'
12971	;;
12972      esac
12973      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12974      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12975      ;;
12976
12977    irix5* | irix6* | nonstopux*)
12978      lt_prog_compiler_wl_F77='-Wl,'
12979      # PIC (with -KPIC) is the default.
12980      lt_prog_compiler_static_F77='-non_shared'
12981      ;;
12982
12983    newsos6)
12984      lt_prog_compiler_pic_F77='-KPIC'
12985      lt_prog_compiler_static_F77='-Bstatic'
12986      ;;
12987
12988    linux*)
12989      case $CC in
12990      icc|ecc)
12991	lt_prog_compiler_wl_F77='-Wl,'
12992	lt_prog_compiler_pic_F77='-KPIC'
12993	lt_prog_compiler_static_F77='-static'
12994        ;;
12995      ccc)
12996        lt_prog_compiler_wl_F77='-Wl,'
12997        # All Alpha code is PIC.
12998        lt_prog_compiler_static_F77='-non_shared'
12999        ;;
13000      esac
13001      ;;
13002
13003    osf3* | osf4* | osf5*)
13004      lt_prog_compiler_wl_F77='-Wl,'
13005      # All OSF/1 code is PIC.
13006      lt_prog_compiler_static_F77='-non_shared'
13007      ;;
13008
13009    sco3.2v5*)
13010      lt_prog_compiler_pic_F77='-Kpic'
13011      lt_prog_compiler_static_F77='-dn'
13012      ;;
13013
13014    solaris*)
13015      lt_prog_compiler_wl_F77='-Wl,'
13016      lt_prog_compiler_pic_F77='-KPIC'
13017      lt_prog_compiler_static_F77='-Bstatic'
13018      ;;
13019
13020    sunos4*)
13021      lt_prog_compiler_wl_F77='-Qoption ld '
13022      lt_prog_compiler_pic_F77='-PIC'
13023      lt_prog_compiler_static_F77='-Bstatic'
13024      ;;
13025
13026    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13027      lt_prog_compiler_wl_F77='-Wl,'
13028      lt_prog_compiler_pic_F77='-KPIC'
13029      lt_prog_compiler_static_F77='-Bstatic'
13030      ;;
13031
13032    sysv4*MP*)
13033      if test -d /usr/nec ;then
13034	lt_prog_compiler_pic_F77='-Kconform_pic'
13035	lt_prog_compiler_static_F77='-Bstatic'
13036      fi
13037      ;;
13038
13039    uts4*)
13040      lt_prog_compiler_pic_F77='-pic'
13041      lt_prog_compiler_static_F77='-Bstatic'
13042      ;;
13043
13044    *)
13045      lt_prog_compiler_can_build_shared_F77=no
13046      ;;
13047    esac
13048  fi
13049
13050echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13051echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13052
13053#
13054# Check to make sure the PIC flag actually works.
13055#
13056if test -n "$lt_prog_compiler_pic_F77"; then
13057  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13058echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13059if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13060  echo $ECHO_N "(cached) $ECHO_C" >&6
13061else
13062  lt_prog_compiler_pic_works_F77=no
13063  ac_outfile=conftest.$ac_objext
13064   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13065   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13066   # Insert the option either (1) after the last *FLAGS variable, or
13067   # (2) before a word containing "conftest.", or (3) at the end.
13068   # Note that $ac_compile itself does not contain backslashes and begins
13069   # with a dollar sign (not a hyphen), so the echo should work correctly.
13070   # The option is referenced via a variable to avoid confusing sed.
13071   lt_compile=`echo "$ac_compile" | $SED \
13072   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13074   -e 's:$: $lt_compiler_flag:'`
13075   (eval echo "\"\$as_me:13075: $lt_compile\"" >&5)
13076   (eval "$lt_compile" 2>conftest.err)
13077   ac_status=$?
13078   cat conftest.err >&5
13079   echo "$as_me:13079: \$? = $ac_status" >&5
13080   if (exit $ac_status) && test -s "$ac_outfile"; then
13081     # The compiler can only warn and ignore the option if not recognized
13082     # So say no if there are warnings
13083     if test ! -s conftest.err; then
13084       lt_prog_compiler_pic_works_F77=yes
13085     fi
13086   fi
13087   $rm conftest*
13088
13089fi
13090echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13091echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13092
13093if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13094    case $lt_prog_compiler_pic_F77 in
13095     "" | " "*) ;;
13096     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13097     esac
13098else
13099    lt_prog_compiler_pic_F77=
13100     lt_prog_compiler_can_build_shared_F77=no
13101fi
13102
13103fi
13104case "$host_os" in
13105  # For platforms which do not support PIC, -DPIC is meaningless:
13106  *djgpp*)
13107    lt_prog_compiler_pic_F77=
13108    ;;
13109  *)
13110    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13111    ;;
13112esac
13113
13114echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13115echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13116if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13117  echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119  lt_cv_prog_compiler_c_o_F77=no
13120   $rm -r conftest 2>/dev/null
13121   mkdir conftest
13122   cd conftest
13123   mkdir out
13124   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13125
13126   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13127   # that will create temporary files in the current directory regardless of
13128   # the output directory.  Thus, making CWD read-only will cause this test
13129   # to fail, enabling locking or at least warning the user not to do parallel
13130   # builds.
13131   chmod -w .
13132
13133   lt_compiler_flag="-o out/conftest2.$ac_objext"
13134   # Insert the option either (1) after the last *FLAGS variable, or
13135   # (2) before a word containing "conftest.", or (3) at the end.
13136   # Note that $ac_compile itself does not contain backslashes and begins
13137   # with a dollar sign (not a hyphen), so the echo should work correctly.
13138   lt_compile=`echo "$ac_compile" | $SED \
13139   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13141   -e 's:$: $lt_compiler_flag:'`
13142   (eval echo "\"\$as_me:13142: $lt_compile\"" >&5)
13143   (eval "$lt_compile" 2>out/conftest.err)
13144   ac_status=$?
13145   cat out/conftest.err >&5
13146   echo "$as_me:13146: \$? = $ac_status" >&5
13147   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13148   then
13149     # The compiler can only warn and ignore the option if not recognized
13150     # So say no if there are warnings
13151     if test ! -s out/conftest.err; then
13152       lt_cv_prog_compiler_c_o_F77=yes
13153     fi
13154   fi
13155   chmod u+w .
13156   $rm conftest* out/*
13157   rmdir out
13158   cd ..
13159   rmdir conftest
13160   $rm conftest*
13161
13162fi
13163echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13164echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13165
13166
13167hard_links="nottested"
13168if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13169  # do not overwrite the value of need_locks provided by the user
13170  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13171echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13172  hard_links=yes
13173  $rm conftest*
13174  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13175  touch conftest.a
13176  ln conftest.a conftest.b 2>&5 || hard_links=no
13177  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13178  echo "$as_me:$LINENO: result: $hard_links" >&5
13179echo "${ECHO_T}$hard_links" >&6
13180  if test "$hard_links" = no; then
13181    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13182echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13183    need_locks=warn
13184  fi
13185else
13186  need_locks=no
13187fi
13188
13189echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13190echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13191
13192  runpath_var=
13193  allow_undefined_flag_F77=
13194  enable_shared_with_static_runtimes_F77=no
13195  archive_cmds_F77=
13196  archive_expsym_cmds_F77=
13197  old_archive_From_new_cmds_F77=
13198  old_archive_from_expsyms_cmds_F77=
13199  export_dynamic_flag_spec_F77=
13200  whole_archive_flag_spec_F77=
13201  thread_safe_flag_spec_F77=
13202  hardcode_libdir_flag_spec_F77=
13203  hardcode_libdir_flag_spec_ld_F77=
13204  hardcode_libdir_separator_F77=
13205  hardcode_direct_F77=no
13206  hardcode_minus_L_F77=no
13207  hardcode_shlibpath_var_F77=unsupported
13208  link_all_deplibs_F77=unknown
13209  hardcode_automatic_F77=no
13210  module_cmds_F77=
13211  module_expsym_cmds_F77=
13212  always_export_symbols_F77=no
13213  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13214  # include_expsyms should be a list of space-separated symbols to be *always*
13215  # included in the symbol list
13216  include_expsyms_F77=
13217  # exclude_expsyms can be an extended regexp of symbols to exclude
13218  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13219  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13220  # as well as any symbol that contains `d'.
13221  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13222  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13223  # platforms (ab)use it in PIC code, but their linkers get confused if
13224  # the symbol is explicitly referenced.  Since portable code cannot
13225  # rely on this symbol name, it's probably fine to never include it in
13226  # preloaded symbol tables.
13227  extract_expsyms_cmds=
13228
13229  case $host_os in
13230  cygwin* | mingw* | pw32*)
13231    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13232    # When not using gcc, we currently assume that we are using
13233    # Microsoft Visual C++.
13234    if test "$GCC" != yes; then
13235      with_gnu_ld=no
13236    fi
13237    ;;
13238  openbsd*)
13239    with_gnu_ld=no
13240    ;;
13241  esac
13242
13243  ld_shlibs_F77=yes
13244  if test "$with_gnu_ld" = yes; then
13245    # If archive_cmds runs LD, not CC, wlarc should be empty
13246    wlarc='${wl}'
13247
13248    # See if GNU ld supports shared libraries.
13249    case $host_os in
13250    aix3* | aix4* | aix5*)
13251      # On AIX/PPC, the GNU linker is very broken
13252      if test "$host_cpu" != ia64; then
13253	ld_shlibs_F77=no
13254	cat <<EOF 1>&2
13255
13256*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13257*** to be unable to reliably create shared libraries on AIX.
13258*** Therefore, libtool is disabling shared libraries support.  If you
13259*** really care for shared libraries, you may want to modify your PATH
13260*** so that a non-GNU linker is found, and then restart.
13261
13262EOF
13263      fi
13264      ;;
13265
13266    amigaos*)
13267      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)'
13268      hardcode_libdir_flag_spec_F77='-L$libdir'
13269      hardcode_minus_L_F77=yes
13270
13271      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13272      # that the semantics of dynamic libraries on AmigaOS, at least up
13273      # to version 4, is to share data among multiple programs linked
13274      # with the same dynamic library.  Since this doesn't match the
13275      # behavior of shared libraries on other platforms, we can't use
13276      # them.
13277      ld_shlibs_F77=no
13278      ;;
13279
13280    beos*)
13281      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13282	allow_undefined_flag_F77=unsupported
13283	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13284	# support --undefined.  This deserves some investigation.  FIXME
13285	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286      else
13287	ld_shlibs_F77=no
13288      fi
13289      ;;
13290
13291    cygwin* | mingw* | pw32*)
13292      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13293      # as there is no search path for DLLs.
13294      hardcode_libdir_flag_spec_F77='-L$libdir'
13295      allow_undefined_flag_F77=unsupported
13296      always_export_symbols_F77=no
13297      enable_shared_with_static_runtimes_F77=yes
13298      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13299
13300      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13301        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13302	# If the export-symbols file already is a .def file (1st line
13303	# is EXPORTS), use it as is; otherwise, prepend...
13304	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13305	  cp $export_symbols $output_objdir/$soname.def;
13306	else
13307	  echo EXPORTS > $output_objdir/$soname.def;
13308	  cat $export_symbols >> $output_objdir/$soname.def;
13309	fi~
13310	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13311      else
13312	ld_shlibs=no
13313      fi
13314      ;;
13315
13316    netbsd*)
13317      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13318	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13319	wlarc=
13320      else
13321	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13323      fi
13324      ;;
13325
13326    solaris* | sysv5*)
13327      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13328	ld_shlibs_F77=no
13329	cat <<EOF 1>&2
13330
13331*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13332*** create shared libraries on Solaris systems.  Therefore, libtool
13333*** is disabling shared libraries support.  We urge you to upgrade GNU
13334*** binutils to release 2.9.1 or newer.  Another option is to modify
13335*** your PATH or compiler configuration so that the native linker is
13336*** used, and then restart.
13337
13338EOF
13339      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13340	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342      else
13343	ld_shlibs_F77=no
13344      fi
13345      ;;
13346
13347    sunos4*)
13348      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13349      wlarc=
13350      hardcode_direct_F77=yes
13351      hardcode_shlibpath_var_F77=no
13352      ;;
13353
13354    *)
13355      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13356	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13357	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13358      else
13359	ld_shlibs_F77=no
13360      fi
13361      ;;
13362    esac
13363
13364    if test "$ld_shlibs_F77" = yes; then
13365      runpath_var=LD_RUN_PATH
13366      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13367      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13368      # ancient GNU ld didn't support --whole-archive et. al.
13369      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13370 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13371      else
13372  	whole_archive_flag_spec_F77=
13373      fi
13374    fi
13375  else
13376    # PORTME fill in a description of your system's linker (not GNU ld)
13377    case $host_os in
13378    aix3*)
13379      allow_undefined_flag_F77=unsupported
13380      always_export_symbols_F77=yes
13381      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'
13382      # Note: this linker hardcodes the directories in LIBPATH if there
13383      # are no directories specified by -L.
13384      hardcode_minus_L_F77=yes
13385      if test "$GCC" = yes && test -z "$link_static_flag"; then
13386	# Neither direct hardcoding nor static linking is supported with a
13387	# broken collect2.
13388	hardcode_direct_F77=unsupported
13389      fi
13390      ;;
13391
13392    aix4* | aix5*)
13393      if test "$host_cpu" = ia64; then
13394	# On IA64, the linker does run time linking by default, so we don't
13395	# have to do anything special.
13396	aix_use_runtimelinking=no
13397	exp_sym_flag='-Bexport'
13398	no_entry_flag=""
13399      else
13400	# If we're using GNU nm, then we don't want the "-C" option.
13401	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13402	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13403	  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'
13404	else
13405	  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'
13406	fi
13407	aix_use_runtimelinking=no
13408
13409	# Test if we are trying to use run time linking or normal
13410	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13411	# need to do runtime linking.
13412	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13413	  for ld_flag in $LDFLAGS; do
13414  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13415  	    aix_use_runtimelinking=yes
13416  	    break
13417  	  fi
13418	  done
13419	esac
13420
13421	exp_sym_flag='-bexport'
13422	no_entry_flag='-bnoentry'
13423      fi
13424
13425      # When large executables or shared objects are built, AIX ld can
13426      # have problems creating the table of contents.  If linking a library
13427      # or program results in "error TOC overflow" add -mminimal-toc to
13428      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13429      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13430
13431      archive_cmds_F77=''
13432      hardcode_direct_F77=yes
13433      hardcode_libdir_separator_F77=':'
13434      link_all_deplibs_F77=yes
13435
13436      if test "$GCC" = yes; then
13437	case $host_os in aix4.012|aix4.012.*)
13438	# We only want to do this on AIX 4.2 and lower, the check
13439	# below for broken collect2 doesn't work under 4.3+
13440	  collect2name=`${CC} -print-prog-name=collect2`
13441	  if test -f "$collect2name" && \
13442  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13443	  then
13444  	  # We have reworked collect2
13445  	  hardcode_direct_F77=yes
13446	  else
13447  	  # We have old collect2
13448  	  hardcode_direct_F77=unsupported
13449  	  # It fails to find uninstalled libraries when the uninstalled
13450  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13451  	  # to unsupported forces relinking
13452  	  hardcode_minus_L_F77=yes
13453  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13454  	  hardcode_libdir_separator_F77=
13455	  fi
13456	esac
13457	shared_flag='-shared'
13458      else
13459	# not using gcc
13460	if test "$host_cpu" = ia64; then
13461  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13462  	# chokes on -Wl,-G. The following line is correct:
13463	  shared_flag='-G'
13464	else
13465  	if test "$aix_use_runtimelinking" = yes; then
13466	    shared_flag='${wl}-G'
13467	  else
13468	    shared_flag='${wl}-bM:SRE'
13469  	fi
13470	fi
13471      fi
13472
13473      # It seems that -bexpall does not export symbols beginning with
13474      # underscore (_), so it is better to generate a list of symbols to export.
13475      always_export_symbols_F77=yes
13476      if test "$aix_use_runtimelinking" = yes; then
13477	# Warning - without using the other runtime loading flags (-brtl),
13478	# -berok will link without error, but may produce a broken library.
13479	allow_undefined_flag_F77='-berok'
13480       # Determine the default libpath from the value encoded in an empty executable.
13481       cat >conftest.$ac_ext <<_ACEOF
13482      program main
13483
13484      end
13485_ACEOF
13486rm -f conftest.$ac_objext conftest$ac_exeext
13487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488  (eval $ac_link) 2>&5
13489  ac_status=$?
13490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491  (exit $ac_status); } &&
13492         { ac_try='test -s conftest$ac_exeext'
13493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494  (eval $ac_try) 2>&5
13495  ac_status=$?
13496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497  (exit $ac_status); }; }; then
13498
13499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13500}'`
13501# Check for a 64-bit object if we didn't find anything.
13502if 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; }
13503}'`; fi
13504else
13505  echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508fi
13509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13511
13512       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13513	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"
13514       else
13515	if test "$host_cpu" = ia64; then
13516	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13517	  allow_undefined_flag_F77="-z nodefs"
13518	  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"
13519	else
13520	 # Determine the default libpath from the value encoded in an empty executable.
13521	 cat >conftest.$ac_ext <<_ACEOF
13522      program main
13523
13524      end
13525_ACEOF
13526rm -f conftest.$ac_objext conftest$ac_exeext
13527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528  (eval $ac_link) 2>&5
13529  ac_status=$?
13530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531  (exit $ac_status); } &&
13532         { ac_try='test -s conftest$ac_exeext'
13533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534  (eval $ac_try) 2>&5
13535  ac_status=$?
13536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537  (exit $ac_status); }; }; then
13538
13539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13540}'`
13541# Check for a 64-bit object if we didn't find anything.
13542if 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; }
13543}'`; fi
13544else
13545  echo "$as_me: failed program was:" >&5
13546sed 's/^/| /' conftest.$ac_ext >&5
13547
13548fi
13549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13551
13552	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13553	  # Warning - without using the other run time loading flags,
13554	  # -berok will link without error, but may produce a broken library.
13555	  no_undefined_flag_F77=' ${wl}-bernotok'
13556	  allow_undefined_flag_F77=' ${wl}-berok'
13557	  # -bexpall does not export symbols beginning with underscore (_)
13558	  always_export_symbols_F77=yes
13559	  # Exported symbols can be pulled into shared objects from archives
13560	  whole_archive_flag_spec_F77=' '
13561	  archive_cmds_need_lc_F77=yes
13562	  # This is similar to how AIX traditionally builds it's shared libraries.
13563	  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'
13564	fi
13565      fi
13566      ;;
13567
13568    amigaos*)
13569      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)'
13570      hardcode_libdir_flag_spec_F77='-L$libdir'
13571      hardcode_minus_L_F77=yes
13572      # see comment about different semantics on the GNU ld section
13573      ld_shlibs_F77=no
13574      ;;
13575
13576    bsdi4*)
13577      export_dynamic_flag_spec_F77=-rdynamic
13578      ;;
13579
13580    cygwin* | mingw* | pw32*)
13581      # When not using gcc, we currently assume that we are using
13582      # Microsoft Visual C++.
13583      # hardcode_libdir_flag_spec is actually meaningless, as there is
13584      # no search path for DLLs.
13585      hardcode_libdir_flag_spec_F77=' '
13586      allow_undefined_flag_F77=unsupported
13587      # Tell ltmain to make .lib files, not .a files.
13588      libext=lib
13589      # Tell ltmain to make .dll files, not .so files.
13590      shrext=".dll"
13591      # FIXME: Setting linknames here is a bad hack.
13592      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13593      # The linker will automatically build a .lib file if we build a DLL.
13594      old_archive_From_new_cmds_F77='true'
13595      # FIXME: Should let the user specify the lib program.
13596      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13597      fix_srcfile_path='`cygpath -w "$srcfile"`'
13598      enable_shared_with_static_runtimes_F77=yes
13599      ;;
13600
13601    darwin* | rhapsody*)
13602    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13603      archive_cmds_need_lc_F77=no
13604      case "$host_os" in
13605      rhapsody* | darwin1.[012])
13606	allow_undefined_flag_F77='-undefined suppress'
13607	;;
13608      *) # Darwin 1.3 on
13609	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13610	;;
13611      esac
13612      # FIXME: Relying on posixy $() will cause problems for
13613      #        cross-compilation, but unfortunately the echo tests do not
13614      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13615      #	       `"' quotes if we put them in here... so don't!
13616    	lt_int_apple_cc_single_mod=no
13617    	output_verbose_link_cmd='echo'
13618    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13619    	  lt_int_apple_cc_single_mod=yes
13620    	fi
13621    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13622    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13623    	else
13624        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13625      fi
13626      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13627      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13628        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13629          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13630        else
13631          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13632        fi
13633          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13634      hardcode_direct_F77=no
13635      hardcode_automatic_F77=yes
13636      hardcode_shlibpath_var_F77=unsupported
13637      whole_archive_flag_spec_F77='-all_load $convenience'
13638      link_all_deplibs_F77=yes
13639    fi
13640      ;;
13641
13642    dgux*)
13643      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13644      hardcode_libdir_flag_spec_F77='-L$libdir'
13645      hardcode_shlibpath_var_F77=no
13646      ;;
13647
13648    freebsd1*)
13649      ld_shlibs_F77=no
13650      ;;
13651
13652    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13653    # support.  Future versions do this automatically, but an explicit c++rt0.o
13654    # does not break anything, and helps significantly (at the cost of a little
13655    # extra space).
13656    freebsd2.2*)
13657      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13658      hardcode_libdir_flag_spec_F77='-R$libdir'
13659      hardcode_direct_F77=yes
13660      hardcode_shlibpath_var_F77=no
13661      ;;
13662
13663    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13664    freebsd2*)
13665      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13666      hardcode_direct_F77=yes
13667      hardcode_minus_L_F77=yes
13668      hardcode_shlibpath_var_F77=no
13669      ;;
13670
13671    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13672    freebsd*)
13673      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13674      hardcode_libdir_flag_spec_F77='-R$libdir'
13675      hardcode_direct_F77=yes
13676      hardcode_shlibpath_var_F77=no
13677      ;;
13678
13679    hpux9*)
13680      if test "$GCC" = yes; then
13681	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'
13682      else
13683	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'
13684      fi
13685      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686      hardcode_libdir_separator_F77=:
13687      hardcode_direct_F77=yes
13688
13689      # hardcode_minus_L: Not really in the search PATH,
13690      # but as the default location of the library.
13691      hardcode_minus_L_F77=yes
13692      export_dynamic_flag_spec_F77='${wl}-E'
13693      ;;
13694
13695    hpux10* | hpux11*)
13696      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13697	case "$host_cpu" in
13698	hppa*64*|ia64*)
13699	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13700	  ;;
13701	*)
13702	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13703	  ;;
13704	esac
13705      else
13706	case "$host_cpu" in
13707	hppa*64*|ia64*)
13708	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13709	  ;;
13710	*)
13711	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13712	  ;;
13713	esac
13714      fi
13715      if test "$with_gnu_ld" = no; then
13716	case "$host_cpu" in
13717	hppa*64*)
13718	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13719	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13720	  hardcode_libdir_separator_F77=:
13721	  hardcode_direct_F77=no
13722	  hardcode_shlibpath_var_F77=no
13723	  ;;
13724	ia64*)
13725	  hardcode_libdir_flag_spec_F77='-L$libdir'
13726	  hardcode_direct_F77=no
13727	  hardcode_shlibpath_var_F77=no
13728
13729	  # hardcode_minus_L: Not really in the search PATH,
13730	  # but as the default location of the library.
13731	  hardcode_minus_L_F77=yes
13732	  ;;
13733	*)
13734	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13735	  hardcode_libdir_separator_F77=:
13736	  hardcode_direct_F77=yes
13737	  export_dynamic_flag_spec_F77='${wl}-E'
13738
13739	  # hardcode_minus_L: Not really in the search PATH,
13740	  # but as the default location of the library.
13741	  hardcode_minus_L_F77=yes
13742	  ;;
13743	esac
13744      fi
13745      ;;
13746
13747    irix5* | irix6* | nonstopux*)
13748      if test "$GCC" = yes; then
13749	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'
13750      else
13751	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'
13752	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13753      fi
13754      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13755      hardcode_libdir_separator_F77=:
13756      link_all_deplibs_F77=yes
13757      ;;
13758
13759    netbsd*)
13760      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13761	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13762      else
13763	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13764      fi
13765      hardcode_libdir_flag_spec_F77='-R$libdir'
13766      hardcode_direct_F77=yes
13767      hardcode_shlibpath_var_F77=no
13768      ;;
13769
13770    newsos6)
13771      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13772      hardcode_direct_F77=yes
13773      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13774      hardcode_libdir_separator_F77=:
13775      hardcode_shlibpath_var_F77=no
13776      ;;
13777
13778    openbsd*)
13779      hardcode_direct_F77=yes
13780      hardcode_shlibpath_var_F77=no
13781      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13782	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13783	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13784	export_dynamic_flag_spec_F77='${wl}-E'
13785      else
13786       case $host_os in
13787	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13788	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13789	   hardcode_libdir_flag_spec_F77='-R$libdir'
13790	   ;;
13791	 *)
13792	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13793	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13794	   ;;
13795       esac
13796      fi
13797      ;;
13798
13799    os2*)
13800      hardcode_libdir_flag_spec_F77='-L$libdir'
13801      hardcode_minus_L_F77=yes
13802      allow_undefined_flag_F77=unsupported
13803      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'
13804      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13805      ;;
13806
13807    osf3*)
13808      if test "$GCC" = yes; then
13809	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13810	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'
13811      else
13812	allow_undefined_flag_F77=' -expect_unresolved \*'
13813	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'
13814      fi
13815      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13816      hardcode_libdir_separator_F77=:
13817      ;;
13818
13819    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13820      if test "$GCC" = yes; then
13821	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13822	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'
13823	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13824      else
13825	allow_undefined_flag_F77=' -expect_unresolved \*'
13826	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'
13827	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~
13828	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13829
13830	# Both c and cxx compiler support -rpath directly
13831	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13832      fi
13833      hardcode_libdir_separator_F77=:
13834      ;;
13835
13836    sco3.2v5*)
13837      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13838      hardcode_shlibpath_var_F77=no
13839      export_dynamic_flag_spec_F77='${wl}-Bexport'
13840      runpath_var=LD_RUN_PATH
13841      hardcode_runpath_var=yes
13842      ;;
13843
13844    solaris*)
13845      no_undefined_flag_F77=' -z text'
13846      if test "$GCC" = yes; then
13847	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13848	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13849	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13850      else
13851	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13852	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13853  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13854      fi
13855      hardcode_libdir_flag_spec_F77='-R$libdir'
13856      hardcode_shlibpath_var_F77=no
13857      case $host_os in
13858      solaris2.[0-5] | solaris2.[0-5].*) ;;
13859      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13860	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13861      esac
13862      link_all_deplibs_F77=yes
13863      ;;
13864
13865    sunos4*)
13866      if test "x$host_vendor" = xsequent; then
13867	# Use $CC to link under sequent, because it throws in some extra .o
13868	# files that make .init and .fini sections work.
13869	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13870      else
13871	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13872      fi
13873      hardcode_libdir_flag_spec_F77='-L$libdir'
13874      hardcode_direct_F77=yes
13875      hardcode_minus_L_F77=yes
13876      hardcode_shlibpath_var_F77=no
13877      ;;
13878
13879    sysv4)
13880      case $host_vendor in
13881	sni)
13882	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883	  hardcode_direct_F77=yes # is this really true???
13884	;;
13885	siemens)
13886	  ## LD is ld it makes a PLAMLIB
13887	  ## CC just makes a GrossModule.
13888	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13889	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13890	  hardcode_direct_F77=no
13891        ;;
13892	motorola)
13893	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13895	;;
13896      esac
13897      runpath_var='LD_RUN_PATH'
13898      hardcode_shlibpath_var_F77=no
13899      ;;
13900
13901    sysv4.3*)
13902      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903      hardcode_shlibpath_var_F77=no
13904      export_dynamic_flag_spec_F77='-Bexport'
13905      ;;
13906
13907    sysv4*MP*)
13908      if test -d /usr/nec; then
13909	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13910	hardcode_shlibpath_var_F77=no
13911	runpath_var=LD_RUN_PATH
13912	hardcode_runpath_var=yes
13913	ld_shlibs_F77=yes
13914      fi
13915      ;;
13916
13917    sysv4.2uw2*)
13918      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13919      hardcode_direct_F77=yes
13920      hardcode_minus_L_F77=no
13921      hardcode_shlibpath_var_F77=no
13922      hardcode_runpath_var=yes
13923      runpath_var=LD_RUN_PATH
13924      ;;
13925
13926   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13927      no_undefined_flag_F77='${wl}-z ${wl}text'
13928      if test "$GCC" = yes; then
13929	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13930      else
13931	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13932      fi
13933      runpath_var='LD_RUN_PATH'
13934      hardcode_shlibpath_var_F77=no
13935      ;;
13936
13937    sysv5*)
13938      no_undefined_flag_F77=' -z text'
13939      # $CC -shared without GNU ld will not create a library from C++
13940      # object files and a static libstdc++, better avoid it by now
13941      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13943  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13944      hardcode_libdir_flag_spec_F77=
13945      hardcode_shlibpath_var_F77=no
13946      runpath_var='LD_RUN_PATH'
13947      ;;
13948
13949    uts4*)
13950      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951      hardcode_libdir_flag_spec_F77='-L$libdir'
13952      hardcode_shlibpath_var_F77=no
13953      ;;
13954
13955    *)
13956      ld_shlibs_F77=no
13957      ;;
13958    esac
13959  fi
13960
13961echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13962echo "${ECHO_T}$ld_shlibs_F77" >&6
13963test "$ld_shlibs_F77" = no && can_build_shared=no
13964
13965variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13966if test "$GCC" = yes; then
13967  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13968fi
13969
13970#
13971# Do we need to explicitly link libc?
13972#
13973case "x$archive_cmds_need_lc_F77" in
13974x|xyes)
13975  # Assume -lc should be added
13976  archive_cmds_need_lc_F77=yes
13977
13978  if test "$enable_shared" = yes && test "$GCC" = yes; then
13979    case $archive_cmds_F77 in
13980    *'~'*)
13981      # FIXME: we may have to deal with multi-command sequences.
13982      ;;
13983    '$CC '*)
13984      # Test whether the compiler implicitly links with -lc since on some
13985      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13986      # to ld, don't add -lc before -lgcc.
13987      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13988echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13989      $rm conftest*
13990      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13991
13992      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993  (eval $ac_compile) 2>&5
13994  ac_status=$?
13995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996  (exit $ac_status); } 2>conftest.err; then
13997        soname=conftest
13998        lib=conftest
13999        libobjs=conftest.$ac_objext
14000        deplibs=
14001        wl=$lt_prog_compiler_wl_F77
14002        compiler_flags=-v
14003        linker_flags=-v
14004        verstring=
14005        output_objdir=.
14006        libname=conftest
14007        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14008        allow_undefined_flag_F77=
14009        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14010  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14011  ac_status=$?
14012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013  (exit $ac_status); }
14014        then
14015	  archive_cmds_need_lc_F77=no
14016        else
14017	  archive_cmds_need_lc_F77=yes
14018        fi
14019        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14020      else
14021        cat conftest.err 1>&5
14022      fi
14023      $rm conftest*
14024      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14025echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14026      ;;
14027    esac
14028  fi
14029  ;;
14030esac
14031
14032echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14033echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14034hardcode_action_F77=
14035if test -n "$hardcode_libdir_flag_spec_F77" || \
14036   test -n "$runpath_var F77" || \
14037   test "X$hardcode_automatic_F77"="Xyes" ; then
14038
14039  # We can hardcode non-existant directories.
14040  if test "$hardcode_direct_F77" != no &&
14041     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14042     # have to relink, otherwise we might link with an installed library
14043     # when we should be linking with a yet-to-be-installed one
14044     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14045     test "$hardcode_minus_L_F77" != no; then
14046    # Linking always hardcodes the temporary library directory.
14047    hardcode_action_F77=relink
14048  else
14049    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14050    hardcode_action_F77=immediate
14051  fi
14052else
14053  # We cannot hardcode anything, or else we can only hardcode existing
14054  # directories.
14055  hardcode_action_F77=unsupported
14056fi
14057echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14058echo "${ECHO_T}$hardcode_action_F77" >&6
14059
14060if test "$hardcode_action_F77" = relink; then
14061  # Fast installation is not supported
14062  enable_fast_install=no
14063elif test "$shlibpath_overrides_runpath" = yes ||
14064     test "$enable_shared" = no; then
14065  # Fast installation is not necessary
14066  enable_fast_install=needless
14067fi
14068
14069striplib=
14070old_striplib=
14071echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14072echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14073if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14074  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14075  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14076  echo "$as_me:$LINENO: result: yes" >&5
14077echo "${ECHO_T}yes" >&6
14078else
14079# FIXME - insert some real tests, host_os isn't really good enough
14080  case $host_os in
14081   darwin*)
14082       if test -n "$STRIP" ; then
14083         striplib="$STRIP -x"
14084         echo "$as_me:$LINENO: result: yes" >&5
14085echo "${ECHO_T}yes" >&6
14086       else
14087  echo "$as_me:$LINENO: result: no" >&5
14088echo "${ECHO_T}no" >&6
14089fi
14090       ;;
14091   *)
14092  echo "$as_me:$LINENO: result: no" >&5
14093echo "${ECHO_T}no" >&6
14094    ;;
14095  esac
14096fi
14097
14098echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14099echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14100library_names_spec=
14101libname_spec='lib$name'
14102soname_spec=
14103shrext=".so"
14104postinstall_cmds=
14105postuninstall_cmds=
14106finish_cmds=
14107finish_eval=
14108shlibpath_var=
14109shlibpath_overrides_runpath=unknown
14110version_type=none
14111dynamic_linker="$host_os ld.so"
14112sys_lib_dlsearch_path_spec="/lib /usr/lib"
14113if test "$GCC" = yes; then
14114  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14115  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14116    # if the path contains ";" then we assume it to be the separator
14117    # otherwise default to the standard path separator (i.e. ":") - it is
14118    # assumed that no part of a normal pathname contains ";" but that should
14119    # okay in the real world where ";" in dirpaths is itself problematic.
14120    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14121  else
14122    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14123  fi
14124else
14125  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14126fi
14127need_lib_prefix=unknown
14128hardcode_into_libs=no
14129
14130# when you set need_version to no, make sure it does not cause -set_version
14131# flags to be left without arguments
14132need_version=unknown
14133
14134case $host_os in
14135aix3*)
14136  version_type=linux
14137  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14138  shlibpath_var=LIBPATH
14139
14140  # AIX 3 has no versioning support, so we append a major version to the name.
14141  soname_spec='${libname}${release}${shared_ext}$major'
14142  ;;
14143
14144aix4* | aix5*)
14145  version_type=linux
14146  need_lib_prefix=no
14147  need_version=no
14148  hardcode_into_libs=yes
14149  if test "$host_cpu" = ia64; then
14150    # AIX 5 supports IA64
14151    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14152    shlibpath_var=LD_LIBRARY_PATH
14153  else
14154    # With GCC up to 2.95.x, collect2 would create an import file
14155    # for dependence libraries.  The import file would start with
14156    # the line `#! .'.  This would cause the generated library to
14157    # depend on `.', always an invalid library.  This was fixed in
14158    # development snapshots of GCC prior to 3.0.
14159    case $host_os in
14160      aix4 | aix4.[01] | aix4.[01].*)
14161      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14162	   echo ' yes '
14163	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14164	:
14165      else
14166	can_build_shared=no
14167      fi
14168      ;;
14169    esac
14170    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14171    # soname into executable. Probably we can add versioning support to
14172    # collect2, so additional links can be useful in future.
14173    if test "$aix_use_runtimelinking" = yes; then
14174      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14175      # instead of lib<name>.a to let people know that these are not
14176      # typical AIX shared libraries.
14177      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178    else
14179      # We preserve .a as extension for shared libraries through AIX4.2
14180      # and later when we are not doing run time linking.
14181      library_names_spec='${libname}${release}.a $libname.a'
14182      soname_spec='${libname}${release}${shared_ext}$major'
14183    fi
14184    shlibpath_var=LIBPATH
14185  fi
14186  ;;
14187
14188amigaos*)
14189  library_names_spec='$libname.ixlibrary $libname.a'
14190  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14191  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'
14192  ;;
14193
14194beos*)
14195  library_names_spec='${libname}${shared_ext}'
14196  dynamic_linker="$host_os ld.so"
14197  shlibpath_var=LIBRARY_PATH
14198  ;;
14199
14200bsdi4*)
14201  version_type=linux
14202  need_version=no
14203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204  soname_spec='${libname}${release}${shared_ext}$major'
14205  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14206  shlibpath_var=LD_LIBRARY_PATH
14207  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14208  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14209  # the default ld.so.conf also contains /usr/contrib/lib and
14210  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14211  # libtool to hard-code these into programs
14212  ;;
14213
14214cygwin* | mingw* | pw32*)
14215  version_type=windows
14216  shrext=".dll"
14217  need_version=no
14218  need_lib_prefix=no
14219
14220  case $GCC,$host_os in
14221  yes,cygwin* | yes,mingw* | yes,pw32*)
14222    library_names_spec='$libname.dll.a'
14223    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14224    postinstall_cmds='base_file=`basename \${file}`~
14225      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14226      dldir=$destdir/`dirname \$dlpath`~
14227      test -d \$dldir || mkdir -p \$dldir~
14228      $install_prog $dir/$dlname \$dldir/$dlname'
14229    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14230      dlpath=$dir/\$dldll~
14231       $rm \$dlpath'
14232    shlibpath_overrides_runpath=yes
14233
14234    case $host_os in
14235    cygwin*)
14236      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14237      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14238      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14239      ;;
14240    mingw*)
14241      # MinGW DLLs use traditional 'lib' prefix
14242      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14244      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14245        # It is most probably a Windows format PATH printed by
14246        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14247        # path with ; separators, and with drive letters. We can handle the
14248        # drive letters (cygwin fileutils understands them), so leave them,
14249        # especially as we might pass files found there to a mingw objdump,
14250        # which wouldn't understand a cygwinified path. Ahh.
14251        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14252      else
14253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14254      fi
14255      ;;
14256    pw32*)
14257      # pw32 DLLs use 'pw' prefix rather than 'lib'
14258      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14259      ;;
14260    esac
14261    ;;
14262
14263  *)
14264    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14265    ;;
14266  esac
14267  dynamic_linker='Win32 ld.exe'
14268  # FIXME: first we should search . and the directory the executable is in
14269  shlibpath_var=PATH
14270  ;;
14271
14272darwin* | rhapsody*)
14273  dynamic_linker="$host_os dyld"
14274  version_type=darwin
14275  need_lib_prefix=no
14276  need_version=no
14277  # FIXME: Relying on posixy $() will cause problems for
14278  #        cross-compilation, but unfortunately the echo tests do not
14279  #        yet detect zsh echo's removal of \ escapes.
14280  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14281  soname_spec='${libname}${release}${major}$shared_ext'
14282  shlibpath_overrides_runpath=yes
14283  shlibpath_var=DYLD_LIBRARY_PATH
14284  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14285  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14286  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14287  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"`
14288  fi
14289  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14290  ;;
14291
14292dgux*)
14293  version_type=linux
14294  need_lib_prefix=no
14295  need_version=no
14296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14297  soname_spec='${libname}${release}${shared_ext}$major'
14298  shlibpath_var=LD_LIBRARY_PATH
14299  ;;
14300
14301freebsd1*)
14302  dynamic_linker=no
14303  ;;
14304
14305freebsd*)
14306  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14307  version_type=freebsd-$objformat
14308  case $version_type in
14309    freebsd-elf*)
14310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14311      need_version=no
14312      need_lib_prefix=no
14313      ;;
14314    freebsd-*)
14315      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14316      need_version=yes
14317      ;;
14318  esac
14319  shlibpath_var=LD_LIBRARY_PATH
14320  case $host_os in
14321  freebsd2*)
14322    shlibpath_overrides_runpath=yes
14323    ;;
14324  freebsd3.01* | freebsdelf3.01*)
14325    shlibpath_overrides_runpath=yes
14326    hardcode_into_libs=yes
14327    ;;
14328  *) # from 3.2 on
14329    shlibpath_overrides_runpath=no
14330    hardcode_into_libs=yes
14331    ;;
14332  esac
14333  ;;
14334
14335gnu*)
14336  version_type=linux
14337  need_lib_prefix=no
14338  need_version=no
14339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14340  soname_spec='${libname}${release}${shared_ext}$major'
14341  shlibpath_var=LD_LIBRARY_PATH
14342  hardcode_into_libs=yes
14343  ;;
14344
14345hpux9* | hpux10* | hpux11*)
14346  # Give a soname corresponding to the major version so that dld.sl refuses to
14347  # link against other versions.
14348  version_type=sunos
14349  need_lib_prefix=no
14350  need_version=no
14351  case "$host_cpu" in
14352  ia64*)
14353    shrext='.so'
14354    hardcode_into_libs=yes
14355    dynamic_linker="$host_os dld.so"
14356    shlibpath_var=LD_LIBRARY_PATH
14357    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359    soname_spec='${libname}${release}${shared_ext}$major'
14360    if test "X$HPUX_IA64_MODE" = X32; then
14361      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14362    else
14363      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14364    fi
14365    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14366    ;;
14367   hppa*64*)
14368     shrext='.sl'
14369     hardcode_into_libs=yes
14370     dynamic_linker="$host_os dld.sl"
14371     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374     soname_spec='${libname}${release}${shared_ext}$major'
14375     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14376     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14377     ;;
14378   *)
14379    shrext='.sl'
14380    dynamic_linker="$host_os dld.sl"
14381    shlibpath_var=SHLIB_PATH
14382    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384    soname_spec='${libname}${release}${shared_ext}$major'
14385    ;;
14386  esac
14387  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14388  postinstall_cmds='chmod 555 $lib'
14389  ;;
14390
14391irix5* | irix6* | nonstopux*)
14392  case $host_os in
14393    nonstopux*) version_type=nonstopux ;;
14394    *)
14395	if test "$lt_cv_prog_gnu_ld" = yes; then
14396		version_type=linux
14397	else
14398		version_type=irix
14399	fi ;;
14400  esac
14401  need_lib_prefix=no
14402  need_version=no
14403  soname_spec='${libname}${release}${shared_ext}$major'
14404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14405  case $host_os in
14406  irix5* | nonstopux*)
14407    libsuff= shlibsuff=
14408    ;;
14409  *)
14410    case $LD in # libtool.m4 will add one of these switches to LD
14411    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14412      libsuff= shlibsuff= libmagic=32-bit;;
14413    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14414      libsuff=32 shlibsuff=N32 libmagic=N32;;
14415    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14416      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14417    *) libsuff= shlibsuff= libmagic=never-match;;
14418    esac
14419    ;;
14420  esac
14421  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14422  shlibpath_overrides_runpath=no
14423  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14424  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14425  hardcode_into_libs=yes
14426  ;;
14427
14428# No shared lib support for Linux oldld, aout, or coff.
14429linux*oldld* | linux*aout* | linux*coff*)
14430  dynamic_linker=no
14431  ;;
14432
14433# This must be Linux ELF.
14434linux*)
14435  version_type=linux
14436  need_lib_prefix=no
14437  need_version=no
14438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439  soname_spec='${libname}${release}${shared_ext}$major'
14440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14441  shlibpath_var=LD_LIBRARY_PATH
14442  shlibpath_overrides_runpath=no
14443  # This implies no fast_install, which is unacceptable.
14444  # Some rework will be needed to allow for fast_install
14445  # before this can be enabled.
14446  hardcode_into_libs=yes
14447
14448  # We used to test for /lib/ld.so.1 and disable shared libraries on
14449  # powerpc, because MkLinux only supported shared libraries with the
14450  # GNU dynamic linker.  Since this was broken with cross compilers,
14451  # most powerpc-linux boxes support dynamic linking these days and
14452  # people can always --disable-shared, the test was removed, and we
14453  # assume the GNU/Linux dynamic linker is in use.
14454  dynamic_linker='GNU/Linux ld.so'
14455  ;;
14456
14457netbsd*)
14458  version_type=sunos
14459  need_lib_prefix=no
14460  need_version=no
14461  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14463    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14464    dynamic_linker='NetBSD (a.out) ld.so'
14465  else
14466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14467    soname_spec='${libname}${release}${shared_ext}$major'
14468    dynamic_linker='NetBSD ld.elf_so'
14469  fi
14470  shlibpath_var=LD_LIBRARY_PATH
14471  shlibpath_overrides_runpath=yes
14472  hardcode_into_libs=yes
14473  ;;
14474
14475newsos6)
14476  version_type=linux
14477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478  shlibpath_var=LD_LIBRARY_PATH
14479  shlibpath_overrides_runpath=yes
14480  ;;
14481
14482nto-qnx)
14483  version_type=linux
14484  need_lib_prefix=no
14485  need_version=no
14486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487  soname_spec='${libname}${release}${shared_ext}$major'
14488  shlibpath_var=LD_LIBRARY_PATH
14489  shlibpath_overrides_runpath=yes
14490  ;;
14491
14492openbsd*)
14493  version_type=sunos
14494  need_lib_prefix=no
14495  need_version=no
14496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14498  shlibpath_var=LD_LIBRARY_PATH
14499  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14500    case $host_os in
14501      openbsd2.[89] | openbsd2.[89].*)
14502	shlibpath_overrides_runpath=no
14503	;;
14504      *)
14505	shlibpath_overrides_runpath=yes
14506	;;
14507      esac
14508  else
14509    shlibpath_overrides_runpath=yes
14510  fi
14511  ;;
14512
14513os2*)
14514  libname_spec='$name'
14515  shrext=".dll"
14516  need_lib_prefix=no
14517  library_names_spec='$libname${shared_ext} $libname.a'
14518  dynamic_linker='OS/2 ld.exe'
14519  shlibpath_var=LIBPATH
14520  ;;
14521
14522osf3* | osf4* | osf5*)
14523  version_type=osf
14524  need_lib_prefix=no
14525  need_version=no
14526  soname_spec='${libname}${release}${shared_ext}$major'
14527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528  shlibpath_var=LD_LIBRARY_PATH
14529  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14530  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14531  ;;
14532
14533sco3.2v5*)
14534  version_type=osf
14535  soname_spec='${libname}${release}${shared_ext}$major'
14536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537  shlibpath_var=LD_LIBRARY_PATH
14538  ;;
14539
14540solaris*)
14541  version_type=linux
14542  need_lib_prefix=no
14543  need_version=no
14544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545  soname_spec='${libname}${release}${shared_ext}$major'
14546  shlibpath_var=LD_LIBRARY_PATH
14547  shlibpath_overrides_runpath=yes
14548  hardcode_into_libs=yes
14549  # ldd complains unless libraries are executable
14550  postinstall_cmds='chmod +x $lib'
14551  ;;
14552
14553sunos4*)
14554  version_type=sunos
14555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14556  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14557  shlibpath_var=LD_LIBRARY_PATH
14558  shlibpath_overrides_runpath=yes
14559  if test "$with_gnu_ld" = yes; then
14560    need_lib_prefix=no
14561  fi
14562  need_version=yes
14563  ;;
14564
14565sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14566  version_type=linux
14567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568  soname_spec='${libname}${release}${shared_ext}$major'
14569  shlibpath_var=LD_LIBRARY_PATH
14570  case $host_vendor in
14571    sni)
14572      shlibpath_overrides_runpath=no
14573      need_lib_prefix=no
14574      export_dynamic_flag_spec='${wl}-Blargedynsym'
14575      runpath_var=LD_RUN_PATH
14576      ;;
14577    siemens)
14578      need_lib_prefix=no
14579      ;;
14580    motorola)
14581      need_lib_prefix=no
14582      need_version=no
14583      shlibpath_overrides_runpath=no
14584      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14585      ;;
14586  esac
14587  ;;
14588
14589sysv4*MP*)
14590  if test -d /usr/nec ;then
14591    version_type=linux
14592    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14593    soname_spec='$libname${shared_ext}.$major'
14594    shlibpath_var=LD_LIBRARY_PATH
14595  fi
14596  ;;
14597
14598uts4*)
14599  version_type=linux
14600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601  soname_spec='${libname}${release}${shared_ext}$major'
14602  shlibpath_var=LD_LIBRARY_PATH
14603  ;;
14604
14605*)
14606  dynamic_linker=no
14607  ;;
14608esac
14609echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14610echo "${ECHO_T}$dynamic_linker" >&6
14611test "$dynamic_linker" = no && can_build_shared=no
14612
14613
14614# The else clause should only fire when bootstrapping the
14615# libtool distribution, otherwise you forgot to ship ltmain.sh
14616# with your package, and you will get complaints that there are
14617# no rules to generate ltmain.sh.
14618if test -f "$ltmain"; then
14619  # See if we are running on zsh, and set the options which allow our commands through
14620  # without removal of \ escapes.
14621  if test -n "${ZSH_VERSION+set}" ; then
14622    setopt NO_GLOB_SUBST
14623  fi
14624  # Now quote all the things that may contain metacharacters while being
14625  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14626  # variables and quote the copies for generation of the libtool script.
14627  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14628    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14629    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14630    deplibs_check_method reload_flag reload_cmds need_locks \
14631    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14632    lt_cv_sys_global_symbol_to_c_name_address \
14633    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14634    old_postinstall_cmds old_postuninstall_cmds \
14635    compiler_F77 \
14636    CC_F77 \
14637    LD_F77 \
14638    lt_prog_compiler_wl_F77 \
14639    lt_prog_compiler_pic_F77 \
14640    lt_prog_compiler_static_F77 \
14641    lt_prog_compiler_no_builtin_flag_F77 \
14642    export_dynamic_flag_spec_F77 \
14643    thread_safe_flag_spec_F77 \
14644    whole_archive_flag_spec_F77 \
14645    enable_shared_with_static_runtimes_F77 \
14646    old_archive_cmds_F77 \
14647    old_archive_from_new_cmds_F77 \
14648    predep_objects_F77 \
14649    postdep_objects_F77 \
14650    predeps_F77 \
14651    postdeps_F77 \
14652    compiler_lib_search_path_F77 \
14653    archive_cmds_F77 \
14654    archive_expsym_cmds_F77 \
14655    postinstall_cmds_F77 \
14656    postuninstall_cmds_F77 \
14657    old_archive_from_expsyms_cmds_F77 \
14658    allow_undefined_flag_F77 \
14659    no_undefined_flag_F77 \
14660    export_symbols_cmds_F77 \
14661    hardcode_libdir_flag_spec_F77 \
14662    hardcode_libdir_flag_spec_ld_F77 \
14663    hardcode_libdir_separator_F77 \
14664    hardcode_automatic_F77 \
14665    module_cmds_F77 \
14666    module_expsym_cmds_F77 \
14667    lt_cv_prog_compiler_c_o_F77 \
14668    exclude_expsyms_F77 \
14669    include_expsyms_F77; do
14670
14671    case $var in
14672    old_archive_cmds_F77 | \
14673    old_archive_from_new_cmds_F77 | \
14674    archive_cmds_F77 | \
14675    archive_expsym_cmds_F77 | \
14676    module_cmds_F77 | \
14677    module_expsym_cmds_F77 | \
14678    old_archive_from_expsyms_cmds_F77 | \
14679    export_symbols_cmds_F77 | \
14680    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14681    postinstall_cmds | postuninstall_cmds | \
14682    old_postinstall_cmds | old_postuninstall_cmds | \
14683    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14684      # Double-quote double-evaled strings.
14685      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14686      ;;
14687    *)
14688      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14689      ;;
14690    esac
14691  done
14692
14693  case $lt_echo in
14694  *'\$0 --fallback-echo"')
14695    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14696    ;;
14697  esac
14698
14699cfgfile="$ofile"
14700
14701  cat <<__EOF__ >> "$cfgfile"
14702# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14703
14704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14705
14706# Shell to use when invoking shell scripts.
14707SHELL=$lt_SHELL
14708
14709# Whether or not to build shared libraries.
14710build_libtool_libs=$enable_shared
14711
14712# Whether or not to build static libraries.
14713build_old_libs=$enable_static
14714
14715# Whether or not to add -lc for building shared libraries.
14716build_libtool_need_lc=$archive_cmds_need_lc_F77
14717
14718# Whether or not to disallow shared libs when runtime libs are static
14719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14720
14721# Whether or not to optimize for fast installation.
14722fast_install=$enable_fast_install
14723
14724# The host system.
14725host_alias=$host_alias
14726host=$host
14727
14728# An echo program that does not interpret backslashes.
14729echo=$lt_echo
14730
14731# The archiver.
14732AR=$lt_AR
14733AR_FLAGS=$lt_AR_FLAGS
14734
14735# A C compiler.
14736LTCC=$lt_LTCC
14737
14738# A language-specific compiler.
14739CC=$lt_compiler_F77
14740
14741# Is the compiler the GNU C compiler?
14742with_gcc=$GCC_F77
14743
14744# An ERE matcher.
14745EGREP=$lt_EGREP
14746
14747# The linker used to build libraries.
14748LD=$lt_LD_F77
14749
14750# Whether we need hard or soft links.
14751LN_S=$lt_LN_S
14752
14753# A BSD-compatible nm program.
14754NM=$lt_NM
14755
14756# A symbol stripping program
14757STRIP=$STRIP
14758
14759# Used to examine libraries when file_magic_cmd begins "file"
14760MAGIC_CMD=$MAGIC_CMD
14761
14762# Used on cygwin: DLL creation program.
14763DLLTOOL="$DLLTOOL"
14764
14765# Used on cygwin: object dumper.
14766OBJDUMP="$OBJDUMP"
14767
14768# Used on cygwin: assembler.
14769AS="$AS"
14770
14771# The name of the directory that contains temporary libtool files.
14772objdir=$objdir
14773
14774# How to create reloadable object files.
14775reload_flag=$lt_reload_flag
14776reload_cmds=$lt_reload_cmds
14777
14778# How to pass a linker flag through the compiler.
14779wl=$lt_lt_prog_compiler_wl_F77
14780
14781# Object file suffix (normally "o").
14782objext="$ac_objext"
14783
14784# Old archive suffix (normally "a").
14785libext="$libext"
14786
14787# Shared library suffix (normally ".so").
14788shrext='$shrext'
14789
14790# Executable file suffix (normally "").
14791exeext="$exeext"
14792
14793# Additional compiler flags for building library objects.
14794pic_flag=$lt_lt_prog_compiler_pic_F77
14795pic_mode=$pic_mode
14796
14797# What is the maximum length of a command?
14798max_cmd_len=$lt_cv_sys_max_cmd_len
14799
14800# Does compiler simultaneously support -c and -o options?
14801compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14802
14803# Must we lock files when doing compilation ?
14804need_locks=$lt_need_locks
14805
14806# Do we need the lib prefix for modules?
14807need_lib_prefix=$need_lib_prefix
14808
14809# Do we need a version for libraries?
14810need_version=$need_version
14811
14812# Whether dlopen is supported.
14813dlopen_support=$enable_dlopen
14814
14815# Whether dlopen of programs is supported.
14816dlopen_self=$enable_dlopen_self
14817
14818# Whether dlopen of statically linked programs is supported.
14819dlopen_self_static=$enable_dlopen_self_static
14820
14821# Compiler flag to prevent dynamic linking.
14822link_static_flag=$lt_lt_prog_compiler_static_F77
14823
14824# Compiler flag to turn off builtin functions.
14825no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14826
14827# Compiler flag to allow reflexive dlopens.
14828export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14829
14830# Compiler flag to generate shared objects directly from archives.
14831whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14832
14833# Compiler flag to generate thread-safe objects.
14834thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14835
14836# Library versioning type.
14837version_type=$version_type
14838
14839# Format of library name prefix.
14840libname_spec=$lt_libname_spec
14841
14842# List of archive names.  First name is the real one, the rest are links.
14843# The last name is the one that the linker finds with -lNAME.
14844library_names_spec=$lt_library_names_spec
14845
14846# The coded name of the library, if different from the real name.
14847soname_spec=$lt_soname_spec
14848
14849# Commands used to build and install an old-style archive.
14850RANLIB=$lt_RANLIB
14851old_archive_cmds=$lt_old_archive_cmds_F77
14852old_postinstall_cmds=$lt_old_postinstall_cmds
14853old_postuninstall_cmds=$lt_old_postuninstall_cmds
14854
14855# Create an old-style archive from a shared archive.
14856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14857
14858# Create a temporary old-style archive to link instead of a shared archive.
14859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14860
14861# Commands used to build and install a shared archive.
14862archive_cmds=$lt_archive_cmds_F77
14863archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14864postinstall_cmds=$lt_postinstall_cmds
14865postuninstall_cmds=$lt_postuninstall_cmds
14866
14867# Commands used to build a loadable module (assumed same as above if empty)
14868module_cmds=$lt_module_cmds_F77
14869module_expsym_cmds=$lt_module_expsym_cmds_F77
14870
14871# Commands to strip libraries.
14872old_striplib=$lt_old_striplib
14873striplib=$lt_striplib
14874
14875# Dependencies to place before the objects being linked to create a
14876# shared library.
14877predep_objects=$lt_predep_objects_F77
14878
14879# Dependencies to place after the objects being linked to create a
14880# shared library.
14881postdep_objects=$lt_postdep_objects_F77
14882
14883# Dependencies to place before the objects being linked to create a
14884# shared library.
14885predeps=$lt_predeps_F77
14886
14887# Dependencies to place after the objects being linked to create a
14888# shared library.
14889postdeps=$lt_postdeps_F77
14890
14891# The library search path used internally by the compiler when linking
14892# a shared library.
14893compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14894
14895# Method to check whether dependent libraries are shared objects.
14896deplibs_check_method=$lt_deplibs_check_method
14897
14898# Command to use when deplibs_check_method == file_magic.
14899file_magic_cmd=$lt_file_magic_cmd
14900
14901# Flag that allows shared libraries with undefined symbols to be built.
14902allow_undefined_flag=$lt_allow_undefined_flag_F77
14903
14904# Flag that forces no undefined symbols.
14905no_undefined_flag=$lt_no_undefined_flag_F77
14906
14907# Commands used to finish a libtool library installation in a directory.
14908finish_cmds=$lt_finish_cmds
14909
14910# Same as above, but a single script fragment to be evaled but not shown.
14911finish_eval=$lt_finish_eval
14912
14913# Take the output of nm and produce a listing of raw symbols and C names.
14914global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14915
14916# Transform the output of nm in a proper C declaration
14917global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14918
14919# Transform the output of nm in a C name address pair
14920global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14921
14922# This is the shared library runtime path variable.
14923runpath_var=$runpath_var
14924
14925# This is the shared library path variable.
14926shlibpath_var=$shlibpath_var
14927
14928# Is shlibpath searched before the hard-coded library search path?
14929shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14930
14931# How to hardcode a shared library path into an executable.
14932hardcode_action=$hardcode_action_F77
14933
14934# Whether we should hardcode library paths into libraries.
14935hardcode_into_libs=$hardcode_into_libs
14936
14937# Flag to hardcode \$libdir into a binary during linking.
14938# This must work even if \$libdir does not exist.
14939hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14940
14941# If ld is used when linking, flag to hardcode \$libdir into
14942# a binary during linking. This must work even if \$libdir does
14943# not exist.
14944hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14945
14946# Whether we need a single -rpath flag with a separated argument.
14947hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14948
14949# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14950# resulting binary.
14951hardcode_direct=$hardcode_direct_F77
14952
14953# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14954# resulting binary.
14955hardcode_minus_L=$hardcode_minus_L_F77
14956
14957# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14958# the resulting binary.
14959hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14960
14961# Set to yes if building a shared library automatically hardcodes DIR into the library
14962# and all subsequent libraries and executables linked against it.
14963hardcode_automatic=$hardcode_automatic_F77
14964
14965# Variables whose values should be saved in libtool wrapper scripts and
14966# restored at relink time.
14967variables_saved_for_relink="$variables_saved_for_relink"
14968
14969# Whether libtool must link a program against all its dependency libraries.
14970link_all_deplibs=$link_all_deplibs_F77
14971
14972# Compile-time system search path for libraries
14973sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14974
14975# Run-time system search path for libraries
14976sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14977
14978# Fix the shell variable \$srcfile for the compiler.
14979fix_srcfile_path="$fix_srcfile_path_F77"
14980
14981# Set to yes if exported symbols are required.
14982always_export_symbols=$always_export_symbols_F77
14983
14984# The commands to list exported symbols.
14985export_symbols_cmds=$lt_export_symbols_cmds_F77
14986
14987# The commands to extract the exported symbol list from a shared archive.
14988extract_expsyms_cmds=$lt_extract_expsyms_cmds
14989
14990# Symbols that should not be listed in the preloaded symbols.
14991exclude_expsyms=$lt_exclude_expsyms_F77
14992
14993# Symbols that must always be exported.
14994include_expsyms=$lt_include_expsyms_F77
14995
14996# ### END LIBTOOL TAG CONFIG: $tagname
14997
14998__EOF__
14999
15000
15001else
15002  # If there is no Makefile yet, we rely on a make rule to execute
15003  # `config.status --recheck' to rerun these tests and create the
15004  # libtool script then.
15005  test -f Makefile && make "$ltmain"
15006fi
15007
15008
15009ac_ext=c
15010ac_cpp='$CPP $CPPFLAGS'
15011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15013ac_compiler_gnu=$ac_cv_c_compiler_gnu
15014
15015CC="$lt_save_CC"
15016
15017	else
15018	  tagname=""
15019	fi
15020	;;
15021
15022      GCJ)
15023	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15024
15025
15026
15027# Source file extension for Java test sources.
15028ac_ext=java
15029
15030# Object file extension for compiled Java test sources.
15031objext=o
15032objext_GCJ=$objext
15033
15034# Code to be used in simple compile tests
15035lt_simple_compile_test_code="class foo {}\n"
15036
15037# Code to be used in simple link tests
15038lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15039
15040# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15041
15042# If no C compiler was specified, use CC.
15043LTCC=${LTCC-"$CC"}
15044
15045# Allow CC to be a program name with arguments.
15046compiler=$CC
15047
15048
15049# Allow CC to be a program name with arguments.
15050lt_save_CC="$CC"
15051CC=${GCJ-"gcj"}
15052compiler=$CC
15053compiler_GCJ=$CC
15054
15055# GCJ did not exist at the time GCC didn't implicitly link libc in.
15056archive_cmds_need_lc_GCJ=no
15057
15058
15059lt_prog_compiler_no_builtin_flag_GCJ=
15060
15061if test "$GCC" = yes; then
15062  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15063
15064  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15065echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15066if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15067  echo $ECHO_N "(cached) $ECHO_C" >&6
15068else
15069  lt_cv_prog_compiler_rtti_exceptions=no
15070  ac_outfile=conftest.$ac_objext
15071   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15072   lt_compiler_flag="-fno-rtti -fno-exceptions"
15073   # Insert the option either (1) after the last *FLAGS variable, or
15074   # (2) before a word containing "conftest.", or (3) at the end.
15075   # Note that $ac_compile itself does not contain backslashes and begins
15076   # with a dollar sign (not a hyphen), so the echo should work correctly.
15077   # The option is referenced via a variable to avoid confusing sed.
15078   lt_compile=`echo "$ac_compile" | $SED \
15079   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15081   -e 's:$: $lt_compiler_flag:'`
15082   (eval echo "\"\$as_me:15082: $lt_compile\"" >&5)
15083   (eval "$lt_compile" 2>conftest.err)
15084   ac_status=$?
15085   cat conftest.err >&5
15086   echo "$as_me:15086: \$? = $ac_status" >&5
15087   if (exit $ac_status) && test -s "$ac_outfile"; then
15088     # The compiler can only warn and ignore the option if not recognized
15089     # So say no if there are warnings
15090     if test ! -s conftest.err; then
15091       lt_cv_prog_compiler_rtti_exceptions=yes
15092     fi
15093   fi
15094   $rm conftest*
15095
15096fi
15097echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15098echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15099
15100if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15101    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15102else
15103    :
15104fi
15105
15106fi
15107
15108lt_prog_compiler_wl_GCJ=
15109lt_prog_compiler_pic_GCJ=
15110lt_prog_compiler_static_GCJ=
15111
15112echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15113echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15114
15115  if test "$GCC" = yes; then
15116    lt_prog_compiler_wl_GCJ='-Wl,'
15117    lt_prog_compiler_static_GCJ='-static'
15118
15119    case $host_os in
15120      aix*)
15121      # All AIX code is PIC.
15122      if test "$host_cpu" = ia64; then
15123	# AIX 5 now supports IA64 processor
15124	lt_prog_compiler_static_GCJ='-Bstatic'
15125      fi
15126      ;;
15127
15128    amigaos*)
15129      # FIXME: we need at least 68020 code to build shared libraries, but
15130      # adding the `-m68020' flag to GCC prevents building anything better,
15131      # like `-m68040'.
15132      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15133      ;;
15134
15135    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15136      # PIC is the default for these OSes.
15137      ;;
15138
15139    mingw* | pw32* | os2*)
15140      # This hack is so that the source file can tell whether it is being
15141      # built for inclusion in a dll (and should export symbols for example).
15142      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15143      ;;
15144
15145    darwin* | rhapsody*)
15146      # PIC is the default on this platform
15147      # Common symbols not allowed in MH_DYLIB files
15148      lt_prog_compiler_pic_GCJ='-fno-common'
15149      ;;
15150
15151    msdosdjgpp*)
15152      # Just because we use GCC doesn't mean we suddenly get shared libraries
15153      # on systems that don't support them.
15154      lt_prog_compiler_can_build_shared_GCJ=no
15155      enable_shared=no
15156      ;;
15157
15158    sysv4*MP*)
15159      if test -d /usr/nec; then
15160	lt_prog_compiler_pic_GCJ=-Kconform_pic
15161      fi
15162      ;;
15163
15164    hpux*)
15165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15166      # not for PA HP-UX.
15167      case "$host_cpu" in
15168      hppa*64*|ia64*)
15169	# +Z the default
15170	;;
15171      *)
15172	lt_prog_compiler_pic_GCJ='-fPIC'
15173	;;
15174      esac
15175      ;;
15176
15177    *)
15178      lt_prog_compiler_pic_GCJ='-fPIC'
15179      ;;
15180    esac
15181  else
15182    # PORTME Check for flag to pass linker flags through the system compiler.
15183    case $host_os in
15184    aix*)
15185      lt_prog_compiler_wl_GCJ='-Wl,'
15186      if test "$host_cpu" = ia64; then
15187	# AIX 5 now supports IA64 processor
15188	lt_prog_compiler_static_GCJ='-Bstatic'
15189      else
15190	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15191      fi
15192      ;;
15193
15194    mingw* | pw32* | os2*)
15195      # This hack is so that the source file can tell whether it is being
15196      # built for inclusion in a dll (and should export symbols for example).
15197      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15198      ;;
15199
15200    hpux9* | hpux10* | hpux11*)
15201      lt_prog_compiler_wl_GCJ='-Wl,'
15202      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15203      # not for PA HP-UX.
15204      case "$host_cpu" in
15205      hppa*64*|ia64*)
15206	# +Z the default
15207	;;
15208      *)
15209	lt_prog_compiler_pic_GCJ='+Z'
15210	;;
15211      esac
15212      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15213      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15214      ;;
15215
15216    irix5* | irix6* | nonstopux*)
15217      lt_prog_compiler_wl_GCJ='-Wl,'
15218      # PIC (with -KPIC) is the default.
15219      lt_prog_compiler_static_GCJ='-non_shared'
15220      ;;
15221
15222    newsos6)
15223      lt_prog_compiler_pic_GCJ='-KPIC'
15224      lt_prog_compiler_static_GCJ='-Bstatic'
15225      ;;
15226
15227    linux*)
15228      case $CC in
15229      icc|ecc)
15230	lt_prog_compiler_wl_GCJ='-Wl,'
15231	lt_prog_compiler_pic_GCJ='-KPIC'
15232	lt_prog_compiler_static_GCJ='-static'
15233        ;;
15234      ccc)
15235        lt_prog_compiler_wl_GCJ='-Wl,'
15236        # All Alpha code is PIC.
15237        lt_prog_compiler_static_GCJ='-non_shared'
15238        ;;
15239      esac
15240      ;;
15241
15242    osf3* | osf4* | osf5*)
15243      lt_prog_compiler_wl_GCJ='-Wl,'
15244      # All OSF/1 code is PIC.
15245      lt_prog_compiler_static_GCJ='-non_shared'
15246      ;;
15247
15248    sco3.2v5*)
15249      lt_prog_compiler_pic_GCJ='-Kpic'
15250      lt_prog_compiler_static_GCJ='-dn'
15251      ;;
15252
15253    solaris*)
15254      lt_prog_compiler_wl_GCJ='-Wl,'
15255      lt_prog_compiler_pic_GCJ='-KPIC'
15256      lt_prog_compiler_static_GCJ='-Bstatic'
15257      ;;
15258
15259    sunos4*)
15260      lt_prog_compiler_wl_GCJ='-Qoption ld '
15261      lt_prog_compiler_pic_GCJ='-PIC'
15262      lt_prog_compiler_static_GCJ='-Bstatic'
15263      ;;
15264
15265    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15266      lt_prog_compiler_wl_GCJ='-Wl,'
15267      lt_prog_compiler_pic_GCJ='-KPIC'
15268      lt_prog_compiler_static_GCJ='-Bstatic'
15269      ;;
15270
15271    sysv4*MP*)
15272      if test -d /usr/nec ;then
15273	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15274	lt_prog_compiler_static_GCJ='-Bstatic'
15275      fi
15276      ;;
15277
15278    uts4*)
15279      lt_prog_compiler_pic_GCJ='-pic'
15280      lt_prog_compiler_static_GCJ='-Bstatic'
15281      ;;
15282
15283    *)
15284      lt_prog_compiler_can_build_shared_GCJ=no
15285      ;;
15286    esac
15287  fi
15288
15289echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15290echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15291
15292#
15293# Check to make sure the PIC flag actually works.
15294#
15295if test -n "$lt_prog_compiler_pic_GCJ"; then
15296  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15297echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15298if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15299  echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301  lt_prog_compiler_pic_works_GCJ=no
15302  ac_outfile=conftest.$ac_objext
15303   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15304   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15305   # Insert the option either (1) after the last *FLAGS variable, or
15306   # (2) before a word containing "conftest.", or (3) at the end.
15307   # Note that $ac_compile itself does not contain backslashes and begins
15308   # with a dollar sign (not a hyphen), so the echo should work correctly.
15309   # The option is referenced via a variable to avoid confusing sed.
15310   lt_compile=`echo "$ac_compile" | $SED \
15311   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15312   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15313   -e 's:$: $lt_compiler_flag:'`
15314   (eval echo "\"\$as_me:15314: $lt_compile\"" >&5)
15315   (eval "$lt_compile" 2>conftest.err)
15316   ac_status=$?
15317   cat conftest.err >&5
15318   echo "$as_me:15318: \$? = $ac_status" >&5
15319   if (exit $ac_status) && test -s "$ac_outfile"; then
15320     # The compiler can only warn and ignore the option if not recognized
15321     # So say no if there are warnings
15322     if test ! -s conftest.err; then
15323       lt_prog_compiler_pic_works_GCJ=yes
15324     fi
15325   fi
15326   $rm conftest*
15327
15328fi
15329echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15330echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15331
15332if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15333    case $lt_prog_compiler_pic_GCJ in
15334     "" | " "*) ;;
15335     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15336     esac
15337else
15338    lt_prog_compiler_pic_GCJ=
15339     lt_prog_compiler_can_build_shared_GCJ=no
15340fi
15341
15342fi
15343case "$host_os" in
15344  # For platforms which do not support PIC, -DPIC is meaningless:
15345  *djgpp*)
15346    lt_prog_compiler_pic_GCJ=
15347    ;;
15348  *)
15349    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15350    ;;
15351esac
15352
15353echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15354echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15355if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15356  echo $ECHO_N "(cached) $ECHO_C" >&6
15357else
15358  lt_cv_prog_compiler_c_o_GCJ=no
15359   $rm -r conftest 2>/dev/null
15360   mkdir conftest
15361   cd conftest
15362   mkdir out
15363   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15364
15365   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15366   # that will create temporary files in the current directory regardless of
15367   # the output directory.  Thus, making CWD read-only will cause this test
15368   # to fail, enabling locking or at least warning the user not to do parallel
15369   # builds.
15370   chmod -w .
15371
15372   lt_compiler_flag="-o out/conftest2.$ac_objext"
15373   # Insert the option either (1) after the last *FLAGS variable, or
15374   # (2) before a word containing "conftest.", or (3) at the end.
15375   # Note that $ac_compile itself does not contain backslashes and begins
15376   # with a dollar sign (not a hyphen), so the echo should work correctly.
15377   lt_compile=`echo "$ac_compile" | $SED \
15378   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15380   -e 's:$: $lt_compiler_flag:'`
15381   (eval echo "\"\$as_me:15381: $lt_compile\"" >&5)
15382   (eval "$lt_compile" 2>out/conftest.err)
15383   ac_status=$?
15384   cat out/conftest.err >&5
15385   echo "$as_me:15385: \$? = $ac_status" >&5
15386   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15387   then
15388     # The compiler can only warn and ignore the option if not recognized
15389     # So say no if there are warnings
15390     if test ! -s out/conftest.err; then
15391       lt_cv_prog_compiler_c_o_GCJ=yes
15392     fi
15393   fi
15394   chmod u+w .
15395   $rm conftest* out/*
15396   rmdir out
15397   cd ..
15398   rmdir conftest
15399   $rm conftest*
15400
15401fi
15402echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15403echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15404
15405
15406hard_links="nottested"
15407if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15408  # do not overwrite the value of need_locks provided by the user
15409  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15410echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15411  hard_links=yes
15412  $rm conftest*
15413  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15414  touch conftest.a
15415  ln conftest.a conftest.b 2>&5 || hard_links=no
15416  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15417  echo "$as_me:$LINENO: result: $hard_links" >&5
15418echo "${ECHO_T}$hard_links" >&6
15419  if test "$hard_links" = no; then
15420    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15421echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15422    need_locks=warn
15423  fi
15424else
15425  need_locks=no
15426fi
15427
15428echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15429echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15430
15431  runpath_var=
15432  allow_undefined_flag_GCJ=
15433  enable_shared_with_static_runtimes_GCJ=no
15434  archive_cmds_GCJ=
15435  archive_expsym_cmds_GCJ=
15436  old_archive_From_new_cmds_GCJ=
15437  old_archive_from_expsyms_cmds_GCJ=
15438  export_dynamic_flag_spec_GCJ=
15439  whole_archive_flag_spec_GCJ=
15440  thread_safe_flag_spec_GCJ=
15441  hardcode_libdir_flag_spec_GCJ=
15442  hardcode_libdir_flag_spec_ld_GCJ=
15443  hardcode_libdir_separator_GCJ=
15444  hardcode_direct_GCJ=no
15445  hardcode_minus_L_GCJ=no
15446  hardcode_shlibpath_var_GCJ=unsupported
15447  link_all_deplibs_GCJ=unknown
15448  hardcode_automatic_GCJ=no
15449  module_cmds_GCJ=
15450  module_expsym_cmds_GCJ=
15451  always_export_symbols_GCJ=no
15452  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15453  # include_expsyms should be a list of space-separated symbols to be *always*
15454  # included in the symbol list
15455  include_expsyms_GCJ=
15456  # exclude_expsyms can be an extended regexp of symbols to exclude
15457  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15458  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15459  # as well as any symbol that contains `d'.
15460  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15461  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15462  # platforms (ab)use it in PIC code, but their linkers get confused if
15463  # the symbol is explicitly referenced.  Since portable code cannot
15464  # rely on this symbol name, it's probably fine to never include it in
15465  # preloaded symbol tables.
15466  extract_expsyms_cmds=
15467
15468  case $host_os in
15469  cygwin* | mingw* | pw32*)
15470    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15471    # When not using gcc, we currently assume that we are using
15472    # Microsoft Visual C++.
15473    if test "$GCC" != yes; then
15474      with_gnu_ld=no
15475    fi
15476    ;;
15477  openbsd*)
15478    with_gnu_ld=no
15479    ;;
15480  esac
15481
15482  ld_shlibs_GCJ=yes
15483  if test "$with_gnu_ld" = yes; then
15484    # If archive_cmds runs LD, not CC, wlarc should be empty
15485    wlarc='${wl}'
15486
15487    # See if GNU ld supports shared libraries.
15488    case $host_os in
15489    aix3* | aix4* | aix5*)
15490      # On AIX/PPC, the GNU linker is very broken
15491      if test "$host_cpu" != ia64; then
15492	ld_shlibs_GCJ=no
15493	cat <<EOF 1>&2
15494
15495*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15496*** to be unable to reliably create shared libraries on AIX.
15497*** Therefore, libtool is disabling shared libraries support.  If you
15498*** really care for shared libraries, you may want to modify your PATH
15499*** so that a non-GNU linker is found, and then restart.
15500
15501EOF
15502      fi
15503      ;;
15504
15505    amigaos*)
15506      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)'
15507      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15508      hardcode_minus_L_GCJ=yes
15509
15510      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15511      # that the semantics of dynamic libraries on AmigaOS, at least up
15512      # to version 4, is to share data among multiple programs linked
15513      # with the same dynamic library.  Since this doesn't match the
15514      # behavior of shared libraries on other platforms, we can't use
15515      # them.
15516      ld_shlibs_GCJ=no
15517      ;;
15518
15519    beos*)
15520      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15521	allow_undefined_flag_GCJ=unsupported
15522	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15523	# support --undefined.  This deserves some investigation.  FIXME
15524	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525      else
15526	ld_shlibs_GCJ=no
15527      fi
15528      ;;
15529
15530    cygwin* | mingw* | pw32*)
15531      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15532      # as there is no search path for DLLs.
15533      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15534      allow_undefined_flag_GCJ=unsupported
15535      always_export_symbols_GCJ=no
15536      enable_shared_with_static_runtimes_GCJ=yes
15537      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15538
15539      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15540        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15541	# If the export-symbols file already is a .def file (1st line
15542	# is EXPORTS), use it as is; otherwise, prepend...
15543	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15544	  cp $export_symbols $output_objdir/$soname.def;
15545	else
15546	  echo EXPORTS > $output_objdir/$soname.def;
15547	  cat $export_symbols >> $output_objdir/$soname.def;
15548	fi~
15549	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15550      else
15551	ld_shlibs=no
15552      fi
15553      ;;
15554
15555    netbsd*)
15556      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15558	wlarc=
15559      else
15560	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15562      fi
15563      ;;
15564
15565    solaris* | sysv5*)
15566      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15567	ld_shlibs_GCJ=no
15568	cat <<EOF 1>&2
15569
15570*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15571*** create shared libraries on Solaris systems.  Therefore, libtool
15572*** is disabling shared libraries support.  We urge you to upgrade GNU
15573*** binutils to release 2.9.1 or newer.  Another option is to modify
15574*** your PATH or compiler configuration so that the native linker is
15575*** used, and then restart.
15576
15577EOF
15578      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15579	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15580	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15581      else
15582	ld_shlibs_GCJ=no
15583      fi
15584      ;;
15585
15586    sunos4*)
15587      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15588      wlarc=
15589      hardcode_direct_GCJ=yes
15590      hardcode_shlibpath_var_GCJ=no
15591      ;;
15592
15593    *)
15594      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15595	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15596	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15597      else
15598	ld_shlibs_GCJ=no
15599      fi
15600      ;;
15601    esac
15602
15603    if test "$ld_shlibs_GCJ" = yes; then
15604      runpath_var=LD_RUN_PATH
15605      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15606      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15607      # ancient GNU ld didn't support --whole-archive et. al.
15608      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15609 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15610      else
15611  	whole_archive_flag_spec_GCJ=
15612      fi
15613    fi
15614  else
15615    # PORTME fill in a description of your system's linker (not GNU ld)
15616    case $host_os in
15617    aix3*)
15618      allow_undefined_flag_GCJ=unsupported
15619      always_export_symbols_GCJ=yes
15620      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'
15621      # Note: this linker hardcodes the directories in LIBPATH if there
15622      # are no directories specified by -L.
15623      hardcode_minus_L_GCJ=yes
15624      if test "$GCC" = yes && test -z "$link_static_flag"; then
15625	# Neither direct hardcoding nor static linking is supported with a
15626	# broken collect2.
15627	hardcode_direct_GCJ=unsupported
15628      fi
15629      ;;
15630
15631    aix4* | aix5*)
15632      if test "$host_cpu" = ia64; then
15633	# On IA64, the linker does run time linking by default, so we don't
15634	# have to do anything special.
15635	aix_use_runtimelinking=no
15636	exp_sym_flag='-Bexport'
15637	no_entry_flag=""
15638      else
15639	# If we're using GNU nm, then we don't want the "-C" option.
15640	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15641	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15642	  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'
15643	else
15644	  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'
15645	fi
15646	aix_use_runtimelinking=no
15647
15648	# Test if we are trying to use run time linking or normal
15649	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15650	# need to do runtime linking.
15651	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15652	  for ld_flag in $LDFLAGS; do
15653  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15654  	    aix_use_runtimelinking=yes
15655  	    break
15656  	  fi
15657	  done
15658	esac
15659
15660	exp_sym_flag='-bexport'
15661	no_entry_flag='-bnoentry'
15662      fi
15663
15664      # When large executables or shared objects are built, AIX ld can
15665      # have problems creating the table of contents.  If linking a library
15666      # or program results in "error TOC overflow" add -mminimal-toc to
15667      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15668      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15669
15670      archive_cmds_GCJ=''
15671      hardcode_direct_GCJ=yes
15672      hardcode_libdir_separator_GCJ=':'
15673      link_all_deplibs_GCJ=yes
15674
15675      if test "$GCC" = yes; then
15676	case $host_os in aix4.012|aix4.012.*)
15677	# We only want to do this on AIX 4.2 and lower, the check
15678	# below for broken collect2 doesn't work under 4.3+
15679	  collect2name=`${CC} -print-prog-name=collect2`
15680	  if test -f "$collect2name" && \
15681  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15682	  then
15683  	  # We have reworked collect2
15684  	  hardcode_direct_GCJ=yes
15685	  else
15686  	  # We have old collect2
15687  	  hardcode_direct_GCJ=unsupported
15688  	  # It fails to find uninstalled libraries when the uninstalled
15689  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15690  	  # to unsupported forces relinking
15691  	  hardcode_minus_L_GCJ=yes
15692  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15693  	  hardcode_libdir_separator_GCJ=
15694	  fi
15695	esac
15696	shared_flag='-shared'
15697      else
15698	# not using gcc
15699	if test "$host_cpu" = ia64; then
15700  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15701  	# chokes on -Wl,-G. The following line is correct:
15702	  shared_flag='-G'
15703	else
15704  	if test "$aix_use_runtimelinking" = yes; then
15705	    shared_flag='${wl}-G'
15706	  else
15707	    shared_flag='${wl}-bM:SRE'
15708  	fi
15709	fi
15710      fi
15711
15712      # It seems that -bexpall does not export symbols beginning with
15713      # underscore (_), so it is better to generate a list of symbols to export.
15714      always_export_symbols_GCJ=yes
15715      if test "$aix_use_runtimelinking" = yes; then
15716	# Warning - without using the other runtime loading flags (-brtl),
15717	# -berok will link without error, but may produce a broken library.
15718	allow_undefined_flag_GCJ='-berok'
15719       # Determine the default libpath from the value encoded in an empty executable.
15720       cat >conftest.$ac_ext <<_ACEOF
15721#line $LINENO "configure"
15722/* confdefs.h.  */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h.  */
15727
15728int
15729main ()
15730{
15731
15732  ;
15733  return 0;
15734}
15735_ACEOF
15736rm -f conftest.$ac_objext conftest$ac_exeext
15737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738  (eval $ac_link) 2>&5
15739  ac_status=$?
15740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741  (exit $ac_status); } &&
15742         { ac_try='test -s conftest$ac_exeext'
15743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744  (eval $ac_try) 2>&5
15745  ac_status=$?
15746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747  (exit $ac_status); }; }; then
15748
15749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15750}'`
15751# Check for a 64-bit object if we didn't find anything.
15752if 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; }
15753}'`; fi
15754else
15755  echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758fi
15759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15760if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15761
15762       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15763	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"
15764       else
15765	if test "$host_cpu" = ia64; then
15766	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15767	  allow_undefined_flag_GCJ="-z nodefs"
15768	  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"
15769	else
15770	 # Determine the default libpath from the value encoded in an empty executable.
15771	 cat >conftest.$ac_ext <<_ACEOF
15772#line $LINENO "configure"
15773/* confdefs.h.  */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h.  */
15778
15779int
15780main ()
15781{
15782
15783  ;
15784  return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext conftest$ac_exeext
15788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789  (eval $ac_link) 2>&5
15790  ac_status=$?
15791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792  (exit $ac_status); } &&
15793         { ac_try='test -s conftest$ac_exeext'
15794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795  (eval $ac_try) 2>&5
15796  ac_status=$?
15797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); }; }; then
15799
15800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15801}'`
15802# Check for a 64-bit object if we didn't find anything.
15803if 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; }
15804}'`; fi
15805else
15806  echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809fi
15810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15812
15813	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15814	  # Warning - without using the other run time loading flags,
15815	  # -berok will link without error, but may produce a broken library.
15816	  no_undefined_flag_GCJ=' ${wl}-bernotok'
15817	  allow_undefined_flag_GCJ=' ${wl}-berok'
15818	  # -bexpall does not export symbols beginning with underscore (_)
15819	  always_export_symbols_GCJ=yes
15820	  # Exported symbols can be pulled into shared objects from archives
15821	  whole_archive_flag_spec_GCJ=' '
15822	  archive_cmds_need_lc_GCJ=yes
15823	  # This is similar to how AIX traditionally builds it's shared libraries.
15824	  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'
15825	fi
15826      fi
15827      ;;
15828
15829    amigaos*)
15830      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)'
15831      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15832      hardcode_minus_L_GCJ=yes
15833      # see comment about different semantics on the GNU ld section
15834      ld_shlibs_GCJ=no
15835      ;;
15836
15837    bsdi4*)
15838      export_dynamic_flag_spec_GCJ=-rdynamic
15839      ;;
15840
15841    cygwin* | mingw* | pw32*)
15842      # When not using gcc, we currently assume that we are using
15843      # Microsoft Visual C++.
15844      # hardcode_libdir_flag_spec is actually meaningless, as there is
15845      # no search path for DLLs.
15846      hardcode_libdir_flag_spec_GCJ=' '
15847      allow_undefined_flag_GCJ=unsupported
15848      # Tell ltmain to make .lib files, not .a files.
15849      libext=lib
15850      # Tell ltmain to make .dll files, not .so files.
15851      shrext=".dll"
15852      # FIXME: Setting linknames here is a bad hack.
15853      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15854      # The linker will automatically build a .lib file if we build a DLL.
15855      old_archive_From_new_cmds_GCJ='true'
15856      # FIXME: Should let the user specify the lib program.
15857      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15858      fix_srcfile_path='`cygpath -w "$srcfile"`'
15859      enable_shared_with_static_runtimes_GCJ=yes
15860      ;;
15861
15862    darwin* | rhapsody*)
15863    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15864      archive_cmds_need_lc_GCJ=no
15865      case "$host_os" in
15866      rhapsody* | darwin1.[012])
15867	allow_undefined_flag_GCJ='-undefined suppress'
15868	;;
15869      *) # Darwin 1.3 on
15870	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15871	;;
15872      esac
15873      # FIXME: Relying on posixy $() will cause problems for
15874      #        cross-compilation, but unfortunately the echo tests do not
15875      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15876      #	       `"' quotes if we put them in here... so don't!
15877    	lt_int_apple_cc_single_mod=no
15878    	output_verbose_link_cmd='echo'
15879    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15880    	  lt_int_apple_cc_single_mod=yes
15881    	fi
15882    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15883    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15884    	else
15885        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15886      fi
15887      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15888      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15889        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15890          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15891        else
15892          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15893        fi
15894          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15895      hardcode_direct_GCJ=no
15896      hardcode_automatic_GCJ=yes
15897      hardcode_shlibpath_var_GCJ=unsupported
15898      whole_archive_flag_spec_GCJ='-all_load $convenience'
15899      link_all_deplibs_GCJ=yes
15900    fi
15901      ;;
15902
15903    dgux*)
15904      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15906      hardcode_shlibpath_var_GCJ=no
15907      ;;
15908
15909    freebsd1*)
15910      ld_shlibs_GCJ=no
15911      ;;
15912
15913    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15914    # support.  Future versions do this automatically, but an explicit c++rt0.o
15915    # does not break anything, and helps significantly (at the cost of a little
15916    # extra space).
15917    freebsd2.2*)
15918      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15919      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15920      hardcode_direct_GCJ=yes
15921      hardcode_shlibpath_var_GCJ=no
15922      ;;
15923
15924    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15925    freebsd2*)
15926      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15927      hardcode_direct_GCJ=yes
15928      hardcode_minus_L_GCJ=yes
15929      hardcode_shlibpath_var_GCJ=no
15930      ;;
15931
15932    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15933    freebsd*)
15934      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15935      hardcode_libdir_flag_spec_GCJ='-R$libdir'
15936      hardcode_direct_GCJ=yes
15937      hardcode_shlibpath_var_GCJ=no
15938      ;;
15939
15940    hpux9*)
15941      if test "$GCC" = yes; then
15942	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'
15943      else
15944	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'
15945      fi
15946      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15947      hardcode_libdir_separator_GCJ=:
15948      hardcode_direct_GCJ=yes
15949
15950      # hardcode_minus_L: Not really in the search PATH,
15951      # but as the default location of the library.
15952      hardcode_minus_L_GCJ=yes
15953      export_dynamic_flag_spec_GCJ='${wl}-E'
15954      ;;
15955
15956    hpux10* | hpux11*)
15957      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15958	case "$host_cpu" in
15959	hppa*64*|ia64*)
15960	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15961	  ;;
15962	*)
15963	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15964	  ;;
15965	esac
15966      else
15967	case "$host_cpu" in
15968	hppa*64*|ia64*)
15969	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15970	  ;;
15971	*)
15972	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15973	  ;;
15974	esac
15975      fi
15976      if test "$with_gnu_ld" = no; then
15977	case "$host_cpu" in
15978	hppa*64*)
15979	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15980	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15981	  hardcode_libdir_separator_GCJ=:
15982	  hardcode_direct_GCJ=no
15983	  hardcode_shlibpath_var_GCJ=no
15984	  ;;
15985	ia64*)
15986	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15987	  hardcode_direct_GCJ=no
15988	  hardcode_shlibpath_var_GCJ=no
15989
15990	  # hardcode_minus_L: Not really in the search PATH,
15991	  # but as the default location of the library.
15992	  hardcode_minus_L_GCJ=yes
15993	  ;;
15994	*)
15995	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15996	  hardcode_libdir_separator_GCJ=:
15997	  hardcode_direct_GCJ=yes
15998	  export_dynamic_flag_spec_GCJ='${wl}-E'
15999
16000	  # hardcode_minus_L: Not really in the search PATH,
16001	  # but as the default location of the library.
16002	  hardcode_minus_L_GCJ=yes
16003	  ;;
16004	esac
16005      fi
16006      ;;
16007
16008    irix5* | irix6* | nonstopux*)
16009      if test "$GCC" = yes; then
16010	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'
16011      else
16012	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'
16013	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16014      fi
16015      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16016      hardcode_libdir_separator_GCJ=:
16017      link_all_deplibs_GCJ=yes
16018      ;;
16019
16020    netbsd*)
16021      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16022	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16023      else
16024	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16025      fi
16026      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16027      hardcode_direct_GCJ=yes
16028      hardcode_shlibpath_var_GCJ=no
16029      ;;
16030
16031    newsos6)
16032      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16033      hardcode_direct_GCJ=yes
16034      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16035      hardcode_libdir_separator_GCJ=:
16036      hardcode_shlibpath_var_GCJ=no
16037      ;;
16038
16039    openbsd*)
16040      hardcode_direct_GCJ=yes
16041      hardcode_shlibpath_var_GCJ=no
16042      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16043	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16044	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16045	export_dynamic_flag_spec_GCJ='${wl}-E'
16046      else
16047       case $host_os in
16048	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16049	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16050	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16051	   ;;
16052	 *)
16053	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16054	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16055	   ;;
16056       esac
16057      fi
16058      ;;
16059
16060    os2*)
16061      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16062      hardcode_minus_L_GCJ=yes
16063      allow_undefined_flag_GCJ=unsupported
16064      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'
16065      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16066      ;;
16067
16068    osf3*)
16069      if test "$GCC" = yes; then
16070	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16071	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'
16072      else
16073	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16074	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'
16075      fi
16076      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16077      hardcode_libdir_separator_GCJ=:
16078      ;;
16079
16080    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16081      if test "$GCC" = yes; then
16082	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16083	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'
16084	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16085      else
16086	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16087	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'
16088	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~
16089	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16090
16091	# Both c and cxx compiler support -rpath directly
16092	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16093      fi
16094      hardcode_libdir_separator_GCJ=:
16095      ;;
16096
16097    sco3.2v5*)
16098      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099      hardcode_shlibpath_var_GCJ=no
16100      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16101      runpath_var=LD_RUN_PATH
16102      hardcode_runpath_var=yes
16103      ;;
16104
16105    solaris*)
16106      no_undefined_flag_GCJ=' -z text'
16107      if test "$GCC" = yes; then
16108	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16109	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16110	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16111      else
16112	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16114  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16115      fi
16116      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16117      hardcode_shlibpath_var_GCJ=no
16118      case $host_os in
16119      solaris2.[0-5] | solaris2.[0-5].*) ;;
16120      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16121	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16122      esac
16123      link_all_deplibs_GCJ=yes
16124      ;;
16125
16126    sunos4*)
16127      if test "x$host_vendor" = xsequent; then
16128	# Use $CC to link under sequent, because it throws in some extra .o
16129	# files that make .init and .fini sections work.
16130	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16131      else
16132	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16133      fi
16134      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16135      hardcode_direct_GCJ=yes
16136      hardcode_minus_L_GCJ=yes
16137      hardcode_shlibpath_var_GCJ=no
16138      ;;
16139
16140    sysv4)
16141      case $host_vendor in
16142	sni)
16143	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144	  hardcode_direct_GCJ=yes # is this really true???
16145	;;
16146	siemens)
16147	  ## LD is ld it makes a PLAMLIB
16148	  ## CC just makes a GrossModule.
16149	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16150	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16151	  hardcode_direct_GCJ=no
16152        ;;
16153	motorola)
16154	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16155	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16156	;;
16157      esac
16158      runpath_var='LD_RUN_PATH'
16159      hardcode_shlibpath_var_GCJ=no
16160      ;;
16161
16162    sysv4.3*)
16163      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164      hardcode_shlibpath_var_GCJ=no
16165      export_dynamic_flag_spec_GCJ='-Bexport'
16166      ;;
16167
16168    sysv4*MP*)
16169      if test -d /usr/nec; then
16170	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171	hardcode_shlibpath_var_GCJ=no
16172	runpath_var=LD_RUN_PATH
16173	hardcode_runpath_var=yes
16174	ld_shlibs_GCJ=yes
16175      fi
16176      ;;
16177
16178    sysv4.2uw2*)
16179      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16180      hardcode_direct_GCJ=yes
16181      hardcode_minus_L_GCJ=no
16182      hardcode_shlibpath_var_GCJ=no
16183      hardcode_runpath_var=yes
16184      runpath_var=LD_RUN_PATH
16185      ;;
16186
16187   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16188      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16189      if test "$GCC" = yes; then
16190	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16191      else
16192	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16193      fi
16194      runpath_var='LD_RUN_PATH'
16195      hardcode_shlibpath_var_GCJ=no
16196      ;;
16197
16198    sysv5*)
16199      no_undefined_flag_GCJ=' -z text'
16200      # $CC -shared without GNU ld will not create a library from C++
16201      # object files and a static libstdc++, better avoid it by now
16202      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16204  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16205      hardcode_libdir_flag_spec_GCJ=
16206      hardcode_shlibpath_var_GCJ=no
16207      runpath_var='LD_RUN_PATH'
16208      ;;
16209
16210    uts4*)
16211      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16213      hardcode_shlibpath_var_GCJ=no
16214      ;;
16215
16216    *)
16217      ld_shlibs_GCJ=no
16218      ;;
16219    esac
16220  fi
16221
16222echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16223echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16224test "$ld_shlibs_GCJ" = no && can_build_shared=no
16225
16226variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16227if test "$GCC" = yes; then
16228  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16229fi
16230
16231#
16232# Do we need to explicitly link libc?
16233#
16234case "x$archive_cmds_need_lc_GCJ" in
16235x|xyes)
16236  # Assume -lc should be added
16237  archive_cmds_need_lc_GCJ=yes
16238
16239  if test "$enable_shared" = yes && test "$GCC" = yes; then
16240    case $archive_cmds_GCJ in
16241    *'~'*)
16242      # FIXME: we may have to deal with multi-command sequences.
16243      ;;
16244    '$CC '*)
16245      # Test whether the compiler implicitly links with -lc since on some
16246      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16247      # to ld, don't add -lc before -lgcc.
16248      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16249echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16250      $rm conftest*
16251      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16252
16253      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254  (eval $ac_compile) 2>&5
16255  ac_status=$?
16256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257  (exit $ac_status); } 2>conftest.err; then
16258        soname=conftest
16259        lib=conftest
16260        libobjs=conftest.$ac_objext
16261        deplibs=
16262        wl=$lt_prog_compiler_wl_GCJ
16263        compiler_flags=-v
16264        linker_flags=-v
16265        verstring=
16266        output_objdir=.
16267        libname=conftest
16268        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16269        allow_undefined_flag_GCJ=
16270        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16271  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16272  ac_status=$?
16273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274  (exit $ac_status); }
16275        then
16276	  archive_cmds_need_lc_GCJ=no
16277        else
16278	  archive_cmds_need_lc_GCJ=yes
16279        fi
16280        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16281      else
16282        cat conftest.err 1>&5
16283      fi
16284      $rm conftest*
16285      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16286echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16287      ;;
16288    esac
16289  fi
16290  ;;
16291esac
16292
16293echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16294echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16295hardcode_action_GCJ=
16296if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16297   test -n "$runpath_var GCJ" || \
16298   test "X$hardcode_automatic_GCJ"="Xyes" ; then
16299
16300  # We can hardcode non-existant directories.
16301  if test "$hardcode_direct_GCJ" != no &&
16302     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16303     # have to relink, otherwise we might link with an installed library
16304     # when we should be linking with a yet-to-be-installed one
16305     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16306     test "$hardcode_minus_L_GCJ" != no; then
16307    # Linking always hardcodes the temporary library directory.
16308    hardcode_action_GCJ=relink
16309  else
16310    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16311    hardcode_action_GCJ=immediate
16312  fi
16313else
16314  # We cannot hardcode anything, or else we can only hardcode existing
16315  # directories.
16316  hardcode_action_GCJ=unsupported
16317fi
16318echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16319echo "${ECHO_T}$hardcode_action_GCJ" >&6
16320
16321if test "$hardcode_action_GCJ" = relink; then
16322  # Fast installation is not supported
16323  enable_fast_install=no
16324elif test "$shlibpath_overrides_runpath" = yes ||
16325     test "$enable_shared" = no; then
16326  # Fast installation is not necessary
16327  enable_fast_install=needless
16328fi
16329
16330striplib=
16331old_striplib=
16332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16335  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16336  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16337  echo "$as_me:$LINENO: result: yes" >&5
16338echo "${ECHO_T}yes" >&6
16339else
16340# FIXME - insert some real tests, host_os isn't really good enough
16341  case $host_os in
16342   darwin*)
16343       if test -n "$STRIP" ; then
16344         striplib="$STRIP -x"
16345         echo "$as_me:$LINENO: result: yes" >&5
16346echo "${ECHO_T}yes" >&6
16347       else
16348  echo "$as_me:$LINENO: result: no" >&5
16349echo "${ECHO_T}no" >&6
16350fi
16351       ;;
16352   *)
16353  echo "$as_me:$LINENO: result: no" >&5
16354echo "${ECHO_T}no" >&6
16355    ;;
16356  esac
16357fi
16358
16359echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16361library_names_spec=
16362libname_spec='lib$name'
16363soname_spec=
16364shrext=".so"
16365postinstall_cmds=
16366postuninstall_cmds=
16367finish_cmds=
16368finish_eval=
16369shlibpath_var=
16370shlibpath_overrides_runpath=unknown
16371version_type=none
16372dynamic_linker="$host_os ld.so"
16373sys_lib_dlsearch_path_spec="/lib /usr/lib"
16374if test "$GCC" = yes; then
16375  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16376  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16377    # if the path contains ";" then we assume it to be the separator
16378    # otherwise default to the standard path separator (i.e. ":") - it is
16379    # assumed that no part of a normal pathname contains ";" but that should
16380    # okay in the real world where ";" in dirpaths is itself problematic.
16381    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16382  else
16383    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16384  fi
16385else
16386  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16387fi
16388need_lib_prefix=unknown
16389hardcode_into_libs=no
16390
16391# when you set need_version to no, make sure it does not cause -set_version
16392# flags to be left without arguments
16393need_version=unknown
16394
16395case $host_os in
16396aix3*)
16397  version_type=linux
16398  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16399  shlibpath_var=LIBPATH
16400
16401  # AIX 3 has no versioning support, so we append a major version to the name.
16402  soname_spec='${libname}${release}${shared_ext}$major'
16403  ;;
16404
16405aix4* | aix5*)
16406  version_type=linux
16407  need_lib_prefix=no
16408  need_version=no
16409  hardcode_into_libs=yes
16410  if test "$host_cpu" = ia64; then
16411    # AIX 5 supports IA64
16412    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16413    shlibpath_var=LD_LIBRARY_PATH
16414  else
16415    # With GCC up to 2.95.x, collect2 would create an import file
16416    # for dependence libraries.  The import file would start with
16417    # the line `#! .'.  This would cause the generated library to
16418    # depend on `.', always an invalid library.  This was fixed in
16419    # development snapshots of GCC prior to 3.0.
16420    case $host_os in
16421      aix4 | aix4.[01] | aix4.[01].*)
16422      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16423	   echo ' yes '
16424	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16425	:
16426      else
16427	can_build_shared=no
16428      fi
16429      ;;
16430    esac
16431    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16432    # soname into executable. Probably we can add versioning support to
16433    # collect2, so additional links can be useful in future.
16434    if test "$aix_use_runtimelinking" = yes; then
16435      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16436      # instead of lib<name>.a to let people know that these are not
16437      # typical AIX shared libraries.
16438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439    else
16440      # We preserve .a as extension for shared libraries through AIX4.2
16441      # and later when we are not doing run time linking.
16442      library_names_spec='${libname}${release}.a $libname.a'
16443      soname_spec='${libname}${release}${shared_ext}$major'
16444    fi
16445    shlibpath_var=LIBPATH
16446  fi
16447  ;;
16448
16449amigaos*)
16450  library_names_spec='$libname.ixlibrary $libname.a'
16451  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16452  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'
16453  ;;
16454
16455beos*)
16456  library_names_spec='${libname}${shared_ext}'
16457  dynamic_linker="$host_os ld.so"
16458  shlibpath_var=LIBRARY_PATH
16459  ;;
16460
16461bsdi4*)
16462  version_type=linux
16463  need_version=no
16464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465  soname_spec='${libname}${release}${shared_ext}$major'
16466  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16467  shlibpath_var=LD_LIBRARY_PATH
16468  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16469  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16470  # the default ld.so.conf also contains /usr/contrib/lib and
16471  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16472  # libtool to hard-code these into programs
16473  ;;
16474
16475cygwin* | mingw* | pw32*)
16476  version_type=windows
16477  shrext=".dll"
16478  need_version=no
16479  need_lib_prefix=no
16480
16481  case $GCC,$host_os in
16482  yes,cygwin* | yes,mingw* | yes,pw32*)
16483    library_names_spec='$libname.dll.a'
16484    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16485    postinstall_cmds='base_file=`basename \${file}`~
16486      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16487      dldir=$destdir/`dirname \$dlpath`~
16488      test -d \$dldir || mkdir -p \$dldir~
16489      $install_prog $dir/$dlname \$dldir/$dlname'
16490    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16491      dlpath=$dir/\$dldll~
16492       $rm \$dlpath'
16493    shlibpath_overrides_runpath=yes
16494
16495    case $host_os in
16496    cygwin*)
16497      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16498      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16499      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16500      ;;
16501    mingw*)
16502      # MinGW DLLs use traditional 'lib' prefix
16503      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16504      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16505      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16506        # It is most probably a Windows format PATH printed by
16507        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16508        # path with ; separators, and with drive letters. We can handle the
16509        # drive letters (cygwin fileutils understands them), so leave them,
16510        # especially as we might pass files found there to a mingw objdump,
16511        # which wouldn't understand a cygwinified path. Ahh.
16512        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16513      else
16514        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16515      fi
16516      ;;
16517    pw32*)
16518      # pw32 DLLs use 'pw' prefix rather than 'lib'
16519      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16520      ;;
16521    esac
16522    ;;
16523
16524  *)
16525    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16526    ;;
16527  esac
16528  dynamic_linker='Win32 ld.exe'
16529  # FIXME: first we should search . and the directory the executable is in
16530  shlibpath_var=PATH
16531  ;;
16532
16533darwin* | rhapsody*)
16534  dynamic_linker="$host_os dyld"
16535  version_type=darwin
16536  need_lib_prefix=no
16537  need_version=no
16538  # FIXME: Relying on posixy $() will cause problems for
16539  #        cross-compilation, but unfortunately the echo tests do not
16540  #        yet detect zsh echo's removal of \ escapes.
16541  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16542  soname_spec='${libname}${release}${major}$shared_ext'
16543  shlibpath_overrides_runpath=yes
16544  shlibpath_var=DYLD_LIBRARY_PATH
16545  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16546  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16547  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16548  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"`
16549  fi
16550  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16551  ;;
16552
16553dgux*)
16554  version_type=linux
16555  need_lib_prefix=no
16556  need_version=no
16557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16558  soname_spec='${libname}${release}${shared_ext}$major'
16559  shlibpath_var=LD_LIBRARY_PATH
16560  ;;
16561
16562freebsd1*)
16563  dynamic_linker=no
16564  ;;
16565
16566freebsd*)
16567  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16568  version_type=freebsd-$objformat
16569  case $version_type in
16570    freebsd-elf*)
16571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16572      need_version=no
16573      need_lib_prefix=no
16574      ;;
16575    freebsd-*)
16576      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16577      need_version=yes
16578      ;;
16579  esac
16580  shlibpath_var=LD_LIBRARY_PATH
16581  case $host_os in
16582  freebsd2*)
16583    shlibpath_overrides_runpath=yes
16584    ;;
16585  freebsd3.01* | freebsdelf3.01*)
16586    shlibpath_overrides_runpath=yes
16587    hardcode_into_libs=yes
16588    ;;
16589  *) # from 3.2 on
16590    shlibpath_overrides_runpath=no
16591    hardcode_into_libs=yes
16592    ;;
16593  esac
16594  ;;
16595
16596gnu*)
16597  version_type=linux
16598  need_lib_prefix=no
16599  need_version=no
16600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16601  soname_spec='${libname}${release}${shared_ext}$major'
16602  shlibpath_var=LD_LIBRARY_PATH
16603  hardcode_into_libs=yes
16604  ;;
16605
16606hpux9* | hpux10* | hpux11*)
16607  # Give a soname corresponding to the major version so that dld.sl refuses to
16608  # link against other versions.
16609  version_type=sunos
16610  need_lib_prefix=no
16611  need_version=no
16612  case "$host_cpu" in
16613  ia64*)
16614    shrext='.so'
16615    hardcode_into_libs=yes
16616    dynamic_linker="$host_os dld.so"
16617    shlibpath_var=LD_LIBRARY_PATH
16618    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620    soname_spec='${libname}${release}${shared_ext}$major'
16621    if test "X$HPUX_IA64_MODE" = X32; then
16622      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16623    else
16624      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16625    fi
16626    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16627    ;;
16628   hppa*64*)
16629     shrext='.sl'
16630     hardcode_into_libs=yes
16631     dynamic_linker="$host_os dld.sl"
16632     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16635     soname_spec='${libname}${release}${shared_ext}$major'
16636     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16638     ;;
16639   *)
16640    shrext='.sl'
16641    dynamic_linker="$host_os dld.sl"
16642    shlibpath_var=SHLIB_PATH
16643    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16644    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645    soname_spec='${libname}${release}${shared_ext}$major'
16646    ;;
16647  esac
16648  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16649  postinstall_cmds='chmod 555 $lib'
16650  ;;
16651
16652irix5* | irix6* | nonstopux*)
16653  case $host_os in
16654    nonstopux*) version_type=nonstopux ;;
16655    *)
16656	if test "$lt_cv_prog_gnu_ld" = yes; then
16657		version_type=linux
16658	else
16659		version_type=irix
16660	fi ;;
16661  esac
16662  need_lib_prefix=no
16663  need_version=no
16664  soname_spec='${libname}${release}${shared_ext}$major'
16665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16666  case $host_os in
16667  irix5* | nonstopux*)
16668    libsuff= shlibsuff=
16669    ;;
16670  *)
16671    case $LD in # libtool.m4 will add one of these switches to LD
16672    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16673      libsuff= shlibsuff= libmagic=32-bit;;
16674    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16675      libsuff=32 shlibsuff=N32 libmagic=N32;;
16676    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16677      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16678    *) libsuff= shlibsuff= libmagic=never-match;;
16679    esac
16680    ;;
16681  esac
16682  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16683  shlibpath_overrides_runpath=no
16684  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16685  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16686  hardcode_into_libs=yes
16687  ;;
16688
16689# No shared lib support for Linux oldld, aout, or coff.
16690linux*oldld* | linux*aout* | linux*coff*)
16691  dynamic_linker=no
16692  ;;
16693
16694# This must be Linux ELF.
16695linux*)
16696  version_type=linux
16697  need_lib_prefix=no
16698  need_version=no
16699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700  soname_spec='${libname}${release}${shared_ext}$major'
16701  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16702  shlibpath_var=LD_LIBRARY_PATH
16703  shlibpath_overrides_runpath=no
16704  # This implies no fast_install, which is unacceptable.
16705  # Some rework will be needed to allow for fast_install
16706  # before this can be enabled.
16707  hardcode_into_libs=yes
16708
16709  # We used to test for /lib/ld.so.1 and disable shared libraries on
16710  # powerpc, because MkLinux only supported shared libraries with the
16711  # GNU dynamic linker.  Since this was broken with cross compilers,
16712  # most powerpc-linux boxes support dynamic linking these days and
16713  # people can always --disable-shared, the test was removed, and we
16714  # assume the GNU/Linux dynamic linker is in use.
16715  dynamic_linker='GNU/Linux ld.so'
16716  ;;
16717
16718netbsd*)
16719  version_type=sunos
16720  need_lib_prefix=no
16721  need_version=no
16722  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16723    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16724    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16725    dynamic_linker='NetBSD (a.out) ld.so'
16726  else
16727    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16728    soname_spec='${libname}${release}${shared_ext}$major'
16729    dynamic_linker='NetBSD ld.elf_so'
16730  fi
16731  shlibpath_var=LD_LIBRARY_PATH
16732  shlibpath_overrides_runpath=yes
16733  hardcode_into_libs=yes
16734  ;;
16735
16736newsos6)
16737  version_type=linux
16738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739  shlibpath_var=LD_LIBRARY_PATH
16740  shlibpath_overrides_runpath=yes
16741  ;;
16742
16743nto-qnx)
16744  version_type=linux
16745  need_lib_prefix=no
16746  need_version=no
16747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748  soname_spec='${libname}${release}${shared_ext}$major'
16749  shlibpath_var=LD_LIBRARY_PATH
16750  shlibpath_overrides_runpath=yes
16751  ;;
16752
16753openbsd*)
16754  version_type=sunos
16755  need_lib_prefix=no
16756  need_version=no
16757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16758  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16759  shlibpath_var=LD_LIBRARY_PATH
16760  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16761    case $host_os in
16762      openbsd2.[89] | openbsd2.[89].*)
16763	shlibpath_overrides_runpath=no
16764	;;
16765      *)
16766	shlibpath_overrides_runpath=yes
16767	;;
16768      esac
16769  else
16770    shlibpath_overrides_runpath=yes
16771  fi
16772  ;;
16773
16774os2*)
16775  libname_spec='$name'
16776  shrext=".dll"
16777  need_lib_prefix=no
16778  library_names_spec='$libname${shared_ext} $libname.a'
16779  dynamic_linker='OS/2 ld.exe'
16780  shlibpath_var=LIBPATH
16781  ;;
16782
16783osf3* | osf4* | osf5*)
16784  version_type=osf
16785  need_lib_prefix=no
16786  need_version=no
16787  soname_spec='${libname}${release}${shared_ext}$major'
16788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789  shlibpath_var=LD_LIBRARY_PATH
16790  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16791  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16792  ;;
16793
16794sco3.2v5*)
16795  version_type=osf
16796  soname_spec='${libname}${release}${shared_ext}$major'
16797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798  shlibpath_var=LD_LIBRARY_PATH
16799  ;;
16800
16801solaris*)
16802  version_type=linux
16803  need_lib_prefix=no
16804  need_version=no
16805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806  soname_spec='${libname}${release}${shared_ext}$major'
16807  shlibpath_var=LD_LIBRARY_PATH
16808  shlibpath_overrides_runpath=yes
16809  hardcode_into_libs=yes
16810  # ldd complains unless libraries are executable
16811  postinstall_cmds='chmod +x $lib'
16812  ;;
16813
16814sunos4*)
16815  version_type=sunos
16816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16817  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16818  shlibpath_var=LD_LIBRARY_PATH
16819  shlibpath_overrides_runpath=yes
16820  if test "$with_gnu_ld" = yes; then
16821    need_lib_prefix=no
16822  fi
16823  need_version=yes
16824  ;;
16825
16826sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16827  version_type=linux
16828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829  soname_spec='${libname}${release}${shared_ext}$major'
16830  shlibpath_var=LD_LIBRARY_PATH
16831  case $host_vendor in
16832    sni)
16833      shlibpath_overrides_runpath=no
16834      need_lib_prefix=no
16835      export_dynamic_flag_spec='${wl}-Blargedynsym'
16836      runpath_var=LD_RUN_PATH
16837      ;;
16838    siemens)
16839      need_lib_prefix=no
16840      ;;
16841    motorola)
16842      need_lib_prefix=no
16843      need_version=no
16844      shlibpath_overrides_runpath=no
16845      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16846      ;;
16847  esac
16848  ;;
16849
16850sysv4*MP*)
16851  if test -d /usr/nec ;then
16852    version_type=linux
16853    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16854    soname_spec='$libname${shared_ext}.$major'
16855    shlibpath_var=LD_LIBRARY_PATH
16856  fi
16857  ;;
16858
16859uts4*)
16860  version_type=linux
16861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862  soname_spec='${libname}${release}${shared_ext}$major'
16863  shlibpath_var=LD_LIBRARY_PATH
16864  ;;
16865
16866*)
16867  dynamic_linker=no
16868  ;;
16869esac
16870echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16871echo "${ECHO_T}$dynamic_linker" >&6
16872test "$dynamic_linker" = no && can_build_shared=no
16873
16874if test "x$enable_dlopen" != xyes; then
16875  enable_dlopen=unknown
16876  enable_dlopen_self=unknown
16877  enable_dlopen_self_static=unknown
16878else
16879  lt_cv_dlopen=no
16880  lt_cv_dlopen_libs=
16881
16882  case $host_os in
16883  beos*)
16884    lt_cv_dlopen="load_add_on"
16885    lt_cv_dlopen_libs=
16886    lt_cv_dlopen_self=yes
16887    ;;
16888
16889  mingw* | pw32*)
16890    lt_cv_dlopen="LoadLibrary"
16891    lt_cv_dlopen_libs=
16892   ;;
16893
16894  cygwin*)
16895    lt_cv_dlopen="dlopen"
16896    lt_cv_dlopen_libs=
16897   ;;
16898
16899  darwin*)
16900  # if libdl is installed we need to link against it
16901    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16902echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16903if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16904  echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906  ac_check_lib_save_LIBS=$LIBS
16907LIBS="-ldl  $LIBS"
16908cat >conftest.$ac_ext <<_ACEOF
16909#line $LINENO "configure"
16910/* confdefs.h.  */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h.  */
16915
16916/* Override any gcc2 internal prototype to avoid an error.  */
16917#ifdef __cplusplus
16918extern "C"
16919#endif
16920/* We use char because int might match the return type of a gcc2
16921   builtin and then its argument prototype would still apply.  */
16922char dlopen ();
16923int
16924main ()
16925{
16926dlopen ();
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933  (eval $ac_link) 2>&5
16934  ac_status=$?
16935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936  (exit $ac_status); } &&
16937         { ac_try='test -s conftest$ac_exeext'
16938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939  (eval $ac_try) 2>&5
16940  ac_status=$?
16941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942  (exit $ac_status); }; }; then
16943  ac_cv_lib_dl_dlopen=yes
16944else
16945  echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_cv_lib_dl_dlopen=no
16949fi
16950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16951LIBS=$ac_check_lib_save_LIBS
16952fi
16953echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16955if test $ac_cv_lib_dl_dlopen = yes; then
16956  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16957else
16958
16959    lt_cv_dlopen="dyld"
16960    lt_cv_dlopen_libs=
16961    lt_cv_dlopen_self=yes
16962
16963fi
16964
16965   ;;
16966
16967  *)
16968    echo "$as_me:$LINENO: checking for shl_load" >&5
16969echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16970if test "${ac_cv_func_shl_load+set}" = set; then
16971  echo $ECHO_N "(cached) $ECHO_C" >&6
16972else
16973  cat >conftest.$ac_ext <<_ACEOF
16974#line $LINENO "configure"
16975/* confdefs.h.  */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h.  */
16980/* System header to define __stub macros and hopefully few prototypes,
16981    which can conflict with char shl_load (); below.
16982    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16983    <limits.h> exists even on freestanding compilers.  */
16984#ifdef __STDC__
16985# include <limits.h>
16986#else
16987# include <assert.h>
16988#endif
16989/* Override any gcc2 internal prototype to avoid an error.  */
16990#ifdef __cplusplus
16991extern "C"
16992{
16993#endif
16994/* We use char because int might match the return type of a gcc2
16995   builtin and then its argument prototype would still apply.  */
16996char shl_load ();
16997/* The GNU C library defines this for functions which it implements
16998    to always fail with ENOSYS.  Some functions are actually named
16999    something starting with __ and the normal name is an alias.  */
17000#if defined (__stub_shl_load) || defined (__stub___shl_load)
17001choke me
17002#else
17003char (*f) () = shl_load;
17004#endif
17005#ifdef __cplusplus
17006}
17007#endif
17008
17009int
17010main ()
17011{
17012return f != shl_load;
17013  ;
17014  return 0;
17015}
17016_ACEOF
17017rm -f conftest.$ac_objext conftest$ac_exeext
17018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019  (eval $ac_link) 2>&5
17020  ac_status=$?
17021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022  (exit $ac_status); } &&
17023         { ac_try='test -s conftest$ac_exeext'
17024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025  (eval $ac_try) 2>&5
17026  ac_status=$?
17027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028  (exit $ac_status); }; }; then
17029  ac_cv_func_shl_load=yes
17030else
17031  echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034ac_cv_func_shl_load=no
17035fi
17036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17037fi
17038echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17039echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17040if test $ac_cv_func_shl_load = yes; then
17041  lt_cv_dlopen="shl_load"
17042else
17043  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17044echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17045if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17046  echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048  ac_check_lib_save_LIBS=$LIBS
17049LIBS="-ldld  $LIBS"
17050cat >conftest.$ac_ext <<_ACEOF
17051#line $LINENO "configure"
17052/* confdefs.h.  */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h.  */
17057
17058/* Override any gcc2 internal prototype to avoid an error.  */
17059#ifdef __cplusplus
17060extern "C"
17061#endif
17062/* We use char because int might match the return type of a gcc2
17063   builtin and then its argument prototype would still apply.  */
17064char shl_load ();
17065int
17066main ()
17067{
17068shl_load ();
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073rm -f conftest.$ac_objext conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075  (eval $ac_link) 2>&5
17076  ac_status=$?
17077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078  (exit $ac_status); } &&
17079         { ac_try='test -s conftest$ac_exeext'
17080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081  (eval $ac_try) 2>&5
17082  ac_status=$?
17083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084  (exit $ac_status); }; }; then
17085  ac_cv_lib_dld_shl_load=yes
17086else
17087  echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_cv_lib_dld_shl_load=no
17091fi
17092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17093LIBS=$ac_check_lib_save_LIBS
17094fi
17095echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17096echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17097if test $ac_cv_lib_dld_shl_load = yes; then
17098  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17099else
17100  echo "$as_me:$LINENO: checking for dlopen" >&5
17101echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17102if test "${ac_cv_func_dlopen+set}" = set; then
17103  echo $ECHO_N "(cached) $ECHO_C" >&6
17104else
17105  cat >conftest.$ac_ext <<_ACEOF
17106#line $LINENO "configure"
17107/* confdefs.h.  */
17108_ACEOF
17109cat confdefs.h >>conftest.$ac_ext
17110cat >>conftest.$ac_ext <<_ACEOF
17111/* end confdefs.h.  */
17112/* System header to define __stub macros and hopefully few prototypes,
17113    which can conflict with char dlopen (); below.
17114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17115    <limits.h> exists even on freestanding compilers.  */
17116#ifdef __STDC__
17117# include <limits.h>
17118#else
17119# include <assert.h>
17120#endif
17121/* Override any gcc2 internal prototype to avoid an error.  */
17122#ifdef __cplusplus
17123extern "C"
17124{
17125#endif
17126/* We use char because int might match the return type of a gcc2
17127   builtin and then its argument prototype would still apply.  */
17128char dlopen ();
17129/* The GNU C library defines this for functions which it implements
17130    to always fail with ENOSYS.  Some functions are actually named
17131    something starting with __ and the normal name is an alias.  */
17132#if defined (__stub_dlopen) || defined (__stub___dlopen)
17133choke me
17134#else
17135char (*f) () = dlopen;
17136#endif
17137#ifdef __cplusplus
17138}
17139#endif
17140
17141int
17142main ()
17143{
17144return f != dlopen;
17145  ;
17146  return 0;
17147}
17148_ACEOF
17149rm -f conftest.$ac_objext conftest$ac_exeext
17150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151  (eval $ac_link) 2>&5
17152  ac_status=$?
17153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154  (exit $ac_status); } &&
17155         { ac_try='test -s conftest$ac_exeext'
17156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157  (eval $ac_try) 2>&5
17158  ac_status=$?
17159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160  (exit $ac_status); }; }; then
17161  ac_cv_func_dlopen=yes
17162else
17163  echo "$as_me: failed program was:" >&5
17164sed 's/^/| /' conftest.$ac_ext >&5
17165
17166ac_cv_func_dlopen=no
17167fi
17168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17169fi
17170echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17171echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17172if test $ac_cv_func_dlopen = yes; then
17173  lt_cv_dlopen="dlopen"
17174else
17175  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17176echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17177if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17178  echo $ECHO_N "(cached) $ECHO_C" >&6
17179else
17180  ac_check_lib_save_LIBS=$LIBS
17181LIBS="-ldl  $LIBS"
17182cat >conftest.$ac_ext <<_ACEOF
17183#line $LINENO "configure"
17184/* confdefs.h.  */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h.  */
17189
17190/* Override any gcc2 internal prototype to avoid an error.  */
17191#ifdef __cplusplus
17192extern "C"
17193#endif
17194/* We use char because int might match the return type of a gcc2
17195   builtin and then its argument prototype would still apply.  */
17196char dlopen ();
17197int
17198main ()
17199{
17200dlopen ();
17201  ;
17202  return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext conftest$ac_exeext
17206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207  (eval $ac_link) 2>&5
17208  ac_status=$?
17209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210  (exit $ac_status); } &&
17211         { ac_try='test -s conftest$ac_exeext'
17212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213  (eval $ac_try) 2>&5
17214  ac_status=$?
17215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216  (exit $ac_status); }; }; then
17217  ac_cv_lib_dl_dlopen=yes
17218else
17219  echo "$as_me: failed program was:" >&5
17220sed 's/^/| /' conftest.$ac_ext >&5
17221
17222ac_cv_lib_dl_dlopen=no
17223fi
17224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17225LIBS=$ac_check_lib_save_LIBS
17226fi
17227echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17228echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17229if test $ac_cv_lib_dl_dlopen = yes; then
17230  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17231else
17232  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17233echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17234if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17235  echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237  ac_check_lib_save_LIBS=$LIBS
17238LIBS="-lsvld  $LIBS"
17239cat >conftest.$ac_ext <<_ACEOF
17240#line $LINENO "configure"
17241/* confdefs.h.  */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h.  */
17246
17247/* Override any gcc2 internal prototype to avoid an error.  */
17248#ifdef __cplusplus
17249extern "C"
17250#endif
17251/* We use char because int might match the return type of a gcc2
17252   builtin and then its argument prototype would still apply.  */
17253char dlopen ();
17254int
17255main ()
17256{
17257dlopen ();
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262rm -f conftest.$ac_objext conftest$ac_exeext
17263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264  (eval $ac_link) 2>&5
17265  ac_status=$?
17266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267  (exit $ac_status); } &&
17268         { ac_try='test -s conftest$ac_exeext'
17269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270  (eval $ac_try) 2>&5
17271  ac_status=$?
17272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273  (exit $ac_status); }; }; then
17274  ac_cv_lib_svld_dlopen=yes
17275else
17276  echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279ac_cv_lib_svld_dlopen=no
17280fi
17281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17282LIBS=$ac_check_lib_save_LIBS
17283fi
17284echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17285echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17286if test $ac_cv_lib_svld_dlopen = yes; then
17287  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17288else
17289  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17290echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17291if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17292  echo $ECHO_N "(cached) $ECHO_C" >&6
17293else
17294  ac_check_lib_save_LIBS=$LIBS
17295LIBS="-ldld  $LIBS"
17296cat >conftest.$ac_ext <<_ACEOF
17297#line $LINENO "configure"
17298/* confdefs.h.  */
17299_ACEOF
17300cat confdefs.h >>conftest.$ac_ext
17301cat >>conftest.$ac_ext <<_ACEOF
17302/* end confdefs.h.  */
17303
17304/* Override any gcc2 internal prototype to avoid an error.  */
17305#ifdef __cplusplus
17306extern "C"
17307#endif
17308/* We use char because int might match the return type of a gcc2
17309   builtin and then its argument prototype would still apply.  */
17310char dld_link ();
17311int
17312main ()
17313{
17314dld_link ();
17315  ;
17316  return 0;
17317}
17318_ACEOF
17319rm -f conftest.$ac_objext conftest$ac_exeext
17320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321  (eval $ac_link) 2>&5
17322  ac_status=$?
17323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324  (exit $ac_status); } &&
17325         { ac_try='test -s conftest$ac_exeext'
17326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327  (eval $ac_try) 2>&5
17328  ac_status=$?
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); }; }; then
17331  ac_cv_lib_dld_dld_link=yes
17332else
17333  echo "$as_me: failed program was:" >&5
17334sed 's/^/| /' conftest.$ac_ext >&5
17335
17336ac_cv_lib_dld_dld_link=no
17337fi
17338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17339LIBS=$ac_check_lib_save_LIBS
17340fi
17341echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17342echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17343if test $ac_cv_lib_dld_dld_link = yes; then
17344  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17345fi
17346
17347
17348fi
17349
17350
17351fi
17352
17353
17354fi
17355
17356
17357fi
17358
17359
17360fi
17361
17362    ;;
17363  esac
17364
17365  if test "x$lt_cv_dlopen" != xno; then
17366    enable_dlopen=yes
17367  else
17368    enable_dlopen=no
17369  fi
17370
17371  case $lt_cv_dlopen in
17372  dlopen)
17373    save_CPPFLAGS="$CPPFLAGS"
17374    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17375
17376    save_LDFLAGS="$LDFLAGS"
17377    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17378
17379    save_LIBS="$LIBS"
17380    LIBS="$lt_cv_dlopen_libs $LIBS"
17381
17382    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17383echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17384if test "${lt_cv_dlopen_self+set}" = set; then
17385  echo $ECHO_N "(cached) $ECHO_C" >&6
17386else
17387  	  if test "$cross_compiling" = yes; then :
17388  lt_cv_dlopen_self=cross
17389else
17390  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17391  lt_status=$lt_dlunknown
17392  cat > conftest.$ac_ext <<EOF
17393#line 17393 "configure"
17394#include "confdefs.h"
17395
17396#if HAVE_DLFCN_H
17397#include <dlfcn.h>
17398#endif
17399
17400#include <stdio.h>
17401
17402#ifdef RTLD_GLOBAL
17403#  define LT_DLGLOBAL		RTLD_GLOBAL
17404#else
17405#  ifdef DL_GLOBAL
17406#    define LT_DLGLOBAL		DL_GLOBAL
17407#  else
17408#    define LT_DLGLOBAL		0
17409#  endif
17410#endif
17411
17412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17413   find out it does not work in some platform. */
17414#ifndef LT_DLLAZY_OR_NOW
17415#  ifdef RTLD_LAZY
17416#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17417#  else
17418#    ifdef DL_LAZY
17419#      define LT_DLLAZY_OR_NOW		DL_LAZY
17420#    else
17421#      ifdef RTLD_NOW
17422#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17423#      else
17424#        ifdef DL_NOW
17425#          define LT_DLLAZY_OR_NOW	DL_NOW
17426#        else
17427#          define LT_DLLAZY_OR_NOW	0
17428#        endif
17429#      endif
17430#    endif
17431#  endif
17432#endif
17433
17434#ifdef __cplusplus
17435extern "C" void exit (int);
17436#endif
17437
17438void fnord() { int i=42;}
17439int main ()
17440{
17441  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17442  int status = $lt_dlunknown;
17443
17444  if (self)
17445    {
17446      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17447      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17448      /* dlclose (self); */
17449    }
17450
17451    exit (status);
17452}
17453EOF
17454  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455  (eval $ac_link) 2>&5
17456  ac_status=$?
17457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17459    (./conftest; exit; ) 2>/dev/null
17460    lt_status=$?
17461    case x$lt_status in
17462      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17463      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17464      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17465    esac
17466  else :
17467    # compilation failed
17468    lt_cv_dlopen_self=no
17469  fi
17470fi
17471rm -fr conftest*
17472
17473
17474fi
17475echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17476echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17477
17478    if test "x$lt_cv_dlopen_self" = xyes; then
17479      LDFLAGS="$LDFLAGS $link_static_flag"
17480      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17481echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17482if test "${lt_cv_dlopen_self_static+set}" = set; then
17483  echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485  	  if test "$cross_compiling" = yes; then :
17486  lt_cv_dlopen_self_static=cross
17487else
17488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17489  lt_status=$lt_dlunknown
17490  cat > conftest.$ac_ext <<EOF
17491#line 17491 "configure"
17492#include "confdefs.h"
17493
17494#if HAVE_DLFCN_H
17495#include <dlfcn.h>
17496#endif
17497
17498#include <stdio.h>
17499
17500#ifdef RTLD_GLOBAL
17501#  define LT_DLGLOBAL		RTLD_GLOBAL
17502#else
17503#  ifdef DL_GLOBAL
17504#    define LT_DLGLOBAL		DL_GLOBAL
17505#  else
17506#    define LT_DLGLOBAL		0
17507#  endif
17508#endif
17509
17510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17511   find out it does not work in some platform. */
17512#ifndef LT_DLLAZY_OR_NOW
17513#  ifdef RTLD_LAZY
17514#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17515#  else
17516#    ifdef DL_LAZY
17517#      define LT_DLLAZY_OR_NOW		DL_LAZY
17518#    else
17519#      ifdef RTLD_NOW
17520#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17521#      else
17522#        ifdef DL_NOW
17523#          define LT_DLLAZY_OR_NOW	DL_NOW
17524#        else
17525#          define LT_DLLAZY_OR_NOW	0
17526#        endif
17527#      endif
17528#    endif
17529#  endif
17530#endif
17531
17532#ifdef __cplusplus
17533extern "C" void exit (int);
17534#endif
17535
17536void fnord() { int i=42;}
17537int main ()
17538{
17539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17540  int status = $lt_dlunknown;
17541
17542  if (self)
17543    {
17544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17546      /* dlclose (self); */
17547    }
17548
17549    exit (status);
17550}
17551EOF
17552  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553  (eval $ac_link) 2>&5
17554  ac_status=$?
17555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17557    (./conftest; exit; ) 2>/dev/null
17558    lt_status=$?
17559    case x$lt_status in
17560      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17561      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17562      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17563    esac
17564  else :
17565    # compilation failed
17566    lt_cv_dlopen_self_static=no
17567  fi
17568fi
17569rm -fr conftest*
17570
17571
17572fi
17573echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17574echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17575    fi
17576
17577    CPPFLAGS="$save_CPPFLAGS"
17578    LDFLAGS="$save_LDFLAGS"
17579    LIBS="$save_LIBS"
17580    ;;
17581  esac
17582
17583  case $lt_cv_dlopen_self in
17584  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17585  *) enable_dlopen_self=unknown ;;
17586  esac
17587
17588  case $lt_cv_dlopen_self_static in
17589  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17590  *) enable_dlopen_self_static=unknown ;;
17591  esac
17592fi
17593
17594
17595# The else clause should only fire when bootstrapping the
17596# libtool distribution, otherwise you forgot to ship ltmain.sh
17597# with your package, and you will get complaints that there are
17598# no rules to generate ltmain.sh.
17599if test -f "$ltmain"; then
17600  # See if we are running on zsh, and set the options which allow our commands through
17601  # without removal of \ escapes.
17602  if test -n "${ZSH_VERSION+set}" ; then
17603    setopt NO_GLOB_SUBST
17604  fi
17605  # Now quote all the things that may contain metacharacters while being
17606  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17607  # variables and quote the copies for generation of the libtool script.
17608  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17609    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17610    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17611    deplibs_check_method reload_flag reload_cmds need_locks \
17612    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17613    lt_cv_sys_global_symbol_to_c_name_address \
17614    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17615    old_postinstall_cmds old_postuninstall_cmds \
17616    compiler_GCJ \
17617    CC_GCJ \
17618    LD_GCJ \
17619    lt_prog_compiler_wl_GCJ \
17620    lt_prog_compiler_pic_GCJ \
17621    lt_prog_compiler_static_GCJ \
17622    lt_prog_compiler_no_builtin_flag_GCJ \
17623    export_dynamic_flag_spec_GCJ \
17624    thread_safe_flag_spec_GCJ \
17625    whole_archive_flag_spec_GCJ \
17626    enable_shared_with_static_runtimes_GCJ \
17627    old_archive_cmds_GCJ \
17628    old_archive_from_new_cmds_GCJ \
17629    predep_objects_GCJ \
17630    postdep_objects_GCJ \
17631    predeps_GCJ \
17632    postdeps_GCJ \
17633    compiler_lib_search_path_GCJ \
17634    archive_cmds_GCJ \
17635    archive_expsym_cmds_GCJ \
17636    postinstall_cmds_GCJ \
17637    postuninstall_cmds_GCJ \
17638    old_archive_from_expsyms_cmds_GCJ \
17639    allow_undefined_flag_GCJ \
17640    no_undefined_flag_GCJ \
17641    export_symbols_cmds_GCJ \
17642    hardcode_libdir_flag_spec_GCJ \
17643    hardcode_libdir_flag_spec_ld_GCJ \
17644    hardcode_libdir_separator_GCJ \
17645    hardcode_automatic_GCJ \
17646    module_cmds_GCJ \
17647    module_expsym_cmds_GCJ \
17648    lt_cv_prog_compiler_c_o_GCJ \
17649    exclude_expsyms_GCJ \
17650    include_expsyms_GCJ; do
17651
17652    case $var in
17653    old_archive_cmds_GCJ | \
17654    old_archive_from_new_cmds_GCJ | \
17655    archive_cmds_GCJ | \
17656    archive_expsym_cmds_GCJ | \
17657    module_cmds_GCJ | \
17658    module_expsym_cmds_GCJ | \
17659    old_archive_from_expsyms_cmds_GCJ | \
17660    export_symbols_cmds_GCJ | \
17661    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17662    postinstall_cmds | postuninstall_cmds | \
17663    old_postinstall_cmds | old_postuninstall_cmds | \
17664    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17665      # Double-quote double-evaled strings.
17666      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17667      ;;
17668    *)
17669      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17670      ;;
17671    esac
17672  done
17673
17674  case $lt_echo in
17675  *'\$0 --fallback-echo"')
17676    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17677    ;;
17678  esac
17679
17680cfgfile="$ofile"
17681
17682  cat <<__EOF__ >> "$cfgfile"
17683# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17684
17685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17686
17687# Shell to use when invoking shell scripts.
17688SHELL=$lt_SHELL
17689
17690# Whether or not to build shared libraries.
17691build_libtool_libs=$enable_shared
17692
17693# Whether or not to build static libraries.
17694build_old_libs=$enable_static
17695
17696# Whether or not to add -lc for building shared libraries.
17697build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17698
17699# Whether or not to disallow shared libs when runtime libs are static
17700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17701
17702# Whether or not to optimize for fast installation.
17703fast_install=$enable_fast_install
17704
17705# The host system.
17706host_alias=$host_alias
17707host=$host
17708
17709# An echo program that does not interpret backslashes.
17710echo=$lt_echo
17711
17712# The archiver.
17713AR=$lt_AR
17714AR_FLAGS=$lt_AR_FLAGS
17715
17716# A C compiler.
17717LTCC=$lt_LTCC
17718
17719# A language-specific compiler.
17720CC=$lt_compiler_GCJ
17721
17722# Is the compiler the GNU C compiler?
17723with_gcc=$GCC_GCJ
17724
17725# An ERE matcher.
17726EGREP=$lt_EGREP
17727
17728# The linker used to build libraries.
17729LD=$lt_LD_GCJ
17730
17731# Whether we need hard or soft links.
17732LN_S=$lt_LN_S
17733
17734# A BSD-compatible nm program.
17735NM=$lt_NM
17736
17737# A symbol stripping program
17738STRIP=$STRIP
17739
17740# Used to examine libraries when file_magic_cmd begins "file"
17741MAGIC_CMD=$MAGIC_CMD
17742
17743# Used on cygwin: DLL creation program.
17744DLLTOOL="$DLLTOOL"
17745
17746# Used on cygwin: object dumper.
17747OBJDUMP="$OBJDUMP"
17748
17749# Used on cygwin: assembler.
17750AS="$AS"
17751
17752# The name of the directory that contains temporary libtool files.
17753objdir=$objdir
17754
17755# How to create reloadable object files.
17756reload_flag=$lt_reload_flag
17757reload_cmds=$lt_reload_cmds
17758
17759# How to pass a linker flag through the compiler.
17760wl=$lt_lt_prog_compiler_wl_GCJ
17761
17762# Object file suffix (normally "o").
17763objext="$ac_objext"
17764
17765# Old archive suffix (normally "a").
17766libext="$libext"
17767
17768# Shared library suffix (normally ".so").
17769shrext='$shrext'
17770
17771# Executable file suffix (normally "").
17772exeext="$exeext"
17773
17774# Additional compiler flags for building library objects.
17775pic_flag=$lt_lt_prog_compiler_pic_GCJ
17776pic_mode=$pic_mode
17777
17778# What is the maximum length of a command?
17779max_cmd_len=$lt_cv_sys_max_cmd_len
17780
17781# Does compiler simultaneously support -c and -o options?
17782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17783
17784# Must we lock files when doing compilation ?
17785need_locks=$lt_need_locks
17786
17787# Do we need the lib prefix for modules?
17788need_lib_prefix=$need_lib_prefix
17789
17790# Do we need a version for libraries?
17791need_version=$need_version
17792
17793# Whether dlopen is supported.
17794dlopen_support=$enable_dlopen
17795
17796# Whether dlopen of programs is supported.
17797dlopen_self=$enable_dlopen_self
17798
17799# Whether dlopen of statically linked programs is supported.
17800dlopen_self_static=$enable_dlopen_self_static
17801
17802# Compiler flag to prevent dynamic linking.
17803link_static_flag=$lt_lt_prog_compiler_static_GCJ
17804
17805# Compiler flag to turn off builtin functions.
17806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17807
17808# Compiler flag to allow reflexive dlopens.
17809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17810
17811# Compiler flag to generate shared objects directly from archives.
17812whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17813
17814# Compiler flag to generate thread-safe objects.
17815thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17816
17817# Library versioning type.
17818version_type=$version_type
17819
17820# Format of library name prefix.
17821libname_spec=$lt_libname_spec
17822
17823# List of archive names.  First name is the real one, the rest are links.
17824# The last name is the one that the linker finds with -lNAME.
17825library_names_spec=$lt_library_names_spec
17826
17827# The coded name of the library, if different from the real name.
17828soname_spec=$lt_soname_spec
17829
17830# Commands used to build and install an old-style archive.
17831RANLIB=$lt_RANLIB
17832old_archive_cmds=$lt_old_archive_cmds_GCJ
17833old_postinstall_cmds=$lt_old_postinstall_cmds
17834old_postuninstall_cmds=$lt_old_postuninstall_cmds
17835
17836# Create an old-style archive from a shared archive.
17837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17838
17839# Create a temporary old-style archive to link instead of a shared archive.
17840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17841
17842# Commands used to build and install a shared archive.
17843archive_cmds=$lt_archive_cmds_GCJ
17844archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17845postinstall_cmds=$lt_postinstall_cmds
17846postuninstall_cmds=$lt_postuninstall_cmds
17847
17848# Commands used to build a loadable module (assumed same as above if empty)
17849module_cmds=$lt_module_cmds_GCJ
17850module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17851
17852# Commands to strip libraries.
17853old_striplib=$lt_old_striplib
17854striplib=$lt_striplib
17855
17856# Dependencies to place before the objects being linked to create a
17857# shared library.
17858predep_objects=$lt_predep_objects_GCJ
17859
17860# Dependencies to place after the objects being linked to create a
17861# shared library.
17862postdep_objects=$lt_postdep_objects_GCJ
17863
17864# Dependencies to place before the objects being linked to create a
17865# shared library.
17866predeps=$lt_predeps_GCJ
17867
17868# Dependencies to place after the objects being linked to create a
17869# shared library.
17870postdeps=$lt_postdeps_GCJ
17871
17872# The library search path used internally by the compiler when linking
17873# a shared library.
17874compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17875
17876# Method to check whether dependent libraries are shared objects.
17877deplibs_check_method=$lt_deplibs_check_method
17878
17879# Command to use when deplibs_check_method == file_magic.
17880file_magic_cmd=$lt_file_magic_cmd
17881
17882# Flag that allows shared libraries with undefined symbols to be built.
17883allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17884
17885# Flag that forces no undefined symbols.
17886no_undefined_flag=$lt_no_undefined_flag_GCJ
17887
17888# Commands used to finish a libtool library installation in a directory.
17889finish_cmds=$lt_finish_cmds
17890
17891# Same as above, but a single script fragment to be evaled but not shown.
17892finish_eval=$lt_finish_eval
17893
17894# Take the output of nm and produce a listing of raw symbols and C names.
17895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17896
17897# Transform the output of nm in a proper C declaration
17898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17899
17900# Transform the output of nm in a C name address pair
17901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17902
17903# This is the shared library runtime path variable.
17904runpath_var=$runpath_var
17905
17906# This is the shared library path variable.
17907shlibpath_var=$shlibpath_var
17908
17909# Is shlibpath searched before the hard-coded library search path?
17910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17911
17912# How to hardcode a shared library path into an executable.
17913hardcode_action=$hardcode_action_GCJ
17914
17915# Whether we should hardcode library paths into libraries.
17916hardcode_into_libs=$hardcode_into_libs
17917
17918# Flag to hardcode \$libdir into a binary during linking.
17919# This must work even if \$libdir does not exist.
17920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17921
17922# If ld is used when linking, flag to hardcode \$libdir into
17923# a binary during linking. This must work even if \$libdir does
17924# not exist.
17925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17926
17927# Whether we need a single -rpath flag with a separated argument.
17928hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17929
17930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17931# resulting binary.
17932hardcode_direct=$hardcode_direct_GCJ
17933
17934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17935# resulting binary.
17936hardcode_minus_L=$hardcode_minus_L_GCJ
17937
17938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17939# the resulting binary.
17940hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17941
17942# Set to yes if building a shared library automatically hardcodes DIR into the library
17943# and all subsequent libraries and executables linked against it.
17944hardcode_automatic=$hardcode_automatic_GCJ
17945
17946# Variables whose values should be saved in libtool wrapper scripts and
17947# restored at relink time.
17948variables_saved_for_relink="$variables_saved_for_relink"
17949
17950# Whether libtool must link a program against all its dependency libraries.
17951link_all_deplibs=$link_all_deplibs_GCJ
17952
17953# Compile-time system search path for libraries
17954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17955
17956# Run-time system search path for libraries
17957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17958
17959# Fix the shell variable \$srcfile for the compiler.
17960fix_srcfile_path="$fix_srcfile_path_GCJ"
17961
17962# Set to yes if exported symbols are required.
17963always_export_symbols=$always_export_symbols_GCJ
17964
17965# The commands to list exported symbols.
17966export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17967
17968# The commands to extract the exported symbol list from a shared archive.
17969extract_expsyms_cmds=$lt_extract_expsyms_cmds
17970
17971# Symbols that should not be listed in the preloaded symbols.
17972exclude_expsyms=$lt_exclude_expsyms_GCJ
17973
17974# Symbols that must always be exported.
17975include_expsyms=$lt_include_expsyms_GCJ
17976
17977# ### END LIBTOOL TAG CONFIG: $tagname
17978
17979__EOF__
17980
17981
17982else
17983  # If there is no Makefile yet, we rely on a make rule to execute
17984  # `config.status --recheck' to rerun these tests and create the
17985  # libtool script then.
17986  test -f Makefile && make "$ltmain"
17987fi
17988
17989
17990ac_ext=c
17991ac_cpp='$CPP $CPPFLAGS'
17992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995
17996CC="$lt_save_CC"
17997
17998	else
17999	  tagname=""
18000	fi
18001	;;
18002
18003      RC)
18004
18005
18006
18007# Source file extension for RC test sources.
18008ac_ext=rc
18009
18010# Object file extension for compiled RC test sources.
18011objext=o
18012objext_RC=$objext
18013
18014# Code to be used in simple compile tests
18015lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18016
18017# Code to be used in simple link tests
18018lt_simple_link_test_code="$lt_simple_compile_test_code"
18019
18020# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18021
18022# If no C compiler was specified, use CC.
18023LTCC=${LTCC-"$CC"}
18024
18025# Allow CC to be a program name with arguments.
18026compiler=$CC
18027
18028
18029# Allow CC to be a program name with arguments.
18030lt_save_CC="$CC"
18031CC=${RC-"windres"}
18032compiler=$CC
18033compiler_RC=$CC
18034lt_cv_prog_compiler_c_o_RC=yes
18035
18036# The else clause should only fire when bootstrapping the
18037# libtool distribution, otherwise you forgot to ship ltmain.sh
18038# with your package, and you will get complaints that there are
18039# no rules to generate ltmain.sh.
18040if test -f "$ltmain"; then
18041  # See if we are running on zsh, and set the options which allow our commands through
18042  # without removal of \ escapes.
18043  if test -n "${ZSH_VERSION+set}" ; then
18044    setopt NO_GLOB_SUBST
18045  fi
18046  # Now quote all the things that may contain metacharacters while being
18047  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18048  # variables and quote the copies for generation of the libtool script.
18049  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18050    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18051    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18052    deplibs_check_method reload_flag reload_cmds need_locks \
18053    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18054    lt_cv_sys_global_symbol_to_c_name_address \
18055    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18056    old_postinstall_cmds old_postuninstall_cmds \
18057    compiler_RC \
18058    CC_RC \
18059    LD_RC \
18060    lt_prog_compiler_wl_RC \
18061    lt_prog_compiler_pic_RC \
18062    lt_prog_compiler_static_RC \
18063    lt_prog_compiler_no_builtin_flag_RC \
18064    export_dynamic_flag_spec_RC \
18065    thread_safe_flag_spec_RC \
18066    whole_archive_flag_spec_RC \
18067    enable_shared_with_static_runtimes_RC \
18068    old_archive_cmds_RC \
18069    old_archive_from_new_cmds_RC \
18070    predep_objects_RC \
18071    postdep_objects_RC \
18072    predeps_RC \
18073    postdeps_RC \
18074    compiler_lib_search_path_RC \
18075    archive_cmds_RC \
18076    archive_expsym_cmds_RC \
18077    postinstall_cmds_RC \
18078    postuninstall_cmds_RC \
18079    old_archive_from_expsyms_cmds_RC \
18080    allow_undefined_flag_RC \
18081    no_undefined_flag_RC \
18082    export_symbols_cmds_RC \
18083    hardcode_libdir_flag_spec_RC \
18084    hardcode_libdir_flag_spec_ld_RC \
18085    hardcode_libdir_separator_RC \
18086    hardcode_automatic_RC \
18087    module_cmds_RC \
18088    module_expsym_cmds_RC \
18089    lt_cv_prog_compiler_c_o_RC \
18090    exclude_expsyms_RC \
18091    include_expsyms_RC; do
18092
18093    case $var in
18094    old_archive_cmds_RC | \
18095    old_archive_from_new_cmds_RC | \
18096    archive_cmds_RC | \
18097    archive_expsym_cmds_RC | \
18098    module_cmds_RC | \
18099    module_expsym_cmds_RC | \
18100    old_archive_from_expsyms_cmds_RC | \
18101    export_symbols_cmds_RC | \
18102    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18103    postinstall_cmds | postuninstall_cmds | \
18104    old_postinstall_cmds | old_postuninstall_cmds | \
18105    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18106      # Double-quote double-evaled strings.
18107      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18108      ;;
18109    *)
18110      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18111      ;;
18112    esac
18113  done
18114
18115  case $lt_echo in
18116  *'\$0 --fallback-echo"')
18117    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18118    ;;
18119  esac
18120
18121cfgfile="$ofile"
18122
18123  cat <<__EOF__ >> "$cfgfile"
18124# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18125
18126# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18127
18128# Shell to use when invoking shell scripts.
18129SHELL=$lt_SHELL
18130
18131# Whether or not to build shared libraries.
18132build_libtool_libs=$enable_shared
18133
18134# Whether or not to build static libraries.
18135build_old_libs=$enable_static
18136
18137# Whether or not to add -lc for building shared libraries.
18138build_libtool_need_lc=$archive_cmds_need_lc_RC
18139
18140# Whether or not to disallow shared libs when runtime libs are static
18141allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18142
18143# Whether or not to optimize for fast installation.
18144fast_install=$enable_fast_install
18145
18146# The host system.
18147host_alias=$host_alias
18148host=$host
18149
18150# An echo program that does not interpret backslashes.
18151echo=$lt_echo
18152
18153# The archiver.
18154AR=$lt_AR
18155AR_FLAGS=$lt_AR_FLAGS
18156
18157# A C compiler.
18158LTCC=$lt_LTCC
18159
18160# A language-specific compiler.
18161CC=$lt_compiler_RC
18162
18163# Is the compiler the GNU C compiler?
18164with_gcc=$GCC_RC
18165
18166# An ERE matcher.
18167EGREP=$lt_EGREP
18168
18169# The linker used to build libraries.
18170LD=$lt_LD_RC
18171
18172# Whether we need hard or soft links.
18173LN_S=$lt_LN_S
18174
18175# A BSD-compatible nm program.
18176NM=$lt_NM
18177
18178# A symbol stripping program
18179STRIP=$STRIP
18180
18181# Used to examine libraries when file_magic_cmd begins "file"
18182MAGIC_CMD=$MAGIC_CMD
18183
18184# Used on cygwin: DLL creation program.
18185DLLTOOL="$DLLTOOL"
18186
18187# Used on cygwin: object dumper.
18188OBJDUMP="$OBJDUMP"
18189
18190# Used on cygwin: assembler.
18191AS="$AS"
18192
18193# The name of the directory that contains temporary libtool files.
18194objdir=$objdir
18195
18196# How to create reloadable object files.
18197reload_flag=$lt_reload_flag
18198reload_cmds=$lt_reload_cmds
18199
18200# How to pass a linker flag through the compiler.
18201wl=$lt_lt_prog_compiler_wl_RC
18202
18203# Object file suffix (normally "o").
18204objext="$ac_objext"
18205
18206# Old archive suffix (normally "a").
18207libext="$libext"
18208
18209# Shared library suffix (normally ".so").
18210shrext='$shrext'
18211
18212# Executable file suffix (normally "").
18213exeext="$exeext"
18214
18215# Additional compiler flags for building library objects.
18216pic_flag=$lt_lt_prog_compiler_pic_RC
18217pic_mode=$pic_mode
18218
18219# What is the maximum length of a command?
18220max_cmd_len=$lt_cv_sys_max_cmd_len
18221
18222# Does compiler simultaneously support -c and -o options?
18223compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18224
18225# Must we lock files when doing compilation ?
18226need_locks=$lt_need_locks
18227
18228# Do we need the lib prefix for modules?
18229need_lib_prefix=$need_lib_prefix
18230
18231# Do we need a version for libraries?
18232need_version=$need_version
18233
18234# Whether dlopen is supported.
18235dlopen_support=$enable_dlopen
18236
18237# Whether dlopen of programs is supported.
18238dlopen_self=$enable_dlopen_self
18239
18240# Whether dlopen of statically linked programs is supported.
18241dlopen_self_static=$enable_dlopen_self_static
18242
18243# Compiler flag to prevent dynamic linking.
18244link_static_flag=$lt_lt_prog_compiler_static_RC
18245
18246# Compiler flag to turn off builtin functions.
18247no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18248
18249# Compiler flag to allow reflexive dlopens.
18250export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18251
18252# Compiler flag to generate shared objects directly from archives.
18253whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18254
18255# Compiler flag to generate thread-safe objects.
18256thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18257
18258# Library versioning type.
18259version_type=$version_type
18260
18261# Format of library name prefix.
18262libname_spec=$lt_libname_spec
18263
18264# List of archive names.  First name is the real one, the rest are links.
18265# The last name is the one that the linker finds with -lNAME.
18266library_names_spec=$lt_library_names_spec
18267
18268# The coded name of the library, if different from the real name.
18269soname_spec=$lt_soname_spec
18270
18271# Commands used to build and install an old-style archive.
18272RANLIB=$lt_RANLIB
18273old_archive_cmds=$lt_old_archive_cmds_RC
18274old_postinstall_cmds=$lt_old_postinstall_cmds
18275old_postuninstall_cmds=$lt_old_postuninstall_cmds
18276
18277# Create an old-style archive from a shared archive.
18278old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18279
18280# Create a temporary old-style archive to link instead of a shared archive.
18281old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18282
18283# Commands used to build and install a shared archive.
18284archive_cmds=$lt_archive_cmds_RC
18285archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18286postinstall_cmds=$lt_postinstall_cmds
18287postuninstall_cmds=$lt_postuninstall_cmds
18288
18289# Commands used to build a loadable module (assumed same as above if empty)
18290module_cmds=$lt_module_cmds_RC
18291module_expsym_cmds=$lt_module_expsym_cmds_RC
18292
18293# Commands to strip libraries.
18294old_striplib=$lt_old_striplib
18295striplib=$lt_striplib
18296
18297# Dependencies to place before the objects being linked to create a
18298# shared library.
18299predep_objects=$lt_predep_objects_RC
18300
18301# Dependencies to place after the objects being linked to create a
18302# shared library.
18303postdep_objects=$lt_postdep_objects_RC
18304
18305# Dependencies to place before the objects being linked to create a
18306# shared library.
18307predeps=$lt_predeps_RC
18308
18309# Dependencies to place after the objects being linked to create a
18310# shared library.
18311postdeps=$lt_postdeps_RC
18312
18313# The library search path used internally by the compiler when linking
18314# a shared library.
18315compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18316
18317# Method to check whether dependent libraries are shared objects.
18318deplibs_check_method=$lt_deplibs_check_method
18319
18320# Command to use when deplibs_check_method == file_magic.
18321file_magic_cmd=$lt_file_magic_cmd
18322
18323# Flag that allows shared libraries with undefined symbols to be built.
18324allow_undefined_flag=$lt_allow_undefined_flag_RC
18325
18326# Flag that forces no undefined symbols.
18327no_undefined_flag=$lt_no_undefined_flag_RC
18328
18329# Commands used to finish a libtool library installation in a directory.
18330finish_cmds=$lt_finish_cmds
18331
18332# Same as above, but a single script fragment to be evaled but not shown.
18333finish_eval=$lt_finish_eval
18334
18335# Take the output of nm and produce a listing of raw symbols and C names.
18336global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18337
18338# Transform the output of nm in a proper C declaration
18339global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18340
18341# Transform the output of nm in a C name address pair
18342global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18343
18344# This is the shared library runtime path variable.
18345runpath_var=$runpath_var
18346
18347# This is the shared library path variable.
18348shlibpath_var=$shlibpath_var
18349
18350# Is shlibpath searched before the hard-coded library search path?
18351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18352
18353# How to hardcode a shared library path into an executable.
18354hardcode_action=$hardcode_action_RC
18355
18356# Whether we should hardcode library paths into libraries.
18357hardcode_into_libs=$hardcode_into_libs
18358
18359# Flag to hardcode \$libdir into a binary during linking.
18360# This must work even if \$libdir does not exist.
18361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18362
18363# If ld is used when linking, flag to hardcode \$libdir into
18364# a binary during linking. This must work even if \$libdir does
18365# not exist.
18366hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18367
18368# Whether we need a single -rpath flag with a separated argument.
18369hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18370
18371# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18372# resulting binary.
18373hardcode_direct=$hardcode_direct_RC
18374
18375# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18376# resulting binary.
18377hardcode_minus_L=$hardcode_minus_L_RC
18378
18379# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18380# the resulting binary.
18381hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18382
18383# Set to yes if building a shared library automatically hardcodes DIR into the library
18384# and all subsequent libraries and executables linked against it.
18385hardcode_automatic=$hardcode_automatic_RC
18386
18387# Variables whose values should be saved in libtool wrapper scripts and
18388# restored at relink time.
18389variables_saved_for_relink="$variables_saved_for_relink"
18390
18391# Whether libtool must link a program against all its dependency libraries.
18392link_all_deplibs=$link_all_deplibs_RC
18393
18394# Compile-time system search path for libraries
18395sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18396
18397# Run-time system search path for libraries
18398sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18399
18400# Fix the shell variable \$srcfile for the compiler.
18401fix_srcfile_path="$fix_srcfile_path_RC"
18402
18403# Set to yes if exported symbols are required.
18404always_export_symbols=$always_export_symbols_RC
18405
18406# The commands to list exported symbols.
18407export_symbols_cmds=$lt_export_symbols_cmds_RC
18408
18409# The commands to extract the exported symbol list from a shared archive.
18410extract_expsyms_cmds=$lt_extract_expsyms_cmds
18411
18412# Symbols that should not be listed in the preloaded symbols.
18413exclude_expsyms=$lt_exclude_expsyms_RC
18414
18415# Symbols that must always be exported.
18416include_expsyms=$lt_include_expsyms_RC
18417
18418# ### END LIBTOOL TAG CONFIG: $tagname
18419
18420__EOF__
18421
18422
18423else
18424  # If there is no Makefile yet, we rely on a make rule to execute
18425  # `config.status --recheck' to rerun these tests and create the
18426  # libtool script then.
18427  test -f Makefile && make "$ltmain"
18428fi
18429
18430
18431ac_ext=c
18432ac_cpp='$CPP $CPPFLAGS'
18433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18435ac_compiler_gnu=$ac_cv_c_compiler_gnu
18436
18437CC="$lt_save_CC"
18438
18439	;;
18440
18441      *)
18442	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18443echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18444   { (exit 1); exit 1; }; }
18445	;;
18446      esac
18447
18448      # Append the new tag name to the list of available tags.
18449      if test -n "$tagname" ; then
18450      available_tags="$available_tags $tagname"
18451    fi
18452    fi
18453  done
18454  IFS="$lt_save_ifs"
18455
18456  # Now substitute the updated list of available tags.
18457  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18458    mv "${ofile}T" "$ofile"
18459    chmod +x "$ofile"
18460  else
18461    rm -f "${ofile}T"
18462    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18463echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18464   { (exit 1); exit 1; }; }
18465  fi
18466fi
18467
18468
18469
18470# This can be used to rebuild libtool when needed
18471LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18472
18473# Always use our own libtool.
18474LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18475
18476# Prevent multiple expansion
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498# Checks for libraries.
18499
18500# Checks for header files.
18501echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18502echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18503if test "${ac_cv_header_stdc+set}" = set; then
18504  echo $ECHO_N "(cached) $ECHO_C" >&6
18505else
18506  cat >conftest.$ac_ext <<_ACEOF
18507#line $LINENO "configure"
18508/* confdefs.h.  */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h.  */
18513#include <stdlib.h>
18514#include <stdarg.h>
18515#include <string.h>
18516#include <float.h>
18517
18518int
18519main ()
18520{
18521
18522  ;
18523  return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
18527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528  (eval $ac_compile) 2>&5
18529  ac_status=$?
18530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531  (exit $ac_status); } &&
18532         { ac_try='test -s conftest.$ac_objext'
18533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534  (eval $ac_try) 2>&5
18535  ac_status=$?
18536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537  (exit $ac_status); }; }; then
18538  ac_cv_header_stdc=yes
18539else
18540  echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543ac_cv_header_stdc=no
18544fi
18545rm -f conftest.$ac_objext conftest.$ac_ext
18546
18547if test $ac_cv_header_stdc = yes; then
18548  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18549  cat >conftest.$ac_ext <<_ACEOF
18550#line $LINENO "configure"
18551/* confdefs.h.  */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h.  */
18556#include <string.h>
18557
18558_ACEOF
18559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18560  $EGREP "memchr" >/dev/null 2>&1; then
18561  :
18562else
18563  ac_cv_header_stdc=no
18564fi
18565rm -f conftest*
18566
18567fi
18568
18569if test $ac_cv_header_stdc = yes; then
18570  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18571  cat >conftest.$ac_ext <<_ACEOF
18572#line $LINENO "configure"
18573/* confdefs.h.  */
18574_ACEOF
18575cat confdefs.h >>conftest.$ac_ext
18576cat >>conftest.$ac_ext <<_ACEOF
18577/* end confdefs.h.  */
18578#include <stdlib.h>
18579
18580_ACEOF
18581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18582  $EGREP "free" >/dev/null 2>&1; then
18583  :
18584else
18585  ac_cv_header_stdc=no
18586fi
18587rm -f conftest*
18588
18589fi
18590
18591if test $ac_cv_header_stdc = yes; then
18592  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18593  if test "$cross_compiling" = yes; then
18594  :
18595else
18596  cat >conftest.$ac_ext <<_ACEOF
18597#line $LINENO "configure"
18598/* confdefs.h.  */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h.  */
18603#include <ctype.h>
18604#if ((' ' & 0x0FF) == 0x020)
18605# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18606# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18607#else
18608# define ISLOWER(c) \
18609                   (('a' <= (c) && (c) <= 'i') \
18610                     || ('j' <= (c) && (c) <= 'r') \
18611                     || ('s' <= (c) && (c) <= 'z'))
18612# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18613#endif
18614
18615#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18616int
18617main ()
18618{
18619  int i;
18620  for (i = 0; i < 256; i++)
18621    if (XOR (islower (i), ISLOWER (i))
18622        || toupper (i) != TOUPPER (i))
18623      exit(2);
18624  exit (0);
18625}
18626_ACEOF
18627rm -f conftest$ac_exeext
18628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629  (eval $ac_link) 2>&5
18630  ac_status=$?
18631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634  (eval $ac_try) 2>&5
18635  ac_status=$?
18636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637  (exit $ac_status); }; }; then
18638  :
18639else
18640  echo "$as_me: program exited with status $ac_status" >&5
18641echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644( exit $ac_status )
18645ac_cv_header_stdc=no
18646fi
18647rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18648fi
18649fi
18650fi
18651echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18652echo "${ECHO_T}$ac_cv_header_stdc" >&6
18653if test $ac_cv_header_stdc = yes; then
18654
18655cat >>confdefs.h <<\_ACEOF
18656#define STDC_HEADERS 1
18657_ACEOF
18658
18659fi
18660
18661
18662# Checks for typedefs, structures, and compiler characteristics.
18663echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18664echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18665if test "${ac_cv_c_const+set}" = set; then
18666  echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668  cat >conftest.$ac_ext <<_ACEOF
18669#line $LINENO "configure"
18670/* confdefs.h.  */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h.  */
18675
18676int
18677main ()
18678{
18679/* FIXME: Include the comments suggested by Paul. */
18680#ifndef __cplusplus
18681  /* Ultrix mips cc rejects this.  */
18682  typedef int charset[2];
18683  const charset x;
18684  /* SunOS 4.1.1 cc rejects this.  */
18685  char const *const *ccp;
18686  char **p;
18687  /* NEC SVR4.0.2 mips cc rejects this.  */
18688  struct point {int x, y;};
18689  static struct point const zero = {0,0};
18690  /* AIX XL C 1.02.0.0 rejects this.
18691     It does not let you subtract one const X* pointer from another in
18692     an arm of an if-expression whose if-part is not a constant
18693     expression */
18694  const char *g = "string";
18695  ccp = &g + (g ? g-g : 0);
18696  /* HPUX 7.0 cc rejects these. */
18697  ++ccp;
18698  p = (char**) ccp;
18699  ccp = (char const *const *) p;
18700  { /* SCO 3.2v4 cc rejects this.  */
18701    char *t;
18702    char const *s = 0 ? (char *) 0 : (char const *) 0;
18703
18704    *t++ = 0;
18705  }
18706  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18707    int x[] = {25, 17};
18708    const int *foo = &x[0];
18709    ++foo;
18710  }
18711  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18712    typedef const int *iptr;
18713    iptr p = 0;
18714    ++p;
18715  }
18716  { /* AIX XL C 1.02.0.0 rejects this saying
18717       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18718    struct s { int j; const int *ap[3]; };
18719    struct s *b; b->j = 5;
18720  }
18721  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18722    const int foo = 10;
18723  }
18724#endif
18725
18726  ;
18727  return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext
18731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732  (eval $ac_compile) 2>&5
18733  ac_status=$?
18734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735  (exit $ac_status); } &&
18736         { ac_try='test -s conftest.$ac_objext'
18737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738  (eval $ac_try) 2>&5
18739  ac_status=$?
18740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741  (exit $ac_status); }; }; then
18742  ac_cv_c_const=yes
18743else
18744  echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
18747ac_cv_c_const=no
18748fi
18749rm -f conftest.$ac_objext conftest.$ac_ext
18750fi
18751echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18752echo "${ECHO_T}$ac_cv_c_const" >&6
18753if test $ac_cv_c_const = no; then
18754
18755cat >>confdefs.h <<\_ACEOF
18756#define const
18757_ACEOF
18758
18759fi
18760
18761
18762# Checks for library functions.
18763
18764for ac_header in stdlib.h
18765do
18766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18767if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768  echo "$as_me:$LINENO: checking for $ac_header" >&5
18769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18770if eval "test \"\${$as_ac_Header+set}\" = set"; then
18771  echo $ECHO_N "(cached) $ECHO_C" >&6
18772fi
18773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18775else
18776  # Is the header compilable?
18777echo "$as_me:$LINENO: checking $ac_header usability" >&5
18778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18779cat >conftest.$ac_ext <<_ACEOF
18780#line $LINENO "configure"
18781/* confdefs.h.  */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h.  */
18786$ac_includes_default
18787#include <$ac_header>
18788_ACEOF
18789rm -f conftest.$ac_objext
18790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18791  (eval $ac_compile) 2>&5
18792  ac_status=$?
18793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794  (exit $ac_status); } &&
18795         { ac_try='test -s conftest.$ac_objext'
18796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797  (eval $ac_try) 2>&5
18798  ac_status=$?
18799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800  (exit $ac_status); }; }; then
18801  ac_header_compiler=yes
18802else
18803  echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806ac_header_compiler=no
18807fi
18808rm -f conftest.$ac_objext conftest.$ac_ext
18809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18810echo "${ECHO_T}$ac_header_compiler" >&6
18811
18812# Is the header present?
18813echo "$as_me:$LINENO: checking $ac_header presence" >&5
18814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18815cat >conftest.$ac_ext <<_ACEOF
18816#line $LINENO "configure"
18817/* confdefs.h.  */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h.  */
18822#include <$ac_header>
18823_ACEOF
18824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18826  ac_status=$?
18827  grep -v '^ *+' conftest.er1 >conftest.err
18828  rm -f conftest.er1
18829  cat conftest.err >&5
18830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831  (exit $ac_status); } >/dev/null; then
18832  if test -s conftest.err; then
18833    ac_cpp_err=$ac_c_preproc_warn_flag
18834  else
18835    ac_cpp_err=
18836  fi
18837else
18838  ac_cpp_err=yes
18839fi
18840if test -z "$ac_cpp_err"; then
18841  ac_header_preproc=yes
18842else
18843  echo "$as_me: failed program was:" >&5
18844sed 's/^/| /' conftest.$ac_ext >&5
18845
18846  ac_header_preproc=no
18847fi
18848rm -f conftest.err conftest.$ac_ext
18849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850echo "${ECHO_T}$ac_header_preproc" >&6
18851
18852# So?  What about this header?
18853case $ac_header_compiler:$ac_header_preproc in
18854  yes:no )
18855    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18859    (
18860      cat <<\_ASBOX
18861## ------------------------------------ ##
18862## Report this to bug-autoconf@gnu.org. ##
18863## ------------------------------------ ##
18864_ASBOX
18865    ) |
18866      sed "s/^/$as_me: WARNING:     /" >&2
18867    ;;
18868  no:yes )
18869    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18871    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18875    (
18876      cat <<\_ASBOX
18877## ------------------------------------ ##
18878## Report this to bug-autoconf@gnu.org. ##
18879## ------------------------------------ ##
18880_ASBOX
18881    ) |
18882      sed "s/^/$as_me: WARNING:     /" >&2
18883    ;;
18884esac
18885echo "$as_me:$LINENO: checking for $ac_header" >&5
18886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18887if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888  echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890  eval "$as_ac_Header=$ac_header_preproc"
18891fi
18892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18894
18895fi
18896if test `eval echo '${'$as_ac_Header'}'` = yes; then
18897  cat >>confdefs.h <<_ACEOF
18898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18899_ACEOF
18900
18901fi
18902
18903done
18904
18905echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18906echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
18907if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18908  echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910  if test "$cross_compiling" = yes; then
18911  ac_cv_func_malloc_0_nonnull=no
18912else
18913  cat >conftest.$ac_ext <<_ACEOF
18914#line $LINENO "configure"
18915/* confdefs.h.  */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h.  */
18920#if STDC_HEADERS || HAVE_STDLIB_H
18921# include <stdlib.h>
18922#else
18923char *malloc ();
18924#endif
18925
18926int
18927main ()
18928{
18929exit (malloc (0) ? 0 : 1);
18930  ;
18931  return 0;
18932}
18933_ACEOF
18934rm -f conftest$ac_exeext
18935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936  (eval $ac_link) 2>&5
18937  ac_status=$?
18938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941  (eval $ac_try) 2>&5
18942  ac_status=$?
18943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944  (exit $ac_status); }; }; then
18945  ac_cv_func_malloc_0_nonnull=yes
18946else
18947  echo "$as_me: program exited with status $ac_status" >&5
18948echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951( exit $ac_status )
18952ac_cv_func_malloc_0_nonnull=no
18953fi
18954rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18955fi
18956fi
18957echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18958echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
18959if test $ac_cv_func_malloc_0_nonnull = yes; then
18960
18961cat >>confdefs.h <<\_ACEOF
18962#define HAVE_MALLOC 1
18963_ACEOF
18964
18965else
18966  cat >>confdefs.h <<\_ACEOF
18967#define HAVE_MALLOC 0
18968_ACEOF
18969
18970   LIBOBJS="$LIBOBJS malloc.$ac_objext"
18971
18972cat >>confdefs.h <<\_ACEOF
18973#define malloc rpl_malloc
18974_ACEOF
18975
18976fi
18977
18978
18979
18980
18981
18982for ac_func in strdup strcasecmp
18983do
18984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985echo "$as_me:$LINENO: checking for $ac_func" >&5
18986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18987if eval "test \"\${$as_ac_var+set}\" = set"; then
18988  echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990  cat >conftest.$ac_ext <<_ACEOF
18991#line $LINENO "configure"
18992/* confdefs.h.  */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h.  */
18997/* System header to define __stub macros and hopefully few prototypes,
18998    which can conflict with char $ac_func (); below.
18999    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19000    <limits.h> exists even on freestanding compilers.  */
19001#ifdef __STDC__
19002# include <limits.h>
19003#else
19004# include <assert.h>
19005#endif
19006/* Override any gcc2 internal prototype to avoid an error.  */
19007#ifdef __cplusplus
19008extern "C"
19009{
19010#endif
19011/* We use char because int might match the return type of a gcc2
19012   builtin and then its argument prototype would still apply.  */
19013char $ac_func ();
19014/* The GNU C library defines this for functions which it implements
19015    to always fail with ENOSYS.  Some functions are actually named
19016    something starting with __ and the normal name is an alias.  */
19017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19018choke me
19019#else
19020char (*f) () = $ac_func;
19021#endif
19022#ifdef __cplusplus
19023}
19024#endif
19025
19026int
19027main ()
19028{
19029return f != $ac_func;
19030  ;
19031  return 0;
19032}
19033_ACEOF
19034rm -f conftest.$ac_objext conftest$ac_exeext
19035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036  (eval $ac_link) 2>&5
19037  ac_status=$?
19038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039  (exit $ac_status); } &&
19040         { ac_try='test -s conftest$ac_exeext'
19041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042  (eval $ac_try) 2>&5
19043  ac_status=$?
19044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045  (exit $ac_status); }; }; then
19046  eval "$as_ac_var=yes"
19047else
19048  echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051eval "$as_ac_var=no"
19052fi
19053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19054fi
19055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19057if test `eval echo '${'$as_ac_var'}'` = yes; then
19058  cat >>confdefs.h <<_ACEOF
19059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19060_ACEOF
19061
19062fi
19063done
19064
19065
19066                              ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
19067
19068cat >confcache <<\_ACEOF
19069# This file is a shell script that caches the results of configure
19070# tests run on this system so they can be shared between configure
19071# scripts and configure runs, see configure's option --config-cache.
19072# It is not useful on other systems.  If it contains results you don't
19073# want to keep, you may remove or edit it.
19074#
19075# config.status only pays attention to the cache file if you give it
19076# the --recheck option to rerun configure.
19077#
19078# `ac_cv_env_foo' variables (set or unset) will be overridden when
19079# loading this file, other *unset* `ac_cv_foo' will be assigned the
19080# following values.
19081
19082_ACEOF
19083
19084# The following way of writing the cache mishandles newlines in values,
19085# but we know of no workaround that is simple, portable, and efficient.
19086# So, don't put newlines in cache variables' values.
19087# Ultrix sh set writes to stderr and can't be redirected directly,
19088# and sets the high bit in the cache file unless we assign to the vars.
19089{
19090  (set) 2>&1 |
19091    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19092    *ac_space=\ *)
19093      # `set' does not quote correctly, so add quotes (double-quote
19094      # substitution turns \\\\ into \\, and sed turns \\ into \).
19095      sed -n \
19096        "s/'/'\\\\''/g;
19097    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19098      ;;
19099    *)
19100      # `set' quotes correctly as required by POSIX, so do not add quotes.
19101      sed -n \
19102        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19103      ;;
19104    esac;
19105} |
19106  sed '
19107     t clear
19108     : clear
19109     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19110     t end
19111     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19112     : end' >>confcache
19113if diff $cache_file confcache >/dev/null 2>&1; then :; else
19114  if test -w $cache_file; then
19115    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19116    cat confcache >$cache_file
19117  else
19118    echo "not updating unwritable cache $cache_file"
19119  fi
19120fi
19121rm -f confcache
19122
19123test "x$prefix" = xNONE && prefix=$ac_default_prefix
19124# Let make expand exec_prefix.
19125test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19126
19127# VPATH may cause trouble with some makes, so we remove $(srcdir),
19128# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19129# trailing colons and then remove the whole line if VPATH becomes empty
19130# (actually we leave an empty line to preserve line numbers).
19131if test "x$srcdir" = x.; then
19132  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
19133s/:*\$(srcdir):*/:/;
19134s/:*\${srcdir}:*/:/;
19135s/:*@srcdir@:*/:/;
19136s/^\([^=]*=[ 	]*\):*/\1/;
19137s/:*$//;
19138s/^[^=]*=[ 	]*$//;
19139}'
19140fi
19141
19142# Transform confdefs.h into DEFS.
19143# Protect against shell expansion while executing Makefile rules.
19144# Protect against Makefile macro expansion.
19145#
19146# If the first sed substitution is executed (which looks for macros that
19147# take arguments), then we branch to the quote section.  Otherwise,
19148# look for a macro that doesn't take arguments.
19149cat >confdef2opt.sed <<\_ACEOF
19150t clear
19151: clear
19152s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
19153t quote
19154s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
19155t quote
19156d
19157: quote
19158s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
19159s,\[,\\&,g
19160s,\],\\&,g
19161s,\$,$$,g
19162p
19163_ACEOF
19164# We use echo to avoid assuming a particular line-breaking character.
19165# The extra dot is to prevent the shell from consuming trailing
19166# line-breaks from the sub-command output.  A line-break within
19167# single-quotes doesn't work because, if this script is created in a
19168# platform that uses two characters for line-breaks (e.g., DOS), tr
19169# would break.
19170ac_LF_and_DOT=`echo; echo .`
19171DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19172rm -f confdef2opt.sed
19173
19174
19175ac_libobjs=
19176ac_ltlibobjs=
19177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19178  # 1. Remove the extension, and $U if already installed.
19179  ac_i=`echo "$ac_i" |
19180         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19181  # 2. Add them.
19182  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19183  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19184done
19185LIBOBJS=$ac_libobjs
19186
19187LTLIBOBJS=$ac_ltlibobjs
19188
19189
19190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19191  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19192Usually this means the macro was only invoked conditionally." >&5
19193echo "$as_me: error: conditional \"AMDEP\" was never defined.
19194Usually this means the macro was only invoked conditionally." >&2;}
19195   { (exit 1); exit 1; }; }
19196fi
19197if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19198  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19199Usually this means the macro was only invoked conditionally." >&5
19200echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19201Usually this means the macro was only invoked conditionally." >&2;}
19202   { (exit 1); exit 1; }; }
19203fi
19204if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19205  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19206Usually this means the macro was only invoked conditionally." >&5
19207echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19208Usually this means the macro was only invoked conditionally." >&2;}
19209   { (exit 1); exit 1; }; }
19210fi
19211
19212: ${CONFIG_STATUS=./config.status}
19213ac_clean_files_save=$ac_clean_files
19214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19215{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19216echo "$as_me: creating $CONFIG_STATUS" >&6;}
19217cat >$CONFIG_STATUS <<_ACEOF
19218#! $SHELL
19219# Generated by $as_me.
19220# Run this file to recreate the current configuration.
19221# Compiler output produced by configure, useful for debugging
19222# configure, is in config.log if it exists.
19223
19224debug=false
19225ac_cs_recheck=false
19226ac_cs_silent=false
19227SHELL=\${CONFIG_SHELL-$SHELL}
19228_ACEOF
19229
19230cat >>$CONFIG_STATUS <<\_ACEOF
19231## --------------------- ##
19232## M4sh Initialization.  ##
19233## --------------------- ##
19234
19235# Be Bourne compatible
19236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19237  emulate sh
19238  NULLCMD=:
19239  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19240  # is contrary to our usage.  Disable this feature.
19241  alias -g '${1+"$@"}'='"$@"'
19242elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19243  set -o posix
19244fi
19245
19246# Support unset when possible.
19247if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19248  as_unset=unset
19249else
19250  as_unset=false
19251fi
19252
19253
19254# Work around bugs in pre-3.0 UWIN ksh.
19255$as_unset ENV MAIL MAILPATH
19256PS1='$ '
19257PS2='> '
19258PS4='+ '
19259
19260# NLS nuisances.
19261for as_var in \
19262  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19263  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19264  LC_TELEPHONE LC_TIME
19265do
19266  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19267    eval $as_var=C; export $as_var
19268  else
19269    $as_unset $as_var
19270  fi
19271done
19272
19273# Required to use basename.
19274if expr a : '\(a\)' >/dev/null 2>&1; then
19275  as_expr=expr
19276else
19277  as_expr=false
19278fi
19279
19280if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19281  as_basename=basename
19282else
19283  as_basename=false
19284fi
19285
19286
19287# Name of the executable.
19288as_me=`$as_basename "$0" ||
19289$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19290	 X"$0" : 'X\(//\)$' \| \
19291	 X"$0" : 'X\(/\)$' \| \
19292	 .     : '\(.\)' 2>/dev/null ||
19293echo X/"$0" |
19294    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19295  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19296  	  /^X\/\(\/\).*/{ s//\1/; q; }
19297  	  s/.*/./; q'`
19298
19299
19300# PATH needs CR, and LINENO needs CR and PATH.
19301# Avoid depending upon Character Ranges.
19302as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19303as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19304as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19305as_cr_digits='0123456789'
19306as_cr_alnum=$as_cr_Letters$as_cr_digits
19307
19308# The user is always right.
19309if test "${PATH_SEPARATOR+set}" != set; then
19310  echo "#! /bin/sh" >conf$$.sh
19311  echo  "exit 0"   >>conf$$.sh
19312  chmod +x conf$$.sh
19313  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19314    PATH_SEPARATOR=';'
19315  else
19316    PATH_SEPARATOR=:
19317  fi
19318  rm -f conf$$.sh
19319fi
19320
19321
19322  as_lineno_1=$LINENO
19323  as_lineno_2=$LINENO
19324  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19325  test "x$as_lineno_1" != "x$as_lineno_2" &&
19326  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19327  # Find who we are.  Look in the path if we contain no path at all
19328  # relative or not.
19329  case $0 in
19330    *[\\/]* ) as_myself=$0 ;;
19331    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19332for as_dir in $PATH
19333do
19334  IFS=$as_save_IFS
19335  test -z "$as_dir" && as_dir=.
19336  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19337done
19338
19339       ;;
19340  esac
19341  # We did not find ourselves, most probably we were run as `sh COMMAND'
19342  # in which case we are not to be found in the path.
19343  if test "x$as_myself" = x; then
19344    as_myself=$0
19345  fi
19346  if test ! -f "$as_myself"; then
19347    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19348echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19349   { (exit 1); exit 1; }; }
19350  fi
19351  case $CONFIG_SHELL in
19352  '')
19353    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19354for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19355do
19356  IFS=$as_save_IFS
19357  test -z "$as_dir" && as_dir=.
19358  for as_base in sh bash ksh sh5; do
19359	 case $as_dir in
19360	 /*)
19361	   if ("$as_dir/$as_base" -c '
19362  as_lineno_1=$LINENO
19363  as_lineno_2=$LINENO
19364  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19365  test "x$as_lineno_1" != "x$as_lineno_2" &&
19366  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19367	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19368	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19369	     CONFIG_SHELL=$as_dir/$as_base
19370	     export CONFIG_SHELL
19371	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19372	   fi;;
19373	 esac
19374       done
19375done
19376;;
19377  esac
19378
19379  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19380  # uniformly replaced by the line number.  The first 'sed' inserts a
19381  # line-number line before each line; the second 'sed' does the real
19382  # work.  The second script uses 'N' to pair each line-number line
19383  # with the numbered line, and appends trailing '-' during
19384  # substitution so that $LINENO is not a special case at line end.
19385  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19386  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19387  sed '=' <$as_myself |
19388    sed '
19389      N
19390      s,$,-,
19391      : loop
19392      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19393      t loop
19394      s,-$,,
19395      s,^['$as_cr_digits']*\n,,
19396    ' >$as_me.lineno &&
19397  chmod +x $as_me.lineno ||
19398    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19399echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19400   { (exit 1); exit 1; }; }
19401
19402  # Don't try to exec as it changes $[0], causing all sort of problems
19403  # (the dirname of $[0] is not the place where we might find the
19404  # original and so on.  Autoconf is especially sensible to this).
19405  . ./$as_me.lineno
19406  # Exit status is that of the last command.
19407  exit
19408}
19409
19410
19411case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19412  *c*,-n*) ECHO_N= ECHO_C='
19413' ECHO_T='	' ;;
19414  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19415  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19416esac
19417
19418if expr a : '\(a\)' >/dev/null 2>&1; then
19419  as_expr=expr
19420else
19421  as_expr=false
19422fi
19423
19424rm -f conf$$ conf$$.exe conf$$.file
19425echo >conf$$.file
19426if ln -s conf$$.file conf$$ 2>/dev/null; then
19427  # We could just check for DJGPP; but this test a) works b) is more generic
19428  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19429  if test -f conf$$.exe; then
19430    # Don't use ln at all; we don't have any links
19431    as_ln_s='cp -p'
19432  else
19433    as_ln_s='ln -s'
19434  fi
19435elif ln conf$$.file conf$$ 2>/dev/null; then
19436  as_ln_s=ln
19437else
19438  as_ln_s='cp -p'
19439fi
19440rm -f conf$$ conf$$.exe conf$$.file
19441
19442if mkdir -p . 2>/dev/null; then
19443  as_mkdir_p=:
19444else
19445  as_mkdir_p=false
19446fi
19447
19448as_executable_p="test -f"
19449
19450# Sed expression to map a string onto a valid CPP name.
19451as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19452
19453# Sed expression to map a string onto a valid variable name.
19454as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19455
19456
19457# IFS
19458# We need space, tab and new line, in precisely that order.
19459as_nl='
19460'
19461IFS=" 	$as_nl"
19462
19463# CDPATH.
19464$as_unset CDPATH
19465
19466exec 6>&1
19467
19468# Open the log real soon, to keep \$[0] and so on meaningful, and to
19469# report actual input values of CONFIG_FILES etc. instead of their
19470# values after options handling.  Logging --version etc. is OK.
19471exec 5>>config.log
19472{
19473  echo
19474  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19475## Running $as_me. ##
19476_ASBOX
19477} >&5
19478cat >&5 <<_CSEOF
19479
19480This file was extended by libvc $as_me 003, which was
19481generated by GNU Autoconf 2.57.  Invocation command line was
19482
19483  CONFIG_FILES    = $CONFIG_FILES
19484  CONFIG_HEADERS  = $CONFIG_HEADERS
19485  CONFIG_LINKS    = $CONFIG_LINKS
19486  CONFIG_COMMANDS = $CONFIG_COMMANDS
19487  $ $0 $@
19488
19489_CSEOF
19490echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19491echo >&5
19492_ACEOF
19493
19494# Files that config.status was made for.
19495if test -n "$ac_config_files"; then
19496  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19497fi
19498
19499if test -n "$ac_config_headers"; then
19500  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19501fi
19502
19503if test -n "$ac_config_links"; then
19504  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19505fi
19506
19507if test -n "$ac_config_commands"; then
19508  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19509fi
19510
19511cat >>$CONFIG_STATUS <<\_ACEOF
19512
19513ac_cs_usage="\
19514\`$as_me' instantiates files from templates according to the
19515current configuration.
19516
19517Usage: $0 [OPTIONS] [FILE]...
19518
19519  -h, --help       print this help, then exit
19520  -V, --version    print version number, then exit
19521  -q, --quiet      do not print progress messages
19522  -d, --debug      don't remove temporary files
19523      --recheck    update $as_me by reconfiguring in the same conditions
19524  --file=FILE[:TEMPLATE]
19525                   instantiate the configuration file FILE
19526
19527Configuration files:
19528$config_files
19529
19530Configuration commands:
19531$config_commands
19532
19533Report bugs to <bug-autoconf@gnu.org>."
19534_ACEOF
19535
19536cat >>$CONFIG_STATUS <<_ACEOF
19537ac_cs_version="\\
19538libvc config.status 003
19539configured by $0, generated by GNU Autoconf 2.57,
19540  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19541
19542Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19543Free Software Foundation, Inc.
19544This config.status script is free software; the Free Software Foundation
19545gives unlimited permission to copy, distribute and modify it."
19546srcdir=$srcdir
19547INSTALL="$INSTALL"
19548_ACEOF
19549
19550cat >>$CONFIG_STATUS <<\_ACEOF
19551# If no file are specified by the user, then we need to provide default
19552# value.  By we need to know if files were specified by the user.
19553ac_need_defaults=:
19554while test $# != 0
19555do
19556  case $1 in
19557  --*=*)
19558    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19559    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19560    ac_shift=:
19561    ;;
19562  -*)
19563    ac_option=$1
19564    ac_optarg=$2
19565    ac_shift=shift
19566    ;;
19567  *) # This is not an option, so the user has probably given explicit
19568     # arguments.
19569     ac_option=$1
19570     ac_need_defaults=false;;
19571  esac
19572
19573  case $ac_option in
19574  # Handling of the options.
19575_ACEOF
19576cat >>$CONFIG_STATUS <<\_ACEOF
19577  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19578    ac_cs_recheck=: ;;
19579  --version | --vers* | -V )
19580    echo "$ac_cs_version"; exit 0 ;;
19581  --he | --h)
19582    # Conflict between --help and --header
19583    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19584Try \`$0 --help' for more information." >&5
19585echo "$as_me: error: ambiguous option: $1
19586Try \`$0 --help' for more information." >&2;}
19587   { (exit 1); exit 1; }; };;
19588  --help | --hel | -h )
19589    echo "$ac_cs_usage"; exit 0 ;;
19590  --debug | --d* | -d )
19591    debug=: ;;
19592  --file | --fil | --fi | --f )
19593    $ac_shift
19594    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19595    ac_need_defaults=false;;
19596  --header | --heade | --head | --hea )
19597    $ac_shift
19598    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19599    ac_need_defaults=false;;
19600  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19601  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19602    ac_cs_silent=: ;;
19603
19604  # This is an error.
19605  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19606Try \`$0 --help' for more information." >&5
19607echo "$as_me: error: unrecognized option: $1
19608Try \`$0 --help' for more information." >&2;}
19609   { (exit 1); exit 1; }; } ;;
19610
19611  *) ac_config_targets="$ac_config_targets $1" ;;
19612
19613  esac
19614  shift
19615done
19616
19617ac_configure_extra_args=
19618
19619if $ac_cs_silent; then
19620  exec 6>/dev/null
19621  ac_configure_extra_args="$ac_configure_extra_args --silent"
19622fi
19623
19624_ACEOF
19625cat >>$CONFIG_STATUS <<_ACEOF
19626if \$ac_cs_recheck; then
19627  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19628  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19629fi
19630
19631_ACEOF
19632
19633cat >>$CONFIG_STATUS <<_ACEOF
19634#
19635# INIT-COMMANDS section.
19636#
19637
19638AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19639
19640_ACEOF
19641
19642
19643
19644cat >>$CONFIG_STATUS <<\_ACEOF
19645for ac_config_target in $ac_config_targets
19646do
19647  case "$ac_config_target" in
19648  # Handling of arguments.
19649  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19650  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19651  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19652  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19653  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19654echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19655   { (exit 1); exit 1; }; };;
19656  esac
19657done
19658
19659# If the user did not use the arguments to specify the items to instantiate,
19660# then the envvar interface is used.  Set only those that are not.
19661# We use the long form for the default assignment because of an extremely
19662# bizarre bug on SunOS 4.1.3.
19663if $ac_need_defaults; then
19664  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19665  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19666fi
19667
19668# Have a temporary directory for convenience.  Make it in the build tree
19669# simply because there is no reason to put it here, and in addition,
19670# creating and moving files from /tmp can sometimes cause problems.
19671# Create a temporary directory, and hook for its removal unless debugging.
19672$debug ||
19673{
19674  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19675  trap '{ (exit 1); exit 1; }' 1 2 13 15
19676}
19677
19678# Create a (secure) tmp directory for tmp files.
19679
19680{
19681  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19682  test -n "$tmp" && test -d "$tmp"
19683}  ||
19684{
19685  tmp=./confstat$$-$RANDOM
19686  (umask 077 && mkdir $tmp)
19687} ||
19688{
19689   echo "$me: cannot create a temporary directory in ." >&2
19690   { (exit 1); exit 1; }
19691}
19692
19693_ACEOF
19694
19695cat >>$CONFIG_STATUS <<_ACEOF
19696
19697#
19698# CONFIG_FILES section.
19699#
19700
19701# No need to generate the scripts if there are no CONFIG_FILES.
19702# This happens for instance when ./config.status config.h
19703if test -n "\$CONFIG_FILES"; then
19704  # Protect against being on the right side of a sed subst in config.status.
19705  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19706   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19707s,@SHELL@,$SHELL,;t t
19708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19714s,@exec_prefix@,$exec_prefix,;t t
19715s,@prefix@,$prefix,;t t
19716s,@program_transform_name@,$program_transform_name,;t t
19717s,@bindir@,$bindir,;t t
19718s,@sbindir@,$sbindir,;t t
19719s,@libexecdir@,$libexecdir,;t t
19720s,@datadir@,$datadir,;t t
19721s,@sysconfdir@,$sysconfdir,;t t
19722s,@sharedstatedir@,$sharedstatedir,;t t
19723s,@localstatedir@,$localstatedir,;t t
19724s,@libdir@,$libdir,;t t
19725s,@includedir@,$includedir,;t t
19726s,@oldincludedir@,$oldincludedir,;t t
19727s,@infodir@,$infodir,;t t
19728s,@mandir@,$mandir,;t t
19729s,@build_alias@,$build_alias,;t t
19730s,@host_alias@,$host_alias,;t t
19731s,@target_alias@,$target_alias,;t t
19732s,@DEFS@,$DEFS,;t t
19733s,@ECHO_C@,$ECHO_C,;t t
19734s,@ECHO_N@,$ECHO_N,;t t
19735s,@ECHO_T@,$ECHO_T,;t t
19736s,@LIBS@,$LIBS,;t t
19737s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19738s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19739s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19740s,@CYGPATH_W@,$CYGPATH_W,;t t
19741s,@PACKAGE@,$PACKAGE,;t t
19742s,@VERSION@,$VERSION,;t t
19743s,@ACLOCAL@,$ACLOCAL,;t t
19744s,@AUTOCONF@,$AUTOCONF,;t t
19745s,@AUTOMAKE@,$AUTOMAKE,;t t
19746s,@AUTOHEADER@,$AUTOHEADER,;t t
19747s,@MAKEINFO@,$MAKEINFO,;t t
19748s,@AMTAR@,$AMTAR,;t t
19749s,@install_sh@,$install_sh,;t t
19750s,@STRIP@,$STRIP,;t t
19751s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19752s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19753s,@AWK@,$AWK,;t t
19754s,@SET_MAKE@,$SET_MAKE,;t t
19755s,@am__leading_dot@,$am__leading_dot,;t t
19756s,@CC@,$CC,;t t
19757s,@CFLAGS@,$CFLAGS,;t t
19758s,@LDFLAGS@,$LDFLAGS,;t t
19759s,@CPPFLAGS@,$CPPFLAGS,;t t
19760s,@ac_ct_CC@,$ac_ct_CC,;t t
19761s,@EXEEXT@,$EXEEXT,;t t
19762s,@OBJEXT@,$OBJEXT,;t t
19763s,@DEPDIR@,$DEPDIR,;t t
19764s,@am__include@,$am__include,;t t
19765s,@am__quote@,$am__quote,;t t
19766s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19767s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19768s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19769s,@CCDEPMODE@,$CCDEPMODE,;t t
19770s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19771s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19772s,@LEX@,$LEX,;t t
19773s,@LEXLIB@,$LEXLIB,;t t
19774s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19775s,@YACC@,$YACC,;t t
19776s,@build@,$build,;t t
19777s,@build_cpu@,$build_cpu,;t t
19778s,@build_vendor@,$build_vendor,;t t
19779s,@build_os@,$build_os,;t t
19780s,@host@,$host,;t t
19781s,@host_cpu@,$host_cpu,;t t
19782s,@host_vendor@,$host_vendor,;t t
19783s,@host_os@,$host_os,;t t
19784s,@EGREP@,$EGREP,;t t
19785s,@LN_S@,$LN_S,;t t
19786s,@ECHO@,$ECHO,;t t
19787s,@AR@,$AR,;t t
19788s,@ac_ct_AR@,$ac_ct_AR,;t t
19789s,@RANLIB@,$RANLIB,;t t
19790s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19791s,@CPP@,$CPP,;t t
19792s,@CXX@,$CXX,;t t
19793s,@CXXFLAGS@,$CXXFLAGS,;t t
19794s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19795s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19796s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19797s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19798s,@CXXCPP@,$CXXCPP,;t t
19799s,@F77@,$F77,;t t
19800s,@FFLAGS@,$FFLAGS,;t t
19801s,@ac_ct_F77@,$ac_ct_F77,;t t
19802s,@LIBTOOL@,$LIBTOOL,;t t
19803s,@LIBOBJS@,$LIBOBJS,;t t
19804s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19805CEOF
19806
19807_ACEOF
19808
19809  cat >>$CONFIG_STATUS <<\_ACEOF
19810  # Split the substitutions into bite-sized pieces for seds with
19811  # small command number limits, like on Digital OSF/1 and HP-UX.
19812  ac_max_sed_lines=48
19813  ac_sed_frag=1 # Number of current file.
19814  ac_beg=1 # First line for current file.
19815  ac_end=$ac_max_sed_lines # Line after last line for current file.
19816  ac_more_lines=:
19817  ac_sed_cmds=
19818  while $ac_more_lines; do
19819    if test $ac_beg -gt 1; then
19820      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19821    else
19822      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19823    fi
19824    if test ! -s $tmp/subs.frag; then
19825      ac_more_lines=false
19826    else
19827      # The purpose of the label and of the branching condition is to
19828      # speed up the sed processing (if there are no `@' at all, there
19829      # is no need to browse any of the substitutions).
19830      # These are the two extra sed commands mentioned above.
19831      (echo ':t
19832  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19833      if test -z "$ac_sed_cmds"; then
19834  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19835      else
19836  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19837      fi
19838      ac_sed_frag=`expr $ac_sed_frag + 1`
19839      ac_beg=$ac_end
19840      ac_end=`expr $ac_end + $ac_max_sed_lines`
19841    fi
19842  done
19843  if test -z "$ac_sed_cmds"; then
19844    ac_sed_cmds=cat
19845  fi
19846fi # test -n "$CONFIG_FILES"
19847
19848_ACEOF
19849cat >>$CONFIG_STATUS <<\_ACEOF
19850for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19851  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19852  case $ac_file in
19853  - | *:- | *:-:* ) # input from stdin
19854        cat >$tmp/stdin
19855        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19856        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19857  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19858        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19859  * )   ac_file_in=$ac_file.in ;;
19860  esac
19861
19862  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19863  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19865         X"$ac_file" : 'X\(//\)[^/]' \| \
19866         X"$ac_file" : 'X\(//\)$' \| \
19867         X"$ac_file" : 'X\(/\)' \| \
19868         .     : '\(.\)' 2>/dev/null ||
19869echo X"$ac_file" |
19870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19872  	  /^X\(\/\/\)$/{ s//\1/; q; }
19873  	  /^X\(\/\).*/{ s//\1/; q; }
19874  	  s/.*/./; q'`
19875  { if $as_mkdir_p; then
19876    mkdir -p "$ac_dir"
19877  else
19878    as_dir="$ac_dir"
19879    as_dirs=
19880    while test ! -d "$as_dir"; do
19881      as_dirs="$as_dir $as_dirs"
19882      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19884         X"$as_dir" : 'X\(//\)[^/]' \| \
19885         X"$as_dir" : 'X\(//\)$' \| \
19886         X"$as_dir" : 'X\(/\)' \| \
19887         .     : '\(.\)' 2>/dev/null ||
19888echo X"$as_dir" |
19889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19890  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19891  	  /^X\(\/\/\)$/{ s//\1/; q; }
19892  	  /^X\(\/\).*/{ s//\1/; q; }
19893  	  s/.*/./; q'`
19894    done
19895    test ! -n "$as_dirs" || mkdir $as_dirs
19896  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19897echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19898   { (exit 1); exit 1; }; }; }
19899
19900  ac_builddir=.
19901
19902if test "$ac_dir" != .; then
19903  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19904  # A "../" for each directory in $ac_dir_suffix.
19905  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19906else
19907  ac_dir_suffix= ac_top_builddir=
19908fi
19909
19910case $srcdir in
19911  .)  # No --srcdir option.  We are building in place.
19912    ac_srcdir=.
19913    if test -z "$ac_top_builddir"; then
19914       ac_top_srcdir=.
19915    else
19916       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19917    fi ;;
19918  [\\/]* | ?:[\\/]* )  # Absolute path.
19919    ac_srcdir=$srcdir$ac_dir_suffix;
19920    ac_top_srcdir=$srcdir ;;
19921  *) # Relative path.
19922    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19923    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19924esac
19925# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19926# absolute.
19927ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19928ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19929ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19930ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19931
19932
19933  case $INSTALL in
19934  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19935  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19936  esac
19937
19938  if test x"$ac_file" != x-; then
19939    { echo "$as_me:$LINENO: creating $ac_file" >&5
19940echo "$as_me: creating $ac_file" >&6;}
19941    rm -f "$ac_file"
19942  fi
19943  # Let's still pretend it is `configure' which instantiates (i.e., don't
19944  # use $as_me), people would be surprised to read:
19945  #    /* config.h.  Generated by config.status.  */
19946  if test x"$ac_file" = x-; then
19947    configure_input=
19948  else
19949    configure_input="$ac_file.  "
19950  fi
19951  configure_input=$configure_input"Generated from `echo $ac_file_in |
19952                                     sed 's,.*/,,'` by configure."
19953
19954  # First look for the input files in the build tree, otherwise in the
19955  # src tree.
19956  ac_file_inputs=`IFS=:
19957    for f in $ac_file_in; do
19958      case $f in
19959      -) echo $tmp/stdin ;;
19960      [\\/$]*)
19961         # Absolute (can't be DOS-style, as IFS=:)
19962         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19963echo "$as_me: error: cannot find input file: $f" >&2;}
19964   { (exit 1); exit 1; }; }
19965         echo $f;;
19966      *) # Relative
19967         if test -f "$f"; then
19968           # Build tree
19969           echo $f
19970         elif test -f "$srcdir/$f"; then
19971           # Source tree
19972           echo $srcdir/$f
19973         else
19974           # /dev/null tree
19975           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19976echo "$as_me: error: cannot find input file: $f" >&2;}
19977   { (exit 1); exit 1; }; }
19978         fi;;
19979      esac
19980    done` || { (exit 1); exit 1; }
19981_ACEOF
19982cat >>$CONFIG_STATUS <<_ACEOF
19983  sed "$ac_vpsub
19984$extrasub
19985_ACEOF
19986cat >>$CONFIG_STATUS <<\_ACEOF
19987:t
19988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19989s,@configure_input@,$configure_input,;t t
19990s,@srcdir@,$ac_srcdir,;t t
19991s,@abs_srcdir@,$ac_abs_srcdir,;t t
19992s,@top_srcdir@,$ac_top_srcdir,;t t
19993s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19994s,@builddir@,$ac_builddir,;t t
19995s,@abs_builddir@,$ac_abs_builddir,;t t
19996s,@top_builddir@,$ac_top_builddir,;t t
19997s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19998s,@INSTALL@,$ac_INSTALL,;t t
19999" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20000  rm -f $tmp/stdin
20001  if test x"$ac_file" != x-; then
20002    mv $tmp/out $ac_file
20003  else
20004    cat $tmp/out
20005    rm -f $tmp/out
20006  fi
20007
20008done
20009_ACEOF
20010cat >>$CONFIG_STATUS <<\_ACEOF
20011
20012#
20013# CONFIG_COMMANDS section.
20014#
20015for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20016  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20017  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20018  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20019$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20020         X"$ac_dest" : 'X\(//\)[^/]' \| \
20021         X"$ac_dest" : 'X\(//\)$' \| \
20022         X"$ac_dest" : 'X\(/\)' \| \
20023         .     : '\(.\)' 2>/dev/null ||
20024echo X"$ac_dest" |
20025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20026  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20027  	  /^X\(\/\/\)$/{ s//\1/; q; }
20028  	  /^X\(\/\).*/{ s//\1/; q; }
20029  	  s/.*/./; q'`
20030  ac_builddir=.
20031
20032if test "$ac_dir" != .; then
20033  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20034  # A "../" for each directory in $ac_dir_suffix.
20035  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20036else
20037  ac_dir_suffix= ac_top_builddir=
20038fi
20039
20040case $srcdir in
20041  .)  # No --srcdir option.  We are building in place.
20042    ac_srcdir=.
20043    if test -z "$ac_top_builddir"; then
20044       ac_top_srcdir=.
20045    else
20046       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20047    fi ;;
20048  [\\/]* | ?:[\\/]* )  # Absolute path.
20049    ac_srcdir=$srcdir$ac_dir_suffix;
20050    ac_top_srcdir=$srcdir ;;
20051  *) # Relative path.
20052    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20053    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20054esac
20055# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20056# absolute.
20057ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20058ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20059ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20060ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20061
20062
20063  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20064echo "$as_me: executing $ac_dest commands" >&6;}
20065  case $ac_dest in
20066    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20067  # Strip MF so we end up with the name of the file.
20068  mf=`echo "$mf" | sed -e 's/:.*$//'`
20069  # Check whether this is an Automake generated Makefile or not.
20070  # We used to match only the files named `Makefile.in', but
20071  # some people rename them; so instead we look at the file content.
20072  # Grep'ing the first line is not enough: some people post-process
20073  # each Makefile.in and add a new line on top of each file to say so.
20074  # So let's grep whole file.
20075  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20076    dirpart=`(dirname "$mf") 2>/dev/null ||
20077$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20078         X"$mf" : 'X\(//\)[^/]' \| \
20079         X"$mf" : 'X\(//\)$' \| \
20080         X"$mf" : 'X\(/\)' \| \
20081         .     : '\(.\)' 2>/dev/null ||
20082echo X"$mf" |
20083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20084  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20085  	  /^X\(\/\/\)$/{ s//\1/; q; }
20086  	  /^X\(\/\).*/{ s//\1/; q; }
20087  	  s/.*/./; q'`
20088  else
20089    continue
20090  fi
20091  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20092  # Extract the definition of DEP_FILES from the Makefile without
20093  # running `make'.
20094  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20095  test -z "$DEPDIR" && continue
20096  # When using ansi2knr, U may be empty or an underscore; expand it
20097  U=`sed -n -e '/^U = / s///p' < "$mf"`
20098  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20099  # We invoke sed twice because it is the simplest approach to
20100  # changing $(DEPDIR) to its actual value in the expansion.
20101  for file in `sed -n -e '
20102    /^DEP_FILES = .*\\\\$/ {
20103      s/^DEP_FILES = //
20104      :loop
20105	s/\\\\$//
20106	p
20107	n
20108	/\\\\$/ b loop
20109      p
20110    }
20111    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20112       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20113    # Make sure the directory exists.
20114    test -f "$dirpart/$file" && continue
20115    fdir=`(dirname "$file") 2>/dev/null ||
20116$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20117         X"$file" : 'X\(//\)[^/]' \| \
20118         X"$file" : 'X\(//\)$' \| \
20119         X"$file" : 'X\(/\)' \| \
20120         .     : '\(.\)' 2>/dev/null ||
20121echo X"$file" |
20122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20123  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20124  	  /^X\(\/\/\)$/{ s//\1/; q; }
20125  	  /^X\(\/\).*/{ s//\1/; q; }
20126  	  s/.*/./; q'`
20127    { if $as_mkdir_p; then
20128    mkdir -p $dirpart/$fdir
20129  else
20130    as_dir=$dirpart/$fdir
20131    as_dirs=
20132    while test ! -d "$as_dir"; do
20133      as_dirs="$as_dir $as_dirs"
20134      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20136         X"$as_dir" : 'X\(//\)[^/]' \| \
20137         X"$as_dir" : 'X\(//\)$' \| \
20138         X"$as_dir" : 'X\(/\)' \| \
20139         .     : '\(.\)' 2>/dev/null ||
20140echo X"$as_dir" |
20141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20142  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20143  	  /^X\(\/\/\)$/{ s//\1/; q; }
20144  	  /^X\(\/\).*/{ s//\1/; q; }
20145  	  s/.*/./; q'`
20146    done
20147    test ! -n "$as_dirs" || mkdir $as_dirs
20148  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20149echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20150   { (exit 1); exit 1; }; }; }
20151
20152    # echo "creating $dirpart/$file"
20153    echo '# dummy' > "$dirpart/$file"
20154  done
20155done
20156 ;;
20157  esac
20158done
20159_ACEOF
20160
20161cat >>$CONFIG_STATUS <<\_ACEOF
20162
20163{ (exit 0); exit 0; }
20164_ACEOF
20165chmod +x $CONFIG_STATUS
20166ac_clean_files=$ac_clean_files_save
20167
20168
20169# configure is writing to config.log, and then calls config.status.
20170# config.status does its own redirection, appending to config.log.
20171# Unfortunately, on DOS this fails, as config.log is still kept open
20172# by configure, so config.status won't be able to write to it; its
20173# output is simply discarded.  So we exec the FD to /dev/null,
20174# effectively closing config.log, so it can be properly (re)opened and
20175# appended to by config.status.  When coming back to configure, we
20176# need to make the FD available again.
20177if test "$no_create" != yes; then
20178  ac_cs_success=:
20179  ac_config_status_args=
20180  test "$silent" = yes &&
20181    ac_config_status_args="$ac_config_status_args --quiet"
20182  exec 5>/dev/null
20183  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20184  exec 5>>config.log
20185  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20186  # would make configure fail if this is the last instruction.
20187  $ac_cs_success || { (exit 1); exit 1; }
20188fi
20189
20190