1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libltdl 1.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libltdl'
425PACKAGE_TARNAME='libltdl'
426PACKAGE_VERSION='1.2'
427PACKAGE_STRING='libltdl 1.2'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="ltdl.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of libltdl 1.2:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039  --enable-ltdl-install   install libltdl
1040
1041Optional Packages:
1042  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045  --with-pic              try to use only PIC/non-PIC objects [default=use
1046                          both]
1047  --with-tags[=TAGS]
1048                          include additional configurations [automatic]
1049
1050Some influential environment variables:
1051  CC          C compiler command
1052  CFLAGS      C compiler flags
1053  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054              nonstandard directory <lib dir>
1055  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056              headers in a nonstandard directory <include dir>
1057  CPP         C preprocessor
1058  CXX         C++ compiler command
1059  CXXFLAGS    C++ compiler flags
1060  CXXCPP      C++ preprocessor
1061  F77         Fortran 77 compiler command
1062  FFLAGS      Fortran 77 compiler flags
1063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067Report bugs to <bug-libtool@gnu.org>.
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072  # If there are subdirs, report their specific --help.
1073  ac_popdir=`pwd`
1074  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075    test -d $ac_dir || continue
1076    ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080  # A "../" for each directory in $ac_dir_suffix.
1081  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083  ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087  .)  # No --srcdir option.  We are building in place.
1088    ac_srcdir=.
1089    if test -z "$ac_top_builddir"; then
1090       ac_top_srcdir=.
1091    else
1092       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093    fi ;;
1094  [\\/]* | ?:[\\/]* )  # Absolute path.
1095    ac_srcdir=$srcdir$ac_dir_suffix;
1096    ac_top_srcdir=$srcdir ;;
1097  *) # Relative path.
1098    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107  case "$ac_dir" in
1108  .) ac_abs_builddir=`pwd`;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111  esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116  case ${ac_top_builddir}. in
1117  .) ac_abs_top_builddir=$ac_abs_builddir;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125  case $ac_srcdir in
1126  .) ac_abs_srcdir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134  case $ac_top_srcdir in
1135  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138  esac;;
1139esac
1140
1141    cd $ac_dir
1142    # Check for guested configure; otherwise get Cygnus style configure.
1143    if test -f $ac_srcdir/configure.gnu; then
1144      echo
1145      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146    elif test -f $ac_srcdir/configure; then
1147      echo
1148      $SHELL $ac_srcdir/configure  --help=recursive
1149    elif test -f $ac_srcdir/configure.ac ||
1150	   test -f $ac_srcdir/configure.in; then
1151      echo
1152      $ac_configure --help
1153    else
1154      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155    fi
1156    cd $ac_popdir
1157  done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162  cat <<\_ACEOF
1163libltdl configure 1.2
1164generated by GNU Autoconf 2.59
1165
1166Copyright (C) 2003 Free Software Foundation, Inc.
1167This configure script is free software; the Free Software Foundation
1168gives unlimited permission to copy, distribute and modify it.
1169_ACEOF
1170  exit 0
1171fi
1172exec 5>config.log
1173cat >&5 <<_ACEOF
1174This file contains any messages produced by compilers while
1175running configure, to aid debugging if configure makes a mistake.
1176
1177It was created by libltdl $as_me 1.2, which was
1178generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180  $ $0 $@
1181
1182_ACEOF
1183{
1184cat <<_ASUNAME
1185## --------- ##
1186## Platform. ##
1187## --------- ##
1188
1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206_ASUNAME
1207
1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209for as_dir in $PATH
1210do
1211  IFS=$as_save_IFS
1212  test -z "$as_dir" && as_dir=.
1213  echo "PATH: $as_dir"
1214done
1215
1216} >&5
1217
1218cat >&5 <<_ACEOF
1219
1220
1221## ----------- ##
1222## Core tests. ##
1223## ----------- ##
1224
1225_ACEOF
1226
1227
1228# Keep a trace of the command line.
1229# Strip out --no-create and --no-recursion so they do not pile up.
1230# Strip out --silent because we don't want to record it for future runs.
1231# Also quote any args containing shell meta-characters.
1232# Make two passes to allow for proper duplicate-argument suppression.
1233ac_configure_args=
1234ac_configure_args0=
1235ac_configure_args1=
1236ac_sep=
1237ac_must_keep_next=false
1238for ac_pass in 1 2
1239do
1240  for ac_arg
1241  do
1242    case $ac_arg in
1243    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245    | -silent | --silent | --silen | --sile | --sil)
1246      continue ;;
1247    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249    esac
1250    case $ac_pass in
1251    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252    2)
1253      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254      if test $ac_must_keep_next = true; then
1255	ac_must_keep_next=false # Got value, back to normal.
1256      else
1257	case $ac_arg in
1258	  *=* | --config-cache | -C | -disable-* | --disable-* \
1259	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261	  | -with-* | --with-* | -without-* | --without-* | --x)
1262	    case "$ac_configure_args0 " in
1263	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264	    esac
1265	    ;;
1266	  -* ) ac_must_keep_next=true ;;
1267	esac
1268      fi
1269      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270      # Get rid of the leading space.
1271      ac_sep=" "
1272      ;;
1273    esac
1274  done
1275done
1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279# When interrupted or exit'd, cleanup temporary files, and complete
1280# config.log.  We remove comments because anyway the quotes in there
1281# would cause problems or look ugly.
1282# WARNING: Be sure not to use single quotes in there, as some shells,
1283# such as our DU 5.0 friend, will then `close' the trap.
1284trap 'exit_status=$?
1285  # Save into config.log some information that might help in debugging.
1286  {
1287    echo
1288
1289    cat <<\_ASBOX
1290## ---------------- ##
1291## Cache variables. ##
1292## ---------------- ##
1293_ASBOX
1294    echo
1295    # The following way of writing the cache mishandles newlines in values,
1296{
1297  (set) 2>&1 |
1298    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299    *ac_space=\ *)
1300      sed -n \
1301	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303      ;;
1304    *)
1305      sed -n \
1306	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307      ;;
1308    esac;
1309}
1310    echo
1311
1312    cat <<\_ASBOX
1313## ----------------- ##
1314## Output variables. ##
1315## ----------------- ##
1316_ASBOX
1317    echo
1318    for ac_var in $ac_subst_vars
1319    do
1320      eval ac_val=$`echo $ac_var`
1321      echo "$ac_var='"'"'$ac_val'"'"'"
1322    done | sort
1323    echo
1324
1325    if test -n "$ac_subst_files"; then
1326      cat <<\_ASBOX
1327## ------------- ##
1328## Output files. ##
1329## ------------- ##
1330_ASBOX
1331      echo
1332      for ac_var in $ac_subst_files
1333      do
1334	eval ac_val=$`echo $ac_var`
1335	echo "$ac_var='"'"'$ac_val'"'"'"
1336      done | sort
1337      echo
1338    fi
1339
1340    if test -s confdefs.h; then
1341      cat <<\_ASBOX
1342## ----------- ##
1343## confdefs.h. ##
1344## ----------- ##
1345_ASBOX
1346      echo
1347      sed "/^$/d" confdefs.h | sort
1348      echo
1349    fi
1350    test "$ac_signal" != 0 &&
1351      echo "$as_me: caught signal $ac_signal"
1352    echo "$as_me: exit $exit_status"
1353  } >&5
1354  rm -f core *.core &&
1355  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356    exit $exit_status
1357     ' 0
1358for ac_signal in 1 2 13 15; do
1359  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360done
1361ac_signal=0
1362
1363# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364rm -rf conftest* confdefs.h
1365# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366echo >confdefs.h
1367
1368# Predefined preprocessor variables.
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_NAME "$PACKAGE_NAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_STRING "$PACKAGE_STRING"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392_ACEOF
1393
1394
1395# Let the site file select an alternate cache file if it wants to.
1396# Prefer explicitly selected file to automatically selected ones.
1397if test -z "$CONFIG_SITE"; then
1398  if test "x$prefix" != xNONE; then
1399    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400  else
1401    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402  fi
1403fi
1404for ac_site_file in $CONFIG_SITE; do
1405  if test -r "$ac_site_file"; then
1406    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407echo "$as_me: loading site script $ac_site_file" >&6;}
1408    sed 's/^/| /' "$ac_site_file" >&5
1409    . "$ac_site_file"
1410  fi
1411done
1412
1413if test -r "$cache_file"; then
1414  # Some versions of bash will fail to source /dev/null (special
1415  # files actually), so we avoid doing that.
1416  if test -f "$cache_file"; then
1417    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418echo "$as_me: loading cache $cache_file" >&6;}
1419    case $cache_file in
1420      [\\/]* | ?:[\\/]* ) . $cache_file;;
1421      *)                      . ./$cache_file;;
1422    esac
1423  fi
1424else
1425  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426echo "$as_me: creating cache $cache_file" >&6;}
1427  >$cache_file
1428fi
1429
1430# Check that the precious variables saved in the cache have kept the same
1431# value.
1432ac_cache_corrupted=false
1433for ac_var in `(set) 2>&1 |
1434	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436  eval ac_new_set=\$ac_env_${ac_var}_set
1437  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438  eval ac_new_val="\$ac_env_${ac_var}_value"
1439  case $ac_old_set,$ac_new_set in
1440    set,)
1441      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443      ac_cache_corrupted=: ;;
1444    ,set)
1445      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447      ac_cache_corrupted=: ;;
1448    ,);;
1449    *)
1450      if test "x$ac_old_val" != "x$ac_new_val"; then
1451	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454echo "$as_me:   former value:  $ac_old_val" >&2;}
1455	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456echo "$as_me:   current value: $ac_new_val" >&2;}
1457	ac_cache_corrupted=:
1458      fi;;
1459  esac
1460  # Pass precious variables to config.status.
1461  if test "$ac_new_set" = set; then
1462    case $ac_new_val in
1463    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465    *) ac_arg=$ac_var=$ac_new_val ;;
1466    esac
1467    case " $ac_configure_args " in
1468      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470    esac
1471  fi
1472done
1473if $ac_cache_corrupted; then
1474  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478   { (exit 1); exit 1; }; }
1479fi
1480
1481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516## ------------------------------- ##
1517## Libltdl specific configuration. ##
1518## ------------------------------- ##
1519
1520ac_aux_dir=
1521for ac_dir in . $srcdir/.; do
1522  if test -f $ac_dir/install-sh; then
1523    ac_aux_dir=$ac_dir
1524    ac_install_sh="$ac_aux_dir/install-sh -c"
1525    break
1526  elif test -f $ac_dir/install.sh; then
1527    ac_aux_dir=$ac_dir
1528    ac_install_sh="$ac_aux_dir/install.sh -c"
1529    break
1530  elif test -f $ac_dir/shtool; then
1531    ac_aux_dir=$ac_dir
1532    ac_install_sh="$ac_aux_dir/shtool install -c"
1533    break
1534  fi
1535done
1536if test -z "$ac_aux_dir"; then
1537  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1538echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1539   { (exit 1); exit 1; }; }
1540fi
1541ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545
1546if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1547  if test -f ${srcdir}/ltmain.sh; then
1548    # if libltdl is libtoolized, it is assumed to be stand-alone and
1549    # installed unless the command line overrides it (tested above)
1550    enable_ltdl_install=yes
1551  else
1552    { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1553echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1554    { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1555echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1556    { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1557echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1558   { (exit 1); exit 1; }; }
1559  fi
1560fi
1561
1562
1563## ------------------------ ##
1564## Automake Initialisation. ##
1565## ------------------------ ##
1566am__api_version="1.9"
1567# Find a good install program.  We prefer a C program (faster),
1568# so one script is as good as another.  But avoid the broken or
1569# incompatible versions:
1570# SysV /etc/install, /usr/sbin/install
1571# SunOS /usr/etc/install
1572# IRIX /sbin/install
1573# AIX /bin/install
1574# AmigaOS /C/install, which installs bootblocks on floppy discs
1575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578# OS/2's system install, which has a completely different semantic
1579# ./install, which can be erroneously created by make from ./install.sh.
1580echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582if test -z "$INSTALL"; then
1583if test "${ac_cv_path_install+set}" = set; then
1584  echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587for as_dir in $PATH
1588do
1589  IFS=$as_save_IFS
1590  test -z "$as_dir" && as_dir=.
1591  # Account for people who put trailing slashes in PATH elements.
1592case $as_dir/ in
1593  ./ | .// | /cC/* | \
1594  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596  /usr/ucb/* ) ;;
1597  *)
1598    # OSF1 and SCO ODT 3.0 have their own names for install.
1599    # Don't use installbsd from OSF since it installs stuff as root
1600    # by default.
1601    for ac_prog in ginstall scoinst install; do
1602      for ac_exec_ext in '' $ac_executable_extensions; do
1603	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604	  if test $ac_prog = install &&
1605	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606	    # AIX install.  It has an incompatible calling convention.
1607	    :
1608	  elif test $ac_prog = install &&
1609	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610	    # program-specific install script used by HP pwplus--don't use.
1611	    :
1612	  else
1613	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614	    break 3
1615	  fi
1616	fi
1617      done
1618    done
1619    ;;
1620esac
1621done
1622
1623
1624fi
1625  if test "${ac_cv_path_install+set}" = set; then
1626    INSTALL=$ac_cv_path_install
1627  else
1628    # As a last resort, use the slow shell script.  We don't cache a
1629    # path for INSTALL within a source directory, because that will
1630    # break other packages using the cache if that directory is
1631    # removed, or if the path is relative.
1632    INSTALL=$ac_install_sh
1633  fi
1634fi
1635echo "$as_me:$LINENO: result: $INSTALL" >&5
1636echo "${ECHO_T}$INSTALL" >&6
1637
1638# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639# It thinks the first close brace ends the variable substitution.
1640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648# Just in case
1649sleep 1
1650echo timestamp > conftest.file
1651# Do `set' in a subshell so we don't clobber the current shell's
1652# arguments.  Must try -L first in case configure is actually a
1653# symlink; some systems play weird games with the mod time of symlinks
1654# (eg FreeBSD returns the mod time of the symlink's containing
1655# directory).
1656if (
1657   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658   if test "$*" = "X"; then
1659      # -L didn't work.
1660      set X `ls -t $srcdir/configure conftest.file`
1661   fi
1662   rm -f conftest.file
1663   if test "$*" != "X $srcdir/configure conftest.file" \
1664      && test "$*" != "X conftest.file $srcdir/configure"; then
1665
1666      # If neither matched, then we have a broken ls.  This can happen
1667      # if, for instance, CONFIG_SHELL is bash and it inherits a
1668      # broken ls alias from the environment.  This has actually
1669      # happened.  Such a system could not be considered "sane".
1670      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1671alias in your environment" >&5
1672echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1673alias in your environment" >&2;}
1674   { (exit 1); exit 1; }; }
1675   fi
1676
1677   test "$2" = conftest.file
1678   )
1679then
1680   # Ok.
1681   :
1682else
1683   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684Check your system clock" >&5
1685echo "$as_me: error: newly created file is older than distributed files!
1686Check your system clock" >&2;}
1687   { (exit 1); exit 1; }; }
1688fi
1689echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691test "$program_prefix" != NONE &&
1692  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693# Use a double $ so make ignores it.
1694test "$program_suffix" != NONE &&
1695  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696# Double any \ or $.  echo might interpret backslashes.
1697# By default was `s,x,x', remove it if useless.
1698cat <<\_ACEOF >conftest.sed
1699s/[\\$]/&&/g;s/;s,x,x,$//
1700_ACEOF
1701program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702rm conftest.sed
1703
1704# expand $ac_aux_dir to an absolute path
1705am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708# Use eval to expand $SHELL
1709if eval "$MISSING --run true"; then
1710  am_missing_run="$MISSING --run "
1711else
1712  am_missing_run=
1713  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715fi
1716
1717if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718  # We used to keeping the `.' as first argument, in order to
1719  # allow $(mkdir_p) to be used without argument.  As in
1720  #   $(mkdir_p) $(somedir)
1721  # where $(somedir) is conditionally defined.  However this is wrong
1722  # for two reasons:
1723  #  1. if the package is installed by a user who cannot write `.'
1724  #     make install will fail,
1725  #  2. the above comment should most certainly read
1726  #     $(mkdir_p) $(DESTDIR)$(somedir)
1727  #     so it does not work when $(somedir) is undefined and
1728  #     $(DESTDIR) is not.
1729  #  To support the latter case, we have to write
1730  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731  #  so the `.' trick is pointless.
1732  mkdir_p='mkdir -p --'
1733else
1734  # On NextStep and OpenStep, the `mkdir' command does not
1735  # recognize any option.  It will interpret all options as
1736  # directories to create, and then abort because `.' already
1737  # exists.
1738  for d in ./-p ./--version;
1739  do
1740    test -d $d && rmdir $d
1741  done
1742  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743  if test -f "$ac_aux_dir/mkinstalldirs"; then
1744    mkdir_p='$(mkinstalldirs)'
1745  else
1746    mkdir_p='$(install_sh) -d'
1747  fi
1748fi
1749
1750for ac_prog in gawk mawk nawk awk
1751do
1752  # Extract the first word of "$ac_prog", so it can be a program name with args.
1753set dummy $ac_prog; ac_word=$2
1754echo "$as_me:$LINENO: checking for $ac_word" >&5
1755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756if test "${ac_cv_prog_AWK+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  if test -n "$AWK"; then
1760  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761else
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  for ac_exec_ext in '' $ac_executable_extensions; do
1768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769    ac_cv_prog_AWK="$ac_prog"
1770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771    break 2
1772  fi
1773done
1774done
1775
1776fi
1777fi
1778AWK=$ac_cv_prog_AWK
1779if test -n "$AWK"; then
1780  echo "$as_me:$LINENO: result: $AWK" >&5
1781echo "${ECHO_T}$AWK" >&6
1782else
1783  echo "$as_me:$LINENO: result: no" >&5
1784echo "${ECHO_T}no" >&6
1785fi
1786
1787  test -n "$AWK" && break
1788done
1789
1790echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794  echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796  cat >conftest.make <<\_ACEOF
1797all:
1798	@echo 'ac_maketemp="$(MAKE)"'
1799_ACEOF
1800# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802if test -n "$ac_maketemp"; then
1803  eval ac_cv_prog_make_${ac_make}_set=yes
1804else
1805  eval ac_cv_prog_make_${ac_make}_set=no
1806fi
1807rm -f conftest.make
1808fi
1809if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810  echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812  SET_MAKE=
1813else
1814  echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816  SET_MAKE="MAKE=${MAKE-make}"
1817fi
1818
1819rm -rf .tst 2>/dev/null
1820mkdir .tst 2>/dev/null
1821if test -d .tst; then
1822  am__leading_dot=.
1823else
1824  am__leading_dot=_
1825fi
1826rmdir .tst 2>/dev/null
1827
1828# test to see if srcdir already configured
1829if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830   test -f $srcdir/config.status; then
1831  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833   { (exit 1); exit 1; }; }
1834fi
1835
1836# test whether we have cygpath
1837if test -z "$CYGPATH_W"; then
1838  if (cygpath --version) >/dev/null 2>/dev/null; then
1839    CYGPATH_W='cygpath -w'
1840  else
1841    CYGPATH_W=echo
1842  fi
1843fi
1844
1845
1846# Define the identity of the package.
1847 PACKAGE=libltdl
1848 VERSION=1.2
1849
1850
1851# Some tools Automake needs.
1852
1853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854
1855
1856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857
1858
1859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860
1861
1862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863
1864
1865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1866
1867install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868
1869# Installed binaries are usually stripped using `strip' when the user
1870# run `make install-strip'.  However `strip' might not be the right
1871# tool to use in cross-compilation environments, therefore Automake
1872# will honor the `STRIP' environment variable to overrule this program.
1873if test "$cross_compiling" != no; then
1874  if test -n "$ac_tool_prefix"; then
1875  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876set dummy ${ac_tool_prefix}strip; ac_word=$2
1877echo "$as_me:$LINENO: checking for $ac_word" >&5
1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_STRIP+set}" = set; then
1880  echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882  if test -n "$STRIP"; then
1883  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884else
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888  IFS=$as_save_IFS
1889  test -z "$as_dir" && as_dir=.
1890  for ac_exec_ext in '' $ac_executable_extensions; do
1891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894    break 2
1895  fi
1896done
1897done
1898
1899fi
1900fi
1901STRIP=$ac_cv_prog_STRIP
1902if test -n "$STRIP"; then
1903  echo "$as_me:$LINENO: result: $STRIP" >&5
1904echo "${ECHO_T}$STRIP" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910fi
1911if test -z "$ac_cv_prog_STRIP"; then
1912  ac_ct_STRIP=$STRIP
1913  # Extract the first word of "strip", so it can be a program name with args.
1914set dummy strip; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_STRIP"; then
1921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_STRIP="strip"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938fi
1939fi
1940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1941if test -n "$ac_ct_STRIP"; then
1942  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1943echo "${ECHO_T}$ac_ct_STRIP" >&6
1944else
1945  echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6
1947fi
1948
1949  STRIP=$ac_ct_STRIP
1950else
1951  STRIP="$ac_cv_prog_STRIP"
1952fi
1953
1954fi
1955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956
1957# We need awk for the "check" target.  The system "awk" is bad on
1958# some platforms.
1959# Always define AMTAR for backward compatibility.
1960
1961AMTAR=${AMTAR-"${am_missing_run}tar"}
1962
1963am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1964
1965
1966
1967
1968
1969          ac_config_headers="$ac_config_headers config.h:config-h.in"
1970
1971
1972
1973## ------------------ ##
1974## C compiler checks. ##
1975## ------------------ ##
1976ac_ext=c
1977ac_cpp='$CPP $CPPFLAGS'
1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981if test -n "$ac_tool_prefix"; then
1982  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1983set dummy ${ac_tool_prefix}gcc; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_CC+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$CC"; then
1990  ac_cv_prog_CC="$CC" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  for ac_exec_ext in '' $ac_executable_extensions; do
1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001    break 2
2002  fi
2003done
2004done
2005
2006fi
2007fi
2008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
2010  echo "$as_me:$LINENO: result: $CC" >&5
2011echo "${ECHO_T}$CC" >&6
2012else
2013  echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017fi
2018if test -z "$ac_cv_prog_CC"; then
2019  ac_ct_CC=$CC
2020  # Extract the first word of "gcc", so it can be a program name with args.
2021set dummy gcc; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$ac_ct_CC"; then
2028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_ac_ct_CC="gcc"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055  CC=$ac_ct_CC
2056else
2057  CC="$ac_cv_prog_CC"
2058fi
2059
2060if test -z "$CC"; then
2061  if test -n "$ac_tool_prefix"; then
2062  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2063set dummy ${ac_tool_prefix}cc; ac_word=$2
2064echo "$as_me:$LINENO: checking for $ac_word" >&5
2065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066if test "${ac_cv_prog_CC+set}" = set; then
2067  echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069  if test -n "$CC"; then
2070  ac_cv_prog_CC="$CC" # Let the user override the test.
2071else
2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073for as_dir in $PATH
2074do
2075  IFS=$as_save_IFS
2076  test -z "$as_dir" && as_dir=.
2077  for ac_exec_ext in '' $ac_executable_extensions; do
2078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079    ac_cv_prog_CC="${ac_tool_prefix}cc"
2080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081    break 2
2082  fi
2083done
2084done
2085
2086fi
2087fi
2088CC=$ac_cv_prog_CC
2089if test -n "$CC"; then
2090  echo "$as_me:$LINENO: result: $CC" >&5
2091echo "${ECHO_T}$CC" >&6
2092else
2093  echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6
2095fi
2096
2097fi
2098if test -z "$ac_cv_prog_CC"; then
2099  ac_ct_CC=$CC
2100  # Extract the first word of "cc", so it can be a program name with args.
2101set dummy cc; ac_word=$2
2102echo "$as_me:$LINENO: checking for $ac_word" >&5
2103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  if test -n "$ac_ct_CC"; then
2108  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2109else
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115  for ac_exec_ext in '' $ac_executable_extensions; do
2116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117    ac_cv_prog_ac_ct_CC="cc"
2118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119    break 2
2120  fi
2121done
2122done
2123
2124fi
2125fi
2126ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127if test -n "$ac_ct_CC"; then
2128  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129echo "${ECHO_T}$ac_ct_CC" >&6
2130else
2131  echo "$as_me:$LINENO: result: no" >&5
2132echo "${ECHO_T}no" >&6
2133fi
2134
2135  CC=$ac_ct_CC
2136else
2137  CC="$ac_cv_prog_CC"
2138fi
2139
2140fi
2141if test -z "$CC"; then
2142  # Extract the first word of "cc", so it can be a program name with args.
2143set dummy cc; ac_word=$2
2144echo "$as_me:$LINENO: checking for $ac_word" >&5
2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146if test "${ac_cv_prog_CC+set}" = set; then
2147  echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149  if test -n "$CC"; then
2150  ac_cv_prog_CC="$CC" # Let the user override the test.
2151else
2152  ac_prog_rejected=no
2153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156  IFS=$as_save_IFS
2157  test -z "$as_dir" && as_dir=.
2158  for ac_exec_ext in '' $ac_executable_extensions; do
2159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2161       ac_prog_rejected=yes
2162       continue
2163     fi
2164    ac_cv_prog_CC="cc"
2165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166    break 2
2167  fi
2168done
2169done
2170
2171if test $ac_prog_rejected = yes; then
2172  # We found a bogon in the path, so make sure we never use it.
2173  set dummy $ac_cv_prog_CC
2174  shift
2175  if test $# != 0; then
2176    # We chose a different compiler from the bogus one.
2177    # However, it has the same basename, so the bogon will be chosen
2178    # first if we set CC to just the basename; use the full file name.
2179    shift
2180    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2181  fi
2182fi
2183fi
2184fi
2185CC=$ac_cv_prog_CC
2186if test -n "$CC"; then
2187  echo "$as_me:$LINENO: result: $CC" >&5
2188echo "${ECHO_T}$CC" >&6
2189else
2190  echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6
2192fi
2193
2194fi
2195if test -z "$CC"; then
2196  if test -n "$ac_tool_prefix"; then
2197  for ac_prog in cl
2198  do
2199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201echo "$as_me:$LINENO: checking for $ac_word" >&5
2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203if test "${ac_cv_prog_CC+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  if test -n "$CC"; then
2207  ac_cv_prog_CC="$CC" # Let the user override the test.
2208else
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212  IFS=$as_save_IFS
2213  test -z "$as_dir" && as_dir=.
2214  for ac_exec_ext in '' $ac_executable_extensions; do
2215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218    break 2
2219  fi
2220done
2221done
2222
2223fi
2224fi
2225CC=$ac_cv_prog_CC
2226if test -n "$CC"; then
2227  echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6
2229else
2230  echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234    test -n "$CC" && break
2235  done
2236fi
2237if test -z "$CC"; then
2238  ac_ct_CC=$CC
2239  for ac_prog in cl
2240do
2241  # Extract the first word of "$ac_prog", so it can be a program name with args.
2242set dummy $ac_prog; ac_word=$2
2243echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246  echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248  if test -n "$ac_ct_CC"; then
2249  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250else
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254  IFS=$as_save_IFS
2255  test -z "$as_dir" && as_dir=.
2256  for ac_exec_ext in '' $ac_executable_extensions; do
2257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258    ac_cv_prog_ac_ct_CC="$ac_prog"
2259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260    break 2
2261  fi
2262done
2263done
2264
2265fi
2266fi
2267ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268if test -n "$ac_ct_CC"; then
2269  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270echo "${ECHO_T}$ac_ct_CC" >&6
2271else
2272  echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6
2274fi
2275
2276  test -n "$ac_ct_CC" && break
2277done
2278
2279  CC=$ac_ct_CC
2280fi
2281
2282fi
2283
2284
2285test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: no acceptable C compiler found in \$PATH
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290
2291# Provide some information about the compiler.
2292echo "$as_me:$LINENO:" \
2293     "checking for C compiler version" >&5
2294ac_compiler=`set X $ac_compile; echo $2`
2295{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2296  (eval $ac_compiler --version </dev/null >&5) 2>&5
2297  ac_status=$?
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); }
2300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2301  (eval $ac_compiler -v </dev/null >&5) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }
2305{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2306  (eval $ac_compiler -V </dev/null >&5) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }
2310
2311cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326ac_clean_files_save=$ac_clean_files
2327ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328# Try to create an executable without -o first, disregard a.out.
2329# It will help us diagnose broken compilers, and finding out an intuition
2330# of exeext.
2331echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2333ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335  (eval $ac_link_default) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; then
2339  # Find the output, starting from the most likely.  This scheme is
2340# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2341# resort.
2342
2343# Be careful to initialize this variable, since it used to be cached.
2344# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2345ac_cv_exeext=
2346# b.out is created by i960 compilers.
2347for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2348do
2349  test -f "$ac_file" || continue
2350  case $ac_file in
2351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2352	;;
2353    conftest.$ac_ext )
2354	# This is the source file.
2355	;;
2356    [ab].out )
2357	# We found the default executable, but exeext='' is most
2358	# certainly right.
2359	break;;
2360    *.* )
2361	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362	# FIXME: I believe we export ac_cv_exeext for Libtool,
2363	# but it would be cool to find out if it's true.  Does anybody
2364	# maintain Libtool? --akim.
2365	export ac_cv_exeext
2366	break;;
2367    * )
2368	break;;
2369  esac
2370done
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: C compiler cannot create executables
2378See \`config.log' for more details." >&2;}
2379   { (exit 77); exit 77; }; }
2380fi
2381
2382ac_exeext=$ac_cv_exeext
2383echo "$as_me:$LINENO: result: $ac_file" >&5
2384echo "${ECHO_T}$ac_file" >&6
2385
2386# Check the compiler produces executables we can run.  If not, either
2387# the compiler is broken, or we cross compile.
2388echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2389echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2390# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391# If not cross compiling, check that we can run a simple program.
2392if test "$cross_compiling" != yes; then
2393  if { ac_try='./$ac_file'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399    cross_compiling=no
2400  else
2401    if test "$cross_compiling" = maybe; then
2402	cross_compiling=yes
2403    else
2404	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2405If you meant to cross compile, use \`--host'.
2406See \`config.log' for more details." >&5
2407echo "$as_me: error: cannot run C compiled programs.
2408If you meant to cross compile, use \`--host'.
2409See \`config.log' for more details." >&2;}
2410   { (exit 1); exit 1; }; }
2411    fi
2412  fi
2413fi
2414echo "$as_me:$LINENO: result: yes" >&5
2415echo "${ECHO_T}yes" >&6
2416
2417rm -f a.out a.exe conftest$ac_cv_exeext b.out
2418ac_clean_files=$ac_clean_files_save
2419# Check the compiler produces executables we can run.  If not, either
2420# the compiler is broken, or we cross compile.
2421echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424echo "${ECHO_T}$cross_compiling" >&6
2425
2426echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429  (eval $ac_link) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; then
2433  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2435# work properly (i.e., refer to `conftest.exe'), while it won't with
2436# `rm'.
2437for ac_file in conftest.exe conftest conftest.*; do
2438  test -f "$ac_file" || continue
2439  case $ac_file in
2440    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2441    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442	  export ac_cv_exeext
2443	  break;;
2444    * ) break;;
2445  esac
2446done
2447else
2448  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449See \`config.log' for more details." >&5
2450echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451See \`config.log' for more details." >&2;}
2452   { (exit 1); exit 1; }; }
2453fi
2454
2455rm -f conftest$ac_cv_exeext
2456echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457echo "${ECHO_T}$ac_cv_exeext" >&6
2458
2459rm -f conftest.$ac_ext
2460EXEEXT=$ac_cv_exeext
2461ac_exeext=$EXEEXT
2462echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464if test "${ac_cv_objext+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h.  */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h.  */
2473
2474int
2475main ()
2476{
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482rm -f conftest.o conftest.obj
2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484  (eval $ac_compile) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; then
2488  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2489  case $ac_file in
2490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2491    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492       break;;
2493  esac
2494done
2495else
2496  echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500See \`config.log' for more details." >&5
2501echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502See \`config.log' for more details." >&2;}
2503   { (exit 1); exit 1; }; }
2504fi
2505
2506rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507fi
2508echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509echo "${ECHO_T}$ac_cv_objext" >&6
2510OBJEXT=$ac_cv_objext
2511ac_objext=$OBJEXT
2512echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2514if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h.  */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h.  */
2523
2524int
2525main ()
2526{
2527#ifndef __GNUC__
2528       choke me
2529#endif
2530
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544	 { ac_try='test -z "$ac_c_werror_flag"
2545			 || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551	 { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  ac_compiler_gnu=yes
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562ac_compiler_gnu=no
2563fi
2564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565ac_cv_c_compiler_gnu=$ac_compiler_gnu
2566
2567fi
2568echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2569echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2570GCC=`test $ac_compiler_gnu = yes && echo yes`
2571ac_test_CFLAGS=${CFLAGS+set}
2572ac_save_CFLAGS=$CFLAGS
2573CFLAGS="-g"
2574echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2576if test "${ac_cv_prog_cc_g+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h.  */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h.  */
2585
2586int
2587main ()
2588{
2589
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext
2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596  (eval $ac_compile) 2>conftest.er1
2597  ac_status=$?
2598  grep -v '^ *+' conftest.er1 >conftest.err
2599  rm -f conftest.er1
2600  cat conftest.err >&5
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); } &&
2603	 { ac_try='test -z "$ac_c_werror_flag"
2604			 || test ! -s conftest.err'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; } &&
2610	 { ac_try='test -s conftest.$ac_objext'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616  ac_cv_prog_cc_g=yes
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621ac_cv_prog_cc_g=no
2622fi
2623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624fi
2625echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2627if test "$ac_test_CFLAGS" = set; then
2628  CFLAGS=$ac_save_CFLAGS
2629elif test $ac_cv_prog_cc_g = yes; then
2630  if test "$GCC" = yes; then
2631    CFLAGS="-g -O2"
2632  else
2633    CFLAGS="-g"
2634  fi
2635else
2636  if test "$GCC" = yes; then
2637    CFLAGS="-O2"
2638  else
2639    CFLAGS=
2640  fi
2641fi
2642echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2643echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2644if test "${ac_cv_prog_cc_stdc+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  ac_cv_prog_cc_stdc=no
2648ac_save_CC=$CC
2649cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655#include <stdarg.h>
2656#include <stdio.h>
2657#include <sys/types.h>
2658#include <sys/stat.h>
2659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660struct buf { int x; };
2661FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662static char *e (p, i)
2663     char **p;
2664     int i;
2665{
2666  return p[i];
2667}
2668static char *f (char * (*g) (char **, int), char **p, ...)
2669{
2670  char *s;
2671  va_list v;
2672  va_start (v,p);
2673  s = g (p, va_arg (v,int));
2674  va_end (v);
2675  return s;
2676}
2677
2678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679   function prototypes and stuff, but not '\xHH' hex character constants.
2680   These don't provoke an error unfortunately, instead are silently treated
2681   as 'x'.  The following induces an error, until -std1 is added to get
2682   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683   array size at least.  It's necessary to write '\x00'==0 to get something
2684   that's true only with -std1.  */
2685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687int test (int i, double x);
2688struct s1 {int (*f) (int a);};
2689struct s2 {int (*f) (double a);};
2690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691int argc;
2692char **argv;
2693int
2694main ()
2695{
2696return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2697  ;
2698  return 0;
2699}
2700_ACEOF
2701# Don't try gcc -ansi; that turns off useful extensions and
2702# breaks some systems' header files.
2703# AIX			-qlanglvl=ansi
2704# Ultrix and OSF/1	-std1
2705# HP-UX 10.20 and later	-Ae
2706# HP-UX older versions	-Aa -D_HPUX_SOURCE
2707# SVR4			-Xc -D__EXTENSIONS__
2708for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709do
2710  CC="$ac_save_CC $ac_arg"
2711  rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720	 { ac_try='test -z "$ac_c_werror_flag"
2721			 || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727	 { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  ac_cv_prog_cc_stdc=$ac_arg
2734break
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext
2741done
2742rm -f conftest.$ac_ext conftest.$ac_objext
2743CC=$ac_save_CC
2744
2745fi
2746
2747case "x$ac_cv_prog_cc_stdc" in
2748  x|xno)
2749    echo "$as_me:$LINENO: result: none needed" >&5
2750echo "${ECHO_T}none needed" >&6 ;;
2751  *)
2752    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2753echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2754    CC="$CC $ac_cv_prog_cc_stdc" ;;
2755esac
2756
2757# Some people use a C++ compiler to compile C.  Since we use `exit',
2758# in C++ we need to declare it.  In case someone uses the same compiler
2759# for both compiling C and C++ we need to have the C++ compiler decide
2760# the declaration of exit, since it's the most demanding environment.
2761cat >conftest.$ac_ext <<_ACEOF
2762#ifndef __cplusplus
2763  choke me
2764#endif
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768  (eval $ac_compile) 2>conftest.er1
2769  ac_status=$?
2770  grep -v '^ *+' conftest.er1 >conftest.err
2771  rm -f conftest.er1
2772  cat conftest.err >&5
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); } &&
2775	 { ac_try='test -z "$ac_c_werror_flag"
2776			 || test ! -s conftest.err'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; } &&
2782	 { ac_try='test -s conftest.$ac_objext'
2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784  (eval $ac_try) 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; }; then
2788  for ac_declaration in \
2789   '' \
2790   'extern "C" void std::exit (int) throw (); using std::exit;' \
2791   'extern "C" void std::exit (int); using std::exit;' \
2792   'extern "C" void exit (int) throw ();' \
2793   'extern "C" void exit (int);' \
2794   'void exit (int);'
2795do
2796  cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802$ac_declaration
2803#include <stdlib.h>
2804int
2805main ()
2806{
2807exit (42);
2808  ;
2809  return 0;
2810}
2811_ACEOF
2812rm -f conftest.$ac_objext
2813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814  (eval $ac_compile) 2>conftest.er1
2815  ac_status=$?
2816  grep -v '^ *+' conftest.er1 >conftest.err
2817  rm -f conftest.er1
2818  cat conftest.err >&5
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); } &&
2821	 { ac_try='test -z "$ac_c_werror_flag"
2822			 || test ! -s conftest.err'
2823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824  (eval $ac_try) 2>&5
2825  ac_status=$?
2826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827  (exit $ac_status); }; } &&
2828	 { ac_try='test -s conftest.$ac_objext'
2829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830  (eval $ac_try) 2>&5
2831  ac_status=$?
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); }; }; then
2834  :
2835else
2836  echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839continue
2840fi
2841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842  cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848$ac_declaration
2849int
2850main ()
2851{
2852exit (42);
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859  (eval $ac_compile) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866	 { ac_try='test -z "$ac_c_werror_flag"
2867			 || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873	 { ac_try='test -s conftest.$ac_objext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  break
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884fi
2885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886done
2887rm -f conftest*
2888if test -n "$ac_declaration"; then
2889  echo '#ifdef __cplusplus' >>confdefs.h
2890  echo $ac_declaration      >>confdefs.h
2891  echo '#endif'             >>confdefs.h
2892fi
2893
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900ac_ext=c
2901ac_cpp='$CPP $CPPFLAGS'
2902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905DEPDIR="${am__leading_dot}deps"
2906
2907          ac_config_commands="$ac_config_commands depfiles"
2908
2909
2910am_make=${MAKE-make}
2911cat > confinc << 'END'
2912am__doit:
2913	@echo done
2914.PHONY: am__doit
2915END
2916# If we don't find an include directive, just comment out the code.
2917echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2918echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2919am__include="#"
2920am__quote=
2921_am_result=none
2922# First try GNU make style include.
2923echo "include confinc" > confmf
2924# We grep out `Entering directory' and `Leaving directory'
2925# messages which can occur if `w' ends up in MAKEFLAGS.
2926# In particular we don't look at `^make:' because GNU make might
2927# be invoked under some other name (usually "gmake"), in which
2928# case it prints its new name instead of `make'.
2929if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2930   am__include=include
2931   am__quote=
2932   _am_result=GNU
2933fi
2934# Now try BSD make style include.
2935if test "$am__include" = "#"; then
2936   echo '.include "confinc"' > confmf
2937   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2938      am__include=.include
2939      am__quote="\""
2940      _am_result=BSD
2941   fi
2942fi
2943
2944
2945echo "$as_me:$LINENO: result: $_am_result" >&5
2946echo "${ECHO_T}$_am_result" >&6
2947rm -f confinc confmf
2948
2949# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2950if test "${enable_dependency_tracking+set}" = set; then
2951  enableval="$enable_dependency_tracking"
2952
2953fi;
2954if test "x$enable_dependency_tracking" != xno; then
2955  am_depcomp="$ac_aux_dir/depcomp"
2956  AMDEPBACKSLASH='\'
2957fi
2958
2959
2960if test "x$enable_dependency_tracking" != xno; then
2961  AMDEP_TRUE=
2962  AMDEP_FALSE='#'
2963else
2964  AMDEP_TRUE='#'
2965  AMDEP_FALSE=
2966fi
2967
2968
2969
2970
2971depcc="$CC"   am_compiler_list=
2972
2973echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976  echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979  # We make a subdir and do the tests there.  Otherwise we can end up
2980  # making bogus files that we don't know about and never remove.  For
2981  # instance it was reported that on HP-UX the gcc test will end up
2982  # making a dummy file named `D' -- because `-MD' means `put the output
2983  # in D'.
2984  mkdir conftest.dir
2985  # Copy depcomp to subdir because otherwise we won't find it if we're
2986  # using a relative directory.
2987  cp "$am_depcomp" conftest.dir
2988  cd conftest.dir
2989  # We will build objects and dependencies in a subdirectory because
2990  # it helps to detect inapplicable dependency modes.  For instance
2991  # both Tru64's cc and ICC support -MD to output dependencies as a
2992  # side effect of compilation, but ICC will put the dependencies in
2993  # the current directory while Tru64 will put them in the object
2994  # directory.
2995  mkdir sub
2996
2997  am_cv_CC_dependencies_compiler_type=none
2998  if test "$am_compiler_list" = ""; then
2999     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000  fi
3001  for depmode in $am_compiler_list; do
3002    # Setup a source with many dependencies, because some compilers
3003    # like to wrap large dependency lists on column 80 (with \), and
3004    # we should not choose a depcomp mode which is confused by this.
3005    #
3006    # We need to recreate these files for each test, as the compiler may
3007    # overwrite some of them when testing with obscure command lines.
3008    # This happens at least with the AIX C compiler.
3009    : > sub/conftest.c
3010    for i in 1 2 3 4 5 6; do
3011      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013      # Solaris 8's {/usr,}/bin/sh.
3014      touch sub/conftst$i.h
3015    done
3016    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018    case $depmode in
3019    nosideeffect)
3020      # after this tag, mechanisms are not by side-effect, so they'll
3021      # only be used when explicitly requested
3022      if test "x$enable_dependency_tracking" = xyes; then
3023	continue
3024      else
3025	break
3026      fi
3027      ;;
3028    none) break ;;
3029    esac
3030    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031    # mode.  It turns out that the SunPro C++ compiler does not properly
3032    # handle `-M -o', and we need to detect this.
3033    if depmode=$depmode \
3034       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037         >/dev/null 2>conftest.err &&
3038       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041      # icc doesn't choke on unknown options, it will just issue warnings
3042      # or remarks (even with -Werror).  So we grep stderr for any message
3043      # that says an option was ignored or not supported.
3044      # When given -MP, icc 7.0 and 7.1 complain thusly:
3045      #   icc: Command line warning: ignoring option '-M'; no argument required
3046      # The diagnosis changed in icc 8.0:
3047      #   icc: Command line remark: option '-MP' not supported
3048      if (grep 'ignoring option' conftest.err ||
3049          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050        am_cv_CC_dependencies_compiler_type=$depmode
3051        break
3052      fi
3053    fi
3054  done
3055
3056  cd ..
3057  rm -rf conftest.dir
3058else
3059  am_cv_CC_dependencies_compiler_type=none
3060fi
3061
3062fi
3063echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069if
3070  test "x$enable_dependency_tracking" != xno \
3071  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072  am__fastdepCC_TRUE=
3073  am__fastdepCC_FALSE='#'
3074else
3075  am__fastdepCC_TRUE='#'
3076  am__fastdepCC_FALSE=
3077fi
3078
3079
3080
3081echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3082echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3083if test "${ac_cv_c_const+set}" = set; then
3084  echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086  cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h.  */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h.  */
3092
3093int
3094main ()
3095{
3096/* FIXME: Include the comments suggested by Paul. */
3097#ifndef __cplusplus
3098  /* Ultrix mips cc rejects this.  */
3099  typedef int charset[2];
3100  const charset x;
3101  /* SunOS 4.1.1 cc rejects this.  */
3102  char const *const *ccp;
3103  char **p;
3104  /* NEC SVR4.0.2 mips cc rejects this.  */
3105  struct point {int x, y;};
3106  static struct point const zero = {0,0};
3107  /* AIX XL C 1.02.0.0 rejects this.
3108     It does not let you subtract one const X* pointer from another in
3109     an arm of an if-expression whose if-part is not a constant
3110     expression */
3111  const char *g = "string";
3112  ccp = &g + (g ? g-g : 0);
3113  /* HPUX 7.0 cc rejects these. */
3114  ++ccp;
3115  p = (char**) ccp;
3116  ccp = (char const *const *) p;
3117  { /* SCO 3.2v4 cc rejects this.  */
3118    char *t;
3119    char const *s = 0 ? (char *) 0 : (char const *) 0;
3120
3121    *t++ = 0;
3122  }
3123  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3124    int x[] = {25, 17};
3125    const int *foo = &x[0];
3126    ++foo;
3127  }
3128  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3129    typedef const int *iptr;
3130    iptr p = 0;
3131    ++p;
3132  }
3133  { /* AIX XL C 1.02.0.0 rejects this saying
3134       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3135    struct s { int j; const int *ap[3]; };
3136    struct s *b; b->j = 5;
3137  }
3138  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3139    const int foo = 10;
3140  }
3141#endif
3142
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149  (eval $ac_compile) 2>conftest.er1
3150  ac_status=$?
3151  grep -v '^ *+' conftest.er1 >conftest.err
3152  rm -f conftest.er1
3153  cat conftest.err >&5
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); } &&
3156	 { ac_try='test -z "$ac_c_werror_flag"
3157			 || test ! -s conftest.err'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; } &&
3163	 { ac_try='test -s conftest.$ac_objext'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; }; then
3169  ac_cv_c_const=yes
3170else
3171  echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174ac_cv_c_const=no
3175fi
3176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3179echo "${ECHO_T}$ac_cv_c_const" >&6
3180if test $ac_cv_c_const = no; then
3181
3182cat >>confdefs.h <<\_ACEOF
3183#define const
3184_ACEOF
3185
3186fi
3187
3188echo "$as_me:$LINENO: checking for inline" >&5
3189echo $ECHO_N "checking for inline... $ECHO_C" >&6
3190if test "${ac_cv_c_inline+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  ac_cv_c_inline=no
3194for ac_kw in inline __inline__ __inline; do
3195  cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h.  */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h.  */
3201#ifndef __cplusplus
3202typedef int foo_t;
3203static $ac_kw foo_t static_foo () {return 0; }
3204$ac_kw foo_t foo () {return 0; }
3205#endif
3206
3207_ACEOF
3208rm -f conftest.$ac_objext
3209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210  (eval $ac_compile) 2>conftest.er1
3211  ac_status=$?
3212  grep -v '^ *+' conftest.er1 >conftest.err
3213  rm -f conftest.er1
3214  cat conftest.err >&5
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); } &&
3217	 { ac_try='test -z "$ac_c_werror_flag"
3218			 || test ! -s conftest.err'
3219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220  (eval $ac_try) 2>&5
3221  ac_status=$?
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); }; } &&
3224	 { ac_try='test -s conftest.$ac_objext'
3225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226  (eval $ac_try) 2>&5
3227  ac_status=$?
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); }; }; then
3230  ac_cv_c_inline=$ac_kw; break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237done
3238
3239fi
3240echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3241echo "${ECHO_T}$ac_cv_c_inline" >&6
3242
3243
3244case $ac_cv_c_inline in
3245  inline | yes) ;;
3246  *)
3247    case $ac_cv_c_inline in
3248      no) ac_val=;;
3249      *) ac_val=$ac_cv_c_inline;;
3250    esac
3251    cat >>confdefs.h <<_ACEOF
3252#ifndef __cplusplus
3253#define inline $ac_val
3254#endif
3255_ACEOF
3256    ;;
3257esac
3258
3259
3260
3261## ----------------------- ##
3262## Libtool initialisation. ##
3263## ----------------------- ##
3264
3265
3266# Check whether --enable-shared or --disable-shared was given.
3267if test "${enable_shared+set}" = set; then
3268  enableval="$enable_shared"
3269  p=${PACKAGE-default}
3270    case $enableval in
3271    yes) enable_shared=yes ;;
3272    no) enable_shared=no ;;
3273    *)
3274      enable_shared=no
3275      # Look at the argument we got.  We use all the common list separators.
3276      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3277      for pkg in $enableval; do
3278	IFS="$lt_save_ifs"
3279	if test "X$pkg" = "X$p"; then
3280	  enable_shared=yes
3281	fi
3282      done
3283      IFS="$lt_save_ifs"
3284      ;;
3285    esac
3286else
3287  enable_shared=yes
3288fi;
3289
3290# Check whether --enable-static or --disable-static was given.
3291if test "${enable_static+set}" = set; then
3292  enableval="$enable_static"
3293  p=${PACKAGE-default}
3294    case $enableval in
3295    yes) enable_static=yes ;;
3296    no) enable_static=no ;;
3297    *)
3298     enable_static=no
3299      # Look at the argument we got.  We use all the common list separators.
3300      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3301      for pkg in $enableval; do
3302	IFS="$lt_save_ifs"
3303	if test "X$pkg" = "X$p"; then
3304	  enable_static=yes
3305	fi
3306      done
3307      IFS="$lt_save_ifs"
3308      ;;
3309    esac
3310else
3311  enable_static=yes
3312fi;
3313
3314# Check whether --enable-fast-install or --disable-fast-install was given.
3315if test "${enable_fast_install+set}" = set; then
3316  enableval="$enable_fast_install"
3317  p=${PACKAGE-default}
3318    case $enableval in
3319    yes) enable_fast_install=yes ;;
3320    no) enable_fast_install=no ;;
3321    *)
3322      enable_fast_install=no
3323      # Look at the argument we got.  We use all the common list separators.
3324      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325      for pkg in $enableval; do
3326	IFS="$lt_save_ifs"
3327	if test "X$pkg" = "X$p"; then
3328	  enable_fast_install=yes
3329	fi
3330      done
3331      IFS="$lt_save_ifs"
3332      ;;
3333    esac
3334else
3335  enable_fast_install=yes
3336fi;
3337
3338# Make sure we can run config.sub.
3339$ac_config_sub sun4 >/dev/null 2>&1 ||
3340  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3342   { (exit 1); exit 1; }; }
3343
3344echo "$as_me:$LINENO: checking build system type" >&5
3345echo $ECHO_N "checking build system type... $ECHO_C" >&6
3346if test "${ac_cv_build+set}" = set; then
3347  echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349  ac_cv_build_alias=$build_alias
3350test -z "$ac_cv_build_alias" &&
3351  ac_cv_build_alias=`$ac_config_guess`
3352test -z "$ac_cv_build_alias" &&
3353  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3355   { (exit 1); exit 1; }; }
3356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3357  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3359   { (exit 1); exit 1; }; }
3360
3361fi
3362echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3363echo "${ECHO_T}$ac_cv_build" >&6
3364build=$ac_cv_build
3365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3368
3369
3370echo "$as_me:$LINENO: checking host system type" >&5
3371echo $ECHO_N "checking host system type... $ECHO_C" >&6
3372if test "${ac_cv_host+set}" = set; then
3373  echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375  ac_cv_host_alias=$host_alias
3376test -z "$ac_cv_host_alias" &&
3377  ac_cv_host_alias=$ac_cv_build_alias
3378ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3379  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3380echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3381   { (exit 1); exit 1; }; }
3382
3383fi
3384echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3385echo "${ECHO_T}$ac_cv_host" >&6
3386host=$ac_cv_host
3387host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3388host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3389host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3390
3391
3392echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3393echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3394if test "${lt_cv_path_SED+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  # Loop through the user's path and test for sed and gsed.
3398# Then use that list of sed's as ones to test for truncation.
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402  IFS=$as_save_IFS
3403  test -z "$as_dir" && as_dir=.
3404  for lt_ac_prog in sed gsed; do
3405    for ac_exec_ext in '' $ac_executable_extensions; do
3406      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3407        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3408      fi
3409    done
3410  done
3411done
3412lt_ac_max=0
3413lt_ac_count=0
3414# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3415# along with /bin/sed that truncates output.
3416for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3417  test ! -f $lt_ac_sed && continue
3418  cat /dev/null > conftest.in
3419  lt_ac_count=0
3420  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3421  # Check for GNU sed and select it if it is found.
3422  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3423    lt_cv_path_SED=$lt_ac_sed
3424    break
3425  fi
3426  while true; do
3427    cat conftest.in conftest.in >conftest.tmp
3428    mv conftest.tmp conftest.in
3429    cp conftest.in conftest.nl
3430    echo >>conftest.nl
3431    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3432    cmp -s conftest.out conftest.nl || break
3433    # 10000 chars as input seems more than enough
3434    test $lt_ac_count -gt 10 && break
3435    lt_ac_count=`expr $lt_ac_count + 1`
3436    if test $lt_ac_count -gt $lt_ac_max; then
3437      lt_ac_max=$lt_ac_count
3438      lt_cv_path_SED=$lt_ac_sed
3439    fi
3440  done
3441done
3442
3443fi
3444
3445SED=$lt_cv_path_SED
3446echo "$as_me:$LINENO: result: $SED" >&5
3447echo "${ECHO_T}$SED" >&6
3448
3449echo "$as_me:$LINENO: checking for egrep" >&5
3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451if test "${ac_cv_prog_egrep+set}" = set; then
3452  echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455    then ac_cv_prog_egrep='grep -E'
3456    else ac_cv_prog_egrep='egrep'
3457    fi
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461 EGREP=$ac_cv_prog_egrep
3462
3463
3464
3465# Check whether --with-gnu-ld or --without-gnu-ld was given.
3466if test "${with_gnu_ld+set}" = set; then
3467  withval="$with_gnu_ld"
3468  test "$withval" = no || with_gnu_ld=yes
3469else
3470  with_gnu_ld=no
3471fi;
3472ac_prog=ld
3473if test "$GCC" = yes; then
3474  # Check if gcc -print-prog-name=ld gives a path.
3475  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3476echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3477  case $host in
3478  *-*-mingw*)
3479    # gcc leaves a trailing carriage return which upsets mingw
3480    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3481  *)
3482    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3483  esac
3484  case $ac_prog in
3485    # Accept absolute paths.
3486    [\\/]* | ?:[\\/]*)
3487      re_direlt='/[^/][^/]*/\.\./'
3488      # Canonicalize the pathname of ld
3489      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3490      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3491	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3492      done
3493      test -z "$LD" && LD="$ac_prog"
3494      ;;
3495  "")
3496    # If it fails, then pretend we aren't using GCC.
3497    ac_prog=ld
3498    ;;
3499  *)
3500    # If it is relative, then search for the first ld in PATH.
3501    with_gnu_ld=unknown
3502    ;;
3503  esac
3504elif test "$with_gnu_ld" = yes; then
3505  echo "$as_me:$LINENO: checking for GNU ld" >&5
3506echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3507else
3508  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3509echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3510fi
3511if test "${lt_cv_path_LD+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  if test -z "$LD"; then
3515  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3516  for ac_dir in $PATH; do
3517    IFS="$lt_save_ifs"
3518    test -z "$ac_dir" && ac_dir=.
3519    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3520      lt_cv_path_LD="$ac_dir/$ac_prog"
3521      # Check to see if the program is GNU ld.  I'd rather use --version,
3522      # but apparently some variants of GNU ld only accept -v.
3523      # Break only if it was the GNU/non-GNU ld that we prefer.
3524      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3525      *GNU* | *'with BFD'*)
3526	test "$with_gnu_ld" != no && break
3527	;;
3528      *)
3529	test "$with_gnu_ld" != yes && break
3530	;;
3531      esac
3532    fi
3533  done
3534  IFS="$lt_save_ifs"
3535else
3536  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3537fi
3538fi
3539
3540LD="$lt_cv_path_LD"
3541if test -n "$LD"; then
3542  echo "$as_me:$LINENO: result: $LD" >&5
3543echo "${ECHO_T}$LD" >&6
3544else
3545  echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547fi
3548test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3549echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3550   { (exit 1); exit 1; }; }
3551echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3552echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3553if test "${lt_cv_prog_gnu_ld+set}" = set; then
3554  echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3557case `$LD -v 2>&1 </dev/null` in
3558*GNU* | *'with BFD'*)
3559  lt_cv_prog_gnu_ld=yes
3560  ;;
3561*)
3562  lt_cv_prog_gnu_ld=no
3563  ;;
3564esac
3565fi
3566echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3567echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3568with_gnu_ld=$lt_cv_prog_gnu_ld
3569
3570
3571echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3572echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3573if test "${lt_cv_ld_reload_flag+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  lt_cv_ld_reload_flag='-r'
3577fi
3578echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3579echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3580reload_flag=$lt_cv_ld_reload_flag
3581case $reload_flag in
3582"" | " "*) ;;
3583*) reload_flag=" $reload_flag" ;;
3584esac
3585reload_cmds='$LD$reload_flag -o $output$reload_objs'
3586case $host_os in
3587  darwin*)
3588    if test "$GCC" = yes; then
3589      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3590    else
3591      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3592    fi
3593    ;;
3594esac
3595
3596echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3597echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3598if test "${lt_cv_path_NM+set}" = set; then
3599  echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601  if test -n "$NM"; then
3602  # Let the user override the test.
3603  lt_cv_path_NM="$NM"
3604else
3605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3606  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3607    IFS="$lt_save_ifs"
3608    test -z "$ac_dir" && ac_dir=.
3609    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3610    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3611      # Check to see if the nm accepts a BSD-compat flag.
3612      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3613      #   nm: unknown option "B" ignored
3614      # Tru64's nm complains that /dev/null is an invalid object file
3615      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3616      */dev/null* | *'Invalid file or object type'*)
3617	lt_cv_path_NM="$tmp_nm -B"
3618	break
3619        ;;
3620      *)
3621	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3622	*/dev/null*)
3623	  lt_cv_path_NM="$tmp_nm -p"
3624	  break
3625	  ;;
3626	*)
3627	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3628	  continue # so that we can try to find one that supports BSD flags
3629	  ;;
3630	esac
3631      esac
3632    fi
3633  done
3634  IFS="$lt_save_ifs"
3635  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3636fi
3637fi
3638echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3639echo "${ECHO_T}$lt_cv_path_NM" >&6
3640NM="$lt_cv_path_NM"
3641
3642echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3644LN_S=$as_ln_s
3645if test "$LN_S" = "ln -s"; then
3646  echo "$as_me:$LINENO: result: yes" >&5
3647echo "${ECHO_T}yes" >&6
3648else
3649  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650echo "${ECHO_T}no, using $LN_S" >&6
3651fi
3652
3653echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3654echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3655if test "${lt_cv_deplibs_check_method+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  lt_cv_file_magic_cmd='$MAGIC_CMD'
3659lt_cv_file_magic_test_file=
3660lt_cv_deplibs_check_method='unknown'
3661# Need to set the preceding variable on all platforms that support
3662# interlibrary dependencies.
3663# 'none' -- dependencies not supported.
3664# `unknown' -- same as none, but documents that we really don't know.
3665# 'pass_all' -- all dependencies passed with no checks.
3666# 'test_compile' -- check by making test program.
3667# 'file_magic [[regex]]' -- check by looking for files in library path
3668# which responds to the $file_magic_cmd with a given extended regex.
3669# If you have `file' or equivalent on your system and you're not sure
3670# whether `pass_all' will *always* work, you probably want this one.
3671
3672case $host_os in
3673aix4* | aix5*)
3674  lt_cv_deplibs_check_method=pass_all
3675  ;;
3676
3677beos*)
3678  lt_cv_deplibs_check_method=pass_all
3679  ;;
3680
3681bsdi[45]*)
3682  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3683  lt_cv_file_magic_cmd='/usr/bin/file -L'
3684  lt_cv_file_magic_test_file=/shlib/libc.so
3685  ;;
3686
3687cygwin*)
3688  # func_win32_libid is a shell function defined in ltmain.sh
3689  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3690  lt_cv_file_magic_cmd='func_win32_libid'
3691  ;;
3692
3693mingw* | pw32*)
3694  # Base MSYS/MinGW do not provide the 'file' command needed by
3695  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3696  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3697  lt_cv_file_magic_cmd='$OBJDUMP -f'
3698  ;;
3699
3700darwin* | rhapsody*)
3701  lt_cv_deplibs_check_method=pass_all
3702  ;;
3703
3704freebsd* | kfreebsd*-gnu | dragonfly*)
3705  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3706    case $host_cpu in
3707    i*86 )
3708      # Not sure whether the presence of OpenBSD here was a mistake.
3709      # Let's accept both of them until this is cleared up.
3710      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3711      lt_cv_file_magic_cmd=/usr/bin/file
3712      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3713      ;;
3714    esac
3715  else
3716    lt_cv_deplibs_check_method=pass_all
3717  fi
3718  ;;
3719
3720gnu*)
3721  lt_cv_deplibs_check_method=pass_all
3722  ;;
3723
3724haiku*)
3725  lt_cv_deplibs_check_method=pass_all
3726  ;;
3727
3728hpux10.20* | hpux11*)
3729  lt_cv_file_magic_cmd=/usr/bin/file
3730  case $host_cpu in
3731  ia64*)
3732    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3733    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3734    ;;
3735  hppa*64*)
3736    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]'
3737    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3738    ;;
3739  *)
3740    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3741    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3742    ;;
3743  esac
3744  ;;
3745
3746irix5* | irix6* | nonstopux*)
3747  case $LD in
3748  *-32|*"-32 ") libmagic=32-bit;;
3749  *-n32|*"-n32 ") libmagic=N32;;
3750  *-64|*"-64 ") libmagic=64-bit;;
3751  *) libmagic=never-match;;
3752  esac
3753  lt_cv_deplibs_check_method=pass_all
3754  ;;
3755
3756# This must be Linux ELF.
3757linux*)
3758  lt_cv_deplibs_check_method=pass_all
3759  ;;
3760
3761netbsd*)
3762  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3763    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3764  else
3765    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3766  fi
3767  ;;
3768
3769newos6*)
3770  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3771  lt_cv_file_magic_cmd=/usr/bin/file
3772  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3773  ;;
3774
3775nto-qnx*)
3776  lt_cv_deplibs_check_method=unknown
3777  ;;
3778
3779openbsd*)
3780  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3781    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3782  else
3783    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3784  fi
3785  ;;
3786
3787osf3* | osf4* | osf5*)
3788  lt_cv_deplibs_check_method=pass_all
3789  ;;
3790
3791sco3.2v5*)
3792  lt_cv_deplibs_check_method=pass_all
3793  ;;
3794
3795solaris*)
3796  lt_cv_deplibs_check_method=pass_all
3797  ;;
3798
3799sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3800  case $host_vendor in
3801  motorola)
3802    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]'
3803    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3804    ;;
3805  ncr)
3806    lt_cv_deplibs_check_method=pass_all
3807    ;;
3808  sequent)
3809    lt_cv_file_magic_cmd='/bin/file'
3810    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3811    ;;
3812  sni)
3813    lt_cv_file_magic_cmd='/bin/file'
3814    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3815    lt_cv_file_magic_test_file=/lib/libc.so
3816    ;;
3817  siemens)
3818    lt_cv_deplibs_check_method=pass_all
3819    ;;
3820  esac
3821  ;;
3822
3823sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3824  lt_cv_deplibs_check_method=pass_all
3825  ;;
3826esac
3827
3828fi
3829echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3830echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3831file_magic_cmd=$lt_cv_file_magic_cmd
3832deplibs_check_method=$lt_cv_deplibs_check_method
3833test -z "$deplibs_check_method" && deplibs_check_method=unknown
3834
3835
3836
3837
3838# If no C compiler was specified, use CC.
3839LTCC=${LTCC-"$CC"}
3840
3841# Allow CC to be a program name with arguments.
3842compiler=$CC
3843
3844# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3845if test "${enable_libtool_lock+set}" = set; then
3846  enableval="$enable_libtool_lock"
3847
3848fi;
3849test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3850
3851# Some flags need to be propagated to the compiler or linker for good
3852# libtool support.
3853case $host in
3854ia64-*-hpux*)
3855  # Find out which ABI we are using.
3856  echo 'int i;' > conftest.$ac_ext
3857  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858  (eval $ac_compile) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; then
3862    case `/usr/bin/file conftest.$ac_objext` in
3863    *ELF-32*)
3864      HPUX_IA64_MODE="32"
3865      ;;
3866    *ELF-64*)
3867      HPUX_IA64_MODE="64"
3868      ;;
3869    esac
3870  fi
3871  rm -rf conftest*
3872  ;;
3873*-*-irix6*)
3874  # Find out which ABI we are using.
3875  echo '#line 3875 "configure"' > conftest.$ac_ext
3876  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877  (eval $ac_compile) 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }; then
3881   if test "$lt_cv_prog_gnu_ld" = yes; then
3882    case `/usr/bin/file conftest.$ac_objext` in
3883    *32-bit*)
3884      LD="${LD-ld} -melf32bsmip"
3885      ;;
3886    *N32*)
3887      LD="${LD-ld} -melf32bmipn32"
3888      ;;
3889    *64-bit*)
3890      LD="${LD-ld} -melf64bmip"
3891      ;;
3892    esac
3893   else
3894    case `/usr/bin/file conftest.$ac_objext` in
3895    *32-bit*)
3896      LD="${LD-ld} -32"
3897      ;;
3898    *N32*)
3899      LD="${LD-ld} -n32"
3900      ;;
3901    *64-bit*)
3902      LD="${LD-ld} -64"
3903      ;;
3904    esac
3905   fi
3906  fi
3907  rm -rf conftest*
3908  ;;
3909
3910x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3911  # Find out which ABI we are using.
3912  echo 'int i;' > conftest.$ac_ext
3913  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914  (eval $ac_compile) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; then
3918    case `/usr/bin/file conftest.o` in
3919    *32-bit*)
3920      case $host in
3921        x86_64-*linux*)
3922          LD="${LD-ld} -m elf_i386"
3923          ;;
3924        ppc64-*linux*|powerpc64-*linux*)
3925          LD="${LD-ld} -m elf32ppclinux"
3926          ;;
3927        s390x-*linux*)
3928          LD="${LD-ld} -m elf_s390"
3929          ;;
3930        sparc64-*linux*)
3931          LD="${LD-ld} -m elf32_sparc"
3932          ;;
3933      esac
3934      ;;
3935    *64-bit*)
3936      case $host in
3937        x86_64-*linux*)
3938          LD="${LD-ld} -m elf_x86_64"
3939          ;;
3940        ppc*-*linux*|powerpc*-*linux*)
3941          LD="${LD-ld} -m elf64ppc"
3942          ;;
3943        s390*-*linux*)
3944          LD="${LD-ld} -m elf64_s390"
3945          ;;
3946        sparc*-*linux*)
3947          LD="${LD-ld} -m elf64_sparc"
3948          ;;
3949      esac
3950      ;;
3951    esac
3952  fi
3953  rm -rf conftest*
3954  ;;
3955
3956*-*-sco3.2v5*)
3957  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3958  SAVE_CFLAGS="$CFLAGS"
3959  CFLAGS="$CFLAGS -belf"
3960  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3961echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3962if test "${lt_cv_cc_needs_belf+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965  ac_ext=c
3966ac_cpp='$CPP $CPPFLAGS'
3967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970
3971     cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977
3978int
3979main ()
3980{
3981
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986rm -f conftest.$ac_objext conftest$ac_exeext
3987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3988  (eval $ac_link) 2>conftest.er1
3989  ac_status=$?
3990  grep -v '^ *+' conftest.er1 >conftest.err
3991  rm -f conftest.er1
3992  cat conftest.err >&5
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); } &&
3995	 { ac_try='test -z "$ac_c_werror_flag"
3996			 || test ! -s conftest.err'
3997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998  (eval $ac_try) 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); }; } &&
4002	 { ac_try='test -s conftest$ac_exeext'
4003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004  (eval $ac_try) 2>&5
4005  ac_status=$?
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); }; }; then
4008  lt_cv_cc_needs_belf=yes
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013lt_cv_cc_needs_belf=no
4014fi
4015rm -f conftest.err conftest.$ac_objext \
4016      conftest$ac_exeext conftest.$ac_ext
4017     ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023fi
4024echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4025echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4026  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4027    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4028    CFLAGS="$SAVE_CFLAGS"
4029  fi
4030  ;;
4031*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4032  if test -n "$ac_tool_prefix"; then
4033  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4034set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4035echo "$as_me:$LINENO: checking for $ac_word" >&5
4036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4038  echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040  if test -n "$DLLTOOL"; then
4041  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046  IFS=$as_save_IFS
4047  test -z "$as_dir" && as_dir=.
4048  for ac_exec_ext in '' $ac_executable_extensions; do
4049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052    break 2
4053  fi
4054done
4055done
4056
4057fi
4058fi
4059DLLTOOL=$ac_cv_prog_DLLTOOL
4060if test -n "$DLLTOOL"; then
4061  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4062echo "${ECHO_T}$DLLTOOL" >&6
4063else
4064  echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
4066fi
4067
4068fi
4069if test -z "$ac_cv_prog_DLLTOOL"; then
4070  ac_ct_DLLTOOL=$DLLTOOL
4071  # Extract the first word of "dlltool", so it can be a program name with args.
4072set dummy dlltool; ac_word=$2
4073echo "$as_me:$LINENO: checking for $ac_word" >&5
4074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4076  echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
4078  if test -n "$ac_ct_DLLTOOL"; then
4079  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084  IFS=$as_save_IFS
4085  test -z "$as_dir" && as_dir=.
4086  for ac_exec_ext in '' $ac_executable_extensions; do
4087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090    break 2
4091  fi
4092done
4093done
4094
4095  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4096fi
4097fi
4098ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4099if test -n "$ac_ct_DLLTOOL"; then
4100  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4101echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4102else
4103  echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
4105fi
4106
4107  DLLTOOL=$ac_ct_DLLTOOL
4108else
4109  DLLTOOL="$ac_cv_prog_DLLTOOL"
4110fi
4111
4112  if test -n "$ac_tool_prefix"; then
4113  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4114set dummy ${ac_tool_prefix}as; ac_word=$2
4115echo "$as_me:$LINENO: checking for $ac_word" >&5
4116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117if test "${ac_cv_prog_AS+set}" = set; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  if test -n "$AS"; then
4121  ac_cv_prog_AS="$AS" # Let the user override the test.
4122else
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128  for ac_exec_ext in '' $ac_executable_extensions; do
4129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130    ac_cv_prog_AS="${ac_tool_prefix}as"
4131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132    break 2
4133  fi
4134done
4135done
4136
4137fi
4138fi
4139AS=$ac_cv_prog_AS
4140if test -n "$AS"; then
4141  echo "$as_me:$LINENO: result: $AS" >&5
4142echo "${ECHO_T}$AS" >&6
4143else
4144  echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146fi
4147
4148fi
4149if test -z "$ac_cv_prog_AS"; then
4150  ac_ct_AS=$AS
4151  # Extract the first word of "as", so it can be a program name with args.
4152set dummy as; ac_word=$2
4153echo "$as_me:$LINENO: checking for $ac_word" >&5
4154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  if test -n "$ac_ct_AS"; then
4159  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166  for ac_exec_ext in '' $ac_executable_extensions; do
4167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168    ac_cv_prog_ac_ct_AS="as"
4169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170    break 2
4171  fi
4172done
4173done
4174
4175  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4176fi
4177fi
4178ac_ct_AS=$ac_cv_prog_ac_ct_AS
4179if test -n "$ac_ct_AS"; then
4180  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4181echo "${ECHO_T}$ac_ct_AS" >&6
4182else
4183  echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
4185fi
4186
4187  AS=$ac_ct_AS
4188else
4189  AS="$ac_cv_prog_AS"
4190fi
4191
4192  if test -n "$ac_tool_prefix"; then
4193  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4194set dummy ${ac_tool_prefix}objdump; ac_word=$2
4195echo "$as_me:$LINENO: checking for $ac_word" >&5
4196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  if test -n "$OBJDUMP"; then
4201  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206  IFS=$as_save_IFS
4207  test -z "$as_dir" && as_dir=.
4208  for ac_exec_ext in '' $ac_executable_extensions; do
4209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212    break 2
4213  fi
4214done
4215done
4216
4217fi
4218fi
4219OBJDUMP=$ac_cv_prog_OBJDUMP
4220if test -n "$OBJDUMP"; then
4221  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4222echo "${ECHO_T}$OBJDUMP" >&6
4223else
4224  echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
4226fi
4227
4228fi
4229if test -z "$ac_cv_prog_OBJDUMP"; then
4230  ac_ct_OBJDUMP=$OBJDUMP
4231  # Extract the first word of "objdump", so it can be a program name with args.
4232set dummy objdump; ac_word=$2
4233echo "$as_me:$LINENO: checking for $ac_word" >&5
4234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  if test -n "$ac_ct_OBJDUMP"; then
4239  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4240else
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244  IFS=$as_save_IFS
4245  test -z "$as_dir" && as_dir=.
4246  for ac_exec_ext in '' $ac_executable_extensions; do
4247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250    break 2
4251  fi
4252done
4253done
4254
4255  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4256fi
4257fi
4258ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4259if test -n "$ac_ct_OBJDUMP"; then
4260  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4261echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4262else
4263  echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
4265fi
4266
4267  OBJDUMP=$ac_ct_OBJDUMP
4268else
4269  OBJDUMP="$ac_cv_prog_OBJDUMP"
4270fi
4271
4272  ;;
4273
4274esac
4275
4276need_locks="$enable_libtool_lock"
4277
4278
4279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4285echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4286# On Suns, sometimes $CPP names a directory.
4287if test -n "$CPP" && test -d "$CPP"; then
4288  CPP=
4289fi
4290if test -z "$CPP"; then
4291  if test "${ac_cv_prog_CPP+set}" = set; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294      # Double quotes because CPP needs to be expanded
4295    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4296    do
4297      ac_preproc_ok=false
4298for ac_c_preproc_warn_flag in '' yes
4299do
4300  # Use a header file that comes with gcc, so configuring glibc
4301  # with a fresh cross-compiler works.
4302  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303  # <limits.h> exists even on freestanding compilers.
4304  # On the NeXT, cc -E runs the code through the compiler's parser,
4305  # not just through cpp. "Syntax error" is here to catch this case.
4306  cat >conftest.$ac_ext <<_ACEOF
4307/* confdefs.h.  */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h.  */
4312#ifdef __STDC__
4313# include <limits.h>
4314#else
4315# include <assert.h>
4316#endif
4317		     Syntax error
4318_ACEOF
4319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4320  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4321  ac_status=$?
4322  grep -v '^ *+' conftest.er1 >conftest.err
4323  rm -f conftest.er1
4324  cat conftest.err >&5
4325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326  (exit $ac_status); } >/dev/null; then
4327  if test -s conftest.err; then
4328    ac_cpp_err=$ac_c_preproc_warn_flag
4329    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4330  else
4331    ac_cpp_err=
4332  fi
4333else
4334  ac_cpp_err=yes
4335fi
4336if test -z "$ac_cpp_err"; then
4337  :
4338else
4339  echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342  # Broken: fails on valid input.
4343continue
4344fi
4345rm -f conftest.err conftest.$ac_ext
4346
4347  # OK, works on sane cases.  Now check whether non-existent headers
4348  # can be detected and how.
4349  cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h.  */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h.  */
4355#include <ac_nonexistent.h>
4356_ACEOF
4357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4358  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4359  ac_status=$?
4360  grep -v '^ *+' conftest.er1 >conftest.err
4361  rm -f conftest.er1
4362  cat conftest.err >&5
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); } >/dev/null; then
4365  if test -s conftest.err; then
4366    ac_cpp_err=$ac_c_preproc_warn_flag
4367    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4368  else
4369    ac_cpp_err=
4370  fi
4371else
4372  ac_cpp_err=yes
4373fi
4374if test -z "$ac_cpp_err"; then
4375  # Broken: success on invalid input.
4376continue
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381  # Passes both tests.
4382ac_preproc_ok=:
4383break
4384fi
4385rm -f conftest.err conftest.$ac_ext
4386
4387done
4388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389rm -f conftest.err conftest.$ac_ext
4390if $ac_preproc_ok; then
4391  break
4392fi
4393
4394    done
4395    ac_cv_prog_CPP=$CPP
4396
4397fi
4398  CPP=$ac_cv_prog_CPP
4399else
4400  ac_cv_prog_CPP=$CPP
4401fi
4402echo "$as_me:$LINENO: result: $CPP" >&5
4403echo "${ECHO_T}$CPP" >&6
4404ac_preproc_ok=false
4405for ac_c_preproc_warn_flag in '' yes
4406do
4407  # Use a header file that comes with gcc, so configuring glibc
4408  # with a fresh cross-compiler works.
4409  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410  # <limits.h> exists even on freestanding compilers.
4411  # On the NeXT, cc -E runs the code through the compiler's parser,
4412  # not just through cpp. "Syntax error" is here to catch this case.
4413  cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h.  */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h.  */
4419#ifdef __STDC__
4420# include <limits.h>
4421#else
4422# include <assert.h>
4423#endif
4424		     Syntax error
4425_ACEOF
4426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4427  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4428  ac_status=$?
4429  grep -v '^ *+' conftest.er1 >conftest.err
4430  rm -f conftest.er1
4431  cat conftest.err >&5
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); } >/dev/null; then
4434  if test -s conftest.err; then
4435    ac_cpp_err=$ac_c_preproc_warn_flag
4436    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4437  else
4438    ac_cpp_err=
4439  fi
4440else
4441  ac_cpp_err=yes
4442fi
4443if test -z "$ac_cpp_err"; then
4444  :
4445else
4446  echo "$as_me: failed program was:" >&5
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449  # Broken: fails on valid input.
4450continue
4451fi
4452rm -f conftest.err conftest.$ac_ext
4453
4454  # OK, works on sane cases.  Now check whether non-existent headers
4455  # can be detected and how.
4456  cat >conftest.$ac_ext <<_ACEOF
4457/* confdefs.h.  */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h.  */
4462#include <ac_nonexistent.h>
4463_ACEOF
4464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } >/dev/null; then
4472  if test -s conftest.err; then
4473    ac_cpp_err=$ac_c_preproc_warn_flag
4474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475  else
4476    ac_cpp_err=
4477  fi
4478else
4479  ac_cpp_err=yes
4480fi
4481if test -z "$ac_cpp_err"; then
4482  # Broken: success on invalid input.
4483continue
4484else
4485  echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488  # Passes both tests.
4489ac_preproc_ok=:
4490break
4491fi
4492rm -f conftest.err conftest.$ac_ext
4493
4494done
4495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4496rm -f conftest.err conftest.$ac_ext
4497if $ac_preproc_ok; then
4498  :
4499else
4500  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4501See \`config.log' for more details." >&5
4502echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4503See \`config.log' for more details." >&2;}
4504   { (exit 1); exit 1; }; }
4505fi
4506
4507ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513
4514echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4515echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4516if test "${ac_cv_header_stdc+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525#include <stdlib.h>
4526#include <stdarg.h>
4527#include <string.h>
4528#include <float.h>
4529
4530int
4531main ()
4532{
4533
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext
4539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540  (eval $ac_compile) 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } &&
4547	 { ac_try='test -z "$ac_c_werror_flag"
4548			 || test ! -s conftest.err'
4549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550  (eval $ac_try) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; } &&
4554	 { ac_try='test -s conftest.$ac_objext'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  ac_cv_header_stdc=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565ac_cv_header_stdc=no
4566fi
4567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568
4569if test $ac_cv_header_stdc = yes; then
4570  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4571  cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577#include <string.h>
4578
4579_ACEOF
4580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581  $EGREP "memchr" >/dev/null 2>&1; then
4582  :
4583else
4584  ac_cv_header_stdc=no
4585fi
4586rm -f conftest*
4587
4588fi
4589
4590if test $ac_cv_header_stdc = yes; then
4591  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4592  cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h.  */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h.  */
4598#include <stdlib.h>
4599
4600_ACEOF
4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602  $EGREP "free" >/dev/null 2>&1; then
4603  :
4604else
4605  ac_cv_header_stdc=no
4606fi
4607rm -f conftest*
4608
4609fi
4610
4611if test $ac_cv_header_stdc = yes; then
4612  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4613  if test "$cross_compiling" = yes; then
4614  :
4615else
4616  cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h.  */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h.  */
4622#include <ctype.h>
4623#if ((' ' & 0x0FF) == 0x020)
4624# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4625# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4626#else
4627# define ISLOWER(c) \
4628		   (('a' <= (c) && (c) <= 'i') \
4629		     || ('j' <= (c) && (c) <= 'r') \
4630		     || ('s' <= (c) && (c) <= 'z'))
4631# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4632#endif
4633
4634#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4635int
4636main ()
4637{
4638  int i;
4639  for (i = 0; i < 256; i++)
4640    if (XOR (islower (i), ISLOWER (i))
4641	|| toupper (i) != TOUPPER (i))
4642      exit(2);
4643  exit (0);
4644}
4645_ACEOF
4646rm -f conftest$ac_exeext
4647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648  (eval $ac_link) 2>&5
4649  ac_status=$?
4650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653  (eval $ac_try) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; }; then
4657  :
4658else
4659  echo "$as_me: program exited with status $ac_status" >&5
4660echo "$as_me: failed program was:" >&5
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
4663( exit $ac_status )
4664ac_cv_header_stdc=no
4665fi
4666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4667fi
4668fi
4669fi
4670echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4671echo "${ECHO_T}$ac_cv_header_stdc" >&6
4672if test $ac_cv_header_stdc = yes; then
4673
4674cat >>confdefs.h <<\_ACEOF
4675#define STDC_HEADERS 1
4676_ACEOF
4677
4678fi
4679
4680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4691		  inttypes.h stdint.h unistd.h
4692do
4693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4694echo "$as_me:$LINENO: checking for $ac_header" >&5
4695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  cat >conftest.$ac_ext <<_ACEOF
4700/* confdefs.h.  */
4701_ACEOF
4702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
4704/* end confdefs.h.  */
4705$ac_includes_default
4706
4707#include <$ac_header>
4708_ACEOF
4709rm -f conftest.$ac_objext
4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711  (eval $ac_compile) 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718	 { ac_try='test -z "$ac_c_werror_flag"
4719			 || test ! -s conftest.err'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; } &&
4725	 { ac_try='test -s conftest.$ac_objext'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; }; then
4731  eval "$as_ac_Header=yes"
4732else
4733  echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736eval "$as_ac_Header=no"
4737fi
4738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
4740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743  cat >>confdefs.h <<_ACEOF
4744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745_ACEOF
4746
4747fi
4748
4749done
4750
4751
4752
4753for ac_header in dlfcn.h
4754do
4755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757  echo "$as_me:$LINENO: checking for $ac_header" >&5
4758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760  echo $ECHO_N "(cached) $ECHO_C" >&6
4761fi
4762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4764else
4765  # Is the header compilable?
4766echo "$as_me:$LINENO: checking $ac_header usability" >&5
4767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4768cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774$ac_includes_default
4775#include <$ac_header>
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779  (eval $ac_compile) 2>conftest.er1
4780  ac_status=$?
4781  grep -v '^ *+' conftest.er1 >conftest.err
4782  rm -f conftest.er1
4783  cat conftest.err >&5
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); } &&
4786	 { ac_try='test -z "$ac_c_werror_flag"
4787			 || test ! -s conftest.err'
4788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789  (eval $ac_try) 2>&5
4790  ac_status=$?
4791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); }; } &&
4793	 { ac_try='test -s conftest.$ac_objext'
4794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795  (eval $ac_try) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; }; then
4799  ac_header_compiler=yes
4800else
4801  echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804ac_header_compiler=no
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4808echo "${ECHO_T}$ac_header_compiler" >&6
4809
4810# Is the header present?
4811echo "$as_me:$LINENO: checking $ac_header presence" >&5
4812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4813cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h.  */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h.  */
4819#include <$ac_header>
4820_ACEOF
4821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4822  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4823  ac_status=$?
4824  grep -v '^ *+' conftest.er1 >conftest.err
4825  rm -f conftest.er1
4826  cat conftest.err >&5
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); } >/dev/null; then
4829  if test -s conftest.err; then
4830    ac_cpp_err=$ac_c_preproc_warn_flag
4831    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4832  else
4833    ac_cpp_err=
4834  fi
4835else
4836  ac_cpp_err=yes
4837fi
4838if test -z "$ac_cpp_err"; then
4839  ac_header_preproc=yes
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844  ac_header_preproc=no
4845fi
4846rm -f conftest.err conftest.$ac_ext
4847echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4848echo "${ECHO_T}$ac_header_preproc" >&6
4849
4850# So?  What about this header?
4851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4852  yes:no: )
4853    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4855    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4857    ac_header_preproc=yes
4858    ;;
4859  no:yes:* )
4860    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4863echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4864    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4866    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4867echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4872    (
4873      cat <<\_ASBOX
4874## ---------------------------------- ##
4875## Report this to bug-libtool@gnu.org ##
4876## ---------------------------------- ##
4877_ASBOX
4878    ) |
4879      sed "s/^/$as_me: WARNING:     /" >&2
4880    ;;
4881esac
4882echo "$as_me:$LINENO: checking for $ac_header" >&5
4883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4884if eval "test \"\${$as_ac_Header+set}\" = set"; then
4885  echo $ECHO_N "(cached) $ECHO_C" >&6
4886else
4887  eval "$as_ac_Header=\$ac_header_preproc"
4888fi
4889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4891
4892fi
4893if test `eval echo '${'$as_ac_Header'}'` = yes; then
4894  cat >>confdefs.h <<_ACEOF
4895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4896_ACEOF
4897
4898fi
4899
4900done
4901
4902ac_ext=cc
4903ac_cpp='$CXXCPP $CPPFLAGS'
4904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4907if test -n "$ac_tool_prefix"; then
4908  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4909  do
4910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4912echo "$as_me:$LINENO: checking for $ac_word" >&5
4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914if test "${ac_cv_prog_CXX+set}" = set; then
4915  echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917  if test -n "$CXX"; then
4918  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925  for ac_exec_ext in '' $ac_executable_extensions; do
4926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932done
4933
4934fi
4935fi
4936CXX=$ac_cv_prog_CXX
4937if test -n "$CXX"; then
4938  echo "$as_me:$LINENO: result: $CXX" >&5
4939echo "${ECHO_T}$CXX" >&6
4940else
4941  echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943fi
4944
4945    test -n "$CXX" && break
4946  done
4947fi
4948if test -z "$CXX"; then
4949  ac_ct_CXX=$CXX
4950  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4951do
4952  # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
4954echo "$as_me:$LINENO: checking for $ac_word" >&5
4955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  if test -n "$ac_ct_CXX"; then
4960  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965  IFS=$as_save_IFS
4966  test -z "$as_dir" && as_dir=.
4967  for ac_exec_ext in '' $ac_executable_extensions; do
4968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969    ac_cv_prog_ac_ct_CXX="$ac_prog"
4970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971    break 2
4972  fi
4973done
4974done
4975
4976fi
4977fi
4978ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4979if test -n "$ac_ct_CXX"; then
4980  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4981echo "${ECHO_T}$ac_ct_CXX" >&6
4982else
4983  echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985fi
4986
4987  test -n "$ac_ct_CXX" && break
4988done
4989test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4990
4991  CXX=$ac_ct_CXX
4992fi
4993
4994
4995# Provide some information about the compiler.
4996echo "$as_me:$LINENO:" \
4997     "checking for C++ compiler version" >&5
4998ac_compiler=`set X $ac_compile; echo $2`
4999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5000  (eval $ac_compiler --version </dev/null >&5) 2>&5
5001  ac_status=$?
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); }
5004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5005  (eval $ac_compiler -v </dev/null >&5) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }
5009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5010  (eval $ac_compiler -V </dev/null >&5) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }
5014
5015echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5016echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5017if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h.  */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h.  */
5026
5027int
5028main ()
5029{
5030#ifndef __GNUC__
5031       choke me
5032#endif
5033
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040  (eval $ac_compile) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } &&
5047	 { ac_try='test -z "$ac_cxx_werror_flag"
5048			 || test ! -s conftest.err'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; } &&
5054	 { ac_try='test -s conftest.$ac_objext'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  ac_compiler_gnu=yes
5061else
5062  echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065ac_compiler_gnu=no
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5069
5070fi
5071echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5072echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5073GXX=`test $ac_compiler_gnu = yes && echo yes`
5074ac_test_CXXFLAGS=${CXXFLAGS+set}
5075ac_save_CXXFLAGS=$CXXFLAGS
5076CXXFLAGS="-g"
5077echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5078echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5079if test "${ac_cv_prog_cxx_g+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h.  */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h.  */
5088
5089int
5090main ()
5091{
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099  (eval $ac_compile) 2>conftest.er1
5100  ac_status=$?
5101  grep -v '^ *+' conftest.er1 >conftest.err
5102  rm -f conftest.er1
5103  cat conftest.err >&5
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } &&
5106	 { ac_try='test -z "$ac_cxx_werror_flag"
5107			 || test ! -s conftest.err'
5108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109  (eval $ac_try) 2>&5
5110  ac_status=$?
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); }; } &&
5113	 { ac_try='test -s conftest.$ac_objext'
5114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115  (eval $ac_try) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); }; }; then
5119  ac_cv_prog_cxx_g=yes
5120else
5121  echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124ac_cv_prog_cxx_g=no
5125fi
5126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127fi
5128echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5129echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5130if test "$ac_test_CXXFLAGS" = set; then
5131  CXXFLAGS=$ac_save_CXXFLAGS
5132elif test $ac_cv_prog_cxx_g = yes; then
5133  if test "$GXX" = yes; then
5134    CXXFLAGS="-g -O2"
5135  else
5136    CXXFLAGS="-g"
5137  fi
5138else
5139  if test "$GXX" = yes; then
5140    CXXFLAGS="-O2"
5141  else
5142    CXXFLAGS=
5143  fi
5144fi
5145for ac_declaration in \
5146   '' \
5147   'extern "C" void std::exit (int) throw (); using std::exit;' \
5148   'extern "C" void std::exit (int); using std::exit;' \
5149   'extern "C" void exit (int) throw ();' \
5150   'extern "C" void exit (int);' \
5151   'void exit (int);'
5152do
5153  cat >conftest.$ac_ext <<_ACEOF
5154/* confdefs.h.  */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h.  */
5159$ac_declaration
5160#include <stdlib.h>
5161int
5162main ()
5163{
5164exit (42);
5165  ;
5166  return 0;
5167}
5168_ACEOF
5169rm -f conftest.$ac_objext
5170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171  (eval $ac_compile) 2>conftest.er1
5172  ac_status=$?
5173  grep -v '^ *+' conftest.er1 >conftest.err
5174  rm -f conftest.er1
5175  cat conftest.err >&5
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } &&
5178	 { ac_try='test -z "$ac_cxx_werror_flag"
5179			 || test ! -s conftest.err'
5180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181  (eval $ac_try) 2>&5
5182  ac_status=$?
5183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184  (exit $ac_status); }; } &&
5185	 { ac_try='test -s conftest.$ac_objext'
5186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187  (eval $ac_try) 2>&5
5188  ac_status=$?
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); }; }; then
5191  :
5192else
5193  echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196continue
5197fi
5198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5199  cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h.  */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h.  */
5205$ac_declaration
5206int
5207main ()
5208{
5209exit (42);
5210  ;
5211  return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext
5215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216  (eval $ac_compile) 2>conftest.er1
5217  ac_status=$?
5218  grep -v '^ *+' conftest.er1 >conftest.err
5219  rm -f conftest.er1
5220  cat conftest.err >&5
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); } &&
5223	 { ac_try='test -z "$ac_cxx_werror_flag"
5224			 || test ! -s conftest.err'
5225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226  (eval $ac_try) 2>&5
5227  ac_status=$?
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); }; } &&
5230	 { ac_try='test -s conftest.$ac_objext'
5231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232  (eval $ac_try) 2>&5
5233  ac_status=$?
5234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235  (exit $ac_status); }; }; then
5236  break
5237else
5238  echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241fi
5242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5243done
5244rm -f conftest*
5245if test -n "$ac_declaration"; then
5246  echo '#ifdef __cplusplus' >>confdefs.h
5247  echo $ac_declaration      >>confdefs.h
5248  echo '#endif'             >>confdefs.h
5249fi
5250
5251ac_ext=cc
5252ac_cpp='$CXXCPP $CPPFLAGS'
5253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5256
5257depcc="$CXX"  am_compiler_list=
5258
5259echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5260echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5261if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5265  # We make a subdir and do the tests there.  Otherwise we can end up
5266  # making bogus files that we don't know about and never remove.  For
5267  # instance it was reported that on HP-UX the gcc test will end up
5268  # making a dummy file named `D' -- because `-MD' means `put the output
5269  # in D'.
5270  mkdir conftest.dir
5271  # Copy depcomp to subdir because otherwise we won't find it if we're
5272  # using a relative directory.
5273  cp "$am_depcomp" conftest.dir
5274  cd conftest.dir
5275  # We will build objects and dependencies in a subdirectory because
5276  # it helps to detect inapplicable dependency modes.  For instance
5277  # both Tru64's cc and ICC support -MD to output dependencies as a
5278  # side effect of compilation, but ICC will put the dependencies in
5279  # the current directory while Tru64 will put them in the object
5280  # directory.
5281  mkdir sub
5282
5283  am_cv_CXX_dependencies_compiler_type=none
5284  if test "$am_compiler_list" = ""; then
5285     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5286  fi
5287  for depmode in $am_compiler_list; do
5288    # Setup a source with many dependencies, because some compilers
5289    # like to wrap large dependency lists on column 80 (with \), and
5290    # we should not choose a depcomp mode which is confused by this.
5291    #
5292    # We need to recreate these files for each test, as the compiler may
5293    # overwrite some of them when testing with obscure command lines.
5294    # This happens at least with the AIX C compiler.
5295    : > sub/conftest.c
5296    for i in 1 2 3 4 5 6; do
5297      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5298      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5299      # Solaris 8's {/usr,}/bin/sh.
5300      touch sub/conftst$i.h
5301    done
5302    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5303
5304    case $depmode in
5305    nosideeffect)
5306      # after this tag, mechanisms are not by side-effect, so they'll
5307      # only be used when explicitly requested
5308      if test "x$enable_dependency_tracking" = xyes; then
5309	continue
5310      else
5311	break
5312      fi
5313      ;;
5314    none) break ;;
5315    esac
5316    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5317    # mode.  It turns out that the SunPro C++ compiler does not properly
5318    # handle `-M -o', and we need to detect this.
5319    if depmode=$depmode \
5320       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5321       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5322       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5323         >/dev/null 2>conftest.err &&
5324       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5325       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5326       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5327      # icc doesn't choke on unknown options, it will just issue warnings
5328      # or remarks (even with -Werror).  So we grep stderr for any message
5329      # that says an option was ignored or not supported.
5330      # When given -MP, icc 7.0 and 7.1 complain thusly:
5331      #   icc: Command line warning: ignoring option '-M'; no argument required
5332      # The diagnosis changed in icc 8.0:
5333      #   icc: Command line remark: option '-MP' not supported
5334      if (grep 'ignoring option' conftest.err ||
5335          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5336        am_cv_CXX_dependencies_compiler_type=$depmode
5337        break
5338      fi
5339    fi
5340  done
5341
5342  cd ..
5343  rm -rf conftest.dir
5344else
5345  am_cv_CXX_dependencies_compiler_type=none
5346fi
5347
5348fi
5349echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5350echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5351CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5352
5353
5354
5355if
5356  test "x$enable_dependency_tracking" != xno \
5357  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5358  am__fastdepCXX_TRUE=
5359  am__fastdepCXX_FALSE='#'
5360else
5361  am__fastdepCXX_TRUE='#'
5362  am__fastdepCXX_FALSE=
5363fi
5364
5365
5366
5367
5368if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5369    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5370    (test "X$CXX" != "Xg++"))) ; then
5371  ac_ext=cc
5372ac_cpp='$CXXCPP $CPPFLAGS'
5373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5377echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5378if test -z "$CXXCPP"; then
5379  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382      # Double quotes because CXXCPP needs to be expanded
5383    for CXXCPP in "$CXX -E" "/lib/cpp"
5384    do
5385      ac_preproc_ok=false
5386for ac_cxx_preproc_warn_flag in '' yes
5387do
5388  # Use a header file that comes with gcc, so configuring glibc
5389  # with a fresh cross-compiler works.
5390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391  # <limits.h> exists even on freestanding compilers.
5392  # On the NeXT, cc -E runs the code through the compiler's parser,
5393  # not just through cpp. "Syntax error" is here to catch this case.
5394  cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400#ifdef __STDC__
5401# include <limits.h>
5402#else
5403# include <assert.h>
5404#endif
5405		     Syntax error
5406_ACEOF
5407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409  ac_status=$?
5410  grep -v '^ *+' conftest.er1 >conftest.err
5411  rm -f conftest.er1
5412  cat conftest.err >&5
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); } >/dev/null; then
5415  if test -s conftest.err; then
5416    ac_cpp_err=$ac_cxx_preproc_warn_flag
5417    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5418  else
5419    ac_cpp_err=
5420  fi
5421else
5422  ac_cpp_err=yes
5423fi
5424if test -z "$ac_cpp_err"; then
5425  :
5426else
5427  echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
5430  # Broken: fails on valid input.
5431continue
5432fi
5433rm -f conftest.err conftest.$ac_ext
5434
5435  # OK, works on sane cases.  Now check whether non-existent headers
5436  # can be detected and how.
5437  cat >conftest.$ac_ext <<_ACEOF
5438/* confdefs.h.  */
5439_ACEOF
5440cat confdefs.h >>conftest.$ac_ext
5441cat >>conftest.$ac_ext <<_ACEOF
5442/* end confdefs.h.  */
5443#include <ac_nonexistent.h>
5444_ACEOF
5445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447  ac_status=$?
5448  grep -v '^ *+' conftest.er1 >conftest.err
5449  rm -f conftest.er1
5450  cat conftest.err >&5
5451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452  (exit $ac_status); } >/dev/null; then
5453  if test -s conftest.err; then
5454    ac_cpp_err=$ac_cxx_preproc_warn_flag
5455    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5456  else
5457    ac_cpp_err=
5458  fi
5459else
5460  ac_cpp_err=yes
5461fi
5462if test -z "$ac_cpp_err"; then
5463  # Broken: success on invalid input.
5464continue
5465else
5466  echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469  # Passes both tests.
5470ac_preproc_ok=:
5471break
5472fi
5473rm -f conftest.err conftest.$ac_ext
5474
5475done
5476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477rm -f conftest.err conftest.$ac_ext
5478if $ac_preproc_ok; then
5479  break
5480fi
5481
5482    done
5483    ac_cv_prog_CXXCPP=$CXXCPP
5484
5485fi
5486  CXXCPP=$ac_cv_prog_CXXCPP
5487else
5488  ac_cv_prog_CXXCPP=$CXXCPP
5489fi
5490echo "$as_me:$LINENO: result: $CXXCPP" >&5
5491echo "${ECHO_T}$CXXCPP" >&6
5492ac_preproc_ok=false
5493for ac_cxx_preproc_warn_flag in '' yes
5494do
5495  # Use a header file that comes with gcc, so configuring glibc
5496  # with a fresh cross-compiler works.
5497  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498  # <limits.h> exists even on freestanding compilers.
5499  # On the NeXT, cc -E runs the code through the compiler's parser,
5500  # not just through cpp. "Syntax error" is here to catch this case.
5501  cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h.  */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h.  */
5507#ifdef __STDC__
5508# include <limits.h>
5509#else
5510# include <assert.h>
5511#endif
5512		     Syntax error
5513_ACEOF
5514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516  ac_status=$?
5517  grep -v '^ *+' conftest.er1 >conftest.err
5518  rm -f conftest.er1
5519  cat conftest.err >&5
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); } >/dev/null; then
5522  if test -s conftest.err; then
5523    ac_cpp_err=$ac_cxx_preproc_warn_flag
5524    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5525  else
5526    ac_cpp_err=
5527  fi
5528else
5529  ac_cpp_err=yes
5530fi
5531if test -z "$ac_cpp_err"; then
5532  :
5533else
5534  echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537  # Broken: fails on valid input.
5538continue
5539fi
5540rm -f conftest.err conftest.$ac_ext
5541
5542  # OK, works on sane cases.  Now check whether non-existent headers
5543  # can be detected and how.
5544  cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h.  */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h.  */
5550#include <ac_nonexistent.h>
5551_ACEOF
5552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } >/dev/null; then
5560  if test -s conftest.err; then
5561    ac_cpp_err=$ac_cxx_preproc_warn_flag
5562    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5563  else
5564    ac_cpp_err=
5565  fi
5566else
5567  ac_cpp_err=yes
5568fi
5569if test -z "$ac_cpp_err"; then
5570  # Broken: success on invalid input.
5571continue
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576  # Passes both tests.
5577ac_preproc_ok=:
5578break
5579fi
5580rm -f conftest.err conftest.$ac_ext
5581
5582done
5583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5584rm -f conftest.err conftest.$ac_ext
5585if $ac_preproc_ok; then
5586  :
5587else
5588  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5589See \`config.log' for more details." >&5
5590echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5591See \`config.log' for more details." >&2;}
5592   { (exit 1); exit 1; }; }
5593fi
5594
5595ac_ext=cc
5596ac_cpp='$CXXCPP $CPPFLAGS'
5597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600
5601fi
5602
5603
5604ac_ext=f
5605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5608if test -n "$ac_tool_prefix"; then
5609  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5610  do
5611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5613echo "$as_me:$LINENO: checking for $ac_word" >&5
5614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615if test "${ac_cv_prog_F77+set}" = set; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618  if test -n "$F77"; then
5619  ac_cv_prog_F77="$F77" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626  for ac_exec_ext in '' $ac_executable_extensions; do
5627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633done
5634
5635fi
5636fi
5637F77=$ac_cv_prog_F77
5638if test -n "$F77"; then
5639  echo "$as_me:$LINENO: result: $F77" >&5
5640echo "${ECHO_T}$F77" >&6
5641else
5642  echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644fi
5645
5646    test -n "$F77" && break
5647  done
5648fi
5649if test -z "$F77"; then
5650  ac_ct_F77=$F77
5651  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5652do
5653  # Extract the first word of "$ac_prog", so it can be a program name with args.
5654set dummy $ac_prog; ac_word=$2
5655echo "$as_me:$LINENO: checking for $ac_word" >&5
5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  if test -n "$ac_ct_F77"; then
5661  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668  for ac_exec_ext in '' $ac_executable_extensions; do
5669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670    ac_cv_prog_ac_ct_F77="$ac_prog"
5671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675done
5676
5677fi
5678fi
5679ac_ct_F77=$ac_cv_prog_ac_ct_F77
5680if test -n "$ac_ct_F77"; then
5681  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5682echo "${ECHO_T}$ac_ct_F77" >&6
5683else
5684  echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686fi
5687
5688  test -n "$ac_ct_F77" && break
5689done
5690
5691  F77=$ac_ct_F77
5692fi
5693
5694
5695# Provide some information about the compiler.
5696echo "$as_me:5696:" \
5697     "checking for Fortran 77 compiler version" >&5
5698ac_compiler=`set X $ac_compile; echo $2`
5699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5700  (eval $ac_compiler --version </dev/null >&5) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }
5704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5705  (eval $ac_compiler -v </dev/null >&5) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }
5709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5710  (eval $ac_compiler -V </dev/null >&5) 2>&5
5711  ac_status=$?
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); }
5714rm -f a.out
5715
5716# If we don't use `.F' as extension, the preprocessor is not run on the
5717# input file.  (Note that this only needs to work for GNU compilers.)
5718ac_save_ext=$ac_ext
5719ac_ext=F
5720echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5721echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5722if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5723  echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725  cat >conftest.$ac_ext <<_ACEOF
5726      program main
5727#ifndef __GNUC__
5728       choke me
5729#endif
5730
5731      end
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735  (eval $ac_compile) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } &&
5742	 { ac_try='test -z "$ac_f77_werror_flag"
5743			 || test ! -s conftest.err'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; } &&
5749	 { ac_try='test -s conftest.$ac_objext'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; }; then
5755  ac_compiler_gnu=yes
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760ac_compiler_gnu=no
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5764
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5767echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5768ac_ext=$ac_save_ext
5769ac_test_FFLAGS=${FFLAGS+set}
5770ac_save_FFLAGS=$FFLAGS
5771FFLAGS=
5772echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5773echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5774if test "${ac_cv_prog_f77_g+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  FFLAGS=-g
5778cat >conftest.$ac_ext <<_ACEOF
5779      program main
5780
5781      end
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785  (eval $ac_compile) 2>conftest.er1
5786  ac_status=$?
5787  grep -v '^ *+' conftest.er1 >conftest.err
5788  rm -f conftest.er1
5789  cat conftest.err >&5
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); } &&
5792	 { ac_try='test -z "$ac_f77_werror_flag"
5793			 || test ! -s conftest.err'
5794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795  (eval $ac_try) 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); }; } &&
5799	 { ac_try='test -s conftest.$ac_objext'
5800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801  (eval $ac_try) 2>&5
5802  ac_status=$?
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); }; }; then
5805  ac_cv_prog_f77_g=yes
5806else
5807  echo "$as_me: failed program was:" >&5
5808sed 's/^/| /' conftest.$ac_ext >&5
5809
5810ac_cv_prog_f77_g=no
5811fi
5812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814fi
5815echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5816echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5817if test "$ac_test_FFLAGS" = set; then
5818  FFLAGS=$ac_save_FFLAGS
5819elif test $ac_cv_prog_f77_g = yes; then
5820  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5821    FFLAGS="-g -O2"
5822  else
5823    FFLAGS="-g"
5824  fi
5825else
5826  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5827    FFLAGS="-O2"
5828  else
5829    FFLAGS=
5830  fi
5831fi
5832
5833G77=`test $ac_compiler_gnu = yes && echo yes`
5834ac_ext=c
5835ac_cpp='$CPP $CPPFLAGS'
5836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840
5841
5842# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5843
5844# find the maximum length of command line arguments
5845echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5846echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5847if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5848  echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850    i=0
5851  teststring="ABCD"
5852
5853  case $build_os in
5854  msdosdjgpp*)
5855    # On DJGPP, this test can blow up pretty badly due to problems in libc
5856    # (any single argument exceeding 2000 bytes causes a buffer overrun
5857    # during glob expansion).  Even if it were fixed, the result of this
5858    # check would be larger than it should be.
5859    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5860    ;;
5861
5862  gnu*)
5863    # Under GNU Hurd, this test is not required because there is
5864    # no limit to the length of command line arguments.
5865    # Libtool will interpret -1 as no limit whatsoever
5866    lt_cv_sys_max_cmd_len=-1;
5867    ;;
5868
5869  cygwin* | mingw*)
5870    # On Win9x/ME, this test blows up -- it succeeds, but takes
5871    # about 5 minutes as the teststring grows exponentially.
5872    # Worse, since 9x/ME are not pre-emptively multitasking,
5873    # you end up with a "frozen" computer, even though with patience
5874    # the test eventually succeeds (with a max line length of 256k).
5875    # Instead, let's just punt: use the minimum linelength reported by
5876    # all of the supported platforms: 8192 (on NT/2K/XP).
5877    lt_cv_sys_max_cmd_len=8192;
5878    ;;
5879
5880  amigaos*)
5881    # On AmigaOS with pdksh, this test takes hours, literally.
5882    # So we just punt and use a minimum line length of 8192.
5883    lt_cv_sys_max_cmd_len=8192;
5884    ;;
5885
5886  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5887    # This has been around since 386BSD, at least.  Likely further.
5888    if test -x /sbin/sysctl; then
5889      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5890    elif test -x /usr/sbin/sysctl; then
5891      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5892    else
5893      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5894    fi
5895    # And add a safety zone
5896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898    ;;
5899  osf*)
5900    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5901    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5902    # nice to cause kernel panics so lets avoid the loop below.
5903    # First set a reasonable default.
5904    lt_cv_sys_max_cmd_len=16384
5905    #
5906    if test -x /sbin/sysconfig; then
5907      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5908        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5909      esac
5910    fi
5911    ;;
5912  *)
5913    # If test is not a shell built-in, we'll probably end up computing a
5914    # maximum length that is only half of the actual maximum length, but
5915    # we can't tell.
5916    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5917    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5918	       = "XX$teststring") >/dev/null 2>&1 &&
5919	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5920	    lt_cv_sys_max_cmd_len=$new_result &&
5921	    test $i != 17 # 1/2 MB should be enough
5922    do
5923      i=`expr $i + 1`
5924      teststring=$teststring$teststring
5925    done
5926    teststring=
5927    # Add a significant safety factor because C++ compilers can tack on massive
5928    # amounts of additional arguments before passing them to the linker.
5929    # It appears as though 1/2 is a usable value.
5930    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5931    ;;
5932  esac
5933
5934fi
5935
5936if test -n $lt_cv_sys_max_cmd_len ; then
5937  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5938echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5939else
5940  echo "$as_me:$LINENO: result: none" >&5
5941echo "${ECHO_T}none" >&6
5942fi
5943
5944
5945
5946
5947# Check for command to grab the raw symbol name followed by C symbol from nm.
5948echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5949echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5950if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953
5954# These are sane defaults that work on at least a few old systems.
5955# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5956
5957# Character class describing NM global symbol codes.
5958symcode='[BCDEGRST]'
5959
5960# Regexp to match symbols that can be accessed directly from C.
5961sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5962
5963# Transform an extracted symbol line into a proper C declaration
5964lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5965
5966# Transform an extracted symbol line into symbol name and symbol address
5967lt_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'"
5968
5969# Define system-specific variables.
5970case $host_os in
5971aix*)
5972  symcode='[BCDT]'
5973  ;;
5974cygwin* | mingw* | pw32*)
5975  symcode='[ABCDGISTW]'
5976  ;;
5977hpux*) # Its linker distinguishes data from code symbols
5978  if test "$host_cpu" = ia64; then
5979    symcode='[ABCDEGRST]'
5980  fi
5981  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5982  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'"
5983  ;;
5984linux*)
5985  if test "$host_cpu" = ia64; then
5986    symcode='[ABCDGIRSTW]'
5987    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5988    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'"
5989  fi
5990  ;;
5991irix* | nonstopux*)
5992  symcode='[BCDEGRST]'
5993  ;;
5994osf*)
5995  symcode='[BCDEGQRST]'
5996  ;;
5997solaris* | sysv5*)
5998  symcode='[BDRT]'
5999  ;;
6000sysv4)
6001  symcode='[DFNSTU]'
6002  ;;
6003esac
6004
6005# Handle CRLF in mingw tool chain
6006opt_cr=
6007case $build_os in
6008mingw*)
6009  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010  ;;
6011esac
6012
6013# If we're using GNU nm, then use its standard symbol codes.
6014case `$NM -V 2>&1` in
6015*GNU* | *'with BFD'*)
6016  symcode='[ABCDGIRSTW]' ;;
6017esac
6018
6019# Try without a prefix undercore, then with it.
6020for ac_symprfx in "" "_"; do
6021
6022  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6023  symxfrm="\\1 $ac_symprfx\\2 \\2"
6024
6025  # Write the raw and C identifiers.
6026  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6027
6028  # Check to see that the pipe works correctly.
6029  pipe_works=no
6030
6031  rm -f conftest*
6032  cat > conftest.$ac_ext <<EOF
6033#ifdef __cplusplus
6034extern "C" {
6035#endif
6036char nm_test_var;
6037void nm_test_func(){}
6038#ifdef __cplusplus
6039}
6040#endif
6041int main(){nm_test_var='a';nm_test_func();return(0);}
6042EOF
6043
6044  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045  (eval $ac_compile) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; then
6049    # Now try to grab the symbols.
6050    nlist=conftest.nm
6051    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6052  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6053  ac_status=$?
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } && test -s "$nlist"; then
6056      # Try sorting and uniquifying the output.
6057      if sort "$nlist" | uniq > "$nlist"T; then
6058	mv -f "$nlist"T "$nlist"
6059      else
6060	rm -f "$nlist"T
6061      fi
6062
6063      # Make sure that we snagged all the symbols we need.
6064      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6065	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6066	  cat <<EOF > conftest.$ac_ext
6067#ifdef __cplusplus
6068extern "C" {
6069#endif
6070
6071EOF
6072	  # Now generate the symbol file.
6073	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6074
6075	  cat <<EOF >> conftest.$ac_ext
6076#if defined (__STDC__) && __STDC__
6077# define lt_ptr_t void *
6078#else
6079# define lt_ptr_t char *
6080# define const
6081#endif
6082
6083/* The mapping between symbol names and symbols. */
6084const struct {
6085  const char *name;
6086  lt_ptr_t address;
6087}
6088lt_preloaded_symbols[] =
6089{
6090EOF
6091	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6092	  cat <<\EOF >> conftest.$ac_ext
6093  {0, (lt_ptr_t) 0}
6094};
6095
6096#ifdef __cplusplus
6097}
6098#endif
6099EOF
6100	  # Now try linking the two files.
6101	  mv conftest.$ac_objext conftstm.$ac_objext
6102	  lt_save_LIBS="$LIBS"
6103	  lt_save_CFLAGS="$CFLAGS"
6104	  LIBS="conftstm.$ac_objext"
6105	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107  (eval $ac_link) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6111	    pipe_works=yes
6112	  fi
6113	  LIBS="$lt_save_LIBS"
6114	  CFLAGS="$lt_save_CFLAGS"
6115	else
6116	  echo "cannot find nm_test_func in $nlist" >&5
6117	fi
6118      else
6119	echo "cannot find nm_test_var in $nlist" >&5
6120      fi
6121    else
6122      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6123    fi
6124  else
6125    echo "$progname: failed program was:" >&5
6126    cat conftest.$ac_ext >&5
6127  fi
6128  rm -f conftest* conftst*
6129
6130  # Do not use the global_symbol_pipe unless it works.
6131  if test "$pipe_works" = yes; then
6132    break
6133  else
6134    lt_cv_sys_global_symbol_pipe=
6135  fi
6136done
6137
6138fi
6139
6140if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141  lt_cv_sys_global_symbol_to_cdecl=
6142fi
6143if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144  echo "$as_me:$LINENO: result: failed" >&5
6145echo "${ECHO_T}failed" >&6
6146else
6147  echo "$as_me:$LINENO: result: ok" >&5
6148echo "${ECHO_T}ok" >&6
6149fi
6150
6151echo "$as_me:$LINENO: checking for objdir" >&5
6152echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6153if test "${lt_cv_objdir+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  rm -f .libs 2>/dev/null
6157mkdir .libs 2>/dev/null
6158if test -d .libs; then
6159  lt_cv_objdir=.libs
6160else
6161  # MS-DOS does not allow filenames that begin with a dot.
6162  lt_cv_objdir=_libs
6163fi
6164rmdir .libs 2>/dev/null
6165fi
6166echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6167echo "${ECHO_T}$lt_cv_objdir" >&6
6168objdir=$lt_cv_objdir
6169
6170
6171
6172
6173
6174case $host_os in
6175aix3*)
6176  # AIX sometimes has problems with the GCC collect2 program.  For some
6177  # reason, if we set the COLLECT_NAMES environment variable, the problems
6178  # vanish in a puff of smoke.
6179  if test "X${COLLECT_NAMES+set}" != Xset; then
6180    COLLECT_NAMES=
6181    export COLLECT_NAMES
6182  fi
6183  ;;
6184esac
6185
6186# Sed substitution that helps us do robust quoting.  It backslashifies
6187# metacharacters that are still active within double-quoted strings.
6188Xsed='sed -e 1s/^X//'
6189sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6190
6191# Same as above, but do not quote variable references.
6192double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6193
6194# Sed substitution to delay expansion of an escaped shell variable in a
6195# double_quote_subst'ed string.
6196delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6197
6198# Sed substitution to avoid accidental globbing in evaled expressions
6199no_glob_subst='s/\*/\\\*/g'
6200
6201# Constants:
6202rm="rm -f"
6203
6204# Global variables:
6205default_ofile=libtool
6206can_build_shared=yes
6207
6208# All known linkers require a `.a' archive for static linking (except MSVC,
6209# which needs '.lib').
6210libext=a
6211ltmain="$ac_aux_dir/ltmain.sh"
6212ofile="$default_ofile"
6213with_gnu_ld="$lt_cv_prog_gnu_ld"
6214
6215if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ar; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_AR+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$AR"; then
6224  ac_cv_prog_AR="$AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_AR="${ac_tool_prefix}ar"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240fi
6241fi
6242AR=$ac_cv_prog_AR
6243if test -n "$AR"; then
6244  echo "$as_me:$LINENO: result: $AR" >&5
6245echo "${ECHO_T}$AR" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251fi
6252if test -z "$ac_cv_prog_AR"; then
6253  ac_ct_AR=$AR
6254  # Extract the first word of "ar", so it can be a program name with args.
6255set dummy ar; ac_word=$2
6256echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6259  echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261  if test -n "$ac_ct_AR"; then
6262  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269  for ac_exec_ext in '' $ac_executable_extensions; do
6270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_prog_ac_ct_AR="ar"
6272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276done
6277
6278  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6279fi
6280fi
6281ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282if test -n "$ac_ct_AR"; then
6283  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6284echo "${ECHO_T}$ac_ct_AR" >&6
6285else
6286  echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290  AR=$ac_ct_AR
6291else
6292  AR="$ac_cv_prog_AR"
6293fi
6294
6295if test -n "$ac_tool_prefix"; then
6296  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_RANLIB+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test -n "$RANLIB"; then
6304  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311  for ac_exec_ext in '' $ac_executable_extensions; do
6312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318done
6319
6320fi
6321fi
6322RANLIB=$ac_cv_prog_RANLIB
6323if test -n "$RANLIB"; then
6324  echo "$as_me:$LINENO: result: $RANLIB" >&5
6325echo "${ECHO_T}$RANLIB" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_RANLIB"; then
6333  ac_ct_RANLIB=$RANLIB
6334  # Extract the first word of "ranlib", so it can be a program name with args.
6335set dummy ranlib; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  if test -n "$ac_ct_RANLIB"; then
6342  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349  for ac_exec_ext in '' $ac_executable_extensions; do
6350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351    ac_cv_prog_ac_ct_RANLIB="ranlib"
6352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356done
6357
6358  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6359fi
6360fi
6361ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6362if test -n "$ac_ct_RANLIB"; then
6363  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6364echo "${ECHO_T}$ac_ct_RANLIB" >&6
6365else
6366  echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370  RANLIB=$ac_ct_RANLIB
6371else
6372  RANLIB="$ac_cv_prog_RANLIB"
6373fi
6374
6375if test -n "$ac_tool_prefix"; then
6376  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}strip; ac_word=$2
6378echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380if test "${ac_cv_prog_STRIP+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  if test -n "$STRIP"; then
6384  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399
6400fi
6401fi
6402STRIP=$ac_cv_prog_STRIP
6403if test -n "$STRIP"; then
6404  echo "$as_me:$LINENO: result: $STRIP" >&5
6405echo "${ECHO_T}$STRIP" >&6
6406else
6407  echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409fi
6410
6411fi
6412if test -z "$ac_cv_prog_STRIP"; then
6413  ac_ct_STRIP=$STRIP
6414  # Extract the first word of "strip", so it can be a program name with args.
6415set dummy strip; ac_word=$2
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  if test -n "$ac_ct_STRIP"; then
6422  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_ac_ct_STRIP="strip"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437
6438  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6439fi
6440fi
6441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6442if test -n "$ac_ct_STRIP"; then
6443  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6444echo "${ECHO_T}$ac_ct_STRIP" >&6
6445else
6446  echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
6448fi
6449
6450  STRIP=$ac_ct_STRIP
6451else
6452  STRIP="$ac_cv_prog_STRIP"
6453fi
6454
6455
6456old_CC="$CC"
6457old_CFLAGS="$CFLAGS"
6458
6459# Set sane defaults for various variables
6460test -z "$AR" && AR=ar
6461test -z "$AR_FLAGS" && AR_FLAGS=cru
6462test -z "$AS" && AS=as
6463test -z "$CC" && CC=cc
6464test -z "$LTCC" && LTCC=$CC
6465test -z "$DLLTOOL" && DLLTOOL=dlltool
6466test -z "$LD" && LD=ld
6467test -z "$LN_S" && LN_S="ln -s"
6468test -z "$MAGIC_CMD" && MAGIC_CMD=file
6469test -z "$NM" && NM=nm
6470test -z "$SED" && SED=sed
6471test -z "$OBJDUMP" && OBJDUMP=objdump
6472test -z "$RANLIB" && RANLIB=:
6473test -z "$STRIP" && STRIP=:
6474test -z "$ac_objext" && ac_objext=o
6475
6476# Determine commands to create old-style static archives.
6477old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6478old_postinstall_cmds='chmod 644 $oldlib'
6479old_postuninstall_cmds=
6480
6481if test -n "$RANLIB"; then
6482  case $host_os in
6483  openbsd*)
6484    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6485    ;;
6486  *)
6487    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6488    ;;
6489  esac
6490  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6491fi
6492
6493for cc_temp in $compiler""; do
6494  case $cc_temp in
6495    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6496    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6497    \-*) ;;
6498    *) break;;
6499  esac
6500done
6501cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6502
6503
6504# Only perform the check for file, if the check method requires it
6505case $deplibs_check_method in
6506file_magic*)
6507  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6508    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6509echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6510if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6511  echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513  case $MAGIC_CMD in
6514[\\/*] |  ?:[\\/]*)
6515  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6516  ;;
6517*)
6518  lt_save_MAGIC_CMD="$MAGIC_CMD"
6519  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6520  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6521  for ac_dir in $ac_dummy; do
6522    IFS="$lt_save_ifs"
6523    test -z "$ac_dir" && ac_dir=.
6524    if test -f $ac_dir/${ac_tool_prefix}file; then
6525      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6526      if test -n "$file_magic_test_file"; then
6527	case $deplibs_check_method in
6528	"file_magic "*)
6529	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6530	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6531	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6532	    $EGREP "$file_magic_regex" > /dev/null; then
6533	    :
6534	  else
6535	    cat <<EOF 1>&2
6536
6537*** Warning: the command libtool uses to detect shared libraries,
6538*** $file_magic_cmd, produces output that libtool cannot recognize.
6539*** The result is that libtool may fail to recognize shared libraries
6540*** as such.  This will affect the creation of libtool libraries that
6541*** depend on shared libraries, but programs linked with such libtool
6542*** libraries will work regardless of this problem.  Nevertheless, you
6543*** may want to report the problem to your system manager and/or to
6544*** bug-libtool@gnu.org
6545
6546EOF
6547	  fi ;;
6548	esac
6549      fi
6550      break
6551    fi
6552  done
6553  IFS="$lt_save_ifs"
6554  MAGIC_CMD="$lt_save_MAGIC_CMD"
6555  ;;
6556esac
6557fi
6558
6559MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6560if test -n "$MAGIC_CMD"; then
6561  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6562echo "${ECHO_T}$MAGIC_CMD" >&6
6563else
6564  echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
6566fi
6567
6568if test -z "$lt_cv_path_MAGIC_CMD"; then
6569  if test -n "$ac_tool_prefix"; then
6570    echo "$as_me:$LINENO: checking for file" >&5
6571echo $ECHO_N "checking for file... $ECHO_C" >&6
6572if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  case $MAGIC_CMD in
6576[\\/*] |  ?:[\\/]*)
6577  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6578  ;;
6579*)
6580  lt_save_MAGIC_CMD="$MAGIC_CMD"
6581  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6582  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6583  for ac_dir in $ac_dummy; do
6584    IFS="$lt_save_ifs"
6585    test -z "$ac_dir" && ac_dir=.
6586    if test -f $ac_dir/file; then
6587      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6588      if test -n "$file_magic_test_file"; then
6589	case $deplibs_check_method in
6590	"file_magic "*)
6591	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6592	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6593	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6594	    $EGREP "$file_magic_regex" > /dev/null; then
6595	    :
6596	  else
6597	    cat <<EOF 1>&2
6598
6599*** Warning: the command libtool uses to detect shared libraries,
6600*** $file_magic_cmd, produces output that libtool cannot recognize.
6601*** The result is that libtool may fail to recognize shared libraries
6602*** as such.  This will affect the creation of libtool libraries that
6603*** depend on shared libraries, but programs linked with such libtool
6604*** libraries will work regardless of this problem.  Nevertheless, you
6605*** may want to report the problem to your system manager and/or to
6606*** bug-libtool@gnu.org
6607
6608EOF
6609	  fi ;;
6610	esac
6611      fi
6612      break
6613    fi
6614  done
6615  IFS="$lt_save_ifs"
6616  MAGIC_CMD="$lt_save_MAGIC_CMD"
6617  ;;
6618esac
6619fi
6620
6621MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622if test -n "$MAGIC_CMD"; then
6623  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6624echo "${ECHO_T}$MAGIC_CMD" >&6
6625else
6626  echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628fi
6629
6630  else
6631    MAGIC_CMD=:
6632  fi
6633fi
6634
6635  fi
6636  ;;
6637esac
6638
6639enable_dlopen=no
6640enable_win32_dll=yes
6641
6642# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6643if test "${enable_libtool_lock+set}" = set; then
6644  enableval="$enable_libtool_lock"
6645
6646fi;
6647test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6648
6649
6650# Check whether --with-pic or --without-pic was given.
6651if test "${with_pic+set}" = set; then
6652  withval="$with_pic"
6653  pic_mode="$withval"
6654else
6655  pic_mode=default
6656fi;
6657test -z "$pic_mode" && pic_mode=default
6658
6659# Use C for the default configuration in the libtool script
6660tagname=
6661lt_save_CC="$CC"
6662ac_ext=c
6663ac_cpp='$CPP $CPPFLAGS'
6664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
6668
6669# Source file extension for C test sources.
6670ac_ext=c
6671
6672# Object file extension for compiled C test sources.
6673objext=o
6674objext=$objext
6675
6676# Code to be used in simple compile tests
6677lt_simple_compile_test_code="int some_variable = 0;\n"
6678
6679# Code to be used in simple link tests
6680lt_simple_link_test_code='int main(){return(0);}\n'
6681
6682
6683# If no C compiler was specified, use CC.
6684LTCC=${LTCC-"$CC"}
6685
6686# Allow CC to be a program name with arguments.
6687compiler=$CC
6688
6689
6690# save warnings/boilerplate of simple test code
6691ac_outfile=conftest.$ac_objext
6692printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6693eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6694_lt_compiler_boilerplate=`cat conftest.err`
6695$rm conftest*
6696
6697ac_outfile=conftest.$ac_objext
6698printf "$lt_simple_link_test_code" >conftest.$ac_ext
6699eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6700_lt_linker_boilerplate=`cat conftest.err`
6701$rm conftest*
6702
6703
6704#
6705# Check for any special shared library compilation flags.
6706#
6707lt_prog_cc_shlib=
6708if test "$GCC" = no; then
6709  case $host_os in
6710  sco3.2v5*)
6711    lt_prog_cc_shlib='-belf'
6712    ;;
6713  esac
6714fi
6715if test -n "$lt_prog_cc_shlib"; then
6716  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6717echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6718  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6719  else
6720    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6721echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6722    lt_cv_prog_cc_can_build_shared=no
6723  fi
6724fi
6725
6726
6727#
6728# Check to make sure the static flag actually works.
6729#
6730echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6731echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6732if test "${lt_prog_compiler_static_works+set}" = set; then
6733  echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735  lt_prog_compiler_static_works=no
6736   save_LDFLAGS="$LDFLAGS"
6737   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6738   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6739   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6740     # The linker can only warn and ignore the option if not recognized
6741     # So say no if there are warnings
6742     if test -s conftest.err; then
6743       # Append any errors to the config.log.
6744       cat conftest.err 1>&5
6745       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6746       $SED '/^$/d' conftest.err >conftest.er2
6747       if diff conftest.exp conftest.er2 >/dev/null; then
6748         lt_prog_compiler_static_works=yes
6749       fi
6750     else
6751       lt_prog_compiler_static_works=yes
6752     fi
6753   fi
6754   $rm conftest*
6755   LDFLAGS="$save_LDFLAGS"
6756
6757fi
6758echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6759echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6760
6761if test x"$lt_prog_compiler_static_works" = xyes; then
6762    :
6763else
6764    lt_prog_compiler_static=
6765fi
6766
6767
6768
6769## CAVEAT EMPTOR:
6770## There is no encapsulation within the following macros, do not change
6771## the running order or otherwise move them around unless you know exactly
6772## what you are doing...
6773
6774lt_prog_compiler_no_builtin_flag=
6775
6776if test "$GCC" = yes; then
6777  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6778
6779
6780echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6781echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6782if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  lt_cv_prog_compiler_rtti_exceptions=no
6786  ac_outfile=conftest.$ac_objext
6787   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6788   lt_compiler_flag="-fno-rtti -fno-exceptions"
6789   # Insert the option either (1) after the last *FLAGS variable, or
6790   # (2) before a word containing "conftest.", or (3) at the end.
6791   # Note that $ac_compile itself does not contain backslashes and begins
6792   # with a dollar sign (not a hyphen), so the echo should work correctly.
6793   # The option is referenced via a variable to avoid confusing sed.
6794   lt_compile=`echo "$ac_compile" | $SED \
6795   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6796   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6797   -e 's:$: $lt_compiler_flag:'`
6798   (eval echo "\"\$as_me:6798: $lt_compile\"" >&5)
6799   (eval "$lt_compile" 2>conftest.err)
6800   ac_status=$?
6801   cat conftest.err >&5
6802   echo "$as_me:6802: \$? = $ac_status" >&5
6803   if (exit $ac_status) && test -s "$ac_outfile"; then
6804     # The compiler can only warn and ignore the option if not recognized
6805     # So say no if there are warnings other than the usual output.
6806     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6807     $SED '/^$/d' conftest.err >conftest.er2
6808     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6809       lt_cv_prog_compiler_rtti_exceptions=yes
6810     fi
6811   fi
6812   $rm conftest*
6813
6814fi
6815echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6816echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6817
6818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6819    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6820else
6821    :
6822fi
6823
6824fi
6825
6826lt_prog_compiler_wl=
6827lt_prog_compiler_pic=
6828lt_prog_compiler_static=
6829
6830echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6831echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6832
6833  if test "$GCC" = yes; then
6834    lt_prog_compiler_wl='-Wl,'
6835    lt_prog_compiler_static='-static'
6836
6837    case $host_os in
6838      aix*)
6839      # All AIX code is PIC.
6840      if test "$host_cpu" = ia64; then
6841	# AIX 5 now supports IA64 processor
6842	lt_prog_compiler_static='-Bstatic'
6843      fi
6844      ;;
6845
6846    amigaos*)
6847      # FIXME: we need at least 68020 code to build shared libraries, but
6848      # adding the `-m68020' flag to GCC prevents building anything better,
6849      # like `-m68040'.
6850      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6851      ;;
6852
6853    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
6854    | osf5*)
6855      # PIC is the default for these OSes.
6856      ;;
6857
6858    mingw* | pw32* | os2*)
6859      # This hack is so that the source file can tell whether it is being
6860      # built for inclusion in a dll (and should export symbols for example).
6861      lt_prog_compiler_pic='-DDLL_EXPORT'
6862      ;;
6863
6864    darwin* | rhapsody*)
6865      # PIC is the default on this platform
6866      # Common symbols not allowed in MH_DYLIB files
6867      lt_prog_compiler_pic='-fno-common'
6868      ;;
6869
6870    msdosdjgpp*)
6871      # Just because we use GCC doesn't mean we suddenly get shared libraries
6872      # on systems that don't support them.
6873      lt_prog_compiler_can_build_shared=no
6874      enable_shared=no
6875      ;;
6876
6877    sysv4*MP*)
6878      if test -d /usr/nec; then
6879	lt_prog_compiler_pic=-Kconform_pic
6880      fi
6881      ;;
6882
6883    hpux*)
6884      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6885      # not for PA HP-UX.
6886      case $host_cpu in
6887      hppa*64*|ia64*)
6888	# +Z the default
6889	;;
6890      *)
6891	lt_prog_compiler_pic='-fPIC'
6892	;;
6893      esac
6894      ;;
6895
6896    *)
6897      lt_prog_compiler_pic='-fPIC'
6898      ;;
6899    esac
6900  else
6901    # PORTME Check for flag to pass linker flags through the system compiler.
6902    case $host_os in
6903    aix*)
6904      lt_prog_compiler_wl='-Wl,'
6905      if test "$host_cpu" = ia64; then
6906	# AIX 5 now supports IA64 processor
6907	lt_prog_compiler_static='-Bstatic'
6908      else
6909	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6910      fi
6911      ;;
6912      darwin*)
6913        # PIC is the default on this platform
6914        # Common symbols not allowed in MH_DYLIB files
6915       case $cc_basename in
6916         xlc*)
6917         lt_prog_compiler_pic='-qnocommon'
6918         lt_prog_compiler_wl='-Wl,'
6919         ;;
6920       esac
6921       ;;
6922
6923    mingw* | pw32* | os2*)
6924      # This hack is so that the source file can tell whether it is being
6925      # built for inclusion in a dll (and should export symbols for example).
6926      lt_prog_compiler_pic='-DDLL_EXPORT'
6927      ;;
6928
6929    hpux9* | hpux10* | hpux11*)
6930      lt_prog_compiler_wl='-Wl,'
6931      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6932      # not for PA HP-UX.
6933      case $host_cpu in
6934      hppa*64*|ia64*)
6935	# +Z the default
6936	;;
6937      *)
6938	lt_prog_compiler_pic='+Z'
6939	;;
6940      esac
6941      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6942      lt_prog_compiler_static='${wl}-a ${wl}archive'
6943      ;;
6944
6945    irix5* | irix6* | nonstopux*)
6946      lt_prog_compiler_wl='-Wl,'
6947      # PIC (with -KPIC) is the default.
6948      lt_prog_compiler_static='-non_shared'
6949      ;;
6950
6951    newsos6)
6952      lt_prog_compiler_pic='-KPIC'
6953      lt_prog_compiler_static='-Bstatic'
6954      ;;
6955
6956    linux*)
6957      case $cc_basename in
6958      icc* | ecc*)
6959	lt_prog_compiler_wl='-Wl,'
6960	lt_prog_compiler_pic='-KPIC'
6961	lt_prog_compiler_static='-static'
6962        ;;
6963      pgcc* | pgf77* | pgf90* | pgf95*)
6964        # Portland Group compilers (*not* the Pentium gcc compiler,
6965	# which looks to be a dead project)
6966	lt_prog_compiler_wl='-Wl,'
6967	lt_prog_compiler_pic='-fpic'
6968	lt_prog_compiler_static='-Bstatic'
6969        ;;
6970      ccc*)
6971        lt_prog_compiler_wl='-Wl,'
6972        # All Alpha code is PIC.
6973        lt_prog_compiler_static='-non_shared'
6974        ;;
6975      esac
6976      ;;
6977
6978    osf3* | osf4* | osf5*)
6979      lt_prog_compiler_wl='-Wl,'
6980      # All OSF/1 code is PIC.
6981      lt_prog_compiler_static='-non_shared'
6982      ;;
6983
6984    sco3.2v5*)
6985      lt_prog_compiler_pic='-Kpic'
6986      lt_prog_compiler_static='-dn'
6987      ;;
6988
6989    solaris*)
6990      lt_prog_compiler_pic='-KPIC'
6991      lt_prog_compiler_static='-Bstatic'
6992      case $cc_basename in
6993      f77* | f90* | f95*)
6994	lt_prog_compiler_wl='-Qoption ld ';;
6995      *)
6996	lt_prog_compiler_wl='-Wl,';;
6997      esac
6998      ;;
6999
7000    sunos4*)
7001      lt_prog_compiler_wl='-Qoption ld '
7002      lt_prog_compiler_pic='-PIC'
7003      lt_prog_compiler_static='-Bstatic'
7004      ;;
7005
7006    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7007      lt_prog_compiler_wl='-Wl,'
7008      lt_prog_compiler_pic='-KPIC'
7009      lt_prog_compiler_static='-Bstatic'
7010      ;;
7011
7012    sysv4*MP*)
7013      if test -d /usr/nec ;then
7014	lt_prog_compiler_pic='-Kconform_pic'
7015	lt_prog_compiler_static='-Bstatic'
7016      fi
7017      ;;
7018
7019    unicos*)
7020      lt_prog_compiler_wl='-Wl,'
7021      lt_prog_compiler_can_build_shared=no
7022      ;;
7023
7024    uts4*)
7025      lt_prog_compiler_pic='-pic'
7026      lt_prog_compiler_static='-Bstatic'
7027      ;;
7028
7029    *)
7030      lt_prog_compiler_can_build_shared=no
7031      ;;
7032    esac
7033  fi
7034
7035echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7036echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7037
7038#
7039# Check to make sure the PIC flag actually works.
7040#
7041if test -n "$lt_prog_compiler_pic"; then
7042
7043echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7044echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7045if test "${lt_prog_compiler_pic_works+set}" = set; then
7046  echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048  lt_prog_compiler_pic_works=no
7049  ac_outfile=conftest.$ac_objext
7050   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7051   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7052   # Insert the option either (1) after the last *FLAGS variable, or
7053   # (2) before a word containing "conftest.", or (3) at the end.
7054   # Note that $ac_compile itself does not contain backslashes and begins
7055   # with a dollar sign (not a hyphen), so the echo should work correctly.
7056   # The option is referenced via a variable to avoid confusing sed.
7057   lt_compile=`echo "$ac_compile" | $SED \
7058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7060   -e 's:$: $lt_compiler_flag:'`
7061   (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
7062   (eval "$lt_compile" 2>conftest.err)
7063   ac_status=$?
7064   cat conftest.err >&5
7065   echo "$as_me:7065: \$? = $ac_status" >&5
7066   if (exit $ac_status) && test -s "$ac_outfile"; then
7067     # The compiler can only warn and ignore the option if not recognized
7068     # So say no if there are warnings other than the usual output.
7069     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7070     $SED '/^$/d' conftest.err >conftest.er2
7071     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7072       lt_prog_compiler_pic_works=yes
7073     fi
7074   fi
7075   $rm conftest*
7076
7077fi
7078echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7079echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7080
7081if test x"$lt_prog_compiler_pic_works" = xyes; then
7082    case $lt_prog_compiler_pic in
7083     "" | " "*) ;;
7084     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7085     esac
7086else
7087    lt_prog_compiler_pic=
7088     lt_prog_compiler_can_build_shared=no
7089fi
7090
7091fi
7092case $host_os in
7093  # For platforms which do not support PIC, -DPIC is meaningless:
7094  *djgpp*)
7095    lt_prog_compiler_pic=
7096    ;;
7097  *)
7098    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7099    ;;
7100esac
7101
7102echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7103echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7104if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7105  echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107  lt_cv_prog_compiler_c_o=no
7108   $rm -r conftest 2>/dev/null
7109   mkdir conftest
7110   cd conftest
7111   mkdir out
7112   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113
7114   lt_compiler_flag="-o out/conftest2.$ac_objext"
7115   # Insert the option either (1) after the last *FLAGS variable, or
7116   # (2) before a word containing "conftest.", or (3) at the end.
7117   # Note that $ac_compile itself does not contain backslashes and begins
7118   # with a dollar sign (not a hyphen), so the echo should work correctly.
7119   lt_compile=`echo "$ac_compile" | $SED \
7120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122   -e 's:$: $lt_compiler_flag:'`
7123   (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124   (eval "$lt_compile" 2>out/conftest.err)
7125   ac_status=$?
7126   cat out/conftest.err >&5
7127   echo "$as_me:7127: \$? = $ac_status" >&5
7128   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7129   then
7130     # The compiler can only warn and ignore the option if not recognized
7131     # So say no if there are warnings
7132     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7133     $SED '/^$/d' out/conftest.err >out/conftest.er2
7134     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7135       lt_cv_prog_compiler_c_o=yes
7136     fi
7137   fi
7138   chmod u+w . 2>&5
7139   $rm conftest*
7140   # SGI C++ compiler will create directory out/ii_files/ for
7141   # template instantiation
7142   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7143   $rm out/* && rmdir out
7144   cd ..
7145   rmdir conftest
7146   $rm conftest*
7147
7148fi
7149echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7150echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7151
7152
7153hard_links="nottested"
7154if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7155  # do not overwrite the value of need_locks provided by the user
7156  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7157echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7158  hard_links=yes
7159  $rm conftest*
7160  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7161  touch conftest.a
7162  ln conftest.a conftest.b 2>&5 || hard_links=no
7163  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7164  echo "$as_me:$LINENO: result: $hard_links" >&5
7165echo "${ECHO_T}$hard_links" >&6
7166  if test "$hard_links" = no; then
7167    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7168echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7169    need_locks=warn
7170  fi
7171else
7172  need_locks=no
7173fi
7174
7175echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7176echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7177
7178  runpath_var=
7179  allow_undefined_flag=
7180  enable_shared_with_static_runtimes=no
7181  archive_cmds=
7182  archive_expsym_cmds=
7183  old_archive_From_new_cmds=
7184  old_archive_from_expsyms_cmds=
7185  export_dynamic_flag_spec=
7186  whole_archive_flag_spec=
7187  thread_safe_flag_spec=
7188  hardcode_libdir_flag_spec=
7189  hardcode_libdir_flag_spec_ld=
7190  hardcode_libdir_separator=
7191  hardcode_direct=no
7192  hardcode_minus_L=no
7193  hardcode_shlibpath_var=unsupported
7194  link_all_deplibs=unknown
7195  hardcode_automatic=no
7196  module_cmds=
7197  module_expsym_cmds=
7198  always_export_symbols=no
7199  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7200  # include_expsyms should be a list of space-separated symbols to be *always*
7201  # included in the symbol list
7202  include_expsyms=
7203  # exclude_expsyms can be an extended regexp of symbols to exclude
7204  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7205  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7206  # as well as any symbol that contains `d'.
7207  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7208  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7209  # platforms (ab)use it in PIC code, but their linkers get confused if
7210  # the symbol is explicitly referenced.  Since portable code cannot
7211  # rely on this symbol name, it's probably fine to never include it in
7212  # preloaded symbol tables.
7213  extract_expsyms_cmds=
7214  # Just being paranoid about ensuring that cc_basename is set.
7215  for cc_temp in $compiler""; do
7216  case $cc_temp in
7217    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7218    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7219    \-*) ;;
7220    *) break;;
7221  esac
7222done
7223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7224
7225  case $host_os in
7226  cygwin* | mingw* | pw32*)
7227    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7228    # When not using gcc, we currently assume that we are using
7229    # Microsoft Visual C++.
7230    if test "$GCC" != yes; then
7231      with_gnu_ld=no
7232    fi
7233    ;;
7234  openbsd*)
7235    with_gnu_ld=no
7236    ;;
7237  esac
7238
7239  ld_shlibs=yes
7240  if test "$with_gnu_ld" = yes; then
7241    # If archive_cmds runs LD, not CC, wlarc should be empty
7242    wlarc='${wl}'
7243
7244    # Set some defaults for GNU ld with shared library support. These
7245    # are reset later if shared libraries are not supported. Putting them
7246    # here allows them to be overridden if necessary.
7247    runpath_var=LD_RUN_PATH
7248    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7249    export_dynamic_flag_spec='${wl}--export-dynamic'
7250    # ancient GNU ld didn't support --whole-archive et. al.
7251    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7252	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7253      else
7254  	whole_archive_flag_spec=
7255    fi
7256    supports_anon_versioning=no
7257    case `$LD -v 2>/dev/null` in
7258      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7259      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7260      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7261      *\ 2.11.*) ;; # other 2.11 versions
7262      *) supports_anon_versioning=yes ;;
7263    esac
7264
7265    # See if GNU ld supports shared libraries.
7266    case $host_os in
7267    aix3* | aix4* | aix5*)
7268      # On AIX/PPC, the GNU linker is very broken
7269      if test "$host_cpu" != ia64; then
7270	ld_shlibs=no
7271	cat <<EOF 1>&2
7272
7273*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7274*** to be unable to reliably create shared libraries on AIX.
7275*** Therefore, libtool is disabling shared libraries support.  If you
7276*** really care for shared libraries, you may want to modify your PATH
7277*** so that a non-GNU linker is found, and then restart.
7278
7279EOF
7280      fi
7281      ;;
7282
7283    amigaos*)
7284      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)'
7285      hardcode_libdir_flag_spec='-L$libdir'
7286      hardcode_minus_L=yes
7287
7288      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7289      # that the semantics of dynamic libraries on AmigaOS, at least up
7290      # to version 4, is to share data among multiple programs linked
7291      # with the same dynamic library.  Since this doesn't match the
7292      # behavior of shared libraries on other platforms, we can't use
7293      # them.
7294      ld_shlibs=no
7295      ;;
7296
7297    beos*)
7298      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7299	allow_undefined_flag=unsupported
7300	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7301	# support --undefined.  This deserves some investigation.  FIXME
7302	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7303      else
7304	ld_shlibs=no
7305      fi
7306      ;;
7307
7308    cygwin* | mingw* | pw32*)
7309      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7310      # as there is no search path for DLLs.
7311      hardcode_libdir_flag_spec='-L$libdir'
7312      allow_undefined_flag=unsupported
7313      always_export_symbols=no
7314      enable_shared_with_static_runtimes=yes
7315      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7316
7317      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7318        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7319	# If the export-symbols file already is a .def file (1st line
7320	# is EXPORTS), use it as is; otherwise, prepend...
7321	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7322	  cp $export_symbols $output_objdir/$soname.def;
7323	else
7324	  echo EXPORTS > $output_objdir/$soname.def;
7325	  cat $export_symbols >> $output_objdir/$soname.def;
7326	fi~
7327	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7328      else
7329	ld_shlibs=no
7330      fi
7331      ;;
7332
7333    haiku*)
7334      allow_undefined_flag=unsupported
7335      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336      ;;
7337
7338    linux*)
7339      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7340	tmp_addflag=
7341	case $cc_basename,$host_cpu in
7342	pgcc*)				# Portland Group C compiler
7343	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7344	  tmp_addflag=' $pic_flag'
7345	  ;;
7346	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7347	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7348	  tmp_addflag=' $pic_flag -Mnomain' ;;
7349	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7350	  tmp_addflag=' -i_dynamic' ;;
7351	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7352	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7353	ifc* | ifort*)			# Intel Fortran compiler
7354	  tmp_addflag=' -nofor_main' ;;
7355	esac
7356	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357
7358	if test $supports_anon_versioning = yes; then
7359	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7360  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7361  $echo "local: *; };" >> $output_objdir/$libname.ver~
7362	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7363	fi
7364      else
7365	ld_shlibs=no
7366      fi
7367      ;;
7368
7369    netbsd*)
7370      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7371	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7372	wlarc=
7373      else
7374	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7375	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7376      fi
7377      ;;
7378
7379    solaris* | sysv5*)
7380      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7381	ld_shlibs=no
7382	cat <<EOF 1>&2
7383
7384*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7385*** create shared libraries on Solaris systems.  Therefore, libtool
7386*** is disabling shared libraries support.  We urge you to upgrade GNU
7387*** binutils to release 2.9.1 or newer.  Another option is to modify
7388*** your PATH or compiler configuration so that the native linker is
7389*** used, and then restart.
7390
7391EOF
7392      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7393	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395      else
7396	ld_shlibs=no
7397      fi
7398      ;;
7399
7400    sunos4*)
7401      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7402      wlarc=
7403      hardcode_direct=yes
7404      hardcode_shlibpath_var=no
7405      ;;
7406
7407    *)
7408      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7409	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7411      else
7412	ld_shlibs=no
7413      fi
7414      ;;
7415    esac
7416
7417    if test "$ld_shlibs" = no; then
7418      runpath_var=
7419      hardcode_libdir_flag_spec=
7420      export_dynamic_flag_spec=
7421      whole_archive_flag_spec=
7422    fi
7423  else
7424    # PORTME fill in a description of your system's linker (not GNU ld)
7425    case $host_os in
7426    aix3*)
7427      allow_undefined_flag=unsupported
7428      always_export_symbols=yes
7429      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'
7430      # Note: this linker hardcodes the directories in LIBPATH if there
7431      # are no directories specified by -L.
7432      hardcode_minus_L=yes
7433      if test "$GCC" = yes && test -z "$link_static_flag"; then
7434	# Neither direct hardcoding nor static linking is supported with a
7435	# broken collect2.
7436	hardcode_direct=unsupported
7437      fi
7438      ;;
7439
7440    aix4* | aix5*)
7441      if test "$host_cpu" = ia64; then
7442	# On IA64, the linker does run time linking by default, so we don't
7443	# have to do anything special.
7444	aix_use_runtimelinking=no
7445	exp_sym_flag='-Bexport'
7446	no_entry_flag=""
7447      else
7448	# If we're using GNU nm, then we don't want the "-C" option.
7449	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7450	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7451	  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'
7452	else
7453	  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'
7454	fi
7455	aix_use_runtimelinking=no
7456
7457	# Test if we are trying to use run time linking or normal
7458	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7459	# need to do runtime linking.
7460	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7461	  for ld_flag in $LDFLAGS; do
7462  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7463  	    aix_use_runtimelinking=yes
7464  	    break
7465  	  fi
7466	  done
7467	esac
7468
7469	exp_sym_flag='-bexport'
7470	no_entry_flag='-bnoentry'
7471      fi
7472
7473      # When large executables or shared objects are built, AIX ld can
7474      # have problems creating the table of contents.  If linking a library
7475      # or program results in "error TOC overflow" add -mminimal-toc to
7476      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7477      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7478
7479      archive_cmds=''
7480      hardcode_direct=yes
7481      hardcode_libdir_separator=':'
7482      link_all_deplibs=yes
7483
7484      if test "$GCC" = yes; then
7485	case $host_os in aix4.[012]|aix4.[012].*)
7486	# We only want to do this on AIX 4.2 and lower, the check
7487	# below for broken collect2 doesn't work under 4.3+
7488	  collect2name=`${CC} -print-prog-name=collect2`
7489	  if test -f "$collect2name" && \
7490  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7491	  then
7492  	  # We have reworked collect2
7493  	  hardcode_direct=yes
7494	  else
7495  	  # We have old collect2
7496  	  hardcode_direct=unsupported
7497  	  # It fails to find uninstalled libraries when the uninstalled
7498  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7499  	  # to unsupported forces relinking
7500  	  hardcode_minus_L=yes
7501  	  hardcode_libdir_flag_spec='-L$libdir'
7502  	  hardcode_libdir_separator=
7503	  fi
7504	esac
7505	shared_flag='-shared'
7506	if test "$aix_use_runtimelinking" = yes; then
7507	  shared_flag="$shared_flag "'${wl}-G'
7508	fi
7509      else
7510	# not using gcc
7511	if test "$host_cpu" = ia64; then
7512  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7513  	# chokes on -Wl,-G. The following line is correct:
7514	  shared_flag='-G'
7515	else
7516  	if test "$aix_use_runtimelinking" = yes; then
7517	    shared_flag='${wl}-G'
7518	  else
7519	    shared_flag='${wl}-bM:SRE'
7520  	fi
7521	fi
7522      fi
7523
7524      # It seems that -bexpall does not export symbols beginning with
7525      # underscore (_), so it is better to generate a list of symbols to export.
7526      always_export_symbols=yes
7527      if test "$aix_use_runtimelinking" = yes; then
7528	# Warning - without using the other runtime loading flags (-brtl),
7529	# -berok will link without error, but may produce a broken library.
7530	allow_undefined_flag='-berok'
7531       # Determine the default libpath from the value encoded in an empty executable.
7532       cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538
7539int
7540main ()
7541{
7542
7543  ;
7544  return 0;
7545}
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549  (eval $ac_link) 2>conftest.er1
7550  ac_status=$?
7551  grep -v '^ *+' conftest.er1 >conftest.err
7552  rm -f conftest.er1
7553  cat conftest.err >&5
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); } &&
7556	 { ac_try='test -z "$ac_c_werror_flag"
7557			 || test ! -s conftest.err'
7558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559  (eval $ac_try) 2>&5
7560  ac_status=$?
7561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); }; } &&
7563	 { ac_try='test -s conftest$ac_exeext'
7564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565  (eval $ac_try) 2>&5
7566  ac_status=$?
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); }; }; then
7569
7570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7571}'`
7572# Check for a 64-bit object if we didn't find anything.
7573if 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; }
7574}'`; fi
7575else
7576  echo "$as_me: failed program was:" >&5
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
7579fi
7580rm -f conftest.err conftest.$ac_objext \
7581      conftest$ac_exeext conftest.$ac_ext
7582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7583
7584       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7585	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"
7586       else
7587	if test "$host_cpu" = ia64; then
7588	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7589	  allow_undefined_flag="-z nodefs"
7590	  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"
7591	else
7592	 # Determine the default libpath from the value encoded in an empty executable.
7593	 cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h.  */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h.  */
7599
7600int
7601main ()
7602{
7603
7604  ;
7605  return 0;
7606}
7607_ACEOF
7608rm -f conftest.$ac_objext conftest$ac_exeext
7609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610  (eval $ac_link) 2>conftest.er1
7611  ac_status=$?
7612  grep -v '^ *+' conftest.er1 >conftest.err
7613  rm -f conftest.er1
7614  cat conftest.err >&5
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); } &&
7617	 { ac_try='test -z "$ac_c_werror_flag"
7618			 || test ! -s conftest.err'
7619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620  (eval $ac_try) 2>&5
7621  ac_status=$?
7622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623  (exit $ac_status); }; } &&
7624	 { ac_try='test -s conftest$ac_exeext'
7625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626  (eval $ac_try) 2>&5
7627  ac_status=$?
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); }; }; then
7630
7631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7632}'`
7633# Check for a 64-bit object if we didn't find anything.
7634if 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; }
7635}'`; fi
7636else
7637  echo "$as_me: failed program was:" >&5
7638sed 's/^/| /' conftest.$ac_ext >&5
7639
7640fi
7641rm -f conftest.err conftest.$ac_objext \
7642      conftest$ac_exeext conftest.$ac_ext
7643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7644
7645	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7646	  # Warning - without using the other run time loading flags,
7647	  # -berok will link without error, but may produce a broken library.
7648	  no_undefined_flag=' ${wl}-bernotok'
7649	  allow_undefined_flag=' ${wl}-berok'
7650	  # -bexpall does not export symbols beginning with underscore (_)
7651	  always_export_symbols=yes
7652	  # Exported symbols can be pulled into shared objects from archives
7653	  whole_archive_flag_spec=' '
7654	  archive_cmds_need_lc=yes
7655	  # This is similar to how AIX traditionally builds its shared libraries.
7656	  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'
7657	fi
7658      fi
7659      ;;
7660
7661    amigaos*)
7662      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)'
7663      hardcode_libdir_flag_spec='-L$libdir'
7664      hardcode_minus_L=yes
7665      # see comment about different semantics on the GNU ld section
7666      ld_shlibs=no
7667      ;;
7668
7669    bsdi[45]*)
7670      export_dynamic_flag_spec=-rdynamic
7671      ;;
7672
7673    cygwin* | mingw* | pw32*)
7674      # When not using gcc, we currently assume that we are using
7675      # Microsoft Visual C++.
7676      # hardcode_libdir_flag_spec is actually meaningless, as there is
7677      # no search path for DLLs.
7678      hardcode_libdir_flag_spec=' '
7679      allow_undefined_flag=unsupported
7680      # Tell ltmain to make .lib files, not .a files.
7681      libext=lib
7682      # Tell ltmain to make .dll files, not .so files.
7683      shrext_cmds=".dll"
7684      # FIXME: Setting linknames here is a bad hack.
7685      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7686      # The linker will automatically build a .lib file if we build a DLL.
7687      old_archive_From_new_cmds='true'
7688      # FIXME: Should let the user specify the lib program.
7689      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7690      fix_srcfile_path='`cygpath -w "$srcfile"`'
7691      enable_shared_with_static_runtimes=yes
7692      ;;
7693
7694    darwin* | rhapsody*)
7695      case $host_os in
7696        rhapsody* | darwin1.[012])
7697         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7698         ;;
7699       *) # Darwin 1.3 on
7700         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7701           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7702         else
7703           case ${MACOSX_DEPLOYMENT_TARGET} in
7704             10.[012])
7705               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7706               ;;
7707             10.*)
7708               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7709               ;;
7710           esac
7711         fi
7712         ;;
7713      esac
7714      archive_cmds_need_lc=no
7715      hardcode_direct=no
7716      hardcode_automatic=yes
7717      hardcode_shlibpath_var=unsupported
7718      whole_archive_flag_spec=''
7719      link_all_deplibs=yes
7720    if test "$GCC" = yes ; then
7721    	output_verbose_link_cmd='echo'
7722        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7723      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7724      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7725      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}'
7726      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7727    else
7728      case $cc_basename in
7729        xlc*)
7730         output_verbose_link_cmd='echo'
7731         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7732         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7733          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7734         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7735          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7736          ;;
7737       *)
7738         ld_shlibs=no
7739          ;;
7740      esac
7741    fi
7742      ;;
7743
7744    dgux*)
7745      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746      hardcode_libdir_flag_spec='-L$libdir'
7747      hardcode_shlibpath_var=no
7748      ;;
7749
7750    freebsd1*)
7751      ld_shlibs=no
7752      ;;
7753
7754    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7755    # support.  Future versions do this automatically, but an explicit c++rt0.o
7756    # does not break anything, and helps significantly (at the cost of a little
7757    # extra space).
7758    freebsd2.2*)
7759      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7760      hardcode_libdir_flag_spec='-R$libdir'
7761      hardcode_direct=yes
7762      hardcode_shlibpath_var=no
7763      ;;
7764
7765    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7766    freebsd2*)
7767      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768      hardcode_direct=yes
7769      hardcode_minus_L=yes
7770      hardcode_shlibpath_var=no
7771      ;;
7772
7773    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7774    freebsd* | kfreebsd*-gnu | dragonfly*)
7775      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7776      hardcode_libdir_flag_spec='-R$libdir'
7777      hardcode_direct=yes
7778      hardcode_shlibpath_var=no
7779      ;;
7780
7781    hpux9*)
7782      if test "$GCC" = yes; then
7783	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'
7784      else
7785	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'
7786      fi
7787      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7788      hardcode_libdir_separator=:
7789      hardcode_direct=yes
7790
7791      # hardcode_minus_L: Not really in the search PATH,
7792      # but as the default location of the library.
7793      hardcode_minus_L=yes
7794      export_dynamic_flag_spec='${wl}-E'
7795      ;;
7796
7797    hpux10* | hpux11*)
7798      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7799	case $host_cpu in
7800	hppa*64*|ia64*)
7801	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7802	  ;;
7803	*)
7804	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7805	  ;;
7806	esac
7807      else
7808	case $host_cpu in
7809	hppa*64*|ia64*)
7810	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7811	  ;;
7812	*)
7813	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7814	  ;;
7815	esac
7816      fi
7817      if test "$with_gnu_ld" = no; then
7818	case $host_cpu in
7819	hppa*64*)
7820	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7821	  hardcode_libdir_flag_spec_ld='+b $libdir'
7822	  hardcode_libdir_separator=:
7823	  hardcode_direct=no
7824	  hardcode_shlibpath_var=no
7825	  ;;
7826	ia64*)
7827	  hardcode_libdir_flag_spec='-L$libdir'
7828	  hardcode_direct=no
7829	  hardcode_shlibpath_var=no
7830
7831	  # hardcode_minus_L: Not really in the search PATH,
7832	  # but as the default location of the library.
7833	  hardcode_minus_L=yes
7834	  ;;
7835	*)
7836	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7837	  hardcode_libdir_separator=:
7838	  hardcode_direct=yes
7839	  export_dynamic_flag_spec='${wl}-E'
7840
7841	  # hardcode_minus_L: Not really in the search PATH,
7842	  # but as the default location of the library.
7843	  hardcode_minus_L=yes
7844	  ;;
7845	esac
7846      fi
7847      ;;
7848
7849    irix5* | irix6* | nonstopux*)
7850      if test "$GCC" = yes; then
7851	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'
7852      else
7853	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'
7854	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7855      fi
7856      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7857      hardcode_libdir_separator=:
7858      link_all_deplibs=yes
7859      ;;
7860
7861    netbsd*)
7862      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7863	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7864      else
7865	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7866      fi
7867      hardcode_libdir_flag_spec='-R$libdir'
7868      hardcode_direct=yes
7869      hardcode_shlibpath_var=no
7870      ;;
7871
7872    newsos6)
7873      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7874      hardcode_direct=yes
7875      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7876      hardcode_libdir_separator=:
7877      hardcode_shlibpath_var=no
7878      ;;
7879
7880    openbsd*)
7881      hardcode_direct=yes
7882      hardcode_shlibpath_var=no
7883      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7884	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7885	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7886	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7887	export_dynamic_flag_spec='${wl}-E'
7888      else
7889       case $host_os in
7890	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7891	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7892	   hardcode_libdir_flag_spec='-R$libdir'
7893	   ;;
7894	 *)
7895	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7896	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7897	   ;;
7898       esac
7899      fi
7900      ;;
7901
7902    os2*)
7903      hardcode_libdir_flag_spec='-L$libdir'
7904      hardcode_minus_L=yes
7905      allow_undefined_flag=unsupported
7906      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'
7907      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7908      ;;
7909
7910    osf3*)
7911      if test "$GCC" = yes; then
7912	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7913	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'
7914      else
7915	allow_undefined_flag=' -expect_unresolved \*'
7916	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'
7917      fi
7918      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7919      hardcode_libdir_separator=:
7920      ;;
7921
7922    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7923      if test "$GCC" = yes; then
7924	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7925	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'
7926	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7927      else
7928	allow_undefined_flag=' -expect_unresolved \*'
7929	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'
7930	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7931	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7932
7933	# Both c and cxx compiler support -rpath directly
7934	hardcode_libdir_flag_spec='-rpath $libdir'
7935      fi
7936      hardcode_libdir_separator=:
7937      ;;
7938
7939    sco3.2v5*)
7940      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7941      hardcode_shlibpath_var=no
7942      export_dynamic_flag_spec='${wl}-Bexport'
7943      runpath_var=LD_RUN_PATH
7944      hardcode_runpath_var=yes
7945      ;;
7946
7947    solaris*)
7948      no_undefined_flag=' -z text'
7949      if test "$GCC" = yes; then
7950	wlarc='${wl}'
7951	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7952	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7953	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7954      else
7955	wlarc=''
7956	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7958  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7959      fi
7960      hardcode_libdir_flag_spec='-R$libdir'
7961      hardcode_shlibpath_var=no
7962      case $host_os in
7963      solaris2.[0-5] | solaris2.[0-5].*) ;;
7964      *)
7965 	# The compiler driver will combine linker options so we
7966 	# cannot just pass the convience library names through
7967 	# without $wl, iff we do not link with $LD.
7968 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7969 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7970 	case $wlarc in
7971 	'')
7972 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7973 	*)
7974 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7975 	esac ;;
7976      esac
7977      link_all_deplibs=yes
7978      ;;
7979
7980    sunos4*)
7981      if test "x$host_vendor" = xsequent; then
7982	# Use $CC to link under sequent, because it throws in some extra .o
7983	# files that make .init and .fini sections work.
7984	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7985      else
7986	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7987      fi
7988      hardcode_libdir_flag_spec='-L$libdir'
7989      hardcode_direct=yes
7990      hardcode_minus_L=yes
7991      hardcode_shlibpath_var=no
7992      ;;
7993
7994    sysv4)
7995      case $host_vendor in
7996	sni)
7997	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998	  hardcode_direct=yes # is this really true???
7999	;;
8000	siemens)
8001	  ## LD is ld it makes a PLAMLIB
8002	  ## CC just makes a GrossModule.
8003	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8004	  reload_cmds='$CC -r -o $output$reload_objs'
8005	  hardcode_direct=no
8006        ;;
8007	motorola)
8008	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8010	;;
8011      esac
8012      runpath_var='LD_RUN_PATH'
8013      hardcode_shlibpath_var=no
8014      ;;
8015
8016    sysv4.3*)
8017      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018      hardcode_shlibpath_var=no
8019      export_dynamic_flag_spec='-Bexport'
8020      ;;
8021
8022    sysv4*MP*)
8023      if test -d /usr/nec; then
8024	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025	hardcode_shlibpath_var=no
8026	runpath_var=LD_RUN_PATH
8027	hardcode_runpath_var=yes
8028	ld_shlibs=yes
8029      fi
8030      ;;
8031
8032    sysv4.2uw2*)
8033      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8034      hardcode_direct=yes
8035      hardcode_minus_L=no
8036      hardcode_shlibpath_var=no
8037      hardcode_runpath_var=yes
8038      runpath_var=LD_RUN_PATH
8039      ;;
8040
8041   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8042      no_undefined_flag='${wl}-z ${wl}text'
8043      if test "$GCC" = yes; then
8044	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045      else
8046	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8047      fi
8048      runpath_var='LD_RUN_PATH'
8049      hardcode_shlibpath_var=no
8050      ;;
8051
8052    sysv5*)
8053      no_undefined_flag=' -z text'
8054      # $CC -shared without GNU ld will not create a library from C++
8055      # object files and a static libstdc++, better avoid it by now
8056      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8057      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8058  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8059      hardcode_libdir_flag_spec=
8060      hardcode_shlibpath_var=no
8061      runpath_var='LD_RUN_PATH'
8062      ;;
8063
8064    uts4*)
8065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066      hardcode_libdir_flag_spec='-L$libdir'
8067      hardcode_shlibpath_var=no
8068      ;;
8069
8070    *)
8071      ld_shlibs=no
8072      ;;
8073    esac
8074  fi
8075
8076echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8077echo "${ECHO_T}$ld_shlibs" >&6
8078test "$ld_shlibs" = no && can_build_shared=no
8079
8080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8081if test "$GCC" = yes; then
8082  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8083fi
8084
8085#
8086# Do we need to explicitly link libc?
8087#
8088case "x$archive_cmds_need_lc" in
8089x|xyes)
8090  # Assume -lc should be added
8091  archive_cmds_need_lc=yes
8092
8093  if test "$enable_shared" = yes && test "$GCC" = yes; then
8094    case $archive_cmds in
8095    *'~'*)
8096      # FIXME: we may have to deal with multi-command sequences.
8097      ;;
8098    '$CC '*)
8099      # Test whether the compiler implicitly links with -lc since on some
8100      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8101      # to ld, don't add -lc before -lgcc.
8102      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8103echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8104      $rm conftest*
8105      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8106
8107      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108  (eval $ac_compile) 2>&5
8109  ac_status=$?
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); } 2>conftest.err; then
8112        soname=conftest
8113        lib=conftest
8114        libobjs=conftest.$ac_objext
8115        deplibs=
8116        wl=$lt_prog_compiler_wl
8117        compiler_flags=-v
8118        linker_flags=-v
8119        verstring=
8120        output_objdir=.
8121        libname=conftest
8122        lt_save_allow_undefined_flag=$allow_undefined_flag
8123        allow_undefined_flag=
8124        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8125  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8126  ac_status=$?
8127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128  (exit $ac_status); }
8129        then
8130	  archive_cmds_need_lc=no
8131        else
8132	  archive_cmds_need_lc=yes
8133        fi
8134        allow_undefined_flag=$lt_save_allow_undefined_flag
8135      else
8136        cat conftest.err 1>&5
8137      fi
8138      $rm conftest*
8139      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8140echo "${ECHO_T}$archive_cmds_need_lc" >&6
8141      ;;
8142    esac
8143  fi
8144  ;;
8145esac
8146
8147echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8148echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8149library_names_spec=
8150libname_spec='lib$name'
8151soname_spec=
8152shrext_cmds=".so"
8153postinstall_cmds=
8154postuninstall_cmds=
8155finish_cmds=
8156finish_eval=
8157shlibpath_var=
8158shlibpath_overrides_runpath=unknown
8159version_type=none
8160dynamic_linker="$host_os ld.so"
8161sys_lib_dlsearch_path_spec="/lib /usr/lib"
8162if test "$GCC" = yes; then
8163  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8164  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8165    # if the path contains ";" then we assume it to be the separator
8166    # otherwise default to the standard path separator (i.e. ":") - it is
8167    # assumed that no part of a normal pathname contains ";" but that should
8168    # okay in the real world where ";" in dirpaths is itself problematic.
8169    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8170  else
8171    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8172  fi
8173else
8174  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8175fi
8176need_lib_prefix=unknown
8177hardcode_into_libs=no
8178
8179# when you set need_version to no, make sure it does not cause -set_version
8180# flags to be left without arguments
8181need_version=unknown
8182
8183case $host_os in
8184aix3*)
8185  version_type=linux
8186  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8187  shlibpath_var=LIBPATH
8188
8189  # AIX 3 has no versioning support, so we append a major version to the name.
8190  soname_spec='${libname}${release}${shared_ext}$major'
8191  ;;
8192
8193aix4* | aix5*)
8194  version_type=linux
8195  need_lib_prefix=no
8196  need_version=no
8197  hardcode_into_libs=yes
8198  if test "$host_cpu" = ia64; then
8199    # AIX 5 supports IA64
8200    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8201    shlibpath_var=LD_LIBRARY_PATH
8202  else
8203    # With GCC up to 2.95.x, collect2 would create an import file
8204    # for dependence libraries.  The import file would start with
8205    # the line `#! .'.  This would cause the generated library to
8206    # depend on `.', always an invalid library.  This was fixed in
8207    # development snapshots of GCC prior to 3.0.
8208    case $host_os in
8209      aix4 | aix4.[01] | aix4.[01].*)
8210      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8211	   echo ' yes '
8212	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8213	:
8214      else
8215	can_build_shared=no
8216      fi
8217      ;;
8218    esac
8219    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8220    # soname into executable. Probably we can add versioning support to
8221    # collect2, so additional links can be useful in future.
8222    if test "$aix_use_runtimelinking" = yes; then
8223      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8224      # instead of lib<name>.a to let people know that these are not
8225      # typical AIX shared libraries.
8226      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8227    else
8228      # We preserve .a as extension for shared libraries through AIX4.2
8229      # and later when we are not doing run time linking.
8230      library_names_spec='${libname}${release}.a $libname.a'
8231      soname_spec='${libname}${release}${shared_ext}$major'
8232    fi
8233    shlibpath_var=LIBPATH
8234  fi
8235  ;;
8236
8237amigaos*)
8238  library_names_spec='$libname.ixlibrary $libname.a'
8239  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8240  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'
8241  ;;
8242
8243beos*)
8244  library_names_spec='${libname}${shared_ext}'
8245  dynamic_linker="$host_os ld.so"
8246  shlibpath_var=LIBRARY_PATH
8247  ;;
8248
8249bsdi[45]*)
8250  version_type=linux
8251  need_version=no
8252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8253  soname_spec='${libname}${release}${shared_ext}$major'
8254  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8255  shlibpath_var=LD_LIBRARY_PATH
8256  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8257  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8258  # the default ld.so.conf also contains /usr/contrib/lib and
8259  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8260  # libtool to hard-code these into programs
8261  ;;
8262
8263cygwin* | mingw* | pw32*)
8264  version_type=windows
8265  shrext_cmds=".dll"
8266  need_version=no
8267  need_lib_prefix=no
8268
8269  case $GCC,$host_os in
8270  yes,cygwin* | yes,mingw* | yes,pw32*)
8271    library_names_spec='$libname.dll.a'
8272    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8273    postinstall_cmds='base_file=`basename \${file}`~
8274      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8275      dldir=$destdir/`dirname \$dlpath`~
8276      test -d \$dldir || mkdir -p \$dldir~
8277      $install_prog $dir/$dlname \$dldir/$dlname~
8278      chmod a+x \$dldir/$dlname'
8279    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8280      dlpath=$dir/\$dldll~
8281       $rm \$dlpath'
8282    shlibpath_overrides_runpath=yes
8283
8284    case $host_os in
8285    cygwin*)
8286      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8287      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8288      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8289      ;;
8290    mingw*)
8291      # MinGW DLLs use traditional 'lib' prefix
8292      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8293      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8294      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8295        # It is most probably a Windows format PATH printed by
8296        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8297        # path with ; separators, and with drive letters. We can handle the
8298        # drive letters (cygwin fileutils understands them), so leave them,
8299        # especially as we might pass files found there to a mingw objdump,
8300        # which wouldn't understand a cygwinified path. Ahh.
8301        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8302      else
8303        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8304      fi
8305      ;;
8306    pw32*)
8307      # pw32 DLLs use 'pw' prefix rather than 'lib'
8308      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8309      ;;
8310    esac
8311    ;;
8312
8313  *)
8314    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8315    ;;
8316  esac
8317  dynamic_linker='Win32 ld.exe'
8318  # FIXME: first we should search . and the directory the executable is in
8319  shlibpath_var=PATH
8320  ;;
8321
8322darwin* | rhapsody*)
8323  dynamic_linker="$host_os dyld"
8324  version_type=darwin
8325  need_lib_prefix=no
8326  need_version=no
8327  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8328  soname_spec='${libname}${release}${major}$shared_ext'
8329  shlibpath_overrides_runpath=yes
8330  shlibpath_var=DYLD_LIBRARY_PATH
8331  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8332  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8333  if test "$GCC" = yes; then
8334    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"`
8335  else
8336    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8337  fi
8338  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8339  ;;
8340
8341dgux*)
8342  version_type=linux
8343  need_lib_prefix=no
8344  need_version=no
8345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8346  soname_spec='${libname}${release}${shared_ext}$major'
8347  shlibpath_var=LD_LIBRARY_PATH
8348  ;;
8349
8350freebsd1*)
8351  dynamic_linker=no
8352  ;;
8353
8354haiku*)
8355  library_names_spec='${libname}${shared_ext}'
8356  dynamic_linker="$host_os ld.so"
8357  shlibpath_var=LIBRARY_PATH
8358  ;;
8359
8360kfreebsd*-gnu)
8361  version_type=linux
8362  need_lib_prefix=no
8363  need_version=no
8364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8365  soname_spec='${libname}${release}${shared_ext}$major'
8366  shlibpath_var=LD_LIBRARY_PATH
8367  shlibpath_overrides_runpath=no
8368  hardcode_into_libs=yes
8369  dynamic_linker='GNU ld.so'
8370  ;;
8371
8372freebsd* | dragonfly*)
8373  # DragonFly does not have aout.  When/if they implement a new
8374  # versioning mechanism, adjust this.
8375  if test -x /usr/bin/objformat; then
8376    objformat=`/usr/bin/objformat`
8377  else
8378    case $host_os in
8379    freebsd[123]*) objformat=aout ;;
8380    *) objformat=elf ;;
8381    esac
8382  fi
8383  version_type=freebsd-$objformat
8384  case $version_type in
8385    freebsd-elf*)
8386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8387      need_version=no
8388      need_lib_prefix=no
8389      ;;
8390    freebsd-*)
8391      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8392      need_version=yes
8393      ;;
8394  esac
8395  shlibpath_var=LD_LIBRARY_PATH
8396  case $host_os in
8397  freebsd2*)
8398    shlibpath_overrides_runpath=yes
8399    ;;
8400  freebsd3.[01]* | freebsdelf3.[01]*)
8401    shlibpath_overrides_runpath=yes
8402    hardcode_into_libs=yes
8403    ;;
8404  *) # from 3.2 on
8405    shlibpath_overrides_runpath=no
8406    hardcode_into_libs=yes
8407    ;;
8408  esac
8409  ;;
8410
8411gnu*)
8412  version_type=linux
8413  need_lib_prefix=no
8414  need_version=no
8415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8416  soname_spec='${libname}${release}${shared_ext}$major'
8417  shlibpath_var=LD_LIBRARY_PATH
8418  hardcode_into_libs=yes
8419  ;;
8420
8421hpux9* | hpux10* | hpux11*)
8422  # Give a soname corresponding to the major version so that dld.sl refuses to
8423  # link against other versions.
8424  version_type=sunos
8425  need_lib_prefix=no
8426  need_version=no
8427  case $host_cpu in
8428  ia64*)
8429    shrext_cmds='.so'
8430    hardcode_into_libs=yes
8431    dynamic_linker="$host_os dld.so"
8432    shlibpath_var=LD_LIBRARY_PATH
8433    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435    soname_spec='${libname}${release}${shared_ext}$major'
8436    if test "X$HPUX_IA64_MODE" = X32; then
8437      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8438    else
8439      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8440    fi
8441    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8442    ;;
8443   hppa*64*)
8444     shrext_cmds='.sl'
8445     hardcode_into_libs=yes
8446     dynamic_linker="$host_os dld.sl"
8447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8450     soname_spec='${libname}${release}${shared_ext}$major'
8451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8453     ;;
8454   *)
8455    shrext_cmds='.sl'
8456    dynamic_linker="$host_os dld.sl"
8457    shlibpath_var=SHLIB_PATH
8458    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8460    soname_spec='${libname}${release}${shared_ext}$major'
8461    ;;
8462  esac
8463  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8464  postinstall_cmds='chmod 555 $lib'
8465  ;;
8466
8467irix5* | irix6* | nonstopux*)
8468  case $host_os in
8469    nonstopux*) version_type=nonstopux ;;
8470    *)
8471	if test "$lt_cv_prog_gnu_ld" = yes; then
8472		version_type=linux
8473	else
8474		version_type=irix
8475	fi ;;
8476  esac
8477  need_lib_prefix=no
8478  need_version=no
8479  soname_spec='${libname}${release}${shared_ext}$major'
8480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8481  case $host_os in
8482  irix5* | nonstopux*)
8483    libsuff= shlibsuff=
8484    ;;
8485  *)
8486    case $LD in # libtool.m4 will add one of these switches to LD
8487    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8488      libsuff= shlibsuff= libmagic=32-bit;;
8489    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8490      libsuff=32 shlibsuff=N32 libmagic=N32;;
8491    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8492      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8493    *) libsuff= shlibsuff= libmagic=never-match;;
8494    esac
8495    ;;
8496  esac
8497  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8498  shlibpath_overrides_runpath=no
8499  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8500  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8501  hardcode_into_libs=yes
8502  ;;
8503
8504# No shared lib support for Linux oldld, aout, or coff.
8505linux*oldld* | linux*aout* | linux*coff*)
8506  dynamic_linker=no
8507  ;;
8508
8509# This must be Linux ELF.
8510linux*)
8511  version_type=linux
8512  need_lib_prefix=no
8513  need_version=no
8514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8515  soname_spec='${libname}${release}${shared_ext}$major'
8516  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8517  shlibpath_var=LD_LIBRARY_PATH
8518  shlibpath_overrides_runpath=no
8519  # This implies no fast_install, which is unacceptable.
8520  # Some rework will be needed to allow for fast_install
8521  # before this can be enabled.
8522  hardcode_into_libs=yes
8523
8524  # Append ld.so.conf contents to the search path
8525  if test -f /etc/ld.so.conf; then
8526    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8527    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8528  fi
8529
8530  # We used to test for /lib/ld.so.1 and disable shared libraries on
8531  # powerpc, because MkLinux only supported shared libraries with the
8532  # GNU dynamic linker.  Since this was broken with cross compilers,
8533  # most powerpc-linux boxes support dynamic linking these days and
8534  # people can always --disable-shared, the test was removed, and we
8535  # assume the GNU/Linux dynamic linker is in use.
8536  dynamic_linker='GNU/Linux ld.so'
8537  ;;
8538
8539knetbsd*-gnu)
8540  version_type=linux
8541  need_lib_prefix=no
8542  need_version=no
8543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8544  soname_spec='${libname}${release}${shared_ext}$major'
8545  shlibpath_var=LD_LIBRARY_PATH
8546  shlibpath_overrides_runpath=no
8547  hardcode_into_libs=yes
8548  dynamic_linker='GNU ld.so'
8549  ;;
8550
8551netbsd*)
8552  version_type=sunos
8553  need_lib_prefix=no
8554  need_version=no
8555  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8557    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8558    dynamic_linker='NetBSD (a.out) ld.so'
8559  else
8560    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8561    soname_spec='${libname}${release}${shared_ext}$major'
8562    dynamic_linker='NetBSD ld.elf_so'
8563  fi
8564  shlibpath_var=LD_LIBRARY_PATH
8565  shlibpath_overrides_runpath=yes
8566  hardcode_into_libs=yes
8567  ;;
8568
8569newsos6)
8570  version_type=linux
8571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8572  shlibpath_var=LD_LIBRARY_PATH
8573  shlibpath_overrides_runpath=yes
8574  ;;
8575
8576nto-qnx*)
8577  version_type=linux
8578  need_lib_prefix=no
8579  need_version=no
8580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8581  soname_spec='${libname}${release}${shared_ext}$major'
8582  shlibpath_var=LD_LIBRARY_PATH
8583  shlibpath_overrides_runpath=yes
8584  ;;
8585
8586openbsd*)
8587  version_type=sunos
8588  need_lib_prefix=no
8589  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8590  case $host_os in
8591    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8592    *)                         need_version=no  ;;
8593  esac
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8595  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8596  shlibpath_var=LD_LIBRARY_PATH
8597  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8598    case $host_os in
8599      openbsd2.[89] | openbsd2.[89].*)
8600	shlibpath_overrides_runpath=no
8601	;;
8602      *)
8603	shlibpath_overrides_runpath=yes
8604	;;
8605      esac
8606  else
8607    shlibpath_overrides_runpath=yes
8608  fi
8609  ;;
8610
8611os2*)
8612  libname_spec='$name'
8613  shrext_cmds=".dll"
8614  need_lib_prefix=no
8615  library_names_spec='$libname${shared_ext} $libname.a'
8616  dynamic_linker='OS/2 ld.exe'
8617  shlibpath_var=LIBPATH
8618  ;;
8619
8620osf3* | osf4* | osf5*)
8621  version_type=osf
8622  need_lib_prefix=no
8623  need_version=no
8624  soname_spec='${libname}${release}${shared_ext}$major'
8625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626  shlibpath_var=LD_LIBRARY_PATH
8627  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8628  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8629  ;;
8630
8631sco3.2v5*)
8632  version_type=osf
8633  soname_spec='${libname}${release}${shared_ext}$major'
8634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635  shlibpath_var=LD_LIBRARY_PATH
8636  ;;
8637
8638solaris*)
8639  version_type=linux
8640  need_lib_prefix=no
8641  need_version=no
8642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643  soname_spec='${libname}${release}${shared_ext}$major'
8644  shlibpath_var=LD_LIBRARY_PATH
8645  shlibpath_overrides_runpath=yes
8646  hardcode_into_libs=yes
8647  # ldd complains unless libraries are executable
8648  postinstall_cmds='chmod +x $lib'
8649  ;;
8650
8651sunos4*)
8652  version_type=sunos
8653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8654  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8655  shlibpath_var=LD_LIBRARY_PATH
8656  shlibpath_overrides_runpath=yes
8657  if test "$with_gnu_ld" = yes; then
8658    need_lib_prefix=no
8659  fi
8660  need_version=yes
8661  ;;
8662
8663sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8664  version_type=linux
8665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666  soname_spec='${libname}${release}${shared_ext}$major'
8667  shlibpath_var=LD_LIBRARY_PATH
8668  case $host_vendor in
8669    sni)
8670      shlibpath_overrides_runpath=no
8671      need_lib_prefix=no
8672      export_dynamic_flag_spec='${wl}-Blargedynsym'
8673      runpath_var=LD_RUN_PATH
8674      ;;
8675    siemens)
8676      need_lib_prefix=no
8677      ;;
8678    motorola)
8679      need_lib_prefix=no
8680      need_version=no
8681      shlibpath_overrides_runpath=no
8682      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8683      ;;
8684  esac
8685  ;;
8686
8687sysv4*MP*)
8688  if test -d /usr/nec ;then
8689    version_type=linux
8690    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8691    soname_spec='$libname${shared_ext}.$major'
8692    shlibpath_var=LD_LIBRARY_PATH
8693  fi
8694  ;;
8695
8696uts4*)
8697  version_type=linux
8698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699  soname_spec='${libname}${release}${shared_ext}$major'
8700  shlibpath_var=LD_LIBRARY_PATH
8701  ;;
8702
8703*)
8704  dynamic_linker=no
8705  ;;
8706esac
8707echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8708echo "${ECHO_T}$dynamic_linker" >&6
8709test "$dynamic_linker" = no && can_build_shared=no
8710
8711echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8712echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8713hardcode_action=
8714if test -n "$hardcode_libdir_flag_spec" || \
8715   test -n "$runpath_var" || \
8716   test "X$hardcode_automatic" = "Xyes" ; then
8717
8718  # We can hardcode non-existant directories.
8719  if test "$hardcode_direct" != no &&
8720     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8721     # have to relink, otherwise we might link with an installed library
8722     # when we should be linking with a yet-to-be-installed one
8723     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8724     test "$hardcode_minus_L" != no; then
8725    # Linking always hardcodes the temporary library directory.
8726    hardcode_action=relink
8727  else
8728    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8729    hardcode_action=immediate
8730  fi
8731else
8732  # We cannot hardcode anything, or else we can only hardcode existing
8733  # directories.
8734  hardcode_action=unsupported
8735fi
8736echo "$as_me:$LINENO: result: $hardcode_action" >&5
8737echo "${ECHO_T}$hardcode_action" >&6
8738
8739if test "$hardcode_action" = relink; then
8740  # Fast installation is not supported
8741  enable_fast_install=no
8742elif test "$shlibpath_overrides_runpath" = yes ||
8743     test "$enable_shared" = no; then
8744  # Fast installation is not necessary
8745  enable_fast_install=needless
8746fi
8747
8748striplib=
8749old_striplib=
8750echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8751echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8752if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8753  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8754  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8755  echo "$as_me:$LINENO: result: yes" >&5
8756echo "${ECHO_T}yes" >&6
8757else
8758# FIXME - insert some real tests, host_os isn't really good enough
8759  case $host_os in
8760   darwin*)
8761       if test -n "$STRIP" ; then
8762         striplib="$STRIP -x"
8763         echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765       else
8766  echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769       ;;
8770   *)
8771  echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
8773    ;;
8774  esac
8775fi
8776
8777if test "x$enable_dlopen" != xyes; then
8778  enable_dlopen=unknown
8779  enable_dlopen_self=unknown
8780  enable_dlopen_self_static=unknown
8781else
8782  lt_cv_dlopen=no
8783  lt_cv_dlopen_libs=
8784
8785  case $host_os in
8786  beos*)
8787    lt_cv_dlopen="load_add_on"
8788    lt_cv_dlopen_libs=
8789    lt_cv_dlopen_self=yes
8790    ;;
8791
8792  mingw* | pw32*)
8793    lt_cv_dlopen="LoadLibrary"
8794    lt_cv_dlopen_libs=
8795   ;;
8796
8797  cygwin*)
8798    lt_cv_dlopen="dlopen"
8799    lt_cv_dlopen_libs=
8800   ;;
8801
8802  darwin*)
8803  # if libdl is installed we need to link against it
8804    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8805echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8806if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  ac_check_lib_save_LIBS=$LIBS
8810LIBS="-ldl  $LIBS"
8811cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h.  */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h.  */
8817
8818/* Override any gcc2 internal prototype to avoid an error.  */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822/* We use char because int might match the return type of a gcc2
8823   builtin and then its argument prototype would still apply.  */
8824char dlopen ();
8825int
8826main ()
8827{
8828dlopen ();
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835  (eval $ac_link) 2>conftest.er1
8836  ac_status=$?
8837  grep -v '^ *+' conftest.er1 >conftest.err
8838  rm -f conftest.er1
8839  cat conftest.err >&5
8840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841  (exit $ac_status); } &&
8842	 { ac_try='test -z "$ac_c_werror_flag"
8843			 || test ! -s conftest.err'
8844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845  (eval $ac_try) 2>&5
8846  ac_status=$?
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); }; } &&
8849	 { ac_try='test -s conftest$ac_exeext'
8850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851  (eval $ac_try) 2>&5
8852  ac_status=$?
8853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854  (exit $ac_status); }; }; then
8855  ac_cv_lib_dl_dlopen=yes
8856else
8857  echo "$as_me: failed program was:" >&5
8858sed 's/^/| /' conftest.$ac_ext >&5
8859
8860ac_cv_lib_dl_dlopen=no
8861fi
8862rm -f conftest.err conftest.$ac_objext \
8863      conftest$ac_exeext conftest.$ac_ext
8864LIBS=$ac_check_lib_save_LIBS
8865fi
8866echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8867echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8868if test $ac_cv_lib_dl_dlopen = yes; then
8869  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8870else
8871
8872    lt_cv_dlopen="dyld"
8873    lt_cv_dlopen_libs=
8874    lt_cv_dlopen_self=yes
8875
8876fi
8877
8878   ;;
8879
8880  haiku*)
8881    lt_cv_dlopen="load_add_on"
8882    lt_cv_dlopen_libs=
8883    lt_cv_dlopen_self=yes
8884    ;;
8885
8886  *)
8887    echo "$as_me:$LINENO: checking for shl_load" >&5
8888echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8889if test "${ac_cv_func_shl_load+set}" = set; then
8890  echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892  cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h.  */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h.  */
8898/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8900#define shl_load innocuous_shl_load
8901
8902/* System header to define __stub macros and hopefully few prototypes,
8903    which can conflict with char shl_load (); below.
8904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905    <limits.h> exists even on freestanding compilers.  */
8906
8907#ifdef __STDC__
8908# include <limits.h>
8909#else
8910# include <assert.h>
8911#endif
8912
8913#undef shl_load
8914
8915/* Override any gcc2 internal prototype to avoid an error.  */
8916#ifdef __cplusplus
8917extern "C"
8918{
8919#endif
8920/* We use char because int might match the return type of a gcc2
8921   builtin and then its argument prototype would still apply.  */
8922char shl_load ();
8923/* The GNU C library defines this for functions which it implements
8924    to always fail with ENOSYS.  Some functions are actually named
8925    something starting with __ and the normal name is an alias.  */
8926#if defined (__stub_shl_load) || defined (__stub___shl_load)
8927choke me
8928#else
8929char (*f) () = shl_load;
8930#endif
8931#ifdef __cplusplus
8932}
8933#endif
8934
8935int
8936main ()
8937{
8938return f != shl_load;
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945  (eval $ac_link) 2>conftest.er1
8946  ac_status=$?
8947  grep -v '^ *+' conftest.er1 >conftest.err
8948  rm -f conftest.er1
8949  cat conftest.err >&5
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); } &&
8952	 { ac_try='test -z "$ac_c_werror_flag"
8953			 || test ! -s conftest.err'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; } &&
8959	 { ac_try='test -s conftest$ac_exeext'
8960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961  (eval $ac_try) 2>&5
8962  ac_status=$?
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); }; }; then
8965  ac_cv_func_shl_load=yes
8966else
8967  echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
8969
8970ac_cv_func_shl_load=no
8971fi
8972rm -f conftest.err conftest.$ac_objext \
8973      conftest$ac_exeext conftest.$ac_ext
8974fi
8975echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8976echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8977if test $ac_cv_func_shl_load = yes; then
8978  lt_cv_dlopen="shl_load"
8979else
8980  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8981echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8982if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8983  echo $ECHO_N "(cached) $ECHO_C" >&6
8984else
8985  ac_check_lib_save_LIBS=$LIBS
8986LIBS="-ldld  $LIBS"
8987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h.  */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h.  */
8993
8994/* Override any gcc2 internal prototype to avoid an error.  */
8995#ifdef __cplusplus
8996extern "C"
8997#endif
8998/* We use char because int might match the return type of a gcc2
8999   builtin and then its argument prototype would still apply.  */
9000char shl_load ();
9001int
9002main ()
9003{
9004shl_load ();
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009rm -f conftest.$ac_objext conftest$ac_exeext
9010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011  (eval $ac_link) 2>conftest.er1
9012  ac_status=$?
9013  grep -v '^ *+' conftest.er1 >conftest.err
9014  rm -f conftest.er1
9015  cat conftest.err >&5
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); } &&
9018	 { ac_try='test -z "$ac_c_werror_flag"
9019			 || test ! -s conftest.err'
9020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021  (eval $ac_try) 2>&5
9022  ac_status=$?
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); }; } &&
9025	 { ac_try='test -s conftest$ac_exeext'
9026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027  (eval $ac_try) 2>&5
9028  ac_status=$?
9029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030  (exit $ac_status); }; }; then
9031  ac_cv_lib_dld_shl_load=yes
9032else
9033  echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036ac_cv_lib_dld_shl_load=no
9037fi
9038rm -f conftest.err conftest.$ac_objext \
9039      conftest$ac_exeext conftest.$ac_ext
9040LIBS=$ac_check_lib_save_LIBS
9041fi
9042echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9043echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9044if test $ac_cv_lib_dld_shl_load = yes; then
9045  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9046else
9047  echo "$as_me:$LINENO: checking for dlopen" >&5
9048echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9049if test "${ac_cv_func_dlopen+set}" = set; then
9050  echo $ECHO_N "(cached) $ECHO_C" >&6
9051else
9052  cat >conftest.$ac_ext <<_ACEOF
9053/* confdefs.h.  */
9054_ACEOF
9055cat confdefs.h >>conftest.$ac_ext
9056cat >>conftest.$ac_ext <<_ACEOF
9057/* end confdefs.h.  */
9058/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9060#define dlopen innocuous_dlopen
9061
9062/* System header to define __stub macros and hopefully few prototypes,
9063    which can conflict with char dlopen (); below.
9064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065    <limits.h> exists even on freestanding compilers.  */
9066
9067#ifdef __STDC__
9068# include <limits.h>
9069#else
9070# include <assert.h>
9071#endif
9072
9073#undef dlopen
9074
9075/* Override any gcc2 internal prototype to avoid an error.  */
9076#ifdef __cplusplus
9077extern "C"
9078{
9079#endif
9080/* We use char because int might match the return type of a gcc2
9081   builtin and then its argument prototype would still apply.  */
9082char dlopen ();
9083/* The GNU C library defines this for functions which it implements
9084    to always fail with ENOSYS.  Some functions are actually named
9085    something starting with __ and the normal name is an alias.  */
9086#if defined (__stub_dlopen) || defined (__stub___dlopen)
9087choke me
9088#else
9089char (*f) () = dlopen;
9090#endif
9091#ifdef __cplusplus
9092}
9093#endif
9094
9095int
9096main ()
9097{
9098return f != dlopen;
9099  ;
9100  return 0;
9101}
9102_ACEOF
9103rm -f conftest.$ac_objext conftest$ac_exeext
9104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105  (eval $ac_link) 2>conftest.er1
9106  ac_status=$?
9107  grep -v '^ *+' conftest.er1 >conftest.err
9108  rm -f conftest.er1
9109  cat conftest.err >&5
9110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111  (exit $ac_status); } &&
9112	 { ac_try='test -z "$ac_c_werror_flag"
9113			 || test ! -s conftest.err'
9114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115  (eval $ac_try) 2>&5
9116  ac_status=$?
9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118  (exit $ac_status); }; } &&
9119	 { ac_try='test -s conftest$ac_exeext'
9120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121  (eval $ac_try) 2>&5
9122  ac_status=$?
9123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); }; }; then
9125  ac_cv_func_dlopen=yes
9126else
9127  echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130ac_cv_func_dlopen=no
9131fi
9132rm -f conftest.err conftest.$ac_objext \
9133      conftest$ac_exeext conftest.$ac_ext
9134fi
9135echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9136echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9137if test $ac_cv_func_dlopen = yes; then
9138  lt_cv_dlopen="dlopen"
9139else
9140  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9141echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9142if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9143  echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145  ac_check_lib_save_LIBS=$LIBS
9146LIBS="-ldl  $LIBS"
9147cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h.  */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h.  */
9153
9154/* Override any gcc2 internal prototype to avoid an error.  */
9155#ifdef __cplusplus
9156extern "C"
9157#endif
9158/* We use char because int might match the return type of a gcc2
9159   builtin and then its argument prototype would still apply.  */
9160char dlopen ();
9161int
9162main ()
9163{
9164dlopen ();
9165  ;
9166  return 0;
9167}
9168_ACEOF
9169rm -f conftest.$ac_objext conftest$ac_exeext
9170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171  (eval $ac_link) 2>conftest.er1
9172  ac_status=$?
9173  grep -v '^ *+' conftest.er1 >conftest.err
9174  rm -f conftest.er1
9175  cat conftest.err >&5
9176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177  (exit $ac_status); } &&
9178	 { ac_try='test -z "$ac_c_werror_flag"
9179			 || test ! -s conftest.err'
9180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181  (eval $ac_try) 2>&5
9182  ac_status=$?
9183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184  (exit $ac_status); }; } &&
9185	 { ac_try='test -s conftest$ac_exeext'
9186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187  (eval $ac_try) 2>&5
9188  ac_status=$?
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); }; }; then
9191  ac_cv_lib_dl_dlopen=yes
9192else
9193  echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196ac_cv_lib_dl_dlopen=no
9197fi
9198rm -f conftest.err conftest.$ac_objext \
9199      conftest$ac_exeext conftest.$ac_ext
9200LIBS=$ac_check_lib_save_LIBS
9201fi
9202echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9203echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9204if test $ac_cv_lib_dl_dlopen = yes; then
9205  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9206else
9207  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9208echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9209if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9210  echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212  ac_check_lib_save_LIBS=$LIBS
9213LIBS="-lsvld  $LIBS"
9214cat >conftest.$ac_ext <<_ACEOF
9215/* confdefs.h.  */
9216_ACEOF
9217cat confdefs.h >>conftest.$ac_ext
9218cat >>conftest.$ac_ext <<_ACEOF
9219/* end confdefs.h.  */
9220
9221/* Override any gcc2 internal prototype to avoid an error.  */
9222#ifdef __cplusplus
9223extern "C"
9224#endif
9225/* We use char because int might match the return type of a gcc2
9226   builtin and then its argument prototype would still apply.  */
9227char dlopen ();
9228int
9229main ()
9230{
9231dlopen ();
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238  (eval $ac_link) 2>conftest.er1
9239  ac_status=$?
9240  grep -v '^ *+' conftest.er1 >conftest.err
9241  rm -f conftest.er1
9242  cat conftest.err >&5
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); } &&
9245	 { ac_try='test -z "$ac_c_werror_flag"
9246			 || test ! -s conftest.err'
9247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248  (eval $ac_try) 2>&5
9249  ac_status=$?
9250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251  (exit $ac_status); }; } &&
9252	 { ac_try='test -s conftest$ac_exeext'
9253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254  (eval $ac_try) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); }; }; then
9258  ac_cv_lib_svld_dlopen=yes
9259else
9260  echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263ac_cv_lib_svld_dlopen=no
9264fi
9265rm -f conftest.err conftest.$ac_objext \
9266      conftest$ac_exeext conftest.$ac_ext
9267LIBS=$ac_check_lib_save_LIBS
9268fi
9269echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9270echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9271if test $ac_cv_lib_svld_dlopen = yes; then
9272  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9273else
9274  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9275echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9276if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9277  echo $ECHO_N "(cached) $ECHO_C" >&6
9278else
9279  ac_check_lib_save_LIBS=$LIBS
9280LIBS="-ldld  $LIBS"
9281cat >conftest.$ac_ext <<_ACEOF
9282/* confdefs.h.  */
9283_ACEOF
9284cat confdefs.h >>conftest.$ac_ext
9285cat >>conftest.$ac_ext <<_ACEOF
9286/* end confdefs.h.  */
9287
9288/* Override any gcc2 internal prototype to avoid an error.  */
9289#ifdef __cplusplus
9290extern "C"
9291#endif
9292/* We use char because int might match the return type of a gcc2
9293   builtin and then its argument prototype would still apply.  */
9294char dld_link ();
9295int
9296main ()
9297{
9298dld_link ();
9299  ;
9300  return 0;
9301}
9302_ACEOF
9303rm -f conftest.$ac_objext conftest$ac_exeext
9304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305  (eval $ac_link) 2>conftest.er1
9306  ac_status=$?
9307  grep -v '^ *+' conftest.er1 >conftest.err
9308  rm -f conftest.er1
9309  cat conftest.err >&5
9310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311  (exit $ac_status); } &&
9312	 { ac_try='test -z "$ac_c_werror_flag"
9313			 || test ! -s conftest.err'
9314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315  (eval $ac_try) 2>&5
9316  ac_status=$?
9317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318  (exit $ac_status); }; } &&
9319	 { ac_try='test -s conftest$ac_exeext'
9320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321  (eval $ac_try) 2>&5
9322  ac_status=$?
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); }; }; then
9325  ac_cv_lib_dld_dld_link=yes
9326else
9327  echo "$as_me: failed program was:" >&5
9328sed 's/^/| /' conftest.$ac_ext >&5
9329
9330ac_cv_lib_dld_dld_link=no
9331fi
9332rm -f conftest.err conftest.$ac_objext \
9333      conftest$ac_exeext conftest.$ac_ext
9334LIBS=$ac_check_lib_save_LIBS
9335fi
9336echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9337echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9338if test $ac_cv_lib_dld_dld_link = yes; then
9339  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9340fi
9341
9342
9343fi
9344
9345
9346fi
9347
9348
9349fi
9350
9351
9352fi
9353
9354
9355fi
9356
9357    ;;
9358  esac
9359
9360  if test "x$lt_cv_dlopen" != xno; then
9361    enable_dlopen=yes
9362  else
9363    enable_dlopen=no
9364  fi
9365
9366  case $lt_cv_dlopen in
9367  dlopen)
9368    save_CPPFLAGS="$CPPFLAGS"
9369    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9370
9371    save_LDFLAGS="$LDFLAGS"
9372    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9373
9374    save_LIBS="$LIBS"
9375    LIBS="$lt_cv_dlopen_libs $LIBS"
9376
9377    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9378echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9379if test "${lt_cv_dlopen_self+set}" = set; then
9380  echo $ECHO_N "(cached) $ECHO_C" >&6
9381else
9382  	  if test "$cross_compiling" = yes; then :
9383  lt_cv_dlopen_self=cross
9384else
9385  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9386  lt_status=$lt_dlunknown
9387  cat > conftest.$ac_ext <<EOF
9388#line 9388 "configure"
9389#include "confdefs.h"
9390
9391#if HAVE_DLFCN_H
9392#include <dlfcn.h>
9393#endif
9394
9395#include <stdio.h>
9396
9397#ifdef RTLD_GLOBAL
9398#  define LT_DLGLOBAL		RTLD_GLOBAL
9399#else
9400#  ifdef DL_GLOBAL
9401#    define LT_DLGLOBAL		DL_GLOBAL
9402#  else
9403#    define LT_DLGLOBAL		0
9404#  endif
9405#endif
9406
9407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9408   find out it does not work in some platform. */
9409#ifndef LT_DLLAZY_OR_NOW
9410#  ifdef RTLD_LAZY
9411#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9412#  else
9413#    ifdef DL_LAZY
9414#      define LT_DLLAZY_OR_NOW		DL_LAZY
9415#    else
9416#      ifdef RTLD_NOW
9417#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9418#      else
9419#        ifdef DL_NOW
9420#          define LT_DLLAZY_OR_NOW	DL_NOW
9421#        else
9422#          define LT_DLLAZY_OR_NOW	0
9423#        endif
9424#      endif
9425#    endif
9426#  endif
9427#endif
9428
9429#ifdef __cplusplus
9430extern "C" void exit (int);
9431#endif
9432
9433void fnord() { int i=42;}
9434int main ()
9435{
9436  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9437  int status = $lt_dlunknown;
9438
9439  if (self)
9440    {
9441      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9442      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9443      /* dlclose (self); */
9444    }
9445
9446    exit (status);
9447}
9448EOF
9449  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9450  (eval $ac_link) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9454    (./conftest; exit; ) >&5 2>/dev/null
9455    lt_status=$?
9456    case x$lt_status in
9457      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9458      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9459      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9460    esac
9461  else :
9462    # compilation failed
9463    lt_cv_dlopen_self=no
9464  fi
9465fi
9466rm -fr conftest*
9467
9468
9469fi
9470echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9471echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9472
9473    if test "x$lt_cv_dlopen_self" = xyes; then
9474      LDFLAGS="$LDFLAGS $link_static_flag"
9475      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9476echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9477if test "${lt_cv_dlopen_self_static+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  	  if test "$cross_compiling" = yes; then :
9481  lt_cv_dlopen_self_static=cross
9482else
9483  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9484  lt_status=$lt_dlunknown
9485  cat > conftest.$ac_ext <<EOF
9486#line 9486 "configure"
9487#include "confdefs.h"
9488
9489#if HAVE_DLFCN_H
9490#include <dlfcn.h>
9491#endif
9492
9493#include <stdio.h>
9494
9495#ifdef RTLD_GLOBAL
9496#  define LT_DLGLOBAL		RTLD_GLOBAL
9497#else
9498#  ifdef DL_GLOBAL
9499#    define LT_DLGLOBAL		DL_GLOBAL
9500#  else
9501#    define LT_DLGLOBAL		0
9502#  endif
9503#endif
9504
9505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9506   find out it does not work in some platform. */
9507#ifndef LT_DLLAZY_OR_NOW
9508#  ifdef RTLD_LAZY
9509#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9510#  else
9511#    ifdef DL_LAZY
9512#      define LT_DLLAZY_OR_NOW		DL_LAZY
9513#    else
9514#      ifdef RTLD_NOW
9515#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9516#      else
9517#        ifdef DL_NOW
9518#          define LT_DLLAZY_OR_NOW	DL_NOW
9519#        else
9520#          define LT_DLLAZY_OR_NOW	0
9521#        endif
9522#      endif
9523#    endif
9524#  endif
9525#endif
9526
9527#ifdef __cplusplus
9528extern "C" void exit (int);
9529#endif
9530
9531void fnord() { int i=42;}
9532int main ()
9533{
9534  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9535  int status = $lt_dlunknown;
9536
9537  if (self)
9538    {
9539      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9540      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9541      /* dlclose (self); */
9542    }
9543
9544    exit (status);
9545}
9546EOF
9547  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548  (eval $ac_link) 2>&5
9549  ac_status=$?
9550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9552    (./conftest; exit; ) >&5 2>/dev/null
9553    lt_status=$?
9554    case x$lt_status in
9555      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9556      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9557      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9558    esac
9559  else :
9560    # compilation failed
9561    lt_cv_dlopen_self_static=no
9562  fi
9563fi
9564rm -fr conftest*
9565
9566
9567fi
9568echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9569echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9570    fi
9571
9572    CPPFLAGS="$save_CPPFLAGS"
9573    LDFLAGS="$save_LDFLAGS"
9574    LIBS="$save_LIBS"
9575    ;;
9576  esac
9577
9578  case $lt_cv_dlopen_self in
9579  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9580  *) enable_dlopen_self=unknown ;;
9581  esac
9582
9583  case $lt_cv_dlopen_self_static in
9584  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9585  *) enable_dlopen_self_static=unknown ;;
9586  esac
9587fi
9588
9589
9590# Report which librarie types wil actually be built
9591echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9592echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9593echo "$as_me:$LINENO: result: $can_build_shared" >&5
9594echo "${ECHO_T}$can_build_shared" >&6
9595
9596echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9597echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9598test "$can_build_shared" = "no" && enable_shared=no
9599
9600# On AIX, shared libraries and static libraries use the same namespace, and
9601# are all built from PIC.
9602case $host_os in
9603aix3*)
9604  test "$enable_shared" = yes && enable_static=no
9605  if test -n "$RANLIB"; then
9606    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9607    postinstall_cmds='$RANLIB $lib'
9608  fi
9609  ;;
9610
9611aix4* | aix5*)
9612  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9613    test "$enable_shared" = yes && enable_static=no
9614  fi
9615    ;;
9616esac
9617echo "$as_me:$LINENO: result: $enable_shared" >&5
9618echo "${ECHO_T}$enable_shared" >&6
9619
9620echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9621echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9622# Make sure either enable_shared or enable_static is yes.
9623test "$enable_shared" = yes || enable_static=yes
9624echo "$as_me:$LINENO: result: $enable_static" >&5
9625echo "${ECHO_T}$enable_static" >&6
9626
9627# The else clause should only fire when bootstrapping the
9628# libtool distribution, otherwise you forgot to ship ltmain.sh
9629# with your package, and you will get complaints that there are
9630# no rules to generate ltmain.sh.
9631if test -f "$ltmain"; then
9632  # See if we are running on zsh, and set the options which allow our commands through
9633  # without removal of \ escapes.
9634  if test -n "${ZSH_VERSION+set}" ; then
9635    setopt NO_GLOB_SUBST
9636  fi
9637  # Now quote all the things that may contain metacharacters while being
9638  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9639  # variables and quote the copies for generation of the libtool script.
9640  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9641    SED SHELL STRIP \
9642    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9643    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9644    deplibs_check_method reload_flag reload_cmds need_locks \
9645    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9646    lt_cv_sys_global_symbol_to_c_name_address \
9647    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9648    old_postinstall_cmds old_postuninstall_cmds \
9649    compiler \
9650    CC \
9651    LD \
9652    lt_prog_compiler_wl \
9653    lt_prog_compiler_pic \
9654    lt_prog_compiler_static \
9655    lt_prog_compiler_no_builtin_flag \
9656    export_dynamic_flag_spec \
9657    thread_safe_flag_spec \
9658    whole_archive_flag_spec \
9659    enable_shared_with_static_runtimes \
9660    old_archive_cmds \
9661    old_archive_from_new_cmds \
9662    predep_objects \
9663    postdep_objects \
9664    predeps \
9665    postdeps \
9666    compiler_lib_search_path \
9667    archive_cmds \
9668    archive_expsym_cmds \
9669    postinstall_cmds \
9670    postuninstall_cmds \
9671    old_archive_from_expsyms_cmds \
9672    allow_undefined_flag \
9673    no_undefined_flag \
9674    export_symbols_cmds \
9675    hardcode_libdir_flag_spec \
9676    hardcode_libdir_flag_spec_ld \
9677    hardcode_libdir_separator \
9678    hardcode_automatic \
9679    module_cmds \
9680    module_expsym_cmds \
9681    lt_cv_prog_compiler_c_o \
9682    exclude_expsyms \
9683    include_expsyms; do
9684
9685    case $var in
9686    old_archive_cmds | \
9687    old_archive_from_new_cmds | \
9688    archive_cmds | \
9689    archive_expsym_cmds | \
9690    module_cmds | \
9691    module_expsym_cmds | \
9692    old_archive_from_expsyms_cmds | \
9693    export_symbols_cmds | \
9694    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9695    postinstall_cmds | postuninstall_cmds | \
9696    old_postinstall_cmds | old_postuninstall_cmds | \
9697    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9698      # Double-quote double-evaled strings.
9699      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9700      ;;
9701    *)
9702      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9703      ;;
9704    esac
9705  done
9706
9707  case $lt_echo in
9708  *'\$0 --fallback-echo"')
9709    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9710    ;;
9711  esac
9712
9713cfgfile="${ofile}T"
9714  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9715  $rm -f "$cfgfile"
9716  { echo "$as_me:$LINENO: creating $ofile" >&5
9717echo "$as_me: creating $ofile" >&6;}
9718
9719  cat <<__EOF__ >> "$cfgfile"
9720#! $SHELL
9721
9722# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9723# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9724# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9725#
9726# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9727# Free Software Foundation, Inc.
9728#
9729# This file is part of GNU Libtool:
9730# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9731#
9732# This program is free software; you can redistribute it and/or modify
9733# it under the terms of the GNU General Public License as published by
9734# the Free Software Foundation; either version 2 of the License, or
9735# (at your option) any later version.
9736#
9737# This program is distributed in the hope that it will be useful, but
9738# WITHOUT ANY WARRANTY; without even the implied warranty of
9739# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9740# General Public License for more details.
9741#
9742# You should have received a copy of the GNU General Public License
9743# along with this program; if not, write to the Free Software
9744# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9745#
9746# As a special exception to the GNU General Public License, if you
9747# distribute this file as part of a program that contains a
9748# configuration script generated by Autoconf, you may include it under
9749# the same distribution terms that you use for the rest of that program.
9750
9751# A sed program that does not truncate output.
9752SED=$lt_SED
9753
9754# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9755Xsed="$SED -e 1s/^X//"
9756
9757# The HP-UX ksh and POSIX shell print the target directory to stdout
9758# if CDPATH is set.
9759(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9760
9761# The names of the tagged configurations supported by this script.
9762available_tags=
9763
9764# ### BEGIN LIBTOOL CONFIG
9765
9766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9767
9768# Shell to use when invoking shell scripts.
9769SHELL=$lt_SHELL
9770
9771# Whether or not to build shared libraries.
9772build_libtool_libs=$enable_shared
9773
9774# Whether or not to build static libraries.
9775build_old_libs=$enable_static
9776
9777# Whether or not to add -lc for building shared libraries.
9778build_libtool_need_lc=$archive_cmds_need_lc
9779
9780# Whether or not to disallow shared libs when runtime libs are static
9781allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9782
9783# Whether or not to optimize for fast installation.
9784fast_install=$enable_fast_install
9785
9786# The host system.
9787host_alias=$host_alias
9788host=$host
9789host_os=$host_os
9790
9791# The build system.
9792build_alias=$build_alias
9793build=$build
9794build_os=$build_os
9795
9796# An echo program that does not interpret backslashes.
9797echo=$lt_echo
9798
9799# The archiver.
9800AR=$lt_AR
9801AR_FLAGS=$lt_AR_FLAGS
9802
9803# A C compiler.
9804LTCC=$lt_LTCC
9805
9806# A language-specific compiler.
9807CC=$lt_compiler
9808
9809# Is the compiler the GNU C compiler?
9810with_gcc=$GCC
9811
9812# An ERE matcher.
9813EGREP=$lt_EGREP
9814
9815# The linker used to build libraries.
9816LD=$lt_LD
9817
9818# Whether we need hard or soft links.
9819LN_S=$lt_LN_S
9820
9821# A BSD-compatible nm program.
9822NM=$lt_NM
9823
9824# A symbol stripping program
9825STRIP=$lt_STRIP
9826
9827# Used to examine libraries when file_magic_cmd begins "file"
9828MAGIC_CMD=$MAGIC_CMD
9829
9830# Used on cygwin: DLL creation program.
9831DLLTOOL="$DLLTOOL"
9832
9833# Used on cygwin: object dumper.
9834OBJDUMP="$OBJDUMP"
9835
9836# Used on cygwin: assembler.
9837AS="$AS"
9838
9839# The name of the directory that contains temporary libtool files.
9840objdir=$objdir
9841
9842# How to create reloadable object files.
9843reload_flag=$lt_reload_flag
9844reload_cmds=$lt_reload_cmds
9845
9846# How to pass a linker flag through the compiler.
9847wl=$lt_lt_prog_compiler_wl
9848
9849# Object file suffix (normally "o").
9850objext="$ac_objext"
9851
9852# Old archive suffix (normally "a").
9853libext="$libext"
9854
9855# Shared library suffix (normally ".so").
9856shrext_cmds='$shrext_cmds'
9857
9858# Executable file suffix (normally "").
9859exeext="$exeext"
9860
9861# Additional compiler flags for building library objects.
9862pic_flag=$lt_lt_prog_compiler_pic
9863pic_mode=$pic_mode
9864
9865# What is the maximum length of a command?
9866max_cmd_len=$lt_cv_sys_max_cmd_len
9867
9868# Does compiler simultaneously support -c and -o options?
9869compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9870
9871# Must we lock files when doing compilation?
9872need_locks=$lt_need_locks
9873
9874# Do we need the lib prefix for modules?
9875need_lib_prefix=$need_lib_prefix
9876
9877# Do we need a version for libraries?
9878need_version=$need_version
9879
9880# Whether dlopen is supported.
9881dlopen_support=$enable_dlopen
9882
9883# Whether dlopen of programs is supported.
9884dlopen_self=$enable_dlopen_self
9885
9886# Whether dlopen of statically linked programs is supported.
9887dlopen_self_static=$enable_dlopen_self_static
9888
9889# Compiler flag to prevent dynamic linking.
9890link_static_flag=$lt_lt_prog_compiler_static
9891
9892# Compiler flag to turn off builtin functions.
9893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9894
9895# Compiler flag to allow reflexive dlopens.
9896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9897
9898# Compiler flag to generate shared objects directly from archives.
9899whole_archive_flag_spec=$lt_whole_archive_flag_spec
9900
9901# Compiler flag to generate thread-safe objects.
9902thread_safe_flag_spec=$lt_thread_safe_flag_spec
9903
9904# Library versioning type.
9905version_type=$version_type
9906
9907# Format of library name prefix.
9908libname_spec=$lt_libname_spec
9909
9910# List of archive names.  First name is the real one, the rest are links.
9911# The last name is the one that the linker finds with -lNAME.
9912library_names_spec=$lt_library_names_spec
9913
9914# The coded name of the library, if different from the real name.
9915soname_spec=$lt_soname_spec
9916
9917# Commands used to build and install an old-style archive.
9918RANLIB=$lt_RANLIB
9919old_archive_cmds=$lt_old_archive_cmds
9920old_postinstall_cmds=$lt_old_postinstall_cmds
9921old_postuninstall_cmds=$lt_old_postuninstall_cmds
9922
9923# Create an old-style archive from a shared archive.
9924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9925
9926# Create a temporary old-style archive to link instead of a shared archive.
9927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9928
9929# Commands used to build and install a shared archive.
9930archive_cmds=$lt_archive_cmds
9931archive_expsym_cmds=$lt_archive_expsym_cmds
9932postinstall_cmds=$lt_postinstall_cmds
9933postuninstall_cmds=$lt_postuninstall_cmds
9934
9935# Commands used to build a loadable module (assumed same as above if empty)
9936module_cmds=$lt_module_cmds
9937module_expsym_cmds=$lt_module_expsym_cmds
9938
9939# Commands to strip libraries.
9940old_striplib=$lt_old_striplib
9941striplib=$lt_striplib
9942
9943# Dependencies to place before the objects being linked to create a
9944# shared library.
9945predep_objects=$lt_predep_objects
9946
9947# Dependencies to place after the objects being linked to create a
9948# shared library.
9949postdep_objects=$lt_postdep_objects
9950
9951# Dependencies to place before the objects being linked to create a
9952# shared library.
9953predeps=$lt_predeps
9954
9955# Dependencies to place after the objects being linked to create a
9956# shared library.
9957postdeps=$lt_postdeps
9958
9959# The library search path used internally by the compiler when linking
9960# a shared library.
9961compiler_lib_search_path=$lt_compiler_lib_search_path
9962
9963# Method to check whether dependent libraries are shared objects.
9964deplibs_check_method=$lt_deplibs_check_method
9965
9966# Command to use when deplibs_check_method == file_magic.
9967file_magic_cmd=$lt_file_magic_cmd
9968
9969# Flag that allows shared libraries with undefined symbols to be built.
9970allow_undefined_flag=$lt_allow_undefined_flag
9971
9972# Flag that forces no undefined symbols.
9973no_undefined_flag=$lt_no_undefined_flag
9974
9975# Commands used to finish a libtool library installation in a directory.
9976finish_cmds=$lt_finish_cmds
9977
9978# Same as above, but a single script fragment to be evaled but not shown.
9979finish_eval=$lt_finish_eval
9980
9981# Take the output of nm and produce a listing of raw symbols and C names.
9982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9983
9984# Transform the output of nm in a proper C declaration
9985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9986
9987# Transform the output of nm in a C name address pair
9988global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9989
9990# This is the shared library runtime path variable.
9991runpath_var=$runpath_var
9992
9993# This is the shared library path variable.
9994shlibpath_var=$shlibpath_var
9995
9996# Is shlibpath searched before the hard-coded library search path?
9997shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9998
9999# How to hardcode a shared library path into an executable.
10000hardcode_action=$hardcode_action
10001
10002# Whether we should hardcode library paths into libraries.
10003hardcode_into_libs=$hardcode_into_libs
10004
10005# Flag to hardcode \$libdir into a binary during linking.
10006# This must work even if \$libdir does not exist.
10007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10008
10009# If ld is used when linking, flag to hardcode \$libdir into
10010# a binary during linking. This must work even if \$libdir does
10011# not exist.
10012hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10013
10014# Whether we need a single -rpath flag with a separated argument.
10015hardcode_libdir_separator=$lt_hardcode_libdir_separator
10016
10017# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10018# resulting binary.
10019hardcode_direct=$hardcode_direct
10020
10021# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10022# resulting binary.
10023hardcode_minus_L=$hardcode_minus_L
10024
10025# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10026# the resulting binary.
10027hardcode_shlibpath_var=$hardcode_shlibpath_var
10028
10029# Set to yes if building a shared library automatically hardcodes DIR into the library
10030# and all subsequent libraries and executables linked against it.
10031hardcode_automatic=$hardcode_automatic
10032
10033# Variables whose values should be saved in libtool wrapper scripts and
10034# restored at relink time.
10035variables_saved_for_relink="$variables_saved_for_relink"
10036
10037# Whether libtool must link a program against all its dependency libraries.
10038link_all_deplibs=$link_all_deplibs
10039
10040# Compile-time system search path for libraries
10041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10042
10043# Run-time system search path for libraries
10044sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10045
10046# Fix the shell variable \$srcfile for the compiler.
10047fix_srcfile_path="$fix_srcfile_path"
10048
10049# Set to yes if exported symbols are required.
10050always_export_symbols=$always_export_symbols
10051
10052# The commands to list exported symbols.
10053export_symbols_cmds=$lt_export_symbols_cmds
10054
10055# The commands to extract the exported symbol list from a shared archive.
10056extract_expsyms_cmds=$lt_extract_expsyms_cmds
10057
10058# Symbols that should not be listed in the preloaded symbols.
10059exclude_expsyms=$lt_exclude_expsyms
10060
10061# Symbols that must always be exported.
10062include_expsyms=$lt_include_expsyms
10063
10064# ### END LIBTOOL CONFIG
10065
10066__EOF__
10067
10068
10069  case $host_os in
10070  aix3*)
10071    cat <<\EOF >> "$cfgfile"
10072
10073# AIX sometimes has problems with the GCC collect2 program.  For some
10074# reason, if we set the COLLECT_NAMES environment variable, the problems
10075# vanish in a puff of smoke.
10076if test "X${COLLECT_NAMES+set}" != Xset; then
10077  COLLECT_NAMES=
10078  export COLLECT_NAMES
10079fi
10080EOF
10081    ;;
10082  esac
10083
10084  # We use sed instead of cat because bash on DJGPP gets confused if
10085  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10086  # text mode, it properly converts lines to CR/LF.  This bash problem
10087  # is reportedly fixed, but why not run on old versions too?
10088  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10089
10090  mv -f "$cfgfile" "$ofile" || \
10091    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10092  chmod +x "$ofile"
10093
10094else
10095  # If there is no Makefile yet, we rely on a make rule to execute
10096  # `config.status --recheck' to rerun these tests and create the
10097  # libtool script then.
10098  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10099  if test -f "$ltmain_in"; then
10100    test -f Makefile && make "$ltmain"
10101  fi
10102fi
10103
10104
10105ac_ext=c
10106ac_cpp='$CPP $CPPFLAGS'
10107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10109ac_compiler_gnu=$ac_cv_c_compiler_gnu
10110
10111CC="$lt_save_CC"
10112
10113
10114# Check whether --with-tags or --without-tags was given.
10115if test "${with_tags+set}" = set; then
10116  withval="$with_tags"
10117  tagnames="$withval"
10118fi;
10119
10120if test -f "$ltmain" && test -n "$tagnames"; then
10121  if test ! -f "${ofile}"; then
10122    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10123echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10124  fi
10125
10126  if test -z "$LTCC"; then
10127    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10128    if test -z "$LTCC"; then
10129      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10130echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10131    else
10132      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10133echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10134    fi
10135  fi
10136
10137  # Extract list of available tagged configurations in $ofile.
10138  # Note that this assumes the entire list is on one line.
10139  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10140
10141  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10142  for tagname in $tagnames; do
10143    IFS="$lt_save_ifs"
10144    # Check whether tagname contains only valid characters
10145    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10146    "") ;;
10147    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10148echo "$as_me: error: invalid tag name: $tagname" >&2;}
10149   { (exit 1); exit 1; }; }
10150	;;
10151    esac
10152
10153    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10154    then
10155      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10156echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10157   { (exit 1); exit 1; }; }
10158    fi
10159
10160    # Update the list of available tags.
10161    if test -n "$tagname"; then
10162      echo appending configuration tag \"$tagname\" to $ofile
10163
10164      case $tagname in
10165      CXX)
10166	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10167	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10168	    (test "X$CXX" != "Xg++"))) ; then
10169	  ac_ext=cc
10170ac_cpp='$CXXCPP $CPPFLAGS'
10171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10174
10175
10176
10177
10178archive_cmds_need_lc_CXX=no
10179allow_undefined_flag_CXX=
10180always_export_symbols_CXX=no
10181archive_expsym_cmds_CXX=
10182export_dynamic_flag_spec_CXX=
10183hardcode_direct_CXX=no
10184hardcode_libdir_flag_spec_CXX=
10185hardcode_libdir_flag_spec_ld_CXX=
10186hardcode_libdir_separator_CXX=
10187hardcode_minus_L_CXX=no
10188hardcode_automatic_CXX=no
10189module_cmds_CXX=
10190module_expsym_cmds_CXX=
10191link_all_deplibs_CXX=unknown
10192old_archive_cmds_CXX=$old_archive_cmds
10193no_undefined_flag_CXX=
10194whole_archive_flag_spec_CXX=
10195enable_shared_with_static_runtimes_CXX=no
10196
10197# Dependencies to place before and after the object being linked:
10198predep_objects_CXX=
10199postdep_objects_CXX=
10200predeps_CXX=
10201postdeps_CXX=
10202compiler_lib_search_path_CXX=
10203
10204# Source file extension for C++ test sources.
10205ac_ext=cpp
10206
10207# Object file extension for compiled C++ test sources.
10208objext=o
10209objext_CXX=$objext
10210
10211# Code to be used in simple compile tests
10212lt_simple_compile_test_code="int some_variable = 0;\n"
10213
10214# Code to be used in simple link tests
10215lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10216
10217# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10218
10219# If no C compiler was specified, use CC.
10220LTCC=${LTCC-"$CC"}
10221
10222# Allow CC to be a program name with arguments.
10223compiler=$CC
10224
10225
10226# save warnings/boilerplate of simple test code
10227ac_outfile=conftest.$ac_objext
10228printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10230_lt_compiler_boilerplate=`cat conftest.err`
10231$rm conftest*
10232
10233ac_outfile=conftest.$ac_objext
10234printf "$lt_simple_link_test_code" >conftest.$ac_ext
10235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10236_lt_linker_boilerplate=`cat conftest.err`
10237$rm conftest*
10238
10239
10240# Allow CC to be a program name with arguments.
10241lt_save_CC=$CC
10242lt_save_LD=$LD
10243lt_save_GCC=$GCC
10244GCC=$GXX
10245lt_save_with_gnu_ld=$with_gnu_ld
10246lt_save_path_LD=$lt_cv_path_LD
10247if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10248  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10249else
10250  unset lt_cv_prog_gnu_ld
10251fi
10252if test -n "${lt_cv_path_LDCXX+set}"; then
10253  lt_cv_path_LD=$lt_cv_path_LDCXX
10254else
10255  unset lt_cv_path_LD
10256fi
10257test -z "${LDCXX+set}" || LD=$LDCXX
10258CC=${CXX-"c++"}
10259compiler=$CC
10260compiler_CXX=$CC
10261for cc_temp in $compiler""; do
10262  case $cc_temp in
10263    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10264    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10265    \-*) ;;
10266    *) break;;
10267  esac
10268done
10269cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10270
10271
10272# We don't want -fno-exception wen compiling C++ code, so set the
10273# no_builtin_flag separately
10274if test "$GXX" = yes; then
10275  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10276else
10277  lt_prog_compiler_no_builtin_flag_CXX=
10278fi
10279
10280if test "$GXX" = yes; then
10281  # Set up default GNU C++ configuration
10282
10283
10284# Check whether --with-gnu-ld or --without-gnu-ld was given.
10285if test "${with_gnu_ld+set}" = set; then
10286  withval="$with_gnu_ld"
10287  test "$withval" = no || with_gnu_ld=yes
10288else
10289  with_gnu_ld=no
10290fi;
10291ac_prog=ld
10292if test "$GCC" = yes; then
10293  # Check if gcc -print-prog-name=ld gives a path.
10294  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10295echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10296  case $host in
10297  *-*-mingw*)
10298    # gcc leaves a trailing carriage return which upsets mingw
10299    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10300  *)
10301    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10302  esac
10303  case $ac_prog in
10304    # Accept absolute paths.
10305    [\\/]* | ?:[\\/]*)
10306      re_direlt='/[^/][^/]*/\.\./'
10307      # Canonicalize the pathname of ld
10308      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10309      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10310	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10311      done
10312      test -z "$LD" && LD="$ac_prog"
10313      ;;
10314  "")
10315    # If it fails, then pretend we aren't using GCC.
10316    ac_prog=ld
10317    ;;
10318  *)
10319    # If it is relative, then search for the first ld in PATH.
10320    with_gnu_ld=unknown
10321    ;;
10322  esac
10323elif test "$with_gnu_ld" = yes; then
10324  echo "$as_me:$LINENO: checking for GNU ld" >&5
10325echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10326else
10327  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10328echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10329fi
10330if test "${lt_cv_path_LD+set}" = set; then
10331  echo $ECHO_N "(cached) $ECHO_C" >&6
10332else
10333  if test -z "$LD"; then
10334  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10335  for ac_dir in $PATH; do
10336    IFS="$lt_save_ifs"
10337    test -z "$ac_dir" && ac_dir=.
10338    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10339      lt_cv_path_LD="$ac_dir/$ac_prog"
10340      # Check to see if the program is GNU ld.  I'd rather use --version,
10341      # but apparently some variants of GNU ld only accept -v.
10342      # Break only if it was the GNU/non-GNU ld that we prefer.
10343      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10344      *GNU* | *'with BFD'*)
10345	test "$with_gnu_ld" != no && break
10346	;;
10347      *)
10348	test "$with_gnu_ld" != yes && break
10349	;;
10350      esac
10351    fi
10352  done
10353  IFS="$lt_save_ifs"
10354else
10355  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10356fi
10357fi
10358
10359LD="$lt_cv_path_LD"
10360if test -n "$LD"; then
10361  echo "$as_me:$LINENO: result: $LD" >&5
10362echo "${ECHO_T}$LD" >&6
10363else
10364  echo "$as_me:$LINENO: result: no" >&5
10365echo "${ECHO_T}no" >&6
10366fi
10367test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10368echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10369   { (exit 1); exit 1; }; }
10370echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10371echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10372if test "${lt_cv_prog_gnu_ld+set}" = set; then
10373  echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10376case `$LD -v 2>&1 </dev/null` in
10377*GNU* | *'with BFD'*)
10378  lt_cv_prog_gnu_ld=yes
10379  ;;
10380*)
10381  lt_cv_prog_gnu_ld=no
10382  ;;
10383esac
10384fi
10385echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10386echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10387with_gnu_ld=$lt_cv_prog_gnu_ld
10388
10389
10390
10391  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10392  # archiving commands below assume that GNU ld is being used.
10393  if test "$with_gnu_ld" = yes; then
10394    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395    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'
10396
10397    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10398    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10399
10400    # If archive_cmds runs LD, not CC, wlarc should be empty
10401    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10402    #     investigate it a little bit more. (MM)
10403    wlarc='${wl}'
10404
10405    # ancient GNU ld didn't support --whole-archive et. al.
10406    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10407	grep 'no-whole-archive' > /dev/null; then
10408      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10409    else
10410      whole_archive_flag_spec_CXX=
10411    fi
10412  else
10413    with_gnu_ld=no
10414    wlarc=
10415
10416    # A generic and very simple default shared library creation
10417    # command for GNU C++ for the case where it uses the native
10418    # linker, instead of GNU ld.  If possible, this setting should
10419    # overridden to take advantage of the native linker features on
10420    # the platform it is being used on.
10421    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10422  fi
10423
10424  # Commands to make compiler produce verbose output that lists
10425  # what "hidden" libraries, object files and flags are used when
10426  # linking a shared library.
10427  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10428
10429else
10430  GXX=no
10431  with_gnu_ld=no
10432  wlarc=
10433fi
10434
10435# PORTME: fill in a description of your system's C++ link characteristics
10436echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10437echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10438ld_shlibs_CXX=yes
10439case $host_os in
10440  aix3*)
10441    # FIXME: insert proper C++ library support
10442    ld_shlibs_CXX=no
10443    ;;
10444  aix4* | aix5*)
10445    if test "$host_cpu" = ia64; then
10446      # On IA64, the linker does run time linking by default, so we don't
10447      # have to do anything special.
10448      aix_use_runtimelinking=no
10449      exp_sym_flag='-Bexport'
10450      no_entry_flag=""
10451    else
10452      aix_use_runtimelinking=no
10453
10454      # Test if we are trying to use run time linking or normal
10455      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10456      # need to do runtime linking.
10457      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10458	for ld_flag in $LDFLAGS; do
10459	  case $ld_flag in
10460	  *-brtl*)
10461	    aix_use_runtimelinking=yes
10462	    break
10463	    ;;
10464	  esac
10465	done
10466      esac
10467
10468      exp_sym_flag='-bexport'
10469      no_entry_flag='-bnoentry'
10470    fi
10471
10472    # When large executables or shared objects are built, AIX ld can
10473    # have problems creating the table of contents.  If linking a library
10474    # or program results in "error TOC overflow" add -mminimal-toc to
10475    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10476    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10477
10478    archive_cmds_CXX=''
10479    hardcode_direct_CXX=yes
10480    hardcode_libdir_separator_CXX=':'
10481    link_all_deplibs_CXX=yes
10482
10483    if test "$GXX" = yes; then
10484      case $host_os in aix4.[012]|aix4.[012].*)
10485      # We only want to do this on AIX 4.2 and lower, the check
10486      # below for broken collect2 doesn't work under 4.3+
10487	collect2name=`${CC} -print-prog-name=collect2`
10488	if test -f "$collect2name" && \
10489	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10490	then
10491	  # We have reworked collect2
10492	  hardcode_direct_CXX=yes
10493	else
10494	  # We have old collect2
10495	  hardcode_direct_CXX=unsupported
10496	  # It fails to find uninstalled libraries when the uninstalled
10497	  # path is not listed in the libpath.  Setting hardcode_minus_L
10498	  # to unsupported forces relinking
10499	  hardcode_minus_L_CXX=yes
10500	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10501	  hardcode_libdir_separator_CXX=
10502	fi
10503      esac
10504      shared_flag='-shared'
10505      if test "$aix_use_runtimelinking" = yes; then
10506	shared_flag="$shared_flag "'${wl}-G'
10507      fi
10508    else
10509      # not using gcc
10510      if test "$host_cpu" = ia64; then
10511	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10512	# chokes on -Wl,-G. The following line is correct:
10513	shared_flag='-G'
10514      else
10515	if test "$aix_use_runtimelinking" = yes; then
10516	  shared_flag='${wl}-G'
10517	else
10518	  shared_flag='${wl}-bM:SRE'
10519	fi
10520      fi
10521    fi
10522
10523    # It seems that -bexpall does not export symbols beginning with
10524    # underscore (_), so it is better to generate a list of symbols to export.
10525    always_export_symbols_CXX=yes
10526    if test "$aix_use_runtimelinking" = yes; then
10527      # Warning - without using the other runtime loading flags (-brtl),
10528      # -berok will link without error, but may produce a broken library.
10529      allow_undefined_flag_CXX='-berok'
10530      # Determine the default libpath from the value encoded in an empty executable.
10531      cat >conftest.$ac_ext <<_ACEOF
10532/* confdefs.h.  */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h.  */
10537
10538int
10539main ()
10540{
10541
10542  ;
10543  return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext conftest$ac_exeext
10547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548  (eval $ac_link) 2>conftest.er1
10549  ac_status=$?
10550  grep -v '^ *+' conftest.er1 >conftest.err
10551  rm -f conftest.er1
10552  cat conftest.err >&5
10553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } &&
10555	 { ac_try='test -z "$ac_cxx_werror_flag"
10556			 || test ! -s conftest.err'
10557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558  (eval $ac_try) 2>&5
10559  ac_status=$?
10560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561  (exit $ac_status); }; } &&
10562	 { ac_try='test -s conftest$ac_exeext'
10563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564  (eval $ac_try) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); }; }; then
10568
10569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10570}'`
10571# Check for a 64-bit object if we didn't find anything.
10572if 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; }
10573}'`; fi
10574else
10575  echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578fi
10579rm -f conftest.err conftest.$ac_objext \
10580      conftest$ac_exeext conftest.$ac_ext
10581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10582
10583      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10584
10585      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"
10586     else
10587      if test "$host_cpu" = ia64; then
10588	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10589	allow_undefined_flag_CXX="-z nodefs"
10590	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"
10591      else
10592	# Determine the default libpath from the value encoded in an empty executable.
10593	cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h.  */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h.  */
10599
10600int
10601main ()
10602{
10603
10604  ;
10605  return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>conftest.er1
10611  ac_status=$?
10612  grep -v '^ *+' conftest.er1 >conftest.err
10613  rm -f conftest.er1
10614  cat conftest.err >&5
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } &&
10617	 { ac_try='test -z "$ac_cxx_werror_flag"
10618			 || test ! -s conftest.err'
10619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620  (eval $ac_try) 2>&5
10621  ac_status=$?
10622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623  (exit $ac_status); }; } &&
10624	 { ac_try='test -s conftest$ac_exeext'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; }; then
10630
10631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10632}'`
10633# Check for a 64-bit object if we didn't find anything.
10634if 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; }
10635}'`; fi
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640fi
10641rm -f conftest.err conftest.$ac_objext \
10642      conftest$ac_exeext conftest.$ac_ext
10643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10644
10645	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10646	# Warning - without using the other run time loading flags,
10647	# -berok will link without error, but may produce a broken library.
10648	no_undefined_flag_CXX=' ${wl}-bernotok'
10649	allow_undefined_flag_CXX=' ${wl}-berok'
10650	# -bexpall does not export symbols beginning with underscore (_)
10651	always_export_symbols_CXX=yes
10652	# Exported symbols can be pulled into shared objects from archives
10653	whole_archive_flag_spec_CXX=' '
10654	archive_cmds_need_lc_CXX=yes
10655	# This is similar to how AIX traditionally builds its shared libraries.
10656	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'
10657      fi
10658    fi
10659    ;;
10660  chorus*)
10661    case $cc_basename in
10662      *)
10663	# FIXME: insert proper C++ library support
10664	ld_shlibs_CXX=no
10665	;;
10666    esac
10667    ;;
10668
10669
10670  cygwin* | mingw* | pw32*)
10671    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10672    # as there is no search path for DLLs.
10673    hardcode_libdir_flag_spec_CXX='-L$libdir'
10674    allow_undefined_flag_CXX=unsupported
10675    always_export_symbols_CXX=no
10676    enable_shared_with_static_runtimes_CXX=yes
10677
10678    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10679      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'
10680      # If the export-symbols file already is a .def file (1st line
10681      # is EXPORTS), use it as is; otherwise, prepend...
10682      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10683	cp $export_symbols $output_objdir/$soname.def;
10684      else
10685	echo EXPORTS > $output_objdir/$soname.def;
10686	cat $export_symbols >> $output_objdir/$soname.def;
10687      fi~
10688      $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'
10689    else
10690      ld_shlibs_CXX=no
10691    fi
10692  ;;
10693      darwin* | rhapsody*)
10694        case $host_os in
10695        rhapsody* | darwin1.[012])
10696         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10697         ;;
10698       *) # Darwin 1.3 on
10699         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10700           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10701         else
10702           case ${MACOSX_DEPLOYMENT_TARGET} in
10703             10.[012])
10704               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10705               ;;
10706             10.*)
10707               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10708               ;;
10709           esac
10710         fi
10711         ;;
10712        esac
10713      archive_cmds_need_lc_CXX=no
10714      hardcode_direct_CXX=no
10715      hardcode_automatic_CXX=yes
10716      hardcode_shlibpath_var_CXX=unsupported
10717      whole_archive_flag_spec_CXX=''
10718      link_all_deplibs_CXX=yes
10719
10720    if test "$GXX" = yes ; then
10721      lt_int_apple_cc_single_mod=no
10722      output_verbose_link_cmd='echo'
10723      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10724       lt_int_apple_cc_single_mod=yes
10725      fi
10726      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10727       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10728      else
10729          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10730        fi
10731        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10732        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10733          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10734            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}'
10735          else
10736            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10737          fi
10738            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10739      else
10740      case $cc_basename in
10741        xlc*)
10742         output_verbose_link_cmd='echo'
10743          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10744          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10745          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10746          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10747          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10748          ;;
10749       *)
10750         ld_shlibs_CXX=no
10751          ;;
10752      esac
10753      fi
10754        ;;
10755
10756  dgux*)
10757    case $cc_basename in
10758      ec++*)
10759	# FIXME: insert proper C++ library support
10760	ld_shlibs_CXX=no
10761	;;
10762      ghcx*)
10763	# Green Hills C++ Compiler
10764	# FIXME: insert proper C++ library support
10765	ld_shlibs_CXX=no
10766	;;
10767      *)
10768	# FIXME: insert proper C++ library support
10769	ld_shlibs_CXX=no
10770	;;
10771    esac
10772    ;;
10773  freebsd[12]*)
10774    # C++ shared libraries reported to be fairly broken before switch to ELF
10775    ld_shlibs_CXX=no
10776    ;;
10777  freebsd-elf*)
10778    archive_cmds_need_lc_CXX=no
10779    ;;
10780  freebsd* | kfreebsd*-gnu | dragonfly*)
10781    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10782    # conventions
10783    ld_shlibs_CXX=yes
10784    ;;
10785  gnu*)
10786    ;;
10787  hpux9*)
10788    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10789    hardcode_libdir_separator_CXX=:
10790    export_dynamic_flag_spec_CXX='${wl}-E'
10791    hardcode_direct_CXX=yes
10792    hardcode_minus_L_CXX=yes # Not in the search PATH,
10793				# but as the default
10794				# location of the library.
10795
10796    case $cc_basename in
10797    CC*)
10798      # FIXME: insert proper C++ library support
10799      ld_shlibs_CXX=no
10800      ;;
10801    aCC*)
10802      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'
10803      # Commands to make compiler produce verbose output that lists
10804      # what "hidden" libraries, object files and flags are used when
10805      # linking a shared library.
10806      #
10807      # There doesn't appear to be a way to prevent this compiler from
10808      # explicitly linking system object files so we need to strip them
10809      # from the output so that they don't get included in the library
10810      # dependencies.
10811      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'
10812      ;;
10813    *)
10814      if test "$GXX" = yes; then
10815        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'
10816      else
10817        # FIXME: insert proper C++ library support
10818        ld_shlibs_CXX=no
10819      fi
10820      ;;
10821    esac
10822    ;;
10823  hpux10*|hpux11*)
10824    if test $with_gnu_ld = no; then
10825      case $host_cpu in
10826      hppa*64*)
10827	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10828	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10829	hardcode_libdir_separator_CXX=:
10830        ;;
10831      ia64*)
10832	hardcode_libdir_flag_spec_CXX='-L$libdir'
10833        ;;
10834      *)
10835	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10836	hardcode_libdir_separator_CXX=:
10837	export_dynamic_flag_spec_CXX='${wl}-E'
10838        ;;
10839      esac
10840    fi
10841    case $host_cpu in
10842    hppa*64*)
10843      hardcode_direct_CXX=no
10844      hardcode_shlibpath_var_CXX=no
10845      ;;
10846    ia64*)
10847      hardcode_direct_CXX=no
10848      hardcode_shlibpath_var_CXX=no
10849      hardcode_minus_L_CXX=yes # Not in the search PATH,
10850					      # but as the default
10851					      # location of the library.
10852      ;;
10853    *)
10854      hardcode_direct_CXX=yes
10855      hardcode_minus_L_CXX=yes # Not in the search PATH,
10856					      # but as the default
10857					      # location of the library.
10858      ;;
10859    esac
10860
10861    case $cc_basename in
10862      CC*)
10863	# FIXME: insert proper C++ library support
10864	ld_shlibs_CXX=no
10865	;;
10866      aCC*)
10867	case $host_cpu in
10868	hppa*64*|ia64*)
10869	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10870	  ;;
10871	*)
10872	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10873	  ;;
10874	esac
10875	# Commands to make compiler produce verbose output that lists
10876	# what "hidden" libraries, object files and flags are used when
10877	# linking a shared library.
10878	#
10879	# There doesn't appear to be a way to prevent this compiler from
10880	# explicitly linking system object files so we need to strip them
10881	# from the output so that they don't get included in the library
10882	# dependencies.
10883	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'
10884	;;
10885      *)
10886	if test "$GXX" = yes; then
10887	  if test $with_gnu_ld = no; then
10888	    case $host_cpu in
10889	    ia64*|hppa*64*)
10890	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10891	      ;;
10892	    *)
10893	      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'
10894	      ;;
10895	    esac
10896	  fi
10897	else
10898	  # FIXME: insert proper C++ library support
10899	  ld_shlibs_CXX=no
10900	fi
10901	;;
10902    esac
10903    ;;
10904  irix5* | irix6*)
10905    case $cc_basename in
10906      CC*)
10907	# SGI C++
10908	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10909
10910	# Archives containing C++ object files must be created using
10911	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10912	# necessary to make sure instantiated templates are included
10913	# in the archive.
10914	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10915	;;
10916      *)
10917	if test "$GXX" = yes; then
10918	  if test "$with_gnu_ld" = no; then
10919	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10920	  else
10921	    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'
10922	  fi
10923	fi
10924	link_all_deplibs_CXX=yes
10925	;;
10926    esac
10927    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10928    hardcode_libdir_separator_CXX=:
10929    ;;
10930  linux*)
10931    case $cc_basename in
10932      KCC*)
10933	# Kuck and Associates, Inc. (KAI) C++ Compiler
10934
10935	# KCC will only create a shared library if the output file
10936	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10937	# to its proper name (with version) after linking.
10938	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'
10939	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'
10940	# Commands to make compiler produce verbose output that lists
10941	# what "hidden" libraries, object files and flags are used when
10942	# linking a shared library.
10943	#
10944	# There doesn't appear to be a way to prevent this compiler from
10945	# explicitly linking system object files so we need to strip them
10946	# from the output so that they don't get included in the library
10947	# dependencies.
10948	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'
10949
10950	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10951	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10952
10953	# Archives containing C++ object files must be created using
10954	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10955	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10956	;;
10957      icpc*)
10958	# Intel C++
10959	with_gnu_ld=yes
10960	# version 8.0 and above of icpc choke on multiply defined symbols
10961	# if we add $predep_objects and $postdep_objects, however 7.1 and
10962	# earlier do not add the objects themselves.
10963	case `$CC -V 2>&1` in
10964	*"Version 7."*)
10965  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966  	  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'
10967	  ;;
10968	*)  # Version 8.0 or newer
10969	  tmp_idyn=
10970	  case $host_cpu in
10971	    ia64*) tmp_idyn=' -i_dynamic';;
10972	  esac
10973  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10974	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10975	  ;;
10976	esac
10977	archive_cmds_need_lc_CXX=no
10978	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10979	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10980	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10981	;;
10982      pgCC*)
10983        # Portland Group C++ compiler
10984	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10985  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10986
10987	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10988	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10989	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10990        ;;
10991      cxx*)
10992	# Compaq C++
10993	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10994	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'
10995
10996	runpath_var=LD_RUN_PATH
10997	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10998	hardcode_libdir_separator_CXX=:
10999
11000	# Commands to make compiler produce verbose output that lists
11001	# what "hidden" libraries, object files and flags are used when
11002	# linking a shared library.
11003	#
11004	# There doesn't appear to be a way to prevent this compiler from
11005	# explicitly linking system object files so we need to strip them
11006	# from the output so that they don't get included in the library
11007	# dependencies.
11008	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'
11009	;;
11010    esac
11011    ;;
11012  lynxos*)
11013    # FIXME: insert proper C++ library support
11014    ld_shlibs_CXX=no
11015    ;;
11016  m88k*)
11017    # FIXME: insert proper C++ library support
11018    ld_shlibs_CXX=no
11019    ;;
11020  mvs*)
11021    case $cc_basename in
11022      cxx*)
11023	# FIXME: insert proper C++ library support
11024	ld_shlibs_CXX=no
11025	;;
11026      *)
11027	# FIXME: insert proper C++ library support
11028	ld_shlibs_CXX=no
11029	;;
11030    esac
11031    ;;
11032  netbsd*)
11033    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11034      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11035      wlarc=
11036      hardcode_libdir_flag_spec_CXX='-R$libdir'
11037      hardcode_direct_CXX=yes
11038      hardcode_shlibpath_var_CXX=no
11039    fi
11040    # Workaround some broken pre-1.5 toolchains
11041    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11042    ;;
11043  openbsd2*)
11044    # C++ shared libraries are fairly broken
11045    ld_shlibs_CXX=no
11046    ;;
11047  openbsd*)
11048    hardcode_direct_CXX=yes
11049    hardcode_shlibpath_var_CXX=no
11050    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11051    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11052    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11053      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11054      export_dynamic_flag_spec_CXX='${wl}-E'
11055      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11056    fi
11057    output_verbose_link_cmd='echo'
11058    ;;
11059  osf3*)
11060    case $cc_basename in
11061      KCC*)
11062	# Kuck and Associates, Inc. (KAI) C++ Compiler
11063
11064	# KCC will only create a shared library if the output file
11065	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11066	# to its proper name (with version) after linking.
11067	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'
11068
11069	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11070	hardcode_libdir_separator_CXX=:
11071
11072	# Archives containing C++ object files must be created using
11073	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11074	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11075
11076	;;
11077      RCC*)
11078	# Rational C++ 2.4.1
11079	# FIXME: insert proper C++ library support
11080	ld_shlibs_CXX=no
11081	;;
11082      cxx*)
11083	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11084	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11085
11086	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11087	hardcode_libdir_separator_CXX=:
11088
11089	# Commands to make compiler produce verbose output that lists
11090	# what "hidden" libraries, object files and flags are used when
11091	# linking a shared library.
11092	#
11093	# There doesn't appear to be a way to prevent this compiler from
11094	# explicitly linking system object files so we need to strip them
11095	# from the output so that they don't get included in the library
11096	# dependencies.
11097	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'
11098	;;
11099      *)
11100	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11101	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11102	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11103
11104	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11105	  hardcode_libdir_separator_CXX=:
11106
11107	  # Commands to make compiler produce verbose output that lists
11108	  # what "hidden" libraries, object files and flags are used when
11109	  # linking a shared library.
11110	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11111
11112	else
11113	  # FIXME: insert proper C++ library support
11114	  ld_shlibs_CXX=no
11115	fi
11116	;;
11117    esac
11118    ;;
11119  osf4* | osf5*)
11120    case $cc_basename in
11121      KCC*)
11122	# Kuck and Associates, Inc. (KAI) C++ Compiler
11123
11124	# KCC will only create a shared library if the output file
11125	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11126	# to its proper name (with version) after linking.
11127	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'
11128
11129	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11130	hardcode_libdir_separator_CXX=:
11131
11132	# Archives containing C++ object files must be created using
11133	# the KAI C++ compiler.
11134	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11135	;;
11136      RCC*)
11137	# Rational C++ 2.4.1
11138	# FIXME: insert proper C++ library support
11139	ld_shlibs_CXX=no
11140	;;
11141      cxx*)
11142	allow_undefined_flag_CXX=' -expect_unresolved \*'
11143	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11144	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11145	  echo "-hidden">> $lib.exp~
11146	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11147	  $rm $lib.exp'
11148
11149	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11150	hardcode_libdir_separator_CXX=:
11151
11152	# Commands to make compiler produce verbose output that lists
11153	# what "hidden" libraries, object files and flags are used when
11154	# linking a shared library.
11155	#
11156	# There doesn't appear to be a way to prevent this compiler from
11157	# explicitly linking system object files so we need to strip them
11158	# from the output so that they don't get included in the library
11159	# dependencies.
11160	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'
11161	;;
11162      *)
11163	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11164	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11165	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11166
11167	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11168	  hardcode_libdir_separator_CXX=:
11169
11170	  # Commands to make compiler produce verbose output that lists
11171	  # what "hidden" libraries, object files and flags are used when
11172	  # linking a shared library.
11173	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11174
11175	else
11176	  # FIXME: insert proper C++ library support
11177	  ld_shlibs_CXX=no
11178	fi
11179	;;
11180    esac
11181    ;;
11182  psos*)
11183    # FIXME: insert proper C++ library support
11184    ld_shlibs_CXX=no
11185    ;;
11186  sco*)
11187    archive_cmds_need_lc_CXX=no
11188    case $cc_basename in
11189      CC*)
11190	# FIXME: insert proper C++ library support
11191	ld_shlibs_CXX=no
11192	;;
11193      *)
11194	# FIXME: insert proper C++ library support
11195	ld_shlibs_CXX=no
11196	;;
11197    esac
11198    ;;
11199  sunos4*)
11200    case $cc_basename in
11201      CC*)
11202	# Sun C++ 4.x
11203	# FIXME: insert proper C++ library support
11204	ld_shlibs_CXX=no
11205	;;
11206      lcc*)
11207	# Lucid
11208	# FIXME: insert proper C++ library support
11209	ld_shlibs_CXX=no
11210	;;
11211      *)
11212	# FIXME: insert proper C++ library support
11213	ld_shlibs_CXX=no
11214	;;
11215    esac
11216    ;;
11217  solaris*)
11218    case $cc_basename in
11219      CC*)
11220	# Sun C++ 4.2, 5.x and Centerline C++
11221        archive_cmds_need_lc_CXX=yes
11222	no_undefined_flag_CXX=' -zdefs'
11223	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11224	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11225	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11226
11227	hardcode_libdir_flag_spec_CXX='-R$libdir'
11228	hardcode_shlibpath_var_CXX=no
11229	case $host_os in
11230	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11231	  *)
11232	    # The C++ compiler is used as linker so we must use $wl
11233	    # flag to pass the commands to the underlying system
11234	    # linker. We must also pass each convience library through
11235	    # to the system linker between allextract/defaultextract.
11236	    # The C++ compiler will combine linker options so we
11237	    # cannot just pass the convience library names through
11238	    # without $wl.
11239	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11240	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11241	    ;;
11242	esac
11243	link_all_deplibs_CXX=yes
11244
11245	output_verbose_link_cmd='echo'
11246
11247	# Archives containing C++ object files must be created using
11248	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11249	# necessary to make sure instantiated templates are included
11250	# in the archive.
11251	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11252	;;
11253      gcx*)
11254	# Green Hills C++ Compiler
11255	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11256
11257	# The C++ compiler must be used to create the archive.
11258	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11259	;;
11260      *)
11261	# GNU C++ compiler with Solaris linker
11262	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11263	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11264	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11265	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11266	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11267		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11268
11269	    # Commands to make compiler produce verbose output that lists
11270	    # what "hidden" libraries, object files and flags are used when
11271	    # linking a shared library.
11272	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11273	  else
11274	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11275	    # platform.
11276	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11279
11280	    # Commands to make compiler produce verbose output that lists
11281	    # what "hidden" libraries, object files and flags are used when
11282	    # linking a shared library.
11283	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11284	  fi
11285
11286	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11287	fi
11288	;;
11289    esac
11290    ;;
11291  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11292    archive_cmds_need_lc_CXX=no
11293    ;;
11294  tandem*)
11295    case $cc_basename in
11296      NCC*)
11297	# NonStop-UX NCC 3.20
11298	# FIXME: insert proper C++ library support
11299	ld_shlibs_CXX=no
11300	;;
11301      *)
11302	# FIXME: insert proper C++ library support
11303	ld_shlibs_CXX=no
11304	;;
11305    esac
11306    ;;
11307  vxworks*)
11308    # FIXME: insert proper C++ library support
11309    ld_shlibs_CXX=no
11310    ;;
11311  *)
11312    # FIXME: insert proper C++ library support
11313    ld_shlibs_CXX=no
11314    ;;
11315esac
11316echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11317echo "${ECHO_T}$ld_shlibs_CXX" >&6
11318test "$ld_shlibs_CXX" = no && can_build_shared=no
11319
11320GCC_CXX="$GXX"
11321LD_CXX="$LD"
11322
11323## CAVEAT EMPTOR:
11324## There is no encapsulation within the following macros, do not change
11325## the running order or otherwise move them around unless you know exactly
11326## what you are doing...
11327
11328cat > conftest.$ac_ext <<EOF
11329class Foo
11330{
11331public:
11332  Foo (void) { a = 0; }
11333private:
11334  int a;
11335};
11336EOF
11337
11338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339  (eval $ac_compile) 2>&5
11340  ac_status=$?
11341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342  (exit $ac_status); }; then
11343  # Parse the compiler output and extract the necessary
11344  # objects, libraries and library flags.
11345
11346  # Sentinel used to keep track of whether or not we are before
11347  # the conftest object file.
11348  pre_test_object_deps_done=no
11349
11350  # The `*' in the case matches for architectures that use `case' in
11351  # $output_verbose_cmd can trigger glob expansion during the loop
11352  # eval without this substitution.
11353  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11354
11355  for p in `eval $output_verbose_link_cmd`; do
11356    case $p in
11357
11358    -L* | -R* | -l*)
11359       # Some compilers place space between "-{L,R}" and the path.
11360       # Remove the space.
11361       if test $p = "-L" \
11362	  || test $p = "-R"; then
11363	 prev=$p
11364	 continue
11365       else
11366	 prev=
11367       fi
11368
11369       if test "$pre_test_object_deps_done" = no; then
11370	 case $p in
11371	 -L* | -R*)
11372	   # Internal compiler library paths should come after those
11373	   # provided the user.  The postdeps already come after the
11374	   # user supplied libs so there is no need to process them.
11375	   if test -z "$compiler_lib_search_path_CXX"; then
11376	     compiler_lib_search_path_CXX="${prev}${p}"
11377	   else
11378	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11379	   fi
11380	   ;;
11381	 # The "-l" case would never come before the object being
11382	 # linked, so don't bother handling this case.
11383	 esac
11384       else
11385	 if test -z "$postdeps_CXX"; then
11386	   postdeps_CXX="${prev}${p}"
11387	 else
11388	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11389	 fi
11390       fi
11391       ;;
11392
11393    *.$objext)
11394       # This assumes that the test object file only shows up
11395       # once in the compiler output.
11396       if test "$p" = "conftest.$objext"; then
11397	 pre_test_object_deps_done=yes
11398	 continue
11399       fi
11400
11401       if test "$pre_test_object_deps_done" = no; then
11402	 if test -z "$predep_objects_CXX"; then
11403	   predep_objects_CXX="$p"
11404	 else
11405	   predep_objects_CXX="$predep_objects_CXX $p"
11406	 fi
11407       else
11408	 if test -z "$postdep_objects_CXX"; then
11409	   postdep_objects_CXX="$p"
11410	 else
11411	   postdep_objects_CXX="$postdep_objects_CXX $p"
11412	 fi
11413       fi
11414       ;;
11415
11416    *) ;; # Ignore the rest.
11417
11418    esac
11419  done
11420
11421  # Clean up.
11422  rm -f a.out a.exe
11423else
11424  echo "libtool.m4: error: problem compiling CXX test program"
11425fi
11426
11427$rm -f confest.$objext
11428
11429# PORTME: override above test on systems where it is broken
11430case $host_os in
11431solaris*)
11432  case $cc_basename in
11433  CC*)
11434    # Adding this requires a known-good setup of shared libraries for
11435    # Sun compiler versions before 5.6, else PIC objects from an old
11436    # archive will be linked into the output, leading to subtle bugs.
11437    postdeps_CXX='-lCstd -lCrun'
11438    ;;
11439  esac
11440esac
11441
11442
11443case " $postdeps_CXX " in
11444*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11445esac
11446
11447lt_prog_compiler_wl_CXX=
11448lt_prog_compiler_pic_CXX=
11449lt_prog_compiler_static_CXX=
11450
11451echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11452echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11453
11454  # C++ specific cases for pic, static, wl, etc.
11455  if test "$GXX" = yes; then
11456    lt_prog_compiler_wl_CXX='-Wl,'
11457    lt_prog_compiler_static_CXX='-static'
11458
11459    case $host_os in
11460    aix*)
11461      # All AIX code is PIC.
11462      if test "$host_cpu" = ia64; then
11463	# AIX 5 now supports IA64 processor
11464	lt_prog_compiler_static_CXX='-Bstatic'
11465      fi
11466      ;;
11467    amigaos*)
11468      # FIXME: we need at least 68020 code to build shared libraries, but
11469      # adding the `-m68020' flag to GCC prevents building anything better,
11470      # like `-m68040'.
11471      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11472      ;;
11473    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
11474    | osf5*)
11475      # PIC is the default for these OSes.
11476      ;;
11477    mingw* | os2* | pw32*)
11478      # This hack is so that the source file can tell whether it is being
11479      # built for inclusion in a dll (and should export symbols for example).
11480      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11481      ;;
11482    darwin* | rhapsody*)
11483      # PIC is the default on this platform
11484      # Common symbols not allowed in MH_DYLIB files
11485      lt_prog_compiler_pic_CXX='-fno-common'
11486      ;;
11487    *djgpp*)
11488      # DJGPP does not support shared libraries at all
11489      lt_prog_compiler_pic_CXX=
11490      ;;
11491    sysv4*MP*)
11492      if test -d /usr/nec; then
11493	lt_prog_compiler_pic_CXX=-Kconform_pic
11494      fi
11495      ;;
11496    hpux*)
11497      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11498      # not for PA HP-UX.
11499      case $host_cpu in
11500      hppa*64*|ia64*)
11501	;;
11502      *)
11503	lt_prog_compiler_pic_CXX='-fPIC'
11504	;;
11505      esac
11506      ;;
11507    *)
11508      lt_prog_compiler_pic_CXX='-fPIC'
11509      ;;
11510    esac
11511  else
11512    case $host_os in
11513      aix4* | aix5*)
11514	# All AIX code is PIC.
11515	if test "$host_cpu" = ia64; then
11516	  # AIX 5 now supports IA64 processor
11517	  lt_prog_compiler_static_CXX='-Bstatic'
11518	else
11519	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11520	fi
11521	;;
11522      chorus*)
11523	case $cc_basename in
11524	cxch68*)
11525	  # Green Hills C++ Compiler
11526	  # _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"
11527	  ;;
11528	esac
11529	;;
11530       darwin*)
11531         # PIC is the default on this platform
11532         # Common symbols not allowed in MH_DYLIB files
11533         case $cc_basename in
11534           xlc*)
11535           lt_prog_compiler_pic_CXX='-qnocommon'
11536           lt_prog_compiler_wl_CXX='-Wl,'
11537           ;;
11538         esac
11539       ;;
11540      dgux*)
11541	case $cc_basename in
11542	  ec++*)
11543	    lt_prog_compiler_pic_CXX='-KPIC'
11544	    ;;
11545	  ghcx*)
11546	    # Green Hills C++ Compiler
11547	    lt_prog_compiler_pic_CXX='-pic'
11548	    ;;
11549	  *)
11550	    ;;
11551	esac
11552	;;
11553      freebsd* | kfreebsd*-gnu | dragonfly*)
11554	# FreeBSD uses GNU C++
11555	;;
11556      hpux9* | hpux10* | hpux11*)
11557	case $cc_basename in
11558	  CC*)
11559	    lt_prog_compiler_wl_CXX='-Wl,'
11560	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11561	    if test "$host_cpu" != ia64; then
11562	      lt_prog_compiler_pic_CXX='+Z'
11563	    fi
11564	    ;;
11565	  aCC*)
11566	    lt_prog_compiler_wl_CXX='-Wl,'
11567	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11568	    case $host_cpu in
11569	    hppa*64*|ia64*)
11570	      # +Z the default
11571	      ;;
11572	    *)
11573	      lt_prog_compiler_pic_CXX='+Z'
11574	      ;;
11575	    esac
11576	    ;;
11577	  *)
11578	    ;;
11579	esac
11580	;;
11581      irix5* | irix6* | nonstopux*)
11582	case $cc_basename in
11583	  CC*)
11584	    lt_prog_compiler_wl_CXX='-Wl,'
11585	    lt_prog_compiler_static_CXX='-non_shared'
11586	    # CC pic flag -KPIC is the default.
11587	    ;;
11588	  *)
11589	    ;;
11590	esac
11591	;;
11592      linux*)
11593	case $cc_basename in
11594	  KCC*)
11595	    # KAI C++ Compiler
11596	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11597	    lt_prog_compiler_pic_CXX='-fPIC'
11598	    ;;
11599	  icpc* | ecpc*)
11600	    # Intel C++
11601	    lt_prog_compiler_wl_CXX='-Wl,'
11602	    lt_prog_compiler_pic_CXX='-KPIC'
11603	    lt_prog_compiler_static_CXX='-static'
11604	    ;;
11605	  pgCC*)
11606	    # Portland Group C++ compiler.
11607	    lt_prog_compiler_wl_CXX='-Wl,'
11608	    lt_prog_compiler_pic_CXX='-fpic'
11609	    lt_prog_compiler_static_CXX='-Bstatic'
11610	    ;;
11611	  cxx*)
11612	    # Compaq C++
11613	    # Make sure the PIC flag is empty.  It appears that all Alpha
11614	    # Linux and Compaq Tru64 Unix objects are PIC.
11615	    lt_prog_compiler_pic_CXX=
11616	    lt_prog_compiler_static_CXX='-non_shared'
11617	    ;;
11618	  *)
11619	    ;;
11620	esac
11621	;;
11622      lynxos*)
11623	;;
11624      m88k*)
11625	;;
11626      mvs*)
11627	case $cc_basename in
11628	  cxx*)
11629	    lt_prog_compiler_pic_CXX='-W c,exportall'
11630	    ;;
11631	  *)
11632	    ;;
11633	esac
11634	;;
11635      netbsd*)
11636	;;
11637      osf3* | osf4* | osf5*)
11638	case $cc_basename in
11639	  KCC*)
11640	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11641	    ;;
11642	  RCC*)
11643	    # Rational C++ 2.4.1
11644	    lt_prog_compiler_pic_CXX='-pic'
11645	    ;;
11646	  cxx*)
11647	    # Digital/Compaq C++
11648	    lt_prog_compiler_wl_CXX='-Wl,'
11649	    # Make sure the PIC flag is empty.  It appears that all Alpha
11650	    # Linux and Compaq Tru64 Unix objects are PIC.
11651	    lt_prog_compiler_pic_CXX=
11652	    lt_prog_compiler_static_CXX='-non_shared'
11653	    ;;
11654	  *)
11655	    ;;
11656	esac
11657	;;
11658      psos*)
11659	;;
11660      sco*)
11661	case $cc_basename in
11662	  CC*)
11663	    lt_prog_compiler_pic_CXX='-fPIC'
11664	    ;;
11665	  *)
11666	    ;;
11667	esac
11668	;;
11669      solaris*)
11670	case $cc_basename in
11671	  CC*)
11672	    # Sun C++ 4.2, 5.x and Centerline C++
11673	    lt_prog_compiler_pic_CXX='-KPIC'
11674	    lt_prog_compiler_static_CXX='-Bstatic'
11675	    lt_prog_compiler_wl_CXX='-Qoption ld '
11676	    ;;
11677	  gcx*)
11678	    # Green Hills C++ Compiler
11679	    lt_prog_compiler_pic_CXX='-PIC'
11680	    ;;
11681	  *)
11682	    ;;
11683	esac
11684	;;
11685      sunos4*)
11686	case $cc_basename in
11687	  CC*)
11688	    # Sun C++ 4.x
11689	    lt_prog_compiler_pic_CXX='-pic'
11690	    lt_prog_compiler_static_CXX='-Bstatic'
11691	    ;;
11692	  lcc*)
11693	    # Lucid
11694	    lt_prog_compiler_pic_CXX='-pic'
11695	    ;;
11696	  *)
11697	    ;;
11698	esac
11699	;;
11700      tandem*)
11701	case $cc_basename in
11702	  NCC*)
11703	    # NonStop-UX NCC 3.20
11704	    lt_prog_compiler_pic_CXX='-KPIC'
11705	    ;;
11706	  *)
11707	    ;;
11708	esac
11709	;;
11710      unixware*)
11711	;;
11712      vxworks*)
11713	;;
11714      *)
11715	lt_prog_compiler_can_build_shared_CXX=no
11716	;;
11717    esac
11718  fi
11719
11720echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11721echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11722
11723#
11724# Check to make sure the PIC flag actually works.
11725#
11726if test -n "$lt_prog_compiler_pic_CXX"; then
11727
11728echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11729echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11730if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11731  echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733  lt_prog_compiler_pic_works_CXX=no
11734  ac_outfile=conftest.$ac_objext
11735   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11736   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11737   # Insert the option either (1) after the last *FLAGS variable, or
11738   # (2) before a word containing "conftest.", or (3) at the end.
11739   # Note that $ac_compile itself does not contain backslashes and begins
11740   # with a dollar sign (not a hyphen), so the echo should work correctly.
11741   # The option is referenced via a variable to avoid confusing sed.
11742   lt_compile=`echo "$ac_compile" | $SED \
11743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11745   -e 's:$: $lt_compiler_flag:'`
11746   (eval echo "\"\$as_me:11746: $lt_compile\"" >&5)
11747   (eval "$lt_compile" 2>conftest.err)
11748   ac_status=$?
11749   cat conftest.err >&5
11750   echo "$as_me:11750: \$? = $ac_status" >&5
11751   if (exit $ac_status) && test -s "$ac_outfile"; then
11752     # The compiler can only warn and ignore the option if not recognized
11753     # So say no if there are warnings other than the usual output.
11754     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11755     $SED '/^$/d' conftest.err >conftest.er2
11756     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11757       lt_prog_compiler_pic_works_CXX=yes
11758     fi
11759   fi
11760   $rm conftest*
11761
11762fi
11763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11764echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11765
11766if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11767    case $lt_prog_compiler_pic_CXX in
11768     "" | " "*) ;;
11769     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11770     esac
11771else
11772    lt_prog_compiler_pic_CXX=
11773     lt_prog_compiler_can_build_shared_CXX=no
11774fi
11775
11776fi
11777case $host_os in
11778  # For platforms which do not support PIC, -DPIC is meaningless:
11779  *djgpp*)
11780    lt_prog_compiler_pic_CXX=
11781    ;;
11782  *)
11783    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11784    ;;
11785esac
11786
11787echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11788echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11789if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11790  echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792  lt_cv_prog_compiler_c_o_CXX=no
11793   $rm -r conftest 2>/dev/null
11794   mkdir conftest
11795   cd conftest
11796   mkdir out
11797   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11798
11799   lt_compiler_flag="-o out/conftest2.$ac_objext"
11800   # Insert the option either (1) after the last *FLAGS variable, or
11801   # (2) before a word containing "conftest.", or (3) at the end.
11802   # Note that $ac_compile itself does not contain backslashes and begins
11803   # with a dollar sign (not a hyphen), so the echo should work correctly.
11804   lt_compile=`echo "$ac_compile" | $SED \
11805   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11806   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11807   -e 's:$: $lt_compiler_flag:'`
11808   (eval echo "\"\$as_me:11808: $lt_compile\"" >&5)
11809   (eval "$lt_compile" 2>out/conftest.err)
11810   ac_status=$?
11811   cat out/conftest.err >&5
11812   echo "$as_me:11812: \$? = $ac_status" >&5
11813   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11814   then
11815     # The compiler can only warn and ignore the option if not recognized
11816     # So say no if there are warnings
11817     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11818     $SED '/^$/d' out/conftest.err >out/conftest.er2
11819     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11820       lt_cv_prog_compiler_c_o_CXX=yes
11821     fi
11822   fi
11823   chmod u+w . 2>&5
11824   $rm conftest*
11825   # SGI C++ compiler will create directory out/ii_files/ for
11826   # template instantiation
11827   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11828   $rm out/* && rmdir out
11829   cd ..
11830   rmdir conftest
11831   $rm conftest*
11832
11833fi
11834echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11835echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11836
11837
11838hard_links="nottested"
11839if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11840  # do not overwrite the value of need_locks provided by the user
11841  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11842echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11843  hard_links=yes
11844  $rm conftest*
11845  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11846  touch conftest.a
11847  ln conftest.a conftest.b 2>&5 || hard_links=no
11848  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11849  echo "$as_me:$LINENO: result: $hard_links" >&5
11850echo "${ECHO_T}$hard_links" >&6
11851  if test "$hard_links" = no; then
11852    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11853echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11854    need_locks=warn
11855  fi
11856else
11857  need_locks=no
11858fi
11859
11860echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11861echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11862
11863  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11864  case $host_os in
11865  aix4* | aix5*)
11866    # If we're using GNU nm, then we don't want the "-C" option.
11867    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11868    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11869      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'
11870    else
11871      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'
11872    fi
11873    ;;
11874  pw32*)
11875    export_symbols_cmds_CXX="$ltdll_cmds"
11876  ;;
11877  cygwin* | mingw*)
11878    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11879  ;;
11880  *)
11881    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11882  ;;
11883  esac
11884
11885echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11886echo "${ECHO_T}$ld_shlibs_CXX" >&6
11887test "$ld_shlibs_CXX" = no && can_build_shared=no
11888
11889variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11890if test "$GCC" = yes; then
11891  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11892fi
11893
11894#
11895# Do we need to explicitly link libc?
11896#
11897case "x$archive_cmds_need_lc_CXX" in
11898x|xyes)
11899  # Assume -lc should be added
11900  archive_cmds_need_lc_CXX=yes
11901
11902  if test "$enable_shared" = yes && test "$GCC" = yes; then
11903    case $archive_cmds_CXX in
11904    *'~'*)
11905      # FIXME: we may have to deal with multi-command sequences.
11906      ;;
11907    '$CC '*)
11908      # Test whether the compiler implicitly links with -lc since on some
11909      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11910      # to ld, don't add -lc before -lgcc.
11911      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11912echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11913      $rm conftest*
11914      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11915
11916      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917  (eval $ac_compile) 2>&5
11918  ac_status=$?
11919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920  (exit $ac_status); } 2>conftest.err; then
11921        soname=conftest
11922        lib=conftest
11923        libobjs=conftest.$ac_objext
11924        deplibs=
11925        wl=$lt_prog_compiler_wl_CXX
11926        compiler_flags=-v
11927        linker_flags=-v
11928        verstring=
11929        output_objdir=.
11930        libname=conftest
11931        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11932        allow_undefined_flag_CXX=
11933        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11934  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11935  ac_status=$?
11936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937  (exit $ac_status); }
11938        then
11939	  archive_cmds_need_lc_CXX=no
11940        else
11941	  archive_cmds_need_lc_CXX=yes
11942        fi
11943        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11944      else
11945        cat conftest.err 1>&5
11946      fi
11947      $rm conftest*
11948      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11949echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11950      ;;
11951    esac
11952  fi
11953  ;;
11954esac
11955
11956echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11957echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11958library_names_spec=
11959libname_spec='lib$name'
11960soname_spec=
11961shrext_cmds=".so"
11962postinstall_cmds=
11963postuninstall_cmds=
11964finish_cmds=
11965finish_eval=
11966shlibpath_var=
11967shlibpath_overrides_runpath=unknown
11968version_type=none
11969dynamic_linker="$host_os ld.so"
11970sys_lib_dlsearch_path_spec="/lib /usr/lib"
11971if test "$GCC" = yes; then
11972  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11973  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11974    # if the path contains ";" then we assume it to be the separator
11975    # otherwise default to the standard path separator (i.e. ":") - it is
11976    # assumed that no part of a normal pathname contains ";" but that should
11977    # okay in the real world where ";" in dirpaths is itself problematic.
11978    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11979  else
11980    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11981  fi
11982else
11983  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11984fi
11985need_lib_prefix=unknown
11986hardcode_into_libs=no
11987
11988# when you set need_version to no, make sure it does not cause -set_version
11989# flags to be left without arguments
11990need_version=unknown
11991
11992case $host_os in
11993aix3*)
11994  version_type=linux
11995  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11996  shlibpath_var=LIBPATH
11997
11998  # AIX 3 has no versioning support, so we append a major version to the name.
11999  soname_spec='${libname}${release}${shared_ext}$major'
12000  ;;
12001
12002aix4* | aix5*)
12003  version_type=linux
12004  need_lib_prefix=no
12005  need_version=no
12006  hardcode_into_libs=yes
12007  if test "$host_cpu" = ia64; then
12008    # AIX 5 supports IA64
12009    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12010    shlibpath_var=LD_LIBRARY_PATH
12011  else
12012    # With GCC up to 2.95.x, collect2 would create an import file
12013    # for dependence libraries.  The import file would start with
12014    # the line `#! .'.  This would cause the generated library to
12015    # depend on `.', always an invalid library.  This was fixed in
12016    # development snapshots of GCC prior to 3.0.
12017    case $host_os in
12018      aix4 | aix4.[01] | aix4.[01].*)
12019      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12020	   echo ' yes '
12021	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12022	:
12023      else
12024	can_build_shared=no
12025      fi
12026      ;;
12027    esac
12028    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12029    # soname into executable. Probably we can add versioning support to
12030    # collect2, so additional links can be useful in future.
12031    if test "$aix_use_runtimelinking" = yes; then
12032      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12033      # instead of lib<name>.a to let people know that these are not
12034      # typical AIX shared libraries.
12035      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12036    else
12037      # We preserve .a as extension for shared libraries through AIX4.2
12038      # and later when we are not doing run time linking.
12039      library_names_spec='${libname}${release}.a $libname.a'
12040      soname_spec='${libname}${release}${shared_ext}$major'
12041    fi
12042    shlibpath_var=LIBPATH
12043  fi
12044  ;;
12045
12046amigaos*)
12047  library_names_spec='$libname.ixlibrary $libname.a'
12048  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12049  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'
12050  ;;
12051
12052beos*)
12053  library_names_spec='${libname}${shared_ext}'
12054  dynamic_linker="$host_os ld.so"
12055  shlibpath_var=LIBRARY_PATH
12056  ;;
12057
12058bsdi[45]*)
12059  version_type=linux
12060  need_version=no
12061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062  soname_spec='${libname}${release}${shared_ext}$major'
12063  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12064  shlibpath_var=LD_LIBRARY_PATH
12065  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12066  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12067  # the default ld.so.conf also contains /usr/contrib/lib and
12068  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12069  # libtool to hard-code these into programs
12070  ;;
12071
12072cygwin* | mingw* | pw32*)
12073  version_type=windows
12074  shrext_cmds=".dll"
12075  need_version=no
12076  need_lib_prefix=no
12077
12078  case $GCC,$host_os in
12079  yes,cygwin* | yes,mingw* | yes,pw32*)
12080    library_names_spec='$libname.dll.a'
12081    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12082    postinstall_cmds='base_file=`basename \${file}`~
12083      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12084      dldir=$destdir/`dirname \$dlpath`~
12085      test -d \$dldir || mkdir -p \$dldir~
12086      $install_prog $dir/$dlname \$dldir/$dlname~
12087      chmod a+x \$dldir/$dlname'
12088    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12089      dlpath=$dir/\$dldll~
12090       $rm \$dlpath'
12091    shlibpath_overrides_runpath=yes
12092
12093    case $host_os in
12094    cygwin*)
12095      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12096      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12097      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12098      ;;
12099    mingw*)
12100      # MinGW DLLs use traditional 'lib' prefix
12101      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12102      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12103      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12104        # It is most probably a Windows format PATH printed by
12105        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12106        # path with ; separators, and with drive letters. We can handle the
12107        # drive letters (cygwin fileutils understands them), so leave them,
12108        # especially as we might pass files found there to a mingw objdump,
12109        # which wouldn't understand a cygwinified path. Ahh.
12110        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12111      else
12112        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12113      fi
12114      ;;
12115    pw32*)
12116      # pw32 DLLs use 'pw' prefix rather than 'lib'
12117      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12118      ;;
12119    esac
12120    ;;
12121
12122  *)
12123    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12124    ;;
12125  esac
12126  dynamic_linker='Win32 ld.exe'
12127  # FIXME: first we should search . and the directory the executable is in
12128  shlibpath_var=PATH
12129  ;;
12130
12131darwin* | rhapsody*)
12132  dynamic_linker="$host_os dyld"
12133  version_type=darwin
12134  need_lib_prefix=no
12135  need_version=no
12136  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12137  soname_spec='${libname}${release}${major}$shared_ext'
12138  shlibpath_overrides_runpath=yes
12139  shlibpath_var=DYLD_LIBRARY_PATH
12140  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12141  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12142  if test "$GCC" = yes; then
12143    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"`
12144  else
12145    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12146  fi
12147  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12148  ;;
12149
12150dgux*)
12151  version_type=linux
12152  need_lib_prefix=no
12153  need_version=no
12154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12155  soname_spec='${libname}${release}${shared_ext}$major'
12156  shlibpath_var=LD_LIBRARY_PATH
12157  ;;
12158
12159freebsd1*)
12160  dynamic_linker=no
12161  ;;
12162
12163haiku*)
12164  library_names_spec='${libname}${shared_ext}'
12165  dynamic_linker="$host_os ld.so"
12166  shlibpath_var=LIBRARY_PATH
12167  ;;
12168
12169kfreebsd*-gnu)
12170  version_type=linux
12171  need_lib_prefix=no
12172  need_version=no
12173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12174  soname_spec='${libname}${release}${shared_ext}$major'
12175  shlibpath_var=LD_LIBRARY_PATH
12176  shlibpath_overrides_runpath=no
12177  hardcode_into_libs=yes
12178  dynamic_linker='GNU ld.so'
12179  ;;
12180
12181freebsd* | dragonfly*)
12182  # DragonFly does not have aout.  When/if they implement a new
12183  # versioning mechanism, adjust this.
12184  if test -x /usr/bin/objformat; then
12185    objformat=`/usr/bin/objformat`
12186  else
12187    case $host_os in
12188    freebsd[123]*) objformat=aout ;;
12189    *) objformat=elf ;;
12190    esac
12191  fi
12192  version_type=freebsd-$objformat
12193  case $version_type in
12194    freebsd-elf*)
12195      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12196      need_version=no
12197      need_lib_prefix=no
12198      ;;
12199    freebsd-*)
12200      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12201      need_version=yes
12202      ;;
12203  esac
12204  shlibpath_var=LD_LIBRARY_PATH
12205  case $host_os in
12206  freebsd2*)
12207    shlibpath_overrides_runpath=yes
12208    ;;
12209  freebsd3.[01]* | freebsdelf3.[01]*)
12210    shlibpath_overrides_runpath=yes
12211    hardcode_into_libs=yes
12212    ;;
12213  *) # from 3.2 on
12214    shlibpath_overrides_runpath=no
12215    hardcode_into_libs=yes
12216    ;;
12217  esac
12218  ;;
12219
12220gnu*)
12221  version_type=linux
12222  need_lib_prefix=no
12223  need_version=no
12224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12225  soname_spec='${libname}${release}${shared_ext}$major'
12226  shlibpath_var=LD_LIBRARY_PATH
12227  hardcode_into_libs=yes
12228  ;;
12229
12230hpux9* | hpux10* | hpux11*)
12231  # Give a soname corresponding to the major version so that dld.sl refuses to
12232  # link against other versions.
12233  version_type=sunos
12234  need_lib_prefix=no
12235  need_version=no
12236  case $host_cpu in
12237  ia64*)
12238    shrext_cmds='.so'
12239    hardcode_into_libs=yes
12240    dynamic_linker="$host_os dld.so"
12241    shlibpath_var=LD_LIBRARY_PATH
12242    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244    soname_spec='${libname}${release}${shared_ext}$major'
12245    if test "X$HPUX_IA64_MODE" = X32; then
12246      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12247    else
12248      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12249    fi
12250    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12251    ;;
12252   hppa*64*)
12253     shrext_cmds='.sl'
12254     hardcode_into_libs=yes
12255     dynamic_linker="$host_os dld.sl"
12256     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259     soname_spec='${libname}${release}${shared_ext}$major'
12260     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12261     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12262     ;;
12263   *)
12264    shrext_cmds='.sl'
12265    dynamic_linker="$host_os dld.sl"
12266    shlibpath_var=SHLIB_PATH
12267    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269    soname_spec='${libname}${release}${shared_ext}$major'
12270    ;;
12271  esac
12272  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12273  postinstall_cmds='chmod 555 $lib'
12274  ;;
12275
12276irix5* | irix6* | nonstopux*)
12277  case $host_os in
12278    nonstopux*) version_type=nonstopux ;;
12279    *)
12280	if test "$lt_cv_prog_gnu_ld" = yes; then
12281		version_type=linux
12282	else
12283		version_type=irix
12284	fi ;;
12285  esac
12286  need_lib_prefix=no
12287  need_version=no
12288  soname_spec='${libname}${release}${shared_ext}$major'
12289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12290  case $host_os in
12291  irix5* | nonstopux*)
12292    libsuff= shlibsuff=
12293    ;;
12294  *)
12295    case $LD in # libtool.m4 will add one of these switches to LD
12296    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12297      libsuff= shlibsuff= libmagic=32-bit;;
12298    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12299      libsuff=32 shlibsuff=N32 libmagic=N32;;
12300    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12301      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12302    *) libsuff= shlibsuff= libmagic=never-match;;
12303    esac
12304    ;;
12305  esac
12306  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12307  shlibpath_overrides_runpath=no
12308  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12309  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12310  hardcode_into_libs=yes
12311  ;;
12312
12313# No shared lib support for Linux oldld, aout, or coff.
12314linux*oldld* | linux*aout* | linux*coff*)
12315  dynamic_linker=no
12316  ;;
12317
12318# This must be Linux ELF.
12319linux*)
12320  version_type=linux
12321  need_lib_prefix=no
12322  need_version=no
12323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324  soname_spec='${libname}${release}${shared_ext}$major'
12325  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12326  shlibpath_var=LD_LIBRARY_PATH
12327  shlibpath_overrides_runpath=no
12328  # This implies no fast_install, which is unacceptable.
12329  # Some rework will be needed to allow for fast_install
12330  # before this can be enabled.
12331  hardcode_into_libs=yes
12332
12333  # Append ld.so.conf contents to the search path
12334  if test -f /etc/ld.so.conf; then
12335    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12336    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12337  fi
12338
12339  # We used to test for /lib/ld.so.1 and disable shared libraries on
12340  # powerpc, because MkLinux only supported shared libraries with the
12341  # GNU dynamic linker.  Since this was broken with cross compilers,
12342  # most powerpc-linux boxes support dynamic linking these days and
12343  # people can always --disable-shared, the test was removed, and we
12344  # assume the GNU/Linux dynamic linker is in use.
12345  dynamic_linker='GNU/Linux ld.so'
12346  ;;
12347
12348knetbsd*-gnu)
12349  version_type=linux
12350  need_lib_prefix=no
12351  need_version=no
12352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12353  soname_spec='${libname}${release}${shared_ext}$major'
12354  shlibpath_var=LD_LIBRARY_PATH
12355  shlibpath_overrides_runpath=no
12356  hardcode_into_libs=yes
12357  dynamic_linker='GNU ld.so'
12358  ;;
12359
12360netbsd*)
12361  version_type=sunos
12362  need_lib_prefix=no
12363  need_version=no
12364  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12366    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12367    dynamic_linker='NetBSD (a.out) ld.so'
12368  else
12369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12370    soname_spec='${libname}${release}${shared_ext}$major'
12371    dynamic_linker='NetBSD ld.elf_so'
12372  fi
12373  shlibpath_var=LD_LIBRARY_PATH
12374  shlibpath_overrides_runpath=yes
12375  hardcode_into_libs=yes
12376  ;;
12377
12378newsos6)
12379  version_type=linux
12380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381  shlibpath_var=LD_LIBRARY_PATH
12382  shlibpath_overrides_runpath=yes
12383  ;;
12384
12385nto-qnx*)
12386  version_type=linux
12387  need_lib_prefix=no
12388  need_version=no
12389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390  soname_spec='${libname}${release}${shared_ext}$major'
12391  shlibpath_var=LD_LIBRARY_PATH
12392  shlibpath_overrides_runpath=yes
12393  ;;
12394
12395openbsd*)
12396  version_type=sunos
12397  need_lib_prefix=no
12398  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12399  case $host_os in
12400    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12401    *)                         need_version=no  ;;
12402  esac
12403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12404  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12405  shlibpath_var=LD_LIBRARY_PATH
12406  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12407    case $host_os in
12408      openbsd2.[89] | openbsd2.[89].*)
12409	shlibpath_overrides_runpath=no
12410	;;
12411      *)
12412	shlibpath_overrides_runpath=yes
12413	;;
12414      esac
12415  else
12416    shlibpath_overrides_runpath=yes
12417  fi
12418  ;;
12419
12420os2*)
12421  libname_spec='$name'
12422  shrext_cmds=".dll"
12423  need_lib_prefix=no
12424  library_names_spec='$libname${shared_ext} $libname.a'
12425  dynamic_linker='OS/2 ld.exe'
12426  shlibpath_var=LIBPATH
12427  ;;
12428
12429osf3* | osf4* | osf5*)
12430  version_type=osf
12431  need_lib_prefix=no
12432  need_version=no
12433  soname_spec='${libname}${release}${shared_ext}$major'
12434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12435  shlibpath_var=LD_LIBRARY_PATH
12436  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12437  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12438  ;;
12439
12440sco3.2v5*)
12441  version_type=osf
12442  soname_spec='${libname}${release}${shared_ext}$major'
12443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444  shlibpath_var=LD_LIBRARY_PATH
12445  ;;
12446
12447solaris*)
12448  version_type=linux
12449  need_lib_prefix=no
12450  need_version=no
12451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452  soname_spec='${libname}${release}${shared_ext}$major'
12453  shlibpath_var=LD_LIBRARY_PATH
12454  shlibpath_overrides_runpath=yes
12455  hardcode_into_libs=yes
12456  # ldd complains unless libraries are executable
12457  postinstall_cmds='chmod +x $lib'
12458  ;;
12459
12460sunos4*)
12461  version_type=sunos
12462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12463  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12464  shlibpath_var=LD_LIBRARY_PATH
12465  shlibpath_overrides_runpath=yes
12466  if test "$with_gnu_ld" = yes; then
12467    need_lib_prefix=no
12468  fi
12469  need_version=yes
12470  ;;
12471
12472sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12473  version_type=linux
12474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475  soname_spec='${libname}${release}${shared_ext}$major'
12476  shlibpath_var=LD_LIBRARY_PATH
12477  case $host_vendor in
12478    sni)
12479      shlibpath_overrides_runpath=no
12480      need_lib_prefix=no
12481      export_dynamic_flag_spec='${wl}-Blargedynsym'
12482      runpath_var=LD_RUN_PATH
12483      ;;
12484    siemens)
12485      need_lib_prefix=no
12486      ;;
12487    motorola)
12488      need_lib_prefix=no
12489      need_version=no
12490      shlibpath_overrides_runpath=no
12491      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12492      ;;
12493  esac
12494  ;;
12495
12496sysv4*MP*)
12497  if test -d /usr/nec ;then
12498    version_type=linux
12499    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12500    soname_spec='$libname${shared_ext}.$major'
12501    shlibpath_var=LD_LIBRARY_PATH
12502  fi
12503  ;;
12504
12505uts4*)
12506  version_type=linux
12507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508  soname_spec='${libname}${release}${shared_ext}$major'
12509  shlibpath_var=LD_LIBRARY_PATH
12510  ;;
12511
12512*)
12513  dynamic_linker=no
12514  ;;
12515esac
12516echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12517echo "${ECHO_T}$dynamic_linker" >&6
12518test "$dynamic_linker" = no && can_build_shared=no
12519
12520echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12521echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12522hardcode_action_CXX=
12523if test -n "$hardcode_libdir_flag_spec_CXX" || \
12524   test -n "$runpath_var_CXX" || \
12525   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12526
12527  # We can hardcode non-existant directories.
12528  if test "$hardcode_direct_CXX" != no &&
12529     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12530     # have to relink, otherwise we might link with an installed library
12531     # when we should be linking with a yet-to-be-installed one
12532     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12533     test "$hardcode_minus_L_CXX" != no; then
12534    # Linking always hardcodes the temporary library directory.
12535    hardcode_action_CXX=relink
12536  else
12537    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12538    hardcode_action_CXX=immediate
12539  fi
12540else
12541  # We cannot hardcode anything, or else we can only hardcode existing
12542  # directories.
12543  hardcode_action_CXX=unsupported
12544fi
12545echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12546echo "${ECHO_T}$hardcode_action_CXX" >&6
12547
12548if test "$hardcode_action_CXX" = relink; then
12549  # Fast installation is not supported
12550  enable_fast_install=no
12551elif test "$shlibpath_overrides_runpath" = yes ||
12552     test "$enable_shared" = no; then
12553  # Fast installation is not necessary
12554  enable_fast_install=needless
12555fi
12556
12557striplib=
12558old_striplib=
12559echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12560echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12561if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12562  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12563  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12564  echo "$as_me:$LINENO: result: yes" >&5
12565echo "${ECHO_T}yes" >&6
12566else
12567# FIXME - insert some real tests, host_os isn't really good enough
12568  case $host_os in
12569   darwin*)
12570       if test -n "$STRIP" ; then
12571         striplib="$STRIP -x"
12572         echo "$as_me:$LINENO: result: yes" >&5
12573echo "${ECHO_T}yes" >&6
12574       else
12575  echo "$as_me:$LINENO: result: no" >&5
12576echo "${ECHO_T}no" >&6
12577fi
12578       ;;
12579   *)
12580  echo "$as_me:$LINENO: result: no" >&5
12581echo "${ECHO_T}no" >&6
12582    ;;
12583  esac
12584fi
12585
12586if test "x$enable_dlopen" != xyes; then
12587  enable_dlopen=unknown
12588  enable_dlopen_self=unknown
12589  enable_dlopen_self_static=unknown
12590else
12591  lt_cv_dlopen=no
12592  lt_cv_dlopen_libs=
12593
12594  case $host_os in
12595  beos*)
12596    lt_cv_dlopen="load_add_on"
12597    lt_cv_dlopen_libs=
12598    lt_cv_dlopen_self=yes
12599    ;;
12600
12601  mingw* | pw32*)
12602    lt_cv_dlopen="LoadLibrary"
12603    lt_cv_dlopen_libs=
12604   ;;
12605
12606  cygwin*)
12607    lt_cv_dlopen="dlopen"
12608    lt_cv_dlopen_libs=
12609   ;;
12610
12611  darwin*)
12612  # if libdl is installed we need to link against it
12613    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12614echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12615if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12616  echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618  ac_check_lib_save_LIBS=$LIBS
12619LIBS="-ldl  $LIBS"
12620cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h.  */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h.  */
12626
12627/* Override any gcc2 internal prototype to avoid an error.  */
12628#ifdef __cplusplus
12629extern "C"
12630#endif
12631/* We use char because int might match the return type of a gcc2
12632   builtin and then its argument prototype would still apply.  */
12633char dlopen ();
12634int
12635main ()
12636{
12637dlopen ();
12638  ;
12639  return 0;
12640}
12641_ACEOF
12642rm -f conftest.$ac_objext conftest$ac_exeext
12643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644  (eval $ac_link) 2>conftest.er1
12645  ac_status=$?
12646  grep -v '^ *+' conftest.er1 >conftest.err
12647  rm -f conftest.er1
12648  cat conftest.err >&5
12649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650  (exit $ac_status); } &&
12651	 { ac_try='test -z "$ac_cxx_werror_flag"
12652			 || test ! -s conftest.err'
12653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654  (eval $ac_try) 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); }; } &&
12658	 { ac_try='test -s conftest$ac_exeext'
12659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660  (eval $ac_try) 2>&5
12661  ac_status=$?
12662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663  (exit $ac_status); }; }; then
12664  ac_cv_lib_dl_dlopen=yes
12665else
12666  echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_cv_lib_dl_dlopen=no
12670fi
12671rm -f conftest.err conftest.$ac_objext \
12672      conftest$ac_exeext conftest.$ac_ext
12673LIBS=$ac_check_lib_save_LIBS
12674fi
12675echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12676echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12677if test $ac_cv_lib_dl_dlopen = yes; then
12678  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12679else
12680
12681    lt_cv_dlopen="dyld"
12682    lt_cv_dlopen_libs=
12683    lt_cv_dlopen_self=yes
12684
12685fi
12686
12687   ;;
12688
12689  haiku*)
12690    lt_cv_dlopen="load_add_on"
12691    lt_cv_dlopen_libs=
12692    lt_cv_dlopen_self=yes
12693    ;;
12694
12695  *)
12696    echo "$as_me:$LINENO: checking for shl_load" >&5
12697echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12698if test "${ac_cv_func_shl_load+set}" = set; then
12699  echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701  cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h.  */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h.  */
12707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12708   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12709#define shl_load innocuous_shl_load
12710
12711/* System header to define __stub macros and hopefully few prototypes,
12712    which can conflict with char shl_load (); below.
12713    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714    <limits.h> exists even on freestanding compilers.  */
12715
12716#ifdef __STDC__
12717# include <limits.h>
12718#else
12719# include <assert.h>
12720#endif
12721
12722#undef shl_load
12723
12724/* Override any gcc2 internal prototype to avoid an error.  */
12725#ifdef __cplusplus
12726extern "C"
12727{
12728#endif
12729/* We use char because int might match the return type of a gcc2
12730   builtin and then its argument prototype would still apply.  */
12731char shl_load ();
12732/* The GNU C library defines this for functions which it implements
12733    to always fail with ENOSYS.  Some functions are actually named
12734    something starting with __ and the normal name is an alias.  */
12735#if defined (__stub_shl_load) || defined (__stub___shl_load)
12736choke me
12737#else
12738char (*f) () = shl_load;
12739#endif
12740#ifdef __cplusplus
12741}
12742#endif
12743
12744int
12745main ()
12746{
12747return f != shl_load;
12748  ;
12749  return 0;
12750}
12751_ACEOF
12752rm -f conftest.$ac_objext conftest$ac_exeext
12753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754  (eval $ac_link) 2>conftest.er1
12755  ac_status=$?
12756  grep -v '^ *+' conftest.er1 >conftest.err
12757  rm -f conftest.er1
12758  cat conftest.err >&5
12759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760  (exit $ac_status); } &&
12761	 { ac_try='test -z "$ac_cxx_werror_flag"
12762			 || test ! -s conftest.err'
12763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764  (eval $ac_try) 2>&5
12765  ac_status=$?
12766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767  (exit $ac_status); }; } &&
12768	 { ac_try='test -s conftest$ac_exeext'
12769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770  (eval $ac_try) 2>&5
12771  ac_status=$?
12772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773  (exit $ac_status); }; }; then
12774  ac_cv_func_shl_load=yes
12775else
12776  echo "$as_me: failed program was:" >&5
12777sed 's/^/| /' conftest.$ac_ext >&5
12778
12779ac_cv_func_shl_load=no
12780fi
12781rm -f conftest.err conftest.$ac_objext \
12782      conftest$ac_exeext conftest.$ac_ext
12783fi
12784echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12785echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12786if test $ac_cv_func_shl_load = yes; then
12787  lt_cv_dlopen="shl_load"
12788else
12789  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12790echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12791if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12792  echo $ECHO_N "(cached) $ECHO_C" >&6
12793else
12794  ac_check_lib_save_LIBS=$LIBS
12795LIBS="-ldld  $LIBS"
12796cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h.  */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h.  */
12802
12803/* Override any gcc2 internal prototype to avoid an error.  */
12804#ifdef __cplusplus
12805extern "C"
12806#endif
12807/* We use char because int might match the return type of a gcc2
12808   builtin and then its argument prototype would still apply.  */
12809char shl_load ();
12810int
12811main ()
12812{
12813shl_load ();
12814  ;
12815  return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
12819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820  (eval $ac_link) 2>conftest.er1
12821  ac_status=$?
12822  grep -v '^ *+' conftest.er1 >conftest.err
12823  rm -f conftest.er1
12824  cat conftest.err >&5
12825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826  (exit $ac_status); } &&
12827	 { ac_try='test -z "$ac_cxx_werror_flag"
12828			 || test ! -s conftest.err'
12829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830  (eval $ac_try) 2>&5
12831  ac_status=$?
12832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833  (exit $ac_status); }; } &&
12834	 { ac_try='test -s conftest$ac_exeext'
12835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836  (eval $ac_try) 2>&5
12837  ac_status=$?
12838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839  (exit $ac_status); }; }; then
12840  ac_cv_lib_dld_shl_load=yes
12841else
12842  echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845ac_cv_lib_dld_shl_load=no
12846fi
12847rm -f conftest.err conftest.$ac_objext \
12848      conftest$ac_exeext conftest.$ac_ext
12849LIBS=$ac_check_lib_save_LIBS
12850fi
12851echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12852echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12853if test $ac_cv_lib_dld_shl_load = yes; then
12854  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12855else
12856  echo "$as_me:$LINENO: checking for dlopen" >&5
12857echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12858if test "${ac_cv_func_dlopen+set}" = set; then
12859  echo $ECHO_N "(cached) $ECHO_C" >&6
12860else
12861  cat >conftest.$ac_ext <<_ACEOF
12862/* confdefs.h.  */
12863_ACEOF
12864cat confdefs.h >>conftest.$ac_ext
12865cat >>conftest.$ac_ext <<_ACEOF
12866/* end confdefs.h.  */
12867/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12869#define dlopen innocuous_dlopen
12870
12871/* System header to define __stub macros and hopefully few prototypes,
12872    which can conflict with char dlopen (); below.
12873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12874    <limits.h> exists even on freestanding compilers.  */
12875
12876#ifdef __STDC__
12877# include <limits.h>
12878#else
12879# include <assert.h>
12880#endif
12881
12882#undef dlopen
12883
12884/* Override any gcc2 internal prototype to avoid an error.  */
12885#ifdef __cplusplus
12886extern "C"
12887{
12888#endif
12889/* We use char because int might match the return type of a gcc2
12890   builtin and then its argument prototype would still apply.  */
12891char dlopen ();
12892/* The GNU C library defines this for functions which it implements
12893    to always fail with ENOSYS.  Some functions are actually named
12894    something starting with __ and the normal name is an alias.  */
12895#if defined (__stub_dlopen) || defined (__stub___dlopen)
12896choke me
12897#else
12898char (*f) () = dlopen;
12899#endif
12900#ifdef __cplusplus
12901}
12902#endif
12903
12904int
12905main ()
12906{
12907return f != dlopen;
12908  ;
12909  return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext conftest$ac_exeext
12913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914  (eval $ac_link) 2>conftest.er1
12915  ac_status=$?
12916  grep -v '^ *+' conftest.er1 >conftest.err
12917  rm -f conftest.er1
12918  cat conftest.err >&5
12919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920  (exit $ac_status); } &&
12921	 { ac_try='test -z "$ac_cxx_werror_flag"
12922			 || test ! -s conftest.err'
12923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924  (eval $ac_try) 2>&5
12925  ac_status=$?
12926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927  (exit $ac_status); }; } &&
12928	 { ac_try='test -s conftest$ac_exeext'
12929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930  (eval $ac_try) 2>&5
12931  ac_status=$?
12932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933  (exit $ac_status); }; }; then
12934  ac_cv_func_dlopen=yes
12935else
12936  echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939ac_cv_func_dlopen=no
12940fi
12941rm -f conftest.err conftest.$ac_objext \
12942      conftest$ac_exeext conftest.$ac_ext
12943fi
12944echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12945echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12946if test $ac_cv_func_dlopen = yes; then
12947  lt_cv_dlopen="dlopen"
12948else
12949  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12950echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12951if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12952  echo $ECHO_N "(cached) $ECHO_C" >&6
12953else
12954  ac_check_lib_save_LIBS=$LIBS
12955LIBS="-ldl  $LIBS"
12956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h.  */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h.  */
12962
12963/* Override any gcc2 internal prototype to avoid an error.  */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967/* We use char because int might match the return type of a gcc2
12968   builtin and then its argument prototype would still apply.  */
12969char dlopen ();
12970int
12971main ()
12972{
12973dlopen ();
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12980  (eval $ac_link) 2>conftest.er1
12981  ac_status=$?
12982  grep -v '^ *+' conftest.er1 >conftest.err
12983  rm -f conftest.er1
12984  cat conftest.err >&5
12985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986  (exit $ac_status); } &&
12987	 { ac_try='test -z "$ac_cxx_werror_flag"
12988			 || test ! -s conftest.err'
12989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990  (eval $ac_try) 2>&5
12991  ac_status=$?
12992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993  (exit $ac_status); }; } &&
12994	 { ac_try='test -s conftest$ac_exeext'
12995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996  (eval $ac_try) 2>&5
12997  ac_status=$?
12998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999  (exit $ac_status); }; }; then
13000  ac_cv_lib_dl_dlopen=yes
13001else
13002  echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005ac_cv_lib_dl_dlopen=no
13006fi
13007rm -f conftest.err conftest.$ac_objext \
13008      conftest$ac_exeext conftest.$ac_ext
13009LIBS=$ac_check_lib_save_LIBS
13010fi
13011echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13012echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13013if test $ac_cv_lib_dl_dlopen = yes; then
13014  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13015else
13016  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13017echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13018if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13019  echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021  ac_check_lib_save_LIBS=$LIBS
13022LIBS="-lsvld  $LIBS"
13023cat >conftest.$ac_ext <<_ACEOF
13024/* confdefs.h.  */
13025_ACEOF
13026cat confdefs.h >>conftest.$ac_ext
13027cat >>conftest.$ac_ext <<_ACEOF
13028/* end confdefs.h.  */
13029
13030/* Override any gcc2 internal prototype to avoid an error.  */
13031#ifdef __cplusplus
13032extern "C"
13033#endif
13034/* We use char because int might match the return type of a gcc2
13035   builtin and then its argument prototype would still apply.  */
13036char dlopen ();
13037int
13038main ()
13039{
13040dlopen ();
13041  ;
13042  return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext conftest$ac_exeext
13046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047  (eval $ac_link) 2>conftest.er1
13048  ac_status=$?
13049  grep -v '^ *+' conftest.er1 >conftest.err
13050  rm -f conftest.er1
13051  cat conftest.err >&5
13052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053  (exit $ac_status); } &&
13054	 { ac_try='test -z "$ac_cxx_werror_flag"
13055			 || test ! -s conftest.err'
13056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057  (eval $ac_try) 2>&5
13058  ac_status=$?
13059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060  (exit $ac_status); }; } &&
13061	 { ac_try='test -s conftest$ac_exeext'
13062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063  (eval $ac_try) 2>&5
13064  ac_status=$?
13065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066  (exit $ac_status); }; }; then
13067  ac_cv_lib_svld_dlopen=yes
13068else
13069  echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072ac_cv_lib_svld_dlopen=no
13073fi
13074rm -f conftest.err conftest.$ac_objext \
13075      conftest$ac_exeext conftest.$ac_ext
13076LIBS=$ac_check_lib_save_LIBS
13077fi
13078echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13079echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13080if test $ac_cv_lib_svld_dlopen = yes; then
13081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13082else
13083  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13084echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13085if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13086  echo $ECHO_N "(cached) $ECHO_C" >&6
13087else
13088  ac_check_lib_save_LIBS=$LIBS
13089LIBS="-ldld  $LIBS"
13090cat >conftest.$ac_ext <<_ACEOF
13091/* confdefs.h.  */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h.  */
13096
13097/* Override any gcc2 internal prototype to avoid an error.  */
13098#ifdef __cplusplus
13099extern "C"
13100#endif
13101/* We use char because int might match the return type of a gcc2
13102   builtin and then its argument prototype would still apply.  */
13103char dld_link ();
13104int
13105main ()
13106{
13107dld_link ();
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114  (eval $ac_link) 2>conftest.er1
13115  ac_status=$?
13116  grep -v '^ *+' conftest.er1 >conftest.err
13117  rm -f conftest.er1
13118  cat conftest.err >&5
13119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120  (exit $ac_status); } &&
13121	 { ac_try='test -z "$ac_cxx_werror_flag"
13122			 || test ! -s conftest.err'
13123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124  (eval $ac_try) 2>&5
13125  ac_status=$?
13126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127  (exit $ac_status); }; } &&
13128	 { ac_try='test -s conftest$ac_exeext'
13129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130  (eval $ac_try) 2>&5
13131  ac_status=$?
13132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133  (exit $ac_status); }; }; then
13134  ac_cv_lib_dld_dld_link=yes
13135else
13136  echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
13139ac_cv_lib_dld_dld_link=no
13140fi
13141rm -f conftest.err conftest.$ac_objext \
13142      conftest$ac_exeext conftest.$ac_ext
13143LIBS=$ac_check_lib_save_LIBS
13144fi
13145echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13146echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13147if test $ac_cv_lib_dld_dld_link = yes; then
13148  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13149fi
13150
13151
13152fi
13153
13154
13155fi
13156
13157
13158fi
13159
13160
13161fi
13162
13163
13164fi
13165
13166    ;;
13167  esac
13168
13169  if test "x$lt_cv_dlopen" != xno; then
13170    enable_dlopen=yes
13171  else
13172    enable_dlopen=no
13173  fi
13174
13175  case $lt_cv_dlopen in
13176  dlopen)
13177    save_CPPFLAGS="$CPPFLAGS"
13178    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13179
13180    save_LDFLAGS="$LDFLAGS"
13181    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13182
13183    save_LIBS="$LIBS"
13184    LIBS="$lt_cv_dlopen_libs $LIBS"
13185
13186    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13187echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13188if test "${lt_cv_dlopen_self+set}" = set; then
13189  echo $ECHO_N "(cached) $ECHO_C" >&6
13190else
13191  	  if test "$cross_compiling" = yes; then :
13192  lt_cv_dlopen_self=cross
13193else
13194  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13195  lt_status=$lt_dlunknown
13196  cat > conftest.$ac_ext <<EOF
13197#line 13197 "configure"
13198#include "confdefs.h"
13199
13200#if HAVE_DLFCN_H
13201#include <dlfcn.h>
13202#endif
13203
13204#include <stdio.h>
13205
13206#ifdef RTLD_GLOBAL
13207#  define LT_DLGLOBAL		RTLD_GLOBAL
13208#else
13209#  ifdef DL_GLOBAL
13210#    define LT_DLGLOBAL		DL_GLOBAL
13211#  else
13212#    define LT_DLGLOBAL		0
13213#  endif
13214#endif
13215
13216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13217   find out it does not work in some platform. */
13218#ifndef LT_DLLAZY_OR_NOW
13219#  ifdef RTLD_LAZY
13220#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13221#  else
13222#    ifdef DL_LAZY
13223#      define LT_DLLAZY_OR_NOW		DL_LAZY
13224#    else
13225#      ifdef RTLD_NOW
13226#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13227#      else
13228#        ifdef DL_NOW
13229#          define LT_DLLAZY_OR_NOW	DL_NOW
13230#        else
13231#          define LT_DLLAZY_OR_NOW	0
13232#        endif
13233#      endif
13234#    endif
13235#  endif
13236#endif
13237
13238#ifdef __cplusplus
13239extern "C" void exit (int);
13240#endif
13241
13242void fnord() { int i=42;}
13243int main ()
13244{
13245  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13246  int status = $lt_dlunknown;
13247
13248  if (self)
13249    {
13250      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13251      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13252      /* dlclose (self); */
13253    }
13254
13255    exit (status);
13256}
13257EOF
13258  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259  (eval $ac_link) 2>&5
13260  ac_status=$?
13261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13263    (./conftest; exit; ) >&5 2>/dev/null
13264    lt_status=$?
13265    case x$lt_status in
13266      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13267      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13268      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13269    esac
13270  else :
13271    # compilation failed
13272    lt_cv_dlopen_self=no
13273  fi
13274fi
13275rm -fr conftest*
13276
13277
13278fi
13279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13280echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13281
13282    if test "x$lt_cv_dlopen_self" = xyes; then
13283      LDFLAGS="$LDFLAGS $link_static_flag"
13284      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13285echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13286if test "${lt_cv_dlopen_self_static+set}" = set; then
13287  echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289  	  if test "$cross_compiling" = yes; then :
13290  lt_cv_dlopen_self_static=cross
13291else
13292  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13293  lt_status=$lt_dlunknown
13294  cat > conftest.$ac_ext <<EOF
13295#line 13295 "configure"
13296#include "confdefs.h"
13297
13298#if HAVE_DLFCN_H
13299#include <dlfcn.h>
13300#endif
13301
13302#include <stdio.h>
13303
13304#ifdef RTLD_GLOBAL
13305#  define LT_DLGLOBAL		RTLD_GLOBAL
13306#else
13307#  ifdef DL_GLOBAL
13308#    define LT_DLGLOBAL		DL_GLOBAL
13309#  else
13310#    define LT_DLGLOBAL		0
13311#  endif
13312#endif
13313
13314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13315   find out it does not work in some platform. */
13316#ifndef LT_DLLAZY_OR_NOW
13317#  ifdef RTLD_LAZY
13318#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13319#  else
13320#    ifdef DL_LAZY
13321#      define LT_DLLAZY_OR_NOW		DL_LAZY
13322#    else
13323#      ifdef RTLD_NOW
13324#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13325#      else
13326#        ifdef DL_NOW
13327#          define LT_DLLAZY_OR_NOW	DL_NOW
13328#        else
13329#          define LT_DLLAZY_OR_NOW	0
13330#        endif
13331#      endif
13332#    endif
13333#  endif
13334#endif
13335
13336#ifdef __cplusplus
13337extern "C" void exit (int);
13338#endif
13339
13340void fnord() { int i=42;}
13341int main ()
13342{
13343  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13344  int status = $lt_dlunknown;
13345
13346  if (self)
13347    {
13348      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13349      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13350      /* dlclose (self); */
13351    }
13352
13353    exit (status);
13354}
13355EOF
13356  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13357  (eval $ac_link) 2>&5
13358  ac_status=$?
13359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13361    (./conftest; exit; ) >&5 2>/dev/null
13362    lt_status=$?
13363    case x$lt_status in
13364      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13365      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13366      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13367    esac
13368  else :
13369    # compilation failed
13370    lt_cv_dlopen_self_static=no
13371  fi
13372fi
13373rm -fr conftest*
13374
13375
13376fi
13377echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13378echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13379    fi
13380
13381    CPPFLAGS="$save_CPPFLAGS"
13382    LDFLAGS="$save_LDFLAGS"
13383    LIBS="$save_LIBS"
13384    ;;
13385  esac
13386
13387  case $lt_cv_dlopen_self in
13388  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13389  *) enable_dlopen_self=unknown ;;
13390  esac
13391
13392  case $lt_cv_dlopen_self_static in
13393  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13394  *) enable_dlopen_self_static=unknown ;;
13395  esac
13396fi
13397
13398
13399# The else clause should only fire when bootstrapping the
13400# libtool distribution, otherwise you forgot to ship ltmain.sh
13401# with your package, and you will get complaints that there are
13402# no rules to generate ltmain.sh.
13403if test -f "$ltmain"; then
13404  # See if we are running on zsh, and set the options which allow our commands through
13405  # without removal of \ escapes.
13406  if test -n "${ZSH_VERSION+set}" ; then
13407    setopt NO_GLOB_SUBST
13408  fi
13409  # Now quote all the things that may contain metacharacters while being
13410  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13411  # variables and quote the copies for generation of the libtool script.
13412  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13413    SED SHELL STRIP \
13414    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13415    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13416    deplibs_check_method reload_flag reload_cmds need_locks \
13417    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13418    lt_cv_sys_global_symbol_to_c_name_address \
13419    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13420    old_postinstall_cmds old_postuninstall_cmds \
13421    compiler_CXX \
13422    CC_CXX \
13423    LD_CXX \
13424    lt_prog_compiler_wl_CXX \
13425    lt_prog_compiler_pic_CXX \
13426    lt_prog_compiler_static_CXX \
13427    lt_prog_compiler_no_builtin_flag_CXX \
13428    export_dynamic_flag_spec_CXX \
13429    thread_safe_flag_spec_CXX \
13430    whole_archive_flag_spec_CXX \
13431    enable_shared_with_static_runtimes_CXX \
13432    old_archive_cmds_CXX \
13433    old_archive_from_new_cmds_CXX \
13434    predep_objects_CXX \
13435    postdep_objects_CXX \
13436    predeps_CXX \
13437    postdeps_CXX \
13438    compiler_lib_search_path_CXX \
13439    archive_cmds_CXX \
13440    archive_expsym_cmds_CXX \
13441    postinstall_cmds_CXX \
13442    postuninstall_cmds_CXX \
13443    old_archive_from_expsyms_cmds_CXX \
13444    allow_undefined_flag_CXX \
13445    no_undefined_flag_CXX \
13446    export_symbols_cmds_CXX \
13447    hardcode_libdir_flag_spec_CXX \
13448    hardcode_libdir_flag_spec_ld_CXX \
13449    hardcode_libdir_separator_CXX \
13450    hardcode_automatic_CXX \
13451    module_cmds_CXX \
13452    module_expsym_cmds_CXX \
13453    lt_cv_prog_compiler_c_o_CXX \
13454    exclude_expsyms_CXX \
13455    include_expsyms_CXX; do
13456
13457    case $var in
13458    old_archive_cmds_CXX | \
13459    old_archive_from_new_cmds_CXX | \
13460    archive_cmds_CXX | \
13461    archive_expsym_cmds_CXX | \
13462    module_cmds_CXX | \
13463    module_expsym_cmds_CXX | \
13464    old_archive_from_expsyms_cmds_CXX | \
13465    export_symbols_cmds_CXX | \
13466    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13467    postinstall_cmds | postuninstall_cmds | \
13468    old_postinstall_cmds | old_postuninstall_cmds | \
13469    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13470      # Double-quote double-evaled strings.
13471      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13472      ;;
13473    *)
13474      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13475      ;;
13476    esac
13477  done
13478
13479  case $lt_echo in
13480  *'\$0 --fallback-echo"')
13481    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13482    ;;
13483  esac
13484
13485cfgfile="$ofile"
13486
13487  cat <<__EOF__ >> "$cfgfile"
13488# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13489
13490# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13491
13492# Shell to use when invoking shell scripts.
13493SHELL=$lt_SHELL
13494
13495# Whether or not to build shared libraries.
13496build_libtool_libs=$enable_shared
13497
13498# Whether or not to build static libraries.
13499build_old_libs=$enable_static
13500
13501# Whether or not to add -lc for building shared libraries.
13502build_libtool_need_lc=$archive_cmds_need_lc_CXX
13503
13504# Whether or not to disallow shared libs when runtime libs are static
13505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13506
13507# Whether or not to optimize for fast installation.
13508fast_install=$enable_fast_install
13509
13510# The host system.
13511host_alias=$host_alias
13512host=$host
13513host_os=$host_os
13514
13515# The build system.
13516build_alias=$build_alias
13517build=$build
13518build_os=$build_os
13519
13520# An echo program that does not interpret backslashes.
13521echo=$lt_echo
13522
13523# The archiver.
13524AR=$lt_AR
13525AR_FLAGS=$lt_AR_FLAGS
13526
13527# A C compiler.
13528LTCC=$lt_LTCC
13529
13530# A language-specific compiler.
13531CC=$lt_compiler_CXX
13532
13533# Is the compiler the GNU C compiler?
13534with_gcc=$GCC_CXX
13535
13536# An ERE matcher.
13537EGREP=$lt_EGREP
13538
13539# The linker used to build libraries.
13540LD=$lt_LD_CXX
13541
13542# Whether we need hard or soft links.
13543LN_S=$lt_LN_S
13544
13545# A BSD-compatible nm program.
13546NM=$lt_NM
13547
13548# A symbol stripping program
13549STRIP=$lt_STRIP
13550
13551# Used to examine libraries when file_magic_cmd begins "file"
13552MAGIC_CMD=$MAGIC_CMD
13553
13554# Used on cygwin: DLL creation program.
13555DLLTOOL="$DLLTOOL"
13556
13557# Used on cygwin: object dumper.
13558OBJDUMP="$OBJDUMP"
13559
13560# Used on cygwin: assembler.
13561AS="$AS"
13562
13563# The name of the directory that contains temporary libtool files.
13564objdir=$objdir
13565
13566# How to create reloadable object files.
13567reload_flag=$lt_reload_flag
13568reload_cmds=$lt_reload_cmds
13569
13570# How to pass a linker flag through the compiler.
13571wl=$lt_lt_prog_compiler_wl_CXX
13572
13573# Object file suffix (normally "o").
13574objext="$ac_objext"
13575
13576# Old archive suffix (normally "a").
13577libext="$libext"
13578
13579# Shared library suffix (normally ".so").
13580shrext_cmds='$shrext_cmds'
13581
13582# Executable file suffix (normally "").
13583exeext="$exeext"
13584
13585# Additional compiler flags for building library objects.
13586pic_flag=$lt_lt_prog_compiler_pic_CXX
13587pic_mode=$pic_mode
13588
13589# What is the maximum length of a command?
13590max_cmd_len=$lt_cv_sys_max_cmd_len
13591
13592# Does compiler simultaneously support -c and -o options?
13593compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13594
13595# Must we lock files when doing compilation?
13596need_locks=$lt_need_locks
13597
13598# Do we need the lib prefix for modules?
13599need_lib_prefix=$need_lib_prefix
13600
13601# Do we need a version for libraries?
13602need_version=$need_version
13603
13604# Whether dlopen is supported.
13605dlopen_support=$enable_dlopen
13606
13607# Whether dlopen of programs is supported.
13608dlopen_self=$enable_dlopen_self
13609
13610# Whether dlopen of statically linked programs is supported.
13611dlopen_self_static=$enable_dlopen_self_static
13612
13613# Compiler flag to prevent dynamic linking.
13614link_static_flag=$lt_lt_prog_compiler_static_CXX
13615
13616# Compiler flag to turn off builtin functions.
13617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13618
13619# Compiler flag to allow reflexive dlopens.
13620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13621
13622# Compiler flag to generate shared objects directly from archives.
13623whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13624
13625# Compiler flag to generate thread-safe objects.
13626thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13627
13628# Library versioning type.
13629version_type=$version_type
13630
13631# Format of library name prefix.
13632libname_spec=$lt_libname_spec
13633
13634# List of archive names.  First name is the real one, the rest are links.
13635# The last name is the one that the linker finds with -lNAME.
13636library_names_spec=$lt_library_names_spec
13637
13638# The coded name of the library, if different from the real name.
13639soname_spec=$lt_soname_spec
13640
13641# Commands used to build and install an old-style archive.
13642RANLIB=$lt_RANLIB
13643old_archive_cmds=$lt_old_archive_cmds_CXX
13644old_postinstall_cmds=$lt_old_postinstall_cmds
13645old_postuninstall_cmds=$lt_old_postuninstall_cmds
13646
13647# Create an old-style archive from a shared archive.
13648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13649
13650# Create a temporary old-style archive to link instead of a shared archive.
13651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13652
13653# Commands used to build and install a shared archive.
13654archive_cmds=$lt_archive_cmds_CXX
13655archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13656postinstall_cmds=$lt_postinstall_cmds
13657postuninstall_cmds=$lt_postuninstall_cmds
13658
13659# Commands used to build a loadable module (assumed same as above if empty)
13660module_cmds=$lt_module_cmds_CXX
13661module_expsym_cmds=$lt_module_expsym_cmds_CXX
13662
13663# Commands to strip libraries.
13664old_striplib=$lt_old_striplib
13665striplib=$lt_striplib
13666
13667# Dependencies to place before the objects being linked to create a
13668# shared library.
13669predep_objects=$lt_predep_objects_CXX
13670
13671# Dependencies to place after the objects being linked to create a
13672# shared library.
13673postdep_objects=$lt_postdep_objects_CXX
13674
13675# Dependencies to place before the objects being linked to create a
13676# shared library.
13677predeps=$lt_predeps_CXX
13678
13679# Dependencies to place after the objects being linked to create a
13680# shared library.
13681postdeps=$lt_postdeps_CXX
13682
13683# The library search path used internally by the compiler when linking
13684# a shared library.
13685compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13686
13687# Method to check whether dependent libraries are shared objects.
13688deplibs_check_method=$lt_deplibs_check_method
13689
13690# Command to use when deplibs_check_method == file_magic.
13691file_magic_cmd=$lt_file_magic_cmd
13692
13693# Flag that allows shared libraries with undefined symbols to be built.
13694allow_undefined_flag=$lt_allow_undefined_flag_CXX
13695
13696# Flag that forces no undefined symbols.
13697no_undefined_flag=$lt_no_undefined_flag_CXX
13698
13699# Commands used to finish a libtool library installation in a directory.
13700finish_cmds=$lt_finish_cmds
13701
13702# Same as above, but a single script fragment to be evaled but not shown.
13703finish_eval=$lt_finish_eval
13704
13705# Take the output of nm and produce a listing of raw symbols and C names.
13706global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13707
13708# Transform the output of nm in a proper C declaration
13709global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13710
13711# Transform the output of nm in a C name address pair
13712global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13713
13714# This is the shared library runtime path variable.
13715runpath_var=$runpath_var
13716
13717# This is the shared library path variable.
13718shlibpath_var=$shlibpath_var
13719
13720# Is shlibpath searched before the hard-coded library search path?
13721shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13722
13723# How to hardcode a shared library path into an executable.
13724hardcode_action=$hardcode_action_CXX
13725
13726# Whether we should hardcode library paths into libraries.
13727hardcode_into_libs=$hardcode_into_libs
13728
13729# Flag to hardcode \$libdir into a binary during linking.
13730# This must work even if \$libdir does not exist.
13731hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13732
13733# If ld is used when linking, flag to hardcode \$libdir into
13734# a binary during linking. This must work even if \$libdir does
13735# not exist.
13736hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13737
13738# Whether we need a single -rpath flag with a separated argument.
13739hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13740
13741# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13742# resulting binary.
13743hardcode_direct=$hardcode_direct_CXX
13744
13745# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13746# resulting binary.
13747hardcode_minus_L=$hardcode_minus_L_CXX
13748
13749# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13750# the resulting binary.
13751hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13752
13753# Set to yes if building a shared library automatically hardcodes DIR into the library
13754# and all subsequent libraries and executables linked against it.
13755hardcode_automatic=$hardcode_automatic_CXX
13756
13757# Variables whose values should be saved in libtool wrapper scripts and
13758# restored at relink time.
13759variables_saved_for_relink="$variables_saved_for_relink"
13760
13761# Whether libtool must link a program against all its dependency libraries.
13762link_all_deplibs=$link_all_deplibs_CXX
13763
13764# Compile-time system search path for libraries
13765sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13766
13767# Run-time system search path for libraries
13768sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13769
13770# Fix the shell variable \$srcfile for the compiler.
13771fix_srcfile_path="$fix_srcfile_path_CXX"
13772
13773# Set to yes if exported symbols are required.
13774always_export_symbols=$always_export_symbols_CXX
13775
13776# The commands to list exported symbols.
13777export_symbols_cmds=$lt_export_symbols_cmds_CXX
13778
13779# The commands to extract the exported symbol list from a shared archive.
13780extract_expsyms_cmds=$lt_extract_expsyms_cmds
13781
13782# Symbols that should not be listed in the preloaded symbols.
13783exclude_expsyms=$lt_exclude_expsyms_CXX
13784
13785# Symbols that must always be exported.
13786include_expsyms=$lt_include_expsyms_CXX
13787
13788# ### END LIBTOOL TAG CONFIG: $tagname
13789
13790__EOF__
13791
13792
13793else
13794  # If there is no Makefile yet, we rely on a make rule to execute
13795  # `config.status --recheck' to rerun these tests and create the
13796  # libtool script then.
13797  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13798  if test -f "$ltmain_in"; then
13799    test -f Makefile && make "$ltmain"
13800  fi
13801fi
13802
13803
13804ac_ext=c
13805ac_cpp='$CPP $CPPFLAGS'
13806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808ac_compiler_gnu=$ac_cv_c_compiler_gnu
13809
13810CC=$lt_save_CC
13811LDCXX=$LD
13812LD=$lt_save_LD
13813GCC=$lt_save_GCC
13814with_gnu_ldcxx=$with_gnu_ld
13815with_gnu_ld=$lt_save_with_gnu_ld
13816lt_cv_path_LDCXX=$lt_cv_path_LD
13817lt_cv_path_LD=$lt_save_path_LD
13818lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13819lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13820
13821	else
13822	  tagname=""
13823	fi
13824	;;
13825
13826      F77)
13827	if test -n "$F77" && test "X$F77" != "Xno"; then
13828
13829ac_ext=f
13830ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13831ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13833
13834
13835archive_cmds_need_lc_F77=no
13836allow_undefined_flag_F77=
13837always_export_symbols_F77=no
13838archive_expsym_cmds_F77=
13839export_dynamic_flag_spec_F77=
13840hardcode_direct_F77=no
13841hardcode_libdir_flag_spec_F77=
13842hardcode_libdir_flag_spec_ld_F77=
13843hardcode_libdir_separator_F77=
13844hardcode_minus_L_F77=no
13845hardcode_automatic_F77=no
13846module_cmds_F77=
13847module_expsym_cmds_F77=
13848link_all_deplibs_F77=unknown
13849old_archive_cmds_F77=$old_archive_cmds
13850no_undefined_flag_F77=
13851whole_archive_flag_spec_F77=
13852enable_shared_with_static_runtimes_F77=no
13853
13854# Source file extension for f77 test sources.
13855ac_ext=f
13856
13857# Object file extension for compiled f77 test sources.
13858objext=o
13859objext_F77=$objext
13860
13861# Code to be used in simple compile tests
13862lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13863
13864# Code to be used in simple link tests
13865lt_simple_link_test_code="      program t\n      end\n"
13866
13867# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13868
13869# If no C compiler was specified, use CC.
13870LTCC=${LTCC-"$CC"}
13871
13872# Allow CC to be a program name with arguments.
13873compiler=$CC
13874
13875
13876# save warnings/boilerplate of simple test code
13877ac_outfile=conftest.$ac_objext
13878printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13880_lt_compiler_boilerplate=`cat conftest.err`
13881$rm conftest*
13882
13883ac_outfile=conftest.$ac_objext
13884printf "$lt_simple_link_test_code" >conftest.$ac_ext
13885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13886_lt_linker_boilerplate=`cat conftest.err`
13887$rm conftest*
13888
13889
13890# Allow CC to be a program name with arguments.
13891lt_save_CC="$CC"
13892CC=${F77-"f77"}
13893compiler=$CC
13894compiler_F77=$CC
13895for cc_temp in $compiler""; do
13896  case $cc_temp in
13897    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13899    \-*) ;;
13900    *) break;;
13901  esac
13902done
13903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13904
13905
13906echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13907echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13908echo "$as_me:$LINENO: result: $can_build_shared" >&5
13909echo "${ECHO_T}$can_build_shared" >&6
13910
13911echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13912echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13913test "$can_build_shared" = "no" && enable_shared=no
13914
13915# On AIX, shared libraries and static libraries use the same namespace, and
13916# are all built from PIC.
13917case $host_os in
13918aix3*)
13919  test "$enable_shared" = yes && enable_static=no
13920  if test -n "$RANLIB"; then
13921    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13922    postinstall_cmds='$RANLIB $lib'
13923  fi
13924  ;;
13925aix4* | aix5*)
13926  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13927    test "$enable_shared" = yes && enable_static=no
13928  fi
13929  ;;
13930esac
13931echo "$as_me:$LINENO: result: $enable_shared" >&5
13932echo "${ECHO_T}$enable_shared" >&6
13933
13934echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13935echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13936# Make sure either enable_shared or enable_static is yes.
13937test "$enable_shared" = yes || enable_static=yes
13938echo "$as_me:$LINENO: result: $enable_static" >&5
13939echo "${ECHO_T}$enable_static" >&6
13940
13941test "$ld_shlibs_F77" = no && can_build_shared=no
13942
13943GCC_F77="$G77"
13944LD_F77="$LD"
13945
13946lt_prog_compiler_wl_F77=
13947lt_prog_compiler_pic_F77=
13948lt_prog_compiler_static_F77=
13949
13950echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13951echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13952
13953  if test "$GCC" = yes; then
13954    lt_prog_compiler_wl_F77='-Wl,'
13955    lt_prog_compiler_static_F77='-static'
13956
13957    case $host_os in
13958      aix*)
13959      # All AIX code is PIC.
13960      if test "$host_cpu" = ia64; then
13961	# AIX 5 now supports IA64 processor
13962	lt_prog_compiler_static_F77='-Bstatic'
13963      fi
13964      ;;
13965
13966    amigaos*)
13967      # FIXME: we need at least 68020 code to build shared libraries, but
13968      # adding the `-m68020' flag to GCC prevents building anything better,
13969      # like `-m68040'.
13970      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13971      ;;
13972
13973    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
13974    | osf5*)
13975      # PIC is the default for these OSes.
13976      ;;
13977
13978    mingw* | pw32* | os2*)
13979      # This hack is so that the source file can tell whether it is being
13980      # built for inclusion in a dll (and should export symbols for example).
13981      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13982      ;;
13983
13984    darwin* | rhapsody*)
13985      # PIC is the default on this platform
13986      # Common symbols not allowed in MH_DYLIB files
13987      lt_prog_compiler_pic_F77='-fno-common'
13988      ;;
13989
13990    msdosdjgpp*)
13991      # Just because we use GCC doesn't mean we suddenly get shared libraries
13992      # on systems that don't support them.
13993      lt_prog_compiler_can_build_shared_F77=no
13994      enable_shared=no
13995      ;;
13996
13997    sysv4*MP*)
13998      if test -d /usr/nec; then
13999	lt_prog_compiler_pic_F77=-Kconform_pic
14000      fi
14001      ;;
14002
14003    hpux*)
14004      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14005      # not for PA HP-UX.
14006      case $host_cpu in
14007      hppa*64*|ia64*)
14008	# +Z the default
14009	;;
14010      *)
14011	lt_prog_compiler_pic_F77='-fPIC'
14012	;;
14013      esac
14014      ;;
14015
14016    *)
14017      lt_prog_compiler_pic_F77='-fPIC'
14018      ;;
14019    esac
14020  else
14021    # PORTME Check for flag to pass linker flags through the system compiler.
14022    case $host_os in
14023    aix*)
14024      lt_prog_compiler_wl_F77='-Wl,'
14025      if test "$host_cpu" = ia64; then
14026	# AIX 5 now supports IA64 processor
14027	lt_prog_compiler_static_F77='-Bstatic'
14028      else
14029	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14030      fi
14031      ;;
14032      darwin*)
14033        # PIC is the default on this platform
14034        # Common symbols not allowed in MH_DYLIB files
14035       case $cc_basename in
14036         xlc*)
14037         lt_prog_compiler_pic_F77='-qnocommon'
14038         lt_prog_compiler_wl_F77='-Wl,'
14039         ;;
14040       esac
14041       ;;
14042
14043    mingw* | pw32* | os2*)
14044      # This hack is so that the source file can tell whether it is being
14045      # built for inclusion in a dll (and should export symbols for example).
14046      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14047      ;;
14048
14049    hpux9* | hpux10* | hpux11*)
14050      lt_prog_compiler_wl_F77='-Wl,'
14051      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14052      # not for PA HP-UX.
14053      case $host_cpu in
14054      hppa*64*|ia64*)
14055	# +Z the default
14056	;;
14057      *)
14058	lt_prog_compiler_pic_F77='+Z'
14059	;;
14060      esac
14061      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14062      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14063      ;;
14064
14065    irix5* | irix6* | nonstopux*)
14066      lt_prog_compiler_wl_F77='-Wl,'
14067      # PIC (with -KPIC) is the default.
14068      lt_prog_compiler_static_F77='-non_shared'
14069      ;;
14070
14071    newsos6)
14072      lt_prog_compiler_pic_F77='-KPIC'
14073      lt_prog_compiler_static_F77='-Bstatic'
14074      ;;
14075
14076    linux*)
14077      case $cc_basename in
14078      icc* | ecc*)
14079	lt_prog_compiler_wl_F77='-Wl,'
14080	lt_prog_compiler_pic_F77='-KPIC'
14081	lt_prog_compiler_static_F77='-static'
14082        ;;
14083      pgcc* | pgf77* | pgf90* | pgf95*)
14084        # Portland Group compilers (*not* the Pentium gcc compiler,
14085	# which looks to be a dead project)
14086	lt_prog_compiler_wl_F77='-Wl,'
14087	lt_prog_compiler_pic_F77='-fpic'
14088	lt_prog_compiler_static_F77='-Bstatic'
14089        ;;
14090      ccc*)
14091        lt_prog_compiler_wl_F77='-Wl,'
14092        # All Alpha code is PIC.
14093        lt_prog_compiler_static_F77='-non_shared'
14094        ;;
14095      esac
14096      ;;
14097
14098    osf3* | osf4* | osf5*)
14099      lt_prog_compiler_wl_F77='-Wl,'
14100      # All OSF/1 code is PIC.
14101      lt_prog_compiler_static_F77='-non_shared'
14102      ;;
14103
14104    sco3.2v5*)
14105      lt_prog_compiler_pic_F77='-Kpic'
14106      lt_prog_compiler_static_F77='-dn'
14107      ;;
14108
14109    solaris*)
14110      lt_prog_compiler_pic_F77='-KPIC'
14111      lt_prog_compiler_static_F77='-Bstatic'
14112      case $cc_basename in
14113      f77* | f90* | f95*)
14114	lt_prog_compiler_wl_F77='-Qoption ld ';;
14115      *)
14116	lt_prog_compiler_wl_F77='-Wl,';;
14117      esac
14118      ;;
14119
14120    sunos4*)
14121      lt_prog_compiler_wl_F77='-Qoption ld '
14122      lt_prog_compiler_pic_F77='-PIC'
14123      lt_prog_compiler_static_F77='-Bstatic'
14124      ;;
14125
14126    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127      lt_prog_compiler_wl_F77='-Wl,'
14128      lt_prog_compiler_pic_F77='-KPIC'
14129      lt_prog_compiler_static_F77='-Bstatic'
14130      ;;
14131
14132    sysv4*MP*)
14133      if test -d /usr/nec ;then
14134	lt_prog_compiler_pic_F77='-Kconform_pic'
14135	lt_prog_compiler_static_F77='-Bstatic'
14136      fi
14137      ;;
14138
14139    unicos*)
14140      lt_prog_compiler_wl_F77='-Wl,'
14141      lt_prog_compiler_can_build_shared_F77=no
14142      ;;
14143
14144    uts4*)
14145      lt_prog_compiler_pic_F77='-pic'
14146      lt_prog_compiler_static_F77='-Bstatic'
14147      ;;
14148
14149    *)
14150      lt_prog_compiler_can_build_shared_F77=no
14151      ;;
14152    esac
14153  fi
14154
14155echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14156echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14157
14158#
14159# Check to make sure the PIC flag actually works.
14160#
14161if test -n "$lt_prog_compiler_pic_F77"; then
14162
14163echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14164echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14165if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14166  echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168  lt_prog_compiler_pic_works_F77=no
14169  ac_outfile=conftest.$ac_objext
14170   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14171   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14172   # Insert the option either (1) after the last *FLAGS variable, or
14173   # (2) before a word containing "conftest.", or (3) at the end.
14174   # Note that $ac_compile itself does not contain backslashes and begins
14175   # with a dollar sign (not a hyphen), so the echo should work correctly.
14176   # The option is referenced via a variable to avoid confusing sed.
14177   lt_compile=`echo "$ac_compile" | $SED \
14178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14180   -e 's:$: $lt_compiler_flag:'`
14181   (eval echo "\"\$as_me:14181: $lt_compile\"" >&5)
14182   (eval "$lt_compile" 2>conftest.err)
14183   ac_status=$?
14184   cat conftest.err >&5
14185   echo "$as_me:14185: \$? = $ac_status" >&5
14186   if (exit $ac_status) && test -s "$ac_outfile"; then
14187     # The compiler can only warn and ignore the option if not recognized
14188     # So say no if there are warnings other than the usual output.
14189     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14190     $SED '/^$/d' conftest.err >conftest.er2
14191     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14192       lt_prog_compiler_pic_works_F77=yes
14193     fi
14194   fi
14195   $rm conftest*
14196
14197fi
14198echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14199echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14200
14201if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14202    case $lt_prog_compiler_pic_F77 in
14203     "" | " "*) ;;
14204     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14205     esac
14206else
14207    lt_prog_compiler_pic_F77=
14208     lt_prog_compiler_can_build_shared_F77=no
14209fi
14210
14211fi
14212case $host_os in
14213  # For platforms which do not support PIC, -DPIC is meaningless:
14214  *djgpp*)
14215    lt_prog_compiler_pic_F77=
14216    ;;
14217  *)
14218    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14219    ;;
14220esac
14221
14222echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14223echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14224if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14225  echo $ECHO_N "(cached) $ECHO_C" >&6
14226else
14227  lt_cv_prog_compiler_c_o_F77=no
14228   $rm -r conftest 2>/dev/null
14229   mkdir conftest
14230   cd conftest
14231   mkdir out
14232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14233
14234   lt_compiler_flag="-o out/conftest2.$ac_objext"
14235   # Insert the option either (1) after the last *FLAGS variable, or
14236   # (2) before a word containing "conftest.", or (3) at the end.
14237   # Note that $ac_compile itself does not contain backslashes and begins
14238   # with a dollar sign (not a hyphen), so the echo should work correctly.
14239   lt_compile=`echo "$ac_compile" | $SED \
14240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14242   -e 's:$: $lt_compiler_flag:'`
14243   (eval echo "\"\$as_me:14243: $lt_compile\"" >&5)
14244   (eval "$lt_compile" 2>out/conftest.err)
14245   ac_status=$?
14246   cat out/conftest.err >&5
14247   echo "$as_me:14247: \$? = $ac_status" >&5
14248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14249   then
14250     # The compiler can only warn and ignore the option if not recognized
14251     # So say no if there are warnings
14252     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14253     $SED '/^$/d' out/conftest.err >out/conftest.er2
14254     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14255       lt_cv_prog_compiler_c_o_F77=yes
14256     fi
14257   fi
14258   chmod u+w . 2>&5
14259   $rm conftest*
14260   # SGI C++ compiler will create directory out/ii_files/ for
14261   # template instantiation
14262   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14263   $rm out/* && rmdir out
14264   cd ..
14265   rmdir conftest
14266   $rm conftest*
14267
14268fi
14269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14270echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14271
14272
14273hard_links="nottested"
14274if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14275  # do not overwrite the value of need_locks provided by the user
14276  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14277echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14278  hard_links=yes
14279  $rm conftest*
14280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14281  touch conftest.a
14282  ln conftest.a conftest.b 2>&5 || hard_links=no
14283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14284  echo "$as_me:$LINENO: result: $hard_links" >&5
14285echo "${ECHO_T}$hard_links" >&6
14286  if test "$hard_links" = no; then
14287    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14288echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14289    need_locks=warn
14290  fi
14291else
14292  need_locks=no
14293fi
14294
14295echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14297
14298  runpath_var=
14299  allow_undefined_flag_F77=
14300  enable_shared_with_static_runtimes_F77=no
14301  archive_cmds_F77=
14302  archive_expsym_cmds_F77=
14303  old_archive_From_new_cmds_F77=
14304  old_archive_from_expsyms_cmds_F77=
14305  export_dynamic_flag_spec_F77=
14306  whole_archive_flag_spec_F77=
14307  thread_safe_flag_spec_F77=
14308  hardcode_libdir_flag_spec_F77=
14309  hardcode_libdir_flag_spec_ld_F77=
14310  hardcode_libdir_separator_F77=
14311  hardcode_direct_F77=no
14312  hardcode_minus_L_F77=no
14313  hardcode_shlibpath_var_F77=unsupported
14314  link_all_deplibs_F77=unknown
14315  hardcode_automatic_F77=no
14316  module_cmds_F77=
14317  module_expsym_cmds_F77=
14318  always_export_symbols_F77=no
14319  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14320  # include_expsyms should be a list of space-separated symbols to be *always*
14321  # included in the symbol list
14322  include_expsyms_F77=
14323  # exclude_expsyms can be an extended regexp of symbols to exclude
14324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14326  # as well as any symbol that contains `d'.
14327  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14329  # platforms (ab)use it in PIC code, but their linkers get confused if
14330  # the symbol is explicitly referenced.  Since portable code cannot
14331  # rely on this symbol name, it's probably fine to never include it in
14332  # preloaded symbol tables.
14333  extract_expsyms_cmds=
14334  # Just being paranoid about ensuring that cc_basename is set.
14335  for cc_temp in $compiler""; do
14336  case $cc_temp in
14337    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14338    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14339    \-*) ;;
14340    *) break;;
14341  esac
14342done
14343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14344
14345  case $host_os in
14346  cygwin* | mingw* | pw32*)
14347    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14348    # When not using gcc, we currently assume that we are using
14349    # Microsoft Visual C++.
14350    if test "$GCC" != yes; then
14351      with_gnu_ld=no
14352    fi
14353    ;;
14354  openbsd*)
14355    with_gnu_ld=no
14356    ;;
14357  esac
14358
14359  ld_shlibs_F77=yes
14360  if test "$with_gnu_ld" = yes; then
14361    # If archive_cmds runs LD, not CC, wlarc should be empty
14362    wlarc='${wl}'
14363
14364    # Set some defaults for GNU ld with shared library support. These
14365    # are reset later if shared libraries are not supported. Putting them
14366    # here allows them to be overridden if necessary.
14367    runpath_var=LD_RUN_PATH
14368    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14369    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14370    # ancient GNU ld didn't support --whole-archive et. al.
14371    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14372	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14373      else
14374  	whole_archive_flag_spec_F77=
14375    fi
14376    supports_anon_versioning=no
14377    case `$LD -v 2>/dev/null` in
14378      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14379      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14380      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14381      *\ 2.11.*) ;; # other 2.11 versions
14382      *) supports_anon_versioning=yes ;;
14383    esac
14384
14385    # See if GNU ld supports shared libraries.
14386    case $host_os in
14387    aix3* | aix4* | aix5*)
14388      # On AIX/PPC, the GNU linker is very broken
14389      if test "$host_cpu" != ia64; then
14390	ld_shlibs_F77=no
14391	cat <<EOF 1>&2
14392
14393*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14394*** to be unable to reliably create shared libraries on AIX.
14395*** Therefore, libtool is disabling shared libraries support.  If you
14396*** really care for shared libraries, you may want to modify your PATH
14397*** so that a non-GNU linker is found, and then restart.
14398
14399EOF
14400      fi
14401      ;;
14402
14403    amigaos*)
14404      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)'
14405      hardcode_libdir_flag_spec_F77='-L$libdir'
14406      hardcode_minus_L_F77=yes
14407
14408      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14409      # that the semantics of dynamic libraries on AmigaOS, at least up
14410      # to version 4, is to share data among multiple programs linked
14411      # with the same dynamic library.  Since this doesn't match the
14412      # behavior of shared libraries on other platforms, we can't use
14413      # them.
14414      ld_shlibs_F77=no
14415      ;;
14416
14417    beos*)
14418      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14419	allow_undefined_flag_F77=unsupported
14420	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14421	# support --undefined.  This deserves some investigation.  FIXME
14422	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423      else
14424	ld_shlibs_F77=no
14425      fi
14426      ;;
14427
14428    cygwin* | mingw* | pw32*)
14429      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14430      # as there is no search path for DLLs.
14431      hardcode_libdir_flag_spec_F77='-L$libdir'
14432      allow_undefined_flag_F77=unsupported
14433      always_export_symbols_F77=no
14434      enable_shared_with_static_runtimes_F77=yes
14435      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14436
14437      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14438        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14439	# If the export-symbols file already is a .def file (1st line
14440	# is EXPORTS), use it as is; otherwise, prepend...
14441	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14442	  cp $export_symbols $output_objdir/$soname.def;
14443	else
14444	  echo EXPORTS > $output_objdir/$soname.def;
14445	  cat $export_symbols >> $output_objdir/$soname.def;
14446	fi~
14447	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14448      else
14449	ld_shlibs_F77=no
14450      fi
14451      ;;
14452
14453    haiku*)
14454      allow_undefined_flag_F77=unsupported
14455      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14456      ;;
14457
14458    linux*)
14459      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14460	tmp_addflag=
14461	case $cc_basename,$host_cpu in
14462	pgcc*)				# Portland Group C compiler
14463	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14464	  tmp_addflag=' $pic_flag'
14465	  ;;
14466	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14467	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14468	  tmp_addflag=' $pic_flag -Mnomain' ;;
14469	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14470	  tmp_addflag=' -i_dynamic' ;;
14471	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14472	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14473	ifc* | ifort*)			# Intel Fortran compiler
14474	  tmp_addflag=' -nofor_main' ;;
14475	esac
14476	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14477
14478	if test $supports_anon_versioning = yes; then
14479	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14480  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14481  $echo "local: *; };" >> $output_objdir/$libname.ver~
14482	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14483	fi
14484      else
14485	ld_shlibs_F77=no
14486      fi
14487      ;;
14488
14489    netbsd*)
14490      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14491	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14492	wlarc=
14493      else
14494	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14495	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14496      fi
14497      ;;
14498
14499    solaris* | sysv5*)
14500      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14501	ld_shlibs_F77=no
14502	cat <<EOF 1>&2
14503
14504*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14505*** create shared libraries on Solaris systems.  Therefore, libtool
14506*** is disabling shared libraries support.  We urge you to upgrade GNU
14507*** binutils to release 2.9.1 or newer.  Another option is to modify
14508*** your PATH or compiler configuration so that the native linker is
14509*** used, and then restart.
14510
14511EOF
14512      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14513	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14514	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14515      else
14516	ld_shlibs_F77=no
14517      fi
14518      ;;
14519
14520    sunos4*)
14521      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14522      wlarc=
14523      hardcode_direct_F77=yes
14524      hardcode_shlibpath_var_F77=no
14525      ;;
14526
14527    *)
14528      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14529	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14530	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14531      else
14532	ld_shlibs_F77=no
14533      fi
14534      ;;
14535    esac
14536
14537    if test "$ld_shlibs_F77" = no; then
14538      runpath_var=
14539      hardcode_libdir_flag_spec_F77=
14540      export_dynamic_flag_spec_F77=
14541      whole_archive_flag_spec_F77=
14542    fi
14543  else
14544    # PORTME fill in a description of your system's linker (not GNU ld)
14545    case $host_os in
14546    aix3*)
14547      allow_undefined_flag_F77=unsupported
14548      always_export_symbols_F77=yes
14549      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'
14550      # Note: this linker hardcodes the directories in LIBPATH if there
14551      # are no directories specified by -L.
14552      hardcode_minus_L_F77=yes
14553      if test "$GCC" = yes && test -z "$link_static_flag"; then
14554	# Neither direct hardcoding nor static linking is supported with a
14555	# broken collect2.
14556	hardcode_direct_F77=unsupported
14557      fi
14558      ;;
14559
14560    aix4* | aix5*)
14561      if test "$host_cpu" = ia64; then
14562	# On IA64, the linker does run time linking by default, so we don't
14563	# have to do anything special.
14564	aix_use_runtimelinking=no
14565	exp_sym_flag='-Bexport'
14566	no_entry_flag=""
14567      else
14568	# If we're using GNU nm, then we don't want the "-C" option.
14569	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14570	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14571	  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'
14572	else
14573	  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'
14574	fi
14575	aix_use_runtimelinking=no
14576
14577	# Test if we are trying to use run time linking or normal
14578	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14579	# need to do runtime linking.
14580	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14581	  for ld_flag in $LDFLAGS; do
14582  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14583  	    aix_use_runtimelinking=yes
14584  	    break
14585  	  fi
14586	  done
14587	esac
14588
14589	exp_sym_flag='-bexport'
14590	no_entry_flag='-bnoentry'
14591      fi
14592
14593      # When large executables or shared objects are built, AIX ld can
14594      # have problems creating the table of contents.  If linking a library
14595      # or program results in "error TOC overflow" add -mminimal-toc to
14596      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14597      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14598
14599      archive_cmds_F77=''
14600      hardcode_direct_F77=yes
14601      hardcode_libdir_separator_F77=':'
14602      link_all_deplibs_F77=yes
14603
14604      if test "$GCC" = yes; then
14605	case $host_os in aix4.[012]|aix4.[012].*)
14606	# We only want to do this on AIX 4.2 and lower, the check
14607	# below for broken collect2 doesn't work under 4.3+
14608	  collect2name=`${CC} -print-prog-name=collect2`
14609	  if test -f "$collect2name" && \
14610  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14611	  then
14612  	  # We have reworked collect2
14613  	  hardcode_direct_F77=yes
14614	  else
14615  	  # We have old collect2
14616  	  hardcode_direct_F77=unsupported
14617  	  # It fails to find uninstalled libraries when the uninstalled
14618  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14619  	  # to unsupported forces relinking
14620  	  hardcode_minus_L_F77=yes
14621  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14622  	  hardcode_libdir_separator_F77=
14623	  fi
14624	esac
14625	shared_flag='-shared'
14626	if test "$aix_use_runtimelinking" = yes; then
14627	  shared_flag="$shared_flag "'${wl}-G'
14628	fi
14629      else
14630	# not using gcc
14631	if test "$host_cpu" = ia64; then
14632  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14633  	# chokes on -Wl,-G. The following line is correct:
14634	  shared_flag='-G'
14635	else
14636  	if test "$aix_use_runtimelinking" = yes; then
14637	    shared_flag='${wl}-G'
14638	  else
14639	    shared_flag='${wl}-bM:SRE'
14640  	fi
14641	fi
14642      fi
14643
14644      # It seems that -bexpall does not export symbols beginning with
14645      # underscore (_), so it is better to generate a list of symbols to export.
14646      always_export_symbols_F77=yes
14647      if test "$aix_use_runtimelinking" = yes; then
14648	# Warning - without using the other runtime loading flags (-brtl),
14649	# -berok will link without error, but may produce a broken library.
14650	allow_undefined_flag_F77='-berok'
14651       # Determine the default libpath from the value encoded in an empty executable.
14652       cat >conftest.$ac_ext <<_ACEOF
14653      program main
14654
14655      end
14656_ACEOF
14657rm -f conftest.$ac_objext conftest$ac_exeext
14658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14659  (eval $ac_link) 2>conftest.er1
14660  ac_status=$?
14661  grep -v '^ *+' conftest.er1 >conftest.err
14662  rm -f conftest.er1
14663  cat conftest.err >&5
14664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665  (exit $ac_status); } &&
14666	 { ac_try='test -z "$ac_f77_werror_flag"
14667			 || test ! -s conftest.err'
14668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669  (eval $ac_try) 2>&5
14670  ac_status=$?
14671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672  (exit $ac_status); }; } &&
14673	 { ac_try='test -s conftest$ac_exeext'
14674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675  (eval $ac_try) 2>&5
14676  ac_status=$?
14677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678  (exit $ac_status); }; }; then
14679
14680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14681}'`
14682# Check for a 64-bit object if we didn't find anything.
14683if 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; }
14684}'`; fi
14685else
14686  echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
14689fi
14690rm -f conftest.err conftest.$ac_objext \
14691      conftest$ac_exeext conftest.$ac_ext
14692if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14693
14694       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14695	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"
14696       else
14697	if test "$host_cpu" = ia64; then
14698	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14699	  allow_undefined_flag_F77="-z nodefs"
14700	  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"
14701	else
14702	 # Determine the default libpath from the value encoded in an empty executable.
14703	 cat >conftest.$ac_ext <<_ACEOF
14704      program main
14705
14706      end
14707_ACEOF
14708rm -f conftest.$ac_objext conftest$ac_exeext
14709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710  (eval $ac_link) 2>conftest.er1
14711  ac_status=$?
14712  grep -v '^ *+' conftest.er1 >conftest.err
14713  rm -f conftest.er1
14714  cat conftest.err >&5
14715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716  (exit $ac_status); } &&
14717	 { ac_try='test -z "$ac_f77_werror_flag"
14718			 || test ! -s conftest.err'
14719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720  (eval $ac_try) 2>&5
14721  ac_status=$?
14722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723  (exit $ac_status); }; } &&
14724	 { ac_try='test -s conftest$ac_exeext'
14725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726  (eval $ac_try) 2>&5
14727  ac_status=$?
14728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729  (exit $ac_status); }; }; then
14730
14731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14732}'`
14733# Check for a 64-bit object if we didn't find anything.
14734if 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; }
14735}'`; fi
14736else
14737  echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
14740fi
14741rm -f conftest.err conftest.$ac_objext \
14742      conftest$ac_exeext conftest.$ac_ext
14743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14744
14745	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14746	  # Warning - without using the other run time loading flags,
14747	  # -berok will link without error, but may produce a broken library.
14748	  no_undefined_flag_F77=' ${wl}-bernotok'
14749	  allow_undefined_flag_F77=' ${wl}-berok'
14750	  # -bexpall does not export symbols beginning with underscore (_)
14751	  always_export_symbols_F77=yes
14752	  # Exported symbols can be pulled into shared objects from archives
14753	  whole_archive_flag_spec_F77=' '
14754	  archive_cmds_need_lc_F77=yes
14755	  # This is similar to how AIX traditionally builds its shared libraries.
14756	  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'
14757	fi
14758      fi
14759      ;;
14760
14761    amigaos*)
14762      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)'
14763      hardcode_libdir_flag_spec_F77='-L$libdir'
14764      hardcode_minus_L_F77=yes
14765      # see comment about different semantics on the GNU ld section
14766      ld_shlibs_F77=no
14767      ;;
14768
14769    bsdi[45]*)
14770      export_dynamic_flag_spec_F77=-rdynamic
14771      ;;
14772
14773    cygwin* | mingw* | pw32*)
14774      # When not using gcc, we currently assume that we are using
14775      # Microsoft Visual C++.
14776      # hardcode_libdir_flag_spec is actually meaningless, as there is
14777      # no search path for DLLs.
14778      hardcode_libdir_flag_spec_F77=' '
14779      allow_undefined_flag_F77=unsupported
14780      # Tell ltmain to make .lib files, not .a files.
14781      libext=lib
14782      # Tell ltmain to make .dll files, not .so files.
14783      shrext_cmds=".dll"
14784      # FIXME: Setting linknames here is a bad hack.
14785      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14786      # The linker will automatically build a .lib file if we build a DLL.
14787      old_archive_From_new_cmds_F77='true'
14788      # FIXME: Should let the user specify the lib program.
14789      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14790      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14791      enable_shared_with_static_runtimes_F77=yes
14792      ;;
14793
14794    darwin* | rhapsody*)
14795      case $host_os in
14796        rhapsody* | darwin1.[012])
14797         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14798         ;;
14799       *) # Darwin 1.3 on
14800         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14801           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14802         else
14803           case ${MACOSX_DEPLOYMENT_TARGET} in
14804             10.[012])
14805               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14806               ;;
14807             10.*)
14808               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14809               ;;
14810           esac
14811         fi
14812         ;;
14813      esac
14814      archive_cmds_need_lc_F77=no
14815      hardcode_direct_F77=no
14816      hardcode_automatic_F77=yes
14817      hardcode_shlibpath_var_F77=unsupported
14818      whole_archive_flag_spec_F77=''
14819      link_all_deplibs_F77=yes
14820    if test "$GCC" = yes ; then
14821    	output_verbose_link_cmd='echo'
14822        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14823      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14824      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14825      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14826      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14827    else
14828      case $cc_basename in
14829        xlc*)
14830         output_verbose_link_cmd='echo'
14831         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14832         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14833          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14834         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14835          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14836          ;;
14837       *)
14838         ld_shlibs_F77=no
14839          ;;
14840      esac
14841    fi
14842      ;;
14843
14844    dgux*)
14845      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14846      hardcode_libdir_flag_spec_F77='-L$libdir'
14847      hardcode_shlibpath_var_F77=no
14848      ;;
14849
14850    freebsd1*)
14851      ld_shlibs_F77=no
14852      ;;
14853
14854    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14855    # support.  Future versions do this automatically, but an explicit c++rt0.o
14856    # does not break anything, and helps significantly (at the cost of a little
14857    # extra space).
14858    freebsd2.2*)
14859      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14860      hardcode_libdir_flag_spec_F77='-R$libdir'
14861      hardcode_direct_F77=yes
14862      hardcode_shlibpath_var_F77=no
14863      ;;
14864
14865    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14866    freebsd2*)
14867      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14868      hardcode_direct_F77=yes
14869      hardcode_minus_L_F77=yes
14870      hardcode_shlibpath_var_F77=no
14871      ;;
14872
14873    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14874    freebsd* | kfreebsd*-gnu | dragonfly*)
14875      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14876      hardcode_libdir_flag_spec_F77='-R$libdir'
14877      hardcode_direct_F77=yes
14878      hardcode_shlibpath_var_F77=no
14879      ;;
14880
14881    hpux9*)
14882      if test "$GCC" = yes; then
14883	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'
14884      else
14885	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'
14886      fi
14887      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14888      hardcode_libdir_separator_F77=:
14889      hardcode_direct_F77=yes
14890
14891      # hardcode_minus_L: Not really in the search PATH,
14892      # but as the default location of the library.
14893      hardcode_minus_L_F77=yes
14894      export_dynamic_flag_spec_F77='${wl}-E'
14895      ;;
14896
14897    hpux10* | hpux11*)
14898      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14899	case $host_cpu in
14900	hppa*64*|ia64*)
14901	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902	  ;;
14903	*)
14904	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14905	  ;;
14906	esac
14907      else
14908	case $host_cpu in
14909	hppa*64*|ia64*)
14910	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14911	  ;;
14912	*)
14913	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14914	  ;;
14915	esac
14916      fi
14917      if test "$with_gnu_ld" = no; then
14918	case $host_cpu in
14919	hppa*64*)
14920	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14921	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14922	  hardcode_libdir_separator_F77=:
14923	  hardcode_direct_F77=no
14924	  hardcode_shlibpath_var_F77=no
14925	  ;;
14926	ia64*)
14927	  hardcode_libdir_flag_spec_F77='-L$libdir'
14928	  hardcode_direct_F77=no
14929	  hardcode_shlibpath_var_F77=no
14930
14931	  # hardcode_minus_L: Not really in the search PATH,
14932	  # but as the default location of the library.
14933	  hardcode_minus_L_F77=yes
14934	  ;;
14935	*)
14936	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14937	  hardcode_libdir_separator_F77=:
14938	  hardcode_direct_F77=yes
14939	  export_dynamic_flag_spec_F77='${wl}-E'
14940
14941	  # hardcode_minus_L: Not really in the search PATH,
14942	  # but as the default location of the library.
14943	  hardcode_minus_L_F77=yes
14944	  ;;
14945	esac
14946      fi
14947      ;;
14948
14949    irix5* | irix6* | nonstopux*)
14950      if test "$GCC" = yes; then
14951	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'
14952      else
14953	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'
14954	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14955      fi
14956      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14957      hardcode_libdir_separator_F77=:
14958      link_all_deplibs_F77=yes
14959      ;;
14960
14961    netbsd*)
14962      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14963	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14964      else
14965	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14966      fi
14967      hardcode_libdir_flag_spec_F77='-R$libdir'
14968      hardcode_direct_F77=yes
14969      hardcode_shlibpath_var_F77=no
14970      ;;
14971
14972    newsos6)
14973      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14974      hardcode_direct_F77=yes
14975      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976      hardcode_libdir_separator_F77=:
14977      hardcode_shlibpath_var_F77=no
14978      ;;
14979
14980    openbsd*)
14981      hardcode_direct_F77=yes
14982      hardcode_shlibpath_var_F77=no
14983      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14984	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14985	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14986	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14987	export_dynamic_flag_spec_F77='${wl}-E'
14988      else
14989       case $host_os in
14990	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14991	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14992	   hardcode_libdir_flag_spec_F77='-R$libdir'
14993	   ;;
14994	 *)
14995	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14996	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14997	   ;;
14998       esac
14999      fi
15000      ;;
15001
15002    os2*)
15003      hardcode_libdir_flag_spec_F77='-L$libdir'
15004      hardcode_minus_L_F77=yes
15005      allow_undefined_flag_F77=unsupported
15006      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'
15007      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15008      ;;
15009
15010    osf3*)
15011      if test "$GCC" = yes; then
15012	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15013	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'
15014      else
15015	allow_undefined_flag_F77=' -expect_unresolved \*'
15016	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'
15017      fi
15018      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15019      hardcode_libdir_separator_F77=:
15020      ;;
15021
15022    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15023      if test "$GCC" = yes; then
15024	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15025	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'
15026	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15027      else
15028	allow_undefined_flag_F77=' -expect_unresolved \*'
15029	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'
15030	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~
15031	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15032
15033	# Both c and cxx compiler support -rpath directly
15034	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15035      fi
15036      hardcode_libdir_separator_F77=:
15037      ;;
15038
15039    sco3.2v5*)
15040      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15041      hardcode_shlibpath_var_F77=no
15042      export_dynamic_flag_spec_F77='${wl}-Bexport'
15043      runpath_var=LD_RUN_PATH
15044      hardcode_runpath_var=yes
15045      ;;
15046
15047    solaris*)
15048      no_undefined_flag_F77=' -z text'
15049      if test "$GCC" = yes; then
15050	wlarc='${wl}'
15051	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15052	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15054      else
15055	wlarc=''
15056	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15058  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15059      fi
15060      hardcode_libdir_flag_spec_F77='-R$libdir'
15061      hardcode_shlibpath_var_F77=no
15062      case $host_os in
15063      solaris2.[0-5] | solaris2.[0-5].*) ;;
15064      *)
15065 	# The compiler driver will combine linker options so we
15066 	# cannot just pass the convience library names through
15067 	# without $wl, iff we do not link with $LD.
15068 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15069 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15070 	case $wlarc in
15071 	'')
15072 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15073 	*)
15074 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15075 	esac ;;
15076      esac
15077      link_all_deplibs_F77=yes
15078      ;;
15079
15080    sunos4*)
15081      if test "x$host_vendor" = xsequent; then
15082	# Use $CC to link under sequent, because it throws in some extra .o
15083	# files that make .init and .fini sections work.
15084	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15085      else
15086	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15087      fi
15088      hardcode_libdir_flag_spec_F77='-L$libdir'
15089      hardcode_direct_F77=yes
15090      hardcode_minus_L_F77=yes
15091      hardcode_shlibpath_var_F77=no
15092      ;;
15093
15094    sysv4)
15095      case $host_vendor in
15096	sni)
15097	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15098	  hardcode_direct_F77=yes # is this really true???
15099	;;
15100	siemens)
15101	  ## LD is ld it makes a PLAMLIB
15102	  ## CC just makes a GrossModule.
15103	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15104	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15105	  hardcode_direct_F77=no
15106        ;;
15107	motorola)
15108	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15110	;;
15111      esac
15112      runpath_var='LD_RUN_PATH'
15113      hardcode_shlibpath_var_F77=no
15114      ;;
15115
15116    sysv4.3*)
15117      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15118      hardcode_shlibpath_var_F77=no
15119      export_dynamic_flag_spec_F77='-Bexport'
15120      ;;
15121
15122    sysv4*MP*)
15123      if test -d /usr/nec; then
15124	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125	hardcode_shlibpath_var_F77=no
15126	runpath_var=LD_RUN_PATH
15127	hardcode_runpath_var=yes
15128	ld_shlibs_F77=yes
15129      fi
15130      ;;
15131
15132    sysv4.2uw2*)
15133      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15134      hardcode_direct_F77=yes
15135      hardcode_minus_L_F77=no
15136      hardcode_shlibpath_var_F77=no
15137      hardcode_runpath_var=yes
15138      runpath_var=LD_RUN_PATH
15139      ;;
15140
15141   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15142      no_undefined_flag_F77='${wl}-z ${wl}text'
15143      if test "$GCC" = yes; then
15144	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145      else
15146	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15147      fi
15148      runpath_var='LD_RUN_PATH'
15149      hardcode_shlibpath_var_F77=no
15150      ;;
15151
15152    sysv5*)
15153      no_undefined_flag_F77=' -z text'
15154      # $CC -shared without GNU ld will not create a library from C++
15155      # object files and a static libstdc++, better avoid it by now
15156      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15157      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15158  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15159      hardcode_libdir_flag_spec_F77=
15160      hardcode_shlibpath_var_F77=no
15161      runpath_var='LD_RUN_PATH'
15162      ;;
15163
15164    uts4*)
15165      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166      hardcode_libdir_flag_spec_F77='-L$libdir'
15167      hardcode_shlibpath_var_F77=no
15168      ;;
15169
15170    *)
15171      ld_shlibs_F77=no
15172      ;;
15173    esac
15174  fi
15175
15176echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15177echo "${ECHO_T}$ld_shlibs_F77" >&6
15178test "$ld_shlibs_F77" = no && can_build_shared=no
15179
15180variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15181if test "$GCC" = yes; then
15182  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15183fi
15184
15185#
15186# Do we need to explicitly link libc?
15187#
15188case "x$archive_cmds_need_lc_F77" in
15189x|xyes)
15190  # Assume -lc should be added
15191  archive_cmds_need_lc_F77=yes
15192
15193  if test "$enable_shared" = yes && test "$GCC" = yes; then
15194    case $archive_cmds_F77 in
15195    *'~'*)
15196      # FIXME: we may have to deal with multi-command sequences.
15197      ;;
15198    '$CC '*)
15199      # Test whether the compiler implicitly links with -lc since on some
15200      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15201      # to ld, don't add -lc before -lgcc.
15202      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15203echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15204      $rm conftest*
15205      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15206
15207      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208  (eval $ac_compile) 2>&5
15209  ac_status=$?
15210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211  (exit $ac_status); } 2>conftest.err; then
15212        soname=conftest
15213        lib=conftest
15214        libobjs=conftest.$ac_objext
15215        deplibs=
15216        wl=$lt_prog_compiler_wl_F77
15217        compiler_flags=-v
15218        linker_flags=-v
15219        verstring=
15220        output_objdir=.
15221        libname=conftest
15222        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15223        allow_undefined_flag_F77=
15224        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15225  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15226  ac_status=$?
15227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228  (exit $ac_status); }
15229        then
15230	  archive_cmds_need_lc_F77=no
15231        else
15232	  archive_cmds_need_lc_F77=yes
15233        fi
15234        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15235      else
15236        cat conftest.err 1>&5
15237      fi
15238      $rm conftest*
15239      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15240echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15241      ;;
15242    esac
15243  fi
15244  ;;
15245esac
15246
15247echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15248echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15249library_names_spec=
15250libname_spec='lib$name'
15251soname_spec=
15252shrext_cmds=".so"
15253postinstall_cmds=
15254postuninstall_cmds=
15255finish_cmds=
15256finish_eval=
15257shlibpath_var=
15258shlibpath_overrides_runpath=unknown
15259version_type=none
15260dynamic_linker="$host_os ld.so"
15261sys_lib_dlsearch_path_spec="/lib /usr/lib"
15262if test "$GCC" = yes; then
15263  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15264  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15265    # if the path contains ";" then we assume it to be the separator
15266    # otherwise default to the standard path separator (i.e. ":") - it is
15267    # assumed that no part of a normal pathname contains ";" but that should
15268    # okay in the real world where ";" in dirpaths is itself problematic.
15269    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15270  else
15271    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15272  fi
15273else
15274  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15275fi
15276need_lib_prefix=unknown
15277hardcode_into_libs=no
15278
15279# when you set need_version to no, make sure it does not cause -set_version
15280# flags to be left without arguments
15281need_version=unknown
15282
15283case $host_os in
15284aix3*)
15285  version_type=linux
15286  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15287  shlibpath_var=LIBPATH
15288
15289  # AIX 3 has no versioning support, so we append a major version to the name.
15290  soname_spec='${libname}${release}${shared_ext}$major'
15291  ;;
15292
15293aix4* | aix5*)
15294  version_type=linux
15295  need_lib_prefix=no
15296  need_version=no
15297  hardcode_into_libs=yes
15298  if test "$host_cpu" = ia64; then
15299    # AIX 5 supports IA64
15300    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15301    shlibpath_var=LD_LIBRARY_PATH
15302  else
15303    # With GCC up to 2.95.x, collect2 would create an import file
15304    # for dependence libraries.  The import file would start with
15305    # the line `#! .'.  This would cause the generated library to
15306    # depend on `.', always an invalid library.  This was fixed in
15307    # development snapshots of GCC prior to 3.0.
15308    case $host_os in
15309      aix4 | aix4.[01] | aix4.[01].*)
15310      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15311	   echo ' yes '
15312	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15313	:
15314      else
15315	can_build_shared=no
15316      fi
15317      ;;
15318    esac
15319    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15320    # soname into executable. Probably we can add versioning support to
15321    # collect2, so additional links can be useful in future.
15322    if test "$aix_use_runtimelinking" = yes; then
15323      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15324      # instead of lib<name>.a to let people know that these are not
15325      # typical AIX shared libraries.
15326      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327    else
15328      # We preserve .a as extension for shared libraries through AIX4.2
15329      # and later when we are not doing run time linking.
15330      library_names_spec='${libname}${release}.a $libname.a'
15331      soname_spec='${libname}${release}${shared_ext}$major'
15332    fi
15333    shlibpath_var=LIBPATH
15334  fi
15335  ;;
15336
15337amigaos*)
15338  library_names_spec='$libname.ixlibrary $libname.a'
15339  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15340  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'
15341  ;;
15342
15343beos*)
15344  library_names_spec='${libname}${shared_ext}'
15345  dynamic_linker="$host_os ld.so"
15346  shlibpath_var=LIBRARY_PATH
15347  ;;
15348
15349bsdi[45]*)
15350  version_type=linux
15351  need_version=no
15352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353  soname_spec='${libname}${release}${shared_ext}$major'
15354  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15355  shlibpath_var=LD_LIBRARY_PATH
15356  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15357  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15358  # the default ld.so.conf also contains /usr/contrib/lib and
15359  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15360  # libtool to hard-code these into programs
15361  ;;
15362
15363cygwin* | mingw* | pw32*)
15364  version_type=windows
15365  shrext_cmds=".dll"
15366  need_version=no
15367  need_lib_prefix=no
15368
15369  case $GCC,$host_os in
15370  yes,cygwin* | yes,mingw* | yes,pw32*)
15371    library_names_spec='$libname.dll.a'
15372    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15373    postinstall_cmds='base_file=`basename \${file}`~
15374      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15375      dldir=$destdir/`dirname \$dlpath`~
15376      test -d \$dldir || mkdir -p \$dldir~
15377      $install_prog $dir/$dlname \$dldir/$dlname~
15378      chmod a+x \$dldir/$dlname'
15379    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15380      dlpath=$dir/\$dldll~
15381       $rm \$dlpath'
15382    shlibpath_overrides_runpath=yes
15383
15384    case $host_os in
15385    cygwin*)
15386      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15387      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15388      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15389      ;;
15390    mingw*)
15391      # MinGW DLLs use traditional 'lib' prefix
15392      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15393      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15394      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15395        # It is most probably a Windows format PATH printed by
15396        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15397        # path with ; separators, and with drive letters. We can handle the
15398        # drive letters (cygwin fileutils understands them), so leave them,
15399        # especially as we might pass files found there to a mingw objdump,
15400        # which wouldn't understand a cygwinified path. Ahh.
15401        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15402      else
15403        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15404      fi
15405      ;;
15406    pw32*)
15407      # pw32 DLLs use 'pw' prefix rather than 'lib'
15408      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15409      ;;
15410    esac
15411    ;;
15412
15413  *)
15414    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15415    ;;
15416  esac
15417  dynamic_linker='Win32 ld.exe'
15418  # FIXME: first we should search . and the directory the executable is in
15419  shlibpath_var=PATH
15420  ;;
15421
15422darwin* | rhapsody*)
15423  dynamic_linker="$host_os dyld"
15424  version_type=darwin
15425  need_lib_prefix=no
15426  need_version=no
15427  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15428  soname_spec='${libname}${release}${major}$shared_ext'
15429  shlibpath_overrides_runpath=yes
15430  shlibpath_var=DYLD_LIBRARY_PATH
15431  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15432  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15433  if test "$GCC" = yes; then
15434    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"`
15435  else
15436    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15437  fi
15438  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15439  ;;
15440
15441dgux*)
15442  version_type=linux
15443  need_lib_prefix=no
15444  need_version=no
15445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15446  soname_spec='${libname}${release}${shared_ext}$major'
15447  shlibpath_var=LD_LIBRARY_PATH
15448  ;;
15449
15450freebsd1*)
15451  dynamic_linker=no
15452  ;;
15453
15454haiku*)
15455  library_names_spec='${libname}${shared_ext}'
15456  dynamic_linker="$host_os ld.so"
15457  shlibpath_var=LIBRARY_PATH
15458  ;;
15459
15460kfreebsd*-gnu)
15461  version_type=linux
15462  need_lib_prefix=no
15463  need_version=no
15464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15465  soname_spec='${libname}${release}${shared_ext}$major'
15466  shlibpath_var=LD_LIBRARY_PATH
15467  shlibpath_overrides_runpath=no
15468  hardcode_into_libs=yes
15469  dynamic_linker='GNU ld.so'
15470  ;;
15471
15472freebsd* | dragonfly*)
15473  # DragonFly does not have aout.  When/if they implement a new
15474  # versioning mechanism, adjust this.
15475  if test -x /usr/bin/objformat; then
15476    objformat=`/usr/bin/objformat`
15477  else
15478    case $host_os in
15479    freebsd[123]*) objformat=aout ;;
15480    *) objformat=elf ;;
15481    esac
15482  fi
15483  version_type=freebsd-$objformat
15484  case $version_type in
15485    freebsd-elf*)
15486      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15487      need_version=no
15488      need_lib_prefix=no
15489      ;;
15490    freebsd-*)
15491      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15492      need_version=yes
15493      ;;
15494  esac
15495  shlibpath_var=LD_LIBRARY_PATH
15496  case $host_os in
15497  freebsd2*)
15498    shlibpath_overrides_runpath=yes
15499    ;;
15500  freebsd3.[01]* | freebsdelf3.[01]*)
15501    shlibpath_overrides_runpath=yes
15502    hardcode_into_libs=yes
15503    ;;
15504  *) # from 3.2 on
15505    shlibpath_overrides_runpath=no
15506    hardcode_into_libs=yes
15507    ;;
15508  esac
15509  ;;
15510
15511gnu*)
15512  version_type=linux
15513  need_lib_prefix=no
15514  need_version=no
15515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15516  soname_spec='${libname}${release}${shared_ext}$major'
15517  shlibpath_var=LD_LIBRARY_PATH
15518  hardcode_into_libs=yes
15519  ;;
15520
15521hpux9* | hpux10* | hpux11*)
15522  # Give a soname corresponding to the major version so that dld.sl refuses to
15523  # link against other versions.
15524  version_type=sunos
15525  need_lib_prefix=no
15526  need_version=no
15527  case $host_cpu in
15528  ia64*)
15529    shrext_cmds='.so'
15530    hardcode_into_libs=yes
15531    dynamic_linker="$host_os dld.so"
15532    shlibpath_var=LD_LIBRARY_PATH
15533    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535    soname_spec='${libname}${release}${shared_ext}$major'
15536    if test "X$HPUX_IA64_MODE" = X32; then
15537      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15538    else
15539      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15540    fi
15541    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15542    ;;
15543   hppa*64*)
15544     shrext_cmds='.sl'
15545     hardcode_into_libs=yes
15546     dynamic_linker="$host_os dld.sl"
15547     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550     soname_spec='${libname}${release}${shared_ext}$major'
15551     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15552     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15553     ;;
15554   *)
15555    shrext_cmds='.sl'
15556    dynamic_linker="$host_os dld.sl"
15557    shlibpath_var=SHLIB_PATH
15558    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15559    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560    soname_spec='${libname}${release}${shared_ext}$major'
15561    ;;
15562  esac
15563  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15564  postinstall_cmds='chmod 555 $lib'
15565  ;;
15566
15567irix5* | irix6* | nonstopux*)
15568  case $host_os in
15569    nonstopux*) version_type=nonstopux ;;
15570    *)
15571	if test "$lt_cv_prog_gnu_ld" = yes; then
15572		version_type=linux
15573	else
15574		version_type=irix
15575	fi ;;
15576  esac
15577  need_lib_prefix=no
15578  need_version=no
15579  soname_spec='${libname}${release}${shared_ext}$major'
15580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15581  case $host_os in
15582  irix5* | nonstopux*)
15583    libsuff= shlibsuff=
15584    ;;
15585  *)
15586    case $LD in # libtool.m4 will add one of these switches to LD
15587    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15588      libsuff= shlibsuff= libmagic=32-bit;;
15589    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15590      libsuff=32 shlibsuff=N32 libmagic=N32;;
15591    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15592      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15593    *) libsuff= shlibsuff= libmagic=never-match;;
15594    esac
15595    ;;
15596  esac
15597  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15598  shlibpath_overrides_runpath=no
15599  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15600  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15601  hardcode_into_libs=yes
15602  ;;
15603
15604# No shared lib support for Linux oldld, aout, or coff.
15605linux*oldld* | linux*aout* | linux*coff*)
15606  dynamic_linker=no
15607  ;;
15608
15609# This must be Linux ELF.
15610linux*)
15611  version_type=linux
15612  need_lib_prefix=no
15613  need_version=no
15614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615  soname_spec='${libname}${release}${shared_ext}$major'
15616  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15617  shlibpath_var=LD_LIBRARY_PATH
15618  shlibpath_overrides_runpath=no
15619  # This implies no fast_install, which is unacceptable.
15620  # Some rework will be needed to allow for fast_install
15621  # before this can be enabled.
15622  hardcode_into_libs=yes
15623
15624  # Append ld.so.conf contents to the search path
15625  if test -f /etc/ld.so.conf; then
15626    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15627    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15628  fi
15629
15630  # We used to test for /lib/ld.so.1 and disable shared libraries on
15631  # powerpc, because MkLinux only supported shared libraries with the
15632  # GNU dynamic linker.  Since this was broken with cross compilers,
15633  # most powerpc-linux boxes support dynamic linking these days and
15634  # people can always --disable-shared, the test was removed, and we
15635  # assume the GNU/Linux dynamic linker is in use.
15636  dynamic_linker='GNU/Linux ld.so'
15637  ;;
15638
15639knetbsd*-gnu)
15640  version_type=linux
15641  need_lib_prefix=no
15642  need_version=no
15643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15644  soname_spec='${libname}${release}${shared_ext}$major'
15645  shlibpath_var=LD_LIBRARY_PATH
15646  shlibpath_overrides_runpath=no
15647  hardcode_into_libs=yes
15648  dynamic_linker='GNU ld.so'
15649  ;;
15650
15651netbsd*)
15652  version_type=sunos
15653  need_lib_prefix=no
15654  need_version=no
15655  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15657    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15658    dynamic_linker='NetBSD (a.out) ld.so'
15659  else
15660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15661    soname_spec='${libname}${release}${shared_ext}$major'
15662    dynamic_linker='NetBSD ld.elf_so'
15663  fi
15664  shlibpath_var=LD_LIBRARY_PATH
15665  shlibpath_overrides_runpath=yes
15666  hardcode_into_libs=yes
15667  ;;
15668
15669newsos6)
15670  version_type=linux
15671  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672  shlibpath_var=LD_LIBRARY_PATH
15673  shlibpath_overrides_runpath=yes
15674  ;;
15675
15676nto-qnx*)
15677  version_type=linux
15678  need_lib_prefix=no
15679  need_version=no
15680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681  soname_spec='${libname}${release}${shared_ext}$major'
15682  shlibpath_var=LD_LIBRARY_PATH
15683  shlibpath_overrides_runpath=yes
15684  ;;
15685
15686openbsd*)
15687  version_type=sunos
15688  need_lib_prefix=no
15689  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15690  case $host_os in
15691    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15692    *)                         need_version=no  ;;
15693  esac
15694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15696  shlibpath_var=LD_LIBRARY_PATH
15697  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15698    case $host_os in
15699      openbsd2.[89] | openbsd2.[89].*)
15700	shlibpath_overrides_runpath=no
15701	;;
15702      *)
15703	shlibpath_overrides_runpath=yes
15704	;;
15705      esac
15706  else
15707    shlibpath_overrides_runpath=yes
15708  fi
15709  ;;
15710
15711os2*)
15712  libname_spec='$name'
15713  shrext_cmds=".dll"
15714  need_lib_prefix=no
15715  library_names_spec='$libname${shared_ext} $libname.a'
15716  dynamic_linker='OS/2 ld.exe'
15717  shlibpath_var=LIBPATH
15718  ;;
15719
15720osf3* | osf4* | osf5*)
15721  version_type=osf
15722  need_lib_prefix=no
15723  need_version=no
15724  soname_spec='${libname}${release}${shared_ext}$major'
15725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726  shlibpath_var=LD_LIBRARY_PATH
15727  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15728  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15729  ;;
15730
15731sco3.2v5*)
15732  version_type=osf
15733  soname_spec='${libname}${release}${shared_ext}$major'
15734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735  shlibpath_var=LD_LIBRARY_PATH
15736  ;;
15737
15738solaris*)
15739  version_type=linux
15740  need_lib_prefix=no
15741  need_version=no
15742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743  soname_spec='${libname}${release}${shared_ext}$major'
15744  shlibpath_var=LD_LIBRARY_PATH
15745  shlibpath_overrides_runpath=yes
15746  hardcode_into_libs=yes
15747  # ldd complains unless libraries are executable
15748  postinstall_cmds='chmod +x $lib'
15749  ;;
15750
15751sunos4*)
15752  version_type=sunos
15753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15755  shlibpath_var=LD_LIBRARY_PATH
15756  shlibpath_overrides_runpath=yes
15757  if test "$with_gnu_ld" = yes; then
15758    need_lib_prefix=no
15759  fi
15760  need_version=yes
15761  ;;
15762
15763sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15764  version_type=linux
15765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766  soname_spec='${libname}${release}${shared_ext}$major'
15767  shlibpath_var=LD_LIBRARY_PATH
15768  case $host_vendor in
15769    sni)
15770      shlibpath_overrides_runpath=no
15771      need_lib_prefix=no
15772      export_dynamic_flag_spec='${wl}-Blargedynsym'
15773      runpath_var=LD_RUN_PATH
15774      ;;
15775    siemens)
15776      need_lib_prefix=no
15777      ;;
15778    motorola)
15779      need_lib_prefix=no
15780      need_version=no
15781      shlibpath_overrides_runpath=no
15782      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15783      ;;
15784  esac
15785  ;;
15786
15787sysv4*MP*)
15788  if test -d /usr/nec ;then
15789    version_type=linux
15790    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15791    soname_spec='$libname${shared_ext}.$major'
15792    shlibpath_var=LD_LIBRARY_PATH
15793  fi
15794  ;;
15795
15796uts4*)
15797  version_type=linux
15798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799  soname_spec='${libname}${release}${shared_ext}$major'
15800  shlibpath_var=LD_LIBRARY_PATH
15801  ;;
15802
15803*)
15804  dynamic_linker=no
15805  ;;
15806esac
15807echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15808echo "${ECHO_T}$dynamic_linker" >&6
15809test "$dynamic_linker" = no && can_build_shared=no
15810
15811echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15812echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15813hardcode_action_F77=
15814if test -n "$hardcode_libdir_flag_spec_F77" || \
15815   test -n "$runpath_var_F77" || \
15816   test "X$hardcode_automatic_F77" = "Xyes" ; then
15817
15818  # We can hardcode non-existant directories.
15819  if test "$hardcode_direct_F77" != no &&
15820     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15821     # have to relink, otherwise we might link with an installed library
15822     # when we should be linking with a yet-to-be-installed one
15823     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15824     test "$hardcode_minus_L_F77" != no; then
15825    # Linking always hardcodes the temporary library directory.
15826    hardcode_action_F77=relink
15827  else
15828    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15829    hardcode_action_F77=immediate
15830  fi
15831else
15832  # We cannot hardcode anything, or else we can only hardcode existing
15833  # directories.
15834  hardcode_action_F77=unsupported
15835fi
15836echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15837echo "${ECHO_T}$hardcode_action_F77" >&6
15838
15839if test "$hardcode_action_F77" = relink; then
15840  # Fast installation is not supported
15841  enable_fast_install=no
15842elif test "$shlibpath_overrides_runpath" = yes ||
15843     test "$enable_shared" = no; then
15844  # Fast installation is not necessary
15845  enable_fast_install=needless
15846fi
15847
15848striplib=
15849old_striplib=
15850echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15851echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15852if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15853  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15854  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15855  echo "$as_me:$LINENO: result: yes" >&5
15856echo "${ECHO_T}yes" >&6
15857else
15858# FIXME - insert some real tests, host_os isn't really good enough
15859  case $host_os in
15860   darwin*)
15861       if test -n "$STRIP" ; then
15862         striplib="$STRIP -x"
15863         echo "$as_me:$LINENO: result: yes" >&5
15864echo "${ECHO_T}yes" >&6
15865       else
15866  echo "$as_me:$LINENO: result: no" >&5
15867echo "${ECHO_T}no" >&6
15868fi
15869       ;;
15870   *)
15871  echo "$as_me:$LINENO: result: no" >&5
15872echo "${ECHO_T}no" >&6
15873    ;;
15874  esac
15875fi
15876
15877
15878
15879# The else clause should only fire when bootstrapping the
15880# libtool distribution, otherwise you forgot to ship ltmain.sh
15881# with your package, and you will get complaints that there are
15882# no rules to generate ltmain.sh.
15883if test -f "$ltmain"; then
15884  # See if we are running on zsh, and set the options which allow our commands through
15885  # without removal of \ escapes.
15886  if test -n "${ZSH_VERSION+set}" ; then
15887    setopt NO_GLOB_SUBST
15888  fi
15889  # Now quote all the things that may contain metacharacters while being
15890  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15891  # variables and quote the copies for generation of the libtool script.
15892  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15893    SED SHELL STRIP \
15894    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15895    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15896    deplibs_check_method reload_flag reload_cmds need_locks \
15897    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15898    lt_cv_sys_global_symbol_to_c_name_address \
15899    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15900    old_postinstall_cmds old_postuninstall_cmds \
15901    compiler_F77 \
15902    CC_F77 \
15903    LD_F77 \
15904    lt_prog_compiler_wl_F77 \
15905    lt_prog_compiler_pic_F77 \
15906    lt_prog_compiler_static_F77 \
15907    lt_prog_compiler_no_builtin_flag_F77 \
15908    export_dynamic_flag_spec_F77 \
15909    thread_safe_flag_spec_F77 \
15910    whole_archive_flag_spec_F77 \
15911    enable_shared_with_static_runtimes_F77 \
15912    old_archive_cmds_F77 \
15913    old_archive_from_new_cmds_F77 \
15914    predep_objects_F77 \
15915    postdep_objects_F77 \
15916    predeps_F77 \
15917    postdeps_F77 \
15918    compiler_lib_search_path_F77 \
15919    archive_cmds_F77 \
15920    archive_expsym_cmds_F77 \
15921    postinstall_cmds_F77 \
15922    postuninstall_cmds_F77 \
15923    old_archive_from_expsyms_cmds_F77 \
15924    allow_undefined_flag_F77 \
15925    no_undefined_flag_F77 \
15926    export_symbols_cmds_F77 \
15927    hardcode_libdir_flag_spec_F77 \
15928    hardcode_libdir_flag_spec_ld_F77 \
15929    hardcode_libdir_separator_F77 \
15930    hardcode_automatic_F77 \
15931    module_cmds_F77 \
15932    module_expsym_cmds_F77 \
15933    lt_cv_prog_compiler_c_o_F77 \
15934    exclude_expsyms_F77 \
15935    include_expsyms_F77; do
15936
15937    case $var in
15938    old_archive_cmds_F77 | \
15939    old_archive_from_new_cmds_F77 | \
15940    archive_cmds_F77 | \
15941    archive_expsym_cmds_F77 | \
15942    module_cmds_F77 | \
15943    module_expsym_cmds_F77 | \
15944    old_archive_from_expsyms_cmds_F77 | \
15945    export_symbols_cmds_F77 | \
15946    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15947    postinstall_cmds | postuninstall_cmds | \
15948    old_postinstall_cmds | old_postuninstall_cmds | \
15949    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15950      # Double-quote double-evaled strings.
15951      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15952      ;;
15953    *)
15954      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15955      ;;
15956    esac
15957  done
15958
15959  case $lt_echo in
15960  *'\$0 --fallback-echo"')
15961    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15962    ;;
15963  esac
15964
15965cfgfile="$ofile"
15966
15967  cat <<__EOF__ >> "$cfgfile"
15968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15969
15970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15971
15972# Shell to use when invoking shell scripts.
15973SHELL=$lt_SHELL
15974
15975# Whether or not to build shared libraries.
15976build_libtool_libs=$enable_shared
15977
15978# Whether or not to build static libraries.
15979build_old_libs=$enable_static
15980
15981# Whether or not to add -lc for building shared libraries.
15982build_libtool_need_lc=$archive_cmds_need_lc_F77
15983
15984# Whether or not to disallow shared libs when runtime libs are static
15985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15986
15987# Whether or not to optimize for fast installation.
15988fast_install=$enable_fast_install
15989
15990# The host system.
15991host_alias=$host_alias
15992host=$host
15993host_os=$host_os
15994
15995# The build system.
15996build_alias=$build_alias
15997build=$build
15998build_os=$build_os
15999
16000# An echo program that does not interpret backslashes.
16001echo=$lt_echo
16002
16003# The archiver.
16004AR=$lt_AR
16005AR_FLAGS=$lt_AR_FLAGS
16006
16007# A C compiler.
16008LTCC=$lt_LTCC
16009
16010# A language-specific compiler.
16011CC=$lt_compiler_F77
16012
16013# Is the compiler the GNU C compiler?
16014with_gcc=$GCC_F77
16015
16016# An ERE matcher.
16017EGREP=$lt_EGREP
16018
16019# The linker used to build libraries.
16020LD=$lt_LD_F77
16021
16022# Whether we need hard or soft links.
16023LN_S=$lt_LN_S
16024
16025# A BSD-compatible nm program.
16026NM=$lt_NM
16027
16028# A symbol stripping program
16029STRIP=$lt_STRIP
16030
16031# Used to examine libraries when file_magic_cmd begins "file"
16032MAGIC_CMD=$MAGIC_CMD
16033
16034# Used on cygwin: DLL creation program.
16035DLLTOOL="$DLLTOOL"
16036
16037# Used on cygwin: object dumper.
16038OBJDUMP="$OBJDUMP"
16039
16040# Used on cygwin: assembler.
16041AS="$AS"
16042
16043# The name of the directory that contains temporary libtool files.
16044objdir=$objdir
16045
16046# How to create reloadable object files.
16047reload_flag=$lt_reload_flag
16048reload_cmds=$lt_reload_cmds
16049
16050# How to pass a linker flag through the compiler.
16051wl=$lt_lt_prog_compiler_wl_F77
16052
16053# Object file suffix (normally "o").
16054objext="$ac_objext"
16055
16056# Old archive suffix (normally "a").
16057libext="$libext"
16058
16059# Shared library suffix (normally ".so").
16060shrext_cmds='$shrext_cmds'
16061
16062# Executable file suffix (normally "").
16063exeext="$exeext"
16064
16065# Additional compiler flags for building library objects.
16066pic_flag=$lt_lt_prog_compiler_pic_F77
16067pic_mode=$pic_mode
16068
16069# What is the maximum length of a command?
16070max_cmd_len=$lt_cv_sys_max_cmd_len
16071
16072# Does compiler simultaneously support -c and -o options?
16073compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16074
16075# Must we lock files when doing compilation?
16076need_locks=$lt_need_locks
16077
16078# Do we need the lib prefix for modules?
16079need_lib_prefix=$need_lib_prefix
16080
16081# Do we need a version for libraries?
16082need_version=$need_version
16083
16084# Whether dlopen is supported.
16085dlopen_support=$enable_dlopen
16086
16087# Whether dlopen of programs is supported.
16088dlopen_self=$enable_dlopen_self
16089
16090# Whether dlopen of statically linked programs is supported.
16091dlopen_self_static=$enable_dlopen_self_static
16092
16093# Compiler flag to prevent dynamic linking.
16094link_static_flag=$lt_lt_prog_compiler_static_F77
16095
16096# Compiler flag to turn off builtin functions.
16097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16098
16099# Compiler flag to allow reflexive dlopens.
16100export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16101
16102# Compiler flag to generate shared objects directly from archives.
16103whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16104
16105# Compiler flag to generate thread-safe objects.
16106thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16107
16108# Library versioning type.
16109version_type=$version_type
16110
16111# Format of library name prefix.
16112libname_spec=$lt_libname_spec
16113
16114# List of archive names.  First name is the real one, the rest are links.
16115# The last name is the one that the linker finds with -lNAME.
16116library_names_spec=$lt_library_names_spec
16117
16118# The coded name of the library, if different from the real name.
16119soname_spec=$lt_soname_spec
16120
16121# Commands used to build and install an old-style archive.
16122RANLIB=$lt_RANLIB
16123old_archive_cmds=$lt_old_archive_cmds_F77
16124old_postinstall_cmds=$lt_old_postinstall_cmds
16125old_postuninstall_cmds=$lt_old_postuninstall_cmds
16126
16127# Create an old-style archive from a shared archive.
16128old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16129
16130# Create a temporary old-style archive to link instead of a shared archive.
16131old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16132
16133# Commands used to build and install a shared archive.
16134archive_cmds=$lt_archive_cmds_F77
16135archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16136postinstall_cmds=$lt_postinstall_cmds
16137postuninstall_cmds=$lt_postuninstall_cmds
16138
16139# Commands used to build a loadable module (assumed same as above if empty)
16140module_cmds=$lt_module_cmds_F77
16141module_expsym_cmds=$lt_module_expsym_cmds_F77
16142
16143# Commands to strip libraries.
16144old_striplib=$lt_old_striplib
16145striplib=$lt_striplib
16146
16147# Dependencies to place before the objects being linked to create a
16148# shared library.
16149predep_objects=$lt_predep_objects_F77
16150
16151# Dependencies to place after the objects being linked to create a
16152# shared library.
16153postdep_objects=$lt_postdep_objects_F77
16154
16155# Dependencies to place before the objects being linked to create a
16156# shared library.
16157predeps=$lt_predeps_F77
16158
16159# Dependencies to place after the objects being linked to create a
16160# shared library.
16161postdeps=$lt_postdeps_F77
16162
16163# The library search path used internally by the compiler when linking
16164# a shared library.
16165compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16166
16167# Method to check whether dependent libraries are shared objects.
16168deplibs_check_method=$lt_deplibs_check_method
16169
16170# Command to use when deplibs_check_method == file_magic.
16171file_magic_cmd=$lt_file_magic_cmd
16172
16173# Flag that allows shared libraries with undefined symbols to be built.
16174allow_undefined_flag=$lt_allow_undefined_flag_F77
16175
16176# Flag that forces no undefined symbols.
16177no_undefined_flag=$lt_no_undefined_flag_F77
16178
16179# Commands used to finish a libtool library installation in a directory.
16180finish_cmds=$lt_finish_cmds
16181
16182# Same as above, but a single script fragment to be evaled but not shown.
16183finish_eval=$lt_finish_eval
16184
16185# Take the output of nm and produce a listing of raw symbols and C names.
16186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16187
16188# Transform the output of nm in a proper C declaration
16189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16190
16191# Transform the output of nm in a C name address pair
16192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16193
16194# This is the shared library runtime path variable.
16195runpath_var=$runpath_var
16196
16197# This is the shared library path variable.
16198shlibpath_var=$shlibpath_var
16199
16200# Is shlibpath searched before the hard-coded library search path?
16201shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16202
16203# How to hardcode a shared library path into an executable.
16204hardcode_action=$hardcode_action_F77
16205
16206# Whether we should hardcode library paths into libraries.
16207hardcode_into_libs=$hardcode_into_libs
16208
16209# Flag to hardcode \$libdir into a binary during linking.
16210# This must work even if \$libdir does not exist.
16211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16212
16213# If ld is used when linking, flag to hardcode \$libdir into
16214# a binary during linking. This must work even if \$libdir does
16215# not exist.
16216hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16217
16218# Whether we need a single -rpath flag with a separated argument.
16219hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16220
16221# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16222# resulting binary.
16223hardcode_direct=$hardcode_direct_F77
16224
16225# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16226# resulting binary.
16227hardcode_minus_L=$hardcode_minus_L_F77
16228
16229# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16230# the resulting binary.
16231hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16232
16233# Set to yes if building a shared library automatically hardcodes DIR into the library
16234# and all subsequent libraries and executables linked against it.
16235hardcode_automatic=$hardcode_automatic_F77
16236
16237# Variables whose values should be saved in libtool wrapper scripts and
16238# restored at relink time.
16239variables_saved_for_relink="$variables_saved_for_relink"
16240
16241# Whether libtool must link a program against all its dependency libraries.
16242link_all_deplibs=$link_all_deplibs_F77
16243
16244# Compile-time system search path for libraries
16245sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16246
16247# Run-time system search path for libraries
16248sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16249
16250# Fix the shell variable \$srcfile for the compiler.
16251fix_srcfile_path="$fix_srcfile_path_F77"
16252
16253# Set to yes if exported symbols are required.
16254always_export_symbols=$always_export_symbols_F77
16255
16256# The commands to list exported symbols.
16257export_symbols_cmds=$lt_export_symbols_cmds_F77
16258
16259# The commands to extract the exported symbol list from a shared archive.
16260extract_expsyms_cmds=$lt_extract_expsyms_cmds
16261
16262# Symbols that should not be listed in the preloaded symbols.
16263exclude_expsyms=$lt_exclude_expsyms_F77
16264
16265# Symbols that must always be exported.
16266include_expsyms=$lt_include_expsyms_F77
16267
16268# ### END LIBTOOL TAG CONFIG: $tagname
16269
16270__EOF__
16271
16272
16273else
16274  # If there is no Makefile yet, we rely on a make rule to execute
16275  # `config.status --recheck' to rerun these tests and create the
16276  # libtool script then.
16277  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16278  if test -f "$ltmain_in"; then
16279    test -f Makefile && make "$ltmain"
16280  fi
16281fi
16282
16283
16284ac_ext=c
16285ac_cpp='$CPP $CPPFLAGS'
16286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16288ac_compiler_gnu=$ac_cv_c_compiler_gnu
16289
16290CC="$lt_save_CC"
16291
16292	else
16293	  tagname=""
16294	fi
16295	;;
16296
16297      GCJ)
16298	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16299
16300
16301
16302# Source file extension for Java test sources.
16303ac_ext=java
16304
16305# Object file extension for compiled Java test sources.
16306objext=o
16307objext_GCJ=$objext
16308
16309# Code to be used in simple compile tests
16310lt_simple_compile_test_code="class foo {}\n"
16311
16312# Code to be used in simple link tests
16313lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16314
16315# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16316
16317# If no C compiler was specified, use CC.
16318LTCC=${LTCC-"$CC"}
16319
16320# Allow CC to be a program name with arguments.
16321compiler=$CC
16322
16323
16324# save warnings/boilerplate of simple test code
16325ac_outfile=conftest.$ac_objext
16326printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16327eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16328_lt_compiler_boilerplate=`cat conftest.err`
16329$rm conftest*
16330
16331ac_outfile=conftest.$ac_objext
16332printf "$lt_simple_link_test_code" >conftest.$ac_ext
16333eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16334_lt_linker_boilerplate=`cat conftest.err`
16335$rm conftest*
16336
16337
16338# Allow CC to be a program name with arguments.
16339lt_save_CC="$CC"
16340CC=${GCJ-"gcj"}
16341compiler=$CC
16342compiler_GCJ=$CC
16343for cc_temp in $compiler""; do
16344  case $cc_temp in
16345    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16346    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16347    \-*) ;;
16348    *) break;;
16349  esac
16350done
16351cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16352
16353
16354# GCJ did not exist at the time GCC didn't implicitly link libc in.
16355archive_cmds_need_lc_GCJ=no
16356
16357old_archive_cmds_GCJ=$old_archive_cmds
16358
16359## CAVEAT EMPTOR:
16360## There is no encapsulation within the following macros, do not change
16361## the running order or otherwise move them around unless you know exactly
16362## what you are doing...
16363
16364lt_prog_compiler_no_builtin_flag_GCJ=
16365
16366if test "$GCC" = yes; then
16367  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16368
16369
16370echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16371echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16372if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16373  echo $ECHO_N "(cached) $ECHO_C" >&6
16374else
16375  lt_cv_prog_compiler_rtti_exceptions=no
16376  ac_outfile=conftest.$ac_objext
16377   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16378   lt_compiler_flag="-fno-rtti -fno-exceptions"
16379   # Insert the option either (1) after the last *FLAGS variable, or
16380   # (2) before a word containing "conftest.", or (3) at the end.
16381   # Note that $ac_compile itself does not contain backslashes and begins
16382   # with a dollar sign (not a hyphen), so the echo should work correctly.
16383   # The option is referenced via a variable to avoid confusing sed.
16384   lt_compile=`echo "$ac_compile" | $SED \
16385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16387   -e 's:$: $lt_compiler_flag:'`
16388   (eval echo "\"\$as_me:16388: $lt_compile\"" >&5)
16389   (eval "$lt_compile" 2>conftest.err)
16390   ac_status=$?
16391   cat conftest.err >&5
16392   echo "$as_me:16392: \$? = $ac_status" >&5
16393   if (exit $ac_status) && test -s "$ac_outfile"; then
16394     # The compiler can only warn and ignore the option if not recognized
16395     # So say no if there are warnings other than the usual output.
16396     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16397     $SED '/^$/d' conftest.err >conftest.er2
16398     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16399       lt_cv_prog_compiler_rtti_exceptions=yes
16400     fi
16401   fi
16402   $rm conftest*
16403
16404fi
16405echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16406echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16407
16408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16409    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16410else
16411    :
16412fi
16413
16414fi
16415
16416lt_prog_compiler_wl_GCJ=
16417lt_prog_compiler_pic_GCJ=
16418lt_prog_compiler_static_GCJ=
16419
16420echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16421echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16422
16423  if test "$GCC" = yes; then
16424    lt_prog_compiler_wl_GCJ='-Wl,'
16425    lt_prog_compiler_static_GCJ='-static'
16426
16427    case $host_os in
16428      aix*)
16429      # All AIX code is PIC.
16430      if test "$host_cpu" = ia64; then
16431	# AIX 5 now supports IA64 processor
16432	lt_prog_compiler_static_GCJ='-Bstatic'
16433      fi
16434      ;;
16435
16436    amigaos*)
16437      # FIXME: we need at least 68020 code to build shared libraries, but
16438      # adding the `-m68020' flag to GCC prevents building anything better,
16439      # like `-m68040'.
16440      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16441      ;;
16442
16443    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
16444    | osf5*)
16445      # PIC is the default for these OSes.
16446      ;;
16447
16448    mingw* | pw32* | os2*)
16449      # This hack is so that the source file can tell whether it is being
16450      # built for inclusion in a dll (and should export symbols for example).
16451      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16452      ;;
16453
16454    darwin* | rhapsody*)
16455      # PIC is the default on this platform
16456      # Common symbols not allowed in MH_DYLIB files
16457      lt_prog_compiler_pic_GCJ='-fno-common'
16458      ;;
16459
16460    msdosdjgpp*)
16461      # Just because we use GCC doesn't mean we suddenly get shared libraries
16462      # on systems that don't support them.
16463      lt_prog_compiler_can_build_shared_GCJ=no
16464      enable_shared=no
16465      ;;
16466
16467    sysv4*MP*)
16468      if test -d /usr/nec; then
16469	lt_prog_compiler_pic_GCJ=-Kconform_pic
16470      fi
16471      ;;
16472
16473    hpux*)
16474      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16475      # not for PA HP-UX.
16476      case $host_cpu in
16477      hppa*64*|ia64*)
16478	# +Z the default
16479	;;
16480      *)
16481	lt_prog_compiler_pic_GCJ='-fPIC'
16482	;;
16483      esac
16484      ;;
16485
16486    *)
16487      lt_prog_compiler_pic_GCJ='-fPIC'
16488      ;;
16489    esac
16490  else
16491    # PORTME Check for flag to pass linker flags through the system compiler.
16492    case $host_os in
16493    aix*)
16494      lt_prog_compiler_wl_GCJ='-Wl,'
16495      if test "$host_cpu" = ia64; then
16496	# AIX 5 now supports IA64 processor
16497	lt_prog_compiler_static_GCJ='-Bstatic'
16498      else
16499	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16500      fi
16501      ;;
16502      darwin*)
16503        # PIC is the default on this platform
16504        # Common symbols not allowed in MH_DYLIB files
16505       case $cc_basename in
16506         xlc*)
16507         lt_prog_compiler_pic_GCJ='-qnocommon'
16508         lt_prog_compiler_wl_GCJ='-Wl,'
16509         ;;
16510       esac
16511       ;;
16512
16513    mingw* | pw32* | os2*)
16514      # This hack is so that the source file can tell whether it is being
16515      # built for inclusion in a dll (and should export symbols for example).
16516      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16517      ;;
16518
16519    hpux9* | hpux10* | hpux11*)
16520      lt_prog_compiler_wl_GCJ='-Wl,'
16521      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16522      # not for PA HP-UX.
16523      case $host_cpu in
16524      hppa*64*|ia64*)
16525	# +Z the default
16526	;;
16527      *)
16528	lt_prog_compiler_pic_GCJ='+Z'
16529	;;
16530      esac
16531      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16532      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16533      ;;
16534
16535    irix5* | irix6* | nonstopux*)
16536      lt_prog_compiler_wl_GCJ='-Wl,'
16537      # PIC (with -KPIC) is the default.
16538      lt_prog_compiler_static_GCJ='-non_shared'
16539      ;;
16540
16541    newsos6)
16542      lt_prog_compiler_pic_GCJ='-KPIC'
16543      lt_prog_compiler_static_GCJ='-Bstatic'
16544      ;;
16545
16546    linux*)
16547      case $cc_basename in
16548      icc* | ecc*)
16549	lt_prog_compiler_wl_GCJ='-Wl,'
16550	lt_prog_compiler_pic_GCJ='-KPIC'
16551	lt_prog_compiler_static_GCJ='-static'
16552        ;;
16553      pgcc* | pgf77* | pgf90* | pgf95*)
16554        # Portland Group compilers (*not* the Pentium gcc compiler,
16555	# which looks to be a dead project)
16556	lt_prog_compiler_wl_GCJ='-Wl,'
16557	lt_prog_compiler_pic_GCJ='-fpic'
16558	lt_prog_compiler_static_GCJ='-Bstatic'
16559        ;;
16560      ccc*)
16561        lt_prog_compiler_wl_GCJ='-Wl,'
16562        # All Alpha code is PIC.
16563        lt_prog_compiler_static_GCJ='-non_shared'
16564        ;;
16565      esac
16566      ;;
16567
16568    osf3* | osf4* | osf5*)
16569      lt_prog_compiler_wl_GCJ='-Wl,'
16570      # All OSF/1 code is PIC.
16571      lt_prog_compiler_static_GCJ='-non_shared'
16572      ;;
16573
16574    sco3.2v5*)
16575      lt_prog_compiler_pic_GCJ='-Kpic'
16576      lt_prog_compiler_static_GCJ='-dn'
16577      ;;
16578
16579    solaris*)
16580      lt_prog_compiler_pic_GCJ='-KPIC'
16581      lt_prog_compiler_static_GCJ='-Bstatic'
16582      case $cc_basename in
16583      f77* | f90* | f95*)
16584	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16585      *)
16586	lt_prog_compiler_wl_GCJ='-Wl,';;
16587      esac
16588      ;;
16589
16590    sunos4*)
16591      lt_prog_compiler_wl_GCJ='-Qoption ld '
16592      lt_prog_compiler_pic_GCJ='-PIC'
16593      lt_prog_compiler_static_GCJ='-Bstatic'
16594      ;;
16595
16596    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16597      lt_prog_compiler_wl_GCJ='-Wl,'
16598      lt_prog_compiler_pic_GCJ='-KPIC'
16599      lt_prog_compiler_static_GCJ='-Bstatic'
16600      ;;
16601
16602    sysv4*MP*)
16603      if test -d /usr/nec ;then
16604	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16605	lt_prog_compiler_static_GCJ='-Bstatic'
16606      fi
16607      ;;
16608
16609    unicos*)
16610      lt_prog_compiler_wl_GCJ='-Wl,'
16611      lt_prog_compiler_can_build_shared_GCJ=no
16612      ;;
16613
16614    uts4*)
16615      lt_prog_compiler_pic_GCJ='-pic'
16616      lt_prog_compiler_static_GCJ='-Bstatic'
16617      ;;
16618
16619    *)
16620      lt_prog_compiler_can_build_shared_GCJ=no
16621      ;;
16622    esac
16623  fi
16624
16625echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16626echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16627
16628#
16629# Check to make sure the PIC flag actually works.
16630#
16631if test -n "$lt_prog_compiler_pic_GCJ"; then
16632
16633echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16634echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16635if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16636  echo $ECHO_N "(cached) $ECHO_C" >&6
16637else
16638  lt_prog_compiler_pic_works_GCJ=no
16639  ac_outfile=conftest.$ac_objext
16640   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16641   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16642   # Insert the option either (1) after the last *FLAGS variable, or
16643   # (2) before a word containing "conftest.", or (3) at the end.
16644   # Note that $ac_compile itself does not contain backslashes and begins
16645   # with a dollar sign (not a hyphen), so the echo should work correctly.
16646   # The option is referenced via a variable to avoid confusing sed.
16647   lt_compile=`echo "$ac_compile" | $SED \
16648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16650   -e 's:$: $lt_compiler_flag:'`
16651   (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
16652   (eval "$lt_compile" 2>conftest.err)
16653   ac_status=$?
16654   cat conftest.err >&5
16655   echo "$as_me:16655: \$? = $ac_status" >&5
16656   if (exit $ac_status) && test -s "$ac_outfile"; then
16657     # The compiler can only warn and ignore the option if not recognized
16658     # So say no if there are warnings other than the usual output.
16659     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16660     $SED '/^$/d' conftest.err >conftest.er2
16661     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16662       lt_prog_compiler_pic_works_GCJ=yes
16663     fi
16664   fi
16665   $rm conftest*
16666
16667fi
16668echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16669echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16670
16671if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16672    case $lt_prog_compiler_pic_GCJ in
16673     "" | " "*) ;;
16674     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16675     esac
16676else
16677    lt_prog_compiler_pic_GCJ=
16678     lt_prog_compiler_can_build_shared_GCJ=no
16679fi
16680
16681fi
16682case $host_os in
16683  # For platforms which do not support PIC, -DPIC is meaningless:
16684  *djgpp*)
16685    lt_prog_compiler_pic_GCJ=
16686    ;;
16687  *)
16688    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16689    ;;
16690esac
16691
16692echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16693echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16694if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16695  echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697  lt_cv_prog_compiler_c_o_GCJ=no
16698   $rm -r conftest 2>/dev/null
16699   mkdir conftest
16700   cd conftest
16701   mkdir out
16702   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16703
16704   lt_compiler_flag="-o out/conftest2.$ac_objext"
16705   # Insert the option either (1) after the last *FLAGS variable, or
16706   # (2) before a word containing "conftest.", or (3) at the end.
16707   # Note that $ac_compile itself does not contain backslashes and begins
16708   # with a dollar sign (not a hyphen), so the echo should work correctly.
16709   lt_compile=`echo "$ac_compile" | $SED \
16710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16712   -e 's:$: $lt_compiler_flag:'`
16713   (eval echo "\"\$as_me:16713: $lt_compile\"" >&5)
16714   (eval "$lt_compile" 2>out/conftest.err)
16715   ac_status=$?
16716   cat out/conftest.err >&5
16717   echo "$as_me:16717: \$? = $ac_status" >&5
16718   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16719   then
16720     # The compiler can only warn and ignore the option if not recognized
16721     # So say no if there are warnings
16722     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16723     $SED '/^$/d' out/conftest.err >out/conftest.er2
16724     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16725       lt_cv_prog_compiler_c_o_GCJ=yes
16726     fi
16727   fi
16728   chmod u+w . 2>&5
16729   $rm conftest*
16730   # SGI C++ compiler will create directory out/ii_files/ for
16731   # template instantiation
16732   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16733   $rm out/* && rmdir out
16734   cd ..
16735   rmdir conftest
16736   $rm conftest*
16737
16738fi
16739echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16740echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16741
16742
16743hard_links="nottested"
16744if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16745  # do not overwrite the value of need_locks provided by the user
16746  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16747echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16748  hard_links=yes
16749  $rm conftest*
16750  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16751  touch conftest.a
16752  ln conftest.a conftest.b 2>&5 || hard_links=no
16753  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16754  echo "$as_me:$LINENO: result: $hard_links" >&5
16755echo "${ECHO_T}$hard_links" >&6
16756  if test "$hard_links" = no; then
16757    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16758echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16759    need_locks=warn
16760  fi
16761else
16762  need_locks=no
16763fi
16764
16765echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16766echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16767
16768  runpath_var=
16769  allow_undefined_flag_GCJ=
16770  enable_shared_with_static_runtimes_GCJ=no
16771  archive_cmds_GCJ=
16772  archive_expsym_cmds_GCJ=
16773  old_archive_From_new_cmds_GCJ=
16774  old_archive_from_expsyms_cmds_GCJ=
16775  export_dynamic_flag_spec_GCJ=
16776  whole_archive_flag_spec_GCJ=
16777  thread_safe_flag_spec_GCJ=
16778  hardcode_libdir_flag_spec_GCJ=
16779  hardcode_libdir_flag_spec_ld_GCJ=
16780  hardcode_libdir_separator_GCJ=
16781  hardcode_direct_GCJ=no
16782  hardcode_minus_L_GCJ=no
16783  hardcode_shlibpath_var_GCJ=unsupported
16784  link_all_deplibs_GCJ=unknown
16785  hardcode_automatic_GCJ=no
16786  module_cmds_GCJ=
16787  module_expsym_cmds_GCJ=
16788  always_export_symbols_GCJ=no
16789  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16790  # include_expsyms should be a list of space-separated symbols to be *always*
16791  # included in the symbol list
16792  include_expsyms_GCJ=
16793  # exclude_expsyms can be an extended regexp of symbols to exclude
16794  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16795  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16796  # as well as any symbol that contains `d'.
16797  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16798  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16799  # platforms (ab)use it in PIC code, but their linkers get confused if
16800  # the symbol is explicitly referenced.  Since portable code cannot
16801  # rely on this symbol name, it's probably fine to never include it in
16802  # preloaded symbol tables.
16803  extract_expsyms_cmds=
16804  # Just being paranoid about ensuring that cc_basename is set.
16805  for cc_temp in $compiler""; do
16806  case $cc_temp in
16807    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16808    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16809    \-*) ;;
16810    *) break;;
16811  esac
16812done
16813cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16814
16815  case $host_os in
16816  cygwin* | mingw* | pw32*)
16817    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16818    # When not using gcc, we currently assume that we are using
16819    # Microsoft Visual C++.
16820    if test "$GCC" != yes; then
16821      with_gnu_ld=no
16822    fi
16823    ;;
16824  openbsd*)
16825    with_gnu_ld=no
16826    ;;
16827  esac
16828
16829  ld_shlibs_GCJ=yes
16830  if test "$with_gnu_ld" = yes; then
16831    # If archive_cmds runs LD, not CC, wlarc should be empty
16832    wlarc='${wl}'
16833
16834    # Set some defaults for GNU ld with shared library support. These
16835    # are reset later if shared libraries are not supported. Putting them
16836    # here allows them to be overridden if necessary.
16837    runpath_var=LD_RUN_PATH
16838    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16839    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16840    # ancient GNU ld didn't support --whole-archive et. al.
16841    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16842	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16843      else
16844  	whole_archive_flag_spec_GCJ=
16845    fi
16846    supports_anon_versioning=no
16847    case `$LD -v 2>/dev/null` in
16848      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16849      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16850      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16851      *\ 2.11.*) ;; # other 2.11 versions
16852      *) supports_anon_versioning=yes ;;
16853    esac
16854
16855    # See if GNU ld supports shared libraries.
16856    case $host_os in
16857    aix3* | aix4* | aix5*)
16858      # On AIX/PPC, the GNU linker is very broken
16859      if test "$host_cpu" != ia64; then
16860	ld_shlibs_GCJ=no
16861	cat <<EOF 1>&2
16862
16863*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16864*** to be unable to reliably create shared libraries on AIX.
16865*** Therefore, libtool is disabling shared libraries support.  If you
16866*** really care for shared libraries, you may want to modify your PATH
16867*** so that a non-GNU linker is found, and then restart.
16868
16869EOF
16870      fi
16871      ;;
16872
16873    amigaos*)
16874      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)'
16875      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876      hardcode_minus_L_GCJ=yes
16877
16878      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16879      # that the semantics of dynamic libraries on AmigaOS, at least up
16880      # to version 4, is to share data among multiple programs linked
16881      # with the same dynamic library.  Since this doesn't match the
16882      # behavior of shared libraries on other platforms, we can't use
16883      # them.
16884      ld_shlibs_GCJ=no
16885      ;;
16886
16887    beos*)
16888      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16889	allow_undefined_flag_GCJ=unsupported
16890	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16891	# support --undefined.  This deserves some investigation.  FIXME
16892	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16893      else
16894	ld_shlibs_GCJ=no
16895      fi
16896      ;;
16897
16898    cygwin* | mingw* | pw32*)
16899      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16900      # as there is no search path for DLLs.
16901      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16902      allow_undefined_flag_GCJ=unsupported
16903      always_export_symbols_GCJ=no
16904      enable_shared_with_static_runtimes_GCJ=yes
16905      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16906
16907      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16908        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16909	# If the export-symbols file already is a .def file (1st line
16910	# is EXPORTS), use it as is; otherwise, prepend...
16911	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16912	  cp $export_symbols $output_objdir/$soname.def;
16913	else
16914	  echo EXPORTS > $output_objdir/$soname.def;
16915	  cat $export_symbols >> $output_objdir/$soname.def;
16916	fi~
16917	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16918      else
16919	ld_shlibs_GCJ=no
16920      fi
16921      ;;
16922
16923    haiku*)
16924      allow_undefined_flag_GCJ=unsupported
16925      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16926      ;;
16927
16928    linux*)
16929      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930	tmp_addflag=
16931	case $cc_basename,$host_cpu in
16932	pgcc*)				# Portland Group C compiler
16933	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16934	  tmp_addflag=' $pic_flag'
16935	  ;;
16936	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16937	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16938	  tmp_addflag=' $pic_flag -Mnomain' ;;
16939	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16940	  tmp_addflag=' -i_dynamic' ;;
16941	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16942	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16943	ifc* | ifort*)			# Intel Fortran compiler
16944	  tmp_addflag=' -nofor_main' ;;
16945	esac
16946	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16947
16948	if test $supports_anon_versioning = yes; then
16949	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16950  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16951  $echo "local: *; };" >> $output_objdir/$libname.ver~
16952	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16953	fi
16954      else
16955	ld_shlibs_GCJ=no
16956      fi
16957      ;;
16958
16959    netbsd*)
16960      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16961	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16962	wlarc=
16963      else
16964	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16965	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16966      fi
16967      ;;
16968
16969    solaris* | sysv5*)
16970      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16971	ld_shlibs_GCJ=no
16972	cat <<EOF 1>&2
16973
16974*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16975*** create shared libraries on Solaris systems.  Therefore, libtool
16976*** is disabling shared libraries support.  We urge you to upgrade GNU
16977*** binutils to release 2.9.1 or newer.  Another option is to modify
16978*** your PATH or compiler configuration so that the native linker is
16979*** used, and then restart.
16980
16981EOF
16982      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16983	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16985      else
16986	ld_shlibs_GCJ=no
16987      fi
16988      ;;
16989
16990    sunos4*)
16991      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16992      wlarc=
16993      hardcode_direct_GCJ=yes
16994      hardcode_shlibpath_var_GCJ=no
16995      ;;
16996
16997    *)
16998      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16999	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17000	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17001      else
17002	ld_shlibs_GCJ=no
17003      fi
17004      ;;
17005    esac
17006
17007    if test "$ld_shlibs_GCJ" = no; then
17008      runpath_var=
17009      hardcode_libdir_flag_spec_GCJ=
17010      export_dynamic_flag_spec_GCJ=
17011      whole_archive_flag_spec_GCJ=
17012    fi
17013  else
17014    # PORTME fill in a description of your system's linker (not GNU ld)
17015    case $host_os in
17016    aix3*)
17017      allow_undefined_flag_GCJ=unsupported
17018      always_export_symbols_GCJ=yes
17019      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'
17020      # Note: this linker hardcodes the directories in LIBPATH if there
17021      # are no directories specified by -L.
17022      hardcode_minus_L_GCJ=yes
17023      if test "$GCC" = yes && test -z "$link_static_flag"; then
17024	# Neither direct hardcoding nor static linking is supported with a
17025	# broken collect2.
17026	hardcode_direct_GCJ=unsupported
17027      fi
17028      ;;
17029
17030    aix4* | aix5*)
17031      if test "$host_cpu" = ia64; then
17032	# On IA64, the linker does run time linking by default, so we don't
17033	# have to do anything special.
17034	aix_use_runtimelinking=no
17035	exp_sym_flag='-Bexport'
17036	no_entry_flag=""
17037      else
17038	# If we're using GNU nm, then we don't want the "-C" option.
17039	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17040	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17041	  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'
17042	else
17043	  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'
17044	fi
17045	aix_use_runtimelinking=no
17046
17047	# Test if we are trying to use run time linking or normal
17048	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17049	# need to do runtime linking.
17050	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17051	  for ld_flag in $LDFLAGS; do
17052  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17053  	    aix_use_runtimelinking=yes
17054  	    break
17055  	  fi
17056	  done
17057	esac
17058
17059	exp_sym_flag='-bexport'
17060	no_entry_flag='-bnoentry'
17061      fi
17062
17063      # When large executables or shared objects are built, AIX ld can
17064      # have problems creating the table of contents.  If linking a library
17065      # or program results in "error TOC overflow" add -mminimal-toc to
17066      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17067      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17068
17069      archive_cmds_GCJ=''
17070      hardcode_direct_GCJ=yes
17071      hardcode_libdir_separator_GCJ=':'
17072      link_all_deplibs_GCJ=yes
17073
17074      if test "$GCC" = yes; then
17075	case $host_os in aix4.[012]|aix4.[012].*)
17076	# We only want to do this on AIX 4.2 and lower, the check
17077	# below for broken collect2 doesn't work under 4.3+
17078	  collect2name=`${CC} -print-prog-name=collect2`
17079	  if test -f "$collect2name" && \
17080  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17081	  then
17082  	  # We have reworked collect2
17083  	  hardcode_direct_GCJ=yes
17084	  else
17085  	  # We have old collect2
17086  	  hardcode_direct_GCJ=unsupported
17087  	  # It fails to find uninstalled libraries when the uninstalled
17088  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17089  	  # to unsupported forces relinking
17090  	  hardcode_minus_L_GCJ=yes
17091  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17092  	  hardcode_libdir_separator_GCJ=
17093	  fi
17094	esac
17095	shared_flag='-shared'
17096	if test "$aix_use_runtimelinking" = yes; then
17097	  shared_flag="$shared_flag "'${wl}-G'
17098	fi
17099      else
17100	# not using gcc
17101	if test "$host_cpu" = ia64; then
17102  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17103  	# chokes on -Wl,-G. The following line is correct:
17104	  shared_flag='-G'
17105	else
17106  	if test "$aix_use_runtimelinking" = yes; then
17107	    shared_flag='${wl}-G'
17108	  else
17109	    shared_flag='${wl}-bM:SRE'
17110  	fi
17111	fi
17112      fi
17113
17114      # It seems that -bexpall does not export symbols beginning with
17115      # underscore (_), so it is better to generate a list of symbols to export.
17116      always_export_symbols_GCJ=yes
17117      if test "$aix_use_runtimelinking" = yes; then
17118	# Warning - without using the other runtime loading flags (-brtl),
17119	# -berok will link without error, but may produce a broken library.
17120	allow_undefined_flag_GCJ='-berok'
17121       # Determine the default libpath from the value encoded in an empty executable.
17122       cat >conftest.$ac_ext <<_ACEOF
17123/* confdefs.h.  */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h.  */
17128
17129int
17130main ()
17131{
17132
17133  ;
17134  return 0;
17135}
17136_ACEOF
17137rm -f conftest.$ac_objext conftest$ac_exeext
17138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139  (eval $ac_link) 2>conftest.er1
17140  ac_status=$?
17141  grep -v '^ *+' conftest.er1 >conftest.err
17142  rm -f conftest.er1
17143  cat conftest.err >&5
17144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145  (exit $ac_status); } &&
17146	 { ac_try='test -z "$ac_c_werror_flag"
17147			 || test ! -s conftest.err'
17148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149  (eval $ac_try) 2>&5
17150  ac_status=$?
17151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152  (exit $ac_status); }; } &&
17153	 { ac_try='test -s conftest$ac_exeext'
17154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155  (eval $ac_try) 2>&5
17156  ac_status=$?
17157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158  (exit $ac_status); }; }; then
17159
17160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17161}'`
17162# Check for a 64-bit object if we didn't find anything.
17163if 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; }
17164}'`; fi
17165else
17166  echo "$as_me: failed program was:" >&5
17167sed 's/^/| /' conftest.$ac_ext >&5
17168
17169fi
17170rm -f conftest.err conftest.$ac_objext \
17171      conftest$ac_exeext conftest.$ac_ext
17172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17173
17174       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17175	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"
17176       else
17177	if test "$host_cpu" = ia64; then
17178	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17179	  allow_undefined_flag_GCJ="-z nodefs"
17180	  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"
17181	else
17182	 # Determine the default libpath from the value encoded in an empty executable.
17183	 cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h.  */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h.  */
17189
17190int
17191main ()
17192{
17193
17194  ;
17195  return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200  (eval $ac_link) 2>conftest.er1
17201  ac_status=$?
17202  grep -v '^ *+' conftest.er1 >conftest.err
17203  rm -f conftest.er1
17204  cat conftest.err >&5
17205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206  (exit $ac_status); } &&
17207	 { ac_try='test -z "$ac_c_werror_flag"
17208			 || test ! -s conftest.err'
17209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210  (eval $ac_try) 2>&5
17211  ac_status=$?
17212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213  (exit $ac_status); }; } &&
17214	 { ac_try='test -s conftest$ac_exeext'
17215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216  (eval $ac_try) 2>&5
17217  ac_status=$?
17218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219  (exit $ac_status); }; }; then
17220
17221aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17222}'`
17223# Check for a 64-bit object if we didn't find anything.
17224if 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; }
17225}'`; fi
17226else
17227  echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230fi
17231rm -f conftest.err conftest.$ac_objext \
17232      conftest$ac_exeext conftest.$ac_ext
17233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17234
17235	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17236	  # Warning - without using the other run time loading flags,
17237	  # -berok will link without error, but may produce a broken library.
17238	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17239	  allow_undefined_flag_GCJ=' ${wl}-berok'
17240	  # -bexpall does not export symbols beginning with underscore (_)
17241	  always_export_symbols_GCJ=yes
17242	  # Exported symbols can be pulled into shared objects from archives
17243	  whole_archive_flag_spec_GCJ=' '
17244	  archive_cmds_need_lc_GCJ=yes
17245	  # This is similar to how AIX traditionally builds its shared libraries.
17246	  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'
17247	fi
17248      fi
17249      ;;
17250
17251    amigaos*)
17252      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)'
17253      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17254      hardcode_minus_L_GCJ=yes
17255      # see comment about different semantics on the GNU ld section
17256      ld_shlibs_GCJ=no
17257      ;;
17258
17259    bsdi[45]*)
17260      export_dynamic_flag_spec_GCJ=-rdynamic
17261      ;;
17262
17263    cygwin* | mingw* | pw32*)
17264      # When not using gcc, we currently assume that we are using
17265      # Microsoft Visual C++.
17266      # hardcode_libdir_flag_spec is actually meaningless, as there is
17267      # no search path for DLLs.
17268      hardcode_libdir_flag_spec_GCJ=' '
17269      allow_undefined_flag_GCJ=unsupported
17270      # Tell ltmain to make .lib files, not .a files.
17271      libext=lib
17272      # Tell ltmain to make .dll files, not .so files.
17273      shrext_cmds=".dll"
17274      # FIXME: Setting linknames here is a bad hack.
17275      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17276      # The linker will automatically build a .lib file if we build a DLL.
17277      old_archive_From_new_cmds_GCJ='true'
17278      # FIXME: Should let the user specify the lib program.
17279      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17280      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17281      enable_shared_with_static_runtimes_GCJ=yes
17282      ;;
17283
17284    darwin* | rhapsody*)
17285      case $host_os in
17286        rhapsody* | darwin1.[012])
17287         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17288         ;;
17289       *) # Darwin 1.3 on
17290         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17291           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17292         else
17293           case ${MACOSX_DEPLOYMENT_TARGET} in
17294             10.[012])
17295               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17296               ;;
17297             10.*)
17298               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17299               ;;
17300           esac
17301         fi
17302         ;;
17303      esac
17304      archive_cmds_need_lc_GCJ=no
17305      hardcode_direct_GCJ=no
17306      hardcode_automatic_GCJ=yes
17307      hardcode_shlibpath_var_GCJ=unsupported
17308      whole_archive_flag_spec_GCJ=''
17309      link_all_deplibs_GCJ=yes
17310    if test "$GCC" = yes ; then
17311    	output_verbose_link_cmd='echo'
17312        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17313      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17315      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17316      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17317    else
17318      case $cc_basename in
17319        xlc*)
17320         output_verbose_link_cmd='echo'
17321         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17322         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17323          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17324         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17325          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17326          ;;
17327       *)
17328         ld_shlibs_GCJ=no
17329          ;;
17330      esac
17331    fi
17332      ;;
17333
17334    dgux*)
17335      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17336      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17337      hardcode_shlibpath_var_GCJ=no
17338      ;;
17339
17340    freebsd1*)
17341      ld_shlibs_GCJ=no
17342      ;;
17343
17344    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17345    # support.  Future versions do this automatically, but an explicit c++rt0.o
17346    # does not break anything, and helps significantly (at the cost of a little
17347    # extra space).
17348    freebsd2.2*)
17349      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17350      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17351      hardcode_direct_GCJ=yes
17352      hardcode_shlibpath_var_GCJ=no
17353      ;;
17354
17355    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17356    freebsd2*)
17357      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17358      hardcode_direct_GCJ=yes
17359      hardcode_minus_L_GCJ=yes
17360      hardcode_shlibpath_var_GCJ=no
17361      ;;
17362
17363    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17364    freebsd* | kfreebsd*-gnu | dragonfly*)
17365      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17366      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17367      hardcode_direct_GCJ=yes
17368      hardcode_shlibpath_var_GCJ=no
17369      ;;
17370
17371    hpux9*)
17372      if test "$GCC" = yes; then
17373	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'
17374      else
17375	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'
17376      fi
17377      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17378      hardcode_libdir_separator_GCJ=:
17379      hardcode_direct_GCJ=yes
17380
17381      # hardcode_minus_L: Not really in the search PATH,
17382      # but as the default location of the library.
17383      hardcode_minus_L_GCJ=yes
17384      export_dynamic_flag_spec_GCJ='${wl}-E'
17385      ;;
17386
17387    hpux10* | hpux11*)
17388      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17389	case $host_cpu in
17390	hppa*64*|ia64*)
17391	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17392	  ;;
17393	*)
17394	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17395	  ;;
17396	esac
17397      else
17398	case $host_cpu in
17399	hppa*64*|ia64*)
17400	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17401	  ;;
17402	*)
17403	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17404	  ;;
17405	esac
17406      fi
17407      if test "$with_gnu_ld" = no; then
17408	case $host_cpu in
17409	hppa*64*)
17410	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17411	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17412	  hardcode_libdir_separator_GCJ=:
17413	  hardcode_direct_GCJ=no
17414	  hardcode_shlibpath_var_GCJ=no
17415	  ;;
17416	ia64*)
17417	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17418	  hardcode_direct_GCJ=no
17419	  hardcode_shlibpath_var_GCJ=no
17420
17421	  # hardcode_minus_L: Not really in the search PATH,
17422	  # but as the default location of the library.
17423	  hardcode_minus_L_GCJ=yes
17424	  ;;
17425	*)
17426	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17427	  hardcode_libdir_separator_GCJ=:
17428	  hardcode_direct_GCJ=yes
17429	  export_dynamic_flag_spec_GCJ='${wl}-E'
17430
17431	  # hardcode_minus_L: Not really in the search PATH,
17432	  # but as the default location of the library.
17433	  hardcode_minus_L_GCJ=yes
17434	  ;;
17435	esac
17436      fi
17437      ;;
17438
17439    irix5* | irix6* | nonstopux*)
17440      if test "$GCC" = yes; then
17441	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'
17442      else
17443	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'
17444	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17445      fi
17446      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447      hardcode_libdir_separator_GCJ=:
17448      link_all_deplibs_GCJ=yes
17449      ;;
17450
17451    netbsd*)
17452      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17453	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17454      else
17455	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17456      fi
17457      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17458      hardcode_direct_GCJ=yes
17459      hardcode_shlibpath_var_GCJ=no
17460      ;;
17461
17462    newsos6)
17463      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17464      hardcode_direct_GCJ=yes
17465      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17466      hardcode_libdir_separator_GCJ=:
17467      hardcode_shlibpath_var_GCJ=no
17468      ;;
17469
17470    openbsd*)
17471      hardcode_direct_GCJ=yes
17472      hardcode_shlibpath_var_GCJ=no
17473      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17475	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17476	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17477	export_dynamic_flag_spec_GCJ='${wl}-E'
17478      else
17479       case $host_os in
17480	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17481	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17482	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483	   ;;
17484	 *)
17485	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17486	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17487	   ;;
17488       esac
17489      fi
17490      ;;
17491
17492    os2*)
17493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494      hardcode_minus_L_GCJ=yes
17495      allow_undefined_flag_GCJ=unsupported
17496      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'
17497      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17498      ;;
17499
17500    osf3*)
17501      if test "$GCC" = yes; then
17502	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17503	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'
17504      else
17505	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17506	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'
17507      fi
17508      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17509      hardcode_libdir_separator_GCJ=:
17510      ;;
17511
17512    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17513      if test "$GCC" = yes; then
17514	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17515	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'
17516	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17517      else
17518	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17519	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'
17520	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~
17521	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17522
17523	# Both c and cxx compiler support -rpath directly
17524	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17525      fi
17526      hardcode_libdir_separator_GCJ=:
17527      ;;
17528
17529    sco3.2v5*)
17530      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17531      hardcode_shlibpath_var_GCJ=no
17532      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17533      runpath_var=LD_RUN_PATH
17534      hardcode_runpath_var=yes
17535      ;;
17536
17537    solaris*)
17538      no_undefined_flag_GCJ=' -z text'
17539      if test "$GCC" = yes; then
17540	wlarc='${wl}'
17541	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17542	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17543	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17544      else
17545	wlarc=''
17546	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17547	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17548  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17549      fi
17550      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17551      hardcode_shlibpath_var_GCJ=no
17552      case $host_os in
17553      solaris2.[0-5] | solaris2.[0-5].*) ;;
17554      *)
17555 	# The compiler driver will combine linker options so we
17556 	# cannot just pass the convience library names through
17557 	# without $wl, iff we do not link with $LD.
17558 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17559 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17560 	case $wlarc in
17561 	'')
17562 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17563 	*)
17564 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17565 	esac ;;
17566      esac
17567      link_all_deplibs_GCJ=yes
17568      ;;
17569
17570    sunos4*)
17571      if test "x$host_vendor" = xsequent; then
17572	# Use $CC to link under sequent, because it throws in some extra .o
17573	# files that make .init and .fini sections work.
17574	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17575      else
17576	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17577      fi
17578      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579      hardcode_direct_GCJ=yes
17580      hardcode_minus_L_GCJ=yes
17581      hardcode_shlibpath_var_GCJ=no
17582      ;;
17583
17584    sysv4)
17585      case $host_vendor in
17586	sni)
17587	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17588	  hardcode_direct_GCJ=yes # is this really true???
17589	;;
17590	siemens)
17591	  ## LD is ld it makes a PLAMLIB
17592	  ## CC just makes a GrossModule.
17593	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17594	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17595	  hardcode_direct_GCJ=no
17596        ;;
17597	motorola)
17598	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17600	;;
17601      esac
17602      runpath_var='LD_RUN_PATH'
17603      hardcode_shlibpath_var_GCJ=no
17604      ;;
17605
17606    sysv4.3*)
17607      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17608      hardcode_shlibpath_var_GCJ=no
17609      export_dynamic_flag_spec_GCJ='-Bexport'
17610      ;;
17611
17612    sysv4*MP*)
17613      if test -d /usr/nec; then
17614	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615	hardcode_shlibpath_var_GCJ=no
17616	runpath_var=LD_RUN_PATH
17617	hardcode_runpath_var=yes
17618	ld_shlibs_GCJ=yes
17619      fi
17620      ;;
17621
17622    sysv4.2uw2*)
17623      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17624      hardcode_direct_GCJ=yes
17625      hardcode_minus_L_GCJ=no
17626      hardcode_shlibpath_var_GCJ=no
17627      hardcode_runpath_var=yes
17628      runpath_var=LD_RUN_PATH
17629      ;;
17630
17631   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17632      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17633      if test "$GCC" = yes; then
17634	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17635      else
17636	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17637      fi
17638      runpath_var='LD_RUN_PATH'
17639      hardcode_shlibpath_var_GCJ=no
17640      ;;
17641
17642    sysv5*)
17643      no_undefined_flag_GCJ=' -z text'
17644      # $CC -shared without GNU ld will not create a library from C++
17645      # object files and a static libstdc++, better avoid it by now
17646      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17648  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17649      hardcode_libdir_flag_spec_GCJ=
17650      hardcode_shlibpath_var_GCJ=no
17651      runpath_var='LD_RUN_PATH'
17652      ;;
17653
17654    uts4*)
17655      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657      hardcode_shlibpath_var_GCJ=no
17658      ;;
17659
17660    *)
17661      ld_shlibs_GCJ=no
17662      ;;
17663    esac
17664  fi
17665
17666echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17667echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17668test "$ld_shlibs_GCJ" = no && can_build_shared=no
17669
17670variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17671if test "$GCC" = yes; then
17672  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17673fi
17674
17675#
17676# Do we need to explicitly link libc?
17677#
17678case "x$archive_cmds_need_lc_GCJ" in
17679x|xyes)
17680  # Assume -lc should be added
17681  archive_cmds_need_lc_GCJ=yes
17682
17683  if test "$enable_shared" = yes && test "$GCC" = yes; then
17684    case $archive_cmds_GCJ in
17685    *'~'*)
17686      # FIXME: we may have to deal with multi-command sequences.
17687      ;;
17688    '$CC '*)
17689      # Test whether the compiler implicitly links with -lc since on some
17690      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17691      # to ld, don't add -lc before -lgcc.
17692      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17693echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17694      $rm conftest*
17695      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17696
17697      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698  (eval $ac_compile) 2>&5
17699  ac_status=$?
17700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701  (exit $ac_status); } 2>conftest.err; then
17702        soname=conftest
17703        lib=conftest
17704        libobjs=conftest.$ac_objext
17705        deplibs=
17706        wl=$lt_prog_compiler_wl_GCJ
17707        compiler_flags=-v
17708        linker_flags=-v
17709        verstring=
17710        output_objdir=.
17711        libname=conftest
17712        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17713        allow_undefined_flag_GCJ=
17714        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17715  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17716  ac_status=$?
17717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718  (exit $ac_status); }
17719        then
17720	  archive_cmds_need_lc_GCJ=no
17721        else
17722	  archive_cmds_need_lc_GCJ=yes
17723        fi
17724        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17725      else
17726        cat conftest.err 1>&5
17727      fi
17728      $rm conftest*
17729      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17730echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17731      ;;
17732    esac
17733  fi
17734  ;;
17735esac
17736
17737echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17738echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17739library_names_spec=
17740libname_spec='lib$name'
17741soname_spec=
17742shrext_cmds=".so"
17743postinstall_cmds=
17744postuninstall_cmds=
17745finish_cmds=
17746finish_eval=
17747shlibpath_var=
17748shlibpath_overrides_runpath=unknown
17749version_type=none
17750dynamic_linker="$host_os ld.so"
17751sys_lib_dlsearch_path_spec="/lib /usr/lib"
17752if test "$GCC" = yes; then
17753  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17754  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17755    # if the path contains ";" then we assume it to be the separator
17756    # otherwise default to the standard path separator (i.e. ":") - it is
17757    # assumed that no part of a normal pathname contains ";" but that should
17758    # okay in the real world where ";" in dirpaths is itself problematic.
17759    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17760  else
17761    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17762  fi
17763else
17764  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17765fi
17766need_lib_prefix=unknown
17767hardcode_into_libs=no
17768
17769# when you set need_version to no, make sure it does not cause -set_version
17770# flags to be left without arguments
17771need_version=unknown
17772
17773case $host_os in
17774aix3*)
17775  version_type=linux
17776  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17777  shlibpath_var=LIBPATH
17778
17779  # AIX 3 has no versioning support, so we append a major version to the name.
17780  soname_spec='${libname}${release}${shared_ext}$major'
17781  ;;
17782
17783aix4* | aix5*)
17784  version_type=linux
17785  need_lib_prefix=no
17786  need_version=no
17787  hardcode_into_libs=yes
17788  if test "$host_cpu" = ia64; then
17789    # AIX 5 supports IA64
17790    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17791    shlibpath_var=LD_LIBRARY_PATH
17792  else
17793    # With GCC up to 2.95.x, collect2 would create an import file
17794    # for dependence libraries.  The import file would start with
17795    # the line `#! .'.  This would cause the generated library to
17796    # depend on `.', always an invalid library.  This was fixed in
17797    # development snapshots of GCC prior to 3.0.
17798    case $host_os in
17799      aix4 | aix4.[01] | aix4.[01].*)
17800      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17801	   echo ' yes '
17802	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17803	:
17804      else
17805	can_build_shared=no
17806      fi
17807      ;;
17808    esac
17809    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17810    # soname into executable. Probably we can add versioning support to
17811    # collect2, so additional links can be useful in future.
17812    if test "$aix_use_runtimelinking" = yes; then
17813      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17814      # instead of lib<name>.a to let people know that these are not
17815      # typical AIX shared libraries.
17816      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817    else
17818      # We preserve .a as extension for shared libraries through AIX4.2
17819      # and later when we are not doing run time linking.
17820      library_names_spec='${libname}${release}.a $libname.a'
17821      soname_spec='${libname}${release}${shared_ext}$major'
17822    fi
17823    shlibpath_var=LIBPATH
17824  fi
17825  ;;
17826
17827amigaos*)
17828  library_names_spec='$libname.ixlibrary $libname.a'
17829  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17830  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'
17831  ;;
17832
17833beos*)
17834  library_names_spec='${libname}${shared_ext}'
17835  dynamic_linker="$host_os ld.so"
17836  shlibpath_var=LIBRARY_PATH
17837  ;;
17838
17839bsdi[45]*)
17840  version_type=linux
17841  need_version=no
17842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843  soname_spec='${libname}${release}${shared_ext}$major'
17844  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17845  shlibpath_var=LD_LIBRARY_PATH
17846  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17847  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17848  # the default ld.so.conf also contains /usr/contrib/lib and
17849  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17850  # libtool to hard-code these into programs
17851  ;;
17852
17853cygwin* | mingw* | pw32*)
17854  version_type=windows
17855  shrext_cmds=".dll"
17856  need_version=no
17857  need_lib_prefix=no
17858
17859  case $GCC,$host_os in
17860  yes,cygwin* | yes,mingw* | yes,pw32*)
17861    library_names_spec='$libname.dll.a'
17862    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17863    postinstall_cmds='base_file=`basename \${file}`~
17864      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17865      dldir=$destdir/`dirname \$dlpath`~
17866      test -d \$dldir || mkdir -p \$dldir~
17867      $install_prog $dir/$dlname \$dldir/$dlname~
17868      chmod a+x \$dldir/$dlname'
17869    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17870      dlpath=$dir/\$dldll~
17871       $rm \$dlpath'
17872    shlibpath_overrides_runpath=yes
17873
17874    case $host_os in
17875    cygwin*)
17876      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17877      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17878      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17879      ;;
17880    mingw*)
17881      # MinGW DLLs use traditional 'lib' prefix
17882      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17883      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17884      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17885        # It is most probably a Windows format PATH printed by
17886        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17887        # path with ; separators, and with drive letters. We can handle the
17888        # drive letters (cygwin fileutils understands them), so leave them,
17889        # especially as we might pass files found there to a mingw objdump,
17890        # which wouldn't understand a cygwinified path. Ahh.
17891        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17892      else
17893        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17894      fi
17895      ;;
17896    pw32*)
17897      # pw32 DLLs use 'pw' prefix rather than 'lib'
17898      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899      ;;
17900    esac
17901    ;;
17902
17903  *)
17904    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17905    ;;
17906  esac
17907  dynamic_linker='Win32 ld.exe'
17908  # FIXME: first we should search . and the directory the executable is in
17909  shlibpath_var=PATH
17910  ;;
17911
17912darwin* | rhapsody*)
17913  dynamic_linker="$host_os dyld"
17914  version_type=darwin
17915  need_lib_prefix=no
17916  need_version=no
17917  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17918  soname_spec='${libname}${release}${major}$shared_ext'
17919  shlibpath_overrides_runpath=yes
17920  shlibpath_var=DYLD_LIBRARY_PATH
17921  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17922  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17923  if test "$GCC" = yes; then
17924    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"`
17925  else
17926    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17927  fi
17928  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17929  ;;
17930
17931dgux*)
17932  version_type=linux
17933  need_lib_prefix=no
17934  need_version=no
17935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17936  soname_spec='${libname}${release}${shared_ext}$major'
17937  shlibpath_var=LD_LIBRARY_PATH
17938  ;;
17939
17940freebsd1*)
17941  dynamic_linker=no
17942  ;;
17943
17944haiku*)
17945  library_names_spec='${libname}${shared_ext}'
17946  dynamic_linker="$host_os ld.so"
17947  shlibpath_var=LIBRARY_PATH
17948  ;;
17949
17950kfreebsd*-gnu)
17951  version_type=linux
17952  need_lib_prefix=no
17953  need_version=no
17954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17955  soname_spec='${libname}${release}${shared_ext}$major'
17956  shlibpath_var=LD_LIBRARY_PATH
17957  shlibpath_overrides_runpath=no
17958  hardcode_into_libs=yes
17959  dynamic_linker='GNU ld.so'
17960  ;;
17961
17962freebsd* | dragonfly*)
17963  # DragonFly does not have aout.  When/if they implement a new
17964  # versioning mechanism, adjust this.
17965  if test -x /usr/bin/objformat; then
17966    objformat=`/usr/bin/objformat`
17967  else
17968    case $host_os in
17969    freebsd[123]*) objformat=aout ;;
17970    *) objformat=elf ;;
17971    esac
17972  fi
17973  version_type=freebsd-$objformat
17974  case $version_type in
17975    freebsd-elf*)
17976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17977      need_version=no
17978      need_lib_prefix=no
17979      ;;
17980    freebsd-*)
17981      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17982      need_version=yes
17983      ;;
17984  esac
17985  shlibpath_var=LD_LIBRARY_PATH
17986  case $host_os in
17987  freebsd2*)
17988    shlibpath_overrides_runpath=yes
17989    ;;
17990  freebsd3.[01]* | freebsdelf3.[01]*)
17991    shlibpath_overrides_runpath=yes
17992    hardcode_into_libs=yes
17993    ;;
17994  *) # from 3.2 on
17995    shlibpath_overrides_runpath=no
17996    hardcode_into_libs=yes
17997    ;;
17998  esac
17999  ;;
18000
18001gnu*)
18002  version_type=linux
18003  need_lib_prefix=no
18004  need_version=no
18005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18006  soname_spec='${libname}${release}${shared_ext}$major'
18007  shlibpath_var=LD_LIBRARY_PATH
18008  hardcode_into_libs=yes
18009  ;;
18010
18011hpux9* | hpux10* | hpux11*)
18012  # Give a soname corresponding to the major version so that dld.sl refuses to
18013  # link against other versions.
18014  version_type=sunos
18015  need_lib_prefix=no
18016  need_version=no
18017  case $host_cpu in
18018  ia64*)
18019    shrext_cmds='.so'
18020    hardcode_into_libs=yes
18021    dynamic_linker="$host_os dld.so"
18022    shlibpath_var=LD_LIBRARY_PATH
18023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025    soname_spec='${libname}${release}${shared_ext}$major'
18026    if test "X$HPUX_IA64_MODE" = X32; then
18027      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18028    else
18029      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18030    fi
18031    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18032    ;;
18033   hppa*64*)
18034     shrext_cmds='.sl'
18035     hardcode_into_libs=yes
18036     dynamic_linker="$host_os dld.sl"
18037     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18038     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040     soname_spec='${libname}${release}${shared_ext}$major'
18041     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18043     ;;
18044   *)
18045    shrext_cmds='.sl'
18046    dynamic_linker="$host_os dld.sl"
18047    shlibpath_var=SHLIB_PATH
18048    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050    soname_spec='${libname}${release}${shared_ext}$major'
18051    ;;
18052  esac
18053  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18054  postinstall_cmds='chmod 555 $lib'
18055  ;;
18056
18057irix5* | irix6* | nonstopux*)
18058  case $host_os in
18059    nonstopux*) version_type=nonstopux ;;
18060    *)
18061	if test "$lt_cv_prog_gnu_ld" = yes; then
18062		version_type=linux
18063	else
18064		version_type=irix
18065	fi ;;
18066  esac
18067  need_lib_prefix=no
18068  need_version=no
18069  soname_spec='${libname}${release}${shared_ext}$major'
18070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18071  case $host_os in
18072  irix5* | nonstopux*)
18073    libsuff= shlibsuff=
18074    ;;
18075  *)
18076    case $LD in # libtool.m4 will add one of these switches to LD
18077    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18078      libsuff= shlibsuff= libmagic=32-bit;;
18079    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18080      libsuff=32 shlibsuff=N32 libmagic=N32;;
18081    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18082      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18083    *) libsuff= shlibsuff= libmagic=never-match;;
18084    esac
18085    ;;
18086  esac
18087  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18088  shlibpath_overrides_runpath=no
18089  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18090  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18091  hardcode_into_libs=yes
18092  ;;
18093
18094# No shared lib support for Linux oldld, aout, or coff.
18095linux*oldld* | linux*aout* | linux*coff*)
18096  dynamic_linker=no
18097  ;;
18098
18099# This must be Linux ELF.
18100linux*)
18101  version_type=linux
18102  need_lib_prefix=no
18103  need_version=no
18104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105  soname_spec='${libname}${release}${shared_ext}$major'
18106  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18107  shlibpath_var=LD_LIBRARY_PATH
18108  shlibpath_overrides_runpath=no
18109  # This implies no fast_install, which is unacceptable.
18110  # Some rework will be needed to allow for fast_install
18111  # before this can be enabled.
18112  hardcode_into_libs=yes
18113
18114  # Append ld.so.conf contents to the search path
18115  if test -f /etc/ld.so.conf; then
18116    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18117    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18118  fi
18119
18120  # We used to test for /lib/ld.so.1 and disable shared libraries on
18121  # powerpc, because MkLinux only supported shared libraries with the
18122  # GNU dynamic linker.  Since this was broken with cross compilers,
18123  # most powerpc-linux boxes support dynamic linking these days and
18124  # people can always --disable-shared, the test was removed, and we
18125  # assume the GNU/Linux dynamic linker is in use.
18126  dynamic_linker='GNU/Linux ld.so'
18127  ;;
18128
18129knetbsd*-gnu)
18130  version_type=linux
18131  need_lib_prefix=no
18132  need_version=no
18133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18134  soname_spec='${libname}${release}${shared_ext}$major'
18135  shlibpath_var=LD_LIBRARY_PATH
18136  shlibpath_overrides_runpath=no
18137  hardcode_into_libs=yes
18138  dynamic_linker='GNU ld.so'
18139  ;;
18140
18141netbsd*)
18142  version_type=sunos
18143  need_lib_prefix=no
18144  need_version=no
18145  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18146    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18147    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18148    dynamic_linker='NetBSD (a.out) ld.so'
18149  else
18150    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18151    soname_spec='${libname}${release}${shared_ext}$major'
18152    dynamic_linker='NetBSD ld.elf_so'
18153  fi
18154  shlibpath_var=LD_LIBRARY_PATH
18155  shlibpath_overrides_runpath=yes
18156  hardcode_into_libs=yes
18157  ;;
18158
18159newsos6)
18160  version_type=linux
18161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162  shlibpath_var=LD_LIBRARY_PATH
18163  shlibpath_overrides_runpath=yes
18164  ;;
18165
18166nto-qnx*)
18167  version_type=linux
18168  need_lib_prefix=no
18169  need_version=no
18170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171  soname_spec='${libname}${release}${shared_ext}$major'
18172  shlibpath_var=LD_LIBRARY_PATH
18173  shlibpath_overrides_runpath=yes
18174  ;;
18175
18176openbsd*)
18177  version_type=sunos
18178  need_lib_prefix=no
18179  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18180  case $host_os in
18181    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18182    *)                         need_version=no  ;;
18183  esac
18184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18186  shlibpath_var=LD_LIBRARY_PATH
18187  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18188    case $host_os in
18189      openbsd2.[89] | openbsd2.[89].*)
18190	shlibpath_overrides_runpath=no
18191	;;
18192      *)
18193	shlibpath_overrides_runpath=yes
18194	;;
18195      esac
18196  else
18197    shlibpath_overrides_runpath=yes
18198  fi
18199  ;;
18200
18201os2*)
18202  libname_spec='$name'
18203  shrext_cmds=".dll"
18204  need_lib_prefix=no
18205  library_names_spec='$libname${shared_ext} $libname.a'
18206  dynamic_linker='OS/2 ld.exe'
18207  shlibpath_var=LIBPATH
18208  ;;
18209
18210osf3* | osf4* | osf5*)
18211  version_type=osf
18212  need_lib_prefix=no
18213  need_version=no
18214  soname_spec='${libname}${release}${shared_ext}$major'
18215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18216  shlibpath_var=LD_LIBRARY_PATH
18217  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18218  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18219  ;;
18220
18221sco3.2v5*)
18222  version_type=osf
18223  soname_spec='${libname}${release}${shared_ext}$major'
18224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225  shlibpath_var=LD_LIBRARY_PATH
18226  ;;
18227
18228solaris*)
18229  version_type=linux
18230  need_lib_prefix=no
18231  need_version=no
18232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233  soname_spec='${libname}${release}${shared_ext}$major'
18234  shlibpath_var=LD_LIBRARY_PATH
18235  shlibpath_overrides_runpath=yes
18236  hardcode_into_libs=yes
18237  # ldd complains unless libraries are executable
18238  postinstall_cmds='chmod +x $lib'
18239  ;;
18240
18241sunos4*)
18242  version_type=sunos
18243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18245  shlibpath_var=LD_LIBRARY_PATH
18246  shlibpath_overrides_runpath=yes
18247  if test "$with_gnu_ld" = yes; then
18248    need_lib_prefix=no
18249  fi
18250  need_version=yes
18251  ;;
18252
18253sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18254  version_type=linux
18255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256  soname_spec='${libname}${release}${shared_ext}$major'
18257  shlibpath_var=LD_LIBRARY_PATH
18258  case $host_vendor in
18259    sni)
18260      shlibpath_overrides_runpath=no
18261      need_lib_prefix=no
18262      export_dynamic_flag_spec='${wl}-Blargedynsym'
18263      runpath_var=LD_RUN_PATH
18264      ;;
18265    siemens)
18266      need_lib_prefix=no
18267      ;;
18268    motorola)
18269      need_lib_prefix=no
18270      need_version=no
18271      shlibpath_overrides_runpath=no
18272      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18273      ;;
18274  esac
18275  ;;
18276
18277sysv4*MP*)
18278  if test -d /usr/nec ;then
18279    version_type=linux
18280    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18281    soname_spec='$libname${shared_ext}.$major'
18282    shlibpath_var=LD_LIBRARY_PATH
18283  fi
18284  ;;
18285
18286uts4*)
18287  version_type=linux
18288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289  soname_spec='${libname}${release}${shared_ext}$major'
18290  shlibpath_var=LD_LIBRARY_PATH
18291  ;;
18292
18293*)
18294  dynamic_linker=no
18295  ;;
18296esac
18297echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18298echo "${ECHO_T}$dynamic_linker" >&6
18299test "$dynamic_linker" = no && can_build_shared=no
18300
18301echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18302echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18303hardcode_action_GCJ=
18304if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18305   test -n "$runpath_var_GCJ" || \
18306   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18307
18308  # We can hardcode non-existant directories.
18309  if test "$hardcode_direct_GCJ" != no &&
18310     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18311     # have to relink, otherwise we might link with an installed library
18312     # when we should be linking with a yet-to-be-installed one
18313     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18314     test "$hardcode_minus_L_GCJ" != no; then
18315    # Linking always hardcodes the temporary library directory.
18316    hardcode_action_GCJ=relink
18317  else
18318    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18319    hardcode_action_GCJ=immediate
18320  fi
18321else
18322  # We cannot hardcode anything, or else we can only hardcode existing
18323  # directories.
18324  hardcode_action_GCJ=unsupported
18325fi
18326echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18327echo "${ECHO_T}$hardcode_action_GCJ" >&6
18328
18329if test "$hardcode_action_GCJ" = relink; then
18330  # Fast installation is not supported
18331  enable_fast_install=no
18332elif test "$shlibpath_overrides_runpath" = yes ||
18333     test "$enable_shared" = no; then
18334  # Fast installation is not necessary
18335  enable_fast_install=needless
18336fi
18337
18338striplib=
18339old_striplib=
18340echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18341echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18342if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18343  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18344  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18345  echo "$as_me:$LINENO: result: yes" >&5
18346echo "${ECHO_T}yes" >&6
18347else
18348# FIXME - insert some real tests, host_os isn't really good enough
18349  case $host_os in
18350   darwin*)
18351       if test -n "$STRIP" ; then
18352         striplib="$STRIP -x"
18353         echo "$as_me:$LINENO: result: yes" >&5
18354echo "${ECHO_T}yes" >&6
18355       else
18356  echo "$as_me:$LINENO: result: no" >&5
18357echo "${ECHO_T}no" >&6
18358fi
18359       ;;
18360   *)
18361  echo "$as_me:$LINENO: result: no" >&5
18362echo "${ECHO_T}no" >&6
18363    ;;
18364  esac
18365fi
18366
18367if test "x$enable_dlopen" != xyes; then
18368  enable_dlopen=unknown
18369  enable_dlopen_self=unknown
18370  enable_dlopen_self_static=unknown
18371else
18372  lt_cv_dlopen=no
18373  lt_cv_dlopen_libs=
18374
18375  case $host_os in
18376  beos*)
18377    lt_cv_dlopen="load_add_on"
18378    lt_cv_dlopen_libs=
18379    lt_cv_dlopen_self=yes
18380    ;;
18381
18382  mingw* | pw32*)
18383    lt_cv_dlopen="LoadLibrary"
18384    lt_cv_dlopen_libs=
18385   ;;
18386
18387  cygwin*)
18388    lt_cv_dlopen="dlopen"
18389    lt_cv_dlopen_libs=
18390   ;;
18391
18392  darwin*)
18393  # if libdl is installed we need to link against it
18394    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18395echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18396if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18397  echo $ECHO_N "(cached) $ECHO_C" >&6
18398else
18399  ac_check_lib_save_LIBS=$LIBS
18400LIBS="-ldl  $LIBS"
18401cat >conftest.$ac_ext <<_ACEOF
18402/* confdefs.h.  */
18403_ACEOF
18404cat confdefs.h >>conftest.$ac_ext
18405cat >>conftest.$ac_ext <<_ACEOF
18406/* end confdefs.h.  */
18407
18408/* Override any gcc2 internal prototype to avoid an error.  */
18409#ifdef __cplusplus
18410extern "C"
18411#endif
18412/* We use char because int might match the return type of a gcc2
18413   builtin and then its argument prototype would still apply.  */
18414char dlopen ();
18415int
18416main ()
18417{
18418dlopen ();
18419  ;
18420  return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext conftest$ac_exeext
18424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425  (eval $ac_link) 2>conftest.er1
18426  ac_status=$?
18427  grep -v '^ *+' conftest.er1 >conftest.err
18428  rm -f conftest.er1
18429  cat conftest.err >&5
18430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431  (exit $ac_status); } &&
18432	 { ac_try='test -z "$ac_c_werror_flag"
18433			 || test ! -s conftest.err'
18434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435  (eval $ac_try) 2>&5
18436  ac_status=$?
18437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438  (exit $ac_status); }; } &&
18439	 { ac_try='test -s conftest$ac_exeext'
18440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441  (eval $ac_try) 2>&5
18442  ac_status=$?
18443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444  (exit $ac_status); }; }; then
18445  ac_cv_lib_dl_dlopen=yes
18446else
18447  echo "$as_me: failed program was:" >&5
18448sed 's/^/| /' conftest.$ac_ext >&5
18449
18450ac_cv_lib_dl_dlopen=no
18451fi
18452rm -f conftest.err conftest.$ac_objext \
18453      conftest$ac_exeext conftest.$ac_ext
18454LIBS=$ac_check_lib_save_LIBS
18455fi
18456echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18457echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18458if test $ac_cv_lib_dl_dlopen = yes; then
18459  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18460else
18461
18462    lt_cv_dlopen="dyld"
18463    lt_cv_dlopen_libs=
18464    lt_cv_dlopen_self=yes
18465
18466fi
18467
18468   ;;
18469
18470  haiku*)
18471    lt_cv_dlopen="load_add_on"
18472    lt_cv_dlopen_libs=
18473    lt_cv_dlopen_self=yes
18474    ;;
18475
18476  *)
18477    echo "$as_me:$LINENO: checking for shl_load" >&5
18478echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18479if test "${ac_cv_func_shl_load+set}" = set; then
18480  echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482  cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h.  */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h.  */
18488/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18489   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18490#define shl_load innocuous_shl_load
18491
18492/* System header to define __stub macros and hopefully few prototypes,
18493    which can conflict with char shl_load (); below.
18494    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495    <limits.h> exists even on freestanding compilers.  */
18496
18497#ifdef __STDC__
18498# include <limits.h>
18499#else
18500# include <assert.h>
18501#endif
18502
18503#undef shl_load
18504
18505/* Override any gcc2 internal prototype to avoid an error.  */
18506#ifdef __cplusplus
18507extern "C"
18508{
18509#endif
18510/* We use char because int might match the return type of a gcc2
18511   builtin and then its argument prototype would still apply.  */
18512char shl_load ();
18513/* The GNU C library defines this for functions which it implements
18514    to always fail with ENOSYS.  Some functions are actually named
18515    something starting with __ and the normal name is an alias.  */
18516#if defined (__stub_shl_load) || defined (__stub___shl_load)
18517choke me
18518#else
18519char (*f) () = shl_load;
18520#endif
18521#ifdef __cplusplus
18522}
18523#endif
18524
18525int
18526main ()
18527{
18528return f != shl_load;
18529  ;
18530  return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext conftest$ac_exeext
18534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535  (eval $ac_link) 2>conftest.er1
18536  ac_status=$?
18537  grep -v '^ *+' conftest.er1 >conftest.err
18538  rm -f conftest.er1
18539  cat conftest.err >&5
18540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541  (exit $ac_status); } &&
18542	 { ac_try='test -z "$ac_c_werror_flag"
18543			 || test ! -s conftest.err'
18544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545  (eval $ac_try) 2>&5
18546  ac_status=$?
18547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548  (exit $ac_status); }; } &&
18549	 { ac_try='test -s conftest$ac_exeext'
18550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551  (eval $ac_try) 2>&5
18552  ac_status=$?
18553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554  (exit $ac_status); }; }; then
18555  ac_cv_func_shl_load=yes
18556else
18557  echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560ac_cv_func_shl_load=no
18561fi
18562rm -f conftest.err conftest.$ac_objext \
18563      conftest$ac_exeext conftest.$ac_ext
18564fi
18565echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18566echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18567if test $ac_cv_func_shl_load = yes; then
18568  lt_cv_dlopen="shl_load"
18569else
18570  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18571echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18572if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18573  echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575  ac_check_lib_save_LIBS=$LIBS
18576LIBS="-ldld  $LIBS"
18577cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h.  */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h.  */
18583
18584/* Override any gcc2 internal prototype to avoid an error.  */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588/* We use char because int might match the return type of a gcc2
18589   builtin and then its argument prototype would still apply.  */
18590char shl_load ();
18591int
18592main ()
18593{
18594shl_load ();
18595  ;
18596  return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext conftest$ac_exeext
18600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601  (eval $ac_link) 2>conftest.er1
18602  ac_status=$?
18603  grep -v '^ *+' conftest.er1 >conftest.err
18604  rm -f conftest.er1
18605  cat conftest.err >&5
18606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607  (exit $ac_status); } &&
18608	 { ac_try='test -z "$ac_c_werror_flag"
18609			 || test ! -s conftest.err'
18610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611  (eval $ac_try) 2>&5
18612  ac_status=$?
18613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614  (exit $ac_status); }; } &&
18615	 { ac_try='test -s conftest$ac_exeext'
18616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617  (eval $ac_try) 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; }; then
18621  ac_cv_lib_dld_shl_load=yes
18622else
18623  echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626ac_cv_lib_dld_shl_load=no
18627fi
18628rm -f conftest.err conftest.$ac_objext \
18629      conftest$ac_exeext conftest.$ac_ext
18630LIBS=$ac_check_lib_save_LIBS
18631fi
18632echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18633echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18634if test $ac_cv_lib_dld_shl_load = yes; then
18635  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18636else
18637  echo "$as_me:$LINENO: checking for dlopen" >&5
18638echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18639if test "${ac_cv_func_dlopen+set}" = set; then
18640  echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642  cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h.  */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h.  */
18648/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18650#define dlopen innocuous_dlopen
18651
18652/* System header to define __stub macros and hopefully few prototypes,
18653    which can conflict with char dlopen (); below.
18654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18655    <limits.h> exists even on freestanding compilers.  */
18656
18657#ifdef __STDC__
18658# include <limits.h>
18659#else
18660# include <assert.h>
18661#endif
18662
18663#undef dlopen
18664
18665/* Override any gcc2 internal prototype to avoid an error.  */
18666#ifdef __cplusplus
18667extern "C"
18668{
18669#endif
18670/* We use char because int might match the return type of a gcc2
18671   builtin and then its argument prototype would still apply.  */
18672char dlopen ();
18673/* The GNU C library defines this for functions which it implements
18674    to always fail with ENOSYS.  Some functions are actually named
18675    something starting with __ and the normal name is an alias.  */
18676#if defined (__stub_dlopen) || defined (__stub___dlopen)
18677choke me
18678#else
18679char (*f) () = dlopen;
18680#endif
18681#ifdef __cplusplus
18682}
18683#endif
18684
18685int
18686main ()
18687{
18688return f != dlopen;
18689  ;
18690  return 0;
18691}
18692_ACEOF
18693rm -f conftest.$ac_objext conftest$ac_exeext
18694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695  (eval $ac_link) 2>conftest.er1
18696  ac_status=$?
18697  grep -v '^ *+' conftest.er1 >conftest.err
18698  rm -f conftest.er1
18699  cat conftest.err >&5
18700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701  (exit $ac_status); } &&
18702	 { ac_try='test -z "$ac_c_werror_flag"
18703			 || test ! -s conftest.err'
18704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705  (eval $ac_try) 2>&5
18706  ac_status=$?
18707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708  (exit $ac_status); }; } &&
18709	 { ac_try='test -s conftest$ac_exeext'
18710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711  (eval $ac_try) 2>&5
18712  ac_status=$?
18713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714  (exit $ac_status); }; }; then
18715  ac_cv_func_dlopen=yes
18716else
18717  echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720ac_cv_func_dlopen=no
18721fi
18722rm -f conftest.err conftest.$ac_objext \
18723      conftest$ac_exeext conftest.$ac_ext
18724fi
18725echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18726echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18727if test $ac_cv_func_dlopen = yes; then
18728  lt_cv_dlopen="dlopen"
18729else
18730  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18731echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18732if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18733  echo $ECHO_N "(cached) $ECHO_C" >&6
18734else
18735  ac_check_lib_save_LIBS=$LIBS
18736LIBS="-ldl  $LIBS"
18737cat >conftest.$ac_ext <<_ACEOF
18738/* confdefs.h.  */
18739_ACEOF
18740cat confdefs.h >>conftest.$ac_ext
18741cat >>conftest.$ac_ext <<_ACEOF
18742/* end confdefs.h.  */
18743
18744/* Override any gcc2 internal prototype to avoid an error.  */
18745#ifdef __cplusplus
18746extern "C"
18747#endif
18748/* We use char because int might match the return type of a gcc2
18749   builtin and then its argument prototype would still apply.  */
18750char dlopen ();
18751int
18752main ()
18753{
18754dlopen ();
18755  ;
18756  return 0;
18757}
18758_ACEOF
18759rm -f conftest.$ac_objext conftest$ac_exeext
18760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761  (eval $ac_link) 2>conftest.er1
18762  ac_status=$?
18763  grep -v '^ *+' conftest.er1 >conftest.err
18764  rm -f conftest.er1
18765  cat conftest.err >&5
18766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767  (exit $ac_status); } &&
18768	 { ac_try='test -z "$ac_c_werror_flag"
18769			 || test ! -s conftest.err'
18770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771  (eval $ac_try) 2>&5
18772  ac_status=$?
18773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774  (exit $ac_status); }; } &&
18775	 { ac_try='test -s conftest$ac_exeext'
18776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777  (eval $ac_try) 2>&5
18778  ac_status=$?
18779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780  (exit $ac_status); }; }; then
18781  ac_cv_lib_dl_dlopen=yes
18782else
18783  echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
18786ac_cv_lib_dl_dlopen=no
18787fi
18788rm -f conftest.err conftest.$ac_objext \
18789      conftest$ac_exeext conftest.$ac_ext
18790LIBS=$ac_check_lib_save_LIBS
18791fi
18792echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18794if test $ac_cv_lib_dl_dlopen = yes; then
18795  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18796else
18797  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18800  echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802  ac_check_lib_save_LIBS=$LIBS
18803LIBS="-lsvld  $LIBS"
18804cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h.  */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h.  */
18810
18811/* Override any gcc2 internal prototype to avoid an error.  */
18812#ifdef __cplusplus
18813extern "C"
18814#endif
18815/* We use char because int might match the return type of a gcc2
18816   builtin and then its argument prototype would still apply.  */
18817char dlopen ();
18818int
18819main ()
18820{
18821dlopen ();
18822  ;
18823  return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828  (eval $ac_link) 2>conftest.er1
18829  ac_status=$?
18830  grep -v '^ *+' conftest.er1 >conftest.err
18831  rm -f conftest.er1
18832  cat conftest.err >&5
18833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834  (exit $ac_status); } &&
18835	 { ac_try='test -z "$ac_c_werror_flag"
18836			 || test ! -s conftest.err'
18837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838  (eval $ac_try) 2>&5
18839  ac_status=$?
18840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841  (exit $ac_status); }; } &&
18842	 { ac_try='test -s conftest$ac_exeext'
18843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844  (eval $ac_try) 2>&5
18845  ac_status=$?
18846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847  (exit $ac_status); }; }; then
18848  ac_cv_lib_svld_dlopen=yes
18849else
18850  echo "$as_me: failed program was:" >&5
18851sed 's/^/| /' conftest.$ac_ext >&5
18852
18853ac_cv_lib_svld_dlopen=no
18854fi
18855rm -f conftest.err conftest.$ac_objext \
18856      conftest$ac_exeext conftest.$ac_ext
18857LIBS=$ac_check_lib_save_LIBS
18858fi
18859echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18860echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18861if test $ac_cv_lib_svld_dlopen = yes; then
18862  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18863else
18864  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18865echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18866if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18867  echo $ECHO_N "(cached) $ECHO_C" >&6
18868else
18869  ac_check_lib_save_LIBS=$LIBS
18870LIBS="-ldld  $LIBS"
18871cat >conftest.$ac_ext <<_ACEOF
18872/* confdefs.h.  */
18873_ACEOF
18874cat confdefs.h >>conftest.$ac_ext
18875cat >>conftest.$ac_ext <<_ACEOF
18876/* end confdefs.h.  */
18877
18878/* Override any gcc2 internal prototype to avoid an error.  */
18879#ifdef __cplusplus
18880extern "C"
18881#endif
18882/* We use char because int might match the return type of a gcc2
18883   builtin and then its argument prototype would still apply.  */
18884char dld_link ();
18885int
18886main ()
18887{
18888dld_link ();
18889  ;
18890  return 0;
18891}
18892_ACEOF
18893rm -f conftest.$ac_objext conftest$ac_exeext
18894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18895  (eval $ac_link) 2>conftest.er1
18896  ac_status=$?
18897  grep -v '^ *+' conftest.er1 >conftest.err
18898  rm -f conftest.er1
18899  cat conftest.err >&5
18900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901  (exit $ac_status); } &&
18902	 { ac_try='test -z "$ac_c_werror_flag"
18903			 || test ! -s conftest.err'
18904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905  (eval $ac_try) 2>&5
18906  ac_status=$?
18907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908  (exit $ac_status); }; } &&
18909	 { ac_try='test -s conftest$ac_exeext'
18910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911  (eval $ac_try) 2>&5
18912  ac_status=$?
18913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914  (exit $ac_status); }; }; then
18915  ac_cv_lib_dld_dld_link=yes
18916else
18917  echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920ac_cv_lib_dld_dld_link=no
18921fi
18922rm -f conftest.err conftest.$ac_objext \
18923      conftest$ac_exeext conftest.$ac_ext
18924LIBS=$ac_check_lib_save_LIBS
18925fi
18926echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18927echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18928if test $ac_cv_lib_dld_dld_link = yes; then
18929  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18930fi
18931
18932
18933fi
18934
18935
18936fi
18937
18938
18939fi
18940
18941
18942fi
18943
18944
18945fi
18946
18947    ;;
18948  esac
18949
18950  if test "x$lt_cv_dlopen" != xno; then
18951    enable_dlopen=yes
18952  else
18953    enable_dlopen=no
18954  fi
18955
18956  case $lt_cv_dlopen in
18957  dlopen)
18958    save_CPPFLAGS="$CPPFLAGS"
18959    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18960
18961    save_LDFLAGS="$LDFLAGS"
18962    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18963
18964    save_LIBS="$LIBS"
18965    LIBS="$lt_cv_dlopen_libs $LIBS"
18966
18967    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18968echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18969if test "${lt_cv_dlopen_self+set}" = set; then
18970  echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972  	  if test "$cross_compiling" = yes; then :
18973  lt_cv_dlopen_self=cross
18974else
18975  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18976  lt_status=$lt_dlunknown
18977  cat > conftest.$ac_ext <<EOF
18978#line 18978 "configure"
18979#include "confdefs.h"
18980
18981#if HAVE_DLFCN_H
18982#include <dlfcn.h>
18983#endif
18984
18985#include <stdio.h>
18986
18987#ifdef RTLD_GLOBAL
18988#  define LT_DLGLOBAL		RTLD_GLOBAL
18989#else
18990#  ifdef DL_GLOBAL
18991#    define LT_DLGLOBAL		DL_GLOBAL
18992#  else
18993#    define LT_DLGLOBAL		0
18994#  endif
18995#endif
18996
18997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18998   find out it does not work in some platform. */
18999#ifndef LT_DLLAZY_OR_NOW
19000#  ifdef RTLD_LAZY
19001#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19002#  else
19003#    ifdef DL_LAZY
19004#      define LT_DLLAZY_OR_NOW		DL_LAZY
19005#    else
19006#      ifdef RTLD_NOW
19007#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19008#      else
19009#        ifdef DL_NOW
19010#          define LT_DLLAZY_OR_NOW	DL_NOW
19011#        else
19012#          define LT_DLLAZY_OR_NOW	0
19013#        endif
19014#      endif
19015#    endif
19016#  endif
19017#endif
19018
19019#ifdef __cplusplus
19020extern "C" void exit (int);
19021#endif
19022
19023void fnord() { int i=42;}
19024int main ()
19025{
19026  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19027  int status = $lt_dlunknown;
19028
19029  if (self)
19030    {
19031      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19032      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19033      /* dlclose (self); */
19034    }
19035
19036    exit (status);
19037}
19038EOF
19039  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040  (eval $ac_link) 2>&5
19041  ac_status=$?
19042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19044    (./conftest; exit; ) >&5 2>/dev/null
19045    lt_status=$?
19046    case x$lt_status in
19047      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19048      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19049      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19050    esac
19051  else :
19052    # compilation failed
19053    lt_cv_dlopen_self=no
19054  fi
19055fi
19056rm -fr conftest*
19057
19058
19059fi
19060echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19061echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19062
19063    if test "x$lt_cv_dlopen_self" = xyes; then
19064      LDFLAGS="$LDFLAGS $link_static_flag"
19065      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19066echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19067if test "${lt_cv_dlopen_self_static+set}" = set; then
19068  echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070  	  if test "$cross_compiling" = yes; then :
19071  lt_cv_dlopen_self_static=cross
19072else
19073  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19074  lt_status=$lt_dlunknown
19075  cat > conftest.$ac_ext <<EOF
19076#line 19076 "configure"
19077#include "confdefs.h"
19078
19079#if HAVE_DLFCN_H
19080#include <dlfcn.h>
19081#endif
19082
19083#include <stdio.h>
19084
19085#ifdef RTLD_GLOBAL
19086#  define LT_DLGLOBAL		RTLD_GLOBAL
19087#else
19088#  ifdef DL_GLOBAL
19089#    define LT_DLGLOBAL		DL_GLOBAL
19090#  else
19091#    define LT_DLGLOBAL		0
19092#  endif
19093#endif
19094
19095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19096   find out it does not work in some platform. */
19097#ifndef LT_DLLAZY_OR_NOW
19098#  ifdef RTLD_LAZY
19099#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19100#  else
19101#    ifdef DL_LAZY
19102#      define LT_DLLAZY_OR_NOW		DL_LAZY
19103#    else
19104#      ifdef RTLD_NOW
19105#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19106#      else
19107#        ifdef DL_NOW
19108#          define LT_DLLAZY_OR_NOW	DL_NOW
19109#        else
19110#          define LT_DLLAZY_OR_NOW	0
19111#        endif
19112#      endif
19113#    endif
19114#  endif
19115#endif
19116
19117#ifdef __cplusplus
19118extern "C" void exit (int);
19119#endif
19120
19121void fnord() { int i=42;}
19122int main ()
19123{
19124  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19125  int status = $lt_dlunknown;
19126
19127  if (self)
19128    {
19129      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19130      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19131      /* dlclose (self); */
19132    }
19133
19134    exit (status);
19135}
19136EOF
19137  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138  (eval $ac_link) 2>&5
19139  ac_status=$?
19140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19142    (./conftest; exit; ) >&5 2>/dev/null
19143    lt_status=$?
19144    case x$lt_status in
19145      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19146      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19147      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19148    esac
19149  else :
19150    # compilation failed
19151    lt_cv_dlopen_self_static=no
19152  fi
19153fi
19154rm -fr conftest*
19155
19156
19157fi
19158echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19159echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19160    fi
19161
19162    CPPFLAGS="$save_CPPFLAGS"
19163    LDFLAGS="$save_LDFLAGS"
19164    LIBS="$save_LIBS"
19165    ;;
19166  esac
19167
19168  case $lt_cv_dlopen_self in
19169  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19170  *) enable_dlopen_self=unknown ;;
19171  esac
19172
19173  case $lt_cv_dlopen_self_static in
19174  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19175  *) enable_dlopen_self_static=unknown ;;
19176  esac
19177fi
19178
19179
19180# The else clause should only fire when bootstrapping the
19181# libtool distribution, otherwise you forgot to ship ltmain.sh
19182# with your package, and you will get complaints that there are
19183# no rules to generate ltmain.sh.
19184if test -f "$ltmain"; then
19185  # See if we are running on zsh, and set the options which allow our commands through
19186  # without removal of \ escapes.
19187  if test -n "${ZSH_VERSION+set}" ; then
19188    setopt NO_GLOB_SUBST
19189  fi
19190  # Now quote all the things that may contain metacharacters while being
19191  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19192  # variables and quote the copies for generation of the libtool script.
19193  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19194    SED SHELL STRIP \
19195    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19196    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19197    deplibs_check_method reload_flag reload_cmds need_locks \
19198    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19199    lt_cv_sys_global_symbol_to_c_name_address \
19200    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19201    old_postinstall_cmds old_postuninstall_cmds \
19202    compiler_GCJ \
19203    CC_GCJ \
19204    LD_GCJ \
19205    lt_prog_compiler_wl_GCJ \
19206    lt_prog_compiler_pic_GCJ \
19207    lt_prog_compiler_static_GCJ \
19208    lt_prog_compiler_no_builtin_flag_GCJ \
19209    export_dynamic_flag_spec_GCJ \
19210    thread_safe_flag_spec_GCJ \
19211    whole_archive_flag_spec_GCJ \
19212    enable_shared_with_static_runtimes_GCJ \
19213    old_archive_cmds_GCJ \
19214    old_archive_from_new_cmds_GCJ \
19215    predep_objects_GCJ \
19216    postdep_objects_GCJ \
19217    predeps_GCJ \
19218    postdeps_GCJ \
19219    compiler_lib_search_path_GCJ \
19220    archive_cmds_GCJ \
19221    archive_expsym_cmds_GCJ \
19222    postinstall_cmds_GCJ \
19223    postuninstall_cmds_GCJ \
19224    old_archive_from_expsyms_cmds_GCJ \
19225    allow_undefined_flag_GCJ \
19226    no_undefined_flag_GCJ \
19227    export_symbols_cmds_GCJ \
19228    hardcode_libdir_flag_spec_GCJ \
19229    hardcode_libdir_flag_spec_ld_GCJ \
19230    hardcode_libdir_separator_GCJ \
19231    hardcode_automatic_GCJ \
19232    module_cmds_GCJ \
19233    module_expsym_cmds_GCJ \
19234    lt_cv_prog_compiler_c_o_GCJ \
19235    exclude_expsyms_GCJ \
19236    include_expsyms_GCJ; do
19237
19238    case $var in
19239    old_archive_cmds_GCJ | \
19240    old_archive_from_new_cmds_GCJ | \
19241    archive_cmds_GCJ | \
19242    archive_expsym_cmds_GCJ | \
19243    module_cmds_GCJ | \
19244    module_expsym_cmds_GCJ | \
19245    old_archive_from_expsyms_cmds_GCJ | \
19246    export_symbols_cmds_GCJ | \
19247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19248    postinstall_cmds | postuninstall_cmds | \
19249    old_postinstall_cmds | old_postuninstall_cmds | \
19250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19251      # Double-quote double-evaled strings.
19252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19253      ;;
19254    *)
19255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19256      ;;
19257    esac
19258  done
19259
19260  case $lt_echo in
19261  *'\$0 --fallback-echo"')
19262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19263    ;;
19264  esac
19265
19266cfgfile="$ofile"
19267
19268  cat <<__EOF__ >> "$cfgfile"
19269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19270
19271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19272
19273# Shell to use when invoking shell scripts.
19274SHELL=$lt_SHELL
19275
19276# Whether or not to build shared libraries.
19277build_libtool_libs=$enable_shared
19278
19279# Whether or not to build static libraries.
19280build_old_libs=$enable_static
19281
19282# Whether or not to add -lc for building shared libraries.
19283build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19284
19285# Whether or not to disallow shared libs when runtime libs are static
19286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19287
19288# Whether or not to optimize for fast installation.
19289fast_install=$enable_fast_install
19290
19291# The host system.
19292host_alias=$host_alias
19293host=$host
19294host_os=$host_os
19295
19296# The build system.
19297build_alias=$build_alias
19298build=$build
19299build_os=$build_os
19300
19301# An echo program that does not interpret backslashes.
19302echo=$lt_echo
19303
19304# The archiver.
19305AR=$lt_AR
19306AR_FLAGS=$lt_AR_FLAGS
19307
19308# A C compiler.
19309LTCC=$lt_LTCC
19310
19311# A language-specific compiler.
19312CC=$lt_compiler_GCJ
19313
19314# Is the compiler the GNU C compiler?
19315with_gcc=$GCC_GCJ
19316
19317# An ERE matcher.
19318EGREP=$lt_EGREP
19319
19320# The linker used to build libraries.
19321LD=$lt_LD_GCJ
19322
19323# Whether we need hard or soft links.
19324LN_S=$lt_LN_S
19325
19326# A BSD-compatible nm program.
19327NM=$lt_NM
19328
19329# A symbol stripping program
19330STRIP=$lt_STRIP
19331
19332# Used to examine libraries when file_magic_cmd begins "file"
19333MAGIC_CMD=$MAGIC_CMD
19334
19335# Used on cygwin: DLL creation program.
19336DLLTOOL="$DLLTOOL"
19337
19338# Used on cygwin: object dumper.
19339OBJDUMP="$OBJDUMP"
19340
19341# Used on cygwin: assembler.
19342AS="$AS"
19343
19344# The name of the directory that contains temporary libtool files.
19345objdir=$objdir
19346
19347# How to create reloadable object files.
19348reload_flag=$lt_reload_flag
19349reload_cmds=$lt_reload_cmds
19350
19351# How to pass a linker flag through the compiler.
19352wl=$lt_lt_prog_compiler_wl_GCJ
19353
19354# Object file suffix (normally "o").
19355objext="$ac_objext"
19356
19357# Old archive suffix (normally "a").
19358libext="$libext"
19359
19360# Shared library suffix (normally ".so").
19361shrext_cmds='$shrext_cmds'
19362
19363# Executable file suffix (normally "").
19364exeext="$exeext"
19365
19366# Additional compiler flags for building library objects.
19367pic_flag=$lt_lt_prog_compiler_pic_GCJ
19368pic_mode=$pic_mode
19369
19370# What is the maximum length of a command?
19371max_cmd_len=$lt_cv_sys_max_cmd_len
19372
19373# Does compiler simultaneously support -c and -o options?
19374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19375
19376# Must we lock files when doing compilation?
19377need_locks=$lt_need_locks
19378
19379# Do we need the lib prefix for modules?
19380need_lib_prefix=$need_lib_prefix
19381
19382# Do we need a version for libraries?
19383need_version=$need_version
19384
19385# Whether dlopen is supported.
19386dlopen_support=$enable_dlopen
19387
19388# Whether dlopen of programs is supported.
19389dlopen_self=$enable_dlopen_self
19390
19391# Whether dlopen of statically linked programs is supported.
19392dlopen_self_static=$enable_dlopen_self_static
19393
19394# Compiler flag to prevent dynamic linking.
19395link_static_flag=$lt_lt_prog_compiler_static_GCJ
19396
19397# Compiler flag to turn off builtin functions.
19398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19399
19400# Compiler flag to allow reflexive dlopens.
19401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19402
19403# Compiler flag to generate shared objects directly from archives.
19404whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19405
19406# Compiler flag to generate thread-safe objects.
19407thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19408
19409# Library versioning type.
19410version_type=$version_type
19411
19412# Format of library name prefix.
19413libname_spec=$lt_libname_spec
19414
19415# List of archive names.  First name is the real one, the rest are links.
19416# The last name is the one that the linker finds with -lNAME.
19417library_names_spec=$lt_library_names_spec
19418
19419# The coded name of the library, if different from the real name.
19420soname_spec=$lt_soname_spec
19421
19422# Commands used to build and install an old-style archive.
19423RANLIB=$lt_RANLIB
19424old_archive_cmds=$lt_old_archive_cmds_GCJ
19425old_postinstall_cmds=$lt_old_postinstall_cmds
19426old_postuninstall_cmds=$lt_old_postuninstall_cmds
19427
19428# Create an old-style archive from a shared archive.
19429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19430
19431# Create a temporary old-style archive to link instead of a shared archive.
19432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19433
19434# Commands used to build and install a shared archive.
19435archive_cmds=$lt_archive_cmds_GCJ
19436archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19437postinstall_cmds=$lt_postinstall_cmds
19438postuninstall_cmds=$lt_postuninstall_cmds
19439
19440# Commands used to build a loadable module (assumed same as above if empty)
19441module_cmds=$lt_module_cmds_GCJ
19442module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19443
19444# Commands to strip libraries.
19445old_striplib=$lt_old_striplib
19446striplib=$lt_striplib
19447
19448# Dependencies to place before the objects being linked to create a
19449# shared library.
19450predep_objects=$lt_predep_objects_GCJ
19451
19452# Dependencies to place after the objects being linked to create a
19453# shared library.
19454postdep_objects=$lt_postdep_objects_GCJ
19455
19456# Dependencies to place before the objects being linked to create a
19457# shared library.
19458predeps=$lt_predeps_GCJ
19459
19460# Dependencies to place after the objects being linked to create a
19461# shared library.
19462postdeps=$lt_postdeps_GCJ
19463
19464# The library search path used internally by the compiler when linking
19465# a shared library.
19466compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19467
19468# Method to check whether dependent libraries are shared objects.
19469deplibs_check_method=$lt_deplibs_check_method
19470
19471# Command to use when deplibs_check_method == file_magic.
19472file_magic_cmd=$lt_file_magic_cmd
19473
19474# Flag that allows shared libraries with undefined symbols to be built.
19475allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19476
19477# Flag that forces no undefined symbols.
19478no_undefined_flag=$lt_no_undefined_flag_GCJ
19479
19480# Commands used to finish a libtool library installation in a directory.
19481finish_cmds=$lt_finish_cmds
19482
19483# Same as above, but a single script fragment to be evaled but not shown.
19484finish_eval=$lt_finish_eval
19485
19486# Take the output of nm and produce a listing of raw symbols and C names.
19487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19488
19489# Transform the output of nm in a proper C declaration
19490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19491
19492# Transform the output of nm in a C name address pair
19493global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19494
19495# This is the shared library runtime path variable.
19496runpath_var=$runpath_var
19497
19498# This is the shared library path variable.
19499shlibpath_var=$shlibpath_var
19500
19501# Is shlibpath searched before the hard-coded library search path?
19502shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19503
19504# How to hardcode a shared library path into an executable.
19505hardcode_action=$hardcode_action_GCJ
19506
19507# Whether we should hardcode library paths into libraries.
19508hardcode_into_libs=$hardcode_into_libs
19509
19510# Flag to hardcode \$libdir into a binary during linking.
19511# This must work even if \$libdir does not exist.
19512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19513
19514# If ld is used when linking, flag to hardcode \$libdir into
19515# a binary during linking. This must work even if \$libdir does
19516# not exist.
19517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19518
19519# Whether we need a single -rpath flag with a separated argument.
19520hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19521
19522# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19523# resulting binary.
19524hardcode_direct=$hardcode_direct_GCJ
19525
19526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19527# resulting binary.
19528hardcode_minus_L=$hardcode_minus_L_GCJ
19529
19530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19531# the resulting binary.
19532hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19533
19534# Set to yes if building a shared library automatically hardcodes DIR into the library
19535# and all subsequent libraries and executables linked against it.
19536hardcode_automatic=$hardcode_automatic_GCJ
19537
19538# Variables whose values should be saved in libtool wrapper scripts and
19539# restored at relink time.
19540variables_saved_for_relink="$variables_saved_for_relink"
19541
19542# Whether libtool must link a program against all its dependency libraries.
19543link_all_deplibs=$link_all_deplibs_GCJ
19544
19545# Compile-time system search path for libraries
19546sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19547
19548# Run-time system search path for libraries
19549sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19550
19551# Fix the shell variable \$srcfile for the compiler.
19552fix_srcfile_path="$fix_srcfile_path_GCJ"
19553
19554# Set to yes if exported symbols are required.
19555always_export_symbols=$always_export_symbols_GCJ
19556
19557# The commands to list exported symbols.
19558export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19559
19560# The commands to extract the exported symbol list from a shared archive.
19561extract_expsyms_cmds=$lt_extract_expsyms_cmds
19562
19563# Symbols that should not be listed in the preloaded symbols.
19564exclude_expsyms=$lt_exclude_expsyms_GCJ
19565
19566# Symbols that must always be exported.
19567include_expsyms=$lt_include_expsyms_GCJ
19568
19569# ### END LIBTOOL TAG CONFIG: $tagname
19570
19571__EOF__
19572
19573
19574else
19575  # If there is no Makefile yet, we rely on a make rule to execute
19576  # `config.status --recheck' to rerun these tests and create the
19577  # libtool script then.
19578  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19579  if test -f "$ltmain_in"; then
19580    test -f Makefile && make "$ltmain"
19581  fi
19582fi
19583
19584
19585ac_ext=c
19586ac_cpp='$CPP $CPPFLAGS'
19587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19589ac_compiler_gnu=$ac_cv_c_compiler_gnu
19590
19591CC="$lt_save_CC"
19592
19593	else
19594	  tagname=""
19595	fi
19596	;;
19597
19598      RC)
19599
19600
19601
19602# Source file extension for RC test sources.
19603ac_ext=rc
19604
19605# Object file extension for compiled RC test sources.
19606objext=o
19607objext_RC=$objext
19608
19609# Code to be used in simple compile tests
19610lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19611
19612# Code to be used in simple link tests
19613lt_simple_link_test_code="$lt_simple_compile_test_code"
19614
19615# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19616
19617# If no C compiler was specified, use CC.
19618LTCC=${LTCC-"$CC"}
19619
19620# Allow CC to be a program name with arguments.
19621compiler=$CC
19622
19623
19624# save warnings/boilerplate of simple test code
19625ac_outfile=conftest.$ac_objext
19626printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19628_lt_compiler_boilerplate=`cat conftest.err`
19629$rm conftest*
19630
19631ac_outfile=conftest.$ac_objext
19632printf "$lt_simple_link_test_code" >conftest.$ac_ext
19633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19634_lt_linker_boilerplate=`cat conftest.err`
19635$rm conftest*
19636
19637
19638# Allow CC to be a program name with arguments.
19639lt_save_CC="$CC"
19640CC=${RC-"windres"}
19641compiler=$CC
19642compiler_RC=$CC
19643for cc_temp in $compiler""; do
19644  case $cc_temp in
19645    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19646    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19647    \-*) ;;
19648    *) break;;
19649  esac
19650done
19651cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19652
19653lt_cv_prog_compiler_c_o_RC=yes
19654
19655# The else clause should only fire when bootstrapping the
19656# libtool distribution, otherwise you forgot to ship ltmain.sh
19657# with your package, and you will get complaints that there are
19658# no rules to generate ltmain.sh.
19659if test -f "$ltmain"; then
19660  # See if we are running on zsh, and set the options which allow our commands through
19661  # without removal of \ escapes.
19662  if test -n "${ZSH_VERSION+set}" ; then
19663    setopt NO_GLOB_SUBST
19664  fi
19665  # Now quote all the things that may contain metacharacters while being
19666  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19667  # variables and quote the copies for generation of the libtool script.
19668  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19669    SED SHELL STRIP \
19670    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19671    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19672    deplibs_check_method reload_flag reload_cmds need_locks \
19673    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19674    lt_cv_sys_global_symbol_to_c_name_address \
19675    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19676    old_postinstall_cmds old_postuninstall_cmds \
19677    compiler_RC \
19678    CC_RC \
19679    LD_RC \
19680    lt_prog_compiler_wl_RC \
19681    lt_prog_compiler_pic_RC \
19682    lt_prog_compiler_static_RC \
19683    lt_prog_compiler_no_builtin_flag_RC \
19684    export_dynamic_flag_spec_RC \
19685    thread_safe_flag_spec_RC \
19686    whole_archive_flag_spec_RC \
19687    enable_shared_with_static_runtimes_RC \
19688    old_archive_cmds_RC \
19689    old_archive_from_new_cmds_RC \
19690    predep_objects_RC \
19691    postdep_objects_RC \
19692    predeps_RC \
19693    postdeps_RC \
19694    compiler_lib_search_path_RC \
19695    archive_cmds_RC \
19696    archive_expsym_cmds_RC \
19697    postinstall_cmds_RC \
19698    postuninstall_cmds_RC \
19699    old_archive_from_expsyms_cmds_RC \
19700    allow_undefined_flag_RC \
19701    no_undefined_flag_RC \
19702    export_symbols_cmds_RC \
19703    hardcode_libdir_flag_spec_RC \
19704    hardcode_libdir_flag_spec_ld_RC \
19705    hardcode_libdir_separator_RC \
19706    hardcode_automatic_RC \
19707    module_cmds_RC \
19708    module_expsym_cmds_RC \
19709    lt_cv_prog_compiler_c_o_RC \
19710    exclude_expsyms_RC \
19711    include_expsyms_RC; do
19712
19713    case $var in
19714    old_archive_cmds_RC | \
19715    old_archive_from_new_cmds_RC | \
19716    archive_cmds_RC | \
19717    archive_expsym_cmds_RC | \
19718    module_cmds_RC | \
19719    module_expsym_cmds_RC | \
19720    old_archive_from_expsyms_cmds_RC | \
19721    export_symbols_cmds_RC | \
19722    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19723    postinstall_cmds | postuninstall_cmds | \
19724    old_postinstall_cmds | old_postuninstall_cmds | \
19725    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19726      # Double-quote double-evaled strings.
19727      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19728      ;;
19729    *)
19730      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19731      ;;
19732    esac
19733  done
19734
19735  case $lt_echo in
19736  *'\$0 --fallback-echo"')
19737    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19738    ;;
19739  esac
19740
19741cfgfile="$ofile"
19742
19743  cat <<__EOF__ >> "$cfgfile"
19744# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19745
19746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19747
19748# Shell to use when invoking shell scripts.
19749SHELL=$lt_SHELL
19750
19751# Whether or not to build shared libraries.
19752build_libtool_libs=$enable_shared
19753
19754# Whether or not to build static libraries.
19755build_old_libs=$enable_static
19756
19757# Whether or not to add -lc for building shared libraries.
19758build_libtool_need_lc=$archive_cmds_need_lc_RC
19759
19760# Whether or not to disallow shared libs when runtime libs are static
19761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19762
19763# Whether or not to optimize for fast installation.
19764fast_install=$enable_fast_install
19765
19766# The host system.
19767host_alias=$host_alias
19768host=$host
19769host_os=$host_os
19770
19771# The build system.
19772build_alias=$build_alias
19773build=$build
19774build_os=$build_os
19775
19776# An echo program that does not interpret backslashes.
19777echo=$lt_echo
19778
19779# The archiver.
19780AR=$lt_AR
19781AR_FLAGS=$lt_AR_FLAGS
19782
19783# A C compiler.
19784LTCC=$lt_LTCC
19785
19786# A language-specific compiler.
19787CC=$lt_compiler_RC
19788
19789# Is the compiler the GNU C compiler?
19790with_gcc=$GCC_RC
19791
19792# An ERE matcher.
19793EGREP=$lt_EGREP
19794
19795# The linker used to build libraries.
19796LD=$lt_LD_RC
19797
19798# Whether we need hard or soft links.
19799LN_S=$lt_LN_S
19800
19801# A BSD-compatible nm program.
19802NM=$lt_NM
19803
19804# A symbol stripping program
19805STRIP=$lt_STRIP
19806
19807# Used to examine libraries when file_magic_cmd begins "file"
19808MAGIC_CMD=$MAGIC_CMD
19809
19810# Used on cygwin: DLL creation program.
19811DLLTOOL="$DLLTOOL"
19812
19813# Used on cygwin: object dumper.
19814OBJDUMP="$OBJDUMP"
19815
19816# Used on cygwin: assembler.
19817AS="$AS"
19818
19819# The name of the directory that contains temporary libtool files.
19820objdir=$objdir
19821
19822# How to create reloadable object files.
19823reload_flag=$lt_reload_flag
19824reload_cmds=$lt_reload_cmds
19825
19826# How to pass a linker flag through the compiler.
19827wl=$lt_lt_prog_compiler_wl_RC
19828
19829# Object file suffix (normally "o").
19830objext="$ac_objext"
19831
19832# Old archive suffix (normally "a").
19833libext="$libext"
19834
19835# Shared library suffix (normally ".so").
19836shrext_cmds='$shrext_cmds'
19837
19838# Executable file suffix (normally "").
19839exeext="$exeext"
19840
19841# Additional compiler flags for building library objects.
19842pic_flag=$lt_lt_prog_compiler_pic_RC
19843pic_mode=$pic_mode
19844
19845# What is the maximum length of a command?
19846max_cmd_len=$lt_cv_sys_max_cmd_len
19847
19848# Does compiler simultaneously support -c and -o options?
19849compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19850
19851# Must we lock files when doing compilation?
19852need_locks=$lt_need_locks
19853
19854# Do we need the lib prefix for modules?
19855need_lib_prefix=$need_lib_prefix
19856
19857# Do we need a version for libraries?
19858need_version=$need_version
19859
19860# Whether dlopen is supported.
19861dlopen_support=$enable_dlopen
19862
19863# Whether dlopen of programs is supported.
19864dlopen_self=$enable_dlopen_self
19865
19866# Whether dlopen of statically linked programs is supported.
19867dlopen_self_static=$enable_dlopen_self_static
19868
19869# Compiler flag to prevent dynamic linking.
19870link_static_flag=$lt_lt_prog_compiler_static_RC
19871
19872# Compiler flag to turn off builtin functions.
19873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19874
19875# Compiler flag to allow reflexive dlopens.
19876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19877
19878# Compiler flag to generate shared objects directly from archives.
19879whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19880
19881# Compiler flag to generate thread-safe objects.
19882thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19883
19884# Library versioning type.
19885version_type=$version_type
19886
19887# Format of library name prefix.
19888libname_spec=$lt_libname_spec
19889
19890# List of archive names.  First name is the real one, the rest are links.
19891# The last name is the one that the linker finds with -lNAME.
19892library_names_spec=$lt_library_names_spec
19893
19894# The coded name of the library, if different from the real name.
19895soname_spec=$lt_soname_spec
19896
19897# Commands used to build and install an old-style archive.
19898RANLIB=$lt_RANLIB
19899old_archive_cmds=$lt_old_archive_cmds_RC
19900old_postinstall_cmds=$lt_old_postinstall_cmds
19901old_postuninstall_cmds=$lt_old_postuninstall_cmds
19902
19903# Create an old-style archive from a shared archive.
19904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19905
19906# Create a temporary old-style archive to link instead of a shared archive.
19907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19908
19909# Commands used to build and install a shared archive.
19910archive_cmds=$lt_archive_cmds_RC
19911archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19912postinstall_cmds=$lt_postinstall_cmds
19913postuninstall_cmds=$lt_postuninstall_cmds
19914
19915# Commands used to build a loadable module (assumed same as above if empty)
19916module_cmds=$lt_module_cmds_RC
19917module_expsym_cmds=$lt_module_expsym_cmds_RC
19918
19919# Commands to strip libraries.
19920old_striplib=$lt_old_striplib
19921striplib=$lt_striplib
19922
19923# Dependencies to place before the objects being linked to create a
19924# shared library.
19925predep_objects=$lt_predep_objects_RC
19926
19927# Dependencies to place after the objects being linked to create a
19928# shared library.
19929postdep_objects=$lt_postdep_objects_RC
19930
19931# Dependencies to place before the objects being linked to create a
19932# shared library.
19933predeps=$lt_predeps_RC
19934
19935# Dependencies to place after the objects being linked to create a
19936# shared library.
19937postdeps=$lt_postdeps_RC
19938
19939# The library search path used internally by the compiler when linking
19940# a shared library.
19941compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19942
19943# Method to check whether dependent libraries are shared objects.
19944deplibs_check_method=$lt_deplibs_check_method
19945
19946# Command to use when deplibs_check_method == file_magic.
19947file_magic_cmd=$lt_file_magic_cmd
19948
19949# Flag that allows shared libraries with undefined symbols to be built.
19950allow_undefined_flag=$lt_allow_undefined_flag_RC
19951
19952# Flag that forces no undefined symbols.
19953no_undefined_flag=$lt_no_undefined_flag_RC
19954
19955# Commands used to finish a libtool library installation in a directory.
19956finish_cmds=$lt_finish_cmds
19957
19958# Same as above, but a single script fragment to be evaled but not shown.
19959finish_eval=$lt_finish_eval
19960
19961# Take the output of nm and produce a listing of raw symbols and C names.
19962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19963
19964# Transform the output of nm in a proper C declaration
19965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19966
19967# Transform the output of nm in a C name address pair
19968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19969
19970# This is the shared library runtime path variable.
19971runpath_var=$runpath_var
19972
19973# This is the shared library path variable.
19974shlibpath_var=$shlibpath_var
19975
19976# Is shlibpath searched before the hard-coded library search path?
19977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19978
19979# How to hardcode a shared library path into an executable.
19980hardcode_action=$hardcode_action_RC
19981
19982# Whether we should hardcode library paths into libraries.
19983hardcode_into_libs=$hardcode_into_libs
19984
19985# Flag to hardcode \$libdir into a binary during linking.
19986# This must work even if \$libdir does not exist.
19987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19988
19989# If ld is used when linking, flag to hardcode \$libdir into
19990# a binary during linking. This must work even if \$libdir does
19991# not exist.
19992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19993
19994# Whether we need a single -rpath flag with a separated argument.
19995hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19996
19997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19998# resulting binary.
19999hardcode_direct=$hardcode_direct_RC
20000
20001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20002# resulting binary.
20003hardcode_minus_L=$hardcode_minus_L_RC
20004
20005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20006# the resulting binary.
20007hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20008
20009# Set to yes if building a shared library automatically hardcodes DIR into the library
20010# and all subsequent libraries and executables linked against it.
20011hardcode_automatic=$hardcode_automatic_RC
20012
20013# Variables whose values should be saved in libtool wrapper scripts and
20014# restored at relink time.
20015variables_saved_for_relink="$variables_saved_for_relink"
20016
20017# Whether libtool must link a program against all its dependency libraries.
20018link_all_deplibs=$link_all_deplibs_RC
20019
20020# Compile-time system search path for libraries
20021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20022
20023# Run-time system search path for libraries
20024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20025
20026# Fix the shell variable \$srcfile for the compiler.
20027fix_srcfile_path="$fix_srcfile_path_RC"
20028
20029# Set to yes if exported symbols are required.
20030always_export_symbols=$always_export_symbols_RC
20031
20032# The commands to list exported symbols.
20033export_symbols_cmds=$lt_export_symbols_cmds_RC
20034
20035# The commands to extract the exported symbol list from a shared archive.
20036extract_expsyms_cmds=$lt_extract_expsyms_cmds
20037
20038# Symbols that should not be listed in the preloaded symbols.
20039exclude_expsyms=$lt_exclude_expsyms_RC
20040
20041# Symbols that must always be exported.
20042include_expsyms=$lt_include_expsyms_RC
20043
20044# ### END LIBTOOL TAG CONFIG: $tagname
20045
20046__EOF__
20047
20048
20049else
20050  # If there is no Makefile yet, we rely on a make rule to execute
20051  # `config.status --recheck' to rerun these tests and create the
20052  # libtool script then.
20053  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20054  if test -f "$ltmain_in"; then
20055    test -f Makefile && make "$ltmain"
20056  fi
20057fi
20058
20059
20060ac_ext=c
20061ac_cpp='$CPP $CPPFLAGS'
20062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064ac_compiler_gnu=$ac_cv_c_compiler_gnu
20065
20066CC="$lt_save_CC"
20067
20068	;;
20069
20070      *)
20071	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20072echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20073   { (exit 1); exit 1; }; }
20074	;;
20075      esac
20076
20077      # Append the new tag name to the list of available tags.
20078      if test -n "$tagname" ; then
20079      available_tags="$available_tags $tagname"
20080    fi
20081    fi
20082  done
20083  IFS="$lt_save_ifs"
20084
20085  # Now substitute the updated list of available tags.
20086  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20087    mv "${ofile}T" "$ofile"
20088    chmod +x "$ofile"
20089  else
20090    rm -f "${ofile}T"
20091    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20092echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20093   { (exit 1); exit 1; }; }
20094  fi
20095fi
20096
20097
20098
20099# This can be used to rebuild libtool when needed
20100LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20101
20102# Always use our own libtool.
20103LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20104
20105# Prevent multiple expansion
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133ac_header_dirent=no
20134for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20135  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20136echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20137echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20138if eval "test \"\${$as_ac_Header+set}\" = set"; then
20139  echo $ECHO_N "(cached) $ECHO_C" >&6
20140else
20141  cat >conftest.$ac_ext <<_ACEOF
20142/* confdefs.h.  */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h.  */
20147#include <sys/types.h>
20148#include <$ac_hdr>
20149
20150int
20151main ()
20152{
20153if ((DIR *) 0)
20154return 0;
20155  ;
20156  return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161  (eval $ac_compile) 2>conftest.er1
20162  ac_status=$?
20163  grep -v '^ *+' conftest.er1 >conftest.err
20164  rm -f conftest.er1
20165  cat conftest.err >&5
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); } &&
20168	 { ac_try='test -z "$ac_c_werror_flag"
20169			 || test ! -s conftest.err'
20170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171  (eval $ac_try) 2>&5
20172  ac_status=$?
20173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174  (exit $ac_status); }; } &&
20175	 { ac_try='test -s conftest.$ac_objext'
20176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177  (eval $ac_try) 2>&5
20178  ac_status=$?
20179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180  (exit $ac_status); }; }; then
20181  eval "$as_ac_Header=yes"
20182else
20183  echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
20186eval "$as_ac_Header=no"
20187fi
20188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20189fi
20190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20192if test `eval echo '${'$as_ac_Header'}'` = yes; then
20193  cat >>confdefs.h <<_ACEOF
20194#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20195_ACEOF
20196
20197ac_header_dirent=$ac_hdr; break
20198fi
20199
20200done
20201# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20202if test $ac_header_dirent = dirent.h; then
20203  echo "$as_me:$LINENO: checking for library containing opendir" >&5
20204echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20205if test "${ac_cv_search_opendir+set}" = set; then
20206  echo $ECHO_N "(cached) $ECHO_C" >&6
20207else
20208  ac_func_search_save_LIBS=$LIBS
20209ac_cv_search_opendir=no
20210cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h.  */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h.  */
20216
20217/* Override any gcc2 internal prototype to avoid an error.  */
20218#ifdef __cplusplus
20219extern "C"
20220#endif
20221/* We use char because int might match the return type of a gcc2
20222   builtin and then its argument prototype would still apply.  */
20223char opendir ();
20224int
20225main ()
20226{
20227opendir ();
20228  ;
20229  return 0;
20230}
20231_ACEOF
20232rm -f conftest.$ac_objext conftest$ac_exeext
20233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234  (eval $ac_link) 2>conftest.er1
20235  ac_status=$?
20236  grep -v '^ *+' conftest.er1 >conftest.err
20237  rm -f conftest.er1
20238  cat conftest.err >&5
20239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240  (exit $ac_status); } &&
20241	 { ac_try='test -z "$ac_c_werror_flag"
20242			 || test ! -s conftest.err'
20243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244  (eval $ac_try) 2>&5
20245  ac_status=$?
20246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247  (exit $ac_status); }; } &&
20248	 { ac_try='test -s conftest$ac_exeext'
20249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250  (eval $ac_try) 2>&5
20251  ac_status=$?
20252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253  (exit $ac_status); }; }; then
20254  ac_cv_search_opendir="none required"
20255else
20256  echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259fi
20260rm -f conftest.err conftest.$ac_objext \
20261      conftest$ac_exeext conftest.$ac_ext
20262if test "$ac_cv_search_opendir" = no; then
20263  for ac_lib in dir; do
20264    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20265    cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h.  */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h.  */
20271
20272/* Override any gcc2 internal prototype to avoid an error.  */
20273#ifdef __cplusplus
20274extern "C"
20275#endif
20276/* We use char because int might match the return type of a gcc2
20277   builtin and then its argument prototype would still apply.  */
20278char opendir ();
20279int
20280main ()
20281{
20282opendir ();
20283  ;
20284  return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext conftest$ac_exeext
20288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289  (eval $ac_link) 2>conftest.er1
20290  ac_status=$?
20291  grep -v '^ *+' conftest.er1 >conftest.err
20292  rm -f conftest.er1
20293  cat conftest.err >&5
20294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295  (exit $ac_status); } &&
20296	 { ac_try='test -z "$ac_c_werror_flag"
20297			 || test ! -s conftest.err'
20298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299  (eval $ac_try) 2>&5
20300  ac_status=$?
20301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302  (exit $ac_status); }; } &&
20303	 { ac_try='test -s conftest$ac_exeext'
20304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305  (eval $ac_try) 2>&5
20306  ac_status=$?
20307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); }; }; then
20309  ac_cv_search_opendir="-l$ac_lib"
20310break
20311else
20312  echo "$as_me: failed program was:" >&5
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
20315fi
20316rm -f conftest.err conftest.$ac_objext \
20317      conftest$ac_exeext conftest.$ac_ext
20318  done
20319fi
20320LIBS=$ac_func_search_save_LIBS
20321fi
20322echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20323echo "${ECHO_T}$ac_cv_search_opendir" >&6
20324if test "$ac_cv_search_opendir" != no; then
20325  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20326
20327fi
20328
20329else
20330  echo "$as_me:$LINENO: checking for library containing opendir" >&5
20331echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20332if test "${ac_cv_search_opendir+set}" = set; then
20333  echo $ECHO_N "(cached) $ECHO_C" >&6
20334else
20335  ac_func_search_save_LIBS=$LIBS
20336ac_cv_search_opendir=no
20337cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h.  */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h.  */
20343
20344/* Override any gcc2 internal prototype to avoid an error.  */
20345#ifdef __cplusplus
20346extern "C"
20347#endif
20348/* We use char because int might match the return type of a gcc2
20349   builtin and then its argument prototype would still apply.  */
20350char opendir ();
20351int
20352main ()
20353{
20354opendir ();
20355  ;
20356  return 0;
20357}
20358_ACEOF
20359rm -f conftest.$ac_objext conftest$ac_exeext
20360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20361  (eval $ac_link) 2>conftest.er1
20362  ac_status=$?
20363  grep -v '^ *+' conftest.er1 >conftest.err
20364  rm -f conftest.er1
20365  cat conftest.err >&5
20366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367  (exit $ac_status); } &&
20368	 { ac_try='test -z "$ac_c_werror_flag"
20369			 || test ! -s conftest.err'
20370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371  (eval $ac_try) 2>&5
20372  ac_status=$?
20373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374  (exit $ac_status); }; } &&
20375	 { ac_try='test -s conftest$ac_exeext'
20376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377  (eval $ac_try) 2>&5
20378  ac_status=$?
20379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380  (exit $ac_status); }; }; then
20381  ac_cv_search_opendir="none required"
20382else
20383  echo "$as_me: failed program was:" >&5
20384sed 's/^/| /' conftest.$ac_ext >&5
20385
20386fi
20387rm -f conftest.err conftest.$ac_objext \
20388      conftest$ac_exeext conftest.$ac_ext
20389if test "$ac_cv_search_opendir" = no; then
20390  for ac_lib in x; do
20391    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20392    cat >conftest.$ac_ext <<_ACEOF
20393/* confdefs.h.  */
20394_ACEOF
20395cat confdefs.h >>conftest.$ac_ext
20396cat >>conftest.$ac_ext <<_ACEOF
20397/* end confdefs.h.  */
20398
20399/* Override any gcc2 internal prototype to avoid an error.  */
20400#ifdef __cplusplus
20401extern "C"
20402#endif
20403/* We use char because int might match the return type of a gcc2
20404   builtin and then its argument prototype would still apply.  */
20405char opendir ();
20406int
20407main ()
20408{
20409opendir ();
20410  ;
20411  return 0;
20412}
20413_ACEOF
20414rm -f conftest.$ac_objext conftest$ac_exeext
20415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20416  (eval $ac_link) 2>conftest.er1
20417  ac_status=$?
20418  grep -v '^ *+' conftest.er1 >conftest.err
20419  rm -f conftest.er1
20420  cat conftest.err >&5
20421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422  (exit $ac_status); } &&
20423	 { ac_try='test -z "$ac_c_werror_flag"
20424			 || test ! -s conftest.err'
20425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426  (eval $ac_try) 2>&5
20427  ac_status=$?
20428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429  (exit $ac_status); }; } &&
20430	 { ac_try='test -s conftest$ac_exeext'
20431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432  (eval $ac_try) 2>&5
20433  ac_status=$?
20434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435  (exit $ac_status); }; }; then
20436  ac_cv_search_opendir="-l$ac_lib"
20437break
20438else
20439  echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
20442fi
20443rm -f conftest.err conftest.$ac_objext \
20444      conftest$ac_exeext conftest.$ac_ext
20445  done
20446fi
20447LIBS=$ac_func_search_save_LIBS
20448fi
20449echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20450echo "${ECHO_T}$ac_cv_search_opendir" >&6
20451if test "$ac_cv_search_opendir" != no; then
20452  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20453
20454fi
20455
20456fi
20457
20458# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20459if test "${enable_ltdl_install+set}" = set; then
20460  enableval="$enable_ltdl_install"
20461
20462fi;
20463
20464
20465
20466if test x"${enable_ltdl_install-no}" != xno; then
20467  INSTALL_LTDL_TRUE=
20468  INSTALL_LTDL_FALSE='#'
20469else
20470  INSTALL_LTDL_TRUE='#'
20471  INSTALL_LTDL_FALSE=
20472fi
20473
20474
20475
20476if test x"${enable_ltdl_convenience-no}" != xno; then
20477  CONVENIENCE_LTDL_TRUE=
20478  CONVENIENCE_LTDL_FALSE='#'
20479else
20480  CONVENIENCE_LTDL_TRUE='#'
20481  CONVENIENCE_LTDL_FALSE=
20482fi
20483
20484
20485
20486echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20487echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20488if test "${libltdl_cv_shlibext+set}" = set; then
20489  echo $ECHO_N "(cached) $ECHO_C" >&6
20490else
20491
20492module=yes
20493eval libltdl_cv_shlibext=$shrext_cmds
20494
20495fi
20496echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20497echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20498if test -n "$libltdl_cv_shlibext"; then
20499
20500cat >>confdefs.h <<_ACEOF
20501#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20502_ACEOF
20503
20504fi
20505
20506
20507echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20508echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20509if test "${libltdl_cv_shlibpath_var+set}" = set; then
20510  echo $ECHO_N "(cached) $ECHO_C" >&6
20511else
20512  libltdl_cv_shlibpath_var="$shlibpath_var"
20513fi
20514echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20515echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20516if test -n "$libltdl_cv_shlibpath_var"; then
20517
20518cat >>confdefs.h <<_ACEOF
20519#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20520_ACEOF
20521
20522fi
20523
20524
20525echo "$as_me:$LINENO: checking for the default library search path" >&5
20526echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20527if test "${libltdl_cv_sys_search_path+set}" = set; then
20528  echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20531fi
20532echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20533echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20534if test -n "$libltdl_cv_sys_search_path"; then
20535  sys_search_path=
20536  for dir in $libltdl_cv_sys_search_path; do
20537    if test -z "$sys_search_path"; then
20538      sys_search_path="$dir"
20539    else
20540      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20541    fi
20542  done
20543
20544cat >>confdefs.h <<_ACEOF
20545#define LTDL_SYSSEARCHPATH "$sys_search_path"
20546_ACEOF
20547
20548fi
20549
20550echo "$as_me:$LINENO: checking for objdir" >&5
20551echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20552if test "${libltdl_cv_objdir+set}" = set; then
20553  echo $ECHO_N "(cached) $ECHO_C" >&6
20554else
20555  libltdl_cv_objdir="$objdir"
20556  if test -n "$objdir"; then
20557    :
20558  else
20559    rm -f .libs 2>/dev/null
20560    mkdir .libs 2>/dev/null
20561    if test -d .libs; then
20562      libltdl_cv_objdir=.libs
20563    else
20564      # MS-DOS does not allow filenames that begin with a dot.
20565      libltdl_cv_objdir=_libs
20566    fi
20567  rmdir .libs 2>/dev/null
20568  fi
20569
20570fi
20571echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20572echo "${ECHO_T}$libltdl_cv_objdir" >&6
20573
20574cat >>confdefs.h <<_ACEOF
20575#define LTDL_OBJDIR "$libltdl_cv_objdir/"
20576_ACEOF
20577
20578
20579
20580echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20581echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20582if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20583  echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585  if test -n "$lt_cv_sys_global_symbol_pipe"; then
20586    libltdl_cv_preloaded_symbols=yes
20587  else
20588    libltdl_cv_preloaded_symbols=no
20589  fi
20590
20591fi
20592echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20593echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20594if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20595
20596cat >>confdefs.h <<\_ACEOF
20597#define HAVE_PRELOADED_SYMBOLS 1
20598_ACEOF
20599
20600fi
20601
20602LIBADD_DL=
20603
20604ac_ext=c
20605ac_cpp='$CPP $CPPFLAGS'
20606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608ac_compiler_gnu=$ac_cv_c_compiler_gnu
20609
20610
20611echo "$as_me:$LINENO: checking for shl_load" >&5
20612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20613if test "${ac_cv_func_shl_load+set}" = set; then
20614  echo $ECHO_N "(cached) $ECHO_C" >&6
20615else
20616  cat >conftest.$ac_ext <<_ACEOF
20617/* confdefs.h.  */
20618_ACEOF
20619cat confdefs.h >>conftest.$ac_ext
20620cat >>conftest.$ac_ext <<_ACEOF
20621/* end confdefs.h.  */
20622/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20624#define shl_load innocuous_shl_load
20625
20626/* System header to define __stub macros and hopefully few prototypes,
20627    which can conflict with char shl_load (); below.
20628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20629    <limits.h> exists even on freestanding compilers.  */
20630
20631#ifdef __STDC__
20632# include <limits.h>
20633#else
20634# include <assert.h>
20635#endif
20636
20637#undef shl_load
20638
20639/* Override any gcc2 internal prototype to avoid an error.  */
20640#ifdef __cplusplus
20641extern "C"
20642{
20643#endif
20644/* We use char because int might match the return type of a gcc2
20645   builtin and then its argument prototype would still apply.  */
20646char shl_load ();
20647/* The GNU C library defines this for functions which it implements
20648    to always fail with ENOSYS.  Some functions are actually named
20649    something starting with __ and the normal name is an alias.  */
20650#if defined (__stub_shl_load) || defined (__stub___shl_load)
20651choke me
20652#else
20653char (*f) () = shl_load;
20654#endif
20655#ifdef __cplusplus
20656}
20657#endif
20658
20659int
20660main ()
20661{
20662return f != shl_load;
20663  ;
20664  return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext conftest$ac_exeext
20668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20669  (eval $ac_link) 2>conftest.er1
20670  ac_status=$?
20671  grep -v '^ *+' conftest.er1 >conftest.err
20672  rm -f conftest.er1
20673  cat conftest.err >&5
20674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675  (exit $ac_status); } &&
20676	 { ac_try='test -z "$ac_c_werror_flag"
20677			 || test ! -s conftest.err'
20678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679  (eval $ac_try) 2>&5
20680  ac_status=$?
20681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682  (exit $ac_status); }; } &&
20683	 { ac_try='test -s conftest$ac_exeext'
20684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685  (eval $ac_try) 2>&5
20686  ac_status=$?
20687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688  (exit $ac_status); }; }; then
20689  ac_cv_func_shl_load=yes
20690else
20691  echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
20694ac_cv_func_shl_load=no
20695fi
20696rm -f conftest.err conftest.$ac_objext \
20697      conftest$ac_exeext conftest.$ac_ext
20698fi
20699echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20700echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20701if test $ac_cv_func_shl_load = yes; then
20702
20703cat >>confdefs.h <<\_ACEOF
20704#define HAVE_SHL_LOAD 1
20705_ACEOF
20706
20707else
20708  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20709echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20710if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20711  echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713  ac_check_lib_save_LIBS=$LIBS
20714LIBS="-ldld  $LIBS"
20715cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h.  */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h.  */
20721
20722/* Override any gcc2 internal prototype to avoid an error.  */
20723#ifdef __cplusplus
20724extern "C"
20725#endif
20726/* We use char because int might match the return type of a gcc2
20727   builtin and then its argument prototype would still apply.  */
20728char shl_load ();
20729int
20730main ()
20731{
20732shl_load ();
20733  ;
20734  return 0;
20735}
20736_ACEOF
20737rm -f conftest.$ac_objext conftest$ac_exeext
20738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739  (eval $ac_link) 2>conftest.er1
20740  ac_status=$?
20741  grep -v '^ *+' conftest.er1 >conftest.err
20742  rm -f conftest.er1
20743  cat conftest.err >&5
20744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745  (exit $ac_status); } &&
20746	 { ac_try='test -z "$ac_c_werror_flag"
20747			 || test ! -s conftest.err'
20748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749  (eval $ac_try) 2>&5
20750  ac_status=$?
20751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752  (exit $ac_status); }; } &&
20753	 { ac_try='test -s conftest$ac_exeext'
20754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755  (eval $ac_try) 2>&5
20756  ac_status=$?
20757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758  (exit $ac_status); }; }; then
20759  ac_cv_lib_dld_shl_load=yes
20760else
20761  echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764ac_cv_lib_dld_shl_load=no
20765fi
20766rm -f conftest.err conftest.$ac_objext \
20767      conftest$ac_exeext conftest.$ac_ext
20768LIBS=$ac_check_lib_save_LIBS
20769fi
20770echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20771echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20772if test $ac_cv_lib_dld_shl_load = yes; then
20773
20774cat >>confdefs.h <<\_ACEOF
20775#define HAVE_SHL_LOAD 1
20776_ACEOF
20777
20778	LIBADD_DL="$LIBADD_DL -ldld"
20779else
20780  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20783  echo $ECHO_N "(cached) $ECHO_C" >&6
20784else
20785  ac_check_lib_save_LIBS=$LIBS
20786LIBS="-ldl  $LIBS"
20787cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h.  */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h.  */
20793
20794/* Override any gcc2 internal prototype to avoid an error.  */
20795#ifdef __cplusplus
20796extern "C"
20797#endif
20798/* We use char because int might match the return type of a gcc2
20799   builtin and then its argument prototype would still apply.  */
20800char dlopen ();
20801int
20802main ()
20803{
20804dlopen ();
20805  ;
20806  return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext conftest$ac_exeext
20810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20811  (eval $ac_link) 2>conftest.er1
20812  ac_status=$?
20813  grep -v '^ *+' conftest.er1 >conftest.err
20814  rm -f conftest.er1
20815  cat conftest.err >&5
20816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817  (exit $ac_status); } &&
20818	 { ac_try='test -z "$ac_c_werror_flag"
20819			 || test ! -s conftest.err'
20820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821  (eval $ac_try) 2>&5
20822  ac_status=$?
20823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824  (exit $ac_status); }; } &&
20825	 { ac_try='test -s conftest$ac_exeext'
20826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827  (eval $ac_try) 2>&5
20828  ac_status=$?
20829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); }; }; then
20831  ac_cv_lib_dl_dlopen=yes
20832else
20833  echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836ac_cv_lib_dl_dlopen=no
20837fi
20838rm -f conftest.err conftest.$ac_objext \
20839      conftest$ac_exeext conftest.$ac_ext
20840LIBS=$ac_check_lib_save_LIBS
20841fi
20842echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20844if test $ac_cv_lib_dl_dlopen = yes; then
20845
20846cat >>confdefs.h <<\_ACEOF
20847#define HAVE_LIBDL 1
20848_ACEOF
20849
20850	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20851else
20852  cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h.  */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h.  */
20858#if HAVE_DLFCN_H
20859#  include <dlfcn.h>
20860#endif
20861
20862int
20863main ()
20864{
20865dlopen(0, 0);
20866  ;
20867  return 0;
20868}
20869_ACEOF
20870rm -f conftest.$ac_objext conftest$ac_exeext
20871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872  (eval $ac_link) 2>conftest.er1
20873  ac_status=$?
20874  grep -v '^ *+' conftest.er1 >conftest.err
20875  rm -f conftest.er1
20876  cat conftest.err >&5
20877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878  (exit $ac_status); } &&
20879	 { ac_try='test -z "$ac_c_werror_flag"
20880			 || test ! -s conftest.err'
20881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882  (eval $ac_try) 2>&5
20883  ac_status=$?
20884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885  (exit $ac_status); }; } &&
20886	 { ac_try='test -s conftest$ac_exeext'
20887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888  (eval $ac_try) 2>&5
20889  ac_status=$?
20890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891  (exit $ac_status); }; }; then
20892
20893cat >>confdefs.h <<\_ACEOF
20894#define HAVE_LIBDL 1
20895_ACEOF
20896 libltdl_cv_func_dlopen="yes"
20897else
20898  echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20902echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20903if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20904  echo $ECHO_N "(cached) $ECHO_C" >&6
20905else
20906  ac_check_lib_save_LIBS=$LIBS
20907LIBS="-lsvld  $LIBS"
20908cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h.  */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h.  */
20914
20915/* Override any gcc2 internal prototype to avoid an error.  */
20916#ifdef __cplusplus
20917extern "C"
20918#endif
20919/* We use char because int might match the return type of a gcc2
20920   builtin and then its argument prototype would still apply.  */
20921char dlopen ();
20922int
20923main ()
20924{
20925dlopen ();
20926  ;
20927  return 0;
20928}
20929_ACEOF
20930rm -f conftest.$ac_objext conftest$ac_exeext
20931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932  (eval $ac_link) 2>conftest.er1
20933  ac_status=$?
20934  grep -v '^ *+' conftest.er1 >conftest.err
20935  rm -f conftest.er1
20936  cat conftest.err >&5
20937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938  (exit $ac_status); } &&
20939	 { ac_try='test -z "$ac_c_werror_flag"
20940			 || test ! -s conftest.err'
20941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942  (eval $ac_try) 2>&5
20943  ac_status=$?
20944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945  (exit $ac_status); }; } &&
20946	 { ac_try='test -s conftest$ac_exeext'
20947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948  (eval $ac_try) 2>&5
20949  ac_status=$?
20950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951  (exit $ac_status); }; }; then
20952  ac_cv_lib_svld_dlopen=yes
20953else
20954  echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957ac_cv_lib_svld_dlopen=no
20958fi
20959rm -f conftest.err conftest.$ac_objext \
20960      conftest$ac_exeext conftest.$ac_ext
20961LIBS=$ac_check_lib_save_LIBS
20962fi
20963echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20964echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20965if test $ac_cv_lib_svld_dlopen = yes; then
20966
20967cat >>confdefs.h <<\_ACEOF
20968#define HAVE_LIBDL 1
20969_ACEOF
20970
20971	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20972else
20973  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20974echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20975if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20976  echo $ECHO_N "(cached) $ECHO_C" >&6
20977else
20978  ac_check_lib_save_LIBS=$LIBS
20979LIBS="-ldld  $LIBS"
20980cat >conftest.$ac_ext <<_ACEOF
20981/* confdefs.h.  */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
20985/* end confdefs.h.  */
20986
20987/* Override any gcc2 internal prototype to avoid an error.  */
20988#ifdef __cplusplus
20989extern "C"
20990#endif
20991/* We use char because int might match the return type of a gcc2
20992   builtin and then its argument prototype would still apply.  */
20993char dld_link ();
20994int
20995main ()
20996{
20997dld_link ();
20998  ;
20999  return 0;
21000}
21001_ACEOF
21002rm -f conftest.$ac_objext conftest$ac_exeext
21003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004  (eval $ac_link) 2>conftest.er1
21005  ac_status=$?
21006  grep -v '^ *+' conftest.er1 >conftest.err
21007  rm -f conftest.er1
21008  cat conftest.err >&5
21009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010  (exit $ac_status); } &&
21011	 { ac_try='test -z "$ac_c_werror_flag"
21012			 || test ! -s conftest.err'
21013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014  (eval $ac_try) 2>&5
21015  ac_status=$?
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); }; } &&
21018	 { ac_try='test -s conftest$ac_exeext'
21019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020  (eval $ac_try) 2>&5
21021  ac_status=$?
21022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023  (exit $ac_status); }; }; then
21024  ac_cv_lib_dld_dld_link=yes
21025else
21026  echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
21029ac_cv_lib_dld_dld_link=no
21030fi
21031rm -f conftest.err conftest.$ac_objext \
21032      conftest$ac_exeext conftest.$ac_ext
21033LIBS=$ac_check_lib_save_LIBS
21034fi
21035echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21036echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21037if test $ac_cv_lib_dld_dld_link = yes; then
21038
21039cat >>confdefs.h <<\_ACEOF
21040#define HAVE_DLD 1
21041_ACEOF
21042
21043	 	LIBADD_DL="$LIBADD_DL -ldld"
21044else
21045  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21046echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21047if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21048  echo $ECHO_N "(cached) $ECHO_C" >&6
21049else
21050  cat >conftest.$ac_ext <<_ACEOF
21051/* confdefs.h.  */
21052_ACEOF
21053cat confdefs.h >>conftest.$ac_ext
21054cat >>conftest.$ac_ext <<_ACEOF
21055/* end confdefs.h.  */
21056/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21057   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21058#define _dyld_func_lookup innocuous__dyld_func_lookup
21059
21060/* System header to define __stub macros and hopefully few prototypes,
21061    which can conflict with char _dyld_func_lookup (); below.
21062    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063    <limits.h> exists even on freestanding compilers.  */
21064
21065#ifdef __STDC__
21066# include <limits.h>
21067#else
21068# include <assert.h>
21069#endif
21070
21071#undef _dyld_func_lookup
21072
21073/* Override any gcc2 internal prototype to avoid an error.  */
21074#ifdef __cplusplus
21075extern "C"
21076{
21077#endif
21078/* We use char because int might match the return type of a gcc2
21079   builtin and then its argument prototype would still apply.  */
21080char _dyld_func_lookup ();
21081/* The GNU C library defines this for functions which it implements
21082    to always fail with ENOSYS.  Some functions are actually named
21083    something starting with __ and the normal name is an alias.  */
21084#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21085choke me
21086#else
21087char (*f) () = _dyld_func_lookup;
21088#endif
21089#ifdef __cplusplus
21090}
21091#endif
21092
21093int
21094main ()
21095{
21096return f != _dyld_func_lookup;
21097  ;
21098  return 0;
21099}
21100_ACEOF
21101rm -f conftest.$ac_objext conftest$ac_exeext
21102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103  (eval $ac_link) 2>conftest.er1
21104  ac_status=$?
21105  grep -v '^ *+' conftest.er1 >conftest.err
21106  rm -f conftest.er1
21107  cat conftest.err >&5
21108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109  (exit $ac_status); } &&
21110	 { ac_try='test -z "$ac_c_werror_flag"
21111			 || test ! -s conftest.err'
21112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113  (eval $ac_try) 2>&5
21114  ac_status=$?
21115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116  (exit $ac_status); }; } &&
21117	 { ac_try='test -s conftest$ac_exeext'
21118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119  (eval $ac_try) 2>&5
21120  ac_status=$?
21121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122  (exit $ac_status); }; }; then
21123  ac_cv_func__dyld_func_lookup=yes
21124else
21125  echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128ac_cv_func__dyld_func_lookup=no
21129fi
21130rm -f conftest.err conftest.$ac_objext \
21131      conftest$ac_exeext conftest.$ac_ext
21132fi
21133echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21134echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21135if test $ac_cv_func__dyld_func_lookup = yes; then
21136
21137cat >>confdefs.h <<\_ACEOF
21138#define HAVE_DYLD 1
21139_ACEOF
21140
21141fi
21142
21143
21144fi
21145
21146
21147fi
21148
21149
21150fi
21151rm -f conftest.err conftest.$ac_objext \
21152      conftest$ac_exeext conftest.$ac_ext
21153
21154fi
21155
21156
21157fi
21158
21159
21160fi
21161
21162
21163if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21164then
21165  lt_save_LIBS="$LIBS"
21166  LIBS="$LIBS $LIBADD_DL"
21167
21168for ac_func in dlerror
21169do
21170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171echo "$as_me:$LINENO: checking for $ac_func" >&5
21172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21173if eval "test \"\${$as_ac_var+set}\" = set"; then
21174  echo $ECHO_N "(cached) $ECHO_C" >&6
21175else
21176  cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h.  */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h.  */
21182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21184#define $ac_func innocuous_$ac_func
21185
21186/* System header to define __stub macros and hopefully few prototypes,
21187    which can conflict with char $ac_func (); below.
21188    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189    <limits.h> exists even on freestanding compilers.  */
21190
21191#ifdef __STDC__
21192# include <limits.h>
21193#else
21194# include <assert.h>
21195#endif
21196
21197#undef $ac_func
21198
21199/* Override any gcc2 internal prototype to avoid an error.  */
21200#ifdef __cplusplus
21201extern "C"
21202{
21203#endif
21204/* We use char because int might match the return type of a gcc2
21205   builtin and then its argument prototype would still apply.  */
21206char $ac_func ();
21207/* The GNU C library defines this for functions which it implements
21208    to always fail with ENOSYS.  Some functions are actually named
21209    something starting with __ and the normal name is an alias.  */
21210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21211choke me
21212#else
21213char (*f) () = $ac_func;
21214#endif
21215#ifdef __cplusplus
21216}
21217#endif
21218
21219int
21220main ()
21221{
21222return f != $ac_func;
21223  ;
21224  return 0;
21225}
21226_ACEOF
21227rm -f conftest.$ac_objext conftest$ac_exeext
21228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21229  (eval $ac_link) 2>conftest.er1
21230  ac_status=$?
21231  grep -v '^ *+' conftest.er1 >conftest.err
21232  rm -f conftest.er1
21233  cat conftest.err >&5
21234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235  (exit $ac_status); } &&
21236	 { ac_try='test -z "$ac_c_werror_flag"
21237			 || test ! -s conftest.err'
21238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239  (eval $ac_try) 2>&5
21240  ac_status=$?
21241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242  (exit $ac_status); }; } &&
21243	 { ac_try='test -s conftest$ac_exeext'
21244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245  (eval $ac_try) 2>&5
21246  ac_status=$?
21247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248  (exit $ac_status); }; }; then
21249  eval "$as_ac_var=yes"
21250else
21251  echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254eval "$as_ac_var=no"
21255fi
21256rm -f conftest.err conftest.$ac_objext \
21257      conftest$ac_exeext conftest.$ac_ext
21258fi
21259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261if test `eval echo '${'$as_ac_var'}'` = yes; then
21262  cat >>confdefs.h <<_ACEOF
21263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264_ACEOF
21265
21266fi
21267done
21268
21269  LIBS="$lt_save_LIBS"
21270fi
21271ac_ext=c
21272ac_cpp='$CPP $CPPFLAGS'
21273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275ac_compiler_gnu=$ac_cv_c_compiler_gnu
21276
21277
21278
21279echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21280echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21281if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21282  echo $ECHO_N "(cached) $ECHO_C" >&6
21283else
21284  ac_cv_sys_symbol_underscore=no
21285  cat > conftest.$ac_ext <<EOF
21286void nm_test_func(){}
21287int main(){nm_test_func;return 0;}
21288EOF
21289  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290  (eval $ac_compile) 2>&5
21291  ac_status=$?
21292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293  (exit $ac_status); }; then
21294    # Now try to grab the symbols.
21295    ac_nlist=conftest.nm
21296    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21297  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21298  ac_status=$?
21299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300  (exit $ac_status); } && test -s "$ac_nlist"; then
21301      # See whether the symbols have a leading underscore.
21302      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21303        ac_cv_sys_symbol_underscore=yes
21304      else
21305        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21306	  :
21307        else
21308	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21309        fi
21310      fi
21311    else
21312      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21313    fi
21314  else
21315    echo "configure: failed program was:" >&5
21316    cat conftest.c >&5
21317  fi
21318  rm -rf conftest*
21319
21320fi
21321echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21322echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21323
21324
21325if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21326  if test x"$libltdl_cv_func_dlopen" = xyes ||
21327     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21328	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21329echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21330if test "${libltdl_cv_need_uscore+set}" = set; then
21331  echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333  libltdl_cv_need_uscore=unknown
21334          save_LIBS="$LIBS"
21335          LIBS="$LIBS $LIBADD_DL"
21336	  if test "$cross_compiling" = yes; then :
21337  libltdl_cv_need_uscore=cross
21338else
21339  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21340  lt_status=$lt_dlunknown
21341  cat > conftest.$ac_ext <<EOF
21342#line 21342 "configure"
21343#include "confdefs.h"
21344
21345#if HAVE_DLFCN_H
21346#include <dlfcn.h>
21347#endif
21348
21349#include <stdio.h>
21350
21351#ifdef RTLD_GLOBAL
21352#  define LT_DLGLOBAL		RTLD_GLOBAL
21353#else
21354#  ifdef DL_GLOBAL
21355#    define LT_DLGLOBAL		DL_GLOBAL
21356#  else
21357#    define LT_DLGLOBAL		0
21358#  endif
21359#endif
21360
21361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21362   find out it does not work in some platform. */
21363#ifndef LT_DLLAZY_OR_NOW
21364#  ifdef RTLD_LAZY
21365#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21366#  else
21367#    ifdef DL_LAZY
21368#      define LT_DLLAZY_OR_NOW		DL_LAZY
21369#    else
21370#      ifdef RTLD_NOW
21371#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21372#      else
21373#        ifdef DL_NOW
21374#          define LT_DLLAZY_OR_NOW	DL_NOW
21375#        else
21376#          define LT_DLLAZY_OR_NOW	0
21377#        endif
21378#      endif
21379#    endif
21380#  endif
21381#endif
21382
21383#ifdef __cplusplus
21384extern "C" void exit (int);
21385#endif
21386
21387void fnord() { int i=42;}
21388int main ()
21389{
21390  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21391  int status = $lt_dlunknown;
21392
21393  if (self)
21394    {
21395      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21396      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21397      /* dlclose (self); */
21398    }
21399
21400    exit (status);
21401}
21402EOF
21403  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21404  (eval $ac_link) 2>&5
21405  ac_status=$?
21406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21408    (./conftest; exit; ) >&5 2>/dev/null
21409    lt_status=$?
21410    case x$lt_status in
21411      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21412      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21413      x$lt_unknown|x*)  ;;
21414    esac
21415  else :
21416    # compilation failed
21417
21418  fi
21419fi
21420rm -fr conftest*
21421
21422	  LIBS="$save_LIBS"
21423
21424fi
21425echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21426echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21427  fi
21428fi
21429
21430if test x"$libltdl_cv_need_uscore" = xyes; then
21431
21432cat >>confdefs.h <<\_ACEOF
21433#define NEED_USCORE 1
21434_ACEOF
21435
21436fi
21437
21438
21439echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21440echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21441if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21442  echo $ECHO_N "(cached) $ECHO_C" >&6
21443else
21444  # PORTME does your system automatically load deplibs for dlopen?
21445  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21446  # For now, we just catch OSes we know something about -- in the
21447  # future, we'll try test this programmatically.
21448  libltdl_cv_sys_dlopen_deplibs=unknown
21449  case "$host_os" in
21450  aix3*|aix4.1.*|aix4.2.*)
21451    # Unknown whether this is true for these versions of AIX, but
21452    # we want this `case' here to explicitly catch those versions.
21453    libltdl_cv_sys_dlopen_deplibs=unknown
21454    ;;
21455  aix[45]*)
21456    libltdl_cv_sys_dlopen_deplibs=yes
21457    ;;
21458  darwin*)
21459    # Assuming the user has installed a libdl from somewhere, this is true
21460    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21461    libltdl_cv_sys_dlopen_deplibs=yes
21462    ;;
21463  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21464    # GNU and its variants, using gnu ld.so (Glibc)
21465    libltdl_cv_sys_dlopen_deplibs=yes
21466    ;;
21467  hpux10*|hpux11*)
21468    libltdl_cv_sys_dlopen_deplibs=yes
21469    ;;
21470  irix[12345]*|irix6.[01]*)
21471    # Catch all versions of IRIX before 6.2, and indicate that we don't
21472    # know how it worked for any of those versions.
21473    libltdl_cv_sys_dlopen_deplibs=unknown
21474    ;;
21475  irix*)
21476    # The case above catches anything before 6.2, and it's known that
21477    # at 6.2 and later dlopen does load deplibs.
21478    libltdl_cv_sys_dlopen_deplibs=yes
21479    ;;
21480  netbsd*)
21481    libltdl_cv_sys_dlopen_deplibs=yes
21482    ;;
21483  openbsd*)
21484    libltdl_cv_sys_dlopen_deplibs=yes
21485    ;;
21486  osf[1234]*)
21487    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21488    # it did *not* use an RPATH in a shared library to find objects the
21489    # library depends on, so we explictly say `no'.
21490    libltdl_cv_sys_dlopen_deplibs=no
21491    ;;
21492  osf5.0|osf5.0a|osf5.1)
21493    # dlopen *does* load deplibs and with the right loader patch applied
21494    # it even uses RPATH in a shared library to search for shared objects
21495    # that the library depends on, but there's no easy way to know if that
21496    # patch is installed.  Since this is the case, all we can really
21497    # say is unknown -- it depends on the patch being installed.  If
21498    # it is, this changes to `yes'.  Without it, it would be `no'.
21499    libltdl_cv_sys_dlopen_deplibs=unknown
21500    ;;
21501  osf*)
21502    # the two cases above should catch all versions of osf <= 5.1.  Read
21503    # the comments above for what we know about them.
21504    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21505    # is used to find them so we can finally say `yes'.
21506    libltdl_cv_sys_dlopen_deplibs=yes
21507    ;;
21508  solaris*)
21509    libltdl_cv_sys_dlopen_deplibs=yes
21510    ;;
21511  esac
21512
21513fi
21514echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21515echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21516if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21517
21518cat >>confdefs.h <<\_ACEOF
21519#define LTDL_DLOPEN_DEPLIBS 1
21520_ACEOF
21521
21522fi
21523
21524
21525for ac_header in argz.h
21526do
21527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528if eval "test \"\${$as_ac_Header+set}\" = set"; then
21529  echo "$as_me:$LINENO: checking for $ac_header" >&5
21530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21531if eval "test \"\${$as_ac_Header+set}\" = set"; then
21532  echo $ECHO_N "(cached) $ECHO_C" >&6
21533fi
21534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21536else
21537  # Is the header compilable?
21538echo "$as_me:$LINENO: checking $ac_header usability" >&5
21539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21540cat >conftest.$ac_ext <<_ACEOF
21541/* confdefs.h.  */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h.  */
21546$ac_includes_default
21547#include <$ac_header>
21548_ACEOF
21549rm -f conftest.$ac_objext
21550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551  (eval $ac_compile) 2>conftest.er1
21552  ac_status=$?
21553  grep -v '^ *+' conftest.er1 >conftest.err
21554  rm -f conftest.er1
21555  cat conftest.err >&5
21556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557  (exit $ac_status); } &&
21558	 { ac_try='test -z "$ac_c_werror_flag"
21559			 || test ! -s conftest.err'
21560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561  (eval $ac_try) 2>&5
21562  ac_status=$?
21563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564  (exit $ac_status); }; } &&
21565	 { ac_try='test -s conftest.$ac_objext'
21566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567  (eval $ac_try) 2>&5
21568  ac_status=$?
21569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570  (exit $ac_status); }; }; then
21571  ac_header_compiler=yes
21572else
21573  echo "$as_me: failed program was:" >&5
21574sed 's/^/| /' conftest.$ac_ext >&5
21575
21576ac_header_compiler=no
21577fi
21578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580echo "${ECHO_T}$ac_header_compiler" >&6
21581
21582# Is the header present?
21583echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h.  */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h.  */
21591#include <$ac_header>
21592_ACEOF
21593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21594  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21595  ac_status=$?
21596  grep -v '^ *+' conftest.er1 >conftest.err
21597  rm -f conftest.er1
21598  cat conftest.err >&5
21599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600  (exit $ac_status); } >/dev/null; then
21601  if test -s conftest.err; then
21602    ac_cpp_err=$ac_c_preproc_warn_flag
21603    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21604  else
21605    ac_cpp_err=
21606  fi
21607else
21608  ac_cpp_err=yes
21609fi
21610if test -z "$ac_cpp_err"; then
21611  ac_header_preproc=yes
21612else
21613  echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616  ac_header_preproc=no
21617fi
21618rm -f conftest.err conftest.$ac_ext
21619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620echo "${ECHO_T}$ac_header_preproc" >&6
21621
21622# So?  What about this header?
21623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21624  yes:no: )
21625    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21629    ac_header_preproc=yes
21630    ;;
21631  no:yes:* )
21632    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21634    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21635echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21636    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21638    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21639echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21642    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21644    (
21645      cat <<\_ASBOX
21646## ---------------------------------- ##
21647## Report this to bug-libtool@gnu.org ##
21648## ---------------------------------- ##
21649_ASBOX
21650    ) |
21651      sed "s/^/$as_me: WARNING:     /" >&2
21652    ;;
21653esac
21654echo "$as_me:$LINENO: checking for $ac_header" >&5
21655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21656if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657  echo $ECHO_N "(cached) $ECHO_C" >&6
21658else
21659  eval "$as_ac_Header=\$ac_header_preproc"
21660fi
21661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21663
21664fi
21665if test `eval echo '${'$as_ac_Header'}'` = yes; then
21666  cat >>confdefs.h <<_ACEOF
21667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21668_ACEOF
21669
21670fi
21671
21672done
21673
21674
21675echo "$as_me:$LINENO: checking for error_t" >&5
21676echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21677if test "${ac_cv_type_error_t+set}" = set; then
21678  echo $ECHO_N "(cached) $ECHO_C" >&6
21679else
21680  cat >conftest.$ac_ext <<_ACEOF
21681/* confdefs.h.  */
21682_ACEOF
21683cat confdefs.h >>conftest.$ac_ext
21684cat >>conftest.$ac_ext <<_ACEOF
21685/* end confdefs.h.  */
21686#if HAVE_ARGZ_H
21687#  include <argz.h>
21688#endif
21689
21690int
21691main ()
21692{
21693if ((error_t *) 0)
21694  return 0;
21695if (sizeof (error_t))
21696  return 0;
21697  ;
21698  return 0;
21699}
21700_ACEOF
21701rm -f conftest.$ac_objext
21702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703  (eval $ac_compile) 2>conftest.er1
21704  ac_status=$?
21705  grep -v '^ *+' conftest.er1 >conftest.err
21706  rm -f conftest.er1
21707  cat conftest.err >&5
21708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709  (exit $ac_status); } &&
21710	 { ac_try='test -z "$ac_c_werror_flag"
21711			 || test ! -s conftest.err'
21712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713  (eval $ac_try) 2>&5
21714  ac_status=$?
21715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716  (exit $ac_status); }; } &&
21717	 { ac_try='test -s conftest.$ac_objext'
21718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719  (eval $ac_try) 2>&5
21720  ac_status=$?
21721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722  (exit $ac_status); }; }; then
21723  ac_cv_type_error_t=yes
21724else
21725  echo "$as_me: failed program was:" >&5
21726sed 's/^/| /' conftest.$ac_ext >&5
21727
21728ac_cv_type_error_t=no
21729fi
21730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731fi
21732echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21733echo "${ECHO_T}$ac_cv_type_error_t" >&6
21734if test $ac_cv_type_error_t = yes; then
21735
21736cat >>confdefs.h <<_ACEOF
21737#define HAVE_ERROR_T 1
21738_ACEOF
21739
21740
21741else
21742
21743cat >>confdefs.h <<\_ACEOF
21744#define error_t int
21745_ACEOF
21746
21747fi
21748
21749
21750
21751
21752
21753
21754
21755for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21756do
21757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21758echo "$as_me:$LINENO: checking for $ac_func" >&5
21759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21760if eval "test \"\${$as_ac_var+set}\" = set"; then
21761  echo $ECHO_N "(cached) $ECHO_C" >&6
21762else
21763  cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h.  */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h.  */
21769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21771#define $ac_func innocuous_$ac_func
21772
21773/* System header to define __stub macros and hopefully few prototypes,
21774    which can conflict with char $ac_func (); below.
21775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21776    <limits.h> exists even on freestanding compilers.  */
21777
21778#ifdef __STDC__
21779# include <limits.h>
21780#else
21781# include <assert.h>
21782#endif
21783
21784#undef $ac_func
21785
21786/* Override any gcc2 internal prototype to avoid an error.  */
21787#ifdef __cplusplus
21788extern "C"
21789{
21790#endif
21791/* We use char because int might match the return type of a gcc2
21792   builtin and then its argument prototype would still apply.  */
21793char $ac_func ();
21794/* The GNU C library defines this for functions which it implements
21795    to always fail with ENOSYS.  Some functions are actually named
21796    something starting with __ and the normal name is an alias.  */
21797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21798choke me
21799#else
21800char (*f) () = $ac_func;
21801#endif
21802#ifdef __cplusplus
21803}
21804#endif
21805
21806int
21807main ()
21808{
21809return f != $ac_func;
21810  ;
21811  return 0;
21812}
21813_ACEOF
21814rm -f conftest.$ac_objext conftest$ac_exeext
21815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21816  (eval $ac_link) 2>conftest.er1
21817  ac_status=$?
21818  grep -v '^ *+' conftest.er1 >conftest.err
21819  rm -f conftest.er1
21820  cat conftest.err >&5
21821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822  (exit $ac_status); } &&
21823	 { ac_try='test -z "$ac_c_werror_flag"
21824			 || test ! -s conftest.err'
21825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826  (eval $ac_try) 2>&5
21827  ac_status=$?
21828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829  (exit $ac_status); }; } &&
21830	 { ac_try='test -s conftest$ac_exeext'
21831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832  (eval $ac_try) 2>&5
21833  ac_status=$?
21834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835  (exit $ac_status); }; }; then
21836  eval "$as_ac_var=yes"
21837else
21838  echo "$as_me: failed program was:" >&5
21839sed 's/^/| /' conftest.$ac_ext >&5
21840
21841eval "$as_ac_var=no"
21842fi
21843rm -f conftest.err conftest.$ac_objext \
21844      conftest$ac_exeext conftest.$ac_ext
21845fi
21846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21848if test `eval echo '${'$as_ac_var'}'` = yes; then
21849  cat >>confdefs.h <<_ACEOF
21850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21851_ACEOF
21852
21853fi
21854done
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21884		  stdio.h unistd.h
21885do
21886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21887if eval "test \"\${$as_ac_Header+set}\" = set"; then
21888  echo "$as_me:$LINENO: checking for $ac_header" >&5
21889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21890if eval "test \"\${$as_ac_Header+set}\" = set"; then
21891  echo $ECHO_N "(cached) $ECHO_C" >&6
21892fi
21893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21895else
21896  # Is the header compilable?
21897echo "$as_me:$LINENO: checking $ac_header usability" >&5
21898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21899cat >conftest.$ac_ext <<_ACEOF
21900/* confdefs.h.  */
21901_ACEOF
21902cat confdefs.h >>conftest.$ac_ext
21903cat >>conftest.$ac_ext <<_ACEOF
21904/* end confdefs.h.  */
21905$ac_includes_default
21906#include <$ac_header>
21907_ACEOF
21908rm -f conftest.$ac_objext
21909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21910  (eval $ac_compile) 2>conftest.er1
21911  ac_status=$?
21912  grep -v '^ *+' conftest.er1 >conftest.err
21913  rm -f conftest.er1
21914  cat conftest.err >&5
21915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916  (exit $ac_status); } &&
21917	 { ac_try='test -z "$ac_c_werror_flag"
21918			 || test ! -s conftest.err'
21919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920  (eval $ac_try) 2>&5
21921  ac_status=$?
21922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923  (exit $ac_status); }; } &&
21924	 { ac_try='test -s conftest.$ac_objext'
21925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926  (eval $ac_try) 2>&5
21927  ac_status=$?
21928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929  (exit $ac_status); }; }; then
21930  ac_header_compiler=yes
21931else
21932  echo "$as_me: failed program was:" >&5
21933sed 's/^/| /' conftest.$ac_ext >&5
21934
21935ac_header_compiler=no
21936fi
21937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21939echo "${ECHO_T}$ac_header_compiler" >&6
21940
21941# Is the header present?
21942echo "$as_me:$LINENO: checking $ac_header presence" >&5
21943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21944cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h.  */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h.  */
21950#include <$ac_header>
21951_ACEOF
21952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21954  ac_status=$?
21955  grep -v '^ *+' conftest.er1 >conftest.err
21956  rm -f conftest.er1
21957  cat conftest.err >&5
21958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959  (exit $ac_status); } >/dev/null; then
21960  if test -s conftest.err; then
21961    ac_cpp_err=$ac_c_preproc_warn_flag
21962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21963  else
21964    ac_cpp_err=
21965  fi
21966else
21967  ac_cpp_err=yes
21968fi
21969if test -z "$ac_cpp_err"; then
21970  ac_header_preproc=yes
21971else
21972  echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975  ac_header_preproc=no
21976fi
21977rm -f conftest.err conftest.$ac_ext
21978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21979echo "${ECHO_T}$ac_header_preproc" >&6
21980
21981# So?  What about this header?
21982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21983  yes:no: )
21984    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21988    ac_header_preproc=yes
21989    ;;
21990  no:yes:* )
21991    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21993    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21994echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21995    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21997    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21998echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22001    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22003    (
22004      cat <<\_ASBOX
22005## ---------------------------------- ##
22006## Report this to bug-libtool@gnu.org ##
22007## ---------------------------------- ##
22008_ASBOX
22009    ) |
22010      sed "s/^/$as_me: WARNING:     /" >&2
22011    ;;
22012esac
22013echo "$as_me:$LINENO: checking for $ac_header" >&5
22014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22015if eval "test \"\${$as_ac_Header+set}\" = set"; then
22016  echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018  eval "$as_ac_Header=\$ac_header_preproc"
22019fi
22020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22022
22023fi
22024if test `eval echo '${'$as_ac_Header'}'` = yes; then
22025  cat >>confdefs.h <<_ACEOF
22026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22027_ACEOF
22028
22029fi
22030
22031done
22032
22033
22034
22035
22036
22037for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22038do
22039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22040if eval "test \"\${$as_ac_Header+set}\" = set"; then
22041  echo "$as_me:$LINENO: checking for $ac_header" >&5
22042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22043if eval "test \"\${$as_ac_Header+set}\" = set"; then
22044  echo $ECHO_N "(cached) $ECHO_C" >&6
22045fi
22046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22048else
22049  # Is the header compilable?
22050echo "$as_me:$LINENO: checking $ac_header usability" >&5
22051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22052cat >conftest.$ac_ext <<_ACEOF
22053/* confdefs.h.  */
22054_ACEOF
22055cat confdefs.h >>conftest.$ac_ext
22056cat >>conftest.$ac_ext <<_ACEOF
22057/* end confdefs.h.  */
22058$ac_includes_default
22059#include <$ac_header>
22060_ACEOF
22061rm -f conftest.$ac_objext
22062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063  (eval $ac_compile) 2>conftest.er1
22064  ac_status=$?
22065  grep -v '^ *+' conftest.er1 >conftest.err
22066  rm -f conftest.er1
22067  cat conftest.err >&5
22068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069  (exit $ac_status); } &&
22070	 { ac_try='test -z "$ac_c_werror_flag"
22071			 || test ! -s conftest.err'
22072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073  (eval $ac_try) 2>&5
22074  ac_status=$?
22075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076  (exit $ac_status); }; } &&
22077	 { ac_try='test -s conftest.$ac_objext'
22078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079  (eval $ac_try) 2>&5
22080  ac_status=$?
22081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082  (exit $ac_status); }; }; then
22083  ac_header_compiler=yes
22084else
22085  echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088ac_header_compiler=no
22089fi
22090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22092echo "${ECHO_T}$ac_header_compiler" >&6
22093
22094# Is the header present?
22095echo "$as_me:$LINENO: checking $ac_header presence" >&5
22096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22097cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h.  */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h.  */
22103#include <$ac_header>
22104_ACEOF
22105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22107  ac_status=$?
22108  grep -v '^ *+' conftest.er1 >conftest.err
22109  rm -f conftest.er1
22110  cat conftest.err >&5
22111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112  (exit $ac_status); } >/dev/null; then
22113  if test -s conftest.err; then
22114    ac_cpp_err=$ac_c_preproc_warn_flag
22115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22116  else
22117    ac_cpp_err=
22118  fi
22119else
22120  ac_cpp_err=yes
22121fi
22122if test -z "$ac_cpp_err"; then
22123  ac_header_preproc=yes
22124else
22125  echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128  ac_header_preproc=no
22129fi
22130rm -f conftest.err conftest.$ac_ext
22131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22132echo "${ECHO_T}$ac_header_preproc" >&6
22133
22134# So?  What about this header?
22135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22136  yes:no: )
22137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22141    ac_header_preproc=yes
22142    ;;
22143  no:yes:* )
22144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22156    (
22157      cat <<\_ASBOX
22158## ---------------------------------- ##
22159## Report this to bug-libtool@gnu.org ##
22160## ---------------------------------- ##
22161_ASBOX
22162    ) |
22163      sed "s/^/$as_me: WARNING:     /" >&2
22164    ;;
22165esac
22166echo "$as_me:$LINENO: checking for $ac_header" >&5
22167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22168if eval "test \"\${$as_ac_Header+set}\" = set"; then
22169  echo $ECHO_N "(cached) $ECHO_C" >&6
22170else
22171  eval "$as_ac_Header=\$ac_header_preproc"
22172fi
22173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22175
22176fi
22177if test `eval echo '${'$as_ac_Header'}'` = yes; then
22178  cat >>confdefs.h <<_ACEOF
22179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22180_ACEOF
22181
22182fi
22183
22184done
22185
22186
22187
22188for ac_header in string.h strings.h
22189do
22190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22191if eval "test \"\${$as_ac_Header+set}\" = set"; then
22192  echo "$as_me:$LINENO: checking for $ac_header" >&5
22193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22194if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195  echo $ECHO_N "(cached) $ECHO_C" >&6
22196fi
22197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22199else
22200  # Is the header compilable?
22201echo "$as_me:$LINENO: checking $ac_header usability" >&5
22202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22203cat >conftest.$ac_ext <<_ACEOF
22204/* confdefs.h.  */
22205_ACEOF
22206cat confdefs.h >>conftest.$ac_ext
22207cat >>conftest.$ac_ext <<_ACEOF
22208/* end confdefs.h.  */
22209$ac_includes_default
22210#include <$ac_header>
22211_ACEOF
22212rm -f conftest.$ac_objext
22213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214  (eval $ac_compile) 2>conftest.er1
22215  ac_status=$?
22216  grep -v '^ *+' conftest.er1 >conftest.err
22217  rm -f conftest.er1
22218  cat conftest.err >&5
22219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220  (exit $ac_status); } &&
22221	 { ac_try='test -z "$ac_c_werror_flag"
22222			 || test ! -s conftest.err'
22223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224  (eval $ac_try) 2>&5
22225  ac_status=$?
22226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227  (exit $ac_status); }; } &&
22228	 { ac_try='test -s conftest.$ac_objext'
22229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230  (eval $ac_try) 2>&5
22231  ac_status=$?
22232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233  (exit $ac_status); }; }; then
22234  ac_header_compiler=yes
22235else
22236  echo "$as_me: failed program was:" >&5
22237sed 's/^/| /' conftest.$ac_ext >&5
22238
22239ac_header_compiler=no
22240fi
22241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22243echo "${ECHO_T}$ac_header_compiler" >&6
22244
22245# Is the header present?
22246echo "$as_me:$LINENO: checking $ac_header presence" >&5
22247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22248cat >conftest.$ac_ext <<_ACEOF
22249/* confdefs.h.  */
22250_ACEOF
22251cat confdefs.h >>conftest.$ac_ext
22252cat >>conftest.$ac_ext <<_ACEOF
22253/* end confdefs.h.  */
22254#include <$ac_header>
22255_ACEOF
22256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22258  ac_status=$?
22259  grep -v '^ *+' conftest.er1 >conftest.err
22260  rm -f conftest.er1
22261  cat conftest.err >&5
22262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263  (exit $ac_status); } >/dev/null; then
22264  if test -s conftest.err; then
22265    ac_cpp_err=$ac_c_preproc_warn_flag
22266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22267  else
22268    ac_cpp_err=
22269  fi
22270else
22271  ac_cpp_err=yes
22272fi
22273if test -z "$ac_cpp_err"; then
22274  ac_header_preproc=yes
22275else
22276  echo "$as_me: failed program was:" >&5
22277sed 's/^/| /' conftest.$ac_ext >&5
22278
22279  ac_header_preproc=no
22280fi
22281rm -f conftest.err conftest.$ac_ext
22282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22283echo "${ECHO_T}$ac_header_preproc" >&6
22284
22285# So?  What about this header?
22286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22287  yes:no: )
22288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22292    ac_header_preproc=yes
22293    ;;
22294  no:yes:* )
22295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22307    (
22308      cat <<\_ASBOX
22309## ---------------------------------- ##
22310## Report this to bug-libtool@gnu.org ##
22311## ---------------------------------- ##
22312_ASBOX
22313    ) |
22314      sed "s/^/$as_me: WARNING:     /" >&2
22315    ;;
22316esac
22317echo "$as_me:$LINENO: checking for $ac_header" >&5
22318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22319if eval "test \"\${$as_ac_Header+set}\" = set"; then
22320  echo $ECHO_N "(cached) $ECHO_C" >&6
22321else
22322  eval "$as_ac_Header=\$ac_header_preproc"
22323fi
22324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22326
22327fi
22328if test `eval echo '${'$as_ac_Header'}'` = yes; then
22329  cat >>confdefs.h <<_ACEOF
22330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22331_ACEOF
22332 break
22333fi
22334
22335done
22336
22337
22338
22339
22340for ac_func in strchr index
22341do
22342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22343echo "$as_me:$LINENO: checking for $ac_func" >&5
22344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22345if eval "test \"\${$as_ac_var+set}\" = set"; then
22346  echo $ECHO_N "(cached) $ECHO_C" >&6
22347else
22348  cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h.  */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h.  */
22354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22356#define $ac_func innocuous_$ac_func
22357
22358/* System header to define __stub macros and hopefully few prototypes,
22359    which can conflict with char $ac_func (); below.
22360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361    <limits.h> exists even on freestanding compilers.  */
22362
22363#ifdef __STDC__
22364# include <limits.h>
22365#else
22366# include <assert.h>
22367#endif
22368
22369#undef $ac_func
22370
22371/* Override any gcc2 internal prototype to avoid an error.  */
22372#ifdef __cplusplus
22373extern "C"
22374{
22375#endif
22376/* We use char because int might match the return type of a gcc2
22377   builtin and then its argument prototype would still apply.  */
22378char $ac_func ();
22379/* The GNU C library defines this for functions which it implements
22380    to always fail with ENOSYS.  Some functions are actually named
22381    something starting with __ and the normal name is an alias.  */
22382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22383choke me
22384#else
22385char (*f) () = $ac_func;
22386#endif
22387#ifdef __cplusplus
22388}
22389#endif
22390
22391int
22392main ()
22393{
22394return f != $ac_func;
22395  ;
22396  return 0;
22397}
22398_ACEOF
22399rm -f conftest.$ac_objext conftest$ac_exeext
22400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401  (eval $ac_link) 2>conftest.er1
22402  ac_status=$?
22403  grep -v '^ *+' conftest.er1 >conftest.err
22404  rm -f conftest.er1
22405  cat conftest.err >&5
22406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407  (exit $ac_status); } &&
22408	 { ac_try='test -z "$ac_c_werror_flag"
22409			 || test ! -s conftest.err'
22410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411  (eval $ac_try) 2>&5
22412  ac_status=$?
22413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414  (exit $ac_status); }; } &&
22415	 { ac_try='test -s conftest$ac_exeext'
22416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417  (eval $ac_try) 2>&5
22418  ac_status=$?
22419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420  (exit $ac_status); }; }; then
22421  eval "$as_ac_var=yes"
22422else
22423  echo "$as_me: failed program was:" >&5
22424sed 's/^/| /' conftest.$ac_ext >&5
22425
22426eval "$as_ac_var=no"
22427fi
22428rm -f conftest.err conftest.$ac_objext \
22429      conftest$ac_exeext conftest.$ac_ext
22430fi
22431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22433if test `eval echo '${'$as_ac_var'}'` = yes; then
22434  cat >>confdefs.h <<_ACEOF
22435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22436_ACEOF
22437 break
22438fi
22439done
22440
22441
22442
22443for ac_func in strrchr rindex
22444do
22445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446echo "$as_me:$LINENO: checking for $ac_func" >&5
22447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22448if eval "test \"\${$as_ac_var+set}\" = set"; then
22449  echo $ECHO_N "(cached) $ECHO_C" >&6
22450else
22451  cat >conftest.$ac_ext <<_ACEOF
22452/* confdefs.h.  */
22453_ACEOF
22454cat confdefs.h >>conftest.$ac_ext
22455cat >>conftest.$ac_ext <<_ACEOF
22456/* end confdefs.h.  */
22457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22459#define $ac_func innocuous_$ac_func
22460
22461/* System header to define __stub macros and hopefully few prototypes,
22462    which can conflict with char $ac_func (); below.
22463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464    <limits.h> exists even on freestanding compilers.  */
22465
22466#ifdef __STDC__
22467# include <limits.h>
22468#else
22469# include <assert.h>
22470#endif
22471
22472#undef $ac_func
22473
22474/* Override any gcc2 internal prototype to avoid an error.  */
22475#ifdef __cplusplus
22476extern "C"
22477{
22478#endif
22479/* We use char because int might match the return type of a gcc2
22480   builtin and then its argument prototype would still apply.  */
22481char $ac_func ();
22482/* The GNU C library defines this for functions which it implements
22483    to always fail with ENOSYS.  Some functions are actually named
22484    something starting with __ and the normal name is an alias.  */
22485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22486choke me
22487#else
22488char (*f) () = $ac_func;
22489#endif
22490#ifdef __cplusplus
22491}
22492#endif
22493
22494int
22495main ()
22496{
22497return f != $ac_func;
22498  ;
22499  return 0;
22500}
22501_ACEOF
22502rm -f conftest.$ac_objext conftest$ac_exeext
22503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22504  (eval $ac_link) 2>conftest.er1
22505  ac_status=$?
22506  grep -v '^ *+' conftest.er1 >conftest.err
22507  rm -f conftest.er1
22508  cat conftest.err >&5
22509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510  (exit $ac_status); } &&
22511	 { ac_try='test -z "$ac_c_werror_flag"
22512			 || test ! -s conftest.err'
22513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514  (eval $ac_try) 2>&5
22515  ac_status=$?
22516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517  (exit $ac_status); }; } &&
22518	 { ac_try='test -s conftest$ac_exeext'
22519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520  (eval $ac_try) 2>&5
22521  ac_status=$?
22522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523  (exit $ac_status); }; }; then
22524  eval "$as_ac_var=yes"
22525else
22526  echo "$as_me: failed program was:" >&5
22527sed 's/^/| /' conftest.$ac_ext >&5
22528
22529eval "$as_ac_var=no"
22530fi
22531rm -f conftest.err conftest.$ac_objext \
22532      conftest$ac_exeext conftest.$ac_ext
22533fi
22534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22536if test `eval echo '${'$as_ac_var'}'` = yes; then
22537  cat >>confdefs.h <<_ACEOF
22538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22539_ACEOF
22540 break
22541fi
22542done
22543
22544
22545
22546for ac_func in memcpy bcopy
22547do
22548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22549echo "$as_me:$LINENO: checking for $ac_func" >&5
22550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22551if eval "test \"\${$as_ac_var+set}\" = set"; then
22552  echo $ECHO_N "(cached) $ECHO_C" >&6
22553else
22554  cat >conftest.$ac_ext <<_ACEOF
22555/* confdefs.h.  */
22556_ACEOF
22557cat confdefs.h >>conftest.$ac_ext
22558cat >>conftest.$ac_ext <<_ACEOF
22559/* end confdefs.h.  */
22560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22561   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22562#define $ac_func innocuous_$ac_func
22563
22564/* System header to define __stub macros and hopefully few prototypes,
22565    which can conflict with char $ac_func (); below.
22566    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22567    <limits.h> exists even on freestanding compilers.  */
22568
22569#ifdef __STDC__
22570# include <limits.h>
22571#else
22572# include <assert.h>
22573#endif
22574
22575#undef $ac_func
22576
22577/* Override any gcc2 internal prototype to avoid an error.  */
22578#ifdef __cplusplus
22579extern "C"
22580{
22581#endif
22582/* We use char because int might match the return type of a gcc2
22583   builtin and then its argument prototype would still apply.  */
22584char $ac_func ();
22585/* The GNU C library defines this for functions which it implements
22586    to always fail with ENOSYS.  Some functions are actually named
22587    something starting with __ and the normal name is an alias.  */
22588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22589choke me
22590#else
22591char (*f) () = $ac_func;
22592#endif
22593#ifdef __cplusplus
22594}
22595#endif
22596
22597int
22598main ()
22599{
22600return f != $ac_func;
22601  ;
22602  return 0;
22603}
22604_ACEOF
22605rm -f conftest.$ac_objext conftest$ac_exeext
22606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607  (eval $ac_link) 2>conftest.er1
22608  ac_status=$?
22609  grep -v '^ *+' conftest.er1 >conftest.err
22610  rm -f conftest.er1
22611  cat conftest.err >&5
22612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613  (exit $ac_status); } &&
22614	 { ac_try='test -z "$ac_c_werror_flag"
22615			 || test ! -s conftest.err'
22616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617  (eval $ac_try) 2>&5
22618  ac_status=$?
22619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620  (exit $ac_status); }; } &&
22621	 { ac_try='test -s conftest$ac_exeext'
22622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623  (eval $ac_try) 2>&5
22624  ac_status=$?
22625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626  (exit $ac_status); }; }; then
22627  eval "$as_ac_var=yes"
22628else
22629  echo "$as_me: failed program was:" >&5
22630sed 's/^/| /' conftest.$ac_ext >&5
22631
22632eval "$as_ac_var=no"
22633fi
22634rm -f conftest.err conftest.$ac_objext \
22635      conftest$ac_exeext conftest.$ac_ext
22636fi
22637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22639if test `eval echo '${'$as_ac_var'}'` = yes; then
22640  cat >>confdefs.h <<_ACEOF
22641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22642_ACEOF
22643 break
22644fi
22645done
22646
22647
22648
22649for ac_func in memmove strcmp
22650do
22651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22652echo "$as_me:$LINENO: checking for $ac_func" >&5
22653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22654if eval "test \"\${$as_ac_var+set}\" = set"; then
22655  echo $ECHO_N "(cached) $ECHO_C" >&6
22656else
22657  cat >conftest.$ac_ext <<_ACEOF
22658/* confdefs.h.  */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h.  */
22663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22664   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22665#define $ac_func innocuous_$ac_func
22666
22667/* System header to define __stub macros and hopefully few prototypes,
22668    which can conflict with char $ac_func (); below.
22669    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22670    <limits.h> exists even on freestanding compilers.  */
22671
22672#ifdef __STDC__
22673# include <limits.h>
22674#else
22675# include <assert.h>
22676#endif
22677
22678#undef $ac_func
22679
22680/* Override any gcc2 internal prototype to avoid an error.  */
22681#ifdef __cplusplus
22682extern "C"
22683{
22684#endif
22685/* We use char because int might match the return type of a gcc2
22686   builtin and then its argument prototype would still apply.  */
22687char $ac_func ();
22688/* The GNU C library defines this for functions which it implements
22689    to always fail with ENOSYS.  Some functions are actually named
22690    something starting with __ and the normal name is an alias.  */
22691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22692choke me
22693#else
22694char (*f) () = $ac_func;
22695#endif
22696#ifdef __cplusplus
22697}
22698#endif
22699
22700int
22701main ()
22702{
22703return f != $ac_func;
22704  ;
22705  return 0;
22706}
22707_ACEOF
22708rm -f conftest.$ac_objext conftest$ac_exeext
22709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710  (eval $ac_link) 2>conftest.er1
22711  ac_status=$?
22712  grep -v '^ *+' conftest.er1 >conftest.err
22713  rm -f conftest.er1
22714  cat conftest.err >&5
22715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716  (exit $ac_status); } &&
22717	 { ac_try='test -z "$ac_c_werror_flag"
22718			 || test ! -s conftest.err'
22719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720  (eval $ac_try) 2>&5
22721  ac_status=$?
22722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723  (exit $ac_status); }; } &&
22724	 { ac_try='test -s conftest$ac_exeext'
22725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726  (eval $ac_try) 2>&5
22727  ac_status=$?
22728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729  (exit $ac_status); }; }; then
22730  eval "$as_ac_var=yes"
22731else
22732  echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735eval "$as_ac_var=no"
22736fi
22737rm -f conftest.err conftest.$ac_objext \
22738      conftest$ac_exeext conftest.$ac_ext
22739fi
22740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22742if test `eval echo '${'$as_ac_var'}'` = yes; then
22743  cat >>confdefs.h <<_ACEOF
22744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22745_ACEOF
22746
22747fi
22748done
22749
22750
22751
22752
22753for ac_func in closedir opendir readdir
22754do
22755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756echo "$as_me:$LINENO: checking for $ac_func" >&5
22757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22758if eval "test \"\${$as_ac_var+set}\" = set"; then
22759  echo $ECHO_N "(cached) $ECHO_C" >&6
22760else
22761  cat >conftest.$ac_ext <<_ACEOF
22762/* confdefs.h.  */
22763_ACEOF
22764cat confdefs.h >>conftest.$ac_ext
22765cat >>conftest.$ac_ext <<_ACEOF
22766/* end confdefs.h.  */
22767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22769#define $ac_func innocuous_$ac_func
22770
22771/* System header to define __stub macros and hopefully few prototypes,
22772    which can conflict with char $ac_func (); below.
22773    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22774    <limits.h> exists even on freestanding compilers.  */
22775
22776#ifdef __STDC__
22777# include <limits.h>
22778#else
22779# include <assert.h>
22780#endif
22781
22782#undef $ac_func
22783
22784/* Override any gcc2 internal prototype to avoid an error.  */
22785#ifdef __cplusplus
22786extern "C"
22787{
22788#endif
22789/* We use char because int might match the return type of a gcc2
22790   builtin and then its argument prototype would still apply.  */
22791char $ac_func ();
22792/* The GNU C library defines this for functions which it implements
22793    to always fail with ENOSYS.  Some functions are actually named
22794    something starting with __ and the normal name is an alias.  */
22795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22796choke me
22797#else
22798char (*f) () = $ac_func;
22799#endif
22800#ifdef __cplusplus
22801}
22802#endif
22803
22804int
22805main ()
22806{
22807return f != $ac_func;
22808  ;
22809  return 0;
22810}
22811_ACEOF
22812rm -f conftest.$ac_objext conftest$ac_exeext
22813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22814  (eval $ac_link) 2>conftest.er1
22815  ac_status=$?
22816  grep -v '^ *+' conftest.er1 >conftest.err
22817  rm -f conftest.er1
22818  cat conftest.err >&5
22819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820  (exit $ac_status); } &&
22821	 { ac_try='test -z "$ac_c_werror_flag"
22822			 || test ! -s conftest.err'
22823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824  (eval $ac_try) 2>&5
22825  ac_status=$?
22826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827  (exit $ac_status); }; } &&
22828	 { ac_try='test -s conftest$ac_exeext'
22829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830  (eval $ac_try) 2>&5
22831  ac_status=$?
22832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833  (exit $ac_status); }; }; then
22834  eval "$as_ac_var=yes"
22835else
22836  echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839eval "$as_ac_var=no"
22840fi
22841rm -f conftest.err conftest.$ac_objext \
22842      conftest$ac_exeext conftest.$ac_ext
22843fi
22844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22846if test `eval echo '${'$as_ac_var'}'` = yes; then
22847  cat >>confdefs.h <<_ACEOF
22848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22849_ACEOF
22850
22851fi
22852done
22853
22854
22855
22856
22857## -------- ##
22858## Outputs. ##
22859## -------- ##
22860          ac_config_files="$ac_config_files Makefile"
22861
22862cat >confcache <<\_ACEOF
22863# This file is a shell script that caches the results of configure
22864# tests run on this system so they can be shared between configure
22865# scripts and configure runs, see configure's option --config-cache.
22866# It is not useful on other systems.  If it contains results you don't
22867# want to keep, you may remove or edit it.
22868#
22869# config.status only pays attention to the cache file if you give it
22870# the --recheck option to rerun configure.
22871#
22872# `ac_cv_env_foo' variables (set or unset) will be overridden when
22873# loading this file, other *unset* `ac_cv_foo' will be assigned the
22874# following values.
22875
22876_ACEOF
22877
22878# The following way of writing the cache mishandles newlines in values,
22879# but we know of no workaround that is simple, portable, and efficient.
22880# So, don't put newlines in cache variables' values.
22881# Ultrix sh set writes to stderr and can't be redirected directly,
22882# and sets the high bit in the cache file unless we assign to the vars.
22883{
22884  (set) 2>&1 |
22885    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22886    *ac_space=\ *)
22887      # `set' does not quote correctly, so add quotes (double-quote
22888      # substitution turns \\\\ into \\, and sed turns \\ into \).
22889      sed -n \
22890	"s/'/'\\\\''/g;
22891	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22892      ;;
22893    *)
22894      # `set' quotes correctly as required by POSIX, so do not add quotes.
22895      sed -n \
22896	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22897      ;;
22898    esac;
22899} |
22900  sed '
22901     t clear
22902     : clear
22903     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22904     t end
22905     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22906     : end' >>confcache
22907if diff $cache_file confcache >/dev/null 2>&1; then :; else
22908  if test -w $cache_file; then
22909    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22910    cat confcache >$cache_file
22911  else
22912    echo "not updating unwritable cache $cache_file"
22913  fi
22914fi
22915rm -f confcache
22916
22917test "x$prefix" = xNONE && prefix=$ac_default_prefix
22918# Let make expand exec_prefix.
22919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22920
22921# VPATH may cause trouble with some makes, so we remove $(srcdir),
22922# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22923# trailing colons and then remove the whole line if VPATH becomes empty
22924# (actually we leave an empty line to preserve line numbers).
22925if test "x$srcdir" = x.; then
22926  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22927s/:*\$(srcdir):*/:/;
22928s/:*\${srcdir}:*/:/;
22929s/:*@srcdir@:*/:/;
22930s/^\([^=]*=[	 ]*\):*/\1/;
22931s/:*$//;
22932s/^[^=]*=[	 ]*$//;
22933}'
22934fi
22935
22936DEFS=-DHAVE_CONFIG_H
22937
22938ac_libobjs=
22939ac_ltlibobjs=
22940for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22941  # 1. Remove the extension, and $U if already installed.
22942  ac_i=`echo "$ac_i" |
22943	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22944  # 2. Add them.
22945  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22946  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22947done
22948LIBOBJS=$ac_libobjs
22949
22950LTLIBOBJS=$ac_ltlibobjs
22951
22952
22953if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22954  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22955Usually this means the macro was only invoked conditionally." >&5
22956echo "$as_me: error: conditional \"AMDEP\" was never defined.
22957Usually this means the macro was only invoked conditionally." >&2;}
22958   { (exit 1); exit 1; }; }
22959fi
22960if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22961  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22962Usually this means the macro was only invoked conditionally." >&5
22963echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22964Usually this means the macro was only invoked conditionally." >&2;}
22965   { (exit 1); exit 1; }; }
22966fi
22967if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22968  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22969Usually this means the macro was only invoked conditionally." >&5
22970echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22971Usually this means the macro was only invoked conditionally." >&2;}
22972   { (exit 1); exit 1; }; }
22973fi
22974if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22975  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22976Usually this means the macro was only invoked conditionally." >&5
22977echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22978Usually this means the macro was only invoked conditionally." >&2;}
22979   { (exit 1); exit 1; }; }
22980fi
22981if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22982  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22983Usually this means the macro was only invoked conditionally." >&5
22984echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22985Usually this means the macro was only invoked conditionally." >&2;}
22986   { (exit 1); exit 1; }; }
22987fi
22988
22989: ${CONFIG_STATUS=./config.status}
22990ac_clean_files_save=$ac_clean_files
22991ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22992{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22993echo "$as_me: creating $CONFIG_STATUS" >&6;}
22994cat >$CONFIG_STATUS <<_ACEOF
22995#! $SHELL
22996# Generated by $as_me.
22997# Run this file to recreate the current configuration.
22998# Compiler output produced by configure, useful for debugging
22999# configure, is in config.log if it exists.
23000
23001debug=false
23002ac_cs_recheck=false
23003ac_cs_silent=false
23004SHELL=\${CONFIG_SHELL-$SHELL}
23005_ACEOF
23006
23007cat >>$CONFIG_STATUS <<\_ACEOF
23008## --------------------- ##
23009## M4sh Initialization.  ##
23010## --------------------- ##
23011
23012# Be Bourne compatible
23013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23014  emulate sh
23015  NULLCMD=:
23016  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23017  # is contrary to our usage.  Disable this feature.
23018  alias -g '${1+"$@"}'='"$@"'
23019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23020  set -o posix
23021fi
23022DUALCASE=1; export DUALCASE # for MKS sh
23023
23024# Support unset when possible.
23025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23026  as_unset=unset
23027else
23028  as_unset=false
23029fi
23030
23031
23032# Work around bugs in pre-3.0 UWIN ksh.
23033$as_unset ENV MAIL MAILPATH
23034PS1='$ '
23035PS2='> '
23036PS4='+ '
23037
23038# NLS nuisances.
23039for as_var in \
23040  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23041  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23042  LC_TELEPHONE LC_TIME
23043do
23044  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23045    eval $as_var=C; export $as_var
23046  else
23047    $as_unset $as_var
23048  fi
23049done
23050
23051# Required to use basename.
23052if expr a : '\(a\)' >/dev/null 2>&1; then
23053  as_expr=expr
23054else
23055  as_expr=false
23056fi
23057
23058if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23059  as_basename=basename
23060else
23061  as_basename=false
23062fi
23063
23064
23065# Name of the executable.
23066as_me=`$as_basename "$0" ||
23067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23068	 X"$0" : 'X\(//\)$' \| \
23069	 X"$0" : 'X\(/\)$' \| \
23070	 .     : '\(.\)' 2>/dev/null ||
23071echo X/"$0" |
23072    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23073  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23074  	  /^X\/\(\/\).*/{ s//\1/; q; }
23075  	  s/.*/./; q'`
23076
23077
23078# PATH needs CR, and LINENO needs CR and PATH.
23079# Avoid depending upon Character Ranges.
23080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23083as_cr_digits='0123456789'
23084as_cr_alnum=$as_cr_Letters$as_cr_digits
23085
23086# The user is always right.
23087if test "${PATH_SEPARATOR+set}" != set; then
23088  echo "#! /bin/sh" >conf$$.sh
23089  echo  "exit 0"   >>conf$$.sh
23090  chmod +x conf$$.sh
23091  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23092    PATH_SEPARATOR=';'
23093  else
23094    PATH_SEPARATOR=:
23095  fi
23096  rm -f conf$$.sh
23097fi
23098
23099
23100  as_lineno_1=$LINENO
23101  as_lineno_2=$LINENO
23102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23103  test "x$as_lineno_1" != "x$as_lineno_2" &&
23104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23105  # Find who we are.  Look in the path if we contain no path at all
23106  # relative or not.
23107  case $0 in
23108    *[\\/]* ) as_myself=$0 ;;
23109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23110for as_dir in $PATH
23111do
23112  IFS=$as_save_IFS
23113  test -z "$as_dir" && as_dir=.
23114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23115done
23116
23117       ;;
23118  esac
23119  # We did not find ourselves, most probably we were run as `sh COMMAND'
23120  # in which case we are not to be found in the path.
23121  if test "x$as_myself" = x; then
23122    as_myself=$0
23123  fi
23124  if test ! -f "$as_myself"; then
23125    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23126echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23127   { (exit 1); exit 1; }; }
23128  fi
23129  case $CONFIG_SHELL in
23130  '')
23131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23133do
23134  IFS=$as_save_IFS
23135  test -z "$as_dir" && as_dir=.
23136  for as_base in sh bash ksh sh5; do
23137	 case $as_dir in
23138	 /*)
23139	   if ("$as_dir/$as_base" -c '
23140  as_lineno_1=$LINENO
23141  as_lineno_2=$LINENO
23142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23143  test "x$as_lineno_1" != "x$as_lineno_2" &&
23144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23145	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23146	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23147	     CONFIG_SHELL=$as_dir/$as_base
23148	     export CONFIG_SHELL
23149	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23150	   fi;;
23151	 esac
23152       done
23153done
23154;;
23155  esac
23156
23157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23158  # uniformly replaced by the line number.  The first 'sed' inserts a
23159  # line-number line before each line; the second 'sed' does the real
23160  # work.  The second script uses 'N' to pair each line-number line
23161  # with the numbered line, and appends trailing '-' during
23162  # substitution so that $LINENO is not a special case at line end.
23163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23165  sed '=' <$as_myself |
23166    sed '
23167      N
23168      s,$,-,
23169      : loop
23170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23171      t loop
23172      s,-$,,
23173      s,^['$as_cr_digits']*\n,,
23174    ' >$as_me.lineno &&
23175  chmod +x $as_me.lineno ||
23176    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23177echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23178   { (exit 1); exit 1; }; }
23179
23180  # Don't try to exec as it changes $[0], causing all sort of problems
23181  # (the dirname of $[0] is not the place where we might find the
23182  # original and so on.  Autoconf is especially sensible to this).
23183  . ./$as_me.lineno
23184  # Exit status is that of the last command.
23185  exit
23186}
23187
23188
23189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23190  *c*,-n*) ECHO_N= ECHO_C='
23191' ECHO_T='	' ;;
23192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23194esac
23195
23196if expr a : '\(a\)' >/dev/null 2>&1; then
23197  as_expr=expr
23198else
23199  as_expr=false
23200fi
23201
23202rm -f conf$$ conf$$.exe conf$$.file
23203echo >conf$$.file
23204if ln -s conf$$.file conf$$ 2>/dev/null; then
23205  # We could just check for DJGPP; but this test a) works b) is more generic
23206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23207  if test -f conf$$.exe; then
23208    # Don't use ln at all; we don't have any links
23209    as_ln_s='cp -p'
23210  else
23211    as_ln_s='ln -s'
23212  fi
23213elif ln conf$$.file conf$$ 2>/dev/null; then
23214  as_ln_s=ln
23215else
23216  as_ln_s='cp -p'
23217fi
23218rm -f conf$$ conf$$.exe conf$$.file
23219
23220if mkdir -p . 2>/dev/null; then
23221  as_mkdir_p=:
23222else
23223  test -d ./-p && rmdir ./-p
23224  as_mkdir_p=false
23225fi
23226
23227as_executable_p="test -f"
23228
23229# Sed expression to map a string onto a valid CPP name.
23230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23231
23232# Sed expression to map a string onto a valid variable name.
23233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23234
23235
23236# IFS
23237# We need space, tab and new line, in precisely that order.
23238as_nl='
23239'
23240IFS=" 	$as_nl"
23241
23242# CDPATH.
23243$as_unset CDPATH
23244
23245exec 6>&1
23246
23247# Open the log real soon, to keep \$[0] and so on meaningful, and to
23248# report actual input values of CONFIG_FILES etc. instead of their
23249# values after options handling.  Logging --version etc. is OK.
23250exec 5>>config.log
23251{
23252  echo
23253  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23254## Running $as_me. ##
23255_ASBOX
23256} >&5
23257cat >&5 <<_CSEOF
23258
23259This file was extended by libltdl $as_me 1.2, which was
23260generated by GNU Autoconf 2.59.  Invocation command line was
23261
23262  CONFIG_FILES    = $CONFIG_FILES
23263  CONFIG_HEADERS  = $CONFIG_HEADERS
23264  CONFIG_LINKS    = $CONFIG_LINKS
23265  CONFIG_COMMANDS = $CONFIG_COMMANDS
23266  $ $0 $@
23267
23268_CSEOF
23269echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23270echo >&5
23271_ACEOF
23272
23273# Files that config.status was made for.
23274if test -n "$ac_config_files"; then
23275  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23276fi
23277
23278if test -n "$ac_config_headers"; then
23279  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23280fi
23281
23282if test -n "$ac_config_links"; then
23283  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23284fi
23285
23286if test -n "$ac_config_commands"; then
23287  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23288fi
23289
23290cat >>$CONFIG_STATUS <<\_ACEOF
23291
23292ac_cs_usage="\
23293\`$as_me' instantiates files from templates according to the
23294current configuration.
23295
23296Usage: $0 [OPTIONS] [FILE]...
23297
23298  -h, --help       print this help, then exit
23299  -V, --version    print version number, then exit
23300  -q, --quiet      do not print progress messages
23301  -d, --debug      don't remove temporary files
23302      --recheck    update $as_me by reconfiguring in the same conditions
23303  --file=FILE[:TEMPLATE]
23304		   instantiate the configuration file FILE
23305  --header=FILE[:TEMPLATE]
23306		   instantiate the configuration header FILE
23307
23308Configuration files:
23309$config_files
23310
23311Configuration headers:
23312$config_headers
23313
23314Configuration commands:
23315$config_commands
23316
23317Report bugs to <bug-autoconf@gnu.org>."
23318_ACEOF
23319
23320cat >>$CONFIG_STATUS <<_ACEOF
23321ac_cs_version="\\
23322libltdl config.status 1.2
23323configured by $0, generated by GNU Autoconf 2.59,
23324  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23325
23326Copyright (C) 2003 Free Software Foundation, Inc.
23327This config.status script is free software; the Free Software Foundation
23328gives unlimited permission to copy, distribute and modify it."
23329srcdir=$srcdir
23330INSTALL="$INSTALL"
23331_ACEOF
23332
23333cat >>$CONFIG_STATUS <<\_ACEOF
23334# If no file are specified by the user, then we need to provide default
23335# value.  By we need to know if files were specified by the user.
23336ac_need_defaults=:
23337while test $# != 0
23338do
23339  case $1 in
23340  --*=*)
23341    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23342    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23343    ac_shift=:
23344    ;;
23345  -*)
23346    ac_option=$1
23347    ac_optarg=$2
23348    ac_shift=shift
23349    ;;
23350  *) # This is not an option, so the user has probably given explicit
23351     # arguments.
23352     ac_option=$1
23353     ac_need_defaults=false;;
23354  esac
23355
23356  case $ac_option in
23357  # Handling of the options.
23358_ACEOF
23359cat >>$CONFIG_STATUS <<\_ACEOF
23360  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23361    ac_cs_recheck=: ;;
23362  --version | --vers* | -V )
23363    echo "$ac_cs_version"; exit 0 ;;
23364  --he | --h)
23365    # Conflict between --help and --header
23366    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23367Try \`$0 --help' for more information." >&5
23368echo "$as_me: error: ambiguous option: $1
23369Try \`$0 --help' for more information." >&2;}
23370   { (exit 1); exit 1; }; };;
23371  --help | --hel | -h )
23372    echo "$ac_cs_usage"; exit 0 ;;
23373  --debug | --d* | -d )
23374    debug=: ;;
23375  --file | --fil | --fi | --f )
23376    $ac_shift
23377    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23378    ac_need_defaults=false;;
23379  --header | --heade | --head | --hea )
23380    $ac_shift
23381    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23382    ac_need_defaults=false;;
23383  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23384  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23385    ac_cs_silent=: ;;
23386
23387  # This is an error.
23388  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23389Try \`$0 --help' for more information." >&5
23390echo "$as_me: error: unrecognized option: $1
23391Try \`$0 --help' for more information." >&2;}
23392   { (exit 1); exit 1; }; } ;;
23393
23394  *) ac_config_targets="$ac_config_targets $1" ;;
23395
23396  esac
23397  shift
23398done
23399
23400ac_configure_extra_args=
23401
23402if $ac_cs_silent; then
23403  exec 6>/dev/null
23404  ac_configure_extra_args="$ac_configure_extra_args --silent"
23405fi
23406
23407_ACEOF
23408cat >>$CONFIG_STATUS <<_ACEOF
23409if \$ac_cs_recheck; then
23410  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23411  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23412fi
23413
23414_ACEOF
23415
23416cat >>$CONFIG_STATUS <<_ACEOF
23417#
23418# INIT-COMMANDS section.
23419#
23420
23421AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23422
23423_ACEOF
23424
23425
23426
23427cat >>$CONFIG_STATUS <<\_ACEOF
23428for ac_config_target in $ac_config_targets
23429do
23430  case "$ac_config_target" in
23431  # Handling of arguments.
23432  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23433  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23434  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23435  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23436echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23437   { (exit 1); exit 1; }; };;
23438  esac
23439done
23440
23441# If the user did not use the arguments to specify the items to instantiate,
23442# then the envvar interface is used.  Set only those that are not.
23443# We use the long form for the default assignment because of an extremely
23444# bizarre bug on SunOS 4.1.3.
23445if $ac_need_defaults; then
23446  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23447  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23448  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23449fi
23450
23451# Have a temporary directory for convenience.  Make it in the build tree
23452# simply because there is no reason to put it here, and in addition,
23453# creating and moving files from /tmp can sometimes cause problems.
23454# Create a temporary directory, and hook for its removal unless debugging.
23455$debug ||
23456{
23457  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23458  trap '{ (exit 1); exit 1; }' 1 2 13 15
23459}
23460
23461# Create a (secure) tmp directory for tmp files.
23462
23463{
23464  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23465  test -n "$tmp" && test -d "$tmp"
23466}  ||
23467{
23468  tmp=./confstat$$-$RANDOM
23469  (umask 077 && mkdir $tmp)
23470} ||
23471{
23472   echo "$me: cannot create a temporary directory in ." >&2
23473   { (exit 1); exit 1; }
23474}
23475
23476_ACEOF
23477
23478cat >>$CONFIG_STATUS <<_ACEOF
23479
23480#
23481# CONFIG_FILES section.
23482#
23483
23484# No need to generate the scripts if there are no CONFIG_FILES.
23485# This happens for instance when ./config.status config.h
23486if test -n "\$CONFIG_FILES"; then
23487  # Protect against being on the right side of a sed subst in config.status.
23488  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23489   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23490s,@SHELL@,$SHELL,;t t
23491s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23492s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23493s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23494s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23495s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23496s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23497s,@exec_prefix@,$exec_prefix,;t t
23498s,@prefix@,$prefix,;t t
23499s,@program_transform_name@,$program_transform_name,;t t
23500s,@bindir@,$bindir,;t t
23501s,@sbindir@,$sbindir,;t t
23502s,@libexecdir@,$libexecdir,;t t
23503s,@datadir@,$datadir,;t t
23504s,@sysconfdir@,$sysconfdir,;t t
23505s,@sharedstatedir@,$sharedstatedir,;t t
23506s,@localstatedir@,$localstatedir,;t t
23507s,@libdir@,$libdir,;t t
23508s,@includedir@,$includedir,;t t
23509s,@oldincludedir@,$oldincludedir,;t t
23510s,@infodir@,$infodir,;t t
23511s,@mandir@,$mandir,;t t
23512s,@build_alias@,$build_alias,;t t
23513s,@host_alias@,$host_alias,;t t
23514s,@target_alias@,$target_alias,;t t
23515s,@DEFS@,$DEFS,;t t
23516s,@ECHO_C@,$ECHO_C,;t t
23517s,@ECHO_N@,$ECHO_N,;t t
23518s,@ECHO_T@,$ECHO_T,;t t
23519s,@LIBS@,$LIBS,;t t
23520s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23521s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23522s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23523s,@CYGPATH_W@,$CYGPATH_W,;t t
23524s,@PACKAGE@,$PACKAGE,;t t
23525s,@VERSION@,$VERSION,;t t
23526s,@ACLOCAL@,$ACLOCAL,;t t
23527s,@AUTOCONF@,$AUTOCONF,;t t
23528s,@AUTOMAKE@,$AUTOMAKE,;t t
23529s,@AUTOHEADER@,$AUTOHEADER,;t t
23530s,@MAKEINFO@,$MAKEINFO,;t t
23531s,@install_sh@,$install_sh,;t t
23532s,@STRIP@,$STRIP,;t t
23533s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23534s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23535s,@mkdir_p@,$mkdir_p,;t t
23536s,@AWK@,$AWK,;t t
23537s,@SET_MAKE@,$SET_MAKE,;t t
23538s,@am__leading_dot@,$am__leading_dot,;t t
23539s,@AMTAR@,$AMTAR,;t t
23540s,@am__tar@,$am__tar,;t t
23541s,@am__untar@,$am__untar,;t t
23542s,@CC@,$CC,;t t
23543s,@CFLAGS@,$CFLAGS,;t t
23544s,@LDFLAGS@,$LDFLAGS,;t t
23545s,@CPPFLAGS@,$CPPFLAGS,;t t
23546s,@ac_ct_CC@,$ac_ct_CC,;t t
23547s,@EXEEXT@,$EXEEXT,;t t
23548s,@OBJEXT@,$OBJEXT,;t t
23549s,@DEPDIR@,$DEPDIR,;t t
23550s,@am__include@,$am__include,;t t
23551s,@am__quote@,$am__quote,;t t
23552s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23553s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23554s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23555s,@CCDEPMODE@,$CCDEPMODE,;t t
23556s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23557s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23558s,@build@,$build,;t t
23559s,@build_cpu@,$build_cpu,;t t
23560s,@build_vendor@,$build_vendor,;t t
23561s,@build_os@,$build_os,;t t
23562s,@host@,$host,;t t
23563s,@host_cpu@,$host_cpu,;t t
23564s,@host_vendor@,$host_vendor,;t t
23565s,@host_os@,$host_os,;t t
23566s,@EGREP@,$EGREP,;t t
23567s,@LN_S@,$LN_S,;t t
23568s,@ECHO@,$ECHO,;t t
23569s,@AR@,$AR,;t t
23570s,@ac_ct_AR@,$ac_ct_AR,;t t
23571s,@RANLIB@,$RANLIB,;t t
23572s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23573s,@DLLTOOL@,$DLLTOOL,;t t
23574s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23575s,@AS@,$AS,;t t
23576s,@ac_ct_AS@,$ac_ct_AS,;t t
23577s,@OBJDUMP@,$OBJDUMP,;t t
23578s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23579s,@CPP@,$CPP,;t t
23580s,@CXX@,$CXX,;t t
23581s,@CXXFLAGS@,$CXXFLAGS,;t t
23582s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23583s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23584s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23585s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23586s,@CXXCPP@,$CXXCPP,;t t
23587s,@F77@,$F77,;t t
23588s,@FFLAGS@,$FFLAGS,;t t
23589s,@ac_ct_F77@,$ac_ct_F77,;t t
23590s,@LIBTOOL@,$LIBTOOL,;t t
23591s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23592s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23593s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23594s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23595s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23596s,@LIBADD_DL@,$LIBADD_DL,;t t
23597s,@LIBOBJS@,$LIBOBJS,;t t
23598s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23599CEOF
23600
23601_ACEOF
23602
23603  cat >>$CONFIG_STATUS <<\_ACEOF
23604  # Split the substitutions into bite-sized pieces for seds with
23605  # small command number limits, like on Digital OSF/1 and HP-UX.
23606  ac_max_sed_lines=48
23607  ac_sed_frag=1 # Number of current file.
23608  ac_beg=1 # First line for current file.
23609  ac_end=$ac_max_sed_lines # Line after last line for current file.
23610  ac_more_lines=:
23611  ac_sed_cmds=
23612  while $ac_more_lines; do
23613    if test $ac_beg -gt 1; then
23614      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23615    else
23616      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23617    fi
23618    if test ! -s $tmp/subs.frag; then
23619      ac_more_lines=false
23620    else
23621      # The purpose of the label and of the branching condition is to
23622      # speed up the sed processing (if there are no `@' at all, there
23623      # is no need to browse any of the substitutions).
23624      # These are the two extra sed commands mentioned above.
23625      (echo ':t
23626  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23627      if test -z "$ac_sed_cmds"; then
23628	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23629      else
23630	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23631      fi
23632      ac_sed_frag=`expr $ac_sed_frag + 1`
23633      ac_beg=$ac_end
23634      ac_end=`expr $ac_end + $ac_max_sed_lines`
23635    fi
23636  done
23637  if test -z "$ac_sed_cmds"; then
23638    ac_sed_cmds=cat
23639  fi
23640fi # test -n "$CONFIG_FILES"
23641
23642_ACEOF
23643cat >>$CONFIG_STATUS <<\_ACEOF
23644for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23645  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23646  case $ac_file in
23647  - | *:- | *:-:* ) # input from stdin
23648	cat >$tmp/stdin
23649	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23650	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23651  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23652	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23653  * )   ac_file_in=$ac_file.in ;;
23654  esac
23655
23656  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23657  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23659	 X"$ac_file" : 'X\(//\)[^/]' \| \
23660	 X"$ac_file" : 'X\(//\)$' \| \
23661	 X"$ac_file" : 'X\(/\)' \| \
23662	 .     : '\(.\)' 2>/dev/null ||
23663echo X"$ac_file" |
23664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23665  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23666  	  /^X\(\/\/\)$/{ s//\1/; q; }
23667  	  /^X\(\/\).*/{ s//\1/; q; }
23668  	  s/.*/./; q'`
23669  { if $as_mkdir_p; then
23670    mkdir -p "$ac_dir"
23671  else
23672    as_dir="$ac_dir"
23673    as_dirs=
23674    while test ! -d "$as_dir"; do
23675      as_dirs="$as_dir $as_dirs"
23676      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23678	 X"$as_dir" : 'X\(//\)[^/]' \| \
23679	 X"$as_dir" : 'X\(//\)$' \| \
23680	 X"$as_dir" : 'X\(/\)' \| \
23681	 .     : '\(.\)' 2>/dev/null ||
23682echo X"$as_dir" |
23683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23684  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23685  	  /^X\(\/\/\)$/{ s//\1/; q; }
23686  	  /^X\(\/\).*/{ s//\1/; q; }
23687  	  s/.*/./; q'`
23688    done
23689    test ! -n "$as_dirs" || mkdir $as_dirs
23690  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23691echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23692   { (exit 1); exit 1; }; }; }
23693
23694  ac_builddir=.
23695
23696if test "$ac_dir" != .; then
23697  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23698  # A "../" for each directory in $ac_dir_suffix.
23699  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23700else
23701  ac_dir_suffix= ac_top_builddir=
23702fi
23703
23704case $srcdir in
23705  .)  # No --srcdir option.  We are building in place.
23706    ac_srcdir=.
23707    if test -z "$ac_top_builddir"; then
23708       ac_top_srcdir=.
23709    else
23710       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23711    fi ;;
23712  [\\/]* | ?:[\\/]* )  # Absolute path.
23713    ac_srcdir=$srcdir$ac_dir_suffix;
23714    ac_top_srcdir=$srcdir ;;
23715  *) # Relative path.
23716    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23717    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23718esac
23719
23720# Do not use `cd foo && pwd` to compute absolute paths, because
23721# the directories may not exist.
23722case `pwd` in
23723.) ac_abs_builddir="$ac_dir";;
23724*)
23725  case "$ac_dir" in
23726  .) ac_abs_builddir=`pwd`;;
23727  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23728  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23729  esac;;
23730esac
23731case $ac_abs_builddir in
23732.) ac_abs_top_builddir=${ac_top_builddir}.;;
23733*)
23734  case ${ac_top_builddir}. in
23735  .) ac_abs_top_builddir=$ac_abs_builddir;;
23736  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23737  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23738  esac;;
23739esac
23740case $ac_abs_builddir in
23741.) ac_abs_srcdir=$ac_srcdir;;
23742*)
23743  case $ac_srcdir in
23744  .) ac_abs_srcdir=$ac_abs_builddir;;
23745  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23746  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23747  esac;;
23748esac
23749case $ac_abs_builddir in
23750.) ac_abs_top_srcdir=$ac_top_srcdir;;
23751*)
23752  case $ac_top_srcdir in
23753  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23754  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23755  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23756  esac;;
23757esac
23758
23759
23760  case $INSTALL in
23761  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23762  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23763  esac
23764
23765  if test x"$ac_file" != x-; then
23766    { echo "$as_me:$LINENO: creating $ac_file" >&5
23767echo "$as_me: creating $ac_file" >&6;}
23768    rm -f "$ac_file"
23769  fi
23770  # Let's still pretend it is `configure' which instantiates (i.e., don't
23771  # use $as_me), people would be surprised to read:
23772  #    /* config.h.  Generated by config.status.  */
23773  if test x"$ac_file" = x-; then
23774    configure_input=
23775  else
23776    configure_input="$ac_file.  "
23777  fi
23778  configure_input=$configure_input"Generated from `echo $ac_file_in |
23779				     sed 's,.*/,,'` by configure."
23780
23781  # First look for the input files in the build tree, otherwise in the
23782  # src tree.
23783  ac_file_inputs=`IFS=:
23784    for f in $ac_file_in; do
23785      case $f in
23786      -) echo $tmp/stdin ;;
23787      [\\/$]*)
23788	 # Absolute (can't be DOS-style, as IFS=:)
23789	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23790echo "$as_me: error: cannot find input file: $f" >&2;}
23791   { (exit 1); exit 1; }; }
23792	 echo "$f";;
23793      *) # Relative
23794	 if test -f "$f"; then
23795	   # Build tree
23796	   echo "$f"
23797	 elif test -f "$srcdir/$f"; then
23798	   # Source tree
23799	   echo "$srcdir/$f"
23800	 else
23801	   # /dev/null tree
23802	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23803echo "$as_me: error: cannot find input file: $f" >&2;}
23804   { (exit 1); exit 1; }; }
23805	 fi;;
23806      esac
23807    done` || { (exit 1); exit 1; }
23808_ACEOF
23809cat >>$CONFIG_STATUS <<_ACEOF
23810  sed "$ac_vpsub
23811$extrasub
23812_ACEOF
23813cat >>$CONFIG_STATUS <<\_ACEOF
23814:t
23815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23816s,@configure_input@,$configure_input,;t t
23817s,@srcdir@,$ac_srcdir,;t t
23818s,@abs_srcdir@,$ac_abs_srcdir,;t t
23819s,@top_srcdir@,$ac_top_srcdir,;t t
23820s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23821s,@builddir@,$ac_builddir,;t t
23822s,@abs_builddir@,$ac_abs_builddir,;t t
23823s,@top_builddir@,$ac_top_builddir,;t t
23824s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23825s,@INSTALL@,$ac_INSTALL,;t t
23826" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23827  rm -f $tmp/stdin
23828  if test x"$ac_file" != x-; then
23829    mv $tmp/out $ac_file
23830  else
23831    cat $tmp/out
23832    rm -f $tmp/out
23833  fi
23834
23835done
23836_ACEOF
23837cat >>$CONFIG_STATUS <<\_ACEOF
23838
23839#
23840# CONFIG_HEADER section.
23841#
23842
23843# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23844# NAME is the cpp macro being defined and VALUE is the value it is being given.
23845#
23846# ac_d sets the value in "#define NAME VALUE" lines.
23847ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23848ac_dB='[	 ].*$,\1#\2'
23849ac_dC=' '
23850ac_dD=',;t'
23851# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23852ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23853ac_uB='$,\1#\2define\3'
23854ac_uC=' '
23855ac_uD=',;t'
23856
23857for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23858  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23859  case $ac_file in
23860  - | *:- | *:-:* ) # input from stdin
23861	cat >$tmp/stdin
23862	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23863	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23864  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23865	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23866  * )   ac_file_in=$ac_file.in ;;
23867  esac
23868
23869  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23870echo "$as_me: creating $ac_file" >&6;}
23871
23872  # First look for the input files in the build tree, otherwise in the
23873  # src tree.
23874  ac_file_inputs=`IFS=:
23875    for f in $ac_file_in; do
23876      case $f in
23877      -) echo $tmp/stdin ;;
23878      [\\/$]*)
23879	 # Absolute (can't be DOS-style, as IFS=:)
23880	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23881echo "$as_me: error: cannot find input file: $f" >&2;}
23882   { (exit 1); exit 1; }; }
23883	 # Do quote $f, to prevent DOS paths from being IFS'd.
23884	 echo "$f";;
23885      *) # Relative
23886	 if test -f "$f"; then
23887	   # Build tree
23888	   echo "$f"
23889	 elif test -f "$srcdir/$f"; then
23890	   # Source tree
23891	   echo "$srcdir/$f"
23892	 else
23893	   # /dev/null tree
23894	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23895echo "$as_me: error: cannot find input file: $f" >&2;}
23896   { (exit 1); exit 1; }; }
23897	 fi;;
23898      esac
23899    done` || { (exit 1); exit 1; }
23900  # Remove the trailing spaces.
23901  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23902
23903_ACEOF
23904
23905# Transform confdefs.h into two sed scripts, `conftest.defines' and
23906# `conftest.undefs', that substitutes the proper values into
23907# config.h.in to produce config.h.  The first handles `#define'
23908# templates, and the second `#undef' templates.
23909# And first: Protect against being on the right side of a sed subst in
23910# config.status.  Protect against being in an unquoted here document
23911# in config.status.
23912rm -f conftest.defines conftest.undefs
23913# Using a here document instead of a string reduces the quoting nightmare.
23914# Putting comments in sed scripts is not portable.
23915#
23916# `end' is used to avoid that the second main sed command (meant for
23917# 0-ary CPP macros) applies to n-ary macro definitions.
23918# See the Autoconf documentation for `clear'.
23919cat >confdef2sed.sed <<\_ACEOF
23920s/[\\&,]/\\&/g
23921s,[\\$`],\\&,g
23922t clear
23923: clear
23924s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23925t end
23926s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23927: end
23928_ACEOF
23929# If some macros were called several times there might be several times
23930# the same #defines, which is useless.  Nevertheless, we may not want to
23931# sort them, since we want the *last* AC-DEFINE to be honored.
23932uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23933sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23934rm -f confdef2sed.sed
23935
23936# This sed command replaces #undef with comments.  This is necessary, for
23937# example, in the case of _POSIX_SOURCE, which is predefined and required
23938# on some systems where configure will not decide to define it.
23939cat >>conftest.undefs <<\_ACEOF
23940s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23941_ACEOF
23942
23943# Break up conftest.defines because some shells have a limit on the size
23944# of here documents, and old seds have small limits too (100 cmds).
23945echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23946echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23947echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23948echo '  :' >>$CONFIG_STATUS
23949rm -f conftest.tail
23950while grep . conftest.defines >/dev/null
23951do
23952  # Write a limited-size here document to $tmp/defines.sed.
23953  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23954  # Speed up: don't consider the non `#define' lines.
23955  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23956  # Work around the forget-to-reset-the-flag bug.
23957  echo 't clr' >>$CONFIG_STATUS
23958  echo ': clr' >>$CONFIG_STATUS
23959  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23960  echo 'CEOF
23961  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23962  rm -f $tmp/in
23963  mv $tmp/out $tmp/in
23964' >>$CONFIG_STATUS
23965  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23966  rm -f conftest.defines
23967  mv conftest.tail conftest.defines
23968done
23969rm -f conftest.defines
23970echo '  fi # grep' >>$CONFIG_STATUS
23971echo >>$CONFIG_STATUS
23972
23973# Break up conftest.undefs because some shells have a limit on the size
23974# of here documents, and old seds have small limits too (100 cmds).
23975echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23976rm -f conftest.tail
23977while grep . conftest.undefs >/dev/null
23978do
23979  # Write a limited-size here document to $tmp/undefs.sed.
23980  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23981  # Speed up: don't consider the non `#undef'
23982  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23983  # Work around the forget-to-reset-the-flag bug.
23984  echo 't clr' >>$CONFIG_STATUS
23985  echo ': clr' >>$CONFIG_STATUS
23986  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23987  echo 'CEOF
23988  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23989  rm -f $tmp/in
23990  mv $tmp/out $tmp/in
23991' >>$CONFIG_STATUS
23992  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23993  rm -f conftest.undefs
23994  mv conftest.tail conftest.undefs
23995done
23996rm -f conftest.undefs
23997
23998cat >>$CONFIG_STATUS <<\_ACEOF
23999  # Let's still pretend it is `configure' which instantiates (i.e., don't
24000  # use $as_me), people would be surprised to read:
24001  #    /* config.h.  Generated by config.status.  */
24002  if test x"$ac_file" = x-; then
24003    echo "/* Generated by configure.  */" >$tmp/config.h
24004  else
24005    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24006  fi
24007  cat $tmp/in >>$tmp/config.h
24008  rm -f $tmp/in
24009  if test x"$ac_file" != x-; then
24010    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24011      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24012echo "$as_me: $ac_file is unchanged" >&6;}
24013    else
24014      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24016	 X"$ac_file" : 'X\(//\)[^/]' \| \
24017	 X"$ac_file" : 'X\(//\)$' \| \
24018	 X"$ac_file" : 'X\(/\)' \| \
24019	 .     : '\(.\)' 2>/dev/null ||
24020echo X"$ac_file" |
24021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24022  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24023  	  /^X\(\/\/\)$/{ s//\1/; q; }
24024  	  /^X\(\/\).*/{ s//\1/; q; }
24025  	  s/.*/./; q'`
24026      { if $as_mkdir_p; then
24027    mkdir -p "$ac_dir"
24028  else
24029    as_dir="$ac_dir"
24030    as_dirs=
24031    while test ! -d "$as_dir"; do
24032      as_dirs="$as_dir $as_dirs"
24033      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24035	 X"$as_dir" : 'X\(//\)[^/]' \| \
24036	 X"$as_dir" : 'X\(//\)$' \| \
24037	 X"$as_dir" : 'X\(/\)' \| \
24038	 .     : '\(.\)' 2>/dev/null ||
24039echo X"$as_dir" |
24040    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24041  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24042  	  /^X\(\/\/\)$/{ s//\1/; q; }
24043  	  /^X\(\/\).*/{ s//\1/; q; }
24044  	  s/.*/./; q'`
24045    done
24046    test ! -n "$as_dirs" || mkdir $as_dirs
24047  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24049   { (exit 1); exit 1; }; }; }
24050
24051      rm -f $ac_file
24052      mv $tmp/config.h $ac_file
24053    fi
24054  else
24055    cat $tmp/config.h
24056    rm -f $tmp/config.h
24057  fi
24058# Compute $ac_file's index in $config_headers.
24059_am_stamp_count=1
24060for _am_header in $config_headers :; do
24061  case $_am_header in
24062    $ac_file | $ac_file:* )
24063      break ;;
24064    * )
24065      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24066  esac
24067done
24068echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24069$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24070	 X$ac_file : 'X\(//\)[^/]' \| \
24071	 X$ac_file : 'X\(//\)$' \| \
24072	 X$ac_file : 'X\(/\)' \| \
24073	 .     : '\(.\)' 2>/dev/null ||
24074echo X$ac_file |
24075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24076  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24077  	  /^X\(\/\/\)$/{ s//\1/; q; }
24078  	  /^X\(\/\).*/{ s//\1/; q; }
24079  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24080done
24081_ACEOF
24082cat >>$CONFIG_STATUS <<\_ACEOF
24083
24084#
24085# CONFIG_COMMANDS section.
24086#
24087for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24088  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24089  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24090  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24091$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24092	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24093	 X"$ac_dest" : 'X\(//\)$' \| \
24094	 X"$ac_dest" : 'X\(/\)' \| \
24095	 .     : '\(.\)' 2>/dev/null ||
24096echo X"$ac_dest" |
24097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24098  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24099  	  /^X\(\/\/\)$/{ s//\1/; q; }
24100  	  /^X\(\/\).*/{ s//\1/; q; }
24101  	  s/.*/./; q'`
24102  { if $as_mkdir_p; then
24103    mkdir -p "$ac_dir"
24104  else
24105    as_dir="$ac_dir"
24106    as_dirs=
24107    while test ! -d "$as_dir"; do
24108      as_dirs="$as_dir $as_dirs"
24109      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24110$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24111	 X"$as_dir" : 'X\(//\)[^/]' \| \
24112	 X"$as_dir" : 'X\(//\)$' \| \
24113	 X"$as_dir" : 'X\(/\)' \| \
24114	 .     : '\(.\)' 2>/dev/null ||
24115echo X"$as_dir" |
24116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24117  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24118  	  /^X\(\/\/\)$/{ s//\1/; q; }
24119  	  /^X\(\/\).*/{ s//\1/; q; }
24120  	  s/.*/./; q'`
24121    done
24122    test ! -n "$as_dirs" || mkdir $as_dirs
24123  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24124echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24125   { (exit 1); exit 1; }; }; }
24126
24127  ac_builddir=.
24128
24129if test "$ac_dir" != .; then
24130  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24131  # A "../" for each directory in $ac_dir_suffix.
24132  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24133else
24134  ac_dir_suffix= ac_top_builddir=
24135fi
24136
24137case $srcdir in
24138  .)  # No --srcdir option.  We are building in place.
24139    ac_srcdir=.
24140    if test -z "$ac_top_builddir"; then
24141       ac_top_srcdir=.
24142    else
24143       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24144    fi ;;
24145  [\\/]* | ?:[\\/]* )  # Absolute path.
24146    ac_srcdir=$srcdir$ac_dir_suffix;
24147    ac_top_srcdir=$srcdir ;;
24148  *) # Relative path.
24149    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24150    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24151esac
24152
24153# Do not use `cd foo && pwd` to compute absolute paths, because
24154# the directories may not exist.
24155case `pwd` in
24156.) ac_abs_builddir="$ac_dir";;
24157*)
24158  case "$ac_dir" in
24159  .) ac_abs_builddir=`pwd`;;
24160  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24161  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24162  esac;;
24163esac
24164case $ac_abs_builddir in
24165.) ac_abs_top_builddir=${ac_top_builddir}.;;
24166*)
24167  case ${ac_top_builddir}. in
24168  .) ac_abs_top_builddir=$ac_abs_builddir;;
24169  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24170  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24171  esac;;
24172esac
24173case $ac_abs_builddir in
24174.) ac_abs_srcdir=$ac_srcdir;;
24175*)
24176  case $ac_srcdir in
24177  .) ac_abs_srcdir=$ac_abs_builddir;;
24178  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24179  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24180  esac;;
24181esac
24182case $ac_abs_builddir in
24183.) ac_abs_top_srcdir=$ac_top_srcdir;;
24184*)
24185  case $ac_top_srcdir in
24186  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24187  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24188  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24189  esac;;
24190esac
24191
24192
24193  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24194echo "$as_me: executing $ac_dest commands" >&6;}
24195  case $ac_dest in
24196    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24197  # Strip MF so we end up with the name of the file.
24198  mf=`echo "$mf" | sed -e 's/:.*$//'`
24199  # Check whether this is an Automake generated Makefile or not.
24200  # We used to match only the files named `Makefile.in', but
24201  # some people rename them; so instead we look at the file content.
24202  # Grep'ing the first line is not enough: some people post-process
24203  # each Makefile.in and add a new line on top of each file to say so.
24204  # So let's grep whole file.
24205  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24206    dirpart=`(dirname "$mf") 2>/dev/null ||
24207$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24208	 X"$mf" : 'X\(//\)[^/]' \| \
24209	 X"$mf" : 'X\(//\)$' \| \
24210	 X"$mf" : 'X\(/\)' \| \
24211	 .     : '\(.\)' 2>/dev/null ||
24212echo X"$mf" |
24213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24214  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24215  	  /^X\(\/\/\)$/{ s//\1/; q; }
24216  	  /^X\(\/\).*/{ s//\1/; q; }
24217  	  s/.*/./; q'`
24218  else
24219    continue
24220  fi
24221  # Extract the definition of DEPDIR, am__include, and am__quote
24222  # from the Makefile without running `make'.
24223  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24224  test -z "$DEPDIR" && continue
24225  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24226  test -z "am__include" && continue
24227  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24228  # When using ansi2knr, U may be empty or an underscore; expand it
24229  U=`sed -n 's/^U = //p' < "$mf"`
24230  # Find all dependency output files, they are included files with
24231  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24232  # simplest approach to changing $(DEPDIR) to its actual value in the
24233  # expansion.
24234  for file in `sed -n "
24235    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24236       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24237    # Make sure the directory exists.
24238    test -f "$dirpart/$file" && continue
24239    fdir=`(dirname "$file") 2>/dev/null ||
24240$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24241	 X"$file" : 'X\(//\)[^/]' \| \
24242	 X"$file" : 'X\(//\)$' \| \
24243	 X"$file" : 'X\(/\)' \| \
24244	 .     : '\(.\)' 2>/dev/null ||
24245echo X"$file" |
24246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24247  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24248  	  /^X\(\/\/\)$/{ s//\1/; q; }
24249  	  /^X\(\/\).*/{ s//\1/; q; }
24250  	  s/.*/./; q'`
24251    { if $as_mkdir_p; then
24252    mkdir -p $dirpart/$fdir
24253  else
24254    as_dir=$dirpart/$fdir
24255    as_dirs=
24256    while test ! -d "$as_dir"; do
24257      as_dirs="$as_dir $as_dirs"
24258      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24260	 X"$as_dir" : 'X\(//\)[^/]' \| \
24261	 X"$as_dir" : 'X\(//\)$' \| \
24262	 X"$as_dir" : 'X\(/\)' \| \
24263	 .     : '\(.\)' 2>/dev/null ||
24264echo X"$as_dir" |
24265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24266  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24267  	  /^X\(\/\/\)$/{ s//\1/; q; }
24268  	  /^X\(\/\).*/{ s//\1/; q; }
24269  	  s/.*/./; q'`
24270    done
24271    test ! -n "$as_dirs" || mkdir $as_dirs
24272  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24273echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24274   { (exit 1); exit 1; }; }; }
24275
24276    # echo "creating $dirpart/$file"
24277    echo '# dummy' > "$dirpart/$file"
24278  done
24279done
24280 ;;
24281  esac
24282done
24283_ACEOF
24284
24285cat >>$CONFIG_STATUS <<\_ACEOF
24286
24287{ (exit 0); exit 0; }
24288_ACEOF
24289chmod +x $CONFIG_STATUS
24290ac_clean_files=$ac_clean_files_save
24291
24292
24293# configure is writing to config.log, and then calls config.status.
24294# config.status does its own redirection, appending to config.log.
24295# Unfortunately, on DOS this fails, as config.log is still kept open
24296# by configure, so config.status won't be able to write to it; its
24297# output is simply discarded.  So we exec the FD to /dev/null,
24298# effectively closing config.log, so it can be properly (re)opened and
24299# appended to by config.status.  When coming back to configure, we
24300# need to make the FD available again.
24301if test "$no_create" != yes; then
24302  ac_cs_success=:
24303  ac_config_status_args=
24304  test "$silent" = yes &&
24305    ac_config_status_args="$ac_config_status_args --quiet"
24306  exec 5>/dev/null
24307  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24308  exec 5>>config.log
24309  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24310  # would make configure fail if this is the last instruction.
24311  $ac_cs_success || { (exit 1); exit 1; }
24312fi
24313
24314