1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for proxychains 3.1.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME='proxychains'
423PACKAGE_TARNAME='proxychains'
424PACKAGE_VERSION='3.1'
425PACKAGE_STRING='proxychains 3.1'
426PACKAGE_BUGREPORT=''
427
428ac_default_prefix=/
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r "$srcdir/$ac_unique_file"; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r "$srcdir/$ac_unique_file"; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures proxychains 3.1 to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016  --target=TARGET   configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021  case $ac_init_help in
1022     short | recursive ) echo "Configuration of proxychains 3.1:";;
1023   esac
1024  cat <<\_ACEOF
1025
1026Optional Features:
1027  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029  --enable-shared[=PKGS]
1030                          build shared libraries [default=yes]
1031  --enable-static[=PKGS]
1032                          build static libraries [default=yes]
1033  --enable-fast-install[=PKGS]
1034                          optimize for fast installation [default=yes]
1035  --disable-libtool-lock  avoid locking (might break parallel builds)
1036
1037Optional Packages:
1038  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041  --with-pic              try to use only PIC/non-PIC objects [default=use
1042                          both]
1043  --with-tags[=TAGS]
1044                          include additional configurations [automatic]
1045
1046Some influential environment variables:
1047  CC          C compiler command
1048  CFLAGS      C compiler flags
1049  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050              nonstandard directory <lib dir>
1051  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052              headers in a nonstandard directory <include dir>
1053  CPP         C preprocessor
1054  CXX         C++ compiler command
1055  CXXFLAGS    C++ compiler flags
1056  CXXCPP      C++ preprocessor
1057  F77         Fortran 77 compiler command
1058  FFLAGS      Fortran 77 compiler flags
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067  # If there are subdirs, report their specific --help.
1068  ac_popdir=`pwd`
1069  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070    test -d $ac_dir || continue
1071    ac_builddir=.
1072
1073if test "$ac_dir" != .; then
1074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075  # A "../" for each directory in $ac_dir_suffix.
1076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078  ac_dir_suffix= ac_top_builddir=
1079fi
1080
1081case $srcdir in
1082  .)  # No --srcdir option.  We are building in place.
1083    ac_srcdir=.
1084    if test -z "$ac_top_builddir"; then
1085       ac_top_srcdir=.
1086    else
1087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088    fi ;;
1089  [\\/]* | ?:[\\/]* )  # Absolute path.
1090    ac_srcdir=$srcdir$ac_dir_suffix;
1091    ac_top_srcdir=$srcdir ;;
1092  *) # Relative path.
1093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102  case "$ac_dir" in
1103  .) ac_abs_builddir=`pwd`;;
1104  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106  esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111  case ${ac_top_builddir}. in
1112  .) ac_abs_top_builddir=$ac_abs_builddir;;
1113  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115  esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120  case $ac_srcdir in
1121  .) ac_abs_srcdir=$ac_abs_builddir;;
1122  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124  esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129  case $ac_top_srcdir in
1130  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133  esac;;
1134esac
1135
1136    cd $ac_dir
1137    # Check for guested configure; otherwise get Cygnus style configure.
1138    if test -f $ac_srcdir/configure.gnu; then
1139      echo
1140      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1141    elif test -f $ac_srcdir/configure; then
1142      echo
1143      $SHELL $ac_srcdir/configure  --help=recursive
1144    elif test -f $ac_srcdir/configure.ac ||
1145	   test -f $ac_srcdir/configure.in; then
1146      echo
1147      $ac_configure --help
1148    else
1149      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150    fi
1151    cd $ac_popdir
1152  done
1153fi
1154
1155test -n "$ac_init_help" && exit 0
1156if $ac_init_version; then
1157  cat <<\_ACEOF
1158proxychains configure 3.1
1159generated by GNU Autoconf 2.59
1160
1161Copyright (C) 2003 Free Software Foundation, Inc.
1162This configure script is free software; the Free Software Foundation
1163gives unlimited permission to copy, distribute and modify it.
1164_ACEOF
1165  exit 0
1166fi
1167exec 5>config.log
1168cat >&5 <<_ACEOF
1169This file contains any messages produced by compilers while
1170running configure, to aid debugging if configure makes a mistake.
1171
1172It was created by proxychains $as_me 3.1, which was
1173generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175  $ $0 $@
1176
1177_ACEOF
1178{
1179cat <<_ASUNAME
1180## --------- ##
1181## Platform. ##
1182## --------- ##
1183
1184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201_ASUNAME
1202
1203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204for as_dir in $PATH
1205do
1206  IFS=$as_save_IFS
1207  test -z "$as_dir" && as_dir=.
1208  echo "PATH: $as_dir"
1209done
1210
1211} >&5
1212
1213cat >&5 <<_ACEOF
1214
1215
1216## ----------- ##
1217## Core tests. ##
1218## ----------- ##
1219
1220_ACEOF
1221
1222
1223# Keep a trace of the command line.
1224# Strip out --no-create and --no-recursion so they do not pile up.
1225# Strip out --silent because we don't want to record it for future runs.
1226# Also quote any args containing shell meta-characters.
1227# Make two passes to allow for proper duplicate-argument suppression.
1228ac_configure_args=
1229ac_configure_args0=
1230ac_configure_args1=
1231ac_sep=
1232ac_must_keep_next=false
1233for ac_pass in 1 2
1234do
1235  for ac_arg
1236  do
1237    case $ac_arg in
1238    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240    | -silent | --silent | --silen | --sile | --sil)
1241      continue ;;
1242    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244    esac
1245    case $ac_pass in
1246    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247    2)
1248      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249      if test $ac_must_keep_next = true; then
1250	ac_must_keep_next=false # Got value, back to normal.
1251      else
1252	case $ac_arg in
1253	  *=* | --config-cache | -C | -disable-* | --disable-* \
1254	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256	  | -with-* | --with-* | -without-* | --without-* | --x)
1257	    case "$ac_configure_args0 " in
1258	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259	    esac
1260	    ;;
1261	  -* ) ac_must_keep_next=true ;;
1262	esac
1263      fi
1264      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265      # Get rid of the leading space.
1266      ac_sep=" "
1267      ;;
1268    esac
1269  done
1270done
1271$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274# When interrupted or exit'd, cleanup temporary files, and complete
1275# config.log.  We remove comments because anyway the quotes in there
1276# would cause problems or look ugly.
1277# WARNING: Be sure not to use single quotes in there, as some shells,
1278# such as our DU 5.0 friend, will then `close' the trap.
1279trap 'exit_status=$?
1280  # Save into config.log some information that might help in debugging.
1281  {
1282    echo
1283
1284    cat <<\_ASBOX
1285## ---------------- ##
1286## Cache variables. ##
1287## ---------------- ##
1288_ASBOX
1289    echo
1290    # The following way of writing the cache mishandles newlines in values,
1291{
1292  (set) 2>&1 |
1293    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294    *ac_space=\ *)
1295      sed -n \
1296	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298      ;;
1299    *)
1300      sed -n \
1301	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302      ;;
1303    esac;
1304}
1305    echo
1306
1307    cat <<\_ASBOX
1308## ----------------- ##
1309## Output variables. ##
1310## ----------------- ##
1311_ASBOX
1312    echo
1313    for ac_var in $ac_subst_vars
1314    do
1315      eval ac_val=$`echo $ac_var`
1316      echo "$ac_var='"'"'$ac_val'"'"'"
1317    done | sort
1318    echo
1319
1320    if test -n "$ac_subst_files"; then
1321      cat <<\_ASBOX
1322## ------------- ##
1323## Output files. ##
1324## ------------- ##
1325_ASBOX
1326      echo
1327      for ac_var in $ac_subst_files
1328      do
1329	eval ac_val=$`echo $ac_var`
1330	echo "$ac_var='"'"'$ac_val'"'"'"
1331      done | sort
1332      echo
1333    fi
1334
1335    if test -s confdefs.h; then
1336      cat <<\_ASBOX
1337## ----------- ##
1338## confdefs.h. ##
1339## ----------- ##
1340_ASBOX
1341      echo
1342      sed "/^$/d" confdefs.h | sort
1343      echo
1344    fi
1345    test "$ac_signal" != 0 &&
1346      echo "$as_me: caught signal $ac_signal"
1347    echo "$as_me: exit $exit_status"
1348  } >&5
1349  rm -f core *.core &&
1350  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351    exit $exit_status
1352     ' 0
1353for ac_signal in 1 2 13 15; do
1354  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355done
1356ac_signal=0
1357
1358# confdefs.h avoids OS command line length limits that DEFS can exceed.
1359rm -rf conftest* confdefs.h
1360# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361echo >confdefs.h
1362
1363# Predefined preprocessor variables.
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_NAME "$PACKAGE_NAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_VERSION "$PACKAGE_VERSION"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_STRING "$PACKAGE_STRING"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387_ACEOF
1388
1389
1390# Let the site file select an alternate cache file if it wants to.
1391# Prefer explicitly selected file to automatically selected ones.
1392if test -z "$CONFIG_SITE"; then
1393  if test "x$prefix" != xNONE; then
1394    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395  else
1396    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397  fi
1398fi
1399for ac_site_file in $CONFIG_SITE; do
1400  if test -r "$ac_site_file"; then
1401    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402echo "$as_me: loading site script $ac_site_file" >&6;}
1403    sed 's/^/| /' "$ac_site_file" >&5
1404    . "$ac_site_file"
1405  fi
1406done
1407
1408if test -r "$cache_file"; then
1409  # Some versions of bash will fail to source /dev/null (special
1410  # files actually), so we avoid doing that.
1411  if test -f "$cache_file"; then
1412    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413echo "$as_me: loading cache $cache_file" >&6;}
1414    case $cache_file in
1415      [\\/]* | ?:[\\/]* ) . $cache_file;;
1416      *)                      . ./$cache_file;;
1417    esac
1418  fi
1419else
1420  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421echo "$as_me: creating cache $cache_file" >&6;}
1422  >$cache_file
1423fi
1424
1425# Check that the precious variables saved in the cache have kept the same
1426# value.
1427ac_cache_corrupted=false
1428for ac_var in `(set) 2>&1 |
1429	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431  eval ac_new_set=\$ac_env_${ac_var}_set
1432  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433  eval ac_new_val="\$ac_env_${ac_var}_value"
1434  case $ac_old_set,$ac_new_set in
1435    set,)
1436      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438      ac_cache_corrupted=: ;;
1439    ,set)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,);;
1444    *)
1445      if test "x$ac_old_val" != "x$ac_new_val"; then
1446	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449echo "$as_me:   former value:  $ac_old_val" >&2;}
1450	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451echo "$as_me:   current value: $ac_new_val" >&2;}
1452	ac_cache_corrupted=:
1453      fi;;
1454  esac
1455  # Pass precious variables to config.status.
1456  if test "$ac_new_set" = set; then
1457    case $ac_new_val in
1458    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460    *) ac_arg=$ac_var=$ac_new_val ;;
1461    esac
1462    case " $ac_configure_args " in
1463      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465    esac
1466  fi
1467done
1468if $ac_cache_corrupted; then
1469  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473   { (exit 1); exit 1; }; }
1474fi
1475
1476ac_ext=c
1477ac_cpp='$CPP $CPPFLAGS'
1478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510ac_aux_dir=
1511for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512  if test -f $ac_dir/install-sh; then
1513    ac_aux_dir=$ac_dir
1514    ac_install_sh="$ac_aux_dir/install-sh -c"
1515    break
1516  elif test -f $ac_dir/install.sh; then
1517    ac_aux_dir=$ac_dir
1518    ac_install_sh="$ac_aux_dir/install.sh -c"
1519    break
1520  elif test -f $ac_dir/shtool; then
1521    ac_aux_dir=$ac_dir
1522    ac_install_sh="$ac_aux_dir/shtool install -c"
1523    break
1524  fi
1525done
1526if test -z "$ac_aux_dir"; then
1527  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529   { (exit 1); exit 1; }; }
1530fi
1531ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534
1535# Make sure we can run config.sub.
1536$ac_config_sub sun4 >/dev/null 2>&1 ||
1537  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539   { (exit 1); exit 1; }; }
1540
1541echo "$as_me:$LINENO: checking build system type" >&5
1542echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543if test "${ac_cv_build+set}" = set; then
1544  echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546  ac_cv_build_alias=$build_alias
1547test -z "$ac_cv_build_alias" &&
1548  ac_cv_build_alias=`$ac_config_guess`
1549test -z "$ac_cv_build_alias" &&
1550  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552   { (exit 1); exit 1; }; }
1553ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556   { (exit 1); exit 1; }; }
1557
1558fi
1559echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560echo "${ECHO_T}$ac_cv_build" >&6
1561build=$ac_cv_build
1562build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567echo "$as_me:$LINENO: checking host system type" >&5
1568echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569if test "${ac_cv_host+set}" = set; then
1570  echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572  ac_cv_host_alias=$host_alias
1573test -z "$ac_cv_host_alias" &&
1574  ac_cv_host_alias=$ac_cv_build_alias
1575ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578   { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582echo "${ECHO_T}$ac_cv_host" >&6
1583host=$ac_cv_host
1584host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589echo "$as_me:$LINENO: checking target system type" >&5
1590echo $ECHO_N "checking target system type... $ECHO_C" >&6
1591if test "${ac_cv_target+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  ac_cv_target_alias=$target_alias
1595test "x$ac_cv_target_alias" = "x" &&
1596  ac_cv_target_alias=$ac_cv_host_alias
1597ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1598  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1600   { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1604echo "${ECHO_T}$ac_cv_target" >&6
1605target=$ac_cv_target
1606target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611# The aliases save the names the user supplied, while $host etc.
1612# will get canonicalized.
1613test -n "$target_alias" &&
1614  test "$program_prefix$program_suffix$program_transform_name" = \
1615    NONENONEs,x,x, &&
1616  program_prefix=${target_alias}-
1617
1618am__api_version="1.4"
1619# Find a good install program.  We prefer a C program (faster),
1620# so one script is as good as another.  But avoid the broken or
1621# incompatible versions:
1622# SysV /etc/install, /usr/sbin/install
1623# SunOS /usr/etc/install
1624# IRIX /sbin/install
1625# AIX /bin/install
1626# AmigaOS /C/install, which installs bootblocks on floppy discs
1627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630# OS/2's system install, which has a completely different semantic
1631# ./install, which can be erroneously created by make from ./install.sh.
1632echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634if test -z "$INSTALL"; then
1635if test "${ac_cv_path_install+set}" = set; then
1636  echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  # Account for people who put trailing slashes in PATH elements.
1644case $as_dir/ in
1645  ./ | .// | /cC/* | \
1646  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1648  /usr/ucb/* ) ;;
1649  *)
1650    # OSF1 and SCO ODT 3.0 have their own names for install.
1651    # Don't use installbsd from OSF since it installs stuff as root
1652    # by default.
1653    for ac_prog in ginstall scoinst install; do
1654      for ac_exec_ext in '' $ac_executable_extensions; do
1655	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656	  if test $ac_prog = install &&
1657	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658	    # AIX install.  It has an incompatible calling convention.
1659	    :
1660	  elif test $ac_prog = install &&
1661	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662	    # program-specific install script used by HP pwplus--don't use.
1663	    :
1664	  else
1665	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666	    break 3
1667	  fi
1668	fi
1669      done
1670    done
1671    ;;
1672esac
1673done
1674
1675
1676fi
1677  if test "${ac_cv_path_install+set}" = set; then
1678    INSTALL=$ac_cv_path_install
1679  else
1680    # As a last resort, use the slow shell script.  We don't cache a
1681    # path for INSTALL within a source directory, because that will
1682    # break other packages using the cache if that directory is
1683    # removed, or if the path is relative.
1684    INSTALL=$ac_install_sh
1685  fi
1686fi
1687echo "$as_me:$LINENO: result: $INSTALL" >&5
1688echo "${ECHO_T}$INSTALL" >&6
1689
1690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691# It thinks the first close brace ends the variable substitution.
1692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
1694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
1696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
1698echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700# Just in case
1701sleep 1
1702echo timestamp > conftestfile
1703# Do `set' in a subshell so we don't clobber the current shell's
1704# arguments.  Must try -L first in case configure is actually a
1705# symlink; some systems play weird games with the mod time of symlinks
1706# (eg FreeBSD returns the mod time of the symlink's containing
1707# directory).
1708if (
1709   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1710   if test "$*" = "X"; then
1711      # -L didn't work.
1712      set X `ls -t $srcdir/configure conftestfile`
1713   fi
1714   if test "$*" != "X $srcdir/configure conftestfile" \
1715      && test "$*" != "X conftestfile $srcdir/configure"; then
1716
1717      # If neither matched, then we have a broken ls.  This can happen
1718      # if, for instance, CONFIG_SHELL is bash and it inherits a
1719      # broken ls alias from the environment.  This has actually
1720      # happened.  Such a system could not be considered "sane".
1721      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1722alias in your environment" >&5
1723echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1724alias in your environment" >&2;}
1725   { (exit 1); exit 1; }; }
1726   fi
1727
1728   test "$2" = conftestfile
1729   )
1730then
1731   # Ok.
1732   :
1733else
1734   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1735Check your system clock" >&5
1736echo "$as_me: error: newly created file is older than distributed files!
1737Check your system clock" >&2;}
1738   { (exit 1); exit 1; }; }
1739fi
1740rm -f conftest*
1741echo "$as_me:$LINENO: result: yes" >&5
1742echo "${ECHO_T}yes" >&6
1743test "$program_prefix" != NONE &&
1744  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745# Use a double $ so make ignores it.
1746test "$program_suffix" != NONE &&
1747  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748# Double any \ or $.  echo might interpret backslashes.
1749# By default was `s,x,x', remove it if useless.
1750cat <<\_ACEOF >conftest.sed
1751s/[\\$]/&&/g;s/;s,x,x,$//
1752_ACEOF
1753program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754rm conftest.sed
1755
1756echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1757echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1758set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1759if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1760  echo $ECHO_N "(cached) $ECHO_C" >&6
1761else
1762  cat >conftest.make <<\_ACEOF
1763all:
1764	@echo 'ac_maketemp="$(MAKE)"'
1765_ACEOF
1766# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1767eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1768if test -n "$ac_maketemp"; then
1769  eval ac_cv_prog_make_${ac_make}_set=yes
1770else
1771  eval ac_cv_prog_make_${ac_make}_set=no
1772fi
1773rm -f conftest.make
1774fi
1775if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1776  echo "$as_me:$LINENO: result: yes" >&5
1777echo "${ECHO_T}yes" >&6
1778  SET_MAKE=
1779else
1780  echo "$as_me:$LINENO: result: no" >&5
1781echo "${ECHO_T}no" >&6
1782  SET_MAKE="MAKE=${MAKE-make}"
1783fi
1784
1785
1786PACKAGE=
1787
1788VERSION=
1789
1790if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1791  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1792echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1793   { (exit 1); exit 1; }; }
1794fi
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE "$PACKAGE"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define VERSION "$VERSION"
1803_ACEOF
1804
1805
1806
1807missing_dir=`cd $ac_aux_dir && pwd`
1808echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1809echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1810# Run test in a subshell; some versions of sh will print an error if
1811# an executable is not found, even if stderr is redirected.
1812# Redirect stdin to placate older versions of autoconf.  Sigh.
1813if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1814   ACLOCAL=aclocal-${am__api_version}
1815   echo "$as_me:$LINENO: result: found" >&5
1816echo "${ECHO_T}found" >&6
1817else
1818   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1819   echo "$as_me:$LINENO: result: missing" >&5
1820echo "${ECHO_T}missing" >&6
1821fi
1822
1823echo "$as_me:$LINENO: checking for working autoconf" >&5
1824echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1825# Run test in a subshell; some versions of sh will print an error if
1826# an executable is not found, even if stderr is redirected.
1827# Redirect stdin to placate older versions of autoconf.  Sigh.
1828if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1829   AUTOCONF=autoconf
1830   echo "$as_me:$LINENO: result: found" >&5
1831echo "${ECHO_T}found" >&6
1832else
1833   AUTOCONF="$missing_dir/missing autoconf"
1834   echo "$as_me:$LINENO: result: missing" >&5
1835echo "${ECHO_T}missing" >&6
1836fi
1837
1838echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1839echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1840# Run test in a subshell; some versions of sh will print an error if
1841# an executable is not found, even if stderr is redirected.
1842# Redirect stdin to placate older versions of autoconf.  Sigh.
1843if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1844   AUTOMAKE=automake-${am__api_version}
1845   echo "$as_me:$LINENO: result: found" >&5
1846echo "${ECHO_T}found" >&6
1847else
1848   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1849   echo "$as_me:$LINENO: result: missing" >&5
1850echo "${ECHO_T}missing" >&6
1851fi
1852
1853echo "$as_me:$LINENO: checking for working autoheader" >&5
1854echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1855# Run test in a subshell; some versions of sh will print an error if
1856# an executable is not found, even if stderr is redirected.
1857# Redirect stdin to placate older versions of autoconf.  Sigh.
1858if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1859   AUTOHEADER=autoheader
1860   echo "$as_me:$LINENO: result: found" >&5
1861echo "${ECHO_T}found" >&6
1862else
1863   AUTOHEADER="$missing_dir/missing autoheader"
1864   echo "$as_me:$LINENO: result: missing" >&5
1865echo "${ECHO_T}missing" >&6
1866fi
1867
1868echo "$as_me:$LINENO: checking for working makeinfo" >&5
1869echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1870# Run test in a subshell; some versions of sh will print an error if
1871# an executable is not found, even if stderr is redirected.
1872# Redirect stdin to placate older versions of autoconf.  Sigh.
1873if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1874   MAKEINFO=makeinfo
1875   echo "$as_me:$LINENO: result: found" >&5
1876echo "${ECHO_T}found" >&6
1877else
1878   MAKEINFO="$missing_dir/missing makeinfo"
1879   echo "$as_me:$LINENO: result: missing" >&5
1880echo "${ECHO_T}missing" >&6
1881fi
1882
1883
1884
1885
1886
1887
1888          ac_config_headers="$ac_config_headers config.h"
1889
1890          ac_config_commands="$ac_config_commands default-1"
1891
1892
1893ac_ext=c
1894ac_cpp='$CPP $CPPFLAGS'
1895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898if test -n "$ac_tool_prefix"; then
1899  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1900set dummy ${ac_tool_prefix}gcc; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_CC+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$CC"; then
1907  ac_cv_prog_CC="$CC" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923fi
1924fi
1925CC=$ac_cv_prog_CC
1926if test -n "$CC"; then
1927  echo "$as_me:$LINENO: result: $CC" >&5
1928echo "${ECHO_T}$CC" >&6
1929else
1930  echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934fi
1935if test -z "$ac_cv_prog_CC"; then
1936  ac_ct_CC=$CC
1937  # Extract the first word of "gcc", so it can be a program name with args.
1938set dummy gcc; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test -n "$ac_ct_CC"; then
1945  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946else
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954    ac_cv_prog_ac_ct_CC="gcc"
1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956    break 2
1957  fi
1958done
1959done
1960
1961fi
1962fi
1963ac_ct_CC=$ac_cv_prog_ac_ct_CC
1964if test -n "$ac_ct_CC"; then
1965  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1966echo "${ECHO_T}$ac_ct_CC" >&6
1967else
1968  echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
1970fi
1971
1972  CC=$ac_ct_CC
1973else
1974  CC="$ac_cv_prog_CC"
1975fi
1976
1977if test -z "$CC"; then
1978  if test -n "$ac_tool_prefix"; then
1979  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1980set dummy ${ac_tool_prefix}cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_CC+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$CC"; then
1987  ac_cv_prog_CC="$CC" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  for ac_exec_ext in '' $ac_executable_extensions; do
1995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996    ac_cv_prog_CC="${ac_tool_prefix}cc"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007  echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014fi
2015if test -z "$ac_cv_prog_CC"; then
2016  ac_ct_CC=$CC
2017  # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$ac_ct_CC"; then
2025  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032  for ac_exec_ext in '' $ac_executable_extensions; do
2033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034    ac_cv_prog_ac_ct_CC="cc"
2035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036    break 2
2037  fi
2038done
2039done
2040
2041fi
2042fi
2043ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044if test -n "$ac_ct_CC"; then
2045  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046echo "${ECHO_T}$ac_ct_CC" >&6
2047else
2048  echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052  CC=$ac_ct_CC
2053else
2054  CC="$ac_cv_prog_CC"
2055fi
2056
2057fi
2058if test -z "$CC"; then
2059  # Extract the first word of "cc", so it can be a program name with args.
2060set dummy cc; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_CC+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  if test -n "$CC"; then
2067  ac_cv_prog_CC="$CC" # Let the user override the test.
2068else
2069  ac_prog_rejected=no
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073  IFS=$as_save_IFS
2074  test -z "$as_dir" && as_dir=.
2075  for ac_exec_ext in '' $ac_executable_extensions; do
2076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2078       ac_prog_rejected=yes
2079       continue
2080     fi
2081    ac_cv_prog_CC="cc"
2082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083    break 2
2084  fi
2085done
2086done
2087
2088if test $ac_prog_rejected = yes; then
2089  # We found a bogon in the path, so make sure we never use it.
2090  set dummy $ac_cv_prog_CC
2091  shift
2092  if test $# != 0; then
2093    # We chose a different compiler from the bogus one.
2094    # However, it has the same basename, so the bogon will be chosen
2095    # first if we set CC to just the basename; use the full file name.
2096    shift
2097    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2098  fi
2099fi
2100fi
2101fi
2102CC=$ac_cv_prog_CC
2103if test -n "$CC"; then
2104  echo "$as_me:$LINENO: result: $CC" >&5
2105echo "${ECHO_T}$CC" >&6
2106else
2107  echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6
2109fi
2110
2111fi
2112if test -z "$CC"; then
2113  if test -n "$ac_tool_prefix"; then
2114  for ac_prog in cl
2115  do
2116    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_CC+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$CC"; then
2124  ac_cv_prog_CC="$CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139
2140fi
2141fi
2142CC=$ac_cv_prog_CC
2143if test -n "$CC"; then
2144  echo "$as_me:$LINENO: result: $CC" >&5
2145echo "${ECHO_T}$CC" >&6
2146else
2147  echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151    test -n "$CC" && break
2152  done
2153fi
2154if test -z "$CC"; then
2155  ac_ct_CC=$CC
2156  for ac_prog in cl
2157do
2158  # Extract the first word of "$ac_prog", so it can be a program name with args.
2159set dummy $ac_prog; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163  echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165  if test -n "$ac_ct_CC"; then
2166  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173  for ac_exec_ext in '' $ac_executable_extensions; do
2174  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175    ac_cv_prog_ac_ct_CC="$ac_prog"
2176    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177    break 2
2178  fi
2179done
2180done
2181
2182fi
2183fi
2184ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185if test -n "$ac_ct_CC"; then
2186  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187echo "${ECHO_T}$ac_ct_CC" >&6
2188else
2189  echo "$as_me:$LINENO: result: no" >&5
2190echo "${ECHO_T}no" >&6
2191fi
2192
2193  test -n "$ac_ct_CC" && break
2194done
2195
2196  CC=$ac_ct_CC
2197fi
2198
2199fi
2200
2201
2202test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: no acceptable C compiler found in \$PATH
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207
2208# Provide some information about the compiler.
2209echo "$as_me:$LINENO:" \
2210     "checking for C compiler version" >&5
2211ac_compiler=`set X $ac_compile; echo $2`
2212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2213  (eval $ac_compiler --version </dev/null >&5) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2218  (eval $ac_compiler -v </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2223  (eval $ac_compiler -V </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227
2228cat >conftest.$ac_ext <<_ACEOF
2229/* confdefs.h.  */
2230_ACEOF
2231cat confdefs.h >>conftest.$ac_ext
2232cat >>conftest.$ac_ext <<_ACEOF
2233/* end confdefs.h.  */
2234
2235int
2236main ()
2237{
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243ac_clean_files_save=$ac_clean_files
2244ac_clean_files="$ac_clean_files a.out a.exe b.out"
2245# Try to create an executable without -o first, disregard a.out.
2246# It will help us diagnose broken compilers, and finding out an intuition
2247# of exeext.
2248echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2249echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2250ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2251if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2252  (eval $ac_link_default) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # Find the output, starting from the most likely.  This scheme is
2257# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258# resort.
2259
2260# Be careful to initialize this variable, since it used to be cached.
2261# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2262ac_cv_exeext=
2263# b.out is created by i960 compilers.
2264for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2265do
2266  test -f "$ac_file" || continue
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2269	;;
2270    conftest.$ac_ext )
2271	# This is the source file.
2272	;;
2273    [ab].out )
2274	# We found the default executable, but exeext='' is most
2275	# certainly right.
2276	break;;
2277    *.* )
2278	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279	# FIXME: I believe we export ac_cv_exeext for Libtool,
2280	# but it would be cool to find out if it's true.  Does anybody
2281	# maintain Libtool? --akim.
2282	export ac_cv_exeext
2283	break;;
2284    * )
2285	break;;
2286  esac
2287done
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: C compiler cannot create executables
2295See \`config.log' for more details." >&2;}
2296   { (exit 77); exit 77; }; }
2297fi
2298
2299ac_exeext=$ac_cv_exeext
2300echo "$as_me:$LINENO: result: $ac_file" >&5
2301echo "${ECHO_T}$ac_file" >&6
2302
2303# Check the compiler produces executables we can run.  If not, either
2304# the compiler is broken, or we cross compile.
2305echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2306echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2307# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2308# If not cross compiling, check that we can run a simple program.
2309if test "$cross_compiling" != yes; then
2310  if { ac_try='./$ac_file'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316    cross_compiling=no
2317  else
2318    if test "$cross_compiling" = maybe; then
2319	cross_compiling=yes
2320    else
2321	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot run C compiled programs.
2325If you meant to cross compile, use \`--host'.
2326See \`config.log' for more details." >&2;}
2327   { (exit 1); exit 1; }; }
2328    fi
2329  fi
2330fi
2331echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333
2334rm -f a.out a.exe conftest$ac_cv_exeext b.out
2335ac_clean_files=$ac_clean_files_save
2336# Check the compiler produces executables we can run.  If not, either
2337# the compiler is broken, or we cross compile.
2338echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2339echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2340echo "$as_me:$LINENO: result: $cross_compiling" >&5
2341echo "${ECHO_T}$cross_compiling" >&6
2342
2343echo "$as_me:$LINENO: checking for suffix of executables" >&5
2344echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346  (eval $ac_link) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2352# work properly (i.e., refer to `conftest.exe'), while it won't with
2353# `rm'.
2354for ac_file in conftest.exe conftest conftest.*; do
2355  test -f "$ac_file" || continue
2356  case $ac_file in
2357    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2358    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359	  export ac_cv_exeext
2360	  break;;
2361    * ) break;;
2362  esac
2363done
2364else
2365  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest$ac_cv_exeext
2373echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2374echo "${ECHO_T}$ac_cv_exeext" >&6
2375
2376rm -f conftest.$ac_ext
2377EXEEXT=$ac_cv_exeext
2378ac_exeext=$EXEEXT
2379echo "$as_me:$LINENO: checking for suffix of object files" >&5
2380echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2381if test "${ac_cv_objext+set}" = set; then
2382  echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384  cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h.  */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h.  */
2390
2391int
2392main ()
2393{
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.o conftest.obj
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; then
2405  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2408    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409       break;;
2410  esac
2411done
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of object files: cannot compile
2419See \`config.log' for more details." >&2;}
2420   { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest.$ac_cv_objext conftest.$ac_ext
2424fi
2425echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2426echo "${ECHO_T}$ac_cv_objext" >&6
2427OBJEXT=$ac_cv_objext
2428ac_objext=$OBJEXT
2429echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2430echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2431if test "${ac_cv_c_compiler_gnu+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444#ifndef __GNUC__
2445       choke me
2446#endif
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461	 { ac_try='test -z "$ac_c_werror_flag"
2462			 || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468	 { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_compiler_gnu=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_compiler_gnu=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482ac_cv_c_compiler_gnu=$ac_compiler_gnu
2483
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2486echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2487GCC=`test $ac_compiler_gnu = yes && echo yes`
2488ac_test_CFLAGS=${CFLAGS+set}
2489ac_save_CFLAGS=$CFLAGS
2490CFLAGS="-g"
2491echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2492echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2493if test "${ac_cv_prog_cc_g+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496  cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h.  */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h.  */
2502
2503int
2504main ()
2505{
2506
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520	 { ac_try='test -z "$ac_c_werror_flag"
2521			 || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527	 { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  ac_cv_prog_cc_g=yes
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538ac_cv_prog_cc_g=no
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541fi
2542echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2543echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2544if test "$ac_test_CFLAGS" = set; then
2545  CFLAGS=$ac_save_CFLAGS
2546elif test $ac_cv_prog_cc_g = yes; then
2547  if test "$GCC" = yes; then
2548    CFLAGS="-g -O2"
2549  else
2550    CFLAGS="-g"
2551  fi
2552else
2553  if test "$GCC" = yes; then
2554    CFLAGS="-O2"
2555  else
2556    CFLAGS=
2557  fi
2558fi
2559echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2560echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2561if test "${ac_cv_prog_cc_stdc+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  ac_cv_prog_cc_stdc=no
2565ac_save_CC=$CC
2566cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <stdarg.h>
2573#include <stdio.h>
2574#include <sys/types.h>
2575#include <sys/stat.h>
2576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2577struct buf { int x; };
2578FILE * (*rcsopen) (struct buf *, struct stat *, int);
2579static char *e (p, i)
2580     char **p;
2581     int i;
2582{
2583  return p[i];
2584}
2585static char *f (char * (*g) (char **, int), char **p, ...)
2586{
2587  char *s;
2588  va_list v;
2589  va_start (v,p);
2590  s = g (p, va_arg (v,int));
2591  va_end (v);
2592  return s;
2593}
2594
2595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2596   function prototypes and stuff, but not '\xHH' hex character constants.
2597   These don't provoke an error unfortunately, instead are silently treated
2598   as 'x'.  The following induces an error, until -std1 is added to get
2599   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2600   array size at least.  It's necessary to write '\x00'==0 to get something
2601   that's true only with -std1.  */
2602int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2603
2604int test (int i, double x);
2605struct s1 {int (*f) (int a);};
2606struct s2 {int (*f) (double a);};
2607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2608int argc;
2609char **argv;
2610int
2611main ()
2612{
2613return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2614  ;
2615  return 0;
2616}
2617_ACEOF
2618# Don't try gcc -ansi; that turns off useful extensions and
2619# breaks some systems' header files.
2620# AIX			-qlanglvl=ansi
2621# Ultrix and OSF/1	-std1
2622# HP-UX 10.20 and later	-Ae
2623# HP-UX older versions	-Aa -D_HPUX_SOURCE
2624# SVR4			-Xc -D__EXTENSIONS__
2625for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2626do
2627  CC="$ac_save_CC $ac_arg"
2628  rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637	 { ac_try='test -z "$ac_c_werror_flag"
2638			 || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644	 { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  ac_cv_prog_cc_stdc=$ac_arg
2651break
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656fi
2657rm -f conftest.err conftest.$ac_objext
2658done
2659rm -f conftest.$ac_ext conftest.$ac_objext
2660CC=$ac_save_CC
2661
2662fi
2663
2664case "x$ac_cv_prog_cc_stdc" in
2665  x|xno)
2666    echo "$as_me:$LINENO: result: none needed" >&5
2667echo "${ECHO_T}none needed" >&6 ;;
2668  *)
2669    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2670echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2671    CC="$CC $ac_cv_prog_cc_stdc" ;;
2672esac
2673
2674# Some people use a C++ compiler to compile C.  Since we use `exit',
2675# in C++ we need to declare it.  In case someone uses the same compiler
2676# for both compiling C and C++ we need to have the C++ compiler decide
2677# the declaration of exit, since it's the most demanding environment.
2678cat >conftest.$ac_ext <<_ACEOF
2679#ifndef __cplusplus
2680  choke me
2681#endif
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692	 { ac_try='test -z "$ac_c_werror_flag"
2693			 || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699	 { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  for ac_declaration in \
2706   '' \
2707   'extern "C" void std::exit (int) throw (); using std::exit;' \
2708   'extern "C" void std::exit (int); using std::exit;' \
2709   'extern "C" void exit (int) throw ();' \
2710   'extern "C" void exit (int);' \
2711   'void exit (int);'
2712do
2713  cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h.  */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h.  */
2719$ac_declaration
2720#include <stdlib.h>
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } &&
2738	 { ac_try='test -z "$ac_c_werror_flag"
2739			 || test ! -s conftest.err'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; } &&
2745	 { ac_try='test -s conftest.$ac_objext'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; }; then
2751  :
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756continue
2757fi
2758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759  cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h.  */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h.  */
2765$ac_declaration
2766int
2767main ()
2768{
2769exit (42);
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776  (eval $ac_compile) 2>conftest.er1
2777  ac_status=$?
2778  grep -v '^ *+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } &&
2783	 { ac_try='test -z "$ac_c_werror_flag"
2784			 || test ! -s conftest.err'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; } &&
2790	 { ac_try='test -s conftest.$ac_objext'
2791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792  (eval $ac_try) 2>&5
2793  ac_status=$?
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); }; }; then
2796  break
2797else
2798  echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803done
2804rm -f conftest*
2805if test -n "$ac_declaration"; then
2806  echo '#ifdef __cplusplus' >>confdefs.h
2807  echo $ac_declaration      >>confdefs.h
2808  echo '#endif'             >>confdefs.h
2809fi
2810
2811else
2812  echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823# Check whether --enable-shared or --disable-shared was given.
2824if test "${enable_shared+set}" = set; then
2825  enableval="$enable_shared"
2826  p=${PACKAGE-default}
2827    case $enableval in
2828    yes) enable_shared=yes ;;
2829    no) enable_shared=no ;;
2830    *)
2831      enable_shared=no
2832      # Look at the argument we got.  We use all the common list separators.
2833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2834      for pkg in $enableval; do
2835	IFS="$lt_save_ifs"
2836	if test "X$pkg" = "X$p"; then
2837	  enable_shared=yes
2838	fi
2839      done
2840      IFS="$lt_save_ifs"
2841      ;;
2842    esac
2843else
2844  enable_shared=yes
2845fi;
2846
2847# Check whether --enable-static or --disable-static was given.
2848if test "${enable_static+set}" = set; then
2849  enableval="$enable_static"
2850  p=${PACKAGE-default}
2851    case $enableval in
2852    yes) enable_static=yes ;;
2853    no) enable_static=no ;;
2854    *)
2855     enable_static=no
2856      # Look at the argument we got.  We use all the common list separators.
2857      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2858      for pkg in $enableval; do
2859	IFS="$lt_save_ifs"
2860	if test "X$pkg" = "X$p"; then
2861	  enable_static=yes
2862	fi
2863      done
2864      IFS="$lt_save_ifs"
2865      ;;
2866    esac
2867else
2868  enable_static=yes
2869fi;
2870
2871# Check whether --enable-fast-install or --disable-fast-install was given.
2872if test "${enable_fast_install+set}" = set; then
2873  enableval="$enable_fast_install"
2874  p=${PACKAGE-default}
2875    case $enableval in
2876    yes) enable_fast_install=yes ;;
2877    no) enable_fast_install=no ;;
2878    *)
2879      enable_fast_install=no
2880      # Look at the argument we got.  We use all the common list separators.
2881      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2882      for pkg in $enableval; do
2883	IFS="$lt_save_ifs"
2884	if test "X$pkg" = "X$p"; then
2885	  enable_fast_install=yes
2886	fi
2887      done
2888      IFS="$lt_save_ifs"
2889      ;;
2890    esac
2891else
2892  enable_fast_install=yes
2893fi;
2894
2895echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2896echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2897if test "${lt_cv_path_SED+set}" = set; then
2898  echo $ECHO_N "(cached) $ECHO_C" >&6
2899else
2900  # Loop through the user's path and test for sed and gsed.
2901# Then use that list of sed's as ones to test for truncation.
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907  for lt_ac_prog in sed gsed; do
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2910        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2911      fi
2912    done
2913  done
2914done
2915lt_ac_max=0
2916lt_ac_count=0
2917# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2918# along with /bin/sed that truncates output.
2919for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2920  test ! -f $lt_ac_sed && continue
2921  cat /dev/null > conftest.in
2922  lt_ac_count=0
2923  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2924  # Check for GNU sed and select it if it is found.
2925  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2926    lt_cv_path_SED=$lt_ac_sed
2927    break
2928  fi
2929  while true; do
2930    cat conftest.in conftest.in >conftest.tmp
2931    mv conftest.tmp conftest.in
2932    cp conftest.in conftest.nl
2933    echo >>conftest.nl
2934    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2935    cmp -s conftest.out conftest.nl || break
2936    # 10000 chars as input seems more than enough
2937    test $lt_ac_count -gt 10 && break
2938    lt_ac_count=`expr $lt_ac_count + 1`
2939    if test $lt_ac_count -gt $lt_ac_max; then
2940      lt_ac_max=$lt_ac_count
2941      lt_cv_path_SED=$lt_ac_sed
2942    fi
2943  done
2944done
2945
2946fi
2947
2948SED=$lt_cv_path_SED
2949echo "$as_me:$LINENO: result: $SED" >&5
2950echo "${ECHO_T}$SED" >&6
2951
2952echo "$as_me:$LINENO: checking for egrep" >&5
2953echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2954if test "${ac_cv_prog_egrep+set}" = set; then
2955  echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2958    then ac_cv_prog_egrep='grep -E'
2959    else ac_cv_prog_egrep='egrep'
2960    fi
2961fi
2962echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2963echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2964 EGREP=$ac_cv_prog_egrep
2965
2966
2967
2968# Check whether --with-gnu-ld or --without-gnu-ld was given.
2969if test "${with_gnu_ld+set}" = set; then
2970  withval="$with_gnu_ld"
2971  test "$withval" = no || with_gnu_ld=yes
2972else
2973  with_gnu_ld=no
2974fi;
2975ac_prog=ld
2976if test "$GCC" = yes; then
2977  # Check if gcc -print-prog-name=ld gives a path.
2978  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2979echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2980  case $host in
2981  *-*-mingw*)
2982    # gcc leaves a trailing carriage return which upsets mingw
2983    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2984  *)
2985    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2986  esac
2987  case $ac_prog in
2988    # Accept absolute paths.
2989    [\\/]* | ?:[\\/]*)
2990      re_direlt='/[^/][^/]*/\.\./'
2991      # Canonicalize the pathname of ld
2992      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2993      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2994	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2995      done
2996      test -z "$LD" && LD="$ac_prog"
2997      ;;
2998  "")
2999    # If it fails, then pretend we aren't using GCC.
3000    ac_prog=ld
3001    ;;
3002  *)
3003    # If it is relative, then search for the first ld in PATH.
3004    with_gnu_ld=unknown
3005    ;;
3006  esac
3007elif test "$with_gnu_ld" = yes; then
3008  echo "$as_me:$LINENO: checking for GNU ld" >&5
3009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3010else
3011  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3012echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3013fi
3014if test "${lt_cv_path_LD+set}" = set; then
3015  echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017  if test -z "$LD"; then
3018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3019  for ac_dir in $PATH; do
3020    IFS="$lt_save_ifs"
3021    test -z "$ac_dir" && ac_dir=.
3022    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3023      lt_cv_path_LD="$ac_dir/$ac_prog"
3024      # Check to see if the program is GNU ld.  I'd rather use --version,
3025      # but apparently some variants of GNU ld only accept -v.
3026      # Break only if it was the GNU/non-GNU ld that we prefer.
3027      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3028      *GNU* | *'with BFD'*)
3029	test "$with_gnu_ld" != no && break
3030	;;
3031      *)
3032	test "$with_gnu_ld" != yes && break
3033	;;
3034      esac
3035    fi
3036  done
3037  IFS="$lt_save_ifs"
3038else
3039  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3040fi
3041fi
3042
3043LD="$lt_cv_path_LD"
3044if test -n "$LD"; then
3045  echo "$as_me:$LINENO: result: $LD" >&5
3046echo "${ECHO_T}$LD" >&6
3047else
3048  echo "$as_me:$LINENO: result: no" >&5
3049echo "${ECHO_T}no" >&6
3050fi
3051test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3052echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3053   { (exit 1); exit 1; }; }
3054echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3055echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3056if test "${lt_cv_prog_gnu_ld+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3060case `$LD -v 2>&1 </dev/null` in
3061*GNU* | *'with BFD'*)
3062  lt_cv_prog_gnu_ld=yes
3063  ;;
3064*)
3065  lt_cv_prog_gnu_ld=no
3066  ;;
3067esac
3068fi
3069echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3070echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3071with_gnu_ld=$lt_cv_prog_gnu_ld
3072
3073
3074echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3075echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3076if test "${lt_cv_ld_reload_flag+set}" = set; then
3077  echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079  lt_cv_ld_reload_flag='-r'
3080fi
3081echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3082echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3083reload_flag=$lt_cv_ld_reload_flag
3084case $reload_flag in
3085"" | " "*) ;;
3086*) reload_flag=" $reload_flag" ;;
3087esac
3088reload_cmds='$LD$reload_flag -o $output$reload_objs'
3089case $host_os in
3090  darwin*)
3091    if test "$GCC" = yes; then
3092      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3093    else
3094      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3095    fi
3096    ;;
3097esac
3098
3099echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3100echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3101if test "${lt_cv_path_NM+set}" = set; then
3102  echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104  if test -n "$NM"; then
3105  # Let the user override the test.
3106  lt_cv_path_NM="$NM"
3107else
3108  lt_nm_to_check="${ac_tool_prefix}nm"
3109  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3110    lt_nm_to_check="$lt_nm_to_check nm"
3111  fi
3112  for lt_tmp_nm in $lt_nm_to_check; do
3113    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3114    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3115      IFS="$lt_save_ifs"
3116      test -z "$ac_dir" && ac_dir=.
3117      tmp_nm="$ac_dir/$lt_tmp_nm"
3118      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3119	# Check to see if the nm accepts a BSD-compat flag.
3120	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3121	#   nm: unknown option "B" ignored
3122	# Tru64's nm complains that /dev/null is an invalid object file
3123	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3124	*/dev/null* | *'Invalid file or object type'*)
3125	  lt_cv_path_NM="$tmp_nm -B"
3126	  break
3127	  ;;
3128	*)
3129	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3130	  */dev/null*)
3131	    lt_cv_path_NM="$tmp_nm -p"
3132	    break
3133	    ;;
3134	  *)
3135	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3136	    continue # so that we can try to find one that supports BSD flags
3137	    ;;
3138	  esac
3139	  ;;
3140	esac
3141      fi
3142    done
3143    IFS="$lt_save_ifs"
3144  done
3145  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3146fi
3147fi
3148echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3149echo "${ECHO_T}$lt_cv_path_NM" >&6
3150NM="$lt_cv_path_NM"
3151
3152echo "$as_me:$LINENO: checking whether ln -s works" >&5
3153echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3154LN_S=$as_ln_s
3155if test "$LN_S" = "ln -s"; then
3156  echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
3158else
3159  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3160echo "${ECHO_T}no, using $LN_S" >&6
3161fi
3162
3163echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3164echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3165if test "${lt_cv_deplibs_check_method+set}" = set; then
3166  echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
3168  lt_cv_file_magic_cmd='$MAGIC_CMD'
3169lt_cv_file_magic_test_file=
3170lt_cv_deplibs_check_method='unknown'
3171# Need to set the preceding variable on all platforms that support
3172# interlibrary dependencies.
3173# 'none' -- dependencies not supported.
3174# `unknown' -- same as none, but documents that we really don't know.
3175# 'pass_all' -- all dependencies passed with no checks.
3176# 'test_compile' -- check by making test program.
3177# 'file_magic [[regex]]' -- check by looking for files in library path
3178# which responds to the $file_magic_cmd with a given extended regex.
3179# If you have `file' or equivalent on your system and you're not sure
3180# whether `pass_all' will *always* work, you probably want this one.
3181
3182case $host_os in
3183aix4* | aix5*)
3184  lt_cv_deplibs_check_method=pass_all
3185  ;;
3186
3187beos*)
3188  lt_cv_deplibs_check_method=pass_all
3189  ;;
3190
3191bsdi[45]*)
3192  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3193  lt_cv_file_magic_cmd='/usr/bin/file -L'
3194  lt_cv_file_magic_test_file=/shlib/libc.so
3195  ;;
3196
3197cygwin*)
3198  # func_win32_libid is a shell function defined in ltmain.sh
3199  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3200  lt_cv_file_magic_cmd='func_win32_libid'
3201  ;;
3202
3203mingw* | pw32*)
3204  # Base MSYS/MinGW do not provide the 'file' command needed by
3205  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3206  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3207  lt_cv_file_magic_cmd='$OBJDUMP -f'
3208  ;;
3209
3210darwin* | rhapsody*)
3211  lt_cv_deplibs_check_method=pass_all
3212  ;;
3213
3214freebsd* | kfreebsd*-gnu | dragonfly*)
3215  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3216    case $host_cpu in
3217    i*86 )
3218      # Not sure whether the presence of OpenBSD here was a mistake.
3219      # Let's accept both of them until this is cleared up.
3220      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3221      lt_cv_file_magic_cmd=/usr/bin/file
3222      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3223      ;;
3224    esac
3225  else
3226    lt_cv_deplibs_check_method=pass_all
3227  fi
3228  ;;
3229
3230gnu*)
3231  lt_cv_deplibs_check_method=pass_all
3232  ;;
3233
3234hpux10.20* | hpux11*)
3235  lt_cv_file_magic_cmd=/usr/bin/file
3236  case $host_cpu in
3237  ia64*)
3238    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3239    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3240    ;;
3241  hppa*64*)
3242    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]'
3243    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3244    ;;
3245  *)
3246    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3247    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3248    ;;
3249  esac
3250  ;;
3251
3252interix3*)
3253  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3254  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3255  ;;
3256
3257irix5* | irix6* | nonstopux*)
3258  case $LD in
3259  *-32|*"-32 ") libmagic=32-bit;;
3260  *-n32|*"-n32 ") libmagic=N32;;
3261  *-64|*"-64 ") libmagic=64-bit;;
3262  *) libmagic=never-match;;
3263  esac
3264  lt_cv_deplibs_check_method=pass_all
3265  ;;
3266
3267# This must be Linux ELF.
3268linux*)
3269  lt_cv_deplibs_check_method=pass_all
3270  ;;
3271
3272netbsd*)
3273  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3274    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3275  else
3276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3277  fi
3278  ;;
3279
3280newos6*)
3281  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3282  lt_cv_file_magic_cmd=/usr/bin/file
3283  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3284  ;;
3285
3286nto-qnx*)
3287  lt_cv_deplibs_check_method=unknown
3288  ;;
3289
3290openbsd*)
3291  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3292    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3293  else
3294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3295  fi
3296  ;;
3297
3298osf3* | osf4* | osf5*)
3299  lt_cv_deplibs_check_method=pass_all
3300  ;;
3301
3302solaris*)
3303  lt_cv_deplibs_check_method=pass_all
3304  ;;
3305
3306sysv4 | sysv4.3*)
3307  case $host_vendor in
3308  motorola)
3309    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]'
3310    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3311    ;;
3312  ncr)
3313    lt_cv_deplibs_check_method=pass_all
3314    ;;
3315  sequent)
3316    lt_cv_file_magic_cmd='/bin/file'
3317    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3318    ;;
3319  sni)
3320    lt_cv_file_magic_cmd='/bin/file'
3321    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3322    lt_cv_file_magic_test_file=/lib/libc.so
3323    ;;
3324  siemens)
3325    lt_cv_deplibs_check_method=pass_all
3326    ;;
3327  pc)
3328    lt_cv_deplibs_check_method=pass_all
3329    ;;
3330  esac
3331  ;;
3332
3333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3334  lt_cv_deplibs_check_method=pass_all
3335  ;;
3336esac
3337
3338fi
3339echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3340echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3341file_magic_cmd=$lt_cv_file_magic_cmd
3342deplibs_check_method=$lt_cv_deplibs_check_method
3343test -z "$deplibs_check_method" && deplibs_check_method=unknown
3344
3345
3346
3347
3348# If no C compiler was specified, use CC.
3349LTCC=${LTCC-"$CC"}
3350
3351# If no C compiler flags were specified, use CFLAGS.
3352LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3353
3354# Allow CC to be a program name with arguments.
3355compiler=$CC
3356
3357
3358# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3359if test "${enable_libtool_lock+set}" = set; then
3360  enableval="$enable_libtool_lock"
3361
3362fi;
3363test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3364
3365# Some flags need to be propagated to the compiler or linker for good
3366# libtool support.
3367case $host in
3368ia64-*-hpux*)
3369  # Find out which ABI we are using.
3370  echo 'int i;' > conftest.$ac_ext
3371  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372  (eval $ac_compile) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; then
3376    case `/usr/bin/file conftest.$ac_objext` in
3377    *ELF-32*)
3378      HPUX_IA64_MODE="32"
3379      ;;
3380    *ELF-64*)
3381      HPUX_IA64_MODE="64"
3382      ;;
3383    esac
3384  fi
3385  rm -rf conftest*
3386  ;;
3387*-*-irix6*)
3388  # Find out which ABI we are using.
3389  echo '#line 3389 "configure"' > conftest.$ac_ext
3390  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391  (eval $ac_compile) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; then
3395   if test "$lt_cv_prog_gnu_ld" = yes; then
3396    case `/usr/bin/file conftest.$ac_objext` in
3397    *32-bit*)
3398      LD="${LD-ld} -melf32bsmip"
3399      ;;
3400    *N32*)
3401      LD="${LD-ld} -melf32bmipn32"
3402      ;;
3403    *64-bit*)
3404      LD="${LD-ld} -melf64bmip"
3405      ;;
3406    esac
3407   else
3408    case `/usr/bin/file conftest.$ac_objext` in
3409    *32-bit*)
3410      LD="${LD-ld} -32"
3411      ;;
3412    *N32*)
3413      LD="${LD-ld} -n32"
3414      ;;
3415    *64-bit*)
3416      LD="${LD-ld} -64"
3417      ;;
3418    esac
3419   fi
3420  fi
3421  rm -rf conftest*
3422  ;;
3423
3424x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3425  # Find out which ABI we are using.
3426  echo 'int i;' > conftest.$ac_ext
3427  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; then
3432    case `/usr/bin/file conftest.o` in
3433    *32-bit*)
3434      case $host in
3435        x86_64-*linux*)
3436          LD="${LD-ld} -m elf_i386"
3437          ;;
3438        ppc64-*linux*|powerpc64-*linux*)
3439          LD="${LD-ld} -m elf32ppclinux"
3440          ;;
3441        s390x-*linux*)
3442          LD="${LD-ld} -m elf_s390"
3443          ;;
3444        sparc64-*linux*)
3445          LD="${LD-ld} -m elf32_sparc"
3446          ;;
3447      esac
3448      ;;
3449    *64-bit*)
3450      case $host in
3451        x86_64-*linux*)
3452          LD="${LD-ld} -m elf_x86_64"
3453          ;;
3454        ppc*-*linux*|powerpc*-*linux*)
3455          LD="${LD-ld} -m elf64ppc"
3456          ;;
3457        s390*-*linux*)
3458          LD="${LD-ld} -m elf64_s390"
3459          ;;
3460        sparc*-*linux*)
3461          LD="${LD-ld} -m elf64_sparc"
3462          ;;
3463      esac
3464      ;;
3465    esac
3466  fi
3467  rm -rf conftest*
3468  ;;
3469
3470*-*-sco3.2v5*)
3471  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3472  SAVE_CFLAGS="$CFLAGS"
3473  CFLAGS="$CFLAGS -belf"
3474  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3475echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3476if test "${lt_cv_cc_needs_belf+set}" = set; then
3477  echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479  ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485     cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.$ac_objext conftest$ac_exeext
3501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502  (eval $ac_link) 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } &&
3509	 { ac_try='test -z "$ac_c_werror_flag"
3510			 || test ! -s conftest.err'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; } &&
3516	 { ac_try='test -s conftest$ac_exeext'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; }; then
3522  lt_cv_cc_needs_belf=yes
3523else
3524  echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527lt_cv_cc_needs_belf=no
3528fi
3529rm -f conftest.err conftest.$ac_objext \
3530      conftest$ac_exeext conftest.$ac_ext
3531     ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537fi
3538echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3539echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3540  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3541    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3542    CFLAGS="$SAVE_CFLAGS"
3543  fi
3544  ;;
3545sparc*-*solaris*)
3546  # Find out which ABI we are using.
3547  echo 'int i;' > conftest.$ac_ext
3548  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3549  (eval $ac_compile) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; then
3553    case `/usr/bin/file conftest.o` in
3554    *64-bit*)
3555      case $lt_cv_prog_gnu_ld in
3556      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3557      *)    LD="${LD-ld} -64" ;;
3558      esac
3559      ;;
3560    esac
3561  fi
3562  rm -rf conftest*
3563  ;;
3564
3565
3566esac
3567
3568need_locks="$enable_libtool_lock"
3569
3570
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3577echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3578# On Suns, sometimes $CPP names a directory.
3579if test -n "$CPP" && test -d "$CPP"; then
3580  CPP=
3581fi
3582if test -z "$CPP"; then
3583  if test "${ac_cv_prog_CPP+set}" = set; then
3584  echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586      # Double quotes because CPP needs to be expanded
3587    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588    do
3589      ac_preproc_ok=false
3590for ac_c_preproc_warn_flag in '' yes
3591do
3592  # Use a header file that comes with gcc, so configuring glibc
3593  # with a fresh cross-compiler works.
3594  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595  # <limits.h> exists even on freestanding compilers.
3596  # On the NeXT, cc -E runs the code through the compiler's parser,
3597  # not just through cpp. "Syntax error" is here to catch this case.
3598  cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h.  */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h.  */
3604#ifdef __STDC__
3605# include <limits.h>
3606#else
3607# include <assert.h>
3608#endif
3609		     Syntax error
3610_ACEOF
3611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3612  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3613  ac_status=$?
3614  grep -v '^ *+' conftest.er1 >conftest.err
3615  rm -f conftest.er1
3616  cat conftest.err >&5
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); } >/dev/null; then
3619  if test -s conftest.err; then
3620    ac_cpp_err=$ac_c_preproc_warn_flag
3621    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3622  else
3623    ac_cpp_err=
3624  fi
3625else
3626  ac_cpp_err=yes
3627fi
3628if test -z "$ac_cpp_err"; then
3629  :
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634  # Broken: fails on valid input.
3635continue
3636fi
3637rm -f conftest.err conftest.$ac_ext
3638
3639  # OK, works on sane cases.  Now check whether non-existent headers
3640  # can be detected and how.
3641  cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h.  */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h.  */
3647#include <ac_nonexistent.h>
3648_ACEOF
3649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3650  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3651  ac_status=$?
3652  grep -v '^ *+' conftest.er1 >conftest.err
3653  rm -f conftest.er1
3654  cat conftest.err >&5
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); } >/dev/null; then
3657  if test -s conftest.err; then
3658    ac_cpp_err=$ac_c_preproc_warn_flag
3659    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3660  else
3661    ac_cpp_err=
3662  fi
3663else
3664  ac_cpp_err=yes
3665fi
3666if test -z "$ac_cpp_err"; then
3667  # Broken: success on invalid input.
3668continue
3669else
3670  echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673  # Passes both tests.
3674ac_preproc_ok=:
3675break
3676fi
3677rm -f conftest.err conftest.$ac_ext
3678
3679done
3680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681rm -f conftest.err conftest.$ac_ext
3682if $ac_preproc_ok; then
3683  break
3684fi
3685
3686    done
3687    ac_cv_prog_CPP=$CPP
3688
3689fi
3690  CPP=$ac_cv_prog_CPP
3691else
3692  ac_cv_prog_CPP=$CPP
3693fi
3694echo "$as_me:$LINENO: result: $CPP" >&5
3695echo "${ECHO_T}$CPP" >&6
3696ac_preproc_ok=false
3697for ac_c_preproc_warn_flag in '' yes
3698do
3699  # Use a header file that comes with gcc, so configuring glibc
3700  # with a fresh cross-compiler works.
3701  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702  # <limits.h> exists even on freestanding compilers.
3703  # On the NeXT, cc -E runs the code through the compiler's parser,
3704  # not just through cpp. "Syntax error" is here to catch this case.
3705  cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h.  */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h.  */
3711#ifdef __STDC__
3712# include <limits.h>
3713#else
3714# include <assert.h>
3715#endif
3716		     Syntax error
3717_ACEOF
3718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3719  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } >/dev/null; then
3726  if test -s conftest.err; then
3727    ac_cpp_err=$ac_c_preproc_warn_flag
3728    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3729  else
3730    ac_cpp_err=
3731  fi
3732else
3733  ac_cpp_err=yes
3734fi
3735if test -z "$ac_cpp_err"; then
3736  :
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741  # Broken: fails on valid input.
3742continue
3743fi
3744rm -f conftest.err conftest.$ac_ext
3745
3746  # OK, works on sane cases.  Now check whether non-existent headers
3747  # can be detected and how.
3748  cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754#include <ac_nonexistent.h>
3755_ACEOF
3756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3758  ac_status=$?
3759  grep -v '^ *+' conftest.er1 >conftest.err
3760  rm -f conftest.er1
3761  cat conftest.err >&5
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); } >/dev/null; then
3764  if test -s conftest.err; then
3765    ac_cpp_err=$ac_c_preproc_warn_flag
3766    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3767  else
3768    ac_cpp_err=
3769  fi
3770else
3771  ac_cpp_err=yes
3772fi
3773if test -z "$ac_cpp_err"; then
3774  # Broken: success on invalid input.
3775continue
3776else
3777  echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780  # Passes both tests.
3781ac_preproc_ok=:
3782break
3783fi
3784rm -f conftest.err conftest.$ac_ext
3785
3786done
3787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788rm -f conftest.err conftest.$ac_ext
3789if $ac_preproc_ok; then
3790  :
3791else
3792  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3793See \`config.log' for more details." >&5
3794echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3795See \`config.log' for more details." >&2;}
3796   { (exit 1); exit 1; }; }
3797fi
3798
3799ac_ext=c
3800ac_cpp='$CPP $CPPFLAGS'
3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
3805
3806echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3807echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3808if test "${ac_cv_header_stdc+set}" = set; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  cat >conftest.$ac_ext <<_ACEOF
3812/* confdefs.h.  */
3813_ACEOF
3814cat confdefs.h >>conftest.$ac_ext
3815cat >>conftest.$ac_ext <<_ACEOF
3816/* end confdefs.h.  */
3817#include <stdlib.h>
3818#include <stdarg.h>
3819#include <string.h>
3820#include <float.h>
3821
3822int
3823main ()
3824{
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832  (eval $ac_compile) 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } &&
3839	 { ac_try='test -z "$ac_c_werror_flag"
3840			 || test ! -s conftest.err'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; } &&
3846	 { ac_try='test -s conftest.$ac_objext'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; }; then
3852  ac_cv_header_stdc=yes
3853else
3854  echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857ac_cv_header_stdc=no
3858fi
3859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860
3861if test $ac_cv_header_stdc = yes; then
3862  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3863  cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h.  */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h.  */
3869#include <string.h>
3870
3871_ACEOF
3872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873  $EGREP "memchr" >/dev/null 2>&1; then
3874  :
3875else
3876  ac_cv_header_stdc=no
3877fi
3878rm -f conftest*
3879
3880fi
3881
3882if test $ac_cv_header_stdc = yes; then
3883  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884  cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h.  */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h.  */
3890#include <stdlib.h>
3891
3892_ACEOF
3893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894  $EGREP "free" >/dev/null 2>&1; then
3895  :
3896else
3897  ac_cv_header_stdc=no
3898fi
3899rm -f conftest*
3900
3901fi
3902
3903if test $ac_cv_header_stdc = yes; then
3904  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3905  if test "$cross_compiling" = yes; then
3906  :
3907else
3908  cat >conftest.$ac_ext <<_ACEOF
3909/* confdefs.h.  */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h.  */
3914#include <ctype.h>
3915#if ((' ' & 0x0FF) == 0x020)
3916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918#else
3919# define ISLOWER(c) \
3920		   (('a' <= (c) && (c) <= 'i') \
3921		     || ('j' <= (c) && (c) <= 'r') \
3922		     || ('s' <= (c) && (c) <= 'z'))
3923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924#endif
3925
3926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927int
3928main ()
3929{
3930  int i;
3931  for (i = 0; i < 256; i++)
3932    if (XOR (islower (i), ISLOWER (i))
3933	|| toupper (i) != TOUPPER (i))
3934      exit(2);
3935  exit (0);
3936}
3937_ACEOF
3938rm -f conftest$ac_exeext
3939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940  (eval $ac_link) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945  (eval $ac_try) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }; }; then
3949  :
3950else
3951  echo "$as_me: program exited with status $ac_status" >&5
3952echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955( exit $ac_status )
3956ac_cv_header_stdc=no
3957fi
3958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959fi
3960fi
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963echo "${ECHO_T}$ac_cv_header_stdc" >&6
3964if test $ac_cv_header_stdc = yes; then
3965
3966cat >>confdefs.h <<\_ACEOF
3967#define STDC_HEADERS 1
3968_ACEOF
3969
3970fi
3971
3972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983		  inttypes.h stdint.h unistd.h
3984do
3985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986echo "$as_me:$LINENO: checking for $ac_header" >&5
3987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3988if eval "test \"\${$as_ac_Header+set}\" = set"; then
3989  echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991  cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997$ac_includes_default
3998
3999#include <$ac_header>
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003  (eval $ac_compile) 2>conftest.er1
4004  ac_status=$?
4005  grep -v '^ *+' conftest.er1 >conftest.err
4006  rm -f conftest.er1
4007  cat conftest.err >&5
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); } &&
4010	 { ac_try='test -z "$ac_c_werror_flag"
4011			 || test ! -s conftest.err'
4012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013  (eval $ac_try) 2>&5
4014  ac_status=$?
4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016  (exit $ac_status); }; } &&
4017	 { ac_try='test -s conftest.$ac_objext'
4018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019  (eval $ac_try) 2>&5
4020  ac_status=$?
4021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022  (exit $ac_status); }; }; then
4023  eval "$as_ac_Header=yes"
4024else
4025  echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028eval "$as_ac_Header=no"
4029fi
4030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4031fi
4032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4034if test `eval echo '${'$as_ac_Header'}'` = yes; then
4035  cat >>confdefs.h <<_ACEOF
4036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4037_ACEOF
4038
4039fi
4040
4041done
4042
4043
4044
4045for ac_header in dlfcn.h
4046do
4047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4048if eval "test \"\${$as_ac_Header+set}\" = set"; then
4049  echo "$as_me:$LINENO: checking for $ac_header" >&5
4050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4051if eval "test \"\${$as_ac_Header+set}\" = set"; then
4052  echo $ECHO_N "(cached) $ECHO_C" >&6
4053fi
4054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056else
4057  # Is the header compilable?
4058echo "$as_me:$LINENO: checking $ac_header usability" >&5
4059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4060cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h.  */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h.  */
4066$ac_includes_default
4067#include <$ac_header>
4068_ACEOF
4069rm -f conftest.$ac_objext
4070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071  (eval $ac_compile) 2>conftest.er1
4072  ac_status=$?
4073  grep -v '^ *+' conftest.er1 >conftest.err
4074  rm -f conftest.er1
4075  cat conftest.err >&5
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); } &&
4078	 { ac_try='test -z "$ac_c_werror_flag"
4079			 || test ! -s conftest.err'
4080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081  (eval $ac_try) 2>&5
4082  ac_status=$?
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); }; } &&
4085	 { ac_try='test -s conftest.$ac_objext'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; }; then
4091  ac_header_compiler=yes
4092else
4093  echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096ac_header_compiler=no
4097fi
4098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4100echo "${ECHO_T}$ac_header_compiler" >&6
4101
4102# Is the header present?
4103echo "$as_me:$LINENO: checking $ac_header presence" >&5
4104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4105cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h.  */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h.  */
4111#include <$ac_header>
4112_ACEOF
4113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4114  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4115  ac_status=$?
4116  grep -v '^ *+' conftest.er1 >conftest.err
4117  rm -f conftest.er1
4118  cat conftest.err >&5
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); } >/dev/null; then
4121  if test -s conftest.err; then
4122    ac_cpp_err=$ac_c_preproc_warn_flag
4123    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4124  else
4125    ac_cpp_err=
4126  fi
4127else
4128  ac_cpp_err=yes
4129fi
4130if test -z "$ac_cpp_err"; then
4131  ac_header_preproc=yes
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136  ac_header_preproc=no
4137fi
4138rm -f conftest.err conftest.$ac_ext
4139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4140echo "${ECHO_T}$ac_header_preproc" >&6
4141
4142# So?  What about this header?
4143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4144  yes:no: )
4145    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4149    ac_header_preproc=yes
4150    ;;
4151  no:yes:* )
4152    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4154    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4155echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4156    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4158    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4159echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4160    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4162    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4164    (
4165      cat <<\_ASBOX
4166## -------------------------------------- ##
4167## Report this to the proxychains lists.  ##
4168## -------------------------------------- ##
4169_ASBOX
4170    ) |
4171      sed "s/^/$as_me: WARNING:     /" >&2
4172    ;;
4173esac
4174echo "$as_me:$LINENO: checking for $ac_header" >&5
4175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4176if eval "test \"\${$as_ac_Header+set}\" = set"; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  eval "$as_ac_Header=\$ac_header_preproc"
4180fi
4181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4183
4184fi
4185if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186  cat >>confdefs.h <<_ACEOF
4187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188_ACEOF
4189
4190fi
4191
4192done
4193
4194ac_ext=cc
4195ac_cpp='$CXXCPP $CPPFLAGS'
4196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4199if test -n "$ac_tool_prefix"; then
4200  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4201  do
4202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4204echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206if test "${ac_cv_prog_CXX+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  if test -n "$CXX"; then
4210  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217  for ac_exec_ext in '' $ac_executable_extensions; do
4218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224done
4225
4226fi
4227fi
4228CXX=$ac_cv_prog_CXX
4229if test -n "$CXX"; then
4230  echo "$as_me:$LINENO: result: $CXX" >&5
4231echo "${ECHO_T}$CXX" >&6
4232else
4233  echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235fi
4236
4237    test -n "$CXX" && break
4238  done
4239fi
4240if test -z "$CXX"; then
4241  ac_ct_CXX=$CXX
4242  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4243do
4244  # Extract the first word of "$ac_prog", so it can be a program name with args.
4245set dummy $ac_prog; ac_word=$2
4246echo "$as_me:$LINENO: checking for $ac_word" >&5
4247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251  if test -n "$ac_ct_CXX"; then
4252  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259  for ac_exec_ext in '' $ac_executable_extensions; do
4260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261    ac_cv_prog_ac_ct_CXX="$ac_prog"
4262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266done
4267
4268fi
4269fi
4270ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4271if test -n "$ac_ct_CXX"; then
4272  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4273echo "${ECHO_T}$ac_ct_CXX" >&6
4274else
4275  echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi
4278
4279  test -n "$ac_ct_CXX" && break
4280done
4281test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4282
4283  CXX=$ac_ct_CXX
4284fi
4285
4286
4287# Provide some information about the compiler.
4288echo "$as_me:$LINENO:" \
4289     "checking for C++ compiler version" >&5
4290ac_compiler=`set X $ac_compile; echo $2`
4291{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4292  (eval $ac_compiler --version </dev/null >&5) 2>&5
4293  ac_status=$?
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); }
4296{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4297  (eval $ac_compiler -v </dev/null >&5) 2>&5
4298  ac_status=$?
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); }
4301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4302  (eval $ac_compiler -V </dev/null >&5) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }
4306
4307echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4308echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4309if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318
4319int
4320main ()
4321{
4322#ifndef __GNUC__
4323       choke me
4324#endif
4325
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332  (eval $ac_compile) 2>conftest.er1
4333  ac_status=$?
4334  grep -v '^ *+' conftest.er1 >conftest.err
4335  rm -f conftest.er1
4336  cat conftest.err >&5
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } &&
4339	 { ac_try='test -z "$ac_cxx_werror_flag"
4340			 || test ! -s conftest.err'
4341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342  (eval $ac_try) 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); }; } &&
4346	 { ac_try='test -s conftest.$ac_objext'
4347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348  (eval $ac_try) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; }; then
4352  ac_compiler_gnu=yes
4353else
4354  echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357ac_compiler_gnu=no
4358fi
4359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4361
4362fi
4363echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4364echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4365GXX=`test $ac_compiler_gnu = yes && echo yes`
4366ac_test_CXXFLAGS=${CXXFLAGS+set}
4367ac_save_CXXFLAGS=$CXXFLAGS
4368CXXFLAGS="-g"
4369echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4370echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4371if test "${ac_cv_prog_cxx_g+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h.  */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h.  */
4380
4381int
4382main ()
4383{
4384
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391  (eval $ac_compile) 2>conftest.er1
4392  ac_status=$?
4393  grep -v '^ *+' conftest.er1 >conftest.err
4394  rm -f conftest.er1
4395  cat conftest.err >&5
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); } &&
4398	 { ac_try='test -z "$ac_cxx_werror_flag"
4399			 || test ! -s conftest.err'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; } &&
4405	 { ac_try='test -s conftest.$ac_objext'
4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407  (eval $ac_try) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }; }; then
4411  ac_cv_prog_cxx_g=yes
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416ac_cv_prog_cxx_g=no
4417fi
4418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4419fi
4420echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4421echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4422if test "$ac_test_CXXFLAGS" = set; then
4423  CXXFLAGS=$ac_save_CXXFLAGS
4424elif test $ac_cv_prog_cxx_g = yes; then
4425  if test "$GXX" = yes; then
4426    CXXFLAGS="-g -O2"
4427  else
4428    CXXFLAGS="-g"
4429  fi
4430else
4431  if test "$GXX" = yes; then
4432    CXXFLAGS="-O2"
4433  else
4434    CXXFLAGS=
4435  fi
4436fi
4437for ac_declaration in \
4438   '' \
4439   'extern "C" void std::exit (int) throw (); using std::exit;' \
4440   'extern "C" void std::exit (int); using std::exit;' \
4441   'extern "C" void exit (int) throw ();' \
4442   'extern "C" void exit (int);' \
4443   'void exit (int);'
4444do
4445  cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h.  */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h.  */
4451$ac_declaration
4452#include <stdlib.h>
4453int
4454main ()
4455{
4456exit (42);
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461rm -f conftest.$ac_objext
4462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463  (eval $ac_compile) 2>conftest.er1
4464  ac_status=$?
4465  grep -v '^ *+' conftest.er1 >conftest.err
4466  rm -f conftest.er1
4467  cat conftest.err >&5
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); } &&
4470	 { ac_try='test -z "$ac_cxx_werror_flag"
4471			 || test ! -s conftest.err'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; } &&
4477	 { ac_try='test -s conftest.$ac_objext'
4478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479  (eval $ac_try) 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; }; then
4483  :
4484else
4485  echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488continue
4489fi
4490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4491  cat >conftest.$ac_ext <<_ACEOF
4492/* confdefs.h.  */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h.  */
4497$ac_declaration
4498int
4499main ()
4500{
4501exit (42);
4502  ;
4503  return 0;
4504}
4505_ACEOF
4506rm -f conftest.$ac_objext
4507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508  (eval $ac_compile) 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } &&
4515	 { ac_try='test -z "$ac_cxx_werror_flag"
4516			 || test ! -s conftest.err'
4517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518  (eval $ac_try) 2>&5
4519  ac_status=$?
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; } &&
4522	 { ac_try='test -s conftest.$ac_objext'
4523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524  (eval $ac_try) 2>&5
4525  ac_status=$?
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); }; }; then
4528  break
4529else
4530  echo "$as_me: failed program was:" >&5
4531sed 's/^/| /' conftest.$ac_ext >&5
4532
4533fi
4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4535done
4536rm -f conftest*
4537if test -n "$ac_declaration"; then
4538  echo '#ifdef __cplusplus' >>confdefs.h
4539  echo $ac_declaration      >>confdefs.h
4540  echo '#endif'             >>confdefs.h
4541fi
4542
4543ac_ext=cc
4544ac_cpp='$CXXCPP $CPPFLAGS'
4545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548
4549
4550
4551if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4552    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4553    (test "X$CXX" != "Xg++"))) ; then
4554  ac_ext=cc
4555ac_cpp='$CXXCPP $CPPFLAGS'
4556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4560echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4561if test -z "$CXXCPP"; then
4562  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4563  echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565      # Double quotes because CXXCPP needs to be expanded
4566    for CXXCPP in "$CXX -E" "/lib/cpp"
4567    do
4568      ac_preproc_ok=false
4569for ac_cxx_preproc_warn_flag in '' yes
4570do
4571  # Use a header file that comes with gcc, so configuring glibc
4572  # with a fresh cross-compiler works.
4573  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574  # <limits.h> exists even on freestanding compilers.
4575  # On the NeXT, cc -E runs the code through the compiler's parser,
4576  # not just through cpp. "Syntax error" is here to catch this case.
4577  cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583#ifdef __STDC__
4584# include <limits.h>
4585#else
4586# include <assert.h>
4587#endif
4588		     Syntax error
4589_ACEOF
4590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4592  ac_status=$?
4593  grep -v '^ *+' conftest.er1 >conftest.err
4594  rm -f conftest.er1
4595  cat conftest.err >&5
4596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597  (exit $ac_status); } >/dev/null; then
4598  if test -s conftest.err; then
4599    ac_cpp_err=$ac_cxx_preproc_warn_flag
4600    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4601  else
4602    ac_cpp_err=
4603  fi
4604else
4605  ac_cpp_err=yes
4606fi
4607if test -z "$ac_cpp_err"; then
4608  :
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613  # Broken: fails on valid input.
4614continue
4615fi
4616rm -f conftest.err conftest.$ac_ext
4617
4618  # OK, works on sane cases.  Now check whether non-existent headers
4619  # can be detected and how.
4620  cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h.  */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h.  */
4626#include <ac_nonexistent.h>
4627_ACEOF
4628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4629  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } >/dev/null; then
4636  if test -s conftest.err; then
4637    ac_cpp_err=$ac_cxx_preproc_warn_flag
4638    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4639  else
4640    ac_cpp_err=
4641  fi
4642else
4643  ac_cpp_err=yes
4644fi
4645if test -z "$ac_cpp_err"; then
4646  # Broken: success on invalid input.
4647continue
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652  # Passes both tests.
4653ac_preproc_ok=:
4654break
4655fi
4656rm -f conftest.err conftest.$ac_ext
4657
4658done
4659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4660rm -f conftest.err conftest.$ac_ext
4661if $ac_preproc_ok; then
4662  break
4663fi
4664
4665    done
4666    ac_cv_prog_CXXCPP=$CXXCPP
4667
4668fi
4669  CXXCPP=$ac_cv_prog_CXXCPP
4670else
4671  ac_cv_prog_CXXCPP=$CXXCPP
4672fi
4673echo "$as_me:$LINENO: result: $CXXCPP" >&5
4674echo "${ECHO_T}$CXXCPP" >&6
4675ac_preproc_ok=false
4676for ac_cxx_preproc_warn_flag in '' yes
4677do
4678  # Use a header file that comes with gcc, so configuring glibc
4679  # with a fresh cross-compiler works.
4680  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4681  # <limits.h> exists even on freestanding compilers.
4682  # On the NeXT, cc -E runs the code through the compiler's parser,
4683  # not just through cpp. "Syntax error" is here to catch this case.
4684  cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690#ifdef __STDC__
4691# include <limits.h>
4692#else
4693# include <assert.h>
4694#endif
4695		     Syntax error
4696_ACEOF
4697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699  ac_status=$?
4700  grep -v '^ *+' conftest.er1 >conftest.err
4701  rm -f conftest.er1
4702  cat conftest.err >&5
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); } >/dev/null; then
4705  if test -s conftest.err; then
4706    ac_cpp_err=$ac_cxx_preproc_warn_flag
4707    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4708  else
4709    ac_cpp_err=
4710  fi
4711else
4712  ac_cpp_err=yes
4713fi
4714if test -z "$ac_cpp_err"; then
4715  :
4716else
4717  echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720  # Broken: fails on valid input.
4721continue
4722fi
4723rm -f conftest.err conftest.$ac_ext
4724
4725  # OK, works on sane cases.  Now check whether non-existent headers
4726  # can be detected and how.
4727  cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h.  */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h.  */
4733#include <ac_nonexistent.h>
4734_ACEOF
4735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4737  ac_status=$?
4738  grep -v '^ *+' conftest.er1 >conftest.err
4739  rm -f conftest.er1
4740  cat conftest.err >&5
4741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); } >/dev/null; then
4743  if test -s conftest.err; then
4744    ac_cpp_err=$ac_cxx_preproc_warn_flag
4745    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4746  else
4747    ac_cpp_err=
4748  fi
4749else
4750  ac_cpp_err=yes
4751fi
4752if test -z "$ac_cpp_err"; then
4753  # Broken: success on invalid input.
4754continue
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759  # Passes both tests.
4760ac_preproc_ok=:
4761break
4762fi
4763rm -f conftest.err conftest.$ac_ext
4764
4765done
4766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4767rm -f conftest.err conftest.$ac_ext
4768if $ac_preproc_ok; then
4769  :
4770else
4771  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4772See \`config.log' for more details." >&5
4773echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4774See \`config.log' for more details." >&2;}
4775   { (exit 1); exit 1; }; }
4776fi
4777
4778ac_ext=cc
4779ac_cpp='$CXXCPP $CPPFLAGS'
4780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4783
4784fi
4785
4786
4787ac_ext=f
4788ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4789ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4791if test -n "$ac_tool_prefix"; then
4792  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4793  do
4794    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4796echo "$as_me:$LINENO: checking for $ac_word" >&5
4797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4798if test "${ac_cv_prog_F77+set}" = set; then
4799  echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801  if test -n "$F77"; then
4802  ac_cv_prog_F77="$F77" # Let the user override the test.
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807  IFS=$as_save_IFS
4808  test -z "$as_dir" && as_dir=.
4809  for ac_exec_ext in '' $ac_executable_extensions; do
4810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813    break 2
4814  fi
4815done
4816done
4817
4818fi
4819fi
4820F77=$ac_cv_prog_F77
4821if test -n "$F77"; then
4822  echo "$as_me:$LINENO: result: $F77" >&5
4823echo "${ECHO_T}$F77" >&6
4824else
4825  echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827fi
4828
4829    test -n "$F77" && break
4830  done
4831fi
4832if test -z "$F77"; then
4833  ac_ct_F77=$F77
4834  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4835do
4836  # Extract the first word of "$ac_prog", so it can be a program name with args.
4837set dummy $ac_prog; ac_word=$2
4838echo "$as_me:$LINENO: checking for $ac_word" >&5
4839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4841  echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843  if test -n "$ac_ct_F77"; then
4844  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849  IFS=$as_save_IFS
4850  test -z "$as_dir" && as_dir=.
4851  for ac_exec_ext in '' $ac_executable_extensions; do
4852  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853    ac_cv_prog_ac_ct_F77="$ac_prog"
4854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855    break 2
4856  fi
4857done
4858done
4859
4860fi
4861fi
4862ac_ct_F77=$ac_cv_prog_ac_ct_F77
4863if test -n "$ac_ct_F77"; then
4864  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4865echo "${ECHO_T}$ac_ct_F77" >&6
4866else
4867  echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869fi
4870
4871  test -n "$ac_ct_F77" && break
4872done
4873
4874  F77=$ac_ct_F77
4875fi
4876
4877
4878# Provide some information about the compiler.
4879echo "$as_me:4879:" \
4880     "checking for Fortran 77 compiler version" >&5
4881ac_compiler=`set X $ac_compile; echo $2`
4882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4883  (eval $ac_compiler --version </dev/null >&5) 2>&5
4884  ac_status=$?
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); }
4887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4888  (eval $ac_compiler -v </dev/null >&5) 2>&5
4889  ac_status=$?
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); }
4892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4893  (eval $ac_compiler -V </dev/null >&5) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }
4897rm -f a.out
4898
4899# If we don't use `.F' as extension, the preprocessor is not run on the
4900# input file.  (Note that this only needs to work for GNU compilers.)
4901ac_save_ext=$ac_ext
4902ac_ext=F
4903echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4904echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4905if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4906  echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908  cat >conftest.$ac_ext <<_ACEOF
4909      program main
4910#ifndef __GNUC__
4911       choke me
4912#endif
4913
4914      end
4915_ACEOF
4916rm -f conftest.$ac_objext
4917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918  (eval $ac_compile) 2>conftest.er1
4919  ac_status=$?
4920  grep -v '^ *+' conftest.er1 >conftest.err
4921  rm -f conftest.er1
4922  cat conftest.err >&5
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); } &&
4925	 { ac_try='test -z "$ac_f77_werror_flag"
4926			 || test ! -s conftest.err'
4927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928  (eval $ac_try) 2>&5
4929  ac_status=$?
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); }; } &&
4932	 { ac_try='test -s conftest.$ac_objext'
4933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934  (eval $ac_try) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); }; }; then
4938  ac_compiler_gnu=yes
4939else
4940  echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943ac_compiler_gnu=no
4944fi
4945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4947
4948fi
4949echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4950echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4951ac_ext=$ac_save_ext
4952ac_test_FFLAGS=${FFLAGS+set}
4953ac_save_FFLAGS=$FFLAGS
4954FFLAGS=
4955echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4956echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4957if test "${ac_cv_prog_f77_g+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  FFLAGS=-g
4961cat >conftest.$ac_ext <<_ACEOF
4962      program main
4963
4964      end
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968  (eval $ac_compile) 2>conftest.er1
4969  ac_status=$?
4970  grep -v '^ *+' conftest.er1 >conftest.err
4971  rm -f conftest.er1
4972  cat conftest.err >&5
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); } &&
4975	 { ac_try='test -z "$ac_f77_werror_flag"
4976			 || test ! -s conftest.err'
4977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978  (eval $ac_try) 2>&5
4979  ac_status=$?
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); }; } &&
4982	 { ac_try='test -s conftest.$ac_objext'
4983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984  (eval $ac_try) 2>&5
4985  ac_status=$?
4986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987  (exit $ac_status); }; }; then
4988  ac_cv_prog_f77_g=yes
4989else
4990  echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993ac_cv_prog_f77_g=no
4994fi
4995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996
4997fi
4998echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4999echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5000if test "$ac_test_FFLAGS" = set; then
5001  FFLAGS=$ac_save_FFLAGS
5002elif test $ac_cv_prog_f77_g = yes; then
5003  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5004    FFLAGS="-g -O2"
5005  else
5006    FFLAGS="-g"
5007  fi
5008else
5009  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5010    FFLAGS="-O2"
5011  else
5012    FFLAGS=
5013  fi
5014fi
5015
5016G77=`test $ac_compiler_gnu = yes && echo yes`
5017ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
5023
5024
5025# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5026
5027# find the maximum length of command line arguments
5028echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5029echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5030if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5031  echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033    i=0
5034  teststring="ABCD"
5035
5036  case $build_os in
5037  msdosdjgpp*)
5038    # On DJGPP, this test can blow up pretty badly due to problems in libc
5039    # (any single argument exceeding 2000 bytes causes a buffer overrun
5040    # during glob expansion).  Even if it were fixed, the result of this
5041    # check would be larger than it should be.
5042    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5043    ;;
5044
5045  gnu*)
5046    # Under GNU Hurd, this test is not required because there is
5047    # no limit to the length of command line arguments.
5048    # Libtool will interpret -1 as no limit whatsoever
5049    lt_cv_sys_max_cmd_len=-1;
5050    ;;
5051
5052  cygwin* | mingw*)
5053    # On Win9x/ME, this test blows up -- it succeeds, but takes
5054    # about 5 minutes as the teststring grows exponentially.
5055    # Worse, since 9x/ME are not pre-emptively multitasking,
5056    # you end up with a "frozen" computer, even though with patience
5057    # the test eventually succeeds (with a max line length of 256k).
5058    # Instead, let's just punt: use the minimum linelength reported by
5059    # all of the supported platforms: 8192 (on NT/2K/XP).
5060    lt_cv_sys_max_cmd_len=8192;
5061    ;;
5062
5063  amigaos*)
5064    # On AmigaOS with pdksh, this test takes hours, literally.
5065    # So we just punt and use a minimum line length of 8192.
5066    lt_cv_sys_max_cmd_len=8192;
5067    ;;
5068
5069  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5070    # This has been around since 386BSD, at least.  Likely further.
5071    if test -x /sbin/sysctl; then
5072      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5073    elif test -x /usr/sbin/sysctl; then
5074      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5075    else
5076      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5077    fi
5078    # And add a safety zone
5079    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5080    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5081    ;;
5082
5083  interix*)
5084    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5085    lt_cv_sys_max_cmd_len=196608
5086    ;;
5087
5088  osf*)
5089    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5090    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5091    # nice to cause kernel panics so lets avoid the loop below.
5092    # First set a reasonable default.
5093    lt_cv_sys_max_cmd_len=16384
5094    #
5095    if test -x /sbin/sysconfig; then
5096      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5097        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5098      esac
5099    fi
5100    ;;
5101  sco3.2v5*)
5102    lt_cv_sys_max_cmd_len=102400
5103    ;;
5104  sysv5* | sco5v6* | sysv4.2uw2*)
5105    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5106    if test -n "$kargmax"; then
5107      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5108    else
5109      lt_cv_sys_max_cmd_len=32768
5110    fi
5111    ;;
5112  *)
5113    # If test is not a shell built-in, we'll probably end up computing a
5114    # maximum length that is only half of the actual maximum length, but
5115    # we can't tell.
5116    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5117    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5118	       = "XX$teststring") >/dev/null 2>&1 &&
5119	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5120	    lt_cv_sys_max_cmd_len=$new_result &&
5121	    test $i != 17 # 1/2 MB should be enough
5122    do
5123      i=`expr $i + 1`
5124      teststring=$teststring$teststring
5125    done
5126    teststring=
5127    # Add a significant safety factor because C++ compilers can tack on massive
5128    # amounts of additional arguments before passing them to the linker.
5129    # It appears as though 1/2 is a usable value.
5130    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5131    ;;
5132  esac
5133
5134fi
5135
5136if test -n $lt_cv_sys_max_cmd_len ; then
5137  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5138echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5139else
5140  echo "$as_me:$LINENO: result: none" >&5
5141echo "${ECHO_T}none" >&6
5142fi
5143
5144
5145
5146
5147# Check for command to grab the raw symbol name followed by C symbol from nm.
5148echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5149echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153
5154# These are sane defaults that work on at least a few old systems.
5155# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5156
5157# Character class describing NM global symbol codes.
5158symcode='[BCDEGRST]'
5159
5160# Regexp to match symbols that can be accessed directly from C.
5161sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5162
5163# Transform an extracted symbol line into a proper C declaration
5164lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5165
5166# Transform an extracted symbol line into symbol name and symbol address
5167lt_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'"
5168
5169# Define system-specific variables.
5170case $host_os in
5171aix*)
5172  symcode='[BCDT]'
5173  ;;
5174cygwin* | mingw* | pw32*)
5175  symcode='[ABCDGISTW]'
5176  ;;
5177hpux*) # Its linker distinguishes data from code symbols
5178  if test "$host_cpu" = ia64; then
5179    symcode='[ABCDEGRST]'
5180  fi
5181  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5182  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'"
5183  ;;
5184linux*)
5185  if test "$host_cpu" = ia64; then
5186    symcode='[ABCDGIRSTW]'
5187    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5188    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'"
5189  fi
5190  ;;
5191irix* | nonstopux*)
5192  symcode='[BCDEGRST]'
5193  ;;
5194osf*)
5195  symcode='[BCDEGQRST]'
5196  ;;
5197solaris*)
5198  symcode='[BDRT]'
5199  ;;
5200sco3.2v5*)
5201  symcode='[DT]'
5202  ;;
5203sysv4.2uw2*)
5204  symcode='[DT]'
5205  ;;
5206sysv5* | sco5v6* | unixware* | OpenUNIX*)
5207  symcode='[ABDT]'
5208  ;;
5209sysv4)
5210  symcode='[DFNSTU]'
5211  ;;
5212esac
5213
5214# Handle CRLF in mingw tool chain
5215opt_cr=
5216case $build_os in
5217mingw*)
5218  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5219  ;;
5220esac
5221
5222# If we're using GNU nm, then use its standard symbol codes.
5223case `$NM -V 2>&1` in
5224*GNU* | *'with BFD'*)
5225  symcode='[ABCDGIRSTW]' ;;
5226esac
5227
5228# Try without a prefix undercore, then with it.
5229for ac_symprfx in "" "_"; do
5230
5231  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5232  symxfrm="\\1 $ac_symprfx\\2 \\2"
5233
5234  # Write the raw and C identifiers.
5235  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5236
5237  # Check to see that the pipe works correctly.
5238  pipe_works=no
5239
5240  rm -f conftest*
5241  cat > conftest.$ac_ext <<EOF
5242#ifdef __cplusplus
5243extern "C" {
5244#endif
5245char nm_test_var;
5246void nm_test_func(){}
5247#ifdef __cplusplus
5248}
5249#endif
5250int main(){nm_test_var='a';nm_test_func();return(0);}
5251EOF
5252
5253  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254  (eval $ac_compile) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; then
5258    # Now try to grab the symbols.
5259    nlist=conftest.nm
5260    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5261  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5262  ac_status=$?
5263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264  (exit $ac_status); } && test -s "$nlist"; then
5265      # Try sorting and uniquifying the output.
5266      if sort "$nlist" | uniq > "$nlist"T; then
5267	mv -f "$nlist"T "$nlist"
5268      else
5269	rm -f "$nlist"T
5270      fi
5271
5272      # Make sure that we snagged all the symbols we need.
5273      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5274	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5275	  cat <<EOF > conftest.$ac_ext
5276#ifdef __cplusplus
5277extern "C" {
5278#endif
5279
5280EOF
5281	  # Now generate the symbol file.
5282	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5283
5284	  cat <<EOF >> conftest.$ac_ext
5285#if defined (__STDC__) && __STDC__
5286# define lt_ptr_t void *
5287#else
5288# define lt_ptr_t char *
5289# define const
5290#endif
5291
5292/* The mapping between symbol names and symbols. */
5293const struct {
5294  const char *name;
5295  lt_ptr_t address;
5296}
5297lt_preloaded_symbols[] =
5298{
5299EOF
5300	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5301	  cat <<\EOF >> conftest.$ac_ext
5302  {0, (lt_ptr_t) 0}
5303};
5304
5305#ifdef __cplusplus
5306}
5307#endif
5308EOF
5309	  # Now try linking the two files.
5310	  mv conftest.$ac_objext conftstm.$ac_objext
5311	  lt_save_LIBS="$LIBS"
5312	  lt_save_CFLAGS="$CFLAGS"
5313	  LIBS="conftstm.$ac_objext"
5314	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5315	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316  (eval $ac_link) 2>&5
5317  ac_status=$?
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5320	    pipe_works=yes
5321	  fi
5322	  LIBS="$lt_save_LIBS"
5323	  CFLAGS="$lt_save_CFLAGS"
5324	else
5325	  echo "cannot find nm_test_func in $nlist" >&5
5326	fi
5327      else
5328	echo "cannot find nm_test_var in $nlist" >&5
5329      fi
5330    else
5331      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5332    fi
5333  else
5334    echo "$progname: failed program was:" >&5
5335    cat conftest.$ac_ext >&5
5336  fi
5337  rm -f conftest* conftst*
5338
5339  # Do not use the global_symbol_pipe unless it works.
5340  if test "$pipe_works" = yes; then
5341    break
5342  else
5343    lt_cv_sys_global_symbol_pipe=
5344  fi
5345done
5346
5347fi
5348
5349if test -z "$lt_cv_sys_global_symbol_pipe"; then
5350  lt_cv_sys_global_symbol_to_cdecl=
5351fi
5352if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5353  echo "$as_me:$LINENO: result: failed" >&5
5354echo "${ECHO_T}failed" >&6
5355else
5356  echo "$as_me:$LINENO: result: ok" >&5
5357echo "${ECHO_T}ok" >&6
5358fi
5359
5360echo "$as_me:$LINENO: checking for objdir" >&5
5361echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5362if test "${lt_cv_objdir+set}" = set; then
5363  echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365  rm -f .libs 2>/dev/null
5366mkdir .libs 2>/dev/null
5367if test -d .libs; then
5368  lt_cv_objdir=.libs
5369else
5370  # MS-DOS does not allow filenames that begin with a dot.
5371  lt_cv_objdir=_libs
5372fi
5373rmdir .libs 2>/dev/null
5374fi
5375echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5376echo "${ECHO_T}$lt_cv_objdir" >&6
5377objdir=$lt_cv_objdir
5378
5379
5380
5381
5382
5383case $host_os in
5384aix3*)
5385  # AIX sometimes has problems with the GCC collect2 program.  For some
5386  # reason, if we set the COLLECT_NAMES environment variable, the problems
5387  # vanish in a puff of smoke.
5388  if test "X${COLLECT_NAMES+set}" != Xset; then
5389    COLLECT_NAMES=
5390    export COLLECT_NAMES
5391  fi
5392  ;;
5393esac
5394
5395# Sed substitution that helps us do robust quoting.  It backslashifies
5396# metacharacters that are still active within double-quoted strings.
5397Xsed='sed -e 1s/^X//'
5398sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5399
5400# Same as above, but do not quote variable references.
5401double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5402
5403# Sed substitution to delay expansion of an escaped shell variable in a
5404# double_quote_subst'ed string.
5405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5406
5407# Sed substitution to avoid accidental globbing in evaled expressions
5408no_glob_subst='s/\*/\\\*/g'
5409
5410# Constants:
5411rm="rm -f"
5412
5413# Global variables:
5414default_ofile=libtool
5415can_build_shared=yes
5416
5417# All known linkers require a `.a' archive for static linking (except MSVC,
5418# which needs '.lib').
5419libext=a
5420ltmain="$ac_aux_dir/ltmain.sh"
5421ofile="$default_ofile"
5422with_gnu_ld="$lt_cv_prog_gnu_ld"
5423
5424if test -n "$ac_tool_prefix"; then
5425  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5426set dummy ${ac_tool_prefix}ar; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_prog_AR+set}" = set; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  if test -n "$AR"; then
5433  ac_cv_prog_AR="$AR" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440  for ac_exec_ext in '' $ac_executable_extensions; do
5441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442    ac_cv_prog_AR="${ac_tool_prefix}ar"
5443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447done
5448
5449fi
5450fi
5451AR=$ac_cv_prog_AR
5452if test -n "$AR"; then
5453  echo "$as_me:$LINENO: result: $AR" >&5
5454echo "${ECHO_T}$AR" >&6
5455else
5456  echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
5458fi
5459
5460fi
5461if test -z "$ac_cv_prog_AR"; then
5462  ac_ct_AR=$AR
5463  # Extract the first word of "ar", so it can be a program name with args.
5464set dummy ar; ac_word=$2
5465echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  if test -n "$ac_ct_AR"; then
5471  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476  IFS=$as_save_IFS
5477  test -z "$as_dir" && as_dir=.
5478  for ac_exec_ext in '' $ac_executable_extensions; do
5479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480    ac_cv_prog_ac_ct_AR="ar"
5481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482    break 2
5483  fi
5484done
5485done
5486
5487  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5488fi
5489fi
5490ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491if test -n "$ac_ct_AR"; then
5492  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5493echo "${ECHO_T}$ac_ct_AR" >&6
5494else
5495  echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497fi
5498
5499  AR=$ac_ct_AR
5500else
5501  AR="$ac_cv_prog_AR"
5502fi
5503
5504if test -n "$ac_tool_prefix"; then
5505  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5506set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5507echo "$as_me:$LINENO: checking for $ac_word" >&5
5508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509if test "${ac_cv_prog_RANLIB+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512  if test -n "$RANLIB"; then
5513  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518  IFS=$as_save_IFS
5519  test -z "$as_dir" && as_dir=.
5520  for ac_exec_ext in '' $ac_executable_extensions; do
5521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524    break 2
5525  fi
5526done
5527done
5528
5529fi
5530fi
5531RANLIB=$ac_cv_prog_RANLIB
5532if test -n "$RANLIB"; then
5533  echo "$as_me:$LINENO: result: $RANLIB" >&5
5534echo "${ECHO_T}$RANLIB" >&6
5535else
5536  echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538fi
5539
5540fi
5541if test -z "$ac_cv_prog_RANLIB"; then
5542  ac_ct_RANLIB=$RANLIB
5543  # Extract the first word of "ranlib", so it can be a program name with args.
5544set dummy ranlib; ac_word=$2
5545echo "$as_me:$LINENO: checking for $ac_word" >&5
5546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550  if test -n "$ac_ct_RANLIB"; then
5551  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556  IFS=$as_save_IFS
5557  test -z "$as_dir" && as_dir=.
5558  for ac_exec_ext in '' $ac_executable_extensions; do
5559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560    ac_cv_prog_ac_ct_RANLIB="ranlib"
5561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565done
5566
5567  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5568fi
5569fi
5570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5571if test -n "$ac_ct_RANLIB"; then
5572  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5573echo "${ECHO_T}$ac_ct_RANLIB" >&6
5574else
5575  echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577fi
5578
5579  RANLIB=$ac_ct_RANLIB
5580else
5581  RANLIB="$ac_cv_prog_RANLIB"
5582fi
5583
5584if test -n "$ac_tool_prefix"; then
5585  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5586set dummy ${ac_tool_prefix}strip; ac_word=$2
5587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589if test "${ac_cv_prog_STRIP+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  if test -n "$STRIP"; then
5593  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600  for ac_exec_ext in '' $ac_executable_extensions; do
5601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604    break 2
5605  fi
5606done
5607done
5608
5609fi
5610fi
5611STRIP=$ac_cv_prog_STRIP
5612if test -n "$STRIP"; then
5613  echo "$as_me:$LINENO: result: $STRIP" >&5
5614echo "${ECHO_T}$STRIP" >&6
5615else
5616  echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618fi
5619
5620fi
5621if test -z "$ac_cv_prog_STRIP"; then
5622  ac_ct_STRIP=$STRIP
5623  # Extract the first word of "strip", so it can be a program name with args.
5624set dummy strip; ac_word=$2
5625echo "$as_me:$LINENO: checking for $ac_word" >&5
5626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630  if test -n "$ac_ct_STRIP"; then
5631  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636  IFS=$as_save_IFS
5637  test -z "$as_dir" && as_dir=.
5638  for ac_exec_ext in '' $ac_executable_extensions; do
5639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640    ac_cv_prog_ac_ct_STRIP="strip"
5641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642    break 2
5643  fi
5644done
5645done
5646
5647  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5648fi
5649fi
5650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5651if test -n "$ac_ct_STRIP"; then
5652  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5653echo "${ECHO_T}$ac_ct_STRIP" >&6
5654else
5655  echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657fi
5658
5659  STRIP=$ac_ct_STRIP
5660else
5661  STRIP="$ac_cv_prog_STRIP"
5662fi
5663
5664
5665old_CC="$CC"
5666old_CFLAGS="$CFLAGS"
5667
5668# Set sane defaults for various variables
5669test -z "$AR" && AR=ar
5670test -z "$AR_FLAGS" && AR_FLAGS=cru
5671test -z "$AS" && AS=as
5672test -z "$CC" && CC=cc
5673test -z "$LTCC" && LTCC=$CC
5674test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5675test -z "$DLLTOOL" && DLLTOOL=dlltool
5676test -z "$LD" && LD=ld
5677test -z "$LN_S" && LN_S="ln -s"
5678test -z "$MAGIC_CMD" && MAGIC_CMD=file
5679test -z "$NM" && NM=nm
5680test -z "$SED" && SED=sed
5681test -z "$OBJDUMP" && OBJDUMP=objdump
5682test -z "$RANLIB" && RANLIB=:
5683test -z "$STRIP" && STRIP=:
5684test -z "$ac_objext" && ac_objext=o
5685
5686# Determine commands to create old-style static archives.
5687old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5688old_postinstall_cmds='chmod 644 $oldlib'
5689old_postuninstall_cmds=
5690
5691if test -n "$RANLIB"; then
5692  case $host_os in
5693  openbsd*)
5694    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5695    ;;
5696  *)
5697    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5698    ;;
5699  esac
5700  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5701fi
5702
5703for cc_temp in $compiler""; do
5704  case $cc_temp in
5705    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5706    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5707    \-*) ;;
5708    *) break;;
5709  esac
5710done
5711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5712
5713
5714# Only perform the check for file, if the check method requires it
5715case $deplibs_check_method in
5716file_magic*)
5717  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5718    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5719echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5720if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  case $MAGIC_CMD in
5724[\\/*] |  ?:[\\/]*)
5725  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5726  ;;
5727*)
5728  lt_save_MAGIC_CMD="$MAGIC_CMD"
5729  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5731  for ac_dir in $ac_dummy; do
5732    IFS="$lt_save_ifs"
5733    test -z "$ac_dir" && ac_dir=.
5734    if test -f $ac_dir/${ac_tool_prefix}file; then
5735      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5736      if test -n "$file_magic_test_file"; then
5737	case $deplibs_check_method in
5738	"file_magic "*)
5739	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5740	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5741	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5742	    $EGREP "$file_magic_regex" > /dev/null; then
5743	    :
5744	  else
5745	    cat <<EOF 1>&2
5746
5747*** Warning: the command libtool uses to detect shared libraries,
5748*** $file_magic_cmd, produces output that libtool cannot recognize.
5749*** The result is that libtool may fail to recognize shared libraries
5750*** as such.  This will affect the creation of libtool libraries that
5751*** depend on shared libraries, but programs linked with such libtool
5752*** libraries will work regardless of this problem.  Nevertheless, you
5753*** may want to report the problem to your system manager and/or to
5754*** bug-libtool@gnu.org
5755
5756EOF
5757	  fi ;;
5758	esac
5759      fi
5760      break
5761    fi
5762  done
5763  IFS="$lt_save_ifs"
5764  MAGIC_CMD="$lt_save_MAGIC_CMD"
5765  ;;
5766esac
5767fi
5768
5769MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5770if test -n "$MAGIC_CMD"; then
5771  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5772echo "${ECHO_T}$MAGIC_CMD" >&6
5773else
5774  echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776fi
5777
5778if test -z "$lt_cv_path_MAGIC_CMD"; then
5779  if test -n "$ac_tool_prefix"; then
5780    echo "$as_me:$LINENO: checking for file" >&5
5781echo $ECHO_N "checking for file... $ECHO_C" >&6
5782if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  case $MAGIC_CMD in
5786[\\/*] |  ?:[\\/]*)
5787  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5788  ;;
5789*)
5790  lt_save_MAGIC_CMD="$MAGIC_CMD"
5791  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5793  for ac_dir in $ac_dummy; do
5794    IFS="$lt_save_ifs"
5795    test -z "$ac_dir" && ac_dir=.
5796    if test -f $ac_dir/file; then
5797      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5798      if test -n "$file_magic_test_file"; then
5799	case $deplibs_check_method in
5800	"file_magic "*)
5801	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5802	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5803	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5804	    $EGREP "$file_magic_regex" > /dev/null; then
5805	    :
5806	  else
5807	    cat <<EOF 1>&2
5808
5809*** Warning: the command libtool uses to detect shared libraries,
5810*** $file_magic_cmd, produces output that libtool cannot recognize.
5811*** The result is that libtool may fail to recognize shared libraries
5812*** as such.  This will affect the creation of libtool libraries that
5813*** depend on shared libraries, but programs linked with such libtool
5814*** libraries will work regardless of this problem.  Nevertheless, you
5815*** may want to report the problem to your system manager and/or to
5816*** bug-libtool@gnu.org
5817
5818EOF
5819	  fi ;;
5820	esac
5821      fi
5822      break
5823    fi
5824  done
5825  IFS="$lt_save_ifs"
5826  MAGIC_CMD="$lt_save_MAGIC_CMD"
5827  ;;
5828esac
5829fi
5830
5831MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5832if test -n "$MAGIC_CMD"; then
5833  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5834echo "${ECHO_T}$MAGIC_CMD" >&6
5835else
5836  echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838fi
5839
5840  else
5841    MAGIC_CMD=:
5842  fi
5843fi
5844
5845  fi
5846  ;;
5847esac
5848
5849enable_dlopen=no
5850enable_win32_dll=no
5851
5852# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5853if test "${enable_libtool_lock+set}" = set; then
5854  enableval="$enable_libtool_lock"
5855
5856fi;
5857test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5858
5859
5860# Check whether --with-pic or --without-pic was given.
5861if test "${with_pic+set}" = set; then
5862  withval="$with_pic"
5863  pic_mode="$withval"
5864else
5865  pic_mode=default
5866fi;
5867test -z "$pic_mode" && pic_mode=default
5868
5869# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
5870#
5871# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
5872#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
5873#        calls AC_LIBTOOL_CONFIG and creates libtool.
5874#
5875echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
5876echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
5877if test "x$ltmain" = "x" ; then
5878  echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880  { { echo "$as_me:$LINENO: error:
5881
5882*** [Gentoo] sanity check failed! ***
5883*** \$ltmain is not defined, please check the patch for consistency! ***
5884" >&5
5885echo "$as_me: error:
5886
5887*** [Gentoo] sanity check failed! ***
5888*** \$ltmain is not defined, please check the patch for consistency! ***
5889" >&2;}
5890   { (exit 1); exit 1; }; }
5891fi
5892gentoo_lt_version="1.5.22"
5893gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
5894if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
5895  echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
5897  { { echo "$as_me:$LINENO: error:
5898
5899*** [Gentoo] sanity check failed! ***
5900*** libtool.m4 and ltmain.sh have a version mismatch! ***
5901*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5902
5903Please run:
5904
5905  libtoolize --copy --force
5906
5907if appropriate, please contact the maintainer of this
5908package (or your distribution) for help.
5909" >&5
5910echo "$as_me: error:
5911
5912*** [Gentoo] sanity check failed! ***
5913*** libtool.m4 and ltmain.sh have a version mismatch! ***
5914*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5915
5916Please run:
5917
5918  libtoolize --copy --force
5919
5920if appropriate, please contact the maintainer of this
5921package (or your distribution) for help.
5922" >&2;}
5923   { (exit 1); exit 1; }; }
5924else
5925  echo "$as_me:$LINENO: result: yes" >&5
5926echo "${ECHO_T}yes" >&6
5927fi
5928
5929
5930# Use C for the default configuration in the libtool script
5931tagname=
5932lt_save_CC="$CC"
5933ac_ext=c
5934ac_cpp='$CPP $CPPFLAGS'
5935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
5939
5940# Source file extension for C test sources.
5941ac_ext=c
5942
5943# Object file extension for compiled C test sources.
5944objext=o
5945objext=$objext
5946
5947# Code to be used in simple compile tests
5948lt_simple_compile_test_code="int some_variable = 0;\n"
5949
5950# Code to be used in simple link tests
5951lt_simple_link_test_code='int main(){return(0);}\n'
5952
5953
5954# If no C compiler was specified, use CC.
5955LTCC=${LTCC-"$CC"}
5956
5957# If no C compiler flags were specified, use CFLAGS.
5958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5959
5960# Allow CC to be a program name with arguments.
5961compiler=$CC
5962
5963
5964# save warnings/boilerplate of simple test code
5965ac_outfile=conftest.$ac_objext
5966printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5967eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5968_lt_compiler_boilerplate=`cat conftest.err`
5969$rm conftest*
5970
5971ac_outfile=conftest.$ac_objext
5972printf "$lt_simple_link_test_code" >conftest.$ac_ext
5973eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5974_lt_linker_boilerplate=`cat conftest.err`
5975$rm conftest*
5976
5977
5978
5979lt_prog_compiler_no_builtin_flag=
5980
5981if test "$GCC" = yes; then
5982  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5983
5984
5985echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5986echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5987if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990  lt_cv_prog_compiler_rtti_exceptions=no
5991  ac_outfile=conftest.$ac_objext
5992   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5993   lt_compiler_flag="-fno-rtti -fno-exceptions"
5994   # Insert the option either (1) after the last *FLAGS variable, or
5995   # (2) before a word containing "conftest.", or (3) at the end.
5996   # Note that $ac_compile itself does not contain backslashes and begins
5997   # with a dollar sign (not a hyphen), so the echo should work correctly.
5998   # The option is referenced via a variable to avoid confusing sed.
5999   lt_compile=`echo "$ac_compile" | $SED \
6000   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6002   -e 's:$: $lt_compiler_flag:'`
6003   (eval echo "\"\$as_me:6003: $lt_compile\"" >&5)
6004   (eval "$lt_compile" 2>conftest.err)
6005   ac_status=$?
6006   cat conftest.err >&5
6007   echo "$as_me:6007: \$? = $ac_status" >&5
6008   if (exit $ac_status) && test -s "$ac_outfile"; then
6009     # The compiler can only warn and ignore the option if not recognized
6010     # So say no if there are warnings other than the usual output.
6011     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6012     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6013     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6014       lt_cv_prog_compiler_rtti_exceptions=yes
6015     fi
6016   fi
6017   $rm conftest*
6018
6019fi
6020echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6021echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6022
6023if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6024    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6025else
6026    :
6027fi
6028
6029fi
6030
6031lt_prog_compiler_wl=
6032lt_prog_compiler_pic=
6033lt_prog_compiler_static=
6034
6035echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6036echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6037
6038  if test "$GCC" = yes; then
6039    lt_prog_compiler_wl='-Wl,'
6040    lt_prog_compiler_static='-static'
6041
6042    case $host_os in
6043      aix*)
6044      # All AIX code is PIC.
6045      if test "$host_cpu" = ia64; then
6046	# AIX 5 now supports IA64 processor
6047	lt_prog_compiler_static='-Bstatic'
6048      fi
6049      ;;
6050
6051    amigaos*)
6052      # FIXME: we need at least 68020 code to build shared libraries, but
6053      # adding the `-m68020' flag to GCC prevents building anything better,
6054      # like `-m68040'.
6055      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6056      ;;
6057
6058    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6059      # PIC is the default for these OSes.
6060      ;;
6061
6062    mingw* | pw32* | os2*)
6063      # This hack is so that the source file can tell whether it is being
6064      # built for inclusion in a dll (and should export symbols for example).
6065      lt_prog_compiler_pic='-DDLL_EXPORT'
6066      ;;
6067
6068    darwin* | rhapsody*)
6069      # PIC is the default on this platform
6070      # Common symbols not allowed in MH_DYLIB files
6071      lt_prog_compiler_pic='-fno-common'
6072      ;;
6073
6074    interix3*)
6075      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6076      # Instead, we relocate shared libraries at runtime.
6077      ;;
6078
6079    msdosdjgpp*)
6080      # Just because we use GCC doesn't mean we suddenly get shared libraries
6081      # on systems that don't support them.
6082      lt_prog_compiler_can_build_shared=no
6083      enable_shared=no
6084      ;;
6085
6086    sysv4*MP*)
6087      if test -d /usr/nec; then
6088	lt_prog_compiler_pic=-Kconform_pic
6089      fi
6090      ;;
6091
6092    hpux*)
6093      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6094      # not for PA HP-UX.
6095      case $host_cpu in
6096      hppa*64*|ia64*)
6097	# +Z the default
6098	;;
6099      *)
6100	lt_prog_compiler_pic='-fPIC'
6101	;;
6102      esac
6103      ;;
6104
6105    *)
6106      lt_prog_compiler_pic='-fPIC'
6107      ;;
6108    esac
6109  else
6110    # PORTME Check for flag to pass linker flags through the system compiler.
6111    case $host_os in
6112    aix*)
6113      lt_prog_compiler_wl='-Wl,'
6114      if test "$host_cpu" = ia64; then
6115	# AIX 5 now supports IA64 processor
6116	lt_prog_compiler_static='-Bstatic'
6117      else
6118	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6119      fi
6120      ;;
6121      darwin*)
6122        # PIC is the default on this platform
6123        # Common symbols not allowed in MH_DYLIB files
6124       case $cc_basename in
6125         xlc*)
6126         lt_prog_compiler_pic='-qnocommon'
6127         lt_prog_compiler_wl='-Wl,'
6128         ;;
6129       esac
6130       ;;
6131
6132    mingw* | pw32* | os2*)
6133      # This hack is so that the source file can tell whether it is being
6134      # built for inclusion in a dll (and should export symbols for example).
6135      lt_prog_compiler_pic='-DDLL_EXPORT'
6136      ;;
6137
6138    hpux9* | hpux10* | hpux11*)
6139      lt_prog_compiler_wl='-Wl,'
6140      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6141      # not for PA HP-UX.
6142      case $host_cpu in
6143      hppa*64*|ia64*)
6144	# +Z the default
6145	;;
6146      *)
6147	lt_prog_compiler_pic='+Z'
6148	;;
6149      esac
6150      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6151      lt_prog_compiler_static='${wl}-a ${wl}archive'
6152      ;;
6153
6154    irix5* | irix6* | nonstopux*)
6155      lt_prog_compiler_wl='-Wl,'
6156      # PIC (with -KPIC) is the default.
6157      lt_prog_compiler_static='-non_shared'
6158      ;;
6159
6160    newsos6)
6161      lt_prog_compiler_pic='-KPIC'
6162      lt_prog_compiler_static='-Bstatic'
6163      ;;
6164
6165    linux*)
6166      case $cc_basename in
6167      icc* | ecc*)
6168	lt_prog_compiler_wl='-Wl,'
6169	lt_prog_compiler_pic='-KPIC'
6170	lt_prog_compiler_static='-static'
6171        ;;
6172      pgcc* | pgf77* | pgf90* | pgf95*)
6173        # Portland Group compilers (*not* the Pentium gcc compiler,
6174	# which looks to be a dead project)
6175	lt_prog_compiler_wl='-Wl,'
6176	lt_prog_compiler_pic='-fpic'
6177	lt_prog_compiler_static='-Bstatic'
6178        ;;
6179      ccc*)
6180        lt_prog_compiler_wl='-Wl,'
6181        # All Alpha code is PIC.
6182        lt_prog_compiler_static='-non_shared'
6183        ;;
6184      esac
6185      ;;
6186
6187    osf3* | osf4* | osf5*)
6188      lt_prog_compiler_wl='-Wl,'
6189      # All OSF/1 code is PIC.
6190      lt_prog_compiler_static='-non_shared'
6191      ;;
6192
6193    solaris*)
6194      lt_prog_compiler_pic='-KPIC'
6195      lt_prog_compiler_static='-Bstatic'
6196      case $cc_basename in
6197      f77* | f90* | f95*)
6198	lt_prog_compiler_wl='-Qoption ld ';;
6199      *)
6200	lt_prog_compiler_wl='-Wl,';;
6201      esac
6202      ;;
6203
6204    sunos4*)
6205      lt_prog_compiler_wl='-Qoption ld '
6206      lt_prog_compiler_pic='-PIC'
6207      lt_prog_compiler_static='-Bstatic'
6208      ;;
6209
6210    sysv4 | sysv4.2uw2* | sysv4.3*)
6211      lt_prog_compiler_wl='-Wl,'
6212      lt_prog_compiler_pic='-KPIC'
6213      lt_prog_compiler_static='-Bstatic'
6214      ;;
6215
6216    sysv4*MP*)
6217      if test -d /usr/nec ;then
6218	lt_prog_compiler_pic='-Kconform_pic'
6219	lt_prog_compiler_static='-Bstatic'
6220      fi
6221      ;;
6222
6223    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6224      lt_prog_compiler_wl='-Wl,'
6225      lt_prog_compiler_pic='-KPIC'
6226      lt_prog_compiler_static='-Bstatic'
6227      ;;
6228
6229    unicos*)
6230      lt_prog_compiler_wl='-Wl,'
6231      lt_prog_compiler_can_build_shared=no
6232      ;;
6233
6234    uts4*)
6235      lt_prog_compiler_pic='-pic'
6236      lt_prog_compiler_static='-Bstatic'
6237      ;;
6238
6239    *)
6240      lt_prog_compiler_can_build_shared=no
6241      ;;
6242    esac
6243  fi
6244
6245echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6246echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6247
6248#
6249# Check to make sure the PIC flag actually works.
6250#
6251if test -n "$lt_prog_compiler_pic"; then
6252
6253echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6254echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6255if test "${lt_prog_compiler_pic_works+set}" = set; then
6256  echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258  lt_prog_compiler_pic_works=no
6259  ac_outfile=conftest.$ac_objext
6260   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6261   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6262   # Insert the option either (1) after the last *FLAGS variable, or
6263   # (2) before a word containing "conftest.", or (3) at the end.
6264   # Note that $ac_compile itself does not contain backslashes and begins
6265   # with a dollar sign (not a hyphen), so the echo should work correctly.
6266   # The option is referenced via a variable to avoid confusing sed.
6267   lt_compile=`echo "$ac_compile" | $SED \
6268   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6269   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6270   -e 's:$: $lt_compiler_flag:'`
6271   (eval echo "\"\$as_me:6271: $lt_compile\"" >&5)
6272   (eval "$lt_compile" 2>conftest.err)
6273   ac_status=$?
6274   cat conftest.err >&5
6275   echo "$as_me:6275: \$? = $ac_status" >&5
6276   if (exit $ac_status) && test -s "$ac_outfile"; then
6277     # The compiler can only warn and ignore the option if not recognized
6278     # So say no if there are warnings other than the usual output.
6279     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6280     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6281     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6282       lt_prog_compiler_pic_works=yes
6283     fi
6284   fi
6285   $rm conftest*
6286
6287fi
6288echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6289echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6290
6291if test x"$lt_prog_compiler_pic_works" = xyes; then
6292    case $lt_prog_compiler_pic in
6293     "" | " "*) ;;
6294     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6295     esac
6296else
6297    lt_prog_compiler_pic=
6298     lt_prog_compiler_can_build_shared=no
6299fi
6300
6301fi
6302case $host_os in
6303  # For platforms which do not support PIC, -DPIC is meaningless:
6304  *djgpp*)
6305    lt_prog_compiler_pic=
6306    ;;
6307  *)
6308    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6309    ;;
6310esac
6311
6312#
6313# Check to make sure the static flag actually works.
6314#
6315wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6316echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6317echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6318if test "${lt_prog_compiler_static_works+set}" = set; then
6319  echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321  lt_prog_compiler_static_works=no
6322   save_LDFLAGS="$LDFLAGS"
6323   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6324   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6325   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6326     # The linker can only warn and ignore the option if not recognized
6327     # So say no if there are warnings
6328     if test -s conftest.err; then
6329       # Append any errors to the config.log.
6330       cat conftest.err 1>&5
6331       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6332       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6333       if diff conftest.exp conftest.er2 >/dev/null; then
6334         lt_prog_compiler_static_works=yes
6335       fi
6336     else
6337       lt_prog_compiler_static_works=yes
6338     fi
6339   fi
6340   $rm conftest*
6341   LDFLAGS="$save_LDFLAGS"
6342
6343fi
6344echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6345echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6346
6347if test x"$lt_prog_compiler_static_works" = xyes; then
6348    :
6349else
6350    lt_prog_compiler_static=
6351fi
6352
6353
6354echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6355echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6356if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6357  echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359  lt_cv_prog_compiler_c_o=no
6360   $rm -r conftest 2>/dev/null
6361   mkdir conftest
6362   cd conftest
6363   mkdir out
6364   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6365
6366   lt_compiler_flag="-o out/conftest2.$ac_objext"
6367   # Insert the option either (1) after the last *FLAGS variable, or
6368   # (2) before a word containing "conftest.", or (3) at the end.
6369   # Note that $ac_compile itself does not contain backslashes and begins
6370   # with a dollar sign (not a hyphen), so the echo should work correctly.
6371   lt_compile=`echo "$ac_compile" | $SED \
6372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6374   -e 's:$: $lt_compiler_flag:'`
6375   (eval echo "\"\$as_me:6375: $lt_compile\"" >&5)
6376   (eval "$lt_compile" 2>out/conftest.err)
6377   ac_status=$?
6378   cat out/conftest.err >&5
6379   echo "$as_me:6379: \$? = $ac_status" >&5
6380   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6381   then
6382     # The compiler can only warn and ignore the option if not recognized
6383     # So say no if there are warnings
6384     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6385     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6386     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6387       lt_cv_prog_compiler_c_o=yes
6388     fi
6389   fi
6390   chmod u+w . 2>&5
6391   $rm conftest*
6392   # SGI C++ compiler will create directory out/ii_files/ for
6393   # template instantiation
6394   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6395   $rm out/* && rmdir out
6396   cd ..
6397   rmdir conftest
6398   $rm conftest*
6399
6400fi
6401echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6402echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6403
6404
6405hard_links="nottested"
6406if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6407  # do not overwrite the value of need_locks provided by the user
6408  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6409echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6410  hard_links=yes
6411  $rm conftest*
6412  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6413  touch conftest.a
6414  ln conftest.a conftest.b 2>&5 || hard_links=no
6415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6416  echo "$as_me:$LINENO: result: $hard_links" >&5
6417echo "${ECHO_T}$hard_links" >&6
6418  if test "$hard_links" = no; then
6419    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6420echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6421    need_locks=warn
6422  fi
6423else
6424  need_locks=no
6425fi
6426
6427echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6428echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6429
6430  runpath_var=
6431  allow_undefined_flag=
6432  enable_shared_with_static_runtimes=no
6433  archive_cmds=
6434  archive_expsym_cmds=
6435  old_archive_From_new_cmds=
6436  old_archive_from_expsyms_cmds=
6437  export_dynamic_flag_spec=
6438  whole_archive_flag_spec=
6439  thread_safe_flag_spec=
6440  hardcode_libdir_flag_spec=
6441  hardcode_libdir_flag_spec_ld=
6442  hardcode_libdir_separator=
6443  hardcode_direct=no
6444  hardcode_minus_L=no
6445  hardcode_shlibpath_var=unsupported
6446  link_all_deplibs=unknown
6447  hardcode_automatic=no
6448  module_cmds=
6449  module_expsym_cmds=
6450  always_export_symbols=no
6451  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6452  # include_expsyms should be a list of space-separated symbols to be *always*
6453  # included in the symbol list
6454  include_expsyms=
6455  # exclude_expsyms can be an extended regexp of symbols to exclude
6456  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6457  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6458  # as well as any symbol that contains `d'.
6459  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6460  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6461  # platforms (ab)use it in PIC code, but their linkers get confused if
6462  # the symbol is explicitly referenced.  Since portable code cannot
6463  # rely on this symbol name, it's probably fine to never include it in
6464  # preloaded symbol tables.
6465  extract_expsyms_cmds=
6466  # Just being paranoid about ensuring that cc_basename is set.
6467  for cc_temp in $compiler""; do
6468  case $cc_temp in
6469    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6470    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6471    \-*) ;;
6472    *) break;;
6473  esac
6474done
6475cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6476
6477  case $host_os in
6478  cygwin* | mingw* | pw32*)
6479    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6480    # When not using gcc, we currently assume that we are using
6481    # Microsoft Visual C++.
6482    if test "$GCC" != yes; then
6483      with_gnu_ld=no
6484    fi
6485    ;;
6486  interix*)
6487    # we just hope/assume this is gcc and not c89 (= MSVC++)
6488    with_gnu_ld=yes
6489    ;;
6490  openbsd*)
6491    with_gnu_ld=no
6492    ;;
6493  esac
6494
6495  ld_shlibs=yes
6496  if test "$with_gnu_ld" = yes; then
6497    # If archive_cmds runs LD, not CC, wlarc should be empty
6498    wlarc='${wl}'
6499
6500    # Set some defaults for GNU ld with shared library support. These
6501    # are reset later if shared libraries are not supported. Putting them
6502    # here allows them to be overridden if necessary.
6503    runpath_var=LD_RUN_PATH
6504    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6505    export_dynamic_flag_spec='${wl}--export-dynamic'
6506    # ancient GNU ld didn't support --whole-archive et. al.
6507    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6508	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6509      else
6510  	whole_archive_flag_spec=
6511    fi
6512    supports_anon_versioning=no
6513    case `$LD -v 2>/dev/null` in
6514      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6515      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6516      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6517      *\ 2.11.*) ;; # other 2.11 versions
6518      *) supports_anon_versioning=yes ;;
6519    esac
6520
6521    # See if GNU ld supports shared libraries.
6522    case $host_os in
6523    aix3* | aix4* | aix5*)
6524      # On AIX/PPC, the GNU linker is very broken
6525      if test "$host_cpu" != ia64; then
6526	ld_shlibs=no
6527	cat <<EOF 1>&2
6528
6529*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6530*** to be unable to reliably create shared libraries on AIX.
6531*** Therefore, libtool is disabling shared libraries support.  If you
6532*** really care for shared libraries, you may want to modify your PATH
6533*** so that a non-GNU linker is found, and then restart.
6534
6535EOF
6536      fi
6537      ;;
6538
6539    amigaos*)
6540      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)'
6541      hardcode_libdir_flag_spec='-L$libdir'
6542      hardcode_minus_L=yes
6543
6544      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6545      # that the semantics of dynamic libraries on AmigaOS, at least up
6546      # to version 4, is to share data among multiple programs linked
6547      # with the same dynamic library.  Since this doesn't match the
6548      # behavior of shared libraries on other platforms, we can't use
6549      # them.
6550      ld_shlibs=no
6551      ;;
6552
6553    beos*)
6554      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6555	allow_undefined_flag=unsupported
6556	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6557	# support --undefined.  This deserves some investigation.  FIXME
6558	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6559      else
6560	ld_shlibs=no
6561      fi
6562      ;;
6563
6564    cygwin* | mingw* | pw32*)
6565      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6566      # as there is no search path for DLLs.
6567      hardcode_libdir_flag_spec='-L$libdir'
6568      allow_undefined_flag=unsupported
6569      always_export_symbols=no
6570      enable_shared_with_static_runtimes=yes
6571      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6572
6573      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6574        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6575	# If the export-symbols file already is a .def file (1st line
6576	# is EXPORTS), use it as is; otherwise, prepend...
6577	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6578	  cp $export_symbols $output_objdir/$soname.def;
6579	else
6580	  echo EXPORTS > $output_objdir/$soname.def;
6581	  cat $export_symbols >> $output_objdir/$soname.def;
6582	fi~
6583	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6584      else
6585	ld_shlibs=no
6586      fi
6587      ;;
6588
6589    interix3*)
6590      hardcode_direct=no
6591      hardcode_shlibpath_var=no
6592      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6593      export_dynamic_flag_spec='${wl}-E'
6594      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6595      # Instead, shared libraries are loaded at an image base (0x10000000 by
6596      # default) and relocated if they conflict, which is a slow very memory
6597      # consuming and fragmenting process.  To avoid this, we pick a random,
6598      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6599      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6600      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6601      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6602      ;;
6603
6604    linux*)
6605      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6606	tmp_addflag=
6607	case $cc_basename,$host_cpu in
6608	pgcc*)				# Portland Group C compiler
6609	  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'
6610	  tmp_addflag=' $pic_flag'
6611	  ;;
6612	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6613	  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'
6614	  tmp_addflag=' $pic_flag -Mnomain' ;;
6615	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6616	  tmp_addflag=' -i_dynamic' ;;
6617	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6618	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6619	ifc* | ifort*)			# Intel Fortran compiler
6620	  tmp_addflag=' -nofor_main' ;;
6621	esac
6622	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6623
6624	if test $supports_anon_versioning = yes; then
6625	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6626  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6627  $echo "local: *; };" >> $output_objdir/$libname.ver~
6628	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6629	fi
6630      else
6631	ld_shlibs=no
6632      fi
6633      ;;
6634
6635    netbsd*)
6636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6637	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6638	wlarc=
6639      else
6640	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6642      fi
6643      ;;
6644
6645    solaris*)
6646      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6647	ld_shlibs=no
6648	cat <<EOF 1>&2
6649
6650*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6651*** create shared libraries on Solaris systems.  Therefore, libtool
6652*** is disabling shared libraries support.  We urge you to upgrade GNU
6653*** binutils to release 2.9.1 or newer.  Another option is to modify
6654*** your PATH or compiler configuration so that the native linker is
6655*** used, and then restart.
6656
6657EOF
6658      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661      else
6662	ld_shlibs=no
6663      fi
6664      ;;
6665
6666    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6667      case `$LD -v 2>&1` in
6668        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6669	ld_shlibs=no
6670	cat <<_LT_EOF 1>&2
6671
6672*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6673*** reliably create shared libraries on SCO systems.  Therefore, libtool
6674*** is disabling shared libraries support.  We urge you to upgrade GNU
6675*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6676*** your PATH or compiler configuration so that the native linker is
6677*** used, and then restart.
6678
6679_LT_EOF
6680	;;
6681	*)
6682	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6683	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6684	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6685	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6686	  else
6687	    ld_shlibs=no
6688	  fi
6689	;;
6690      esac
6691      ;;
6692
6693    sunos4*)
6694      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6695      wlarc=
6696      hardcode_direct=yes
6697      hardcode_shlibpath_var=no
6698      ;;
6699
6700    *)
6701      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6702	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6704      else
6705	ld_shlibs=no
6706      fi
6707      ;;
6708    esac
6709
6710    if test "$ld_shlibs" = no; then
6711      runpath_var=
6712      hardcode_libdir_flag_spec=
6713      export_dynamic_flag_spec=
6714      whole_archive_flag_spec=
6715    fi
6716  else
6717    # PORTME fill in a description of your system's linker (not GNU ld)
6718    case $host_os in
6719    aix3*)
6720      allow_undefined_flag=unsupported
6721      always_export_symbols=yes
6722      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'
6723      # Note: this linker hardcodes the directories in LIBPATH if there
6724      # are no directories specified by -L.
6725      hardcode_minus_L=yes
6726      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6727	# Neither direct hardcoding nor static linking is supported with a
6728	# broken collect2.
6729	hardcode_direct=unsupported
6730      fi
6731      ;;
6732
6733    aix4* | aix5*)
6734      if test "$host_cpu" = ia64; then
6735	# On IA64, the linker does run time linking by default, so we don't
6736	# have to do anything special.
6737	aix_use_runtimelinking=no
6738	exp_sym_flag='-Bexport'
6739	no_entry_flag=""
6740      else
6741	# If we're using GNU nm, then we don't want the "-C" option.
6742	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6743	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6744	  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'
6745	else
6746	  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'
6747	fi
6748	aix_use_runtimelinking=no
6749
6750	# Test if we are trying to use run time linking or normal
6751	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6752	# need to do runtime linking.
6753	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6754	  for ld_flag in $LDFLAGS; do
6755  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6756  	    aix_use_runtimelinking=yes
6757  	    break
6758  	  fi
6759	  done
6760	  ;;
6761	esac
6762
6763	exp_sym_flag='-bexport'
6764	no_entry_flag='-bnoentry'
6765      fi
6766
6767      # When large executables or shared objects are built, AIX ld can
6768      # have problems creating the table of contents.  If linking a library
6769      # or program results in "error TOC overflow" add -mminimal-toc to
6770      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6771      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6772
6773      archive_cmds=''
6774      hardcode_direct=yes
6775      hardcode_libdir_separator=':'
6776      link_all_deplibs=yes
6777
6778      if test "$GCC" = yes; then
6779	case $host_os in aix4.[012]|aix4.[012].*)
6780	# We only want to do this on AIX 4.2 and lower, the check
6781	# below for broken collect2 doesn't work under 4.3+
6782	  collect2name=`${CC} -print-prog-name=collect2`
6783	  if test -f "$collect2name" && \
6784  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6785	  then
6786  	  # We have reworked collect2
6787  	  hardcode_direct=yes
6788	  else
6789  	  # We have old collect2
6790  	  hardcode_direct=unsupported
6791  	  # It fails to find uninstalled libraries when the uninstalled
6792  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6793  	  # to unsupported forces relinking
6794  	  hardcode_minus_L=yes
6795  	  hardcode_libdir_flag_spec='-L$libdir'
6796  	  hardcode_libdir_separator=
6797	  fi
6798	  ;;
6799	esac
6800	shared_flag='-shared'
6801	if test "$aix_use_runtimelinking" = yes; then
6802	  shared_flag="$shared_flag "'${wl}-G'
6803	fi
6804      else
6805	# not using gcc
6806	if test "$host_cpu" = ia64; then
6807  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6808  	# chokes on -Wl,-G. The following line is correct:
6809	  shared_flag='-G'
6810	else
6811	  if test "$aix_use_runtimelinking" = yes; then
6812	    shared_flag='${wl}-G'
6813	  else
6814	    shared_flag='${wl}-bM:SRE'
6815	  fi
6816	fi
6817      fi
6818
6819      # It seems that -bexpall does not export symbols beginning with
6820      # underscore (_), so it is better to generate a list of symbols to export.
6821      always_export_symbols=yes
6822      if test "$aix_use_runtimelinking" = yes; then
6823	# Warning - without using the other runtime loading flags (-brtl),
6824	# -berok will link without error, but may produce a broken library.
6825	allow_undefined_flag='-berok'
6826       # Determine the default libpath from the value encoded in an empty executable.
6827       cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833
6834int
6835main ()
6836{
6837
6838  ;
6839  return 0;
6840}
6841_ACEOF
6842rm -f conftest.$ac_objext conftest$ac_exeext
6843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844  (eval $ac_link) 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } &&
6851	 { ac_try='test -z "$ac_c_werror_flag"
6852			 || test ! -s conftest.err'
6853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854  (eval $ac_try) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); }; } &&
6858	 { ac_try='test -s conftest$ac_exeext'
6859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860  (eval $ac_try) 2>&5
6861  ac_status=$?
6862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863  (exit $ac_status); }; }; then
6864
6865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6866}'`
6867# Check for a 64-bit object if we didn't find anything.
6868if 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; }
6869}'`; fi
6870else
6871  echo "$as_me: failed program was:" >&5
6872sed 's/^/| /' conftest.$ac_ext >&5
6873
6874fi
6875rm -f conftest.err conftest.$ac_objext \
6876      conftest$ac_exeext conftest.$ac_ext
6877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6878
6879       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6880	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6881       else
6882	if test "$host_cpu" = ia64; then
6883	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6884	  allow_undefined_flag="-z nodefs"
6885	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6886	else
6887	 # Determine the default libpath from the value encoded in an empty executable.
6888	 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894
6895int
6896main ()
6897{
6898
6899  ;
6900  return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext conftest$ac_exeext
6904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905  (eval $ac_link) 2>conftest.er1
6906  ac_status=$?
6907  grep -v '^ *+' conftest.er1 >conftest.err
6908  rm -f conftest.er1
6909  cat conftest.err >&5
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); } &&
6912	 { ac_try='test -z "$ac_c_werror_flag"
6913			 || test ! -s conftest.err'
6914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915  (eval $ac_try) 2>&5
6916  ac_status=$?
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); }; } &&
6919	 { ac_try='test -s conftest$ac_exeext'
6920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921  (eval $ac_try) 2>&5
6922  ac_status=$?
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); }; }; then
6925
6926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6927}'`
6928# Check for a 64-bit object if we didn't find anything.
6929if 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; }
6930}'`; fi
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935fi
6936rm -f conftest.err conftest.$ac_objext \
6937      conftest$ac_exeext conftest.$ac_ext
6938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6939
6940	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6941	  # Warning - without using the other run time loading flags,
6942	  # -berok will link without error, but may produce a broken library.
6943	  no_undefined_flag=' ${wl}-bernotok'
6944	  allow_undefined_flag=' ${wl}-berok'
6945	  # Exported symbols can be pulled into shared objects from archives
6946	  whole_archive_flag_spec='$convenience'
6947	  archive_cmds_need_lc=yes
6948	  # This is similar to how AIX traditionally builds its shared libraries.
6949	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6950	fi
6951      fi
6952      ;;
6953
6954    amigaos*)
6955      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)'
6956      hardcode_libdir_flag_spec='-L$libdir'
6957      hardcode_minus_L=yes
6958      # see comment about different semantics on the GNU ld section
6959      ld_shlibs=no
6960      ;;
6961
6962    bsdi[45]*)
6963      export_dynamic_flag_spec=-rdynamic
6964      ;;
6965
6966    cygwin* | mingw* | pw32*)
6967      # When not using gcc, we currently assume that we are using
6968      # Microsoft Visual C++.
6969      # hardcode_libdir_flag_spec is actually meaningless, as there is
6970      # no search path for DLLs.
6971      hardcode_libdir_flag_spec=' '
6972      allow_undefined_flag=unsupported
6973      # Tell ltmain to make .lib files, not .a files.
6974      libext=lib
6975      # Tell ltmain to make .dll files, not .so files.
6976      shrext_cmds=".dll"
6977      # FIXME: Setting linknames here is a bad hack.
6978      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6979      # The linker will automatically build a .lib file if we build a DLL.
6980      old_archive_From_new_cmds='true'
6981      # FIXME: Should let the user specify the lib program.
6982      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6983      fix_srcfile_path='`cygpath -w "$srcfile"`'
6984      enable_shared_with_static_runtimes=yes
6985      ;;
6986
6987    darwin* | rhapsody*)
6988      case $host_os in
6989        rhapsody* | darwin1.[012])
6990         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6991         ;;
6992       *) # Darwin 1.3 on
6993         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6994           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6995         else
6996           case ${MACOSX_DEPLOYMENT_TARGET} in
6997             10.[012])
6998               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6999               ;;
7000             10.*)
7001               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7002               ;;
7003           esac
7004         fi
7005         ;;
7006      esac
7007      archive_cmds_need_lc=no
7008      hardcode_direct=no
7009      hardcode_automatic=yes
7010      hardcode_shlibpath_var=unsupported
7011      whole_archive_flag_spec=''
7012      link_all_deplibs=yes
7013    if test "$GCC" = yes ; then
7014    	output_verbose_link_cmd='echo'
7015        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7016      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7017      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7018      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}'
7019      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}'
7020    else
7021      case $cc_basename in
7022        xlc*)
7023         output_verbose_link_cmd='echo'
7024         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7025         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7026          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7027         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}'
7028          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}'
7029          ;;
7030       *)
7031         ld_shlibs=no
7032          ;;
7033      esac
7034    fi
7035      ;;
7036
7037    dgux*)
7038      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7039      hardcode_libdir_flag_spec='-L$libdir'
7040      hardcode_shlibpath_var=no
7041      ;;
7042
7043    freebsd1*)
7044      ld_shlibs=no
7045      ;;
7046
7047    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7048    # support.  Future versions do this automatically, but an explicit c++rt0.o
7049    # does not break anything, and helps significantly (at the cost of a little
7050    # extra space).
7051    freebsd2.2*)
7052      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7053      hardcode_libdir_flag_spec='-R$libdir'
7054      hardcode_direct=yes
7055      hardcode_shlibpath_var=no
7056      ;;
7057
7058    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7059    freebsd2*)
7060      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7061      hardcode_direct=yes
7062      hardcode_minus_L=yes
7063      hardcode_shlibpath_var=no
7064      ;;
7065
7066    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7067    freebsd* | kfreebsd*-gnu | dragonfly*)
7068      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7069      hardcode_libdir_flag_spec='-R$libdir'
7070      hardcode_direct=yes
7071      hardcode_shlibpath_var=no
7072      ;;
7073
7074    hpux9*)
7075      if test "$GCC" = yes; then
7076	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'
7077      else
7078	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'
7079      fi
7080      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7081      hardcode_libdir_separator=:
7082      hardcode_direct=yes
7083
7084      # hardcode_minus_L: Not really in the search PATH,
7085      # but as the default location of the library.
7086      hardcode_minus_L=yes
7087      export_dynamic_flag_spec='${wl}-E'
7088      ;;
7089
7090    hpux10*)
7091      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7092	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7093      else
7094	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7095      fi
7096      if test "$with_gnu_ld" = no; then
7097	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7098	hardcode_libdir_separator=:
7099
7100	hardcode_direct=yes
7101	export_dynamic_flag_spec='${wl}-E'
7102
7103	# hardcode_minus_L: Not really in the search PATH,
7104	# but as the default location of the library.
7105	hardcode_minus_L=yes
7106      fi
7107      ;;
7108
7109    hpux11*)
7110      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7111	case $host_cpu in
7112	hppa*64*)
7113	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7114	  ;;
7115	ia64*)
7116	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7117	  ;;
7118	*)
7119	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7120	  ;;
7121	esac
7122      else
7123	case $host_cpu in
7124	hppa*64*)
7125	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7126	  ;;
7127	ia64*)
7128	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7129	  ;;
7130	*)
7131	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7132	  ;;
7133	esac
7134      fi
7135      if test "$with_gnu_ld" = no; then
7136	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7137	hardcode_libdir_separator=:
7138
7139	case $host_cpu in
7140	hppa*64*|ia64*)
7141	  hardcode_libdir_flag_spec_ld='+b $libdir'
7142	  hardcode_direct=no
7143	  hardcode_shlibpath_var=no
7144	  ;;
7145	*)
7146	  hardcode_direct=yes
7147	  export_dynamic_flag_spec='${wl}-E'
7148
7149	  # hardcode_minus_L: Not really in the search PATH,
7150	  # but as the default location of the library.
7151	  hardcode_minus_L=yes
7152	  ;;
7153	esac
7154      fi
7155      ;;
7156
7157    irix5* | irix6* | nonstopux*)
7158      if test "$GCC" = yes; then
7159	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'
7160      else
7161	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'
7162	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7163      fi
7164      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7165      hardcode_libdir_separator=:
7166      link_all_deplibs=yes
7167      ;;
7168
7169    netbsd*)
7170      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7171	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7172      else
7173	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7174      fi
7175      hardcode_libdir_flag_spec='-R$libdir'
7176      hardcode_direct=yes
7177      hardcode_shlibpath_var=no
7178      ;;
7179
7180    newsos6)
7181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7182      hardcode_direct=yes
7183      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7184      hardcode_libdir_separator=:
7185      hardcode_shlibpath_var=no
7186      ;;
7187
7188    openbsd*)
7189      hardcode_direct=yes
7190      hardcode_shlibpath_var=no
7191      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7192	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7193	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7194	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7195	export_dynamic_flag_spec='${wl}-E'
7196      else
7197       case $host_os in
7198	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7199	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7200	   hardcode_libdir_flag_spec='-R$libdir'
7201	   ;;
7202	 *)
7203	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7204	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7205	   ;;
7206       esac
7207      fi
7208      ;;
7209
7210    os2*)
7211      hardcode_libdir_flag_spec='-L$libdir'
7212      hardcode_minus_L=yes
7213      allow_undefined_flag=unsupported
7214      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'
7215      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7216      ;;
7217
7218    osf3*)
7219      if test "$GCC" = yes; then
7220	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7221	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'
7222      else
7223	allow_undefined_flag=' -expect_unresolved \*'
7224	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'
7225      fi
7226      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7227      hardcode_libdir_separator=:
7228      ;;
7229
7230    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7231      if test "$GCC" = yes; then
7232	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7233	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'
7234	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7235      else
7236	allow_undefined_flag=' -expect_unresolved \*'
7237	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'
7238	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7239	$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'
7240
7241	# Both c and cxx compiler support -rpath directly
7242	hardcode_libdir_flag_spec='-rpath $libdir'
7243      fi
7244      hardcode_libdir_separator=:
7245      ;;
7246
7247    solaris*)
7248      no_undefined_flag=' -z text'
7249      if test "$GCC" = yes; then
7250	wlarc='${wl}'
7251	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7252	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7253	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7254      else
7255	wlarc=''
7256	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7258  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7259      fi
7260      hardcode_libdir_flag_spec='-R$libdir'
7261      hardcode_shlibpath_var=no
7262      case $host_os in
7263      solaris2.[0-5] | solaris2.[0-5].*) ;;
7264      *)
7265 	# The compiler driver will combine linker options so we
7266 	# cannot just pass the convience library names through
7267 	# without $wl, iff we do not link with $LD.
7268 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7269 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7270 	case $wlarc in
7271 	'')
7272 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7273 	*)
7274 	  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' ;;
7275 	esac ;;
7276      esac
7277      link_all_deplibs=yes
7278      ;;
7279
7280    sunos4*)
7281      if test "x$host_vendor" = xsequent; then
7282	# Use $CC to link under sequent, because it throws in some extra .o
7283	# files that make .init and .fini sections work.
7284	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7285      else
7286	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7287      fi
7288      hardcode_libdir_flag_spec='-L$libdir'
7289      hardcode_direct=yes
7290      hardcode_minus_L=yes
7291      hardcode_shlibpath_var=no
7292      ;;
7293
7294    sysv4)
7295      case $host_vendor in
7296	sni)
7297	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7298	  hardcode_direct=yes # is this really true???
7299	;;
7300	siemens)
7301	  ## LD is ld it makes a PLAMLIB
7302	  ## CC just makes a GrossModule.
7303	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7304	  reload_cmds='$CC -r -o $output$reload_objs'
7305	  hardcode_direct=no
7306        ;;
7307	motorola)
7308	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7310	;;
7311      esac
7312      runpath_var='LD_RUN_PATH'
7313      hardcode_shlibpath_var=no
7314      ;;
7315
7316    sysv4.3*)
7317      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318      hardcode_shlibpath_var=no
7319      export_dynamic_flag_spec='-Bexport'
7320      ;;
7321
7322    sysv4*MP*)
7323      if test -d /usr/nec; then
7324	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325	hardcode_shlibpath_var=no
7326	runpath_var=LD_RUN_PATH
7327	hardcode_runpath_var=yes
7328	ld_shlibs=yes
7329      fi
7330      ;;
7331
7332    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7333      no_undefined_flag='${wl}-z,text'
7334      archive_cmds_need_lc=no
7335      hardcode_shlibpath_var=no
7336      runpath_var='LD_RUN_PATH'
7337
7338      if test "$GCC" = yes; then
7339	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7340	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7341      else
7342	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344      fi
7345      ;;
7346
7347    sysv5* | sco3.2v5* | sco5v6*)
7348      # Note: We can NOT use -z defs as we might desire, because we do not
7349      # link with -lc, and that would cause any symbols used from libc to
7350      # always be unresolved, which means just about no library would
7351      # ever link correctly.  If we're not using GNU ld we use -z text
7352      # though, which does catch some bad symbols but isn't as heavy-handed
7353      # as -z defs.
7354      no_undefined_flag='${wl}-z,text'
7355      allow_undefined_flag='${wl}-z,nodefs'
7356      archive_cmds_need_lc=no
7357      hardcode_shlibpath_var=no
7358      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7359      hardcode_libdir_separator=':'
7360      link_all_deplibs=yes
7361      export_dynamic_flag_spec='${wl}-Bexport'
7362      runpath_var='LD_RUN_PATH'
7363
7364      if test "$GCC" = yes; then
7365	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7366	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7367      else
7368	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7369	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370      fi
7371      ;;
7372
7373    uts4*)
7374      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375      hardcode_libdir_flag_spec='-L$libdir'
7376      hardcode_shlibpath_var=no
7377      ;;
7378
7379    *)
7380      ld_shlibs=no
7381      ;;
7382    esac
7383  fi
7384
7385echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7386echo "${ECHO_T}$ld_shlibs" >&6
7387test "$ld_shlibs" = no && can_build_shared=no
7388
7389#
7390# Do we need to explicitly link libc?
7391#
7392case "x$archive_cmds_need_lc" in
7393x|xyes)
7394  # Assume -lc should be added
7395  archive_cmds_need_lc=yes
7396
7397  if test "$enable_shared" = yes && test "$GCC" = yes; then
7398    case $archive_cmds in
7399    *'~'*)
7400      # FIXME: we may have to deal with multi-command sequences.
7401      ;;
7402    '$CC '*)
7403      # Test whether the compiler implicitly links with -lc since on some
7404      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7405      # to ld, don't add -lc before -lgcc.
7406      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7407echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7408      $rm conftest*
7409      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7410
7411      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412  (eval $ac_compile) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } 2>conftest.err; then
7416        soname=conftest
7417        lib=conftest
7418        libobjs=conftest.$ac_objext
7419        deplibs=
7420        wl=$lt_prog_compiler_wl
7421	pic_flag=$lt_prog_compiler_pic
7422        compiler_flags=-v
7423        linker_flags=-v
7424        verstring=
7425        output_objdir=.
7426        libname=conftest
7427        lt_save_allow_undefined_flag=$allow_undefined_flag
7428        allow_undefined_flag=
7429        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7430  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7431  ac_status=$?
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); }
7434        then
7435	  archive_cmds_need_lc=no
7436        else
7437	  archive_cmds_need_lc=yes
7438        fi
7439        allow_undefined_flag=$lt_save_allow_undefined_flag
7440      else
7441        cat conftest.err 1>&5
7442      fi
7443      $rm conftest*
7444      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7445echo "${ECHO_T}$archive_cmds_need_lc" >&6
7446      ;;
7447    esac
7448  fi
7449  ;;
7450esac
7451
7452echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7453echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7454library_names_spec=
7455libname_spec='lib$name'
7456soname_spec=
7457shrext_cmds=".so"
7458postinstall_cmds=
7459postuninstall_cmds=
7460finish_cmds=
7461finish_eval=
7462shlibpath_var=
7463shlibpath_overrides_runpath=unknown
7464version_type=none
7465dynamic_linker="$host_os ld.so"
7466sys_lib_dlsearch_path_spec="/lib /usr/lib"
7467if test "$GCC" = yes; then
7468  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7469  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7470    # if the path contains ";" then we assume it to be the separator
7471    # otherwise default to the standard path separator (i.e. ":") - it is
7472    # assumed that no part of a normal pathname contains ";" but that should
7473    # okay in the real world where ";" in dirpaths is itself problematic.
7474    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7475  else
7476    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7477  fi
7478else
7479  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7480fi
7481need_lib_prefix=unknown
7482hardcode_into_libs=no
7483
7484# when you set need_version to no, make sure it does not cause -set_version
7485# flags to be left without arguments
7486need_version=unknown
7487
7488case $host_os in
7489aix3*)
7490  version_type=linux
7491  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7492  shlibpath_var=LIBPATH
7493
7494  # AIX 3 has no versioning support, so we append a major version to the name.
7495  soname_spec='${libname}${release}${shared_ext}$major'
7496  ;;
7497
7498aix4* | aix5*)
7499  version_type=linux
7500  need_lib_prefix=no
7501  need_version=no
7502  hardcode_into_libs=yes
7503  if test "$host_cpu" = ia64; then
7504    # AIX 5 supports IA64
7505    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7506    shlibpath_var=LD_LIBRARY_PATH
7507  else
7508    # With GCC up to 2.95.x, collect2 would create an import file
7509    # for dependence libraries.  The import file would start with
7510    # the line `#! .'.  This would cause the generated library to
7511    # depend on `.', always an invalid library.  This was fixed in
7512    # development snapshots of GCC prior to 3.0.
7513    case $host_os in
7514      aix4 | aix4.[01] | aix4.[01].*)
7515      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7516	   echo ' yes '
7517	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7518	:
7519      else
7520	can_build_shared=no
7521      fi
7522      ;;
7523    esac
7524    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7525    # soname into executable. Probably we can add versioning support to
7526    # collect2, so additional links can be useful in future.
7527    if test "$aix_use_runtimelinking" = yes; then
7528      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7529      # instead of lib<name>.a to let people know that these are not
7530      # typical AIX shared libraries.
7531      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7532    else
7533      # We preserve .a as extension for shared libraries through AIX4.2
7534      # and later when we are not doing run time linking.
7535      library_names_spec='${libname}${release}.a $libname.a'
7536      soname_spec='${libname}${release}${shared_ext}$major'
7537    fi
7538    shlibpath_var=LIBPATH
7539  fi
7540  ;;
7541
7542amigaos*)
7543  library_names_spec='$libname.ixlibrary $libname.a'
7544  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7545  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'
7546  ;;
7547
7548beos*)
7549  library_names_spec='${libname}${shared_ext}'
7550  dynamic_linker="$host_os ld.so"
7551  shlibpath_var=LIBRARY_PATH
7552  ;;
7553
7554bsdi[45]*)
7555  version_type=linux
7556  need_version=no
7557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558  soname_spec='${libname}${release}${shared_ext}$major'
7559  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7560  shlibpath_var=LD_LIBRARY_PATH
7561  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7562  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7563  # the default ld.so.conf also contains /usr/contrib/lib and
7564  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7565  # libtool to hard-code these into programs
7566  ;;
7567
7568cygwin* | mingw* | pw32*)
7569  version_type=windows
7570  shrext_cmds=".dll"
7571  need_version=no
7572  need_lib_prefix=no
7573
7574  case $GCC,$host_os in
7575  yes,cygwin* | yes,mingw* | yes,pw32*)
7576    library_names_spec='$libname.dll.a'
7577    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7578    postinstall_cmds='base_file=`basename \${file}`~
7579      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7580      dldir=$destdir/`dirname \$dlpath`~
7581      test -d \$dldir || mkdir -p \$dldir~
7582      $install_prog $dir/$dlname \$dldir/$dlname~
7583      chmod a+x \$dldir/$dlname'
7584    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7585      dlpath=$dir/\$dldll~
7586       $rm \$dlpath'
7587    shlibpath_overrides_runpath=yes
7588
7589    case $host_os in
7590    cygwin*)
7591      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7592      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7593      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7594      ;;
7595    mingw*)
7596      # MinGW DLLs use traditional 'lib' prefix
7597      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7600        # It is most probably a Windows format PATH printed by
7601        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7602        # path with ; separators, and with drive letters. We can handle the
7603        # drive letters (cygwin fileutils understands them), so leave them,
7604        # especially as we might pass files found there to a mingw objdump,
7605        # which wouldn't understand a cygwinified path. Ahh.
7606        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7607      else
7608        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7609      fi
7610      ;;
7611    pw32*)
7612      # pw32 DLLs use 'pw' prefix rather than 'lib'
7613      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7614      ;;
7615    esac
7616    ;;
7617
7618  linux*)
7619    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7620      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7621      supports_anon_versioning=no
7622      case `$LD -v 2>/dev/null` in
7623        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7624        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7625        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7626        *\ 2.11.*) ;; # other 2.11 versions
7627        *) supports_anon_versioning=yes ;;
7628      esac
7629      if test $supports_anon_versioning = yes; then
7630        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7631cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7632$echo "local: *; };" >> $output_objdir/$libname.ver~
7633        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7634      else
7635        $archive_expsym_cmds="$archive_cmds"
7636      fi
7637    else
7638      ld_shlibs=no
7639    fi
7640    ;;
7641
7642  *)
7643    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7644    ;;
7645  esac
7646  dynamic_linker='Win32 ld.exe'
7647  # FIXME: first we should search . and the directory the executable is in
7648  shlibpath_var=PATH
7649  ;;
7650
7651darwin* | rhapsody*)
7652  dynamic_linker="$host_os dyld"
7653  version_type=darwin
7654  need_lib_prefix=no
7655  need_version=no
7656  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7657  soname_spec='${libname}${release}${major}$shared_ext'
7658  shlibpath_overrides_runpath=yes
7659  shlibpath_var=DYLD_LIBRARY_PATH
7660  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7661  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7662  if test "$GCC" = yes; then
7663    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"`
7664  else
7665    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7666  fi
7667  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7668  ;;
7669
7670dgux*)
7671  version_type=linux
7672  need_lib_prefix=no
7673  need_version=no
7674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7675  soname_spec='${libname}${release}${shared_ext}$major'
7676  shlibpath_var=LD_LIBRARY_PATH
7677  ;;
7678
7679freebsd1*)
7680  dynamic_linker=no
7681  ;;
7682
7683kfreebsd*-gnu)
7684  version_type=linux
7685  need_lib_prefix=no
7686  need_version=no
7687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7688  soname_spec='${libname}${release}${shared_ext}$major'
7689  shlibpath_var=LD_LIBRARY_PATH
7690  shlibpath_overrides_runpath=no
7691  hardcode_into_libs=yes
7692  dynamic_linker='GNU ld.so'
7693  ;;
7694
7695freebsd* | dragonfly*)
7696  # DragonFly does not have aout.  When/if they implement a new
7697  # versioning mechanism, adjust this.
7698  if test -x /usr/bin/objformat; then
7699    objformat=`/usr/bin/objformat`
7700  else
7701    case $host_os in
7702    freebsd[123]*) objformat=aout ;;
7703    *) objformat=elf ;;
7704    esac
7705  fi
7706  # Handle Gentoo/FreeBSD as it was Linux
7707  case $host_vendor in
7708    gentoo)
7709      version_type=linux ;;
7710    *)
7711      version_type=freebsd-$objformat ;;
7712  esac
7713
7714  case $version_type in
7715    freebsd-elf*)
7716      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7717      need_version=no
7718      need_lib_prefix=no
7719      ;;
7720    freebsd-*)
7721      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7722      need_version=yes
7723      ;;
7724    linux)
7725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7726      soname_spec='${libname}${release}${shared_ext}$major'
7727      need_lib_prefix=no
7728      need_version=no
7729      ;;
7730  esac
7731  shlibpath_var=LD_LIBRARY_PATH
7732  case $host_os in
7733  freebsd2*)
7734    shlibpath_overrides_runpath=yes
7735    ;;
7736  freebsd3.[01]* | freebsdelf3.[01]*)
7737    shlibpath_overrides_runpath=yes
7738    hardcode_into_libs=yes
7739    ;;
7740  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7741  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7742    shlibpath_overrides_runpath=no
7743    hardcode_into_libs=yes
7744    ;;
7745  freebsd*) # from 4.6 on
7746    shlibpath_overrides_runpath=yes
7747    hardcode_into_libs=yes
7748    ;;
7749  esac
7750  ;;
7751
7752gnu*)
7753  version_type=linux
7754  need_lib_prefix=no
7755  need_version=no
7756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7757  soname_spec='${libname}${release}${shared_ext}$major'
7758  shlibpath_var=LD_LIBRARY_PATH
7759  hardcode_into_libs=yes
7760  ;;
7761
7762hpux9* | hpux10* | hpux11*)
7763  # Give a soname corresponding to the major version so that dld.sl refuses to
7764  # link against other versions.
7765  version_type=sunos
7766  need_lib_prefix=no
7767  need_version=no
7768  case $host_cpu in
7769  ia64*)
7770    shrext_cmds='.so'
7771    hardcode_into_libs=yes
7772    dynamic_linker="$host_os dld.so"
7773    shlibpath_var=LD_LIBRARY_PATH
7774    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7776    soname_spec='${libname}${release}${shared_ext}$major'
7777    if test "X$HPUX_IA64_MODE" = X32; then
7778      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7779    else
7780      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7781    fi
7782    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7783    ;;
7784   hppa*64*)
7785     shrext_cmds='.sl'
7786     hardcode_into_libs=yes
7787     dynamic_linker="$host_os dld.sl"
7788     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7789     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791     soname_spec='${libname}${release}${shared_ext}$major'
7792     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7793     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7794     ;;
7795   *)
7796    shrext_cmds='.sl'
7797    dynamic_linker="$host_os dld.sl"
7798    shlibpath_var=SHLIB_PATH
7799    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7801    soname_spec='${libname}${release}${shared_ext}$major'
7802    ;;
7803  esac
7804  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7805  postinstall_cmds='chmod 555 $lib'
7806  ;;
7807
7808interix3*)
7809  version_type=linux
7810  need_lib_prefix=no
7811  need_version=no
7812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7813  soname_spec='${libname}${release}${shared_ext}$major'
7814  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7815  shlibpath_var=LD_LIBRARY_PATH
7816  shlibpath_overrides_runpath=no
7817  hardcode_into_libs=yes
7818  ;;
7819
7820irix5* | irix6* | nonstopux*)
7821  case $host_os in
7822    nonstopux*) version_type=nonstopux ;;
7823    *)
7824	if test "$lt_cv_prog_gnu_ld" = yes; then
7825		version_type=linux
7826	else
7827		version_type=irix
7828	fi ;;
7829  esac
7830  need_lib_prefix=no
7831  need_version=no
7832  soname_spec='${libname}${release}${shared_ext}$major'
7833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7834  case $host_os in
7835  irix5* | nonstopux*)
7836    libsuff= shlibsuff=
7837    ;;
7838  *)
7839    case $LD in # libtool.m4 will add one of these switches to LD
7840    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7841      libsuff= shlibsuff= libmagic=32-bit;;
7842    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7843      libsuff=32 shlibsuff=N32 libmagic=N32;;
7844    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7845      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7846    *) libsuff= shlibsuff= libmagic=never-match;;
7847    esac
7848    ;;
7849  esac
7850  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7851  shlibpath_overrides_runpath=no
7852  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7853  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7854  hardcode_into_libs=yes
7855  ;;
7856
7857# No shared lib support for Linux oldld, aout, or coff.
7858linux*oldld* | linux*aout* | linux*coff*)
7859  dynamic_linker=no
7860  ;;
7861
7862# This must be Linux ELF.
7863linux*)
7864  version_type=linux
7865  need_lib_prefix=no
7866  need_version=no
7867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868  soname_spec='${libname}${release}${shared_ext}$major'
7869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7870  shlibpath_var=LD_LIBRARY_PATH
7871  shlibpath_overrides_runpath=no
7872  # This implies no fast_install, which is unacceptable.
7873  # Some rework will be needed to allow for fast_install
7874  # before this can be enabled.
7875  hardcode_into_libs=yes
7876
7877  # Append ld.so.conf contents to the search path
7878  if test -f /etc/ld.so.conf; then
7879    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' ' '`
7880    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7881  fi
7882
7883  # We used to test for /lib/ld.so.1 and disable shared libraries on
7884  # powerpc, because MkLinux only supported shared libraries with the
7885  # GNU dynamic linker.  Since this was broken with cross compilers,
7886  # most powerpc-linux boxes support dynamic linking these days and
7887  # people can always --disable-shared, the test was removed, and we
7888  # assume the GNU/Linux dynamic linker is in use.
7889  dynamic_linker='GNU/Linux ld.so'
7890  ;;
7891
7892knetbsd*-gnu)
7893  version_type=linux
7894  need_lib_prefix=no
7895  need_version=no
7896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7897  soname_spec='${libname}${release}${shared_ext}$major'
7898  shlibpath_var=LD_LIBRARY_PATH
7899  shlibpath_overrides_runpath=no
7900  hardcode_into_libs=yes
7901  dynamic_linker='GNU ld.so'
7902  ;;
7903
7904netbsd*)
7905  version_type=sunos
7906  need_lib_prefix=no
7907  need_version=no
7908  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7910    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7911    dynamic_linker='NetBSD (a.out) ld.so'
7912  else
7913    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7914    soname_spec='${libname}${release}${shared_ext}$major'
7915    dynamic_linker='NetBSD ld.elf_so'
7916  fi
7917  shlibpath_var=LD_LIBRARY_PATH
7918  shlibpath_overrides_runpath=yes
7919  hardcode_into_libs=yes
7920  ;;
7921
7922newsos6)
7923  version_type=linux
7924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925  shlibpath_var=LD_LIBRARY_PATH
7926  shlibpath_overrides_runpath=yes
7927  ;;
7928
7929nto-qnx*)
7930  version_type=linux
7931  need_lib_prefix=no
7932  need_version=no
7933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934  soname_spec='${libname}${release}${shared_ext}$major'
7935  shlibpath_var=LD_LIBRARY_PATH
7936  shlibpath_overrides_runpath=yes
7937  ;;
7938
7939openbsd*)
7940  version_type=sunos
7941  sys_lib_dlsearch_path_spec="/usr/lib"
7942  need_lib_prefix=no
7943  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7944  case $host_os in
7945    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7946    *)                         need_version=no  ;;
7947  esac
7948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950  shlibpath_var=LD_LIBRARY_PATH
7951  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7952    case $host_os in
7953      openbsd2.[89] | openbsd2.[89].*)
7954	shlibpath_overrides_runpath=no
7955	;;
7956      *)
7957	shlibpath_overrides_runpath=yes
7958	;;
7959      esac
7960  else
7961    shlibpath_overrides_runpath=yes
7962  fi
7963  ;;
7964
7965os2*)
7966  libname_spec='$name'
7967  shrext_cmds=".dll"
7968  need_lib_prefix=no
7969  library_names_spec='$libname${shared_ext} $libname.a'
7970  dynamic_linker='OS/2 ld.exe'
7971  shlibpath_var=LIBPATH
7972  ;;
7973
7974osf3* | osf4* | osf5*)
7975  version_type=osf
7976  need_lib_prefix=no
7977  need_version=no
7978  soname_spec='${libname}${release}${shared_ext}$major'
7979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980  shlibpath_var=LD_LIBRARY_PATH
7981  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7983  ;;
7984
7985solaris*)
7986  version_type=linux
7987  need_lib_prefix=no
7988  need_version=no
7989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990  soname_spec='${libname}${release}${shared_ext}$major'
7991  shlibpath_var=LD_LIBRARY_PATH
7992  shlibpath_overrides_runpath=yes
7993  hardcode_into_libs=yes
7994  # ldd complains unless libraries are executable
7995  postinstall_cmds='chmod +x $lib'
7996  ;;
7997
7998sunos4*)
7999  version_type=sunos
8000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8001  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8002  shlibpath_var=LD_LIBRARY_PATH
8003  shlibpath_overrides_runpath=yes
8004  if test "$with_gnu_ld" = yes; then
8005    need_lib_prefix=no
8006  fi
8007  need_version=yes
8008  ;;
8009
8010sysv4 | sysv4.3*)
8011  version_type=linux
8012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013  soname_spec='${libname}${release}${shared_ext}$major'
8014  shlibpath_var=LD_LIBRARY_PATH
8015  case $host_vendor in
8016    sni)
8017      shlibpath_overrides_runpath=no
8018      need_lib_prefix=no
8019      export_dynamic_flag_spec='${wl}-Blargedynsym'
8020      runpath_var=LD_RUN_PATH
8021      ;;
8022    siemens)
8023      need_lib_prefix=no
8024      ;;
8025    motorola)
8026      need_lib_prefix=no
8027      need_version=no
8028      shlibpath_overrides_runpath=no
8029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8030      ;;
8031  esac
8032  ;;
8033
8034sysv4*MP*)
8035  if test -d /usr/nec ;then
8036    version_type=linux
8037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8038    soname_spec='$libname${shared_ext}.$major'
8039    shlibpath_var=LD_LIBRARY_PATH
8040  fi
8041  ;;
8042
8043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8044  version_type=freebsd-elf
8045  need_lib_prefix=no
8046  need_version=no
8047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8048  soname_spec='${libname}${release}${shared_ext}$major'
8049  shlibpath_var=LD_LIBRARY_PATH
8050  hardcode_into_libs=yes
8051  if test "$with_gnu_ld" = yes; then
8052    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8053    shlibpath_overrides_runpath=no
8054  else
8055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8056    shlibpath_overrides_runpath=yes
8057    case $host_os in
8058      sco3.2v5*)
8059        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8060	;;
8061    esac
8062  fi
8063  sys_lib_dlsearch_path_spec='/usr/lib'
8064  ;;
8065
8066uts4*)
8067  version_type=linux
8068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069  soname_spec='${libname}${release}${shared_ext}$major'
8070  shlibpath_var=LD_LIBRARY_PATH
8071  ;;
8072
8073*)
8074  dynamic_linker=no
8075  ;;
8076esac
8077echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8078echo "${ECHO_T}$dynamic_linker" >&6
8079test "$dynamic_linker" = no && can_build_shared=no
8080
8081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8082if test "$GCC" = yes; then
8083  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8084fi
8085
8086echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8087echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8088hardcode_action=
8089if test -n "$hardcode_libdir_flag_spec" || \
8090   test -n "$runpath_var" || \
8091   test "X$hardcode_automatic" = "Xyes" ; then
8092
8093  # We can hardcode non-existant directories.
8094  if test "$hardcode_direct" != no &&
8095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8096     # have to relink, otherwise we might link with an installed library
8097     # when we should be linking with a yet-to-be-installed one
8098     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8099     test "$hardcode_minus_L" != no; then
8100    # Linking always hardcodes the temporary library directory.
8101    hardcode_action=relink
8102  else
8103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8104    hardcode_action=immediate
8105  fi
8106else
8107  # We cannot hardcode anything, or else we can only hardcode existing
8108  # directories.
8109  hardcode_action=unsupported
8110fi
8111echo "$as_me:$LINENO: result: $hardcode_action" >&5
8112echo "${ECHO_T}$hardcode_action" >&6
8113
8114if test "$hardcode_action" = relink; then
8115  # Fast installation is not supported
8116  enable_fast_install=no
8117elif test "$shlibpath_overrides_runpath" = yes ||
8118     test "$enable_shared" = no; then
8119  # Fast installation is not necessary
8120  enable_fast_install=needless
8121fi
8122
8123striplib=
8124old_striplib=
8125echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8126echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8127if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8128  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8129  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8130  echo "$as_me:$LINENO: result: yes" >&5
8131echo "${ECHO_T}yes" >&6
8132else
8133# FIXME - insert some real tests, host_os isn't really good enough
8134  case $host_os in
8135   darwin*)
8136       if test -n "$STRIP" ; then
8137         striplib="$STRIP -x"
8138         echo "$as_me:$LINENO: result: yes" >&5
8139echo "${ECHO_T}yes" >&6
8140       else
8141  echo "$as_me:$LINENO: result: no" >&5
8142echo "${ECHO_T}no" >&6
8143fi
8144       ;;
8145   *)
8146  echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
8148    ;;
8149  esac
8150fi
8151
8152if test "x$enable_dlopen" != xyes; then
8153  enable_dlopen=unknown
8154  enable_dlopen_self=unknown
8155  enable_dlopen_self_static=unknown
8156else
8157  lt_cv_dlopen=no
8158  lt_cv_dlopen_libs=
8159
8160  case $host_os in
8161  beos*)
8162    lt_cv_dlopen="load_add_on"
8163    lt_cv_dlopen_libs=
8164    lt_cv_dlopen_self=yes
8165    ;;
8166
8167  mingw* | pw32*)
8168    lt_cv_dlopen="LoadLibrary"
8169    lt_cv_dlopen_libs=
8170   ;;
8171
8172  cygwin*)
8173    lt_cv_dlopen="dlopen"
8174    lt_cv_dlopen_libs=
8175   ;;
8176
8177  darwin*)
8178  # if libdl is installed we need to link against it
8179    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8180echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8181if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  ac_check_lib_save_LIBS=$LIBS
8185LIBS="-ldl  $LIBS"
8186cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h.  */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h.  */
8192
8193/* Override any gcc2 internal prototype to avoid an error.  */
8194#ifdef __cplusplus
8195extern "C"
8196#endif
8197/* We use char because int might match the return type of a gcc2
8198   builtin and then its argument prototype would still apply.  */
8199char dlopen ();
8200int
8201main ()
8202{
8203dlopen ();
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210  (eval $ac_link) 2>conftest.er1
8211  ac_status=$?
8212  grep -v '^ *+' conftest.er1 >conftest.err
8213  rm -f conftest.er1
8214  cat conftest.err >&5
8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); } &&
8217	 { ac_try='test -z "$ac_c_werror_flag"
8218			 || test ! -s conftest.err'
8219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220  (eval $ac_try) 2>&5
8221  ac_status=$?
8222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223  (exit $ac_status); }; } &&
8224	 { ac_try='test -s conftest$ac_exeext'
8225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226  (eval $ac_try) 2>&5
8227  ac_status=$?
8228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229  (exit $ac_status); }; }; then
8230  ac_cv_lib_dl_dlopen=yes
8231else
8232  echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235ac_cv_lib_dl_dlopen=no
8236fi
8237rm -f conftest.err conftest.$ac_objext \
8238      conftest$ac_exeext conftest.$ac_ext
8239LIBS=$ac_check_lib_save_LIBS
8240fi
8241echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8242echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8243if test $ac_cv_lib_dl_dlopen = yes; then
8244  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8245else
8246
8247    lt_cv_dlopen="dyld"
8248    lt_cv_dlopen_libs=
8249    lt_cv_dlopen_self=yes
8250
8251fi
8252
8253   ;;
8254
8255  *)
8256    echo "$as_me:$LINENO: checking for shl_load" >&5
8257echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8258if test "${ac_cv_func_shl_load+set}" = set; then
8259  echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261  cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h.  */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h.  */
8267/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8268   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8269#define shl_load innocuous_shl_load
8270
8271/* System header to define __stub macros and hopefully few prototypes,
8272    which can conflict with char shl_load (); below.
8273    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274    <limits.h> exists even on freestanding compilers.  */
8275
8276#ifdef __STDC__
8277# include <limits.h>
8278#else
8279# include <assert.h>
8280#endif
8281
8282#undef shl_load
8283
8284/* Override any gcc2 internal prototype to avoid an error.  */
8285#ifdef __cplusplus
8286extern "C"
8287{
8288#endif
8289/* We use char because int might match the return type of a gcc2
8290   builtin and then its argument prototype would still apply.  */
8291char shl_load ();
8292/* The GNU C library defines this for functions which it implements
8293    to always fail with ENOSYS.  Some functions are actually named
8294    something starting with __ and the normal name is an alias.  */
8295#if defined (__stub_shl_load) || defined (__stub___shl_load)
8296choke me
8297#else
8298char (*f) () = shl_load;
8299#endif
8300#ifdef __cplusplus
8301}
8302#endif
8303
8304int
8305main ()
8306{
8307return f != shl_load;
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314  (eval $ac_link) 2>conftest.er1
8315  ac_status=$?
8316  grep -v '^ *+' conftest.er1 >conftest.err
8317  rm -f conftest.er1
8318  cat conftest.err >&5
8319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320  (exit $ac_status); } &&
8321	 { ac_try='test -z "$ac_c_werror_flag"
8322			 || test ! -s conftest.err'
8323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324  (eval $ac_try) 2>&5
8325  ac_status=$?
8326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327  (exit $ac_status); }; } &&
8328	 { ac_try='test -s conftest$ac_exeext'
8329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330  (eval $ac_try) 2>&5
8331  ac_status=$?
8332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333  (exit $ac_status); }; }; then
8334  ac_cv_func_shl_load=yes
8335else
8336  echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339ac_cv_func_shl_load=no
8340fi
8341rm -f conftest.err conftest.$ac_objext \
8342      conftest$ac_exeext conftest.$ac_ext
8343fi
8344echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8345echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8346if test $ac_cv_func_shl_load = yes; then
8347  lt_cv_dlopen="shl_load"
8348else
8349  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8350echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8351if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8352  echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354  ac_check_lib_save_LIBS=$LIBS
8355LIBS="-ldld  $LIBS"
8356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h.  */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h.  */
8362
8363/* Override any gcc2 internal prototype to avoid an error.  */
8364#ifdef __cplusplus
8365extern "C"
8366#endif
8367/* We use char because int might match the return type of a gcc2
8368   builtin and then its argument prototype would still apply.  */
8369char shl_load ();
8370int
8371main ()
8372{
8373shl_load ();
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380  (eval $ac_link) 2>conftest.er1
8381  ac_status=$?
8382  grep -v '^ *+' conftest.er1 >conftest.err
8383  rm -f conftest.er1
8384  cat conftest.err >&5
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); } &&
8387	 { ac_try='test -z "$ac_c_werror_flag"
8388			 || test ! -s conftest.err'
8389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390  (eval $ac_try) 2>&5
8391  ac_status=$?
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); }; } &&
8394	 { ac_try='test -s conftest$ac_exeext'
8395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396  (eval $ac_try) 2>&5
8397  ac_status=$?
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); }; }; then
8400  ac_cv_lib_dld_shl_load=yes
8401else
8402  echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
8405ac_cv_lib_dld_shl_load=no
8406fi
8407rm -f conftest.err conftest.$ac_objext \
8408      conftest$ac_exeext conftest.$ac_ext
8409LIBS=$ac_check_lib_save_LIBS
8410fi
8411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8413if test $ac_cv_lib_dld_shl_load = yes; then
8414  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8415else
8416  echo "$as_me:$LINENO: checking for dlopen" >&5
8417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8418if test "${ac_cv_func_dlopen+set}" = set; then
8419  echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421  cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h.  */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h.  */
8427/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8428   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8429#define dlopen innocuous_dlopen
8430
8431/* System header to define __stub macros and hopefully few prototypes,
8432    which can conflict with char dlopen (); below.
8433    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8434    <limits.h> exists even on freestanding compilers.  */
8435
8436#ifdef __STDC__
8437# include <limits.h>
8438#else
8439# include <assert.h>
8440#endif
8441
8442#undef dlopen
8443
8444/* Override any gcc2 internal prototype to avoid an error.  */
8445#ifdef __cplusplus
8446extern "C"
8447{
8448#endif
8449/* We use char because int might match the return type of a gcc2
8450   builtin and then its argument prototype would still apply.  */
8451char dlopen ();
8452/* The GNU C library defines this for functions which it implements
8453    to always fail with ENOSYS.  Some functions are actually named
8454    something starting with __ and the normal name is an alias.  */
8455#if defined (__stub_dlopen) || defined (__stub___dlopen)
8456choke me
8457#else
8458char (*f) () = dlopen;
8459#endif
8460#ifdef __cplusplus
8461}
8462#endif
8463
8464int
8465main ()
8466{
8467return f != dlopen;
8468  ;
8469  return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474  (eval $ac_link) 2>conftest.er1
8475  ac_status=$?
8476  grep -v '^ *+' conftest.er1 >conftest.err
8477  rm -f conftest.er1
8478  cat conftest.err >&5
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); } &&
8481	 { ac_try='test -z "$ac_c_werror_flag"
8482			 || test ! -s conftest.err'
8483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484  (eval $ac_try) 2>&5
8485  ac_status=$?
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); }; } &&
8488	 { ac_try='test -s conftest$ac_exeext'
8489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490  (eval $ac_try) 2>&5
8491  ac_status=$?
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); }; }; then
8494  ac_cv_func_dlopen=yes
8495else
8496  echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499ac_cv_func_dlopen=no
8500fi
8501rm -f conftest.err conftest.$ac_objext \
8502      conftest$ac_exeext conftest.$ac_ext
8503fi
8504echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8505echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8506if test $ac_cv_func_dlopen = yes; then
8507  lt_cv_dlopen="dlopen"
8508else
8509  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8510echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8511if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8512  echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514  ac_check_lib_save_LIBS=$LIBS
8515LIBS="-ldl  $LIBS"
8516cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h.  */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h.  */
8522
8523/* Override any gcc2 internal prototype to avoid an error.  */
8524#ifdef __cplusplus
8525extern "C"
8526#endif
8527/* We use char because int might match the return type of a gcc2
8528   builtin and then its argument prototype would still apply.  */
8529char dlopen ();
8530int
8531main ()
8532{
8533dlopen ();
8534  ;
8535  return 0;
8536}
8537_ACEOF
8538rm -f conftest.$ac_objext conftest$ac_exeext
8539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540  (eval $ac_link) 2>conftest.er1
8541  ac_status=$?
8542  grep -v '^ *+' conftest.er1 >conftest.err
8543  rm -f conftest.er1
8544  cat conftest.err >&5
8545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546  (exit $ac_status); } &&
8547	 { ac_try='test -z "$ac_c_werror_flag"
8548			 || test ! -s conftest.err'
8549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550  (eval $ac_try) 2>&5
8551  ac_status=$?
8552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553  (exit $ac_status); }; } &&
8554	 { ac_try='test -s conftest$ac_exeext'
8555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556  (eval $ac_try) 2>&5
8557  ac_status=$?
8558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559  (exit $ac_status); }; }; then
8560  ac_cv_lib_dl_dlopen=yes
8561else
8562  echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565ac_cv_lib_dl_dlopen=no
8566fi
8567rm -f conftest.err conftest.$ac_objext \
8568      conftest$ac_exeext conftest.$ac_ext
8569LIBS=$ac_check_lib_save_LIBS
8570fi
8571echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8572echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8573if test $ac_cv_lib_dl_dlopen = yes; then
8574  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8575else
8576  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8577echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8578if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8579  echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581  ac_check_lib_save_LIBS=$LIBS
8582LIBS="-lsvld  $LIBS"
8583cat >conftest.$ac_ext <<_ACEOF
8584/* confdefs.h.  */
8585_ACEOF
8586cat confdefs.h >>conftest.$ac_ext
8587cat >>conftest.$ac_ext <<_ACEOF
8588/* end confdefs.h.  */
8589
8590/* Override any gcc2 internal prototype to avoid an error.  */
8591#ifdef __cplusplus
8592extern "C"
8593#endif
8594/* We use char because int might match the return type of a gcc2
8595   builtin and then its argument prototype would still apply.  */
8596char dlopen ();
8597int
8598main ()
8599{
8600dlopen ();
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607  (eval $ac_link) 2>conftest.er1
8608  ac_status=$?
8609  grep -v '^ *+' conftest.er1 >conftest.err
8610  rm -f conftest.er1
8611  cat conftest.err >&5
8612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613  (exit $ac_status); } &&
8614	 { ac_try='test -z "$ac_c_werror_flag"
8615			 || test ! -s conftest.err'
8616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617  (eval $ac_try) 2>&5
8618  ac_status=$?
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); }; } &&
8621	 { ac_try='test -s conftest$ac_exeext'
8622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623  (eval $ac_try) 2>&5
8624  ac_status=$?
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); }; }; then
8627  ac_cv_lib_svld_dlopen=yes
8628else
8629  echo "$as_me: failed program was:" >&5
8630sed 's/^/| /' conftest.$ac_ext >&5
8631
8632ac_cv_lib_svld_dlopen=no
8633fi
8634rm -f conftest.err conftest.$ac_objext \
8635      conftest$ac_exeext conftest.$ac_ext
8636LIBS=$ac_check_lib_save_LIBS
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8639echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8640if test $ac_cv_lib_svld_dlopen = yes; then
8641  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8642else
8643  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8644echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8645if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8646  echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648  ac_check_lib_save_LIBS=$LIBS
8649LIBS="-ldld  $LIBS"
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h.  */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h.  */
8656
8657/* Override any gcc2 internal prototype to avoid an error.  */
8658#ifdef __cplusplus
8659extern "C"
8660#endif
8661/* We use char because int might match the return type of a gcc2
8662   builtin and then its argument prototype would still apply.  */
8663char dld_link ();
8664int
8665main ()
8666{
8667dld_link ();
8668  ;
8669  return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext conftest$ac_exeext
8673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674  (eval $ac_link) 2>conftest.er1
8675  ac_status=$?
8676  grep -v '^ *+' conftest.er1 >conftest.err
8677  rm -f conftest.er1
8678  cat conftest.err >&5
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); } &&
8681	 { ac_try='test -z "$ac_c_werror_flag"
8682			 || test ! -s conftest.err'
8683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684  (eval $ac_try) 2>&5
8685  ac_status=$?
8686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); }; } &&
8688	 { ac_try='test -s conftest$ac_exeext'
8689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690  (eval $ac_try) 2>&5
8691  ac_status=$?
8692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693  (exit $ac_status); }; }; then
8694  ac_cv_lib_dld_dld_link=yes
8695else
8696  echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699ac_cv_lib_dld_dld_link=no
8700fi
8701rm -f conftest.err conftest.$ac_objext \
8702      conftest$ac_exeext conftest.$ac_ext
8703LIBS=$ac_check_lib_save_LIBS
8704fi
8705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8706echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8707if test $ac_cv_lib_dld_dld_link = yes; then
8708  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8709fi
8710
8711
8712fi
8713
8714
8715fi
8716
8717
8718fi
8719
8720
8721fi
8722
8723
8724fi
8725
8726    ;;
8727  esac
8728
8729  if test "x$lt_cv_dlopen" != xno; then
8730    enable_dlopen=yes
8731  else
8732    enable_dlopen=no
8733  fi
8734
8735  case $lt_cv_dlopen in
8736  dlopen)
8737    save_CPPFLAGS="$CPPFLAGS"
8738    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8739
8740    save_LDFLAGS="$LDFLAGS"
8741    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8742
8743    save_LIBS="$LIBS"
8744    LIBS="$lt_cv_dlopen_libs $LIBS"
8745
8746    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8747echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8748if test "${lt_cv_dlopen_self+set}" = set; then
8749  echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751  	  if test "$cross_compiling" = yes; then :
8752  lt_cv_dlopen_self=cross
8753else
8754  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8755  lt_status=$lt_dlunknown
8756  cat > conftest.$ac_ext <<EOF
8757#line 8757 "configure"
8758#include "confdefs.h"
8759
8760#if HAVE_DLFCN_H
8761#include <dlfcn.h>
8762#endif
8763
8764#include <stdio.h>
8765
8766#ifdef RTLD_GLOBAL
8767#  define LT_DLGLOBAL		RTLD_GLOBAL
8768#else
8769#  ifdef DL_GLOBAL
8770#    define LT_DLGLOBAL		DL_GLOBAL
8771#  else
8772#    define LT_DLGLOBAL		0
8773#  endif
8774#endif
8775
8776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8777   find out it does not work in some platform. */
8778#ifndef LT_DLLAZY_OR_NOW
8779#  ifdef RTLD_LAZY
8780#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8781#  else
8782#    ifdef DL_LAZY
8783#      define LT_DLLAZY_OR_NOW		DL_LAZY
8784#    else
8785#      ifdef RTLD_NOW
8786#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8787#      else
8788#        ifdef DL_NOW
8789#          define LT_DLLAZY_OR_NOW	DL_NOW
8790#        else
8791#          define LT_DLLAZY_OR_NOW	0
8792#        endif
8793#      endif
8794#    endif
8795#  endif
8796#endif
8797
8798#ifdef __cplusplus
8799extern "C" void exit (int);
8800#endif
8801
8802void fnord() { int i=42;}
8803int main ()
8804{
8805  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8806  int status = $lt_dlunknown;
8807
8808  if (self)
8809    {
8810      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8811      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8812      /* dlclose (self); */
8813    }
8814  else
8815    puts (dlerror ());
8816
8817    exit (status);
8818}
8819EOF
8820  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821  (eval $ac_link) 2>&5
8822  ac_status=$?
8823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8825    (./conftest; exit; ) >&5 2>/dev/null
8826    lt_status=$?
8827    case x$lt_status in
8828      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8829      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8830      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8831    esac
8832  else :
8833    # compilation failed
8834    lt_cv_dlopen_self=no
8835  fi
8836fi
8837rm -fr conftest*
8838
8839
8840fi
8841echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8842echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8843
8844    if test "x$lt_cv_dlopen_self" = xyes; then
8845      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8846      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8847echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8848if test "${lt_cv_dlopen_self_static+set}" = set; then
8849  echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851  	  if test "$cross_compiling" = yes; then :
8852  lt_cv_dlopen_self_static=cross
8853else
8854  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8855  lt_status=$lt_dlunknown
8856  cat > conftest.$ac_ext <<EOF
8857#line 8857 "configure"
8858#include "confdefs.h"
8859
8860#if HAVE_DLFCN_H
8861#include <dlfcn.h>
8862#endif
8863
8864#include <stdio.h>
8865
8866#ifdef RTLD_GLOBAL
8867#  define LT_DLGLOBAL		RTLD_GLOBAL
8868#else
8869#  ifdef DL_GLOBAL
8870#    define LT_DLGLOBAL		DL_GLOBAL
8871#  else
8872#    define LT_DLGLOBAL		0
8873#  endif
8874#endif
8875
8876/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8877   find out it does not work in some platform. */
8878#ifndef LT_DLLAZY_OR_NOW
8879#  ifdef RTLD_LAZY
8880#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8881#  else
8882#    ifdef DL_LAZY
8883#      define LT_DLLAZY_OR_NOW		DL_LAZY
8884#    else
8885#      ifdef RTLD_NOW
8886#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8887#      else
8888#        ifdef DL_NOW
8889#          define LT_DLLAZY_OR_NOW	DL_NOW
8890#        else
8891#          define LT_DLLAZY_OR_NOW	0
8892#        endif
8893#      endif
8894#    endif
8895#  endif
8896#endif
8897
8898#ifdef __cplusplus
8899extern "C" void exit (int);
8900#endif
8901
8902void fnord() { int i=42;}
8903int main ()
8904{
8905  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8906  int status = $lt_dlunknown;
8907
8908  if (self)
8909    {
8910      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8911      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8912      /* dlclose (self); */
8913    }
8914  else
8915    puts (dlerror ());
8916
8917    exit (status);
8918}
8919EOF
8920  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921  (eval $ac_link) 2>&5
8922  ac_status=$?
8923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8925    (./conftest; exit; ) >&5 2>/dev/null
8926    lt_status=$?
8927    case x$lt_status in
8928      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8929      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8930      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8931    esac
8932  else :
8933    # compilation failed
8934    lt_cv_dlopen_self_static=no
8935  fi
8936fi
8937rm -fr conftest*
8938
8939
8940fi
8941echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8942echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8943    fi
8944
8945    CPPFLAGS="$save_CPPFLAGS"
8946    LDFLAGS="$save_LDFLAGS"
8947    LIBS="$save_LIBS"
8948    ;;
8949  esac
8950
8951  case $lt_cv_dlopen_self in
8952  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8953  *) enable_dlopen_self=unknown ;;
8954  esac
8955
8956  case $lt_cv_dlopen_self_static in
8957  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8958  *) enable_dlopen_self_static=unknown ;;
8959  esac
8960fi
8961
8962
8963# Report which library types will actually be built
8964echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8965echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8966echo "$as_me:$LINENO: result: $can_build_shared" >&5
8967echo "${ECHO_T}$can_build_shared" >&6
8968
8969echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8970echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8971test "$can_build_shared" = "no" && enable_shared=no
8972
8973# On AIX, shared libraries and static libraries use the same namespace, and
8974# are all built from PIC.
8975case $host_os in
8976aix3*)
8977  test "$enable_shared" = yes && enable_static=no
8978  if test -n "$RANLIB"; then
8979    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8980    postinstall_cmds='$RANLIB $lib'
8981  fi
8982  ;;
8983
8984aix4* | aix5*)
8985  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8986    test "$enable_shared" = yes && enable_static=no
8987  fi
8988    ;;
8989esac
8990echo "$as_me:$LINENO: result: $enable_shared" >&5
8991echo "${ECHO_T}$enable_shared" >&6
8992
8993echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8994echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8995# Make sure either enable_shared or enable_static is yes.
8996test "$enable_shared" = yes || enable_static=yes
8997echo "$as_me:$LINENO: result: $enable_static" >&5
8998echo "${ECHO_T}$enable_static" >&6
8999
9000# The else clause should only fire when bootstrapping the
9001# libtool distribution, otherwise you forgot to ship ltmain.sh
9002# with your package, and you will get complaints that there are
9003# no rules to generate ltmain.sh.
9004if test -f "$ltmain"; then
9005  # See if we are running on zsh, and set the options which allow our commands through
9006  # without removal of \ escapes.
9007  if test -n "${ZSH_VERSION+set}" ; then
9008    setopt NO_GLOB_SUBST
9009  fi
9010  # Now quote all the things that may contain metacharacters while being
9011  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9012  # variables and quote the copies for generation of the libtool script.
9013  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9014    SED SHELL STRIP \
9015    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9016    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9017    deplibs_check_method reload_flag reload_cmds need_locks \
9018    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9019    lt_cv_sys_global_symbol_to_c_name_address \
9020    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9021    old_postinstall_cmds old_postuninstall_cmds \
9022    compiler \
9023    CC \
9024    LD \
9025    lt_prog_compiler_wl \
9026    lt_prog_compiler_pic \
9027    lt_prog_compiler_static \
9028    lt_prog_compiler_no_builtin_flag \
9029    export_dynamic_flag_spec \
9030    thread_safe_flag_spec \
9031    whole_archive_flag_spec \
9032    enable_shared_with_static_runtimes \
9033    old_archive_cmds \
9034    old_archive_from_new_cmds \
9035    predep_objects \
9036    postdep_objects \
9037    predeps \
9038    postdeps \
9039    compiler_lib_search_path \
9040    archive_cmds \
9041    archive_expsym_cmds \
9042    postinstall_cmds \
9043    postuninstall_cmds \
9044    old_archive_from_expsyms_cmds \
9045    allow_undefined_flag \
9046    no_undefined_flag \
9047    export_symbols_cmds \
9048    hardcode_libdir_flag_spec \
9049    hardcode_libdir_flag_spec_ld \
9050    hardcode_libdir_separator \
9051    hardcode_automatic \
9052    module_cmds \
9053    module_expsym_cmds \
9054    lt_cv_prog_compiler_c_o \
9055    exclude_expsyms \
9056    include_expsyms; do
9057
9058    case $var in
9059    old_archive_cmds | \
9060    old_archive_from_new_cmds | \
9061    archive_cmds | \
9062    archive_expsym_cmds | \
9063    module_cmds | \
9064    module_expsym_cmds | \
9065    old_archive_from_expsyms_cmds | \
9066    export_symbols_cmds | \
9067    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9068    postinstall_cmds | postuninstall_cmds | \
9069    old_postinstall_cmds | old_postuninstall_cmds | \
9070    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9071      # Double-quote double-evaled strings.
9072      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9073      ;;
9074    *)
9075      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9076      ;;
9077    esac
9078  done
9079
9080  case $lt_echo in
9081  *'\$0 --fallback-echo"')
9082    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9083    ;;
9084  esac
9085
9086cfgfile="${ofile}T"
9087  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9088  $rm -f "$cfgfile"
9089  { echo "$as_me:$LINENO: creating $ofile" >&5
9090echo "$as_me: creating $ofile" >&6;}
9091
9092  cat <<__EOF__ >> "$cfgfile"
9093#! $SHELL
9094
9095# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9096# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9097# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9098#
9099# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9100# Free Software Foundation, Inc.
9101#
9102# This file is part of GNU Libtool:
9103# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9104#
9105# This program is free software; you can redistribute it and/or modify
9106# it under the terms of the GNU General Public License as published by
9107# the Free Software Foundation; either version 2 of the License, or
9108# (at your option) any later version.
9109#
9110# This program is distributed in the hope that it will be useful, but
9111# WITHOUT ANY WARRANTY; without even the implied warranty of
9112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9113# General Public License for more details.
9114#
9115# You should have received a copy of the GNU General Public License
9116# along with this program; if not, write to the Free Software
9117# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9118#
9119# As a special exception to the GNU General Public License, if you
9120# distribute this file as part of a program that contains a
9121# configuration script generated by Autoconf, you may include it under
9122# the same distribution terms that you use for the rest of that program.
9123
9124# A sed program that does not truncate output.
9125SED=$lt_SED
9126
9127# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9128Xsed="$SED -e 1s/^X//"
9129
9130# The HP-UX ksh and POSIX shell print the target directory to stdout
9131# if CDPATH is set.
9132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9133
9134# The names of the tagged configurations supported by this script.
9135available_tags=
9136
9137# ### BEGIN LIBTOOL CONFIG
9138
9139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9140
9141# Shell to use when invoking shell scripts.
9142SHELL=$lt_SHELL
9143
9144# Whether or not to build shared libraries.
9145build_libtool_libs=$enable_shared
9146
9147# Whether or not to build static libraries.
9148build_old_libs=$enable_static
9149
9150# Whether or not to add -lc for building shared libraries.
9151build_libtool_need_lc=$archive_cmds_need_lc
9152
9153# Whether or not to disallow shared libs when runtime libs are static
9154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9155
9156# Whether or not to optimize for fast installation.
9157fast_install=$enable_fast_install
9158
9159# The host system.
9160host_alias=$host_alias
9161host=$host
9162host_os=$host_os
9163
9164# The build system.
9165build_alias=$build_alias
9166build=$build
9167build_os=$build_os
9168
9169# An echo program that does not interpret backslashes.
9170echo=$lt_echo
9171
9172# The archiver.
9173AR=$lt_AR
9174AR_FLAGS=$lt_AR_FLAGS
9175
9176# A C compiler.
9177LTCC=$lt_LTCC
9178
9179# LTCC compiler flags.
9180LTCFLAGS=$lt_LTCFLAGS
9181
9182# A language-specific compiler.
9183CC=$lt_compiler
9184
9185# Is the compiler the GNU C compiler?
9186with_gcc=$GCC
9187
9188# An ERE matcher.
9189EGREP=$lt_EGREP
9190
9191# The linker used to build libraries.
9192LD=$lt_LD
9193
9194# Whether we need hard or soft links.
9195LN_S=$lt_LN_S
9196
9197# A BSD-compatible nm program.
9198NM=$lt_NM
9199
9200# A symbol stripping program
9201STRIP=$lt_STRIP
9202
9203# Used to examine libraries when file_magic_cmd begins "file"
9204MAGIC_CMD=$MAGIC_CMD
9205
9206# Used on cygwin: DLL creation program.
9207DLLTOOL="$DLLTOOL"
9208
9209# Used on cygwin: object dumper.
9210OBJDUMP="$OBJDUMP"
9211
9212# Used on cygwin: assembler.
9213AS="$AS"
9214
9215# The name of the directory that contains temporary libtool files.
9216objdir=$objdir
9217
9218# How to create reloadable object files.
9219reload_flag=$lt_reload_flag
9220reload_cmds=$lt_reload_cmds
9221
9222# How to pass a linker flag through the compiler.
9223wl=$lt_lt_prog_compiler_wl
9224
9225# Object file suffix (normally "o").
9226objext="$ac_objext"
9227
9228# Old archive suffix (normally "a").
9229libext="$libext"
9230
9231# Shared library suffix (normally ".so").
9232shrext_cmds='$shrext_cmds'
9233
9234# Executable file suffix (normally "").
9235exeext="$exeext"
9236
9237# Additional compiler flags for building library objects.
9238pic_flag=$lt_lt_prog_compiler_pic
9239pic_mode=$pic_mode
9240
9241# What is the maximum length of a command?
9242max_cmd_len=$lt_cv_sys_max_cmd_len
9243
9244# Does compiler simultaneously support -c and -o options?
9245compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9246
9247# Must we lock files when doing compilation?
9248need_locks=$lt_need_locks
9249
9250# Do we need the lib prefix for modules?
9251need_lib_prefix=$need_lib_prefix
9252
9253# Do we need a version for libraries?
9254need_version=$need_version
9255
9256# Whether dlopen is supported.
9257dlopen_support=$enable_dlopen
9258
9259# Whether dlopen of programs is supported.
9260dlopen_self=$enable_dlopen_self
9261
9262# Whether dlopen of statically linked programs is supported.
9263dlopen_self_static=$enable_dlopen_self_static
9264
9265# Compiler flag to prevent dynamic linking.
9266link_static_flag=$lt_lt_prog_compiler_static
9267
9268# Compiler flag to turn off builtin functions.
9269no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9270
9271# Compiler flag to allow reflexive dlopens.
9272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9273
9274# Compiler flag to generate shared objects directly from archives.
9275whole_archive_flag_spec=$lt_whole_archive_flag_spec
9276
9277# Compiler flag to generate thread-safe objects.
9278thread_safe_flag_spec=$lt_thread_safe_flag_spec
9279
9280# Library versioning type.
9281version_type=$version_type
9282
9283# Format of library name prefix.
9284libname_spec=$lt_libname_spec
9285
9286# List of archive names.  First name is the real one, the rest are links.
9287# The last name is the one that the linker finds with -lNAME.
9288library_names_spec=$lt_library_names_spec
9289
9290# The coded name of the library, if different from the real name.
9291soname_spec=$lt_soname_spec
9292
9293# Commands used to build and install an old-style archive.
9294RANLIB=$lt_RANLIB
9295old_archive_cmds=$lt_old_archive_cmds
9296old_postinstall_cmds=$lt_old_postinstall_cmds
9297old_postuninstall_cmds=$lt_old_postuninstall_cmds
9298
9299# Create an old-style archive from a shared archive.
9300old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9301
9302# Create a temporary old-style archive to link instead of a shared archive.
9303old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9304
9305# Commands used to build and install a shared archive.
9306archive_cmds=$lt_archive_cmds
9307archive_expsym_cmds=$lt_archive_expsym_cmds
9308postinstall_cmds=$lt_postinstall_cmds
9309postuninstall_cmds=$lt_postuninstall_cmds
9310
9311# Commands used to build a loadable module (assumed same as above if empty)
9312module_cmds=$lt_module_cmds
9313module_expsym_cmds=$lt_module_expsym_cmds
9314
9315# Commands to strip libraries.
9316old_striplib=$lt_old_striplib
9317striplib=$lt_striplib
9318
9319# Dependencies to place before the objects being linked to create a
9320# shared library.
9321predep_objects=$lt_predep_objects
9322
9323# Dependencies to place after the objects being linked to create a
9324# shared library.
9325postdep_objects=$lt_postdep_objects
9326
9327# Dependencies to place before the objects being linked to create a
9328# shared library.
9329predeps=$lt_predeps
9330
9331# Dependencies to place after the objects being linked to create a
9332# shared library.
9333postdeps=$lt_postdeps
9334
9335# The library search path used internally by the compiler when linking
9336# a shared library.
9337compiler_lib_search_path=$lt_compiler_lib_search_path
9338
9339# Method to check whether dependent libraries are shared objects.
9340deplibs_check_method=$lt_deplibs_check_method
9341
9342# Command to use when deplibs_check_method == file_magic.
9343file_magic_cmd=$lt_file_magic_cmd
9344
9345# Flag that allows shared libraries with undefined symbols to be built.
9346allow_undefined_flag=$lt_allow_undefined_flag
9347
9348# Flag that forces no undefined symbols.
9349no_undefined_flag=$lt_no_undefined_flag
9350
9351# Commands used to finish a libtool library installation in a directory.
9352finish_cmds=$lt_finish_cmds
9353
9354# Same as above, but a single script fragment to be evaled but not shown.
9355finish_eval=$lt_finish_eval
9356
9357# Take the output of nm and produce a listing of raw symbols and C names.
9358global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9359
9360# Transform the output of nm in a proper C declaration
9361global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9362
9363# Transform the output of nm in a C name address pair
9364global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9365
9366# This is the shared library runtime path variable.
9367runpath_var=$runpath_var
9368
9369# This is the shared library path variable.
9370shlibpath_var=$shlibpath_var
9371
9372# Is shlibpath searched before the hard-coded library search path?
9373shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9374
9375# How to hardcode a shared library path into an executable.
9376hardcode_action=$hardcode_action
9377
9378# Whether we should hardcode library paths into libraries.
9379hardcode_into_libs=$hardcode_into_libs
9380
9381# Flag to hardcode \$libdir into a binary during linking.
9382# This must work even if \$libdir does not exist.
9383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9384
9385# If ld is used when linking, flag to hardcode \$libdir into
9386# a binary during linking. This must work even if \$libdir does
9387# not exist.
9388hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9389
9390# Whether we need a single -rpath flag with a separated argument.
9391hardcode_libdir_separator=$lt_hardcode_libdir_separator
9392
9393# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9394# resulting binary.
9395hardcode_direct=$hardcode_direct
9396
9397# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9398# resulting binary.
9399hardcode_minus_L=$hardcode_minus_L
9400
9401# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9402# the resulting binary.
9403hardcode_shlibpath_var=$hardcode_shlibpath_var
9404
9405# Set to yes if building a shared library automatically hardcodes DIR into the library
9406# and all subsequent libraries and executables linked against it.
9407hardcode_automatic=$hardcode_automatic
9408
9409# Variables whose values should be saved in libtool wrapper scripts and
9410# restored at relink time.
9411variables_saved_for_relink="$variables_saved_for_relink"
9412
9413# Whether libtool must link a program against all its dependency libraries.
9414link_all_deplibs=$link_all_deplibs
9415
9416# Compile-time system search path for libraries
9417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9418
9419# Run-time system search path for libraries
9420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9421
9422# Fix the shell variable \$srcfile for the compiler.
9423fix_srcfile_path="$fix_srcfile_path"
9424
9425# Set to yes if exported symbols are required.
9426always_export_symbols=$always_export_symbols
9427
9428# The commands to list exported symbols.
9429export_symbols_cmds=$lt_export_symbols_cmds
9430
9431# The commands to extract the exported symbol list from a shared archive.
9432extract_expsyms_cmds=$lt_extract_expsyms_cmds
9433
9434# Symbols that should not be listed in the preloaded symbols.
9435exclude_expsyms=$lt_exclude_expsyms
9436
9437# Symbols that must always be exported.
9438include_expsyms=$lt_include_expsyms
9439
9440# ### END LIBTOOL CONFIG
9441
9442__EOF__
9443
9444
9445  case $host_os in
9446  aix3*)
9447    cat <<\EOF >> "$cfgfile"
9448
9449# AIX sometimes has problems with the GCC collect2 program.  For some
9450# reason, if we set the COLLECT_NAMES environment variable, the problems
9451# vanish in a puff of smoke.
9452if test "X${COLLECT_NAMES+set}" != Xset; then
9453  COLLECT_NAMES=
9454  export COLLECT_NAMES
9455fi
9456EOF
9457    ;;
9458  esac
9459
9460  # We use sed instead of cat because bash on DJGPP gets confused if
9461  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9462  # text mode, it properly converts lines to CR/LF.  This bash problem
9463  # is reportedly fixed, but why not run on old versions too?
9464  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9465
9466  mv -f "$cfgfile" "$ofile" || \
9467    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9468  chmod +x "$ofile"
9469
9470else
9471  # If there is no Makefile yet, we rely on a make rule to execute
9472  # `config.status --recheck' to rerun these tests and create the
9473  # libtool script then.
9474  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9475  if test -f "$ltmain_in"; then
9476    test -f Makefile && make "$ltmain"
9477  fi
9478fi
9479
9480
9481ac_ext=c
9482ac_cpp='$CPP $CPPFLAGS'
9483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9485ac_compiler_gnu=$ac_cv_c_compiler_gnu
9486
9487CC="$lt_save_CC"
9488
9489
9490# Check whether --with-tags or --without-tags was given.
9491if test "${with_tags+set}" = set; then
9492  withval="$with_tags"
9493  tagnames="$withval"
9494fi;
9495
9496if test -f "$ltmain" && test -n "$tagnames"; then
9497  if test ! -f "${ofile}"; then
9498    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9499echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9500  fi
9501
9502  if test -z "$LTCC"; then
9503    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9504    if test -z "$LTCC"; then
9505      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9506echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9507    else
9508      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9509echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9510    fi
9511  fi
9512  if test -z "$LTCFLAGS"; then
9513    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9514  fi
9515
9516  # Extract list of available tagged configurations in $ofile.
9517  # Note that this assumes the entire list is on one line.
9518  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9519
9520  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9521  for tagname in $tagnames; do
9522    IFS="$lt_save_ifs"
9523    # Check whether tagname contains only valid characters
9524    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9525    "") ;;
9526    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9527echo "$as_me: error: invalid tag name: $tagname" >&2;}
9528   { (exit 1); exit 1; }; }
9529	;;
9530    esac
9531
9532    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9533    then
9534      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9535echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9536   { (exit 1); exit 1; }; }
9537    fi
9538
9539    # Update the list of available tags.
9540    if test -n "$tagname"; then
9541      echo appending configuration tag \"$tagname\" to $ofile
9542
9543      case $tagname in
9544      CXX)
9545	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9546	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9547	    (test "X$CXX" != "Xg++"))) ; then
9548	  ac_ext=cc
9549ac_cpp='$CXXCPP $CPPFLAGS'
9550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9553
9554
9555
9556
9557archive_cmds_need_lc_CXX=no
9558allow_undefined_flag_CXX=
9559always_export_symbols_CXX=no
9560archive_expsym_cmds_CXX=
9561export_dynamic_flag_spec_CXX=
9562hardcode_direct_CXX=no
9563hardcode_libdir_flag_spec_CXX=
9564hardcode_libdir_flag_spec_ld_CXX=
9565hardcode_libdir_separator_CXX=
9566hardcode_minus_L_CXX=no
9567hardcode_shlibpath_var_CXX=unsupported
9568hardcode_automatic_CXX=no
9569module_cmds_CXX=
9570module_expsym_cmds_CXX=
9571link_all_deplibs_CXX=unknown
9572old_archive_cmds_CXX=$old_archive_cmds
9573no_undefined_flag_CXX=
9574whole_archive_flag_spec_CXX=
9575enable_shared_with_static_runtimes_CXX=no
9576
9577# Dependencies to place before and after the object being linked:
9578predep_objects_CXX=
9579postdep_objects_CXX=
9580predeps_CXX=
9581postdeps_CXX=
9582compiler_lib_search_path_CXX=
9583
9584# Source file extension for C++ test sources.
9585ac_ext=cpp
9586
9587# Object file extension for compiled C++ test sources.
9588objext=o
9589objext_CXX=$objext
9590
9591# Code to be used in simple compile tests
9592lt_simple_compile_test_code="int some_variable = 0;\n"
9593
9594# Code to be used in simple link tests
9595lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9596
9597# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9598
9599# If no C compiler was specified, use CC.
9600LTCC=${LTCC-"$CC"}
9601
9602# If no C compiler flags were specified, use CFLAGS.
9603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9604
9605# Allow CC to be a program name with arguments.
9606compiler=$CC
9607
9608
9609# save warnings/boilerplate of simple test code
9610ac_outfile=conftest.$ac_objext
9611printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9613_lt_compiler_boilerplate=`cat conftest.err`
9614$rm conftest*
9615
9616ac_outfile=conftest.$ac_objext
9617printf "$lt_simple_link_test_code" >conftest.$ac_ext
9618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9619_lt_linker_boilerplate=`cat conftest.err`
9620$rm conftest*
9621
9622
9623# Allow CC to be a program name with arguments.
9624lt_save_CC=$CC
9625lt_save_LD=$LD
9626lt_save_GCC=$GCC
9627GCC=$GXX
9628lt_save_with_gnu_ld=$with_gnu_ld
9629lt_save_path_LD=$lt_cv_path_LD
9630if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9631  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9632else
9633  $as_unset lt_cv_prog_gnu_ld
9634fi
9635if test -n "${lt_cv_path_LDCXX+set}"; then
9636  lt_cv_path_LD=$lt_cv_path_LDCXX
9637else
9638  $as_unset lt_cv_path_LD
9639fi
9640test -z "${LDCXX+set}" || LD=$LDCXX
9641CC=${CXX-"c++"}
9642compiler=$CC
9643compiler_CXX=$CC
9644for cc_temp in $compiler""; do
9645  case $cc_temp in
9646    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9647    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9648    \-*) ;;
9649    *) break;;
9650  esac
9651done
9652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9653
9654
9655# We don't want -fno-exception wen compiling C++ code, so set the
9656# no_builtin_flag separately
9657if test "$GXX" = yes; then
9658  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9659else
9660  lt_prog_compiler_no_builtin_flag_CXX=
9661fi
9662
9663if test "$GXX" = yes; then
9664  # Set up default GNU C++ configuration
9665
9666
9667# Check whether --with-gnu-ld or --without-gnu-ld was given.
9668if test "${with_gnu_ld+set}" = set; then
9669  withval="$with_gnu_ld"
9670  test "$withval" = no || with_gnu_ld=yes
9671else
9672  with_gnu_ld=no
9673fi;
9674ac_prog=ld
9675if test "$GCC" = yes; then
9676  # Check if gcc -print-prog-name=ld gives a path.
9677  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9678echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9679  case $host in
9680  *-*-mingw*)
9681    # gcc leaves a trailing carriage return which upsets mingw
9682    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9683  *)
9684    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9685  esac
9686  case $ac_prog in
9687    # Accept absolute paths.
9688    [\\/]* | ?:[\\/]*)
9689      re_direlt='/[^/][^/]*/\.\./'
9690      # Canonicalize the pathname of ld
9691      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9692      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9693	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9694      done
9695      test -z "$LD" && LD="$ac_prog"
9696      ;;
9697  "")
9698    # If it fails, then pretend we aren't using GCC.
9699    ac_prog=ld
9700    ;;
9701  *)
9702    # If it is relative, then search for the first ld in PATH.
9703    with_gnu_ld=unknown
9704    ;;
9705  esac
9706elif test "$with_gnu_ld" = yes; then
9707  echo "$as_me:$LINENO: checking for GNU ld" >&5
9708echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9709else
9710  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9711echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9712fi
9713if test "${lt_cv_path_LD+set}" = set; then
9714  echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716  if test -z "$LD"; then
9717  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9718  for ac_dir in $PATH; do
9719    IFS="$lt_save_ifs"
9720    test -z "$ac_dir" && ac_dir=.
9721    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9722      lt_cv_path_LD="$ac_dir/$ac_prog"
9723      # Check to see if the program is GNU ld.  I'd rather use --version,
9724      # but apparently some variants of GNU ld only accept -v.
9725      # Break only if it was the GNU/non-GNU ld that we prefer.
9726      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9727      *GNU* | *'with BFD'*)
9728	test "$with_gnu_ld" != no && break
9729	;;
9730      *)
9731	test "$with_gnu_ld" != yes && break
9732	;;
9733      esac
9734    fi
9735  done
9736  IFS="$lt_save_ifs"
9737else
9738  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9739fi
9740fi
9741
9742LD="$lt_cv_path_LD"
9743if test -n "$LD"; then
9744  echo "$as_me:$LINENO: result: $LD" >&5
9745echo "${ECHO_T}$LD" >&6
9746else
9747  echo "$as_me:$LINENO: result: no" >&5
9748echo "${ECHO_T}no" >&6
9749fi
9750test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9751echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9752   { (exit 1); exit 1; }; }
9753echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9754echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9755if test "${lt_cv_prog_gnu_ld+set}" = set; then
9756  echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9759case `$LD -v 2>&1 </dev/null` in
9760*GNU* | *'with BFD'*)
9761  lt_cv_prog_gnu_ld=yes
9762  ;;
9763*)
9764  lt_cv_prog_gnu_ld=no
9765  ;;
9766esac
9767fi
9768echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9769echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9770with_gnu_ld=$lt_cv_prog_gnu_ld
9771
9772
9773
9774  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9775  # archiving commands below assume that GNU ld is being used.
9776  if test "$with_gnu_ld" = yes; then
9777    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778    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'
9779
9780    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9781    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9782
9783    # If archive_cmds runs LD, not CC, wlarc should be empty
9784    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9785    #     investigate it a little bit more. (MM)
9786    wlarc='${wl}'
9787
9788    # ancient GNU ld didn't support --whole-archive et. al.
9789    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9790	grep 'no-whole-archive' > /dev/null; then
9791      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9792    else
9793      whole_archive_flag_spec_CXX=
9794    fi
9795  else
9796    with_gnu_ld=no
9797    wlarc=
9798
9799    # A generic and very simple default shared library creation
9800    # command for GNU C++ for the case where it uses the native
9801    # linker, instead of GNU ld.  If possible, this setting should
9802    # overridden to take advantage of the native linker features on
9803    # the platform it is being used on.
9804    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9805  fi
9806
9807  # Commands to make compiler produce verbose output that lists
9808  # what "hidden" libraries, object files and flags are used when
9809  # linking a shared library.
9810  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9811
9812else
9813  GXX=no
9814  with_gnu_ld=no
9815  wlarc=
9816fi
9817
9818# PORTME: fill in a description of your system's C++ link characteristics
9819echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9820echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9821ld_shlibs_CXX=yes
9822case $host_os in
9823  aix3*)
9824    # FIXME: insert proper C++ library support
9825    ld_shlibs_CXX=no
9826    ;;
9827  aix4* | aix5*)
9828    if test "$host_cpu" = ia64; then
9829      # On IA64, the linker does run time linking by default, so we don't
9830      # have to do anything special.
9831      aix_use_runtimelinking=no
9832      exp_sym_flag='-Bexport'
9833      no_entry_flag=""
9834    else
9835      aix_use_runtimelinking=no
9836
9837      # Test if we are trying to use run time linking or normal
9838      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9839      # need to do runtime linking.
9840      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9841	for ld_flag in $LDFLAGS; do
9842	  case $ld_flag in
9843	  *-brtl*)
9844	    aix_use_runtimelinking=yes
9845	    break
9846	    ;;
9847	  esac
9848	done
9849	;;
9850      esac
9851
9852      exp_sym_flag='-bexport'
9853      no_entry_flag='-bnoentry'
9854    fi
9855
9856    # When large executables or shared objects are built, AIX ld can
9857    # have problems creating the table of contents.  If linking a library
9858    # or program results in "error TOC overflow" add -mminimal-toc to
9859    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9860    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9861
9862    archive_cmds_CXX=''
9863    hardcode_direct_CXX=yes
9864    hardcode_libdir_separator_CXX=':'
9865    link_all_deplibs_CXX=yes
9866
9867    if test "$GXX" = yes; then
9868      case $host_os in aix4.[012]|aix4.[012].*)
9869      # We only want to do this on AIX 4.2 and lower, the check
9870      # below for broken collect2 doesn't work under 4.3+
9871	collect2name=`${CC} -print-prog-name=collect2`
9872	if test -f "$collect2name" && \
9873	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9874	then
9875	  # We have reworked collect2
9876	  hardcode_direct_CXX=yes
9877	else
9878	  # We have old collect2
9879	  hardcode_direct_CXX=unsupported
9880	  # It fails to find uninstalled libraries when the uninstalled
9881	  # path is not listed in the libpath.  Setting hardcode_minus_L
9882	  # to unsupported forces relinking
9883	  hardcode_minus_L_CXX=yes
9884	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9885	  hardcode_libdir_separator_CXX=
9886	fi
9887	;;
9888      esac
9889      shared_flag='-shared'
9890      if test "$aix_use_runtimelinking" = yes; then
9891	shared_flag="$shared_flag "'${wl}-G'
9892      fi
9893    else
9894      # not using gcc
9895      if test "$host_cpu" = ia64; then
9896	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9897	# chokes on -Wl,-G. The following line is correct:
9898	shared_flag='-G'
9899      else
9900	if test "$aix_use_runtimelinking" = yes; then
9901	  shared_flag='${wl}-G'
9902	else
9903	  shared_flag='${wl}-bM:SRE'
9904	fi
9905      fi
9906    fi
9907
9908    # It seems that -bexpall does not export symbols beginning with
9909    # underscore (_), so it is better to generate a list of symbols to export.
9910    always_export_symbols_CXX=yes
9911    if test "$aix_use_runtimelinking" = yes; then
9912      # Warning - without using the other runtime loading flags (-brtl),
9913      # -berok will link without error, but may produce a broken library.
9914      allow_undefined_flag_CXX='-berok'
9915      # Determine the default libpath from the value encoded in an empty executable.
9916      cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h.  */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h.  */
9922
9923int
9924main ()
9925{
9926
9927  ;
9928  return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
9932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933  (eval $ac_link) 2>conftest.er1
9934  ac_status=$?
9935  grep -v '^ *+' conftest.er1 >conftest.err
9936  rm -f conftest.er1
9937  cat conftest.err >&5
9938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939  (exit $ac_status); } &&
9940	 { ac_try='test -z "$ac_cxx_werror_flag"
9941			 || test ! -s conftest.err'
9942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943  (eval $ac_try) 2>&5
9944  ac_status=$?
9945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946  (exit $ac_status); }; } &&
9947	 { ac_try='test -s conftest$ac_exeext'
9948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949  (eval $ac_try) 2>&5
9950  ac_status=$?
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); }; }; then
9953
9954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9955}'`
9956# Check for a 64-bit object if we didn't find anything.
9957if 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; }
9958}'`; fi
9959else
9960  echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963fi
9964rm -f conftest.err conftest.$ac_objext \
9965      conftest$ac_exeext conftest.$ac_ext
9966if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9967
9968      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9969
9970      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9971     else
9972      if test "$host_cpu" = ia64; then
9973	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9974	allow_undefined_flag_CXX="-z nodefs"
9975	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9976      else
9977	# Determine the default libpath from the value encoded in an empty executable.
9978	cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h.  */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h.  */
9984
9985int
9986main ()
9987{
9988
9989  ;
9990  return 0;
9991}
9992_ACEOF
9993rm -f conftest.$ac_objext conftest$ac_exeext
9994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995  (eval $ac_link) 2>conftest.er1
9996  ac_status=$?
9997  grep -v '^ *+' conftest.er1 >conftest.err
9998  rm -f conftest.er1
9999  cat conftest.err >&5
10000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001  (exit $ac_status); } &&
10002	 { ac_try='test -z "$ac_cxx_werror_flag"
10003			 || test ! -s conftest.err'
10004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005  (eval $ac_try) 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; } &&
10009	 { ac_try='test -s conftest$ac_exeext'
10010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011  (eval $ac_try) 2>&5
10012  ac_status=$?
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); }; }; then
10015
10016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10017}'`
10018# Check for a 64-bit object if we didn't find anything.
10019if 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; }
10020}'`; fi
10021else
10022  echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025fi
10026rm -f conftest.err conftest.$ac_objext \
10027      conftest$ac_exeext conftest.$ac_ext
10028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10029
10030	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10031	# Warning - without using the other run time loading flags,
10032	# -berok will link without error, but may produce a broken library.
10033	no_undefined_flag_CXX=' ${wl}-bernotok'
10034	allow_undefined_flag_CXX=' ${wl}-berok'
10035	# Exported symbols can be pulled into shared objects from archives
10036	whole_archive_flag_spec_CXX='$convenience'
10037	archive_cmds_need_lc_CXX=yes
10038	# This is similar to how AIX traditionally builds its shared libraries.
10039	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10040      fi
10041    fi
10042    ;;
10043
10044  beos*)
10045    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10046      allow_undefined_flag_CXX=unsupported
10047      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10048      # support --undefined.  This deserves some investigation.  FIXME
10049      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050    else
10051      ld_shlibs_CXX=no
10052    fi
10053    ;;
10054
10055  chorus*)
10056    case $cc_basename in
10057      *)
10058	# FIXME: insert proper C++ library support
10059	ld_shlibs_CXX=no
10060	;;
10061    esac
10062    ;;
10063
10064  cygwin* | mingw* | pw32*)
10065    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10066    # as there is no search path for DLLs.
10067    hardcode_libdir_flag_spec_CXX='-L$libdir'
10068    allow_undefined_flag_CXX=unsupported
10069    always_export_symbols_CXX=no
10070    enable_shared_with_static_runtimes_CXX=yes
10071
10072    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10073      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10074      # If the export-symbols file already is a .def file (1st line
10075      # is EXPORTS), use it as is; otherwise, prepend...
10076      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10077	cp $export_symbols $output_objdir/$soname.def;
10078      else
10079	echo EXPORTS > $output_objdir/$soname.def;
10080	cat $export_symbols >> $output_objdir/$soname.def;
10081      fi~
10082      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10083    else
10084      ld_shlibs_CXX=no
10085    fi
10086  ;;
10087      darwin* | rhapsody*)
10088        case $host_os in
10089        rhapsody* | darwin1.[012])
10090         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10091         ;;
10092       *) # Darwin 1.3 on
10093         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10094           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10095         else
10096           case ${MACOSX_DEPLOYMENT_TARGET} in
10097             10.[012])
10098               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10099               ;;
10100             10.*)
10101               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10102               ;;
10103           esac
10104         fi
10105         ;;
10106        esac
10107      archive_cmds_need_lc_CXX=no
10108      hardcode_direct_CXX=no
10109      hardcode_automatic_CXX=yes
10110      hardcode_shlibpath_var_CXX=unsupported
10111      whole_archive_flag_spec_CXX=''
10112      link_all_deplibs_CXX=yes
10113
10114    if test "$GXX" = yes ; then
10115      lt_int_apple_cc_single_mod=no
10116      output_verbose_link_cmd='echo'
10117      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10118       lt_int_apple_cc_single_mod=yes
10119      fi
10120      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10121       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10122      else
10123          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'
10124        fi
10125        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10126        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10127          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10128            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}'
10129          else
10130            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}'
10131          fi
10132            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}'
10133      else
10134      case $cc_basename in
10135        xlc*)
10136         output_verbose_link_cmd='echo'
10137          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'
10138          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10139          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10140          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}'
10141          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}'
10142          ;;
10143       *)
10144         ld_shlibs_CXX=no
10145          ;;
10146      esac
10147      fi
10148        ;;
10149
10150  dgux*)
10151    case $cc_basename in
10152      ec++*)
10153	# FIXME: insert proper C++ library support
10154	ld_shlibs_CXX=no
10155	;;
10156      ghcx*)
10157	# Green Hills C++ Compiler
10158	# FIXME: insert proper C++ library support
10159	ld_shlibs_CXX=no
10160	;;
10161      *)
10162	# FIXME: insert proper C++ library support
10163	ld_shlibs_CXX=no
10164	;;
10165    esac
10166    ;;
10167  freebsd[12]*)
10168    # C++ shared libraries reported to be fairly broken before switch to ELF
10169    ld_shlibs_CXX=no
10170    ;;
10171  freebsd-elf*)
10172    archive_cmds_need_lc_CXX=no
10173    ;;
10174  freebsd* | kfreebsd*-gnu | dragonfly*)
10175    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10176    # conventions
10177    ld_shlibs_CXX=yes
10178    ;;
10179  gnu*)
10180    ;;
10181  hpux9*)
10182    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183    hardcode_libdir_separator_CXX=:
10184    export_dynamic_flag_spec_CXX='${wl}-E'
10185    hardcode_direct_CXX=yes
10186    hardcode_minus_L_CXX=yes # Not in the search PATH,
10187				# but as the default
10188				# location of the library.
10189
10190    case $cc_basename in
10191    CC*)
10192      # FIXME: insert proper C++ library support
10193      ld_shlibs_CXX=no
10194      ;;
10195    aCC*)
10196      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'
10197      # Commands to make compiler produce verbose output that lists
10198      # what "hidden" libraries, object files and flags are used when
10199      # linking a shared library.
10200      #
10201      # There doesn't appear to be a way to prevent this compiler from
10202      # explicitly linking system object files so we need to strip them
10203      # from the output so that they don't get included in the library
10204      # dependencies.
10205      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'
10206      ;;
10207    *)
10208      if test "$GXX" = yes; then
10209        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'
10210      else
10211        # FIXME: insert proper C++ library support
10212        ld_shlibs_CXX=no
10213      fi
10214      ;;
10215    esac
10216    ;;
10217  hpux10*|hpux11*)
10218    if test $with_gnu_ld = no; then
10219      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10220      hardcode_libdir_separator_CXX=:
10221
10222      case $host_cpu in
10223      hppa*64*|ia64*)
10224	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10225        ;;
10226      *)
10227	export_dynamic_flag_spec_CXX='${wl}-E'
10228        ;;
10229      esac
10230    fi
10231    case $host_cpu in
10232    hppa*64*|ia64*)
10233      hardcode_direct_CXX=no
10234      hardcode_shlibpath_var_CXX=no
10235      ;;
10236    *)
10237      hardcode_direct_CXX=yes
10238      hardcode_minus_L_CXX=yes # Not in the search PATH,
10239					      # but as the default
10240					      # location of the library.
10241      ;;
10242    esac
10243
10244    case $cc_basename in
10245      CC*)
10246	# FIXME: insert proper C++ library support
10247	ld_shlibs_CXX=no
10248	;;
10249      aCC*)
10250	case $host_cpu in
10251	hppa*64*)
10252	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10253	  ;;
10254	ia64*)
10255	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10256	  ;;
10257	*)
10258	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10259	  ;;
10260	esac
10261	# Commands to make compiler produce verbose output that lists
10262	# what "hidden" libraries, object files and flags are used when
10263	# linking a shared library.
10264	#
10265	# There doesn't appear to be a way to prevent this compiler from
10266	# explicitly linking system object files so we need to strip them
10267	# from the output so that they don't get included in the library
10268	# dependencies.
10269	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'
10270	;;
10271      *)
10272	if test "$GXX" = yes; then
10273	  if test $with_gnu_ld = no; then
10274	    case $host_cpu in
10275	    hppa*64*)
10276	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277	      ;;
10278	    ia64*)
10279	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10280	      ;;
10281	    *)
10282	      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'
10283	      ;;
10284	    esac
10285	  fi
10286	else
10287	  # FIXME: insert proper C++ library support
10288	  ld_shlibs_CXX=no
10289	fi
10290	;;
10291    esac
10292    ;;
10293  interix3*)
10294    hardcode_direct_CXX=no
10295    hardcode_shlibpath_var_CXX=no
10296    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10297    export_dynamic_flag_spec_CXX='${wl}-E'
10298    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10299    # Instead, shared libraries are loaded at an image base (0x10000000 by
10300    # default) and relocated if they conflict, which is a slow very memory
10301    # consuming and fragmenting process.  To avoid this, we pick a random,
10302    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10303    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10304    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10305    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10306    ;;
10307  irix5* | irix6*)
10308    case $cc_basename in
10309      CC*)
10310	# SGI C++
10311	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'
10312
10313	# Archives containing C++ object files must be created using
10314	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10315	# necessary to make sure instantiated templates are included
10316	# in the archive.
10317	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10318	;;
10319      *)
10320	if test "$GXX" = yes; then
10321	  if test "$with_gnu_ld" = no; then
10322	    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'
10323	  else
10324	    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'
10325	  fi
10326	fi
10327	link_all_deplibs_CXX=yes
10328	;;
10329    esac
10330    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10331    hardcode_libdir_separator_CXX=:
10332    ;;
10333  linux*)
10334    case $cc_basename in
10335      KCC*)
10336	# Kuck and Associates, Inc. (KAI) C++ Compiler
10337
10338	# KCC will only create a shared library if the output file
10339	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10340	# to its proper name (with version) after linking.
10341	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'
10342	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'
10343	# Commands to make compiler produce verbose output that lists
10344	# what "hidden" libraries, object files and flags are used when
10345	# linking a shared library.
10346	#
10347	# There doesn't appear to be a way to prevent this compiler from
10348	# explicitly linking system object files so we need to strip them
10349	# from the output so that they don't get included in the library
10350	# dependencies.
10351	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'
10352
10353	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10354	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355
10356	# Archives containing C++ object files must be created using
10357	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10358	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10359	;;
10360      icpc*)
10361	# Intel C++
10362	with_gnu_ld=yes
10363	# version 8.0 and above of icpc choke on multiply defined symbols
10364	# if we add $predep_objects and $postdep_objects, however 7.1 and
10365	# earlier do not add the objects themselves.
10366	case `$CC -V 2>&1` in
10367	*"Version 7."*)
10368  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369  	  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'
10370	  ;;
10371	*)  # Version 8.0 or newer
10372	  tmp_idyn=
10373	  case $host_cpu in
10374	    ia64*) tmp_idyn=' -i_dynamic';;
10375	  esac
10376  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377	  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'
10378	  ;;
10379	esac
10380	archive_cmds_need_lc_CXX=no
10381	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10382	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10383	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10384	;;
10385      pgCC*)
10386        # Portland Group C++ compiler
10387	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10388  	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'
10389
10390	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10391	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10392	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'
10393        ;;
10394      cxx*)
10395	# Compaq C++
10396	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397	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'
10398
10399	runpath_var=LD_RUN_PATH
10400	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10401	hardcode_libdir_separator_CXX=:
10402
10403	# Commands to make compiler produce verbose output that lists
10404	# what "hidden" libraries, object files and flags are used when
10405	# linking a shared library.
10406	#
10407	# There doesn't appear to be a way to prevent this compiler from
10408	# explicitly linking system object files so we need to strip them
10409	# from the output so that they don't get included in the library
10410	# dependencies.
10411	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'
10412	;;
10413    esac
10414    ;;
10415  lynxos*)
10416    # FIXME: insert proper C++ library support
10417    ld_shlibs_CXX=no
10418    ;;
10419  m88k*)
10420    # FIXME: insert proper C++ library support
10421    ld_shlibs_CXX=no
10422    ;;
10423  mvs*)
10424    case $cc_basename in
10425      cxx*)
10426	# FIXME: insert proper C++ library support
10427	ld_shlibs_CXX=no
10428	;;
10429      *)
10430	# FIXME: insert proper C++ library support
10431	ld_shlibs_CXX=no
10432	;;
10433    esac
10434    ;;
10435  netbsd*)
10436    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10437      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10438      wlarc=
10439      hardcode_libdir_flag_spec_CXX='-R$libdir'
10440      hardcode_direct_CXX=yes
10441      hardcode_shlibpath_var_CXX=no
10442    fi
10443    # Workaround some broken pre-1.5 toolchains
10444    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10445    ;;
10446  openbsd2*)
10447    # C++ shared libraries are fairly broken
10448    ld_shlibs_CXX=no
10449    ;;
10450  openbsd*)
10451    hardcode_direct_CXX=yes
10452    hardcode_shlibpath_var_CXX=no
10453    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10454    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10455    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10456      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10457      export_dynamic_flag_spec_CXX='${wl}-E'
10458      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10459    fi
10460    output_verbose_link_cmd='echo'
10461    ;;
10462  osf3*)
10463    case $cc_basename in
10464      KCC*)
10465	# Kuck and Associates, Inc. (KAI) C++ Compiler
10466
10467	# KCC will only create a shared library if the output file
10468	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10469	# to its proper name (with version) after linking.
10470	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'
10471
10472	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10473	hardcode_libdir_separator_CXX=:
10474
10475	# Archives containing C++ object files must be created using
10476	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10477	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10478
10479	;;
10480      RCC*)
10481	# Rational C++ 2.4.1
10482	# FIXME: insert proper C++ library support
10483	ld_shlibs_CXX=no
10484	;;
10485      cxx*)
10486	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10487	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'
10488
10489	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10490	hardcode_libdir_separator_CXX=:
10491
10492	# Commands to make compiler produce verbose output that lists
10493	# what "hidden" libraries, object files and flags are used when
10494	# linking a shared library.
10495	#
10496	# There doesn't appear to be a way to prevent this compiler from
10497	# explicitly linking system object files so we need to strip them
10498	# from the output so that they don't get included in the library
10499	# dependencies.
10500	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'
10501	;;
10502      *)
10503	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10504	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10505	  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'
10506
10507	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10508	  hardcode_libdir_separator_CXX=:
10509
10510	  # Commands to make compiler produce verbose output that lists
10511	  # what "hidden" libraries, object files and flags are used when
10512	  # linking a shared library.
10513	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10514
10515	else
10516	  # FIXME: insert proper C++ library support
10517	  ld_shlibs_CXX=no
10518	fi
10519	;;
10520    esac
10521    ;;
10522  osf4* | osf5*)
10523    case $cc_basename in
10524      KCC*)
10525	# Kuck and Associates, Inc. (KAI) C++ Compiler
10526
10527	# KCC will only create a shared library if the output file
10528	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10529	# to its proper name (with version) after linking.
10530	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'
10531
10532	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10533	hardcode_libdir_separator_CXX=:
10534
10535	# Archives containing C++ object files must be created using
10536	# the KAI C++ compiler.
10537	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10538	;;
10539      RCC*)
10540	# Rational C++ 2.4.1
10541	# FIXME: insert proper C++ library support
10542	ld_shlibs_CXX=no
10543	;;
10544      cxx*)
10545	allow_undefined_flag_CXX=' -expect_unresolved \*'
10546	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'
10547	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10548	  echo "-hidden">> $lib.exp~
10549	  $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~
10550	  $rm $lib.exp'
10551
10552	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10553	hardcode_libdir_separator_CXX=:
10554
10555	# Commands to make compiler produce verbose output that lists
10556	# what "hidden" libraries, object files and flags are used when
10557	# linking a shared library.
10558	#
10559	# There doesn't appear to be a way to prevent this compiler from
10560	# explicitly linking system object files so we need to strip them
10561	# from the output so that they don't get included in the library
10562	# dependencies.
10563	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'
10564	;;
10565      *)
10566	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10567	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10568	 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'
10569
10570	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10571	  hardcode_libdir_separator_CXX=:
10572
10573	  # Commands to make compiler produce verbose output that lists
10574	  # what "hidden" libraries, object files and flags are used when
10575	  # linking a shared library.
10576	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10577
10578	else
10579	  # FIXME: insert proper C++ library support
10580	  ld_shlibs_CXX=no
10581	fi
10582	;;
10583    esac
10584    ;;
10585  psos*)
10586    # FIXME: insert proper C++ library support
10587    ld_shlibs_CXX=no
10588    ;;
10589  sunos4*)
10590    case $cc_basename in
10591      CC*)
10592	# Sun C++ 4.x
10593	# FIXME: insert proper C++ library support
10594	ld_shlibs_CXX=no
10595	;;
10596      lcc*)
10597	# Lucid
10598	# FIXME: insert proper C++ library support
10599	ld_shlibs_CXX=no
10600	;;
10601      *)
10602	# FIXME: insert proper C++ library support
10603	ld_shlibs_CXX=no
10604	;;
10605    esac
10606    ;;
10607  solaris*)
10608    case $cc_basename in
10609      CC*)
10610	# Sun C++ 4.2, 5.x and Centerline C++
10611        archive_cmds_need_lc_CXX=yes
10612	no_undefined_flag_CXX=' -zdefs'
10613	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10614	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10615	$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'
10616
10617	hardcode_libdir_flag_spec_CXX='-R$libdir'
10618	hardcode_shlibpath_var_CXX=no
10619	case $host_os in
10620	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10621	  *)
10622	    # The C++ compiler is used as linker so we must use $wl
10623	    # flag to pass the commands to the underlying system
10624	    # linker. We must also pass each convience library through
10625	    # to the system linker between allextract/defaultextract.
10626	    # The C++ compiler will combine linker options so we
10627	    # cannot just pass the convience library names through
10628	    # without $wl.
10629	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10630	    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'
10631	    ;;
10632	esac
10633	link_all_deplibs_CXX=yes
10634
10635	output_verbose_link_cmd='echo'
10636
10637	# Archives containing C++ object files must be created using
10638	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10639	# necessary to make sure instantiated templates are included
10640	# in the archive.
10641	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10642	;;
10643      gcx*)
10644	# Green Hills C++ Compiler
10645	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10646
10647	# The C++ compiler must be used to create the archive.
10648	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10649	;;
10650      *)
10651	# GNU C++ compiler with Solaris linker
10652	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10653	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10654	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10655	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10656	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10657		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10658
10659	    # Commands to make compiler produce verbose output that lists
10660	    # what "hidden" libraries, object files and flags are used when
10661	    # linking a shared library.
10662	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10663	  else
10664	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10665	    # platform.
10666	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10667	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10668		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10669
10670	    # Commands to make compiler produce verbose output that lists
10671	    # what "hidden" libraries, object files and flags are used when
10672	    # linking a shared library.
10673	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10674	  fi
10675
10676	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10677	fi
10678	;;
10679    esac
10680    ;;
10681  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10682    no_undefined_flag_CXX='${wl}-z,text'
10683    archive_cmds_need_lc_CXX=no
10684    hardcode_shlibpath_var_CXX=no
10685    runpath_var='LD_RUN_PATH'
10686
10687    case $cc_basename in
10688      CC*)
10689	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691	;;
10692      *)
10693	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695	;;
10696    esac
10697    ;;
10698  sysv5* | sco3.2v5* | sco5v6*)
10699    # Note: We can NOT use -z defs as we might desire, because we do not
10700    # link with -lc, and that would cause any symbols used from libc to
10701    # always be unresolved, which means just about no library would
10702    # ever link correctly.  If we're not using GNU ld we use -z text
10703    # though, which does catch some bad symbols but isn't as heavy-handed
10704    # as -z defs.
10705    # For security reasons, it is highly recommended that you always
10706    # use absolute paths for naming shared libraries, and exclude the
10707    # DT_RUNPATH tag from executables and libraries.  But doing so
10708    # requires that you compile everything twice, which is a pain.
10709    # So that behaviour is only enabled if SCOABSPATH is set to a
10710    # non-empty value in the environment.  Most likely only useful for
10711    # creating official distributions of packages.
10712    # This is a hack until libtool officially supports absolute path
10713    # names for shared libraries.
10714    no_undefined_flag_CXX='${wl}-z,text'
10715    allow_undefined_flag_CXX='${wl}-z,nodefs'
10716    archive_cmds_need_lc_CXX=no
10717    hardcode_shlibpath_var_CXX=no
10718    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10719    hardcode_libdir_separator_CXX=':'
10720    link_all_deplibs_CXX=yes
10721    export_dynamic_flag_spec_CXX='${wl}-Bexport'
10722    runpath_var='LD_RUN_PATH'
10723
10724    case $cc_basename in
10725      CC*)
10726	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728	;;
10729      *)
10730	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10731	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10732	;;
10733    esac
10734    ;;
10735  tandem*)
10736    case $cc_basename in
10737      NCC*)
10738	# NonStop-UX NCC 3.20
10739	# FIXME: insert proper C++ library support
10740	ld_shlibs_CXX=no
10741	;;
10742      *)
10743	# FIXME: insert proper C++ library support
10744	ld_shlibs_CXX=no
10745	;;
10746    esac
10747    ;;
10748  vxworks*)
10749    # FIXME: insert proper C++ library support
10750    ld_shlibs_CXX=no
10751    ;;
10752  *)
10753    # FIXME: insert proper C++ library support
10754    ld_shlibs_CXX=no
10755    ;;
10756esac
10757echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10758echo "${ECHO_T}$ld_shlibs_CXX" >&6
10759test "$ld_shlibs_CXX" = no && can_build_shared=no
10760
10761GCC_CXX="$GXX"
10762LD_CXX="$LD"
10763
10764
10765cat > conftest.$ac_ext <<EOF
10766class Foo
10767{
10768public:
10769  Foo (void) { a = 0; }
10770private:
10771  int a;
10772};
10773EOF
10774
10775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776  (eval $ac_compile) 2>&5
10777  ac_status=$?
10778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779  (exit $ac_status); }; then
10780  # Parse the compiler output and extract the necessary
10781  # objects, libraries and library flags.
10782
10783  # Sentinel used to keep track of whether or not we are before
10784  # the conftest object file.
10785  pre_test_object_deps_done=no
10786
10787  # The `*' in the case matches for architectures that use `case' in
10788  # $output_verbose_cmd can trigger glob expansion during the loop
10789  # eval without this substitution.
10790  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10791
10792  for p in `eval $output_verbose_link_cmd`; do
10793    case $p in
10794
10795    -L* | -R* | -l*)
10796       # Some compilers place space between "-{L,R}" and the path.
10797       # Remove the space.
10798       if test $p = "-L" \
10799	  || test $p = "-R"; then
10800	 prev=$p
10801	 continue
10802       else
10803	 prev=
10804       fi
10805
10806       if test "$pre_test_object_deps_done" = no; then
10807	 case $p in
10808	 -L* | -R*)
10809	   # Internal compiler library paths should come after those
10810	   # provided the user.  The postdeps already come after the
10811	   # user supplied libs so there is no need to process them.
10812	   if test -z "$compiler_lib_search_path_CXX"; then
10813	     compiler_lib_search_path_CXX="${prev}${p}"
10814	   else
10815	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10816	   fi
10817	   ;;
10818	 # The "-l" case would never come before the object being
10819	 # linked, so don't bother handling this case.
10820	 esac
10821       else
10822	 if test -z "$postdeps_CXX"; then
10823	   postdeps_CXX="${prev}${p}"
10824	 else
10825	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10826	 fi
10827       fi
10828       ;;
10829
10830    *.$objext)
10831       # This assumes that the test object file only shows up
10832       # once in the compiler output.
10833       if test "$p" = "conftest.$objext"; then
10834	 pre_test_object_deps_done=yes
10835	 continue
10836       fi
10837
10838       if test "$pre_test_object_deps_done" = no; then
10839	 if test -z "$predep_objects_CXX"; then
10840	   predep_objects_CXX="$p"
10841	 else
10842	   predep_objects_CXX="$predep_objects_CXX $p"
10843	 fi
10844       else
10845	 if test -z "$postdep_objects_CXX"; then
10846	   postdep_objects_CXX="$p"
10847	 else
10848	   postdep_objects_CXX="$postdep_objects_CXX $p"
10849	 fi
10850       fi
10851       ;;
10852
10853    *) ;; # Ignore the rest.
10854
10855    esac
10856  done
10857
10858  # Clean up.
10859  rm -f a.out a.exe
10860else
10861  echo "libtool.m4: error: problem compiling CXX test program"
10862fi
10863
10864$rm -f confest.$objext
10865
10866# PORTME: override above test on systems where it is broken
10867case $host_os in
10868interix3*)
10869  # Interix 3.5 installs completely hosed .la files for C++, so rather than
10870  # hack all around it, let's just trust "g++" to DTRT.
10871  predep_objects_CXX=
10872  postdep_objects_CXX=
10873  postdeps_CXX=
10874  ;;
10875
10876solaris*)
10877  case $cc_basename in
10878  CC*)
10879    # Adding this requires a known-good setup of shared libraries for
10880    # Sun compiler versions before 5.6, else PIC objects from an old
10881    # archive will be linked into the output, leading to subtle bugs.
10882    postdeps_CXX='-lCstd -lCrun'
10883    ;;
10884  esac
10885  ;;
10886esac
10887
10888
10889case " $postdeps_CXX " in
10890*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10891esac
10892
10893lt_prog_compiler_wl_CXX=
10894lt_prog_compiler_pic_CXX=
10895lt_prog_compiler_static_CXX=
10896
10897echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10898echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10899
10900  # C++ specific cases for pic, static, wl, etc.
10901  if test "$GXX" = yes; then
10902    lt_prog_compiler_wl_CXX='-Wl,'
10903    lt_prog_compiler_static_CXX='-static'
10904
10905    case $host_os in
10906    aix*)
10907      # All AIX code is PIC.
10908      if test "$host_cpu" = ia64; then
10909	# AIX 5 now supports IA64 processor
10910	lt_prog_compiler_static_CXX='-Bstatic'
10911      fi
10912      ;;
10913    amigaos*)
10914      # FIXME: we need at least 68020 code to build shared libraries, but
10915      # adding the `-m68020' flag to GCC prevents building anything better,
10916      # like `-m68040'.
10917      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10918      ;;
10919    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10920      # PIC is the default for these OSes.
10921      ;;
10922    mingw* | os2* | pw32*)
10923      # This hack is so that the source file can tell whether it is being
10924      # built for inclusion in a dll (and should export symbols for example).
10925      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10926      ;;
10927    darwin* | rhapsody*)
10928      # PIC is the default on this platform
10929      # Common symbols not allowed in MH_DYLIB files
10930      lt_prog_compiler_pic_CXX='-fno-common'
10931      ;;
10932    *djgpp*)
10933      # DJGPP does not support shared libraries at all
10934      lt_prog_compiler_pic_CXX=
10935      ;;
10936    interix3*)
10937      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10938      # Instead, we relocate shared libraries at runtime.
10939      ;;
10940    sysv4*MP*)
10941      if test -d /usr/nec; then
10942	lt_prog_compiler_pic_CXX=-Kconform_pic
10943      fi
10944      ;;
10945    hpux*)
10946      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10947      # not for PA HP-UX.
10948      case $host_cpu in
10949      hppa*64*|ia64*)
10950	;;
10951      *)
10952	lt_prog_compiler_pic_CXX='-fPIC'
10953	;;
10954      esac
10955      ;;
10956    *)
10957      lt_prog_compiler_pic_CXX='-fPIC'
10958      ;;
10959    esac
10960  else
10961    case $host_os in
10962      aix4* | aix5*)
10963	# All AIX code is PIC.
10964	if test "$host_cpu" = ia64; then
10965	  # AIX 5 now supports IA64 processor
10966	  lt_prog_compiler_static_CXX='-Bstatic'
10967	else
10968	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10969	fi
10970	;;
10971      chorus*)
10972	case $cc_basename in
10973	cxch68*)
10974	  # Green Hills C++ Compiler
10975	  # _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"
10976	  ;;
10977	esac
10978	;;
10979       darwin*)
10980         # PIC is the default on this platform
10981         # Common symbols not allowed in MH_DYLIB files
10982         case $cc_basename in
10983           xlc*)
10984           lt_prog_compiler_pic_CXX='-qnocommon'
10985           lt_prog_compiler_wl_CXX='-Wl,'
10986           ;;
10987         esac
10988       ;;
10989      dgux*)
10990	case $cc_basename in
10991	  ec++*)
10992	    lt_prog_compiler_pic_CXX='-KPIC'
10993	    ;;
10994	  ghcx*)
10995	    # Green Hills C++ Compiler
10996	    lt_prog_compiler_pic_CXX='-pic'
10997	    ;;
10998	  *)
10999	    ;;
11000	esac
11001	;;
11002      freebsd* | kfreebsd*-gnu | dragonfly*)
11003	# FreeBSD uses GNU C++
11004	;;
11005      hpux9* | hpux10* | hpux11*)
11006	case $cc_basename in
11007	  CC*)
11008	    lt_prog_compiler_wl_CXX='-Wl,'
11009	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11010	    if test "$host_cpu" != ia64; then
11011	      lt_prog_compiler_pic_CXX='+Z'
11012	    fi
11013	    ;;
11014	  aCC*)
11015	    lt_prog_compiler_wl_CXX='-Wl,'
11016	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11017	    case $host_cpu in
11018	    hppa*64*|ia64*)
11019	      # +Z the default
11020	      ;;
11021	    *)
11022	      lt_prog_compiler_pic_CXX='+Z'
11023	      ;;
11024	    esac
11025	    ;;
11026	  *)
11027	    ;;
11028	esac
11029	;;
11030      interix*)
11031	# This is c89, which is MS Visual C++ (no shared libs)
11032	# Anyone wants to do a port?
11033	;;
11034      irix5* | irix6* | nonstopux*)
11035	case $cc_basename in
11036	  CC*)
11037	    lt_prog_compiler_wl_CXX='-Wl,'
11038	    lt_prog_compiler_static_CXX='-non_shared'
11039	    # CC pic flag -KPIC is the default.
11040	    ;;
11041	  *)
11042	    ;;
11043	esac
11044	;;
11045      linux*)
11046	case $cc_basename in
11047	  KCC*)
11048	    # KAI C++ Compiler
11049	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11050	    lt_prog_compiler_pic_CXX='-fPIC'
11051	    ;;
11052	  icpc* | ecpc*)
11053	    # Intel C++
11054	    lt_prog_compiler_wl_CXX='-Wl,'
11055	    lt_prog_compiler_pic_CXX='-KPIC'
11056	    lt_prog_compiler_static_CXX='-static'
11057	    ;;
11058	  pgCC*)
11059	    # Portland Group C++ compiler.
11060	    lt_prog_compiler_wl_CXX='-Wl,'
11061	    lt_prog_compiler_pic_CXX='-fpic'
11062	    lt_prog_compiler_static_CXX='-Bstatic'
11063	    ;;
11064	  cxx*)
11065	    # Compaq C++
11066	    # Make sure the PIC flag is empty.  It appears that all Alpha
11067	    # Linux and Compaq Tru64 Unix objects are PIC.
11068	    lt_prog_compiler_pic_CXX=
11069	    lt_prog_compiler_static_CXX='-non_shared'
11070	    ;;
11071	  *)
11072	    ;;
11073	esac
11074	;;
11075      lynxos*)
11076	;;
11077      m88k*)
11078	;;
11079      mvs*)
11080	case $cc_basename in
11081	  cxx*)
11082	    lt_prog_compiler_pic_CXX='-W c,exportall'
11083	    ;;
11084	  *)
11085	    ;;
11086	esac
11087	;;
11088      netbsd*)
11089	;;
11090      osf3* | osf4* | osf5*)
11091	case $cc_basename in
11092	  KCC*)
11093	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11094	    ;;
11095	  RCC*)
11096	    # Rational C++ 2.4.1
11097	    lt_prog_compiler_pic_CXX='-pic'
11098	    ;;
11099	  cxx*)
11100	    # Digital/Compaq C++
11101	    lt_prog_compiler_wl_CXX='-Wl,'
11102	    # Make sure the PIC flag is empty.  It appears that all Alpha
11103	    # Linux and Compaq Tru64 Unix objects are PIC.
11104	    lt_prog_compiler_pic_CXX=
11105	    lt_prog_compiler_static_CXX='-non_shared'
11106	    ;;
11107	  *)
11108	    ;;
11109	esac
11110	;;
11111      psos*)
11112	;;
11113      solaris*)
11114	case $cc_basename in
11115	  CC*)
11116	    # Sun C++ 4.2, 5.x and Centerline C++
11117	    lt_prog_compiler_pic_CXX='-KPIC'
11118	    lt_prog_compiler_static_CXX='-Bstatic'
11119	    lt_prog_compiler_wl_CXX='-Qoption ld '
11120	    ;;
11121	  gcx*)
11122	    # Green Hills C++ Compiler
11123	    lt_prog_compiler_pic_CXX='-PIC'
11124	    ;;
11125	  *)
11126	    ;;
11127	esac
11128	;;
11129      sunos4*)
11130	case $cc_basename in
11131	  CC*)
11132	    # Sun C++ 4.x
11133	    lt_prog_compiler_pic_CXX='-pic'
11134	    lt_prog_compiler_static_CXX='-Bstatic'
11135	    ;;
11136	  lcc*)
11137	    # Lucid
11138	    lt_prog_compiler_pic_CXX='-pic'
11139	    ;;
11140	  *)
11141	    ;;
11142	esac
11143	;;
11144      tandem*)
11145	case $cc_basename in
11146	  NCC*)
11147	    # NonStop-UX NCC 3.20
11148	    lt_prog_compiler_pic_CXX='-KPIC'
11149	    ;;
11150	  *)
11151	    ;;
11152	esac
11153	;;
11154      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11155	case $cc_basename in
11156	  CC*)
11157	    lt_prog_compiler_wl_CXX='-Wl,'
11158	    lt_prog_compiler_pic_CXX='-KPIC'
11159	    lt_prog_compiler_static_CXX='-Bstatic'
11160	    ;;
11161	esac
11162	;;
11163      vxworks*)
11164	;;
11165      *)
11166	lt_prog_compiler_can_build_shared_CXX=no
11167	;;
11168    esac
11169  fi
11170
11171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11172echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11173
11174#
11175# Check to make sure the PIC flag actually works.
11176#
11177if test -n "$lt_prog_compiler_pic_CXX"; then
11178
11179echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11180echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11181if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11182  echo $ECHO_N "(cached) $ECHO_C" >&6
11183else
11184  lt_prog_compiler_pic_works_CXX=no
11185  ac_outfile=conftest.$ac_objext
11186   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11187   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11188   # Insert the option either (1) after the last *FLAGS variable, or
11189   # (2) before a word containing "conftest.", or (3) at the end.
11190   # Note that $ac_compile itself does not contain backslashes and begins
11191   # with a dollar sign (not a hyphen), so the echo should work correctly.
11192   # The option is referenced via a variable to avoid confusing sed.
11193   lt_compile=`echo "$ac_compile" | $SED \
11194   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11196   -e 's:$: $lt_compiler_flag:'`
11197   (eval echo "\"\$as_me:11197: $lt_compile\"" >&5)
11198   (eval "$lt_compile" 2>conftest.err)
11199   ac_status=$?
11200   cat conftest.err >&5
11201   echo "$as_me:11201: \$? = $ac_status" >&5
11202   if (exit $ac_status) && test -s "$ac_outfile"; then
11203     # The compiler can only warn and ignore the option if not recognized
11204     # So say no if there are warnings other than the usual output.
11205     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11206     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11207     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11208       lt_prog_compiler_pic_works_CXX=yes
11209     fi
11210   fi
11211   $rm conftest*
11212
11213fi
11214echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11215echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11216
11217if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11218    case $lt_prog_compiler_pic_CXX in
11219     "" | " "*) ;;
11220     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11221     esac
11222else
11223    lt_prog_compiler_pic_CXX=
11224     lt_prog_compiler_can_build_shared_CXX=no
11225fi
11226
11227fi
11228case $host_os in
11229  # For platforms which do not support PIC, -DPIC is meaningless:
11230  *djgpp*)
11231    lt_prog_compiler_pic_CXX=
11232    ;;
11233  *)
11234    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11235    ;;
11236esac
11237
11238#
11239# Check to make sure the static flag actually works.
11240#
11241wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11242echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11243echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11244if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11245  echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
11247  lt_prog_compiler_static_works_CXX=no
11248   save_LDFLAGS="$LDFLAGS"
11249   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11250   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11251   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11252     # The linker can only warn and ignore the option if not recognized
11253     # So say no if there are warnings
11254     if test -s conftest.err; then
11255       # Append any errors to the config.log.
11256       cat conftest.err 1>&5
11257       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11258       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11259       if diff conftest.exp conftest.er2 >/dev/null; then
11260         lt_prog_compiler_static_works_CXX=yes
11261       fi
11262     else
11263       lt_prog_compiler_static_works_CXX=yes
11264     fi
11265   fi
11266   $rm conftest*
11267   LDFLAGS="$save_LDFLAGS"
11268
11269fi
11270echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11271echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11272
11273if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11274    :
11275else
11276    lt_prog_compiler_static_CXX=
11277fi
11278
11279
11280echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11281echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11282if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11283  echo $ECHO_N "(cached) $ECHO_C" >&6
11284else
11285  lt_cv_prog_compiler_c_o_CXX=no
11286   $rm -r conftest 2>/dev/null
11287   mkdir conftest
11288   cd conftest
11289   mkdir out
11290   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11291
11292   lt_compiler_flag="-o out/conftest2.$ac_objext"
11293   # Insert the option either (1) after the last *FLAGS variable, or
11294   # (2) before a word containing "conftest.", or (3) at the end.
11295   # Note that $ac_compile itself does not contain backslashes and begins
11296   # with a dollar sign (not a hyphen), so the echo should work correctly.
11297   lt_compile=`echo "$ac_compile" | $SED \
11298   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11300   -e 's:$: $lt_compiler_flag:'`
11301   (eval echo "\"\$as_me:11301: $lt_compile\"" >&5)
11302   (eval "$lt_compile" 2>out/conftest.err)
11303   ac_status=$?
11304   cat out/conftest.err >&5
11305   echo "$as_me:11305: \$? = $ac_status" >&5
11306   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11307   then
11308     # The compiler can only warn and ignore the option if not recognized
11309     # So say no if there are warnings
11310     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11311     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11312     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11313       lt_cv_prog_compiler_c_o_CXX=yes
11314     fi
11315   fi
11316   chmod u+w . 2>&5
11317   $rm conftest*
11318   # SGI C++ compiler will create directory out/ii_files/ for
11319   # template instantiation
11320   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11321   $rm out/* && rmdir out
11322   cd ..
11323   rmdir conftest
11324   $rm conftest*
11325
11326fi
11327echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11328echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11329
11330
11331hard_links="nottested"
11332if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11333  # do not overwrite the value of need_locks provided by the user
11334  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11335echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11336  hard_links=yes
11337  $rm conftest*
11338  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11339  touch conftest.a
11340  ln conftest.a conftest.b 2>&5 || hard_links=no
11341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11342  echo "$as_me:$LINENO: result: $hard_links" >&5
11343echo "${ECHO_T}$hard_links" >&6
11344  if test "$hard_links" = no; then
11345    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11346echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11347    need_locks=warn
11348  fi
11349else
11350  need_locks=no
11351fi
11352
11353echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11354echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11355
11356  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11357  case $host_os in
11358  aix4* | aix5*)
11359    # If we're using GNU nm, then we don't want the "-C" option.
11360    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11361    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11362      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'
11363    else
11364      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'
11365    fi
11366    ;;
11367  pw32*)
11368    export_symbols_cmds_CXX="$ltdll_cmds"
11369  ;;
11370  cygwin* | mingw*)
11371    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'
11372  ;;
11373  *)
11374    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11375  ;;
11376  esac
11377
11378echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11379echo "${ECHO_T}$ld_shlibs_CXX" >&6
11380test "$ld_shlibs_CXX" = no && can_build_shared=no
11381
11382#
11383# Do we need to explicitly link libc?
11384#
11385case "x$archive_cmds_need_lc_CXX" in
11386x|xyes)
11387  # Assume -lc should be added
11388  archive_cmds_need_lc_CXX=yes
11389
11390  if test "$enable_shared" = yes && test "$GCC" = yes; then
11391    case $archive_cmds_CXX in
11392    *'~'*)
11393      # FIXME: we may have to deal with multi-command sequences.
11394      ;;
11395    '$CC '*)
11396      # Test whether the compiler implicitly links with -lc since on some
11397      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11398      # to ld, don't add -lc before -lgcc.
11399      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11400echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11401      $rm conftest*
11402      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11403
11404      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405  (eval $ac_compile) 2>&5
11406  ac_status=$?
11407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408  (exit $ac_status); } 2>conftest.err; then
11409        soname=conftest
11410        lib=conftest
11411        libobjs=conftest.$ac_objext
11412        deplibs=
11413        wl=$lt_prog_compiler_wl_CXX
11414	pic_flag=$lt_prog_compiler_pic_CXX
11415        compiler_flags=-v
11416        linker_flags=-v
11417        verstring=
11418        output_objdir=.
11419        libname=conftest
11420        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11421        allow_undefined_flag_CXX=
11422        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11423  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11424  ac_status=$?
11425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426  (exit $ac_status); }
11427        then
11428	  archive_cmds_need_lc_CXX=no
11429        else
11430	  archive_cmds_need_lc_CXX=yes
11431        fi
11432        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11433      else
11434        cat conftest.err 1>&5
11435      fi
11436      $rm conftest*
11437      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11438echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11439      ;;
11440    esac
11441  fi
11442  ;;
11443esac
11444
11445echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11446echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11447library_names_spec=
11448libname_spec='lib$name'
11449soname_spec=
11450shrext_cmds=".so"
11451postinstall_cmds=
11452postuninstall_cmds=
11453finish_cmds=
11454finish_eval=
11455shlibpath_var=
11456shlibpath_overrides_runpath=unknown
11457version_type=none
11458dynamic_linker="$host_os ld.so"
11459sys_lib_dlsearch_path_spec="/lib /usr/lib"
11460if test "$GCC" = yes; then
11461  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11462  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11463    # if the path contains ";" then we assume it to be the separator
11464    # otherwise default to the standard path separator (i.e. ":") - it is
11465    # assumed that no part of a normal pathname contains ";" but that should
11466    # okay in the real world where ";" in dirpaths is itself problematic.
11467    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11468  else
11469    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11470  fi
11471else
11472  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11473fi
11474need_lib_prefix=unknown
11475hardcode_into_libs=no
11476
11477# when you set need_version to no, make sure it does not cause -set_version
11478# flags to be left without arguments
11479need_version=unknown
11480
11481case $host_os in
11482aix3*)
11483  version_type=linux
11484  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11485  shlibpath_var=LIBPATH
11486
11487  # AIX 3 has no versioning support, so we append a major version to the name.
11488  soname_spec='${libname}${release}${shared_ext}$major'
11489  ;;
11490
11491aix4* | aix5*)
11492  version_type=linux
11493  need_lib_prefix=no
11494  need_version=no
11495  hardcode_into_libs=yes
11496  if test "$host_cpu" = ia64; then
11497    # AIX 5 supports IA64
11498    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11499    shlibpath_var=LD_LIBRARY_PATH
11500  else
11501    # With GCC up to 2.95.x, collect2 would create an import file
11502    # for dependence libraries.  The import file would start with
11503    # the line `#! .'.  This would cause the generated library to
11504    # depend on `.', always an invalid library.  This was fixed in
11505    # development snapshots of GCC prior to 3.0.
11506    case $host_os in
11507      aix4 | aix4.[01] | aix4.[01].*)
11508      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11509	   echo ' yes '
11510	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11511	:
11512      else
11513	can_build_shared=no
11514      fi
11515      ;;
11516    esac
11517    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11518    # soname into executable. Probably we can add versioning support to
11519    # collect2, so additional links can be useful in future.
11520    if test "$aix_use_runtimelinking" = yes; then
11521      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11522      # instead of lib<name>.a to let people know that these are not
11523      # typical AIX shared libraries.
11524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525    else
11526      # We preserve .a as extension for shared libraries through AIX4.2
11527      # and later when we are not doing run time linking.
11528      library_names_spec='${libname}${release}.a $libname.a'
11529      soname_spec='${libname}${release}${shared_ext}$major'
11530    fi
11531    shlibpath_var=LIBPATH
11532  fi
11533  ;;
11534
11535amigaos*)
11536  library_names_spec='$libname.ixlibrary $libname.a'
11537  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11538  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'
11539  ;;
11540
11541beos*)
11542  library_names_spec='${libname}${shared_ext}'
11543  dynamic_linker="$host_os ld.so"
11544  shlibpath_var=LIBRARY_PATH
11545  ;;
11546
11547bsdi[45]*)
11548  version_type=linux
11549  need_version=no
11550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551  soname_spec='${libname}${release}${shared_ext}$major'
11552  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553  shlibpath_var=LD_LIBRARY_PATH
11554  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556  # the default ld.so.conf also contains /usr/contrib/lib and
11557  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558  # libtool to hard-code these into programs
11559  ;;
11560
11561cygwin* | mingw* | pw32*)
11562  version_type=windows
11563  shrext_cmds=".dll"
11564  need_version=no
11565  need_lib_prefix=no
11566
11567  case $GCC,$host_os in
11568  yes,cygwin* | yes,mingw* | yes,pw32*)
11569    library_names_spec='$libname.dll.a'
11570    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11571    postinstall_cmds='base_file=`basename \${file}`~
11572      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11573      dldir=$destdir/`dirname \$dlpath`~
11574      test -d \$dldir || mkdir -p \$dldir~
11575      $install_prog $dir/$dlname \$dldir/$dlname~
11576      chmod a+x \$dldir/$dlname'
11577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11578      dlpath=$dir/\$dldll~
11579       $rm \$dlpath'
11580    shlibpath_overrides_runpath=yes
11581
11582    case $host_os in
11583    cygwin*)
11584      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11585      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11586      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11587      ;;
11588    mingw*)
11589      # MinGW DLLs use traditional 'lib' prefix
11590      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11591      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11592      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11593        # It is most probably a Windows format PATH printed by
11594        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11595        # path with ; separators, and with drive letters. We can handle the
11596        # drive letters (cygwin fileutils understands them), so leave them,
11597        # especially as we might pass files found there to a mingw objdump,
11598        # which wouldn't understand a cygwinified path. Ahh.
11599        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11600      else
11601        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11602      fi
11603      ;;
11604    pw32*)
11605      # pw32 DLLs use 'pw' prefix rather than 'lib'
11606      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11607      ;;
11608    esac
11609    ;;
11610
11611  linux*)
11612    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11613      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614      supports_anon_versioning=no
11615      case `$LD -v 2>/dev/null` in
11616        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11617        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11618        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11619        *\ 2.11.*) ;; # other 2.11 versions
11620        *) supports_anon_versioning=yes ;;
11621      esac
11622      if test $supports_anon_versioning = yes; then
11623        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11624cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11625$echo "local: *; };" >> $output_objdir/$libname.ver~
11626        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11627      else
11628        $archive_expsym_cmds="$archive_cmds"
11629      fi
11630    else
11631      ld_shlibs=no
11632    fi
11633    ;;
11634
11635  *)
11636    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11637    ;;
11638  esac
11639  dynamic_linker='Win32 ld.exe'
11640  # FIXME: first we should search . and the directory the executable is in
11641  shlibpath_var=PATH
11642  ;;
11643
11644darwin* | rhapsody*)
11645  dynamic_linker="$host_os dyld"
11646  version_type=darwin
11647  need_lib_prefix=no
11648  need_version=no
11649  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11650  soname_spec='${libname}${release}${major}$shared_ext'
11651  shlibpath_overrides_runpath=yes
11652  shlibpath_var=DYLD_LIBRARY_PATH
11653  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11654  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11655  if test "$GCC" = yes; then
11656    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"`
11657  else
11658    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11659  fi
11660  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11661  ;;
11662
11663dgux*)
11664  version_type=linux
11665  need_lib_prefix=no
11666  need_version=no
11667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11668  soname_spec='${libname}${release}${shared_ext}$major'
11669  shlibpath_var=LD_LIBRARY_PATH
11670  ;;
11671
11672freebsd1*)
11673  dynamic_linker=no
11674  ;;
11675
11676kfreebsd*-gnu)
11677  version_type=linux
11678  need_lib_prefix=no
11679  need_version=no
11680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11681  soname_spec='${libname}${release}${shared_ext}$major'
11682  shlibpath_var=LD_LIBRARY_PATH
11683  shlibpath_overrides_runpath=no
11684  hardcode_into_libs=yes
11685  dynamic_linker='GNU ld.so'
11686  ;;
11687
11688freebsd* | dragonfly*)
11689  # DragonFly does not have aout.  When/if they implement a new
11690  # versioning mechanism, adjust this.
11691  if test -x /usr/bin/objformat; then
11692    objformat=`/usr/bin/objformat`
11693  else
11694    case $host_os in
11695    freebsd[123]*) objformat=aout ;;
11696    *) objformat=elf ;;
11697    esac
11698  fi
11699  # Handle Gentoo/FreeBSD as it was Linux
11700  case $host_vendor in
11701    gentoo)
11702      version_type=linux ;;
11703    *)
11704      version_type=freebsd-$objformat ;;
11705  esac
11706
11707  case $version_type in
11708    freebsd-elf*)
11709      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11710      need_version=no
11711      need_lib_prefix=no
11712      ;;
11713    freebsd-*)
11714      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11715      need_version=yes
11716      ;;
11717    linux)
11718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11719      soname_spec='${libname}${release}${shared_ext}$major'
11720      need_lib_prefix=no
11721      need_version=no
11722      ;;
11723  esac
11724  shlibpath_var=LD_LIBRARY_PATH
11725  case $host_os in
11726  freebsd2*)
11727    shlibpath_overrides_runpath=yes
11728    ;;
11729  freebsd3.[01]* | freebsdelf3.[01]*)
11730    shlibpath_overrides_runpath=yes
11731    hardcode_into_libs=yes
11732    ;;
11733  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11734  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11735    shlibpath_overrides_runpath=no
11736    hardcode_into_libs=yes
11737    ;;
11738  freebsd*) # from 4.6 on
11739    shlibpath_overrides_runpath=yes
11740    hardcode_into_libs=yes
11741    ;;
11742  esac
11743  ;;
11744
11745gnu*)
11746  version_type=linux
11747  need_lib_prefix=no
11748  need_version=no
11749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11750  soname_spec='${libname}${release}${shared_ext}$major'
11751  shlibpath_var=LD_LIBRARY_PATH
11752  hardcode_into_libs=yes
11753  ;;
11754
11755hpux9* | hpux10* | hpux11*)
11756  # Give a soname corresponding to the major version so that dld.sl refuses to
11757  # link against other versions.
11758  version_type=sunos
11759  need_lib_prefix=no
11760  need_version=no
11761  case $host_cpu in
11762  ia64*)
11763    shrext_cmds='.so'
11764    hardcode_into_libs=yes
11765    dynamic_linker="$host_os dld.so"
11766    shlibpath_var=LD_LIBRARY_PATH
11767    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769    soname_spec='${libname}${release}${shared_ext}$major'
11770    if test "X$HPUX_IA64_MODE" = X32; then
11771      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11772    else
11773      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11774    fi
11775    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11776    ;;
11777   hppa*64*)
11778     shrext_cmds='.sl'
11779     hardcode_into_libs=yes
11780     dynamic_linker="$host_os dld.sl"
11781     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11782     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784     soname_spec='${libname}${release}${shared_ext}$major'
11785     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11786     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11787     ;;
11788   *)
11789    shrext_cmds='.sl'
11790    dynamic_linker="$host_os dld.sl"
11791    shlibpath_var=SHLIB_PATH
11792    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11793    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794    soname_spec='${libname}${release}${shared_ext}$major'
11795    ;;
11796  esac
11797  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11798  postinstall_cmds='chmod 555 $lib'
11799  ;;
11800
11801interix3*)
11802  version_type=linux
11803  need_lib_prefix=no
11804  need_version=no
11805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11806  soname_spec='${libname}${release}${shared_ext}$major'
11807  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11808  shlibpath_var=LD_LIBRARY_PATH
11809  shlibpath_overrides_runpath=no
11810  hardcode_into_libs=yes
11811  ;;
11812
11813irix5* | irix6* | nonstopux*)
11814  case $host_os in
11815    nonstopux*) version_type=nonstopux ;;
11816    *)
11817	if test "$lt_cv_prog_gnu_ld" = yes; then
11818		version_type=linux
11819	else
11820		version_type=irix
11821	fi ;;
11822  esac
11823  need_lib_prefix=no
11824  need_version=no
11825  soname_spec='${libname}${release}${shared_ext}$major'
11826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827  case $host_os in
11828  irix5* | nonstopux*)
11829    libsuff= shlibsuff=
11830    ;;
11831  *)
11832    case $LD in # libtool.m4 will add one of these switches to LD
11833    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834      libsuff= shlibsuff= libmagic=32-bit;;
11835    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836      libsuff=32 shlibsuff=N32 libmagic=N32;;
11837    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839    *) libsuff= shlibsuff= libmagic=never-match;;
11840    esac
11841    ;;
11842  esac
11843  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844  shlibpath_overrides_runpath=no
11845  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847  hardcode_into_libs=yes
11848  ;;
11849
11850# No shared lib support for Linux oldld, aout, or coff.
11851linux*oldld* | linux*aout* | linux*coff*)
11852  dynamic_linker=no
11853  ;;
11854
11855# This must be Linux ELF.
11856linux*)
11857  version_type=linux
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861  soname_spec='${libname}${release}${shared_ext}$major'
11862  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=no
11865  # This implies no fast_install, which is unacceptable.
11866  # Some rework will be needed to allow for fast_install
11867  # before this can be enabled.
11868  hardcode_into_libs=yes
11869
11870  # Append ld.so.conf contents to the search path
11871  if test -f /etc/ld.so.conf; then
11872    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' ' '`
11873    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11874  fi
11875
11876  # We used to test for /lib/ld.so.1 and disable shared libraries on
11877  # powerpc, because MkLinux only supported shared libraries with the
11878  # GNU dynamic linker.  Since this was broken with cross compilers,
11879  # most powerpc-linux boxes support dynamic linking these days and
11880  # people can always --disable-shared, the test was removed, and we
11881  # assume the GNU/Linux dynamic linker is in use.
11882  dynamic_linker='GNU/Linux ld.so'
11883  ;;
11884
11885knetbsd*-gnu)
11886  version_type=linux
11887  need_lib_prefix=no
11888  need_version=no
11889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890  soname_spec='${libname}${release}${shared_ext}$major'
11891  shlibpath_var=LD_LIBRARY_PATH
11892  shlibpath_overrides_runpath=no
11893  hardcode_into_libs=yes
11894  dynamic_linker='GNU ld.so'
11895  ;;
11896
11897netbsd*)
11898  version_type=sunos
11899  need_lib_prefix=no
11900  need_version=no
11901  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904    dynamic_linker='NetBSD (a.out) ld.so'
11905  else
11906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907    soname_spec='${libname}${release}${shared_ext}$major'
11908    dynamic_linker='NetBSD ld.elf_so'
11909  fi
11910  shlibpath_var=LD_LIBRARY_PATH
11911  shlibpath_overrides_runpath=yes
11912  hardcode_into_libs=yes
11913  ;;
11914
11915newsos6)
11916  version_type=linux
11917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918  shlibpath_var=LD_LIBRARY_PATH
11919  shlibpath_overrides_runpath=yes
11920  ;;
11921
11922nto-qnx*)
11923  version_type=linux
11924  need_lib_prefix=no
11925  need_version=no
11926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927  soname_spec='${libname}${release}${shared_ext}$major'
11928  shlibpath_var=LD_LIBRARY_PATH
11929  shlibpath_overrides_runpath=yes
11930  ;;
11931
11932openbsd*)
11933  version_type=sunos
11934  sys_lib_dlsearch_path_spec="/usr/lib"
11935  need_lib_prefix=no
11936  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11937  case $host_os in
11938    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11939    *)                         need_version=no  ;;
11940  esac
11941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11942  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11943  shlibpath_var=LD_LIBRARY_PATH
11944  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11945    case $host_os in
11946      openbsd2.[89] | openbsd2.[89].*)
11947	shlibpath_overrides_runpath=no
11948	;;
11949      *)
11950	shlibpath_overrides_runpath=yes
11951	;;
11952      esac
11953  else
11954    shlibpath_overrides_runpath=yes
11955  fi
11956  ;;
11957
11958os2*)
11959  libname_spec='$name'
11960  shrext_cmds=".dll"
11961  need_lib_prefix=no
11962  library_names_spec='$libname${shared_ext} $libname.a'
11963  dynamic_linker='OS/2 ld.exe'
11964  shlibpath_var=LIBPATH
11965  ;;
11966
11967osf3* | osf4* | osf5*)
11968  version_type=osf
11969  need_lib_prefix=no
11970  need_version=no
11971  soname_spec='${libname}${release}${shared_ext}$major'
11972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973  shlibpath_var=LD_LIBRARY_PATH
11974  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11975  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11976  ;;
11977
11978solaris*)
11979  version_type=linux
11980  need_lib_prefix=no
11981  need_version=no
11982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983  soname_spec='${libname}${release}${shared_ext}$major'
11984  shlibpath_var=LD_LIBRARY_PATH
11985  shlibpath_overrides_runpath=yes
11986  hardcode_into_libs=yes
11987  # ldd complains unless libraries are executable
11988  postinstall_cmds='chmod +x $lib'
11989  ;;
11990
11991sunos4*)
11992  version_type=sunos
11993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11994  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11995  shlibpath_var=LD_LIBRARY_PATH
11996  shlibpath_overrides_runpath=yes
11997  if test "$with_gnu_ld" = yes; then
11998    need_lib_prefix=no
11999  fi
12000  need_version=yes
12001  ;;
12002
12003sysv4 | sysv4.3*)
12004  version_type=linux
12005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006  soname_spec='${libname}${release}${shared_ext}$major'
12007  shlibpath_var=LD_LIBRARY_PATH
12008  case $host_vendor in
12009    sni)
12010      shlibpath_overrides_runpath=no
12011      need_lib_prefix=no
12012      export_dynamic_flag_spec='${wl}-Blargedynsym'
12013      runpath_var=LD_RUN_PATH
12014      ;;
12015    siemens)
12016      need_lib_prefix=no
12017      ;;
12018    motorola)
12019      need_lib_prefix=no
12020      need_version=no
12021      shlibpath_overrides_runpath=no
12022      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12023      ;;
12024  esac
12025  ;;
12026
12027sysv4*MP*)
12028  if test -d /usr/nec ;then
12029    version_type=linux
12030    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12031    soname_spec='$libname${shared_ext}.$major'
12032    shlibpath_var=LD_LIBRARY_PATH
12033  fi
12034  ;;
12035
12036sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12037  version_type=freebsd-elf
12038  need_lib_prefix=no
12039  need_version=no
12040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12041  soname_spec='${libname}${release}${shared_ext}$major'
12042  shlibpath_var=LD_LIBRARY_PATH
12043  hardcode_into_libs=yes
12044  if test "$with_gnu_ld" = yes; then
12045    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12046    shlibpath_overrides_runpath=no
12047  else
12048    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12049    shlibpath_overrides_runpath=yes
12050    case $host_os in
12051      sco3.2v5*)
12052        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12053	;;
12054    esac
12055  fi
12056  sys_lib_dlsearch_path_spec='/usr/lib'
12057  ;;
12058
12059uts4*)
12060  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
12064  ;;
12065
12066*)
12067  dynamic_linker=no
12068  ;;
12069esac
12070echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12071echo "${ECHO_T}$dynamic_linker" >&6
12072test "$dynamic_linker" = no && can_build_shared=no
12073
12074variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12075if test "$GCC" = yes; then
12076  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12077fi
12078
12079echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081hardcode_action_CXX=
12082if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083   test -n "$runpath_var_CXX" || \
12084   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12085
12086  # We can hardcode non-existant directories.
12087  if test "$hardcode_direct_CXX" != no &&
12088     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089     # have to relink, otherwise we might link with an installed library
12090     # when we should be linking with a yet-to-be-installed one
12091     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092     test "$hardcode_minus_L_CXX" != no; then
12093    # Linking always hardcodes the temporary library directory.
12094    hardcode_action_CXX=relink
12095  else
12096    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097    hardcode_action_CXX=immediate
12098  fi
12099else
12100  # We cannot hardcode anything, or else we can only hardcode existing
12101  # directories.
12102  hardcode_action_CXX=unsupported
12103fi
12104echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105echo "${ECHO_T}$hardcode_action_CXX" >&6
12106
12107if test "$hardcode_action_CXX" = relink; then
12108  # Fast installation is not supported
12109  enable_fast_install=no
12110elif test "$shlibpath_overrides_runpath" = yes ||
12111     test "$enable_shared" = no; then
12112  # Fast installation is not necessary
12113  enable_fast_install=needless
12114fi
12115
12116
12117# The else clause should only fire when bootstrapping the
12118# libtool distribution, otherwise you forgot to ship ltmain.sh
12119# with your package, and you will get complaints that there are
12120# no rules to generate ltmain.sh.
12121if test -f "$ltmain"; then
12122  # See if we are running on zsh, and set the options which allow our commands through
12123  # without removal of \ escapes.
12124  if test -n "${ZSH_VERSION+set}" ; then
12125    setopt NO_GLOB_SUBST
12126  fi
12127  # Now quote all the things that may contain metacharacters while being
12128  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12129  # variables and quote the copies for generation of the libtool script.
12130  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12131    SED SHELL STRIP \
12132    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12133    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12134    deplibs_check_method reload_flag reload_cmds need_locks \
12135    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12136    lt_cv_sys_global_symbol_to_c_name_address \
12137    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12138    old_postinstall_cmds old_postuninstall_cmds \
12139    compiler_CXX \
12140    CC_CXX \
12141    LD_CXX \
12142    lt_prog_compiler_wl_CXX \
12143    lt_prog_compiler_pic_CXX \
12144    lt_prog_compiler_static_CXX \
12145    lt_prog_compiler_no_builtin_flag_CXX \
12146    export_dynamic_flag_spec_CXX \
12147    thread_safe_flag_spec_CXX \
12148    whole_archive_flag_spec_CXX \
12149    enable_shared_with_static_runtimes_CXX \
12150    old_archive_cmds_CXX \
12151    old_archive_from_new_cmds_CXX \
12152    predep_objects_CXX \
12153    postdep_objects_CXX \
12154    predeps_CXX \
12155    postdeps_CXX \
12156    compiler_lib_search_path_CXX \
12157    archive_cmds_CXX \
12158    archive_expsym_cmds_CXX \
12159    postinstall_cmds_CXX \
12160    postuninstall_cmds_CXX \
12161    old_archive_from_expsyms_cmds_CXX \
12162    allow_undefined_flag_CXX \
12163    no_undefined_flag_CXX \
12164    export_symbols_cmds_CXX \
12165    hardcode_libdir_flag_spec_CXX \
12166    hardcode_libdir_flag_spec_ld_CXX \
12167    hardcode_libdir_separator_CXX \
12168    hardcode_automatic_CXX \
12169    module_cmds_CXX \
12170    module_expsym_cmds_CXX \
12171    lt_cv_prog_compiler_c_o_CXX \
12172    exclude_expsyms_CXX \
12173    include_expsyms_CXX; do
12174
12175    case $var in
12176    old_archive_cmds_CXX | \
12177    old_archive_from_new_cmds_CXX | \
12178    archive_cmds_CXX | \
12179    archive_expsym_cmds_CXX | \
12180    module_cmds_CXX | \
12181    module_expsym_cmds_CXX | \
12182    old_archive_from_expsyms_cmds_CXX | \
12183    export_symbols_cmds_CXX | \
12184    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12185    postinstall_cmds | postuninstall_cmds | \
12186    old_postinstall_cmds | old_postuninstall_cmds | \
12187    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12188      # Double-quote double-evaled strings.
12189      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12190      ;;
12191    *)
12192      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12193      ;;
12194    esac
12195  done
12196
12197  case $lt_echo in
12198  *'\$0 --fallback-echo"')
12199    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12200    ;;
12201  esac
12202
12203cfgfile="$ofile"
12204
12205  cat <<__EOF__ >> "$cfgfile"
12206# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12207
12208# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12209
12210# Shell to use when invoking shell scripts.
12211SHELL=$lt_SHELL
12212
12213# Whether or not to build shared libraries.
12214build_libtool_libs=$enable_shared
12215
12216# Whether or not to build static libraries.
12217build_old_libs=$enable_static
12218
12219# Whether or not to add -lc for building shared libraries.
12220build_libtool_need_lc=$archive_cmds_need_lc_CXX
12221
12222# Whether or not to disallow shared libs when runtime libs are static
12223allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12224
12225# Whether or not to optimize for fast installation.
12226fast_install=$enable_fast_install
12227
12228# The host system.
12229host_alias=$host_alias
12230host=$host
12231host_os=$host_os
12232
12233# The build system.
12234build_alias=$build_alias
12235build=$build
12236build_os=$build_os
12237
12238# An echo program that does not interpret backslashes.
12239echo=$lt_echo
12240
12241# The archiver.
12242AR=$lt_AR
12243AR_FLAGS=$lt_AR_FLAGS
12244
12245# A C compiler.
12246LTCC=$lt_LTCC
12247
12248# LTCC compiler flags.
12249LTCFLAGS=$lt_LTCFLAGS
12250
12251# A language-specific compiler.
12252CC=$lt_compiler_CXX
12253
12254# Is the compiler the GNU C compiler?
12255with_gcc=$GCC_CXX
12256
12257# An ERE matcher.
12258EGREP=$lt_EGREP
12259
12260# The linker used to build libraries.
12261LD=$lt_LD_CXX
12262
12263# Whether we need hard or soft links.
12264LN_S=$lt_LN_S
12265
12266# A BSD-compatible nm program.
12267NM=$lt_NM
12268
12269# A symbol stripping program
12270STRIP=$lt_STRIP
12271
12272# Used to examine libraries when file_magic_cmd begins "file"
12273MAGIC_CMD=$MAGIC_CMD
12274
12275# Used on cygwin: DLL creation program.
12276DLLTOOL="$DLLTOOL"
12277
12278# Used on cygwin: object dumper.
12279OBJDUMP="$OBJDUMP"
12280
12281# Used on cygwin: assembler.
12282AS="$AS"
12283
12284# The name of the directory that contains temporary libtool files.
12285objdir=$objdir
12286
12287# How to create reloadable object files.
12288reload_flag=$lt_reload_flag
12289reload_cmds=$lt_reload_cmds
12290
12291# How to pass a linker flag through the compiler.
12292wl=$lt_lt_prog_compiler_wl_CXX
12293
12294# Object file suffix (normally "o").
12295objext="$ac_objext"
12296
12297# Old archive suffix (normally "a").
12298libext="$libext"
12299
12300# Shared library suffix (normally ".so").
12301shrext_cmds='$shrext_cmds'
12302
12303# Executable file suffix (normally "").
12304exeext="$exeext"
12305
12306# Additional compiler flags for building library objects.
12307pic_flag=$lt_lt_prog_compiler_pic_CXX
12308pic_mode=$pic_mode
12309
12310# What is the maximum length of a command?
12311max_cmd_len=$lt_cv_sys_max_cmd_len
12312
12313# Does compiler simultaneously support -c and -o options?
12314compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12315
12316# Must we lock files when doing compilation?
12317need_locks=$lt_need_locks
12318
12319# Do we need the lib prefix for modules?
12320need_lib_prefix=$need_lib_prefix
12321
12322# Do we need a version for libraries?
12323need_version=$need_version
12324
12325# Whether dlopen is supported.
12326dlopen_support=$enable_dlopen
12327
12328# Whether dlopen of programs is supported.
12329dlopen_self=$enable_dlopen_self
12330
12331# Whether dlopen of statically linked programs is supported.
12332dlopen_self_static=$enable_dlopen_self_static
12333
12334# Compiler flag to prevent dynamic linking.
12335link_static_flag=$lt_lt_prog_compiler_static_CXX
12336
12337# Compiler flag to turn off builtin functions.
12338no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12339
12340# Compiler flag to allow reflexive dlopens.
12341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12342
12343# Compiler flag to generate shared objects directly from archives.
12344whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12345
12346# Compiler flag to generate thread-safe objects.
12347thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12348
12349# Library versioning type.
12350version_type=$version_type
12351
12352# Format of library name prefix.
12353libname_spec=$lt_libname_spec
12354
12355# List of archive names.  First name is the real one, the rest are links.
12356# The last name is the one that the linker finds with -lNAME.
12357library_names_spec=$lt_library_names_spec
12358
12359# The coded name of the library, if different from the real name.
12360soname_spec=$lt_soname_spec
12361
12362# Commands used to build and install an old-style archive.
12363RANLIB=$lt_RANLIB
12364old_archive_cmds=$lt_old_archive_cmds_CXX
12365old_postinstall_cmds=$lt_old_postinstall_cmds
12366old_postuninstall_cmds=$lt_old_postuninstall_cmds
12367
12368# Create an old-style archive from a shared archive.
12369old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12370
12371# Create a temporary old-style archive to link instead of a shared archive.
12372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12373
12374# Commands used to build and install a shared archive.
12375archive_cmds=$lt_archive_cmds_CXX
12376archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12377postinstall_cmds=$lt_postinstall_cmds
12378postuninstall_cmds=$lt_postuninstall_cmds
12379
12380# Commands used to build a loadable module (assumed same as above if empty)
12381module_cmds=$lt_module_cmds_CXX
12382module_expsym_cmds=$lt_module_expsym_cmds_CXX
12383
12384# Commands to strip libraries.
12385old_striplib=$lt_old_striplib
12386striplib=$lt_striplib
12387
12388# Dependencies to place before the objects being linked to create a
12389# shared library.
12390predep_objects=$lt_predep_objects_CXX
12391
12392# Dependencies to place after the objects being linked to create a
12393# shared library.
12394postdep_objects=$lt_postdep_objects_CXX
12395
12396# Dependencies to place before the objects being linked to create a
12397# shared library.
12398predeps=$lt_predeps_CXX
12399
12400# Dependencies to place after the objects being linked to create a
12401# shared library.
12402postdeps=$lt_postdeps_CXX
12403
12404# The library search path used internally by the compiler when linking
12405# a shared library.
12406compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12407
12408# Method to check whether dependent libraries are shared objects.
12409deplibs_check_method=$lt_deplibs_check_method
12410
12411# Command to use when deplibs_check_method == file_magic.
12412file_magic_cmd=$lt_file_magic_cmd
12413
12414# Flag that allows shared libraries with undefined symbols to be built.
12415allow_undefined_flag=$lt_allow_undefined_flag_CXX
12416
12417# Flag that forces no undefined symbols.
12418no_undefined_flag=$lt_no_undefined_flag_CXX
12419
12420# Commands used to finish a libtool library installation in a directory.
12421finish_cmds=$lt_finish_cmds
12422
12423# Same as above, but a single script fragment to be evaled but not shown.
12424finish_eval=$lt_finish_eval
12425
12426# Take the output of nm and produce a listing of raw symbols and C names.
12427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12428
12429# Transform the output of nm in a proper C declaration
12430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12431
12432# Transform the output of nm in a C name address pair
12433global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12434
12435# This is the shared library runtime path variable.
12436runpath_var=$runpath_var
12437
12438# This is the shared library path variable.
12439shlibpath_var=$shlibpath_var
12440
12441# Is shlibpath searched before the hard-coded library search path?
12442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12443
12444# How to hardcode a shared library path into an executable.
12445hardcode_action=$hardcode_action_CXX
12446
12447# Whether we should hardcode library paths into libraries.
12448hardcode_into_libs=$hardcode_into_libs
12449
12450# Flag to hardcode \$libdir into a binary during linking.
12451# This must work even if \$libdir does not exist.
12452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12453
12454# If ld is used when linking, flag to hardcode \$libdir into
12455# a binary during linking. This must work even if \$libdir does
12456# not exist.
12457hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12458
12459# Whether we need a single -rpath flag with a separated argument.
12460hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12461
12462# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12463# resulting binary.
12464hardcode_direct=$hardcode_direct_CXX
12465
12466# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12467# resulting binary.
12468hardcode_minus_L=$hardcode_minus_L_CXX
12469
12470# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12471# the resulting binary.
12472hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12473
12474# Set to yes if building a shared library automatically hardcodes DIR into the library
12475# and all subsequent libraries and executables linked against it.
12476hardcode_automatic=$hardcode_automatic_CXX
12477
12478# Variables whose values should be saved in libtool wrapper scripts and
12479# restored at relink time.
12480variables_saved_for_relink="$variables_saved_for_relink"
12481
12482# Whether libtool must link a program against all its dependency libraries.
12483link_all_deplibs=$link_all_deplibs_CXX
12484
12485# Compile-time system search path for libraries
12486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12487
12488# Run-time system search path for libraries
12489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12490
12491# Fix the shell variable \$srcfile for the compiler.
12492fix_srcfile_path="$fix_srcfile_path_CXX"
12493
12494# Set to yes if exported symbols are required.
12495always_export_symbols=$always_export_symbols_CXX
12496
12497# The commands to list exported symbols.
12498export_symbols_cmds=$lt_export_symbols_cmds_CXX
12499
12500# The commands to extract the exported symbol list from a shared archive.
12501extract_expsyms_cmds=$lt_extract_expsyms_cmds
12502
12503# Symbols that should not be listed in the preloaded symbols.
12504exclude_expsyms=$lt_exclude_expsyms_CXX
12505
12506# Symbols that must always be exported.
12507include_expsyms=$lt_include_expsyms_CXX
12508
12509# ### END LIBTOOL TAG CONFIG: $tagname
12510
12511__EOF__
12512
12513
12514else
12515  # If there is no Makefile yet, we rely on a make rule to execute
12516  # `config.status --recheck' to rerun these tests and create the
12517  # libtool script then.
12518  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12519  if test -f "$ltmain_in"; then
12520    test -f Makefile && make "$ltmain"
12521  fi
12522fi
12523
12524
12525ac_ext=c
12526ac_cpp='$CPP $CPPFLAGS'
12527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529ac_compiler_gnu=$ac_cv_c_compiler_gnu
12530
12531CC=$lt_save_CC
12532LDCXX=$LD
12533LD=$lt_save_LD
12534GCC=$lt_save_GCC
12535with_gnu_ldcxx=$with_gnu_ld
12536with_gnu_ld=$lt_save_with_gnu_ld
12537lt_cv_path_LDCXX=$lt_cv_path_LD
12538lt_cv_path_LD=$lt_save_path_LD
12539lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12540lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12541
12542	else
12543	  tagname=""
12544	fi
12545	;;
12546
12547      F77)
12548	if test -n "$F77" && test "X$F77" != "Xno"; then
12549
12550ac_ext=f
12551ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12552ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12554
12555
12556archive_cmds_need_lc_F77=no
12557allow_undefined_flag_F77=
12558always_export_symbols_F77=no
12559archive_expsym_cmds_F77=
12560export_dynamic_flag_spec_F77=
12561hardcode_direct_F77=no
12562hardcode_libdir_flag_spec_F77=
12563hardcode_libdir_flag_spec_ld_F77=
12564hardcode_libdir_separator_F77=
12565hardcode_minus_L_F77=no
12566hardcode_automatic_F77=no
12567module_cmds_F77=
12568module_expsym_cmds_F77=
12569link_all_deplibs_F77=unknown
12570old_archive_cmds_F77=$old_archive_cmds
12571no_undefined_flag_F77=
12572whole_archive_flag_spec_F77=
12573enable_shared_with_static_runtimes_F77=no
12574
12575# Source file extension for f77 test sources.
12576ac_ext=f
12577
12578# Object file extension for compiled f77 test sources.
12579objext=o
12580objext_F77=$objext
12581
12582# Code to be used in simple compile tests
12583lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12584
12585# Code to be used in simple link tests
12586lt_simple_link_test_code="      program t\n      end\n"
12587
12588# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12589
12590# If no C compiler was specified, use CC.
12591LTCC=${LTCC-"$CC"}
12592
12593# If no C compiler flags were specified, use CFLAGS.
12594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12595
12596# Allow CC to be a program name with arguments.
12597compiler=$CC
12598
12599
12600# save warnings/boilerplate of simple test code
12601ac_outfile=conftest.$ac_objext
12602printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12603eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604_lt_compiler_boilerplate=`cat conftest.err`
12605$rm conftest*
12606
12607ac_outfile=conftest.$ac_objext
12608printf "$lt_simple_link_test_code" >conftest.$ac_ext
12609eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12610_lt_linker_boilerplate=`cat conftest.err`
12611$rm conftest*
12612
12613
12614# Allow CC to be a program name with arguments.
12615lt_save_CC="$CC"
12616CC=${F77-"f77"}
12617compiler=$CC
12618compiler_F77=$CC
12619for cc_temp in $compiler""; do
12620  case $cc_temp in
12621    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12622    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12623    \-*) ;;
12624    *) break;;
12625  esac
12626done
12627cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12628
12629
12630echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12631echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12632echo "$as_me:$LINENO: result: $can_build_shared" >&5
12633echo "${ECHO_T}$can_build_shared" >&6
12634
12635echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12636echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12637test "$can_build_shared" = "no" && enable_shared=no
12638
12639# On AIX, shared libraries and static libraries use the same namespace, and
12640# are all built from PIC.
12641case $host_os in
12642aix3*)
12643  test "$enable_shared" = yes && enable_static=no
12644  if test -n "$RANLIB"; then
12645    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12646    postinstall_cmds='$RANLIB $lib'
12647  fi
12648  ;;
12649aix4* | aix5*)
12650  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12651    test "$enable_shared" = yes && enable_static=no
12652  fi
12653  ;;
12654esac
12655echo "$as_me:$LINENO: result: $enable_shared" >&5
12656echo "${ECHO_T}$enable_shared" >&6
12657
12658echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12659echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12660# Make sure either enable_shared or enable_static is yes.
12661test "$enable_shared" = yes || enable_static=yes
12662echo "$as_me:$LINENO: result: $enable_static" >&5
12663echo "${ECHO_T}$enable_static" >&6
12664
12665GCC_F77="$G77"
12666LD_F77="$LD"
12667
12668lt_prog_compiler_wl_F77=
12669lt_prog_compiler_pic_F77=
12670lt_prog_compiler_static_F77=
12671
12672echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12673echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12674
12675  if test "$GCC" = yes; then
12676    lt_prog_compiler_wl_F77='-Wl,'
12677    lt_prog_compiler_static_F77='-static'
12678
12679    case $host_os in
12680      aix*)
12681      # All AIX code is PIC.
12682      if test "$host_cpu" = ia64; then
12683	# AIX 5 now supports IA64 processor
12684	lt_prog_compiler_static_F77='-Bstatic'
12685      fi
12686      ;;
12687
12688    amigaos*)
12689      # FIXME: we need at least 68020 code to build shared libraries, but
12690      # adding the `-m68020' flag to GCC prevents building anything better,
12691      # like `-m68040'.
12692      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12693      ;;
12694
12695    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12696      # PIC is the default for these OSes.
12697      ;;
12698
12699    mingw* | pw32* | os2*)
12700      # This hack is so that the source file can tell whether it is being
12701      # built for inclusion in a dll (and should export symbols for example).
12702      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12703      ;;
12704
12705    darwin* | rhapsody*)
12706      # PIC is the default on this platform
12707      # Common symbols not allowed in MH_DYLIB files
12708      lt_prog_compiler_pic_F77='-fno-common'
12709      ;;
12710
12711    interix3*)
12712      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12713      # Instead, we relocate shared libraries at runtime.
12714      ;;
12715
12716    msdosdjgpp*)
12717      # Just because we use GCC doesn't mean we suddenly get shared libraries
12718      # on systems that don't support them.
12719      lt_prog_compiler_can_build_shared_F77=no
12720      enable_shared=no
12721      ;;
12722
12723    sysv4*MP*)
12724      if test -d /usr/nec; then
12725	lt_prog_compiler_pic_F77=-Kconform_pic
12726      fi
12727      ;;
12728
12729    hpux*)
12730      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12731      # not for PA HP-UX.
12732      case $host_cpu in
12733      hppa*64*|ia64*)
12734	# +Z the default
12735	;;
12736      *)
12737	lt_prog_compiler_pic_F77='-fPIC'
12738	;;
12739      esac
12740      ;;
12741
12742    *)
12743      lt_prog_compiler_pic_F77='-fPIC'
12744      ;;
12745    esac
12746  else
12747    # PORTME Check for flag to pass linker flags through the system compiler.
12748    case $host_os in
12749    aix*)
12750      lt_prog_compiler_wl_F77='-Wl,'
12751      if test "$host_cpu" = ia64; then
12752	# AIX 5 now supports IA64 processor
12753	lt_prog_compiler_static_F77='-Bstatic'
12754      else
12755	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12756      fi
12757      ;;
12758      darwin*)
12759        # PIC is the default on this platform
12760        # Common symbols not allowed in MH_DYLIB files
12761       case $cc_basename in
12762         xlc*)
12763         lt_prog_compiler_pic_F77='-qnocommon'
12764         lt_prog_compiler_wl_F77='-Wl,'
12765         ;;
12766       esac
12767       ;;
12768
12769    mingw* | pw32* | os2*)
12770      # This hack is so that the source file can tell whether it is being
12771      # built for inclusion in a dll (and should export symbols for example).
12772      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12773      ;;
12774
12775    hpux9* | hpux10* | hpux11*)
12776      lt_prog_compiler_wl_F77='-Wl,'
12777      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12778      # not for PA HP-UX.
12779      case $host_cpu in
12780      hppa*64*|ia64*)
12781	# +Z the default
12782	;;
12783      *)
12784	lt_prog_compiler_pic_F77='+Z'
12785	;;
12786      esac
12787      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12788      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12789      ;;
12790
12791    irix5* | irix6* | nonstopux*)
12792      lt_prog_compiler_wl_F77='-Wl,'
12793      # PIC (with -KPIC) is the default.
12794      lt_prog_compiler_static_F77='-non_shared'
12795      ;;
12796
12797    newsos6)
12798      lt_prog_compiler_pic_F77='-KPIC'
12799      lt_prog_compiler_static_F77='-Bstatic'
12800      ;;
12801
12802    linux*)
12803      case $cc_basename in
12804      icc* | ecc*)
12805	lt_prog_compiler_wl_F77='-Wl,'
12806	lt_prog_compiler_pic_F77='-KPIC'
12807	lt_prog_compiler_static_F77='-static'
12808        ;;
12809      pgcc* | pgf77* | pgf90* | pgf95*)
12810        # Portland Group compilers (*not* the Pentium gcc compiler,
12811	# which looks to be a dead project)
12812	lt_prog_compiler_wl_F77='-Wl,'
12813	lt_prog_compiler_pic_F77='-fpic'
12814	lt_prog_compiler_static_F77='-Bstatic'
12815        ;;
12816      ccc*)
12817        lt_prog_compiler_wl_F77='-Wl,'
12818        # All Alpha code is PIC.
12819        lt_prog_compiler_static_F77='-non_shared'
12820        ;;
12821      esac
12822      ;;
12823
12824    osf3* | osf4* | osf5*)
12825      lt_prog_compiler_wl_F77='-Wl,'
12826      # All OSF/1 code is PIC.
12827      lt_prog_compiler_static_F77='-non_shared'
12828      ;;
12829
12830    solaris*)
12831      lt_prog_compiler_pic_F77='-KPIC'
12832      lt_prog_compiler_static_F77='-Bstatic'
12833      case $cc_basename in
12834      f77* | f90* | f95*)
12835	lt_prog_compiler_wl_F77='-Qoption ld ';;
12836      *)
12837	lt_prog_compiler_wl_F77='-Wl,';;
12838      esac
12839      ;;
12840
12841    sunos4*)
12842      lt_prog_compiler_wl_F77='-Qoption ld '
12843      lt_prog_compiler_pic_F77='-PIC'
12844      lt_prog_compiler_static_F77='-Bstatic'
12845      ;;
12846
12847    sysv4 | sysv4.2uw2* | sysv4.3*)
12848      lt_prog_compiler_wl_F77='-Wl,'
12849      lt_prog_compiler_pic_F77='-KPIC'
12850      lt_prog_compiler_static_F77='-Bstatic'
12851      ;;
12852
12853    sysv4*MP*)
12854      if test -d /usr/nec ;then
12855	lt_prog_compiler_pic_F77='-Kconform_pic'
12856	lt_prog_compiler_static_F77='-Bstatic'
12857      fi
12858      ;;
12859
12860    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12861      lt_prog_compiler_wl_F77='-Wl,'
12862      lt_prog_compiler_pic_F77='-KPIC'
12863      lt_prog_compiler_static_F77='-Bstatic'
12864      ;;
12865
12866    unicos*)
12867      lt_prog_compiler_wl_F77='-Wl,'
12868      lt_prog_compiler_can_build_shared_F77=no
12869      ;;
12870
12871    uts4*)
12872      lt_prog_compiler_pic_F77='-pic'
12873      lt_prog_compiler_static_F77='-Bstatic'
12874      ;;
12875
12876    *)
12877      lt_prog_compiler_can_build_shared_F77=no
12878      ;;
12879    esac
12880  fi
12881
12882echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12883echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12884
12885#
12886# Check to make sure the PIC flag actually works.
12887#
12888if test -n "$lt_prog_compiler_pic_F77"; then
12889
12890echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12891echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12892if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12893  echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895  lt_prog_compiler_pic_works_F77=no
12896  ac_outfile=conftest.$ac_objext
12897   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12898   lt_compiler_flag="$lt_prog_compiler_pic_F77"
12899   # Insert the option either (1) after the last *FLAGS variable, or
12900   # (2) before a word containing "conftest.", or (3) at the end.
12901   # Note that $ac_compile itself does not contain backslashes and begins
12902   # with a dollar sign (not a hyphen), so the echo should work correctly.
12903   # The option is referenced via a variable to avoid confusing sed.
12904   lt_compile=`echo "$ac_compile" | $SED \
12905   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12906   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12907   -e 's:$: $lt_compiler_flag:'`
12908   (eval echo "\"\$as_me:12908: $lt_compile\"" >&5)
12909   (eval "$lt_compile" 2>conftest.err)
12910   ac_status=$?
12911   cat conftest.err >&5
12912   echo "$as_me:12912: \$? = $ac_status" >&5
12913   if (exit $ac_status) && test -s "$ac_outfile"; then
12914     # The compiler can only warn and ignore the option if not recognized
12915     # So say no if there are warnings other than the usual output.
12916     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12917     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12918     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12919       lt_prog_compiler_pic_works_F77=yes
12920     fi
12921   fi
12922   $rm conftest*
12923
12924fi
12925echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12926echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12927
12928if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12929    case $lt_prog_compiler_pic_F77 in
12930     "" | " "*) ;;
12931     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12932     esac
12933else
12934    lt_prog_compiler_pic_F77=
12935     lt_prog_compiler_can_build_shared_F77=no
12936fi
12937
12938fi
12939case $host_os in
12940  # For platforms which do not support PIC, -DPIC is meaningless:
12941  *djgpp*)
12942    lt_prog_compiler_pic_F77=
12943    ;;
12944  *)
12945    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12946    ;;
12947esac
12948
12949#
12950# Check to make sure the static flag actually works.
12951#
12952wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12953echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12954echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12955if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12956  echo $ECHO_N "(cached) $ECHO_C" >&6
12957else
12958  lt_prog_compiler_static_works_F77=no
12959   save_LDFLAGS="$LDFLAGS"
12960   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12961   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12962   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12963     # The linker can only warn and ignore the option if not recognized
12964     # So say no if there are warnings
12965     if test -s conftest.err; then
12966       # Append any errors to the config.log.
12967       cat conftest.err 1>&5
12968       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12969       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12970       if diff conftest.exp conftest.er2 >/dev/null; then
12971         lt_prog_compiler_static_works_F77=yes
12972       fi
12973     else
12974       lt_prog_compiler_static_works_F77=yes
12975     fi
12976   fi
12977   $rm conftest*
12978   LDFLAGS="$save_LDFLAGS"
12979
12980fi
12981echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12982echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12983
12984if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12985    :
12986else
12987    lt_prog_compiler_static_F77=
12988fi
12989
12990
12991echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12992echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12993if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12994  echo $ECHO_N "(cached) $ECHO_C" >&6
12995else
12996  lt_cv_prog_compiler_c_o_F77=no
12997   $rm -r conftest 2>/dev/null
12998   mkdir conftest
12999   cd conftest
13000   mkdir out
13001   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13002
13003   lt_compiler_flag="-o out/conftest2.$ac_objext"
13004   # Insert the option either (1) after the last *FLAGS variable, or
13005   # (2) before a word containing "conftest.", or (3) at the end.
13006   # Note that $ac_compile itself does not contain backslashes and begins
13007   # with a dollar sign (not a hyphen), so the echo should work correctly.
13008   lt_compile=`echo "$ac_compile" | $SED \
13009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13010   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13011   -e 's:$: $lt_compiler_flag:'`
13012   (eval echo "\"\$as_me:13012: $lt_compile\"" >&5)
13013   (eval "$lt_compile" 2>out/conftest.err)
13014   ac_status=$?
13015   cat out/conftest.err >&5
13016   echo "$as_me:13016: \$? = $ac_status" >&5
13017   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13018   then
13019     # The compiler can only warn and ignore the option if not recognized
13020     # So say no if there are warnings
13021     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13022     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13023     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13024       lt_cv_prog_compiler_c_o_F77=yes
13025     fi
13026   fi
13027   chmod u+w . 2>&5
13028   $rm conftest*
13029   # SGI C++ compiler will create directory out/ii_files/ for
13030   # template instantiation
13031   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13032   $rm out/* && rmdir out
13033   cd ..
13034   rmdir conftest
13035   $rm conftest*
13036
13037fi
13038echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13039echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13040
13041
13042hard_links="nottested"
13043if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13044  # do not overwrite the value of need_locks provided by the user
13045  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13046echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13047  hard_links=yes
13048  $rm conftest*
13049  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13050  touch conftest.a
13051  ln conftest.a conftest.b 2>&5 || hard_links=no
13052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13053  echo "$as_me:$LINENO: result: $hard_links" >&5
13054echo "${ECHO_T}$hard_links" >&6
13055  if test "$hard_links" = no; then
13056    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13057echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13058    need_locks=warn
13059  fi
13060else
13061  need_locks=no
13062fi
13063
13064echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13066
13067  runpath_var=
13068  allow_undefined_flag_F77=
13069  enable_shared_with_static_runtimes_F77=no
13070  archive_cmds_F77=
13071  archive_expsym_cmds_F77=
13072  old_archive_From_new_cmds_F77=
13073  old_archive_from_expsyms_cmds_F77=
13074  export_dynamic_flag_spec_F77=
13075  whole_archive_flag_spec_F77=
13076  thread_safe_flag_spec_F77=
13077  hardcode_libdir_flag_spec_F77=
13078  hardcode_libdir_flag_spec_ld_F77=
13079  hardcode_libdir_separator_F77=
13080  hardcode_direct_F77=no
13081  hardcode_minus_L_F77=no
13082  hardcode_shlibpath_var_F77=unsupported
13083  link_all_deplibs_F77=unknown
13084  hardcode_automatic_F77=no
13085  module_cmds_F77=
13086  module_expsym_cmds_F77=
13087  always_export_symbols_F77=no
13088  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13089  # include_expsyms should be a list of space-separated symbols to be *always*
13090  # included in the symbol list
13091  include_expsyms_F77=
13092  # exclude_expsyms can be an extended regexp of symbols to exclude
13093  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13094  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13095  # as well as any symbol that contains `d'.
13096  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13097  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13098  # platforms (ab)use it in PIC code, but their linkers get confused if
13099  # the symbol is explicitly referenced.  Since portable code cannot
13100  # rely on this symbol name, it's probably fine to never include it in
13101  # preloaded symbol tables.
13102  extract_expsyms_cmds=
13103  # Just being paranoid about ensuring that cc_basename is set.
13104  for cc_temp in $compiler""; do
13105  case $cc_temp in
13106    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13107    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13108    \-*) ;;
13109    *) break;;
13110  esac
13111done
13112cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13113
13114  case $host_os in
13115  cygwin* | mingw* | pw32*)
13116    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13117    # When not using gcc, we currently assume that we are using
13118    # Microsoft Visual C++.
13119    if test "$GCC" != yes; then
13120      with_gnu_ld=no
13121    fi
13122    ;;
13123  interix*)
13124    # we just hope/assume this is gcc and not c89 (= MSVC++)
13125    with_gnu_ld=yes
13126    ;;
13127  openbsd*)
13128    with_gnu_ld=no
13129    ;;
13130  esac
13131
13132  ld_shlibs_F77=yes
13133  if test "$with_gnu_ld" = yes; then
13134    # If archive_cmds runs LD, not CC, wlarc should be empty
13135    wlarc='${wl}'
13136
13137    # Set some defaults for GNU ld with shared library support. These
13138    # are reset later if shared libraries are not supported. Putting them
13139    # here allows them to be overridden if necessary.
13140    runpath_var=LD_RUN_PATH
13141    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13142    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13143    # ancient GNU ld didn't support --whole-archive et. al.
13144    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13145	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13146      else
13147  	whole_archive_flag_spec_F77=
13148    fi
13149    supports_anon_versioning=no
13150    case `$LD -v 2>/dev/null` in
13151      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13152      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13153      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13154      *\ 2.11.*) ;; # other 2.11 versions
13155      *) supports_anon_versioning=yes ;;
13156    esac
13157
13158    # See if GNU ld supports shared libraries.
13159    case $host_os in
13160    aix3* | aix4* | aix5*)
13161      # On AIX/PPC, the GNU linker is very broken
13162      if test "$host_cpu" != ia64; then
13163	ld_shlibs_F77=no
13164	cat <<EOF 1>&2
13165
13166*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13167*** to be unable to reliably create shared libraries on AIX.
13168*** Therefore, libtool is disabling shared libraries support.  If you
13169*** really care for shared libraries, you may want to modify your PATH
13170*** so that a non-GNU linker is found, and then restart.
13171
13172EOF
13173      fi
13174      ;;
13175
13176    amigaos*)
13177      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)'
13178      hardcode_libdir_flag_spec_F77='-L$libdir'
13179      hardcode_minus_L_F77=yes
13180
13181      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13182      # that the semantics of dynamic libraries on AmigaOS, at least up
13183      # to version 4, is to share data among multiple programs linked
13184      # with the same dynamic library.  Since this doesn't match the
13185      # behavior of shared libraries on other platforms, we can't use
13186      # them.
13187      ld_shlibs_F77=no
13188      ;;
13189
13190    beos*)
13191      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13192	allow_undefined_flag_F77=unsupported
13193	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13194	# support --undefined.  This deserves some investigation.  FIXME
13195	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196      else
13197	ld_shlibs_F77=no
13198      fi
13199      ;;
13200
13201    cygwin* | mingw* | pw32*)
13202      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13203      # as there is no search path for DLLs.
13204      hardcode_libdir_flag_spec_F77='-L$libdir'
13205      allow_undefined_flag_F77=unsupported
13206      always_export_symbols_F77=no
13207      enable_shared_with_static_runtimes_F77=yes
13208      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13209
13210      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13211        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212	# If the export-symbols file already is a .def file (1st line
13213	# is EXPORTS), use it as is; otherwise, prepend...
13214	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13215	  cp $export_symbols $output_objdir/$soname.def;
13216	else
13217	  echo EXPORTS > $output_objdir/$soname.def;
13218	  cat $export_symbols >> $output_objdir/$soname.def;
13219	fi~
13220	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13221      else
13222	ld_shlibs_F77=no
13223      fi
13224      ;;
13225
13226    interix3*)
13227      hardcode_direct_F77=no
13228      hardcode_shlibpath_var_F77=no
13229      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13230      export_dynamic_flag_spec_F77='${wl}-E'
13231      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232      # Instead, shared libraries are loaded at an image base (0x10000000 by
13233      # default) and relocated if they conflict, which is a slow very memory
13234      # consuming and fragmenting process.  To avoid this, we pick a random,
13235      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13237      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13238      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13239      ;;
13240
13241    linux*)
13242      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243	tmp_addflag=
13244	case $cc_basename,$host_cpu in
13245	pgcc*)				# Portland Group C compiler
13246	  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'
13247	  tmp_addflag=' $pic_flag'
13248	  ;;
13249	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13250	  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'
13251	  tmp_addflag=' $pic_flag -Mnomain' ;;
13252	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13253	  tmp_addflag=' -i_dynamic' ;;
13254	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13255	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13256	ifc* | ifort*)			# Intel Fortran compiler
13257	  tmp_addflag=' -nofor_main' ;;
13258	esac
13259	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260
13261	if test $supports_anon_versioning = yes; then
13262	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13263  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264  $echo "local: *; };" >> $output_objdir/$libname.ver~
13265	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266	fi
13267      else
13268	ld_shlibs_F77=no
13269      fi
13270      ;;
13271
13272    netbsd*)
13273      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13274	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13275	wlarc=
13276      else
13277	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13279      fi
13280      ;;
13281
13282    solaris*)
13283      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13284	ld_shlibs_F77=no
13285	cat <<EOF 1>&2
13286
13287*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13288*** create shared libraries on Solaris systems.  Therefore, libtool
13289*** is disabling shared libraries support.  We urge you to upgrade GNU
13290*** binutils to release 2.9.1 or newer.  Another option is to modify
13291*** your PATH or compiler configuration so that the native linker is
13292*** used, and then restart.
13293
13294EOF
13295      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13296	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298      else
13299	ld_shlibs_F77=no
13300      fi
13301      ;;
13302
13303    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13304      case `$LD -v 2>&1` in
13305        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13306	ld_shlibs_F77=no
13307	cat <<_LT_EOF 1>&2
13308
13309*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13310*** reliably create shared libraries on SCO systems.  Therefore, libtool
13311*** is disabling shared libraries support.  We urge you to upgrade GNU
13312*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13313*** your PATH or compiler configuration so that the native linker is
13314*** used, and then restart.
13315
13316_LT_EOF
13317	;;
13318	*)
13319	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13320	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13321	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13322	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13323	  else
13324	    ld_shlibs_F77=no
13325	  fi
13326	;;
13327      esac
13328      ;;
13329
13330    sunos4*)
13331      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332      wlarc=
13333      hardcode_direct_F77=yes
13334      hardcode_shlibpath_var_F77=no
13335      ;;
13336
13337    *)
13338      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13341      else
13342	ld_shlibs_F77=no
13343      fi
13344      ;;
13345    esac
13346
13347    if test "$ld_shlibs_F77" = no; then
13348      runpath_var=
13349      hardcode_libdir_flag_spec_F77=
13350      export_dynamic_flag_spec_F77=
13351      whole_archive_flag_spec_F77=
13352    fi
13353  else
13354    # PORTME fill in a description of your system's linker (not GNU ld)
13355    case $host_os in
13356    aix3*)
13357      allow_undefined_flag_F77=unsupported
13358      always_export_symbols_F77=yes
13359      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'
13360      # Note: this linker hardcodes the directories in LIBPATH if there
13361      # are no directories specified by -L.
13362      hardcode_minus_L_F77=yes
13363      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13364	# Neither direct hardcoding nor static linking is supported with a
13365	# broken collect2.
13366	hardcode_direct_F77=unsupported
13367      fi
13368      ;;
13369
13370    aix4* | aix5*)
13371      if test "$host_cpu" = ia64; then
13372	# On IA64, the linker does run time linking by default, so we don't
13373	# have to do anything special.
13374	aix_use_runtimelinking=no
13375	exp_sym_flag='-Bexport'
13376	no_entry_flag=""
13377      else
13378	# If we're using GNU nm, then we don't want the "-C" option.
13379	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13380	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13381	  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'
13382	else
13383	  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'
13384	fi
13385	aix_use_runtimelinking=no
13386
13387	# Test if we are trying to use run time linking or normal
13388	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13389	# need to do runtime linking.
13390	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13391	  for ld_flag in $LDFLAGS; do
13392  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13393  	    aix_use_runtimelinking=yes
13394  	    break
13395  	  fi
13396	  done
13397	  ;;
13398	esac
13399
13400	exp_sym_flag='-bexport'
13401	no_entry_flag='-bnoentry'
13402      fi
13403
13404      # When large executables or shared objects are built, AIX ld can
13405      # have problems creating the table of contents.  If linking a library
13406      # or program results in "error TOC overflow" add -mminimal-toc to
13407      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13408      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13409
13410      archive_cmds_F77=''
13411      hardcode_direct_F77=yes
13412      hardcode_libdir_separator_F77=':'
13413      link_all_deplibs_F77=yes
13414
13415      if test "$GCC" = yes; then
13416	case $host_os in aix4.[012]|aix4.[012].*)
13417	# We only want to do this on AIX 4.2 and lower, the check
13418	# below for broken collect2 doesn't work under 4.3+
13419	  collect2name=`${CC} -print-prog-name=collect2`
13420	  if test -f "$collect2name" && \
13421  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13422	  then
13423  	  # We have reworked collect2
13424  	  hardcode_direct_F77=yes
13425	  else
13426  	  # We have old collect2
13427  	  hardcode_direct_F77=unsupported
13428  	  # It fails to find uninstalled libraries when the uninstalled
13429  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13430  	  # to unsupported forces relinking
13431  	  hardcode_minus_L_F77=yes
13432  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13433  	  hardcode_libdir_separator_F77=
13434	  fi
13435	  ;;
13436	esac
13437	shared_flag='-shared'
13438	if test "$aix_use_runtimelinking" = yes; then
13439	  shared_flag="$shared_flag "'${wl}-G'
13440	fi
13441      else
13442	# not using gcc
13443	if test "$host_cpu" = ia64; then
13444  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13445  	# chokes on -Wl,-G. The following line is correct:
13446	  shared_flag='-G'
13447	else
13448	  if test "$aix_use_runtimelinking" = yes; then
13449	    shared_flag='${wl}-G'
13450	  else
13451	    shared_flag='${wl}-bM:SRE'
13452	  fi
13453	fi
13454      fi
13455
13456      # It seems that -bexpall does not export symbols beginning with
13457      # underscore (_), so it is better to generate a list of symbols to export.
13458      always_export_symbols_F77=yes
13459      if test "$aix_use_runtimelinking" = yes; then
13460	# Warning - without using the other runtime loading flags (-brtl),
13461	# -berok will link without error, but may produce a broken library.
13462	allow_undefined_flag_F77='-berok'
13463       # Determine the default libpath from the value encoded in an empty executable.
13464       cat >conftest.$ac_ext <<_ACEOF
13465      program main
13466
13467      end
13468_ACEOF
13469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471  (eval $ac_link) 2>conftest.er1
13472  ac_status=$?
13473  grep -v '^ *+' conftest.er1 >conftest.err
13474  rm -f conftest.er1
13475  cat conftest.err >&5
13476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477  (exit $ac_status); } &&
13478	 { ac_try='test -z "$ac_f77_werror_flag"
13479			 || test ! -s conftest.err'
13480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481  (eval $ac_try) 2>&5
13482  ac_status=$?
13483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484  (exit $ac_status); }; } &&
13485	 { ac_try='test -s conftest$ac_exeext'
13486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487  (eval $ac_try) 2>&5
13488  ac_status=$?
13489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490  (exit $ac_status); }; }; then
13491
13492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13493}'`
13494# Check for a 64-bit object if we didn't find anything.
13495if 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; }
13496}'`; fi
13497else
13498  echo "$as_me: failed program was:" >&5
13499sed 's/^/| /' conftest.$ac_ext >&5
13500
13501fi
13502rm -f conftest.err conftest.$ac_objext \
13503      conftest$ac_exeext conftest.$ac_ext
13504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13508       else
13509	if test "$host_cpu" = ia64; then
13510	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13511	  allow_undefined_flag_F77="-z nodefs"
13512	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13513	else
13514	 # Determine the default libpath from the value encoded in an empty executable.
13515	 cat >conftest.$ac_ext <<_ACEOF
13516      program main
13517
13518      end
13519_ACEOF
13520rm -f conftest.$ac_objext conftest$ac_exeext
13521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522  (eval $ac_link) 2>conftest.er1
13523  ac_status=$?
13524  grep -v '^ *+' conftest.er1 >conftest.err
13525  rm -f conftest.er1
13526  cat conftest.err >&5
13527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528  (exit $ac_status); } &&
13529	 { ac_try='test -z "$ac_f77_werror_flag"
13530			 || test ! -s conftest.err'
13531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532  (eval $ac_try) 2>&5
13533  ac_status=$?
13534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535  (exit $ac_status); }; } &&
13536	 { ac_try='test -s conftest$ac_exeext'
13537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538  (eval $ac_try) 2>&5
13539  ac_status=$?
13540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541  (exit $ac_status); }; }; then
13542
13543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13544}'`
13545# Check for a 64-bit object if we didn't find anything.
13546if 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; }
13547}'`; fi
13548else
13549  echo "$as_me: failed program was:" >&5
13550sed 's/^/| /' conftest.$ac_ext >&5
13551
13552fi
13553rm -f conftest.err conftest.$ac_objext \
13554      conftest$ac_exeext conftest.$ac_ext
13555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13556
13557	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13558	  # Warning - without using the other run time loading flags,
13559	  # -berok will link without error, but may produce a broken library.
13560	  no_undefined_flag_F77=' ${wl}-bernotok'
13561	  allow_undefined_flag_F77=' ${wl}-berok'
13562	  # Exported symbols can be pulled into shared objects from archives
13563	  whole_archive_flag_spec_F77='$convenience'
13564	  archive_cmds_need_lc_F77=yes
13565	  # This is similar to how AIX traditionally builds its shared libraries.
13566	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13567	fi
13568      fi
13569      ;;
13570
13571    amigaos*)
13572      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)'
13573      hardcode_libdir_flag_spec_F77='-L$libdir'
13574      hardcode_minus_L_F77=yes
13575      # see comment about different semantics on the GNU ld section
13576      ld_shlibs_F77=no
13577      ;;
13578
13579    bsdi[45]*)
13580      export_dynamic_flag_spec_F77=-rdynamic
13581      ;;
13582
13583    cygwin* | mingw* | pw32*)
13584      # When not using gcc, we currently assume that we are using
13585      # Microsoft Visual C++.
13586      # hardcode_libdir_flag_spec is actually meaningless, as there is
13587      # no search path for DLLs.
13588      hardcode_libdir_flag_spec_F77=' '
13589      allow_undefined_flag_F77=unsupported
13590      # Tell ltmain to make .lib files, not .a files.
13591      libext=lib
13592      # Tell ltmain to make .dll files, not .so files.
13593      shrext_cmds=".dll"
13594      # FIXME: Setting linknames here is a bad hack.
13595      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13596      # The linker will automatically build a .lib file if we build a DLL.
13597      old_archive_From_new_cmds_F77='true'
13598      # FIXME: Should let the user specify the lib program.
13599      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13600      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13601      enable_shared_with_static_runtimes_F77=yes
13602      ;;
13603
13604    darwin* | rhapsody*)
13605      case $host_os in
13606        rhapsody* | darwin1.[012])
13607         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13608         ;;
13609       *) # Darwin 1.3 on
13610         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13611           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13612         else
13613           case ${MACOSX_DEPLOYMENT_TARGET} in
13614             10.[012])
13615               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13616               ;;
13617             10.*)
13618               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13619               ;;
13620           esac
13621         fi
13622         ;;
13623      esac
13624      archive_cmds_need_lc_F77=no
13625      hardcode_direct_F77=no
13626      hardcode_automatic_F77=yes
13627      hardcode_shlibpath_var_F77=unsupported
13628      whole_archive_flag_spec_F77=''
13629      link_all_deplibs_F77=yes
13630    if test "$GCC" = yes ; then
13631    	output_verbose_link_cmd='echo'
13632        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13633      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13634      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13635      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}'
13636      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}'
13637    else
13638      case $cc_basename in
13639        xlc*)
13640         output_verbose_link_cmd='echo'
13641         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13642         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13643          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13644         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}'
13645          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}'
13646          ;;
13647       *)
13648         ld_shlibs_F77=no
13649          ;;
13650      esac
13651    fi
13652      ;;
13653
13654    dgux*)
13655      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13656      hardcode_libdir_flag_spec_F77='-L$libdir'
13657      hardcode_shlibpath_var_F77=no
13658      ;;
13659
13660    freebsd1*)
13661      ld_shlibs_F77=no
13662      ;;
13663
13664    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13665    # support.  Future versions do this automatically, but an explicit c++rt0.o
13666    # does not break anything, and helps significantly (at the cost of a little
13667    # extra space).
13668    freebsd2.2*)
13669      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13670      hardcode_libdir_flag_spec_F77='-R$libdir'
13671      hardcode_direct_F77=yes
13672      hardcode_shlibpath_var_F77=no
13673      ;;
13674
13675    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13676    freebsd2*)
13677      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13678      hardcode_direct_F77=yes
13679      hardcode_minus_L_F77=yes
13680      hardcode_shlibpath_var_F77=no
13681      ;;
13682
13683    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13684    freebsd* | kfreebsd*-gnu | dragonfly*)
13685      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13686      hardcode_libdir_flag_spec_F77='-R$libdir'
13687      hardcode_direct_F77=yes
13688      hardcode_shlibpath_var_F77=no
13689      ;;
13690
13691    hpux9*)
13692      if test "$GCC" = yes; then
13693	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'
13694      else
13695	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'
13696      fi
13697      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698      hardcode_libdir_separator_F77=:
13699      hardcode_direct_F77=yes
13700
13701      # hardcode_minus_L: Not really in the search PATH,
13702      # but as the default location of the library.
13703      hardcode_minus_L_F77=yes
13704      export_dynamic_flag_spec_F77='${wl}-E'
13705      ;;
13706
13707    hpux10*)
13708      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13709	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13710      else
13711	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13712      fi
13713      if test "$with_gnu_ld" = no; then
13714	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13715	hardcode_libdir_separator_F77=:
13716
13717	hardcode_direct_F77=yes
13718	export_dynamic_flag_spec_F77='${wl}-E'
13719
13720	# hardcode_minus_L: Not really in the search PATH,
13721	# but as the default location of the library.
13722	hardcode_minus_L_F77=yes
13723      fi
13724      ;;
13725
13726    hpux11*)
13727      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13728	case $host_cpu in
13729	hppa*64*)
13730	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13731	  ;;
13732	ia64*)
13733	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13734	  ;;
13735	*)
13736	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13737	  ;;
13738	esac
13739      else
13740	case $host_cpu in
13741	hppa*64*)
13742	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743	  ;;
13744	ia64*)
13745	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13746	  ;;
13747	*)
13748	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13749	  ;;
13750	esac
13751      fi
13752      if test "$with_gnu_ld" = no; then
13753	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13754	hardcode_libdir_separator_F77=:
13755
13756	case $host_cpu in
13757	hppa*64*|ia64*)
13758	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13759	  hardcode_direct_F77=no
13760	  hardcode_shlibpath_var_F77=no
13761	  ;;
13762	*)
13763	  hardcode_direct_F77=yes
13764	  export_dynamic_flag_spec_F77='${wl}-E'
13765
13766	  # hardcode_minus_L: Not really in the search PATH,
13767	  # but as the default location of the library.
13768	  hardcode_minus_L_F77=yes
13769	  ;;
13770	esac
13771      fi
13772      ;;
13773
13774    irix5* | irix6* | nonstopux*)
13775      if test "$GCC" = yes; then
13776	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'
13777      else
13778	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'
13779	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13780      fi
13781      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13782      hardcode_libdir_separator_F77=:
13783      link_all_deplibs_F77=yes
13784      ;;
13785
13786    netbsd*)
13787      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13788	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13789      else
13790	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13791      fi
13792      hardcode_libdir_flag_spec_F77='-R$libdir'
13793      hardcode_direct_F77=yes
13794      hardcode_shlibpath_var_F77=no
13795      ;;
13796
13797    newsos6)
13798      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799      hardcode_direct_F77=yes
13800      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13801      hardcode_libdir_separator_F77=:
13802      hardcode_shlibpath_var_F77=no
13803      ;;
13804
13805    openbsd*)
13806      hardcode_direct_F77=yes
13807      hardcode_shlibpath_var_F77=no
13808      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13809	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13810	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13811	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13812	export_dynamic_flag_spec_F77='${wl}-E'
13813      else
13814       case $host_os in
13815	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13816	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13817	   hardcode_libdir_flag_spec_F77='-R$libdir'
13818	   ;;
13819	 *)
13820	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13821	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13822	   ;;
13823       esac
13824      fi
13825      ;;
13826
13827    os2*)
13828      hardcode_libdir_flag_spec_F77='-L$libdir'
13829      hardcode_minus_L_F77=yes
13830      allow_undefined_flag_F77=unsupported
13831      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'
13832      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13833      ;;
13834
13835    osf3*)
13836      if test "$GCC" = yes; then
13837	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13838	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'
13839      else
13840	allow_undefined_flag_F77=' -expect_unresolved \*'
13841	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'
13842      fi
13843      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13844      hardcode_libdir_separator_F77=:
13845      ;;
13846
13847    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13848      if test "$GCC" = yes; then
13849	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13850	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'
13851	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13852      else
13853	allow_undefined_flag_F77=' -expect_unresolved \*'
13854	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'
13855	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~
13856	$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'
13857
13858	# Both c and cxx compiler support -rpath directly
13859	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13860      fi
13861      hardcode_libdir_separator_F77=:
13862      ;;
13863
13864    solaris*)
13865      no_undefined_flag_F77=' -z text'
13866      if test "$GCC" = yes; then
13867	wlarc='${wl}'
13868	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13869	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13870	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13871      else
13872	wlarc=''
13873	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13875  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13876      fi
13877      hardcode_libdir_flag_spec_F77='-R$libdir'
13878      hardcode_shlibpath_var_F77=no
13879      case $host_os in
13880      solaris2.[0-5] | solaris2.[0-5].*) ;;
13881      *)
13882 	# The compiler driver will combine linker options so we
13883 	# cannot just pass the convience library names through
13884 	# without $wl, iff we do not link with $LD.
13885 	# Luckily, gcc supports the same syntax we need for Sun Studio.
13886 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13887 	case $wlarc in
13888 	'')
13889 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13890 	*)
13891 	  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' ;;
13892 	esac ;;
13893      esac
13894      link_all_deplibs_F77=yes
13895      ;;
13896
13897    sunos4*)
13898      if test "x$host_vendor" = xsequent; then
13899	# Use $CC to link under sequent, because it throws in some extra .o
13900	# files that make .init and .fini sections work.
13901	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13902      else
13903	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13904      fi
13905      hardcode_libdir_flag_spec_F77='-L$libdir'
13906      hardcode_direct_F77=yes
13907      hardcode_minus_L_F77=yes
13908      hardcode_shlibpath_var_F77=no
13909      ;;
13910
13911    sysv4)
13912      case $host_vendor in
13913	sni)
13914	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915	  hardcode_direct_F77=yes # is this really true???
13916	;;
13917	siemens)
13918	  ## LD is ld it makes a PLAMLIB
13919	  ## CC just makes a GrossModule.
13920	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13921	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13922	  hardcode_direct_F77=no
13923        ;;
13924	motorola)
13925	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13927	;;
13928      esac
13929      runpath_var='LD_RUN_PATH'
13930      hardcode_shlibpath_var_F77=no
13931      ;;
13932
13933    sysv4.3*)
13934      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13935      hardcode_shlibpath_var_F77=no
13936      export_dynamic_flag_spec_F77='-Bexport'
13937      ;;
13938
13939    sysv4*MP*)
13940      if test -d /usr/nec; then
13941	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942	hardcode_shlibpath_var_F77=no
13943	runpath_var=LD_RUN_PATH
13944	hardcode_runpath_var=yes
13945	ld_shlibs_F77=yes
13946      fi
13947      ;;
13948
13949    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13950      no_undefined_flag_F77='${wl}-z,text'
13951      archive_cmds_need_lc_F77=no
13952      hardcode_shlibpath_var_F77=no
13953      runpath_var='LD_RUN_PATH'
13954
13955      if test "$GCC" = yes; then
13956	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13957	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13958      else
13959	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13961      fi
13962      ;;
13963
13964    sysv5* | sco3.2v5* | sco5v6*)
13965      # Note: We can NOT use -z defs as we might desire, because we do not
13966      # link with -lc, and that would cause any symbols used from libc to
13967      # always be unresolved, which means just about no library would
13968      # ever link correctly.  If we're not using GNU ld we use -z text
13969      # though, which does catch some bad symbols but isn't as heavy-handed
13970      # as -z defs.
13971      no_undefined_flag_F77='${wl}-z,text'
13972      allow_undefined_flag_F77='${wl}-z,nodefs'
13973      archive_cmds_need_lc_F77=no
13974      hardcode_shlibpath_var_F77=no
13975      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13976      hardcode_libdir_separator_F77=':'
13977      link_all_deplibs_F77=yes
13978      export_dynamic_flag_spec_F77='${wl}-Bexport'
13979      runpath_var='LD_RUN_PATH'
13980
13981      if test "$GCC" = yes; then
13982	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13983	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13984      else
13985	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13986	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13987      fi
13988      ;;
13989
13990    uts4*)
13991      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992      hardcode_libdir_flag_spec_F77='-L$libdir'
13993      hardcode_shlibpath_var_F77=no
13994      ;;
13995
13996    *)
13997      ld_shlibs_F77=no
13998      ;;
13999    esac
14000  fi
14001
14002echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14003echo "${ECHO_T}$ld_shlibs_F77" >&6
14004test "$ld_shlibs_F77" = no && can_build_shared=no
14005
14006#
14007# Do we need to explicitly link libc?
14008#
14009case "x$archive_cmds_need_lc_F77" in
14010x|xyes)
14011  # Assume -lc should be added
14012  archive_cmds_need_lc_F77=yes
14013
14014  if test "$enable_shared" = yes && test "$GCC" = yes; then
14015    case $archive_cmds_F77 in
14016    *'~'*)
14017      # FIXME: we may have to deal with multi-command sequences.
14018      ;;
14019    '$CC '*)
14020      # Test whether the compiler implicitly links with -lc since on some
14021      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14022      # to ld, don't add -lc before -lgcc.
14023      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14024echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14025      $rm conftest*
14026      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14027
14028      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029  (eval $ac_compile) 2>&5
14030  ac_status=$?
14031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032  (exit $ac_status); } 2>conftest.err; then
14033        soname=conftest
14034        lib=conftest
14035        libobjs=conftest.$ac_objext
14036        deplibs=
14037        wl=$lt_prog_compiler_wl_F77
14038	pic_flag=$lt_prog_compiler_pic_F77
14039        compiler_flags=-v
14040        linker_flags=-v
14041        verstring=
14042        output_objdir=.
14043        libname=conftest
14044        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14045        allow_undefined_flag_F77=
14046        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14047  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14048  ac_status=$?
14049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050  (exit $ac_status); }
14051        then
14052	  archive_cmds_need_lc_F77=no
14053        else
14054	  archive_cmds_need_lc_F77=yes
14055        fi
14056        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14057      else
14058        cat conftest.err 1>&5
14059      fi
14060      $rm conftest*
14061      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14062echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14063      ;;
14064    esac
14065  fi
14066  ;;
14067esac
14068
14069echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14070echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14071library_names_spec=
14072libname_spec='lib$name'
14073soname_spec=
14074shrext_cmds=".so"
14075postinstall_cmds=
14076postuninstall_cmds=
14077finish_cmds=
14078finish_eval=
14079shlibpath_var=
14080shlibpath_overrides_runpath=unknown
14081version_type=none
14082dynamic_linker="$host_os ld.so"
14083sys_lib_dlsearch_path_spec="/lib /usr/lib"
14084if test "$GCC" = yes; then
14085  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14086  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14087    # if the path contains ";" then we assume it to be the separator
14088    # otherwise default to the standard path separator (i.e. ":") - it is
14089    # assumed that no part of a normal pathname contains ";" but that should
14090    # okay in the real world where ";" in dirpaths is itself problematic.
14091    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14092  else
14093    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14094  fi
14095else
14096  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14097fi
14098need_lib_prefix=unknown
14099hardcode_into_libs=no
14100
14101# when you set need_version to no, make sure it does not cause -set_version
14102# flags to be left without arguments
14103need_version=unknown
14104
14105case $host_os in
14106aix3*)
14107  version_type=linux
14108  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14109  shlibpath_var=LIBPATH
14110
14111  # AIX 3 has no versioning support, so we append a major version to the name.
14112  soname_spec='${libname}${release}${shared_ext}$major'
14113  ;;
14114
14115aix4* | aix5*)
14116  version_type=linux
14117  need_lib_prefix=no
14118  need_version=no
14119  hardcode_into_libs=yes
14120  if test "$host_cpu" = ia64; then
14121    # AIX 5 supports IA64
14122    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14123    shlibpath_var=LD_LIBRARY_PATH
14124  else
14125    # With GCC up to 2.95.x, collect2 would create an import file
14126    # for dependence libraries.  The import file would start with
14127    # the line `#! .'.  This would cause the generated library to
14128    # depend on `.', always an invalid library.  This was fixed in
14129    # development snapshots of GCC prior to 3.0.
14130    case $host_os in
14131      aix4 | aix4.[01] | aix4.[01].*)
14132      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14133	   echo ' yes '
14134	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14135	:
14136      else
14137	can_build_shared=no
14138      fi
14139      ;;
14140    esac
14141    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14142    # soname into executable. Probably we can add versioning support to
14143    # collect2, so additional links can be useful in future.
14144    if test "$aix_use_runtimelinking" = yes; then
14145      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14146      # instead of lib<name>.a to let people know that these are not
14147      # typical AIX shared libraries.
14148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149    else
14150      # We preserve .a as extension for shared libraries through AIX4.2
14151      # and later when we are not doing run time linking.
14152      library_names_spec='${libname}${release}.a $libname.a'
14153      soname_spec='${libname}${release}${shared_ext}$major'
14154    fi
14155    shlibpath_var=LIBPATH
14156  fi
14157  ;;
14158
14159amigaos*)
14160  library_names_spec='$libname.ixlibrary $libname.a'
14161  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14162  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'
14163  ;;
14164
14165beos*)
14166  library_names_spec='${libname}${shared_ext}'
14167  dynamic_linker="$host_os ld.so"
14168  shlibpath_var=LIBRARY_PATH
14169  ;;
14170
14171bsdi[45]*)
14172  version_type=linux
14173  need_version=no
14174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175  soname_spec='${libname}${release}${shared_ext}$major'
14176  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14177  shlibpath_var=LD_LIBRARY_PATH
14178  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14179  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14180  # the default ld.so.conf also contains /usr/contrib/lib and
14181  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14182  # libtool to hard-code these into programs
14183  ;;
14184
14185cygwin* | mingw* | pw32*)
14186  version_type=windows
14187  shrext_cmds=".dll"
14188  need_version=no
14189  need_lib_prefix=no
14190
14191  case $GCC,$host_os in
14192  yes,cygwin* | yes,mingw* | yes,pw32*)
14193    library_names_spec='$libname.dll.a'
14194    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14195    postinstall_cmds='base_file=`basename \${file}`~
14196      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14197      dldir=$destdir/`dirname \$dlpath`~
14198      test -d \$dldir || mkdir -p \$dldir~
14199      $install_prog $dir/$dlname \$dldir/$dlname~
14200      chmod a+x \$dldir/$dlname'
14201    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14202      dlpath=$dir/\$dldll~
14203       $rm \$dlpath'
14204    shlibpath_overrides_runpath=yes
14205
14206    case $host_os in
14207    cygwin*)
14208      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14209      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14210      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14211      ;;
14212    mingw*)
14213      # MinGW DLLs use traditional 'lib' prefix
14214      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14215      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14216      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14217        # It is most probably a Windows format PATH printed by
14218        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14219        # path with ; separators, and with drive letters. We can handle the
14220        # drive letters (cygwin fileutils understands them), so leave them,
14221        # especially as we might pass files found there to a mingw objdump,
14222        # which wouldn't understand a cygwinified path. Ahh.
14223        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14224      else
14225        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14226      fi
14227      ;;
14228    pw32*)
14229      # pw32 DLLs use 'pw' prefix rather than 'lib'
14230      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14231      ;;
14232    esac
14233    ;;
14234
14235  linux*)
14236    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14237      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238      supports_anon_versioning=no
14239      case `$LD -v 2>/dev/null` in
14240        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14241        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14242        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14243        *\ 2.11.*) ;; # other 2.11 versions
14244        *) supports_anon_versioning=yes ;;
14245      esac
14246      if test $supports_anon_versioning = yes; then
14247        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14248cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14249$echo "local: *; };" >> $output_objdir/$libname.ver~
14250        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14251      else
14252        $archive_expsym_cmds="$archive_cmds"
14253      fi
14254    else
14255      ld_shlibs=no
14256    fi
14257    ;;
14258
14259  *)
14260    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14261    ;;
14262  esac
14263  dynamic_linker='Win32 ld.exe'
14264  # FIXME: first we should search . and the directory the executable is in
14265  shlibpath_var=PATH
14266  ;;
14267
14268darwin* | rhapsody*)
14269  dynamic_linker="$host_os dyld"
14270  version_type=darwin
14271  need_lib_prefix=no
14272  need_version=no
14273  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14274  soname_spec='${libname}${release}${major}$shared_ext'
14275  shlibpath_overrides_runpath=yes
14276  shlibpath_var=DYLD_LIBRARY_PATH
14277  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14278  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14279  if test "$GCC" = yes; then
14280    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"`
14281  else
14282    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14283  fi
14284  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14285  ;;
14286
14287dgux*)
14288  version_type=linux
14289  need_lib_prefix=no
14290  need_version=no
14291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14292  soname_spec='${libname}${release}${shared_ext}$major'
14293  shlibpath_var=LD_LIBRARY_PATH
14294  ;;
14295
14296freebsd1*)
14297  dynamic_linker=no
14298  ;;
14299
14300kfreebsd*-gnu)
14301  version_type=linux
14302  need_lib_prefix=no
14303  need_version=no
14304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14305  soname_spec='${libname}${release}${shared_ext}$major'
14306  shlibpath_var=LD_LIBRARY_PATH
14307  shlibpath_overrides_runpath=no
14308  hardcode_into_libs=yes
14309  dynamic_linker='GNU ld.so'
14310  ;;
14311
14312freebsd* | dragonfly*)
14313  # DragonFly does not have aout.  When/if they implement a new
14314  # versioning mechanism, adjust this.
14315  if test -x /usr/bin/objformat; then
14316    objformat=`/usr/bin/objformat`
14317  else
14318    case $host_os in
14319    freebsd[123]*) objformat=aout ;;
14320    *) objformat=elf ;;
14321    esac
14322  fi
14323  # Handle Gentoo/FreeBSD as it was Linux
14324  case $host_vendor in
14325    gentoo)
14326      version_type=linux ;;
14327    *)
14328      version_type=freebsd-$objformat ;;
14329  esac
14330
14331  case $version_type in
14332    freebsd-elf*)
14333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14334      need_version=no
14335      need_lib_prefix=no
14336      ;;
14337    freebsd-*)
14338      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14339      need_version=yes
14340      ;;
14341    linux)
14342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14343      soname_spec='${libname}${release}${shared_ext}$major'
14344      need_lib_prefix=no
14345      need_version=no
14346      ;;
14347  esac
14348  shlibpath_var=LD_LIBRARY_PATH
14349  case $host_os in
14350  freebsd2*)
14351    shlibpath_overrides_runpath=yes
14352    ;;
14353  freebsd3.[01]* | freebsdelf3.[01]*)
14354    shlibpath_overrides_runpath=yes
14355    hardcode_into_libs=yes
14356    ;;
14357  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14358  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14359    shlibpath_overrides_runpath=no
14360    hardcode_into_libs=yes
14361    ;;
14362  freebsd*) # from 4.6 on
14363    shlibpath_overrides_runpath=yes
14364    hardcode_into_libs=yes
14365    ;;
14366  esac
14367  ;;
14368
14369gnu*)
14370  version_type=linux
14371  need_lib_prefix=no
14372  need_version=no
14373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14374  soname_spec='${libname}${release}${shared_ext}$major'
14375  shlibpath_var=LD_LIBRARY_PATH
14376  hardcode_into_libs=yes
14377  ;;
14378
14379hpux9* | hpux10* | hpux11*)
14380  # Give a soname corresponding to the major version so that dld.sl refuses to
14381  # link against other versions.
14382  version_type=sunos
14383  need_lib_prefix=no
14384  need_version=no
14385  case $host_cpu in
14386  ia64*)
14387    shrext_cmds='.so'
14388    hardcode_into_libs=yes
14389    dynamic_linker="$host_os dld.so"
14390    shlibpath_var=LD_LIBRARY_PATH
14391    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393    soname_spec='${libname}${release}${shared_ext}$major'
14394    if test "X$HPUX_IA64_MODE" = X32; then
14395      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14396    else
14397      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14398    fi
14399    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400    ;;
14401   hppa*64*)
14402     shrext_cmds='.sl'
14403     hardcode_into_libs=yes
14404     dynamic_linker="$host_os dld.sl"
14405     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408     soname_spec='${libname}${release}${shared_ext}$major'
14409     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14411     ;;
14412   *)
14413    shrext_cmds='.sl'
14414    dynamic_linker="$host_os dld.sl"
14415    shlibpath_var=SHLIB_PATH
14416    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14417    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418    soname_spec='${libname}${release}${shared_ext}$major'
14419    ;;
14420  esac
14421  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14422  postinstall_cmds='chmod 555 $lib'
14423  ;;
14424
14425interix3*)
14426  version_type=linux
14427  need_lib_prefix=no
14428  need_version=no
14429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14430  soname_spec='${libname}${release}${shared_ext}$major'
14431  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14432  shlibpath_var=LD_LIBRARY_PATH
14433  shlibpath_overrides_runpath=no
14434  hardcode_into_libs=yes
14435  ;;
14436
14437irix5* | irix6* | nonstopux*)
14438  case $host_os in
14439    nonstopux*) version_type=nonstopux ;;
14440    *)
14441	if test "$lt_cv_prog_gnu_ld" = yes; then
14442		version_type=linux
14443	else
14444		version_type=irix
14445	fi ;;
14446  esac
14447  need_lib_prefix=no
14448  need_version=no
14449  soname_spec='${libname}${release}${shared_ext}$major'
14450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14451  case $host_os in
14452  irix5* | nonstopux*)
14453    libsuff= shlibsuff=
14454    ;;
14455  *)
14456    case $LD in # libtool.m4 will add one of these switches to LD
14457    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14458      libsuff= shlibsuff= libmagic=32-bit;;
14459    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14460      libsuff=32 shlibsuff=N32 libmagic=N32;;
14461    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14462      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14463    *) libsuff= shlibsuff= libmagic=never-match;;
14464    esac
14465    ;;
14466  esac
14467  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14468  shlibpath_overrides_runpath=no
14469  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14470  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14471  hardcode_into_libs=yes
14472  ;;
14473
14474# No shared lib support for Linux oldld, aout, or coff.
14475linux*oldld* | linux*aout* | linux*coff*)
14476  dynamic_linker=no
14477  ;;
14478
14479# This must be Linux ELF.
14480linux*)
14481  version_type=linux
14482  need_lib_prefix=no
14483  need_version=no
14484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485  soname_spec='${libname}${release}${shared_ext}$major'
14486  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14487  shlibpath_var=LD_LIBRARY_PATH
14488  shlibpath_overrides_runpath=no
14489  # This implies no fast_install, which is unacceptable.
14490  # Some rework will be needed to allow for fast_install
14491  # before this can be enabled.
14492  hardcode_into_libs=yes
14493
14494  # Append ld.so.conf contents to the search path
14495  if test -f /etc/ld.so.conf; then
14496    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' ' '`
14497    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14498  fi
14499
14500  # We used to test for /lib/ld.so.1 and disable shared libraries on
14501  # powerpc, because MkLinux only supported shared libraries with the
14502  # GNU dynamic linker.  Since this was broken with cross compilers,
14503  # most powerpc-linux boxes support dynamic linking these days and
14504  # people can always --disable-shared, the test was removed, and we
14505  # assume the GNU/Linux dynamic linker is in use.
14506  dynamic_linker='GNU/Linux ld.so'
14507  ;;
14508
14509knetbsd*-gnu)
14510  version_type=linux
14511  need_lib_prefix=no
14512  need_version=no
14513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14514  soname_spec='${libname}${release}${shared_ext}$major'
14515  shlibpath_var=LD_LIBRARY_PATH
14516  shlibpath_overrides_runpath=no
14517  hardcode_into_libs=yes
14518  dynamic_linker='GNU ld.so'
14519  ;;
14520
14521netbsd*)
14522  version_type=sunos
14523  need_lib_prefix=no
14524  need_version=no
14525  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14528    dynamic_linker='NetBSD (a.out) ld.so'
14529  else
14530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531    soname_spec='${libname}${release}${shared_ext}$major'
14532    dynamic_linker='NetBSD ld.elf_so'
14533  fi
14534  shlibpath_var=LD_LIBRARY_PATH
14535  shlibpath_overrides_runpath=yes
14536  hardcode_into_libs=yes
14537  ;;
14538
14539newsos6)
14540  version_type=linux
14541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542  shlibpath_var=LD_LIBRARY_PATH
14543  shlibpath_overrides_runpath=yes
14544  ;;
14545
14546nto-qnx*)
14547  version_type=linux
14548  need_lib_prefix=no
14549  need_version=no
14550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551  soname_spec='${libname}${release}${shared_ext}$major'
14552  shlibpath_var=LD_LIBRARY_PATH
14553  shlibpath_overrides_runpath=yes
14554  ;;
14555
14556openbsd*)
14557  version_type=sunos
14558  sys_lib_dlsearch_path_spec="/usr/lib"
14559  need_lib_prefix=no
14560  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14561  case $host_os in
14562    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14563    *)                         need_version=no  ;;
14564  esac
14565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14567  shlibpath_var=LD_LIBRARY_PATH
14568  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14569    case $host_os in
14570      openbsd2.[89] | openbsd2.[89].*)
14571	shlibpath_overrides_runpath=no
14572	;;
14573      *)
14574	shlibpath_overrides_runpath=yes
14575	;;
14576      esac
14577  else
14578    shlibpath_overrides_runpath=yes
14579  fi
14580  ;;
14581
14582os2*)
14583  libname_spec='$name'
14584  shrext_cmds=".dll"
14585  need_lib_prefix=no
14586  library_names_spec='$libname${shared_ext} $libname.a'
14587  dynamic_linker='OS/2 ld.exe'
14588  shlibpath_var=LIBPATH
14589  ;;
14590
14591osf3* | osf4* | osf5*)
14592  version_type=osf
14593  need_lib_prefix=no
14594  need_version=no
14595  soname_spec='${libname}${release}${shared_ext}$major'
14596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597  shlibpath_var=LD_LIBRARY_PATH
14598  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14599  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14600  ;;
14601
14602solaris*)
14603  version_type=linux
14604  need_lib_prefix=no
14605  need_version=no
14606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607  soname_spec='${libname}${release}${shared_ext}$major'
14608  shlibpath_var=LD_LIBRARY_PATH
14609  shlibpath_overrides_runpath=yes
14610  hardcode_into_libs=yes
14611  # ldd complains unless libraries are executable
14612  postinstall_cmds='chmod +x $lib'
14613  ;;
14614
14615sunos4*)
14616  version_type=sunos
14617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14618  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14619  shlibpath_var=LD_LIBRARY_PATH
14620  shlibpath_overrides_runpath=yes
14621  if test "$with_gnu_ld" = yes; then
14622    need_lib_prefix=no
14623  fi
14624  need_version=yes
14625  ;;
14626
14627sysv4 | sysv4.3*)
14628  version_type=linux
14629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630  soname_spec='${libname}${release}${shared_ext}$major'
14631  shlibpath_var=LD_LIBRARY_PATH
14632  case $host_vendor in
14633    sni)
14634      shlibpath_overrides_runpath=no
14635      need_lib_prefix=no
14636      export_dynamic_flag_spec='${wl}-Blargedynsym'
14637      runpath_var=LD_RUN_PATH
14638      ;;
14639    siemens)
14640      need_lib_prefix=no
14641      ;;
14642    motorola)
14643      need_lib_prefix=no
14644      need_version=no
14645      shlibpath_overrides_runpath=no
14646      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14647      ;;
14648  esac
14649  ;;
14650
14651sysv4*MP*)
14652  if test -d /usr/nec ;then
14653    version_type=linux
14654    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14655    soname_spec='$libname${shared_ext}.$major'
14656    shlibpath_var=LD_LIBRARY_PATH
14657  fi
14658  ;;
14659
14660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14661  version_type=freebsd-elf
14662  need_lib_prefix=no
14663  need_version=no
14664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14665  soname_spec='${libname}${release}${shared_ext}$major'
14666  shlibpath_var=LD_LIBRARY_PATH
14667  hardcode_into_libs=yes
14668  if test "$with_gnu_ld" = yes; then
14669    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14670    shlibpath_overrides_runpath=no
14671  else
14672    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14673    shlibpath_overrides_runpath=yes
14674    case $host_os in
14675      sco3.2v5*)
14676        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14677	;;
14678    esac
14679  fi
14680  sys_lib_dlsearch_path_spec='/usr/lib'
14681  ;;
14682
14683uts4*)
14684  version_type=linux
14685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686  soname_spec='${libname}${release}${shared_ext}$major'
14687  shlibpath_var=LD_LIBRARY_PATH
14688  ;;
14689
14690*)
14691  dynamic_linker=no
14692  ;;
14693esac
14694echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14695echo "${ECHO_T}$dynamic_linker" >&6
14696test "$dynamic_linker" = no && can_build_shared=no
14697
14698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14699if test "$GCC" = yes; then
14700  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14701fi
14702
14703echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14704echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14705hardcode_action_F77=
14706if test -n "$hardcode_libdir_flag_spec_F77" || \
14707   test -n "$runpath_var_F77" || \
14708   test "X$hardcode_automatic_F77" = "Xyes" ; then
14709
14710  # We can hardcode non-existant directories.
14711  if test "$hardcode_direct_F77" != no &&
14712     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14713     # have to relink, otherwise we might link with an installed library
14714     # when we should be linking with a yet-to-be-installed one
14715     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14716     test "$hardcode_minus_L_F77" != no; then
14717    # Linking always hardcodes the temporary library directory.
14718    hardcode_action_F77=relink
14719  else
14720    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14721    hardcode_action_F77=immediate
14722  fi
14723else
14724  # We cannot hardcode anything, or else we can only hardcode existing
14725  # directories.
14726  hardcode_action_F77=unsupported
14727fi
14728echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14729echo "${ECHO_T}$hardcode_action_F77" >&6
14730
14731if test "$hardcode_action_F77" = relink; then
14732  # Fast installation is not supported
14733  enable_fast_install=no
14734elif test "$shlibpath_overrides_runpath" = yes ||
14735     test "$enable_shared" = no; then
14736  # Fast installation is not necessary
14737  enable_fast_install=needless
14738fi
14739
14740
14741# The else clause should only fire when bootstrapping the
14742# libtool distribution, otherwise you forgot to ship ltmain.sh
14743# with your package, and you will get complaints that there are
14744# no rules to generate ltmain.sh.
14745if test -f "$ltmain"; then
14746  # See if we are running on zsh, and set the options which allow our commands through
14747  # without removal of \ escapes.
14748  if test -n "${ZSH_VERSION+set}" ; then
14749    setopt NO_GLOB_SUBST
14750  fi
14751  # Now quote all the things that may contain metacharacters while being
14752  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14753  # variables and quote the copies for generation of the libtool script.
14754  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14755    SED SHELL STRIP \
14756    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14757    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14758    deplibs_check_method reload_flag reload_cmds need_locks \
14759    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14760    lt_cv_sys_global_symbol_to_c_name_address \
14761    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14762    old_postinstall_cmds old_postuninstall_cmds \
14763    compiler_F77 \
14764    CC_F77 \
14765    LD_F77 \
14766    lt_prog_compiler_wl_F77 \
14767    lt_prog_compiler_pic_F77 \
14768    lt_prog_compiler_static_F77 \
14769    lt_prog_compiler_no_builtin_flag_F77 \
14770    export_dynamic_flag_spec_F77 \
14771    thread_safe_flag_spec_F77 \
14772    whole_archive_flag_spec_F77 \
14773    enable_shared_with_static_runtimes_F77 \
14774    old_archive_cmds_F77 \
14775    old_archive_from_new_cmds_F77 \
14776    predep_objects_F77 \
14777    postdep_objects_F77 \
14778    predeps_F77 \
14779    postdeps_F77 \
14780    compiler_lib_search_path_F77 \
14781    archive_cmds_F77 \
14782    archive_expsym_cmds_F77 \
14783    postinstall_cmds_F77 \
14784    postuninstall_cmds_F77 \
14785    old_archive_from_expsyms_cmds_F77 \
14786    allow_undefined_flag_F77 \
14787    no_undefined_flag_F77 \
14788    export_symbols_cmds_F77 \
14789    hardcode_libdir_flag_spec_F77 \
14790    hardcode_libdir_flag_spec_ld_F77 \
14791    hardcode_libdir_separator_F77 \
14792    hardcode_automatic_F77 \
14793    module_cmds_F77 \
14794    module_expsym_cmds_F77 \
14795    lt_cv_prog_compiler_c_o_F77 \
14796    exclude_expsyms_F77 \
14797    include_expsyms_F77; do
14798
14799    case $var in
14800    old_archive_cmds_F77 | \
14801    old_archive_from_new_cmds_F77 | \
14802    archive_cmds_F77 | \
14803    archive_expsym_cmds_F77 | \
14804    module_cmds_F77 | \
14805    module_expsym_cmds_F77 | \
14806    old_archive_from_expsyms_cmds_F77 | \
14807    export_symbols_cmds_F77 | \
14808    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14809    postinstall_cmds | postuninstall_cmds | \
14810    old_postinstall_cmds | old_postuninstall_cmds | \
14811    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14812      # Double-quote double-evaled strings.
14813      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14814      ;;
14815    *)
14816      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14817      ;;
14818    esac
14819  done
14820
14821  case $lt_echo in
14822  *'\$0 --fallback-echo"')
14823    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14824    ;;
14825  esac
14826
14827cfgfile="$ofile"
14828
14829  cat <<__EOF__ >> "$cfgfile"
14830# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14831
14832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14833
14834# Shell to use when invoking shell scripts.
14835SHELL=$lt_SHELL
14836
14837# Whether or not to build shared libraries.
14838build_libtool_libs=$enable_shared
14839
14840# Whether or not to build static libraries.
14841build_old_libs=$enable_static
14842
14843# Whether or not to add -lc for building shared libraries.
14844build_libtool_need_lc=$archive_cmds_need_lc_F77
14845
14846# Whether or not to disallow shared libs when runtime libs are static
14847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14848
14849# Whether or not to optimize for fast installation.
14850fast_install=$enable_fast_install
14851
14852# The host system.
14853host_alias=$host_alias
14854host=$host
14855host_os=$host_os
14856
14857# The build system.
14858build_alias=$build_alias
14859build=$build
14860build_os=$build_os
14861
14862# An echo program that does not interpret backslashes.
14863echo=$lt_echo
14864
14865# The archiver.
14866AR=$lt_AR
14867AR_FLAGS=$lt_AR_FLAGS
14868
14869# A C compiler.
14870LTCC=$lt_LTCC
14871
14872# LTCC compiler flags.
14873LTCFLAGS=$lt_LTCFLAGS
14874
14875# A language-specific compiler.
14876CC=$lt_compiler_F77
14877
14878# Is the compiler the GNU C compiler?
14879with_gcc=$GCC_F77
14880
14881# An ERE matcher.
14882EGREP=$lt_EGREP
14883
14884# The linker used to build libraries.
14885LD=$lt_LD_F77
14886
14887# Whether we need hard or soft links.
14888LN_S=$lt_LN_S
14889
14890# A BSD-compatible nm program.
14891NM=$lt_NM
14892
14893# A symbol stripping program
14894STRIP=$lt_STRIP
14895
14896# Used to examine libraries when file_magic_cmd begins "file"
14897MAGIC_CMD=$MAGIC_CMD
14898
14899# Used on cygwin: DLL creation program.
14900DLLTOOL="$DLLTOOL"
14901
14902# Used on cygwin: object dumper.
14903OBJDUMP="$OBJDUMP"
14904
14905# Used on cygwin: assembler.
14906AS="$AS"
14907
14908# The name of the directory that contains temporary libtool files.
14909objdir=$objdir
14910
14911# How to create reloadable object files.
14912reload_flag=$lt_reload_flag
14913reload_cmds=$lt_reload_cmds
14914
14915# How to pass a linker flag through the compiler.
14916wl=$lt_lt_prog_compiler_wl_F77
14917
14918# Object file suffix (normally "o").
14919objext="$ac_objext"
14920
14921# Old archive suffix (normally "a").
14922libext="$libext"
14923
14924# Shared library suffix (normally ".so").
14925shrext_cmds='$shrext_cmds'
14926
14927# Executable file suffix (normally "").
14928exeext="$exeext"
14929
14930# Additional compiler flags for building library objects.
14931pic_flag=$lt_lt_prog_compiler_pic_F77
14932pic_mode=$pic_mode
14933
14934# What is the maximum length of a command?
14935max_cmd_len=$lt_cv_sys_max_cmd_len
14936
14937# Does compiler simultaneously support -c and -o options?
14938compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14939
14940# Must we lock files when doing compilation?
14941need_locks=$lt_need_locks
14942
14943# Do we need the lib prefix for modules?
14944need_lib_prefix=$need_lib_prefix
14945
14946# Do we need a version for libraries?
14947need_version=$need_version
14948
14949# Whether dlopen is supported.
14950dlopen_support=$enable_dlopen
14951
14952# Whether dlopen of programs is supported.
14953dlopen_self=$enable_dlopen_self
14954
14955# Whether dlopen of statically linked programs is supported.
14956dlopen_self_static=$enable_dlopen_self_static
14957
14958# Compiler flag to prevent dynamic linking.
14959link_static_flag=$lt_lt_prog_compiler_static_F77
14960
14961# Compiler flag to turn off builtin functions.
14962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14963
14964# Compiler flag to allow reflexive dlopens.
14965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14966
14967# Compiler flag to generate shared objects directly from archives.
14968whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14969
14970# Compiler flag to generate thread-safe objects.
14971thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14972
14973# Library versioning type.
14974version_type=$version_type
14975
14976# Format of library name prefix.
14977libname_spec=$lt_libname_spec
14978
14979# List of archive names.  First name is the real one, the rest are links.
14980# The last name is the one that the linker finds with -lNAME.
14981library_names_spec=$lt_library_names_spec
14982
14983# The coded name of the library, if different from the real name.
14984soname_spec=$lt_soname_spec
14985
14986# Commands used to build and install an old-style archive.
14987RANLIB=$lt_RANLIB
14988old_archive_cmds=$lt_old_archive_cmds_F77
14989old_postinstall_cmds=$lt_old_postinstall_cmds
14990old_postuninstall_cmds=$lt_old_postuninstall_cmds
14991
14992# Create an old-style archive from a shared archive.
14993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14994
14995# Create a temporary old-style archive to link instead of a shared archive.
14996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14997
14998# Commands used to build and install a shared archive.
14999archive_cmds=$lt_archive_cmds_F77
15000archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15001postinstall_cmds=$lt_postinstall_cmds
15002postuninstall_cmds=$lt_postuninstall_cmds
15003
15004# Commands used to build a loadable module (assumed same as above if empty)
15005module_cmds=$lt_module_cmds_F77
15006module_expsym_cmds=$lt_module_expsym_cmds_F77
15007
15008# Commands to strip libraries.
15009old_striplib=$lt_old_striplib
15010striplib=$lt_striplib
15011
15012# Dependencies to place before the objects being linked to create a
15013# shared library.
15014predep_objects=$lt_predep_objects_F77
15015
15016# Dependencies to place after the objects being linked to create a
15017# shared library.
15018postdep_objects=$lt_postdep_objects_F77
15019
15020# Dependencies to place before the objects being linked to create a
15021# shared library.
15022predeps=$lt_predeps_F77
15023
15024# Dependencies to place after the objects being linked to create a
15025# shared library.
15026postdeps=$lt_postdeps_F77
15027
15028# The library search path used internally by the compiler when linking
15029# a shared library.
15030compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15031
15032# Method to check whether dependent libraries are shared objects.
15033deplibs_check_method=$lt_deplibs_check_method
15034
15035# Command to use when deplibs_check_method == file_magic.
15036file_magic_cmd=$lt_file_magic_cmd
15037
15038# Flag that allows shared libraries with undefined symbols to be built.
15039allow_undefined_flag=$lt_allow_undefined_flag_F77
15040
15041# Flag that forces no undefined symbols.
15042no_undefined_flag=$lt_no_undefined_flag_F77
15043
15044# Commands used to finish a libtool library installation in a directory.
15045finish_cmds=$lt_finish_cmds
15046
15047# Same as above, but a single script fragment to be evaled but not shown.
15048finish_eval=$lt_finish_eval
15049
15050# Take the output of nm and produce a listing of raw symbols and C names.
15051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15052
15053# Transform the output of nm in a proper C declaration
15054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15055
15056# Transform the output of nm in a C name address pair
15057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15058
15059# This is the shared library runtime path variable.
15060runpath_var=$runpath_var
15061
15062# This is the shared library path variable.
15063shlibpath_var=$shlibpath_var
15064
15065# Is shlibpath searched before the hard-coded library search path?
15066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15067
15068# How to hardcode a shared library path into an executable.
15069hardcode_action=$hardcode_action_F77
15070
15071# Whether we should hardcode library paths into libraries.
15072hardcode_into_libs=$hardcode_into_libs
15073
15074# Flag to hardcode \$libdir into a binary during linking.
15075# This must work even if \$libdir does not exist.
15076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15077
15078# If ld is used when linking, flag to hardcode \$libdir into
15079# a binary during linking. This must work even if \$libdir does
15080# not exist.
15081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15082
15083# Whether we need a single -rpath flag with a separated argument.
15084hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15085
15086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15087# resulting binary.
15088hardcode_direct=$hardcode_direct_F77
15089
15090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15091# resulting binary.
15092hardcode_minus_L=$hardcode_minus_L_F77
15093
15094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15095# the resulting binary.
15096hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15097
15098# Set to yes if building a shared library automatically hardcodes DIR into the library
15099# and all subsequent libraries and executables linked against it.
15100hardcode_automatic=$hardcode_automatic_F77
15101
15102# Variables whose values should be saved in libtool wrapper scripts and
15103# restored at relink time.
15104variables_saved_for_relink="$variables_saved_for_relink"
15105
15106# Whether libtool must link a program against all its dependency libraries.
15107link_all_deplibs=$link_all_deplibs_F77
15108
15109# Compile-time system search path for libraries
15110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15111
15112# Run-time system search path for libraries
15113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15114
15115# Fix the shell variable \$srcfile for the compiler.
15116fix_srcfile_path="$fix_srcfile_path_F77"
15117
15118# Set to yes if exported symbols are required.
15119always_export_symbols=$always_export_symbols_F77
15120
15121# The commands to list exported symbols.
15122export_symbols_cmds=$lt_export_symbols_cmds_F77
15123
15124# The commands to extract the exported symbol list from a shared archive.
15125extract_expsyms_cmds=$lt_extract_expsyms_cmds
15126
15127# Symbols that should not be listed in the preloaded symbols.
15128exclude_expsyms=$lt_exclude_expsyms_F77
15129
15130# Symbols that must always be exported.
15131include_expsyms=$lt_include_expsyms_F77
15132
15133# ### END LIBTOOL TAG CONFIG: $tagname
15134
15135__EOF__
15136
15137
15138else
15139  # If there is no Makefile yet, we rely on a make rule to execute
15140  # `config.status --recheck' to rerun these tests and create the
15141  # libtool script then.
15142  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15143  if test -f "$ltmain_in"; then
15144    test -f Makefile && make "$ltmain"
15145  fi
15146fi
15147
15148
15149ac_ext=c
15150ac_cpp='$CPP $CPPFLAGS'
15151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154
15155CC="$lt_save_CC"
15156
15157	else
15158	  tagname=""
15159	fi
15160	;;
15161
15162      GCJ)
15163	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15164
15165
15166
15167# Source file extension for Java test sources.
15168ac_ext=java
15169
15170# Object file extension for compiled Java test sources.
15171objext=o
15172objext_GCJ=$objext
15173
15174# Code to be used in simple compile tests
15175lt_simple_compile_test_code="class foo {}\n"
15176
15177# Code to be used in simple link tests
15178lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15179
15180# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15181
15182# If no C compiler was specified, use CC.
15183LTCC=${LTCC-"$CC"}
15184
15185# If no C compiler flags were specified, use CFLAGS.
15186LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15187
15188# Allow CC to be a program name with arguments.
15189compiler=$CC
15190
15191
15192# save warnings/boilerplate of simple test code
15193ac_outfile=conftest.$ac_objext
15194printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15196_lt_compiler_boilerplate=`cat conftest.err`
15197$rm conftest*
15198
15199ac_outfile=conftest.$ac_objext
15200printf "$lt_simple_link_test_code" >conftest.$ac_ext
15201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15202_lt_linker_boilerplate=`cat conftest.err`
15203$rm conftest*
15204
15205
15206# Allow CC to be a program name with arguments.
15207lt_save_CC="$CC"
15208CC=${GCJ-"gcj"}
15209compiler=$CC
15210compiler_GCJ=$CC
15211for cc_temp in $compiler""; do
15212  case $cc_temp in
15213    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15214    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15215    \-*) ;;
15216    *) break;;
15217  esac
15218done
15219cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15220
15221
15222# GCJ did not exist at the time GCC didn't implicitly link libc in.
15223archive_cmds_need_lc_GCJ=no
15224
15225old_archive_cmds_GCJ=$old_archive_cmds
15226
15227
15228lt_prog_compiler_no_builtin_flag_GCJ=
15229
15230if test "$GCC" = yes; then
15231  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15232
15233
15234echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15235echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15236if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15237  echo $ECHO_N "(cached) $ECHO_C" >&6
15238else
15239  lt_cv_prog_compiler_rtti_exceptions=no
15240  ac_outfile=conftest.$ac_objext
15241   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15242   lt_compiler_flag="-fno-rtti -fno-exceptions"
15243   # Insert the option either (1) after the last *FLAGS variable, or
15244   # (2) before a word containing "conftest.", or (3) at the end.
15245   # Note that $ac_compile itself does not contain backslashes and begins
15246   # with a dollar sign (not a hyphen), so the echo should work correctly.
15247   # The option is referenced via a variable to avoid confusing sed.
15248   lt_compile=`echo "$ac_compile" | $SED \
15249   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15251   -e 's:$: $lt_compiler_flag:'`
15252   (eval echo "\"\$as_me:15252: $lt_compile\"" >&5)
15253   (eval "$lt_compile" 2>conftest.err)
15254   ac_status=$?
15255   cat conftest.err >&5
15256   echo "$as_me:15256: \$? = $ac_status" >&5
15257   if (exit $ac_status) && test -s "$ac_outfile"; then
15258     # The compiler can only warn and ignore the option if not recognized
15259     # So say no if there are warnings other than the usual output.
15260     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15261     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15262     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15263       lt_cv_prog_compiler_rtti_exceptions=yes
15264     fi
15265   fi
15266   $rm conftest*
15267
15268fi
15269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15270echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15271
15272if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15273    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15274else
15275    :
15276fi
15277
15278fi
15279
15280lt_prog_compiler_wl_GCJ=
15281lt_prog_compiler_pic_GCJ=
15282lt_prog_compiler_static_GCJ=
15283
15284echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15285echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15286
15287  if test "$GCC" = yes; then
15288    lt_prog_compiler_wl_GCJ='-Wl,'
15289    lt_prog_compiler_static_GCJ='-static'
15290
15291    case $host_os in
15292      aix*)
15293      # All AIX code is PIC.
15294      if test "$host_cpu" = ia64; then
15295	# AIX 5 now supports IA64 processor
15296	lt_prog_compiler_static_GCJ='-Bstatic'
15297      fi
15298      ;;
15299
15300    amigaos*)
15301      # FIXME: we need at least 68020 code to build shared libraries, but
15302      # adding the `-m68020' flag to GCC prevents building anything better,
15303      # like `-m68040'.
15304      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15305      ;;
15306
15307    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15308      # PIC is the default for these OSes.
15309      ;;
15310
15311    mingw* | pw32* | os2*)
15312      # This hack is so that the source file can tell whether it is being
15313      # built for inclusion in a dll (and should export symbols for example).
15314      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15315      ;;
15316
15317    darwin* | rhapsody*)
15318      # PIC is the default on this platform
15319      # Common symbols not allowed in MH_DYLIB files
15320      lt_prog_compiler_pic_GCJ='-fno-common'
15321      ;;
15322
15323    interix3*)
15324      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15325      # Instead, we relocate shared libraries at runtime.
15326      ;;
15327
15328    msdosdjgpp*)
15329      # Just because we use GCC doesn't mean we suddenly get shared libraries
15330      # on systems that don't support them.
15331      lt_prog_compiler_can_build_shared_GCJ=no
15332      enable_shared=no
15333      ;;
15334
15335    sysv4*MP*)
15336      if test -d /usr/nec; then
15337	lt_prog_compiler_pic_GCJ=-Kconform_pic
15338      fi
15339      ;;
15340
15341    hpux*)
15342      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15343      # not for PA HP-UX.
15344      case $host_cpu in
15345      hppa*64*|ia64*)
15346	# +Z the default
15347	;;
15348      *)
15349	lt_prog_compiler_pic_GCJ='-fPIC'
15350	;;
15351      esac
15352      ;;
15353
15354    *)
15355      lt_prog_compiler_pic_GCJ='-fPIC'
15356      ;;
15357    esac
15358  else
15359    # PORTME Check for flag to pass linker flags through the system compiler.
15360    case $host_os in
15361    aix*)
15362      lt_prog_compiler_wl_GCJ='-Wl,'
15363      if test "$host_cpu" = ia64; then
15364	# AIX 5 now supports IA64 processor
15365	lt_prog_compiler_static_GCJ='-Bstatic'
15366      else
15367	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15368      fi
15369      ;;
15370      darwin*)
15371        # PIC is the default on this platform
15372        # Common symbols not allowed in MH_DYLIB files
15373       case $cc_basename in
15374         xlc*)
15375         lt_prog_compiler_pic_GCJ='-qnocommon'
15376         lt_prog_compiler_wl_GCJ='-Wl,'
15377         ;;
15378       esac
15379       ;;
15380
15381    mingw* | pw32* | os2*)
15382      # This hack is so that the source file can tell whether it is being
15383      # built for inclusion in a dll (and should export symbols for example).
15384      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15385      ;;
15386
15387    hpux9* | hpux10* | hpux11*)
15388      lt_prog_compiler_wl_GCJ='-Wl,'
15389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15390      # not for PA HP-UX.
15391      case $host_cpu in
15392      hppa*64*|ia64*)
15393	# +Z the default
15394	;;
15395      *)
15396	lt_prog_compiler_pic_GCJ='+Z'
15397	;;
15398      esac
15399      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15400      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15401      ;;
15402
15403    irix5* | irix6* | nonstopux*)
15404      lt_prog_compiler_wl_GCJ='-Wl,'
15405      # PIC (with -KPIC) is the default.
15406      lt_prog_compiler_static_GCJ='-non_shared'
15407      ;;
15408
15409    newsos6)
15410      lt_prog_compiler_pic_GCJ='-KPIC'
15411      lt_prog_compiler_static_GCJ='-Bstatic'
15412      ;;
15413
15414    linux*)
15415      case $cc_basename in
15416      icc* | ecc*)
15417	lt_prog_compiler_wl_GCJ='-Wl,'
15418	lt_prog_compiler_pic_GCJ='-KPIC'
15419	lt_prog_compiler_static_GCJ='-static'
15420        ;;
15421      pgcc* | pgf77* | pgf90* | pgf95*)
15422        # Portland Group compilers (*not* the Pentium gcc compiler,
15423	# which looks to be a dead project)
15424	lt_prog_compiler_wl_GCJ='-Wl,'
15425	lt_prog_compiler_pic_GCJ='-fpic'
15426	lt_prog_compiler_static_GCJ='-Bstatic'
15427        ;;
15428      ccc*)
15429        lt_prog_compiler_wl_GCJ='-Wl,'
15430        # All Alpha code is PIC.
15431        lt_prog_compiler_static_GCJ='-non_shared'
15432        ;;
15433      esac
15434      ;;
15435
15436    osf3* | osf4* | osf5*)
15437      lt_prog_compiler_wl_GCJ='-Wl,'
15438      # All OSF/1 code is PIC.
15439      lt_prog_compiler_static_GCJ='-non_shared'
15440      ;;
15441
15442    solaris*)
15443      lt_prog_compiler_pic_GCJ='-KPIC'
15444      lt_prog_compiler_static_GCJ='-Bstatic'
15445      case $cc_basename in
15446      f77* | f90* | f95*)
15447	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15448      *)
15449	lt_prog_compiler_wl_GCJ='-Wl,';;
15450      esac
15451      ;;
15452
15453    sunos4*)
15454      lt_prog_compiler_wl_GCJ='-Qoption ld '
15455      lt_prog_compiler_pic_GCJ='-PIC'
15456      lt_prog_compiler_static_GCJ='-Bstatic'
15457      ;;
15458
15459    sysv4 | sysv4.2uw2* | sysv4.3*)
15460      lt_prog_compiler_wl_GCJ='-Wl,'
15461      lt_prog_compiler_pic_GCJ='-KPIC'
15462      lt_prog_compiler_static_GCJ='-Bstatic'
15463      ;;
15464
15465    sysv4*MP*)
15466      if test -d /usr/nec ;then
15467	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15468	lt_prog_compiler_static_GCJ='-Bstatic'
15469      fi
15470      ;;
15471
15472    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15473      lt_prog_compiler_wl_GCJ='-Wl,'
15474      lt_prog_compiler_pic_GCJ='-KPIC'
15475      lt_prog_compiler_static_GCJ='-Bstatic'
15476      ;;
15477
15478    unicos*)
15479      lt_prog_compiler_wl_GCJ='-Wl,'
15480      lt_prog_compiler_can_build_shared_GCJ=no
15481      ;;
15482
15483    uts4*)
15484      lt_prog_compiler_pic_GCJ='-pic'
15485      lt_prog_compiler_static_GCJ='-Bstatic'
15486      ;;
15487
15488    *)
15489      lt_prog_compiler_can_build_shared_GCJ=no
15490      ;;
15491    esac
15492  fi
15493
15494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15495echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15496
15497#
15498# Check to make sure the PIC flag actually works.
15499#
15500if test -n "$lt_prog_compiler_pic_GCJ"; then
15501
15502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15504if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15505  echo $ECHO_N "(cached) $ECHO_C" >&6
15506else
15507  lt_prog_compiler_pic_works_GCJ=no
15508  ac_outfile=conftest.$ac_objext
15509   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15511   # Insert the option either (1) after the last *FLAGS variable, or
15512   # (2) before a word containing "conftest.", or (3) at the end.
15513   # Note that $ac_compile itself does not contain backslashes and begins
15514   # with a dollar sign (not a hyphen), so the echo should work correctly.
15515   # The option is referenced via a variable to avoid confusing sed.
15516   lt_compile=`echo "$ac_compile" | $SED \
15517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519   -e 's:$: $lt_compiler_flag:'`
15520   (eval echo "\"\$as_me:15520: $lt_compile\"" >&5)
15521   (eval "$lt_compile" 2>conftest.err)
15522   ac_status=$?
15523   cat conftest.err >&5
15524   echo "$as_me:15524: \$? = $ac_status" >&5
15525   if (exit $ac_status) && test -s "$ac_outfile"; then
15526     # The compiler can only warn and ignore the option if not recognized
15527     # So say no if there are warnings other than the usual output.
15528     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15529     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15530     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15531       lt_prog_compiler_pic_works_GCJ=yes
15532     fi
15533   fi
15534   $rm conftest*
15535
15536fi
15537echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15538echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15539
15540if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15541    case $lt_prog_compiler_pic_GCJ in
15542     "" | " "*) ;;
15543     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15544     esac
15545else
15546    lt_prog_compiler_pic_GCJ=
15547     lt_prog_compiler_can_build_shared_GCJ=no
15548fi
15549
15550fi
15551case $host_os in
15552  # For platforms which do not support PIC, -DPIC is meaningless:
15553  *djgpp*)
15554    lt_prog_compiler_pic_GCJ=
15555    ;;
15556  *)
15557    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15558    ;;
15559esac
15560
15561#
15562# Check to make sure the static flag actually works.
15563#
15564wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15565echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15566echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15567if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15568  echo $ECHO_N "(cached) $ECHO_C" >&6
15569else
15570  lt_prog_compiler_static_works_GCJ=no
15571   save_LDFLAGS="$LDFLAGS"
15572   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15573   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15575     # The linker can only warn and ignore the option if not recognized
15576     # So say no if there are warnings
15577     if test -s conftest.err; then
15578       # Append any errors to the config.log.
15579       cat conftest.err 1>&5
15580       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15581       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15582       if diff conftest.exp conftest.er2 >/dev/null; then
15583         lt_prog_compiler_static_works_GCJ=yes
15584       fi
15585     else
15586       lt_prog_compiler_static_works_GCJ=yes
15587     fi
15588   fi
15589   $rm conftest*
15590   LDFLAGS="$save_LDFLAGS"
15591
15592fi
15593echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15594echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15595
15596if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15597    :
15598else
15599    lt_prog_compiler_static_GCJ=
15600fi
15601
15602
15603echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15604echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15605if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15606  echo $ECHO_N "(cached) $ECHO_C" >&6
15607else
15608  lt_cv_prog_compiler_c_o_GCJ=no
15609   $rm -r conftest 2>/dev/null
15610   mkdir conftest
15611   cd conftest
15612   mkdir out
15613   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15614
15615   lt_compiler_flag="-o out/conftest2.$ac_objext"
15616   # Insert the option either (1) after the last *FLAGS variable, or
15617   # (2) before a word containing "conftest.", or (3) at the end.
15618   # Note that $ac_compile itself does not contain backslashes and begins
15619   # with a dollar sign (not a hyphen), so the echo should work correctly.
15620   lt_compile=`echo "$ac_compile" | $SED \
15621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15623   -e 's:$: $lt_compiler_flag:'`
15624   (eval echo "\"\$as_me:15624: $lt_compile\"" >&5)
15625   (eval "$lt_compile" 2>out/conftest.err)
15626   ac_status=$?
15627   cat out/conftest.err >&5
15628   echo "$as_me:15628: \$? = $ac_status" >&5
15629   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15630   then
15631     # The compiler can only warn and ignore the option if not recognized
15632     # So say no if there are warnings
15633     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15634     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15635     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15636       lt_cv_prog_compiler_c_o_GCJ=yes
15637     fi
15638   fi
15639   chmod u+w . 2>&5
15640   $rm conftest*
15641   # SGI C++ compiler will create directory out/ii_files/ for
15642   # template instantiation
15643   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15644   $rm out/* && rmdir out
15645   cd ..
15646   rmdir conftest
15647   $rm conftest*
15648
15649fi
15650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15651echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15652
15653
15654hard_links="nottested"
15655if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15656  # do not overwrite the value of need_locks provided by the user
15657  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15658echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15659  hard_links=yes
15660  $rm conftest*
15661  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15662  touch conftest.a
15663  ln conftest.a conftest.b 2>&5 || hard_links=no
15664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15665  echo "$as_me:$LINENO: result: $hard_links" >&5
15666echo "${ECHO_T}$hard_links" >&6
15667  if test "$hard_links" = no; then
15668    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15669echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15670    need_locks=warn
15671  fi
15672else
15673  need_locks=no
15674fi
15675
15676echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15677echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15678
15679  runpath_var=
15680  allow_undefined_flag_GCJ=
15681  enable_shared_with_static_runtimes_GCJ=no
15682  archive_cmds_GCJ=
15683  archive_expsym_cmds_GCJ=
15684  old_archive_From_new_cmds_GCJ=
15685  old_archive_from_expsyms_cmds_GCJ=
15686  export_dynamic_flag_spec_GCJ=
15687  whole_archive_flag_spec_GCJ=
15688  thread_safe_flag_spec_GCJ=
15689  hardcode_libdir_flag_spec_GCJ=
15690  hardcode_libdir_flag_spec_ld_GCJ=
15691  hardcode_libdir_separator_GCJ=
15692  hardcode_direct_GCJ=no
15693  hardcode_minus_L_GCJ=no
15694  hardcode_shlibpath_var_GCJ=unsupported
15695  link_all_deplibs_GCJ=unknown
15696  hardcode_automatic_GCJ=no
15697  module_cmds_GCJ=
15698  module_expsym_cmds_GCJ=
15699  always_export_symbols_GCJ=no
15700  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15701  # include_expsyms should be a list of space-separated symbols to be *always*
15702  # included in the symbol list
15703  include_expsyms_GCJ=
15704  # exclude_expsyms can be an extended regexp of symbols to exclude
15705  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15706  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15707  # as well as any symbol that contains `d'.
15708  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15709  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15710  # platforms (ab)use it in PIC code, but their linkers get confused if
15711  # the symbol is explicitly referenced.  Since portable code cannot
15712  # rely on this symbol name, it's probably fine to never include it in
15713  # preloaded symbol tables.
15714  extract_expsyms_cmds=
15715  # Just being paranoid about ensuring that cc_basename is set.
15716  for cc_temp in $compiler""; do
15717  case $cc_temp in
15718    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15719    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15720    \-*) ;;
15721    *) break;;
15722  esac
15723done
15724cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15725
15726  case $host_os in
15727  cygwin* | mingw* | pw32*)
15728    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15729    # When not using gcc, we currently assume that we are using
15730    # Microsoft Visual C++.
15731    if test "$GCC" != yes; then
15732      with_gnu_ld=no
15733    fi
15734    ;;
15735  interix*)
15736    # we just hope/assume this is gcc and not c89 (= MSVC++)
15737    with_gnu_ld=yes
15738    ;;
15739  openbsd*)
15740    with_gnu_ld=no
15741    ;;
15742  esac
15743
15744  ld_shlibs_GCJ=yes
15745  if test "$with_gnu_ld" = yes; then
15746    # If archive_cmds runs LD, not CC, wlarc should be empty
15747    wlarc='${wl}'
15748
15749    # Set some defaults for GNU ld with shared library support. These
15750    # are reset later if shared libraries are not supported. Putting them
15751    # here allows them to be overridden if necessary.
15752    runpath_var=LD_RUN_PATH
15753    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15754    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15755    # ancient GNU ld didn't support --whole-archive et. al.
15756    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15757	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15758      else
15759  	whole_archive_flag_spec_GCJ=
15760    fi
15761    supports_anon_versioning=no
15762    case `$LD -v 2>/dev/null` in
15763      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15764      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15765      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15766      *\ 2.11.*) ;; # other 2.11 versions
15767      *) supports_anon_versioning=yes ;;
15768    esac
15769
15770    # See if GNU ld supports shared libraries.
15771    case $host_os in
15772    aix3* | aix4* | aix5*)
15773      # On AIX/PPC, the GNU linker is very broken
15774      if test "$host_cpu" != ia64; then
15775	ld_shlibs_GCJ=no
15776	cat <<EOF 1>&2
15777
15778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15779*** to be unable to reliably create shared libraries on AIX.
15780*** Therefore, libtool is disabling shared libraries support.  If you
15781*** really care for shared libraries, you may want to modify your PATH
15782*** so that a non-GNU linker is found, and then restart.
15783
15784EOF
15785      fi
15786      ;;
15787
15788    amigaos*)
15789      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)'
15790      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791      hardcode_minus_L_GCJ=yes
15792
15793      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15794      # that the semantics of dynamic libraries on AmigaOS, at least up
15795      # to version 4, is to share data among multiple programs linked
15796      # with the same dynamic library.  Since this doesn't match the
15797      # behavior of shared libraries on other platforms, we can't use
15798      # them.
15799      ld_shlibs_GCJ=no
15800      ;;
15801
15802    beos*)
15803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15804	allow_undefined_flag_GCJ=unsupported
15805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15806	# support --undefined.  This deserves some investigation.  FIXME
15807	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15808      else
15809	ld_shlibs_GCJ=no
15810      fi
15811      ;;
15812
15813    cygwin* | mingw* | pw32*)
15814      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15815      # as there is no search path for DLLs.
15816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15817      allow_undefined_flag_GCJ=unsupported
15818      always_export_symbols_GCJ=no
15819      enable_shared_with_static_runtimes_GCJ=yes
15820      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15821
15822      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15823        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15824	# If the export-symbols file already is a .def file (1st line
15825	# is EXPORTS), use it as is; otherwise, prepend...
15826	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15827	  cp $export_symbols $output_objdir/$soname.def;
15828	else
15829	  echo EXPORTS > $output_objdir/$soname.def;
15830	  cat $export_symbols >> $output_objdir/$soname.def;
15831	fi~
15832	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15833      else
15834	ld_shlibs_GCJ=no
15835      fi
15836      ;;
15837
15838    interix3*)
15839      hardcode_direct_GCJ=no
15840      hardcode_shlibpath_var_GCJ=no
15841      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15842      export_dynamic_flag_spec_GCJ='${wl}-E'
15843      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15844      # Instead, shared libraries are loaded at an image base (0x10000000 by
15845      # default) and relocated if they conflict, which is a slow very memory
15846      # consuming and fragmenting process.  To avoid this, we pick a random,
15847      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15848      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15849      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15850      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15851      ;;
15852
15853    linux*)
15854      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855	tmp_addflag=
15856	case $cc_basename,$host_cpu in
15857	pgcc*)				# Portland Group C compiler
15858	  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'
15859	  tmp_addflag=' $pic_flag'
15860	  ;;
15861	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15862	  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'
15863	  tmp_addflag=' $pic_flag -Mnomain' ;;
15864	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15865	  tmp_addflag=' -i_dynamic' ;;
15866	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15867	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15868	ifc* | ifort*)			# Intel Fortran compiler
15869	  tmp_addflag=' -nofor_main' ;;
15870	esac
15871	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872
15873	if test $supports_anon_versioning = yes; then
15874	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15875  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15876  $echo "local: *; };" >> $output_objdir/$libname.ver~
15877	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15878	fi
15879      else
15880	ld_shlibs_GCJ=no
15881      fi
15882      ;;
15883
15884    netbsd*)
15885      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15886	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15887	wlarc=
15888      else
15889	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15890	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15891      fi
15892      ;;
15893
15894    solaris*)
15895      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15896	ld_shlibs_GCJ=no
15897	cat <<EOF 1>&2
15898
15899*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15900*** create shared libraries on Solaris systems.  Therefore, libtool
15901*** is disabling shared libraries support.  We urge you to upgrade GNU
15902*** binutils to release 2.9.1 or newer.  Another option is to modify
15903*** your PATH or compiler configuration so that the native linker is
15904*** used, and then restart.
15905
15906EOF
15907      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15908	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15909	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15910      else
15911	ld_shlibs_GCJ=no
15912      fi
15913      ;;
15914
15915    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15916      case `$LD -v 2>&1` in
15917        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15918	ld_shlibs_GCJ=no
15919	cat <<_LT_EOF 1>&2
15920
15921*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15922*** reliably create shared libraries on SCO systems.  Therefore, libtool
15923*** is disabling shared libraries support.  We urge you to upgrade GNU
15924*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15925*** your PATH or compiler configuration so that the native linker is
15926*** used, and then restart.
15927
15928_LT_EOF
15929	;;
15930	*)
15931	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15932	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15933	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15934	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15935	  else
15936	    ld_shlibs_GCJ=no
15937	  fi
15938	;;
15939      esac
15940      ;;
15941
15942    sunos4*)
15943      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15944      wlarc=
15945      hardcode_direct_GCJ=yes
15946      hardcode_shlibpath_var_GCJ=no
15947      ;;
15948
15949    *)
15950      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15953      else
15954	ld_shlibs_GCJ=no
15955      fi
15956      ;;
15957    esac
15958
15959    if test "$ld_shlibs_GCJ" = no; then
15960      runpath_var=
15961      hardcode_libdir_flag_spec_GCJ=
15962      export_dynamic_flag_spec_GCJ=
15963      whole_archive_flag_spec_GCJ=
15964    fi
15965  else
15966    # PORTME fill in a description of your system's linker (not GNU ld)
15967    case $host_os in
15968    aix3*)
15969      allow_undefined_flag_GCJ=unsupported
15970      always_export_symbols_GCJ=yes
15971      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'
15972      # Note: this linker hardcodes the directories in LIBPATH if there
15973      # are no directories specified by -L.
15974      hardcode_minus_L_GCJ=yes
15975      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15976	# Neither direct hardcoding nor static linking is supported with a
15977	# broken collect2.
15978	hardcode_direct_GCJ=unsupported
15979      fi
15980      ;;
15981
15982    aix4* | aix5*)
15983      if test "$host_cpu" = ia64; then
15984	# On IA64, the linker does run time linking by default, so we don't
15985	# have to do anything special.
15986	aix_use_runtimelinking=no
15987	exp_sym_flag='-Bexport'
15988	no_entry_flag=""
15989      else
15990	# If we're using GNU nm, then we don't want the "-C" option.
15991	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15992	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15993	  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'
15994	else
15995	  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'
15996	fi
15997	aix_use_runtimelinking=no
15998
15999	# Test if we are trying to use run time linking or normal
16000	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16001	# need to do runtime linking.
16002	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16003	  for ld_flag in $LDFLAGS; do
16004  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16005  	    aix_use_runtimelinking=yes
16006  	    break
16007  	  fi
16008	  done
16009	  ;;
16010	esac
16011
16012	exp_sym_flag='-bexport'
16013	no_entry_flag='-bnoentry'
16014      fi
16015
16016      # When large executables or shared objects are built, AIX ld can
16017      # have problems creating the table of contents.  If linking a library
16018      # or program results in "error TOC overflow" add -mminimal-toc to
16019      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16020      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16021
16022      archive_cmds_GCJ=''
16023      hardcode_direct_GCJ=yes
16024      hardcode_libdir_separator_GCJ=':'
16025      link_all_deplibs_GCJ=yes
16026
16027      if test "$GCC" = yes; then
16028	case $host_os in aix4.[012]|aix4.[012].*)
16029	# We only want to do this on AIX 4.2 and lower, the check
16030	# below for broken collect2 doesn't work under 4.3+
16031	  collect2name=`${CC} -print-prog-name=collect2`
16032	  if test -f "$collect2name" && \
16033  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16034	  then
16035  	  # We have reworked collect2
16036  	  hardcode_direct_GCJ=yes
16037	  else
16038  	  # We have old collect2
16039  	  hardcode_direct_GCJ=unsupported
16040  	  # It fails to find uninstalled libraries when the uninstalled
16041  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16042  	  # to unsupported forces relinking
16043  	  hardcode_minus_L_GCJ=yes
16044  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16045  	  hardcode_libdir_separator_GCJ=
16046	  fi
16047	  ;;
16048	esac
16049	shared_flag='-shared'
16050	if test "$aix_use_runtimelinking" = yes; then
16051	  shared_flag="$shared_flag "'${wl}-G'
16052	fi
16053      else
16054	# not using gcc
16055	if test "$host_cpu" = ia64; then
16056  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16057  	# chokes on -Wl,-G. The following line is correct:
16058	  shared_flag='-G'
16059	else
16060	  if test "$aix_use_runtimelinking" = yes; then
16061	    shared_flag='${wl}-G'
16062	  else
16063	    shared_flag='${wl}-bM:SRE'
16064	  fi
16065	fi
16066      fi
16067
16068      # It seems that -bexpall does not export symbols beginning with
16069      # underscore (_), so it is better to generate a list of symbols to export.
16070      always_export_symbols_GCJ=yes
16071      if test "$aix_use_runtimelinking" = yes; then
16072	# Warning - without using the other runtime loading flags (-brtl),
16073	# -berok will link without error, but may produce a broken library.
16074	allow_undefined_flag_GCJ='-berok'
16075       # Determine the default libpath from the value encoded in an empty executable.
16076       cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h.  */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h.  */
16082
16083int
16084main ()
16085{
16086
16087  ;
16088  return 0;
16089}
16090_ACEOF
16091rm -f conftest.$ac_objext conftest$ac_exeext
16092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16093  (eval $ac_link) 2>conftest.er1
16094  ac_status=$?
16095  grep -v '^ *+' conftest.er1 >conftest.err
16096  rm -f conftest.er1
16097  cat conftest.err >&5
16098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099  (exit $ac_status); } &&
16100	 { ac_try='test -z "$ac_c_werror_flag"
16101			 || test ! -s conftest.err'
16102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103  (eval $ac_try) 2>&5
16104  ac_status=$?
16105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106  (exit $ac_status); }; } &&
16107	 { ac_try='test -s conftest$ac_exeext'
16108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109  (eval $ac_try) 2>&5
16110  ac_status=$?
16111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112  (exit $ac_status); }; }; then
16113
16114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16115}'`
16116# Check for a 64-bit object if we didn't find anything.
16117if 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; }
16118}'`; fi
16119else
16120  echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
16123fi
16124rm -f conftest.err conftest.$ac_objext \
16125      conftest$ac_exeext conftest.$ac_ext
16126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16127
16128       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16129	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16130       else
16131	if test "$host_cpu" = ia64; then
16132	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16133	  allow_undefined_flag_GCJ="-z nodefs"
16134	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16135	else
16136	 # Determine the default libpath from the value encoded in an empty executable.
16137	 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h.  */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h.  */
16143
16144int
16145main ()
16146{
16147
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152rm -f conftest.$ac_objext conftest$ac_exeext
16153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16154  (eval $ac_link) 2>conftest.er1
16155  ac_status=$?
16156  grep -v '^ *+' conftest.er1 >conftest.err
16157  rm -f conftest.er1
16158  cat conftest.err >&5
16159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160  (exit $ac_status); } &&
16161	 { ac_try='test -z "$ac_c_werror_flag"
16162			 || test ! -s conftest.err'
16163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164  (eval $ac_try) 2>&5
16165  ac_status=$?
16166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167  (exit $ac_status); }; } &&
16168	 { ac_try='test -s conftest$ac_exeext'
16169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170  (eval $ac_try) 2>&5
16171  ac_status=$?
16172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173  (exit $ac_status); }; }; then
16174
16175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16176}'`
16177# Check for a 64-bit object if we didn't find anything.
16178if 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; }
16179}'`; fi
16180else
16181  echo "$as_me: failed program was:" >&5
16182sed 's/^/| /' conftest.$ac_ext >&5
16183
16184fi
16185rm -f conftest.err conftest.$ac_objext \
16186      conftest$ac_exeext conftest.$ac_ext
16187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16188
16189	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16190	  # Warning - without using the other run time loading flags,
16191	  # -berok will link without error, but may produce a broken library.
16192	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16193	  allow_undefined_flag_GCJ=' ${wl}-berok'
16194	  # Exported symbols can be pulled into shared objects from archives
16195	  whole_archive_flag_spec_GCJ='$convenience'
16196	  archive_cmds_need_lc_GCJ=yes
16197	  # This is similar to how AIX traditionally builds its shared libraries.
16198	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16199	fi
16200      fi
16201      ;;
16202
16203    amigaos*)
16204      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)'
16205      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206      hardcode_minus_L_GCJ=yes
16207      # see comment about different semantics on the GNU ld section
16208      ld_shlibs_GCJ=no
16209      ;;
16210
16211    bsdi[45]*)
16212      export_dynamic_flag_spec_GCJ=-rdynamic
16213      ;;
16214
16215    cygwin* | mingw* | pw32*)
16216      # When not using gcc, we currently assume that we are using
16217      # Microsoft Visual C++.
16218      # hardcode_libdir_flag_spec is actually meaningless, as there is
16219      # no search path for DLLs.
16220      hardcode_libdir_flag_spec_GCJ=' '
16221      allow_undefined_flag_GCJ=unsupported
16222      # Tell ltmain to make .lib files, not .a files.
16223      libext=lib
16224      # Tell ltmain to make .dll files, not .so files.
16225      shrext_cmds=".dll"
16226      # FIXME: Setting linknames here is a bad hack.
16227      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16228      # The linker will automatically build a .lib file if we build a DLL.
16229      old_archive_From_new_cmds_GCJ='true'
16230      # FIXME: Should let the user specify the lib program.
16231      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16232      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16233      enable_shared_with_static_runtimes_GCJ=yes
16234      ;;
16235
16236    darwin* | rhapsody*)
16237      case $host_os in
16238        rhapsody* | darwin1.[012])
16239         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16240         ;;
16241       *) # Darwin 1.3 on
16242         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16243           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16244         else
16245           case ${MACOSX_DEPLOYMENT_TARGET} in
16246             10.[012])
16247               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16248               ;;
16249             10.*)
16250               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16251               ;;
16252           esac
16253         fi
16254         ;;
16255      esac
16256      archive_cmds_need_lc_GCJ=no
16257      hardcode_direct_GCJ=no
16258      hardcode_automatic_GCJ=yes
16259      hardcode_shlibpath_var_GCJ=unsupported
16260      whole_archive_flag_spec_GCJ=''
16261      link_all_deplibs_GCJ=yes
16262    if test "$GCC" = yes ; then
16263    	output_verbose_link_cmd='echo'
16264        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16265      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16266      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16267      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}'
16268      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}'
16269    else
16270      case $cc_basename in
16271        xlc*)
16272         output_verbose_link_cmd='echo'
16273         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16274         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16275          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16276         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}'
16277          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}'
16278          ;;
16279       *)
16280         ld_shlibs_GCJ=no
16281          ;;
16282      esac
16283    fi
16284      ;;
16285
16286    dgux*)
16287      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16289      hardcode_shlibpath_var_GCJ=no
16290      ;;
16291
16292    freebsd1*)
16293      ld_shlibs_GCJ=no
16294      ;;
16295
16296    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16297    # support.  Future versions do this automatically, but an explicit c++rt0.o
16298    # does not break anything, and helps significantly (at the cost of a little
16299    # extra space).
16300    freebsd2.2*)
16301      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16302      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16303      hardcode_direct_GCJ=yes
16304      hardcode_shlibpath_var_GCJ=no
16305      ;;
16306
16307    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16308    freebsd2*)
16309      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16310      hardcode_direct_GCJ=yes
16311      hardcode_minus_L_GCJ=yes
16312      hardcode_shlibpath_var_GCJ=no
16313      ;;
16314
16315    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16316    freebsd* | kfreebsd*-gnu | dragonfly*)
16317      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16318      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16319      hardcode_direct_GCJ=yes
16320      hardcode_shlibpath_var_GCJ=no
16321      ;;
16322
16323    hpux9*)
16324      if test "$GCC" = yes; then
16325	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'
16326      else
16327	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'
16328      fi
16329      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16330      hardcode_libdir_separator_GCJ=:
16331      hardcode_direct_GCJ=yes
16332
16333      # hardcode_minus_L: Not really in the search PATH,
16334      # but as the default location of the library.
16335      hardcode_minus_L_GCJ=yes
16336      export_dynamic_flag_spec_GCJ='${wl}-E'
16337      ;;
16338
16339    hpux10*)
16340      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16341	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16342      else
16343	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16344      fi
16345      if test "$with_gnu_ld" = no; then
16346	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16347	hardcode_libdir_separator_GCJ=:
16348
16349	hardcode_direct_GCJ=yes
16350	export_dynamic_flag_spec_GCJ='${wl}-E'
16351
16352	# hardcode_minus_L: Not really in the search PATH,
16353	# but as the default location of the library.
16354	hardcode_minus_L_GCJ=yes
16355      fi
16356      ;;
16357
16358    hpux11*)
16359      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16360	case $host_cpu in
16361	hppa*64*)
16362	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16363	  ;;
16364	ia64*)
16365	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16366	  ;;
16367	*)
16368	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16369	  ;;
16370	esac
16371      else
16372	case $host_cpu in
16373	hppa*64*)
16374	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16375	  ;;
16376	ia64*)
16377	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16378	  ;;
16379	*)
16380	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16381	  ;;
16382	esac
16383      fi
16384      if test "$with_gnu_ld" = no; then
16385	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16386	hardcode_libdir_separator_GCJ=:
16387
16388	case $host_cpu in
16389	hppa*64*|ia64*)
16390	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16391	  hardcode_direct_GCJ=no
16392	  hardcode_shlibpath_var_GCJ=no
16393	  ;;
16394	*)
16395	  hardcode_direct_GCJ=yes
16396	  export_dynamic_flag_spec_GCJ='${wl}-E'
16397
16398	  # hardcode_minus_L: Not really in the search PATH,
16399	  # but as the default location of the library.
16400	  hardcode_minus_L_GCJ=yes
16401	  ;;
16402	esac
16403      fi
16404      ;;
16405
16406    irix5* | irix6* | nonstopux*)
16407      if test "$GCC" = yes; then
16408	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'
16409      else
16410	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'
16411	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16412      fi
16413      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16414      hardcode_libdir_separator_GCJ=:
16415      link_all_deplibs_GCJ=yes
16416      ;;
16417
16418    netbsd*)
16419      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16420	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16421      else
16422	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16423      fi
16424      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16425      hardcode_direct_GCJ=yes
16426      hardcode_shlibpath_var_GCJ=no
16427      ;;
16428
16429    newsos6)
16430      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431      hardcode_direct_GCJ=yes
16432      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16433      hardcode_libdir_separator_GCJ=:
16434      hardcode_shlibpath_var_GCJ=no
16435      ;;
16436
16437    openbsd*)
16438      hardcode_direct_GCJ=yes
16439      hardcode_shlibpath_var_GCJ=no
16440      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16441	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16442	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16443	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16444	export_dynamic_flag_spec_GCJ='${wl}-E'
16445      else
16446       case $host_os in
16447	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16448	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16449	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16450	   ;;
16451	 *)
16452	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16453	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16454	   ;;
16455       esac
16456      fi
16457      ;;
16458
16459    os2*)
16460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16461      hardcode_minus_L_GCJ=yes
16462      allow_undefined_flag_GCJ=unsupported
16463      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'
16464      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16465      ;;
16466
16467    osf3*)
16468      if test "$GCC" = yes; then
16469	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16470	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'
16471      else
16472	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16473	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'
16474      fi
16475      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16476      hardcode_libdir_separator_GCJ=:
16477      ;;
16478
16479    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16480      if test "$GCC" = yes; then
16481	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16482	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'
16483	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16484      else
16485	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16486	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'
16487	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~
16488	$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'
16489
16490	# Both c and cxx compiler support -rpath directly
16491	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16492      fi
16493      hardcode_libdir_separator_GCJ=:
16494      ;;
16495
16496    solaris*)
16497      no_undefined_flag_GCJ=' -z text'
16498      if test "$GCC" = yes; then
16499	wlarc='${wl}'
16500	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16501	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16502	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16503      else
16504	wlarc=''
16505	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16507  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16508      fi
16509      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16510      hardcode_shlibpath_var_GCJ=no
16511      case $host_os in
16512      solaris2.[0-5] | solaris2.[0-5].*) ;;
16513      *)
16514 	# The compiler driver will combine linker options so we
16515 	# cannot just pass the convience library names through
16516 	# without $wl, iff we do not link with $LD.
16517 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16518 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16519 	case $wlarc in
16520 	'')
16521 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16522 	*)
16523 	  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' ;;
16524 	esac ;;
16525      esac
16526      link_all_deplibs_GCJ=yes
16527      ;;
16528
16529    sunos4*)
16530      if test "x$host_vendor" = xsequent; then
16531	# Use $CC to link under sequent, because it throws in some extra .o
16532	# files that make .init and .fini sections work.
16533	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16534      else
16535	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16536      fi
16537      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16538      hardcode_direct_GCJ=yes
16539      hardcode_minus_L_GCJ=yes
16540      hardcode_shlibpath_var_GCJ=no
16541      ;;
16542
16543    sysv4)
16544      case $host_vendor in
16545	sni)
16546	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547	  hardcode_direct_GCJ=yes # is this really true???
16548	;;
16549	siemens)
16550	  ## LD is ld it makes a PLAMLIB
16551	  ## CC just makes a GrossModule.
16552	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16553	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16554	  hardcode_direct_GCJ=no
16555        ;;
16556	motorola)
16557	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16558	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16559	;;
16560      esac
16561      runpath_var='LD_RUN_PATH'
16562      hardcode_shlibpath_var_GCJ=no
16563      ;;
16564
16565    sysv4.3*)
16566      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567      hardcode_shlibpath_var_GCJ=no
16568      export_dynamic_flag_spec_GCJ='-Bexport'
16569      ;;
16570
16571    sysv4*MP*)
16572      if test -d /usr/nec; then
16573	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574	hardcode_shlibpath_var_GCJ=no
16575	runpath_var=LD_RUN_PATH
16576	hardcode_runpath_var=yes
16577	ld_shlibs_GCJ=yes
16578      fi
16579      ;;
16580
16581    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16582      no_undefined_flag_GCJ='${wl}-z,text'
16583      archive_cmds_need_lc_GCJ=no
16584      hardcode_shlibpath_var_GCJ=no
16585      runpath_var='LD_RUN_PATH'
16586
16587      if test "$GCC" = yes; then
16588	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16589	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590      else
16591	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593      fi
16594      ;;
16595
16596    sysv5* | sco3.2v5* | sco5v6*)
16597      # Note: We can NOT use -z defs as we might desire, because we do not
16598      # link with -lc, and that would cause any symbols used from libc to
16599      # always be unresolved, which means just about no library would
16600      # ever link correctly.  If we're not using GNU ld we use -z text
16601      # though, which does catch some bad symbols but isn't as heavy-handed
16602      # as -z defs.
16603      no_undefined_flag_GCJ='${wl}-z,text'
16604      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16605      archive_cmds_need_lc_GCJ=no
16606      hardcode_shlibpath_var_GCJ=no
16607      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16608      hardcode_libdir_separator_GCJ=':'
16609      link_all_deplibs_GCJ=yes
16610      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16611      runpath_var='LD_RUN_PATH'
16612
16613      if test "$GCC" = yes; then
16614	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616      else
16617	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16618	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619      fi
16620      ;;
16621
16622    uts4*)
16623      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16625      hardcode_shlibpath_var_GCJ=no
16626      ;;
16627
16628    *)
16629      ld_shlibs_GCJ=no
16630      ;;
16631    esac
16632  fi
16633
16634echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16635echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16636test "$ld_shlibs_GCJ" = no && can_build_shared=no
16637
16638#
16639# Do we need to explicitly link libc?
16640#
16641case "x$archive_cmds_need_lc_GCJ" in
16642x|xyes)
16643  # Assume -lc should be added
16644  archive_cmds_need_lc_GCJ=yes
16645
16646  if test "$enable_shared" = yes && test "$GCC" = yes; then
16647    case $archive_cmds_GCJ in
16648    *'~'*)
16649      # FIXME: we may have to deal with multi-command sequences.
16650      ;;
16651    '$CC '*)
16652      # Test whether the compiler implicitly links with -lc since on some
16653      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16654      # to ld, don't add -lc before -lgcc.
16655      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16656echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16657      $rm conftest*
16658      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16659
16660      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661  (eval $ac_compile) 2>&5
16662  ac_status=$?
16663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664  (exit $ac_status); } 2>conftest.err; then
16665        soname=conftest
16666        lib=conftest
16667        libobjs=conftest.$ac_objext
16668        deplibs=
16669        wl=$lt_prog_compiler_wl_GCJ
16670	pic_flag=$lt_prog_compiler_pic_GCJ
16671        compiler_flags=-v
16672        linker_flags=-v
16673        verstring=
16674        output_objdir=.
16675        libname=conftest
16676        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16677        allow_undefined_flag_GCJ=
16678        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16679  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16680  ac_status=$?
16681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682  (exit $ac_status); }
16683        then
16684	  archive_cmds_need_lc_GCJ=no
16685        else
16686	  archive_cmds_need_lc_GCJ=yes
16687        fi
16688        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16689      else
16690        cat conftest.err 1>&5
16691      fi
16692      $rm conftest*
16693      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16694echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16695      ;;
16696    esac
16697  fi
16698  ;;
16699esac
16700
16701echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16702echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16703library_names_spec=
16704libname_spec='lib$name'
16705soname_spec=
16706shrext_cmds=".so"
16707postinstall_cmds=
16708postuninstall_cmds=
16709finish_cmds=
16710finish_eval=
16711shlibpath_var=
16712shlibpath_overrides_runpath=unknown
16713version_type=none
16714dynamic_linker="$host_os ld.so"
16715sys_lib_dlsearch_path_spec="/lib /usr/lib"
16716if test "$GCC" = yes; then
16717  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16718  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16719    # if the path contains ";" then we assume it to be the separator
16720    # otherwise default to the standard path separator (i.e. ":") - it is
16721    # assumed that no part of a normal pathname contains ";" but that should
16722    # okay in the real world where ";" in dirpaths is itself problematic.
16723    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16724  else
16725    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16726  fi
16727else
16728  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16729fi
16730need_lib_prefix=unknown
16731hardcode_into_libs=no
16732
16733# when you set need_version to no, make sure it does not cause -set_version
16734# flags to be left without arguments
16735need_version=unknown
16736
16737case $host_os in
16738aix3*)
16739  version_type=linux
16740  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16741  shlibpath_var=LIBPATH
16742
16743  # AIX 3 has no versioning support, so we append a major version to the name.
16744  soname_spec='${libname}${release}${shared_ext}$major'
16745  ;;
16746
16747aix4* | aix5*)
16748  version_type=linux
16749  need_lib_prefix=no
16750  need_version=no
16751  hardcode_into_libs=yes
16752  if test "$host_cpu" = ia64; then
16753    # AIX 5 supports IA64
16754    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16755    shlibpath_var=LD_LIBRARY_PATH
16756  else
16757    # With GCC up to 2.95.x, collect2 would create an import file
16758    # for dependence libraries.  The import file would start with
16759    # the line `#! .'.  This would cause the generated library to
16760    # depend on `.', always an invalid library.  This was fixed in
16761    # development snapshots of GCC prior to 3.0.
16762    case $host_os in
16763      aix4 | aix4.[01] | aix4.[01].*)
16764      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16765	   echo ' yes '
16766	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16767	:
16768      else
16769	can_build_shared=no
16770      fi
16771      ;;
16772    esac
16773    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16774    # soname into executable. Probably we can add versioning support to
16775    # collect2, so additional links can be useful in future.
16776    if test "$aix_use_runtimelinking" = yes; then
16777      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16778      # instead of lib<name>.a to let people know that these are not
16779      # typical AIX shared libraries.
16780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781    else
16782      # We preserve .a as extension for shared libraries through AIX4.2
16783      # and later when we are not doing run time linking.
16784      library_names_spec='${libname}${release}.a $libname.a'
16785      soname_spec='${libname}${release}${shared_ext}$major'
16786    fi
16787    shlibpath_var=LIBPATH
16788  fi
16789  ;;
16790
16791amigaos*)
16792  library_names_spec='$libname.ixlibrary $libname.a'
16793  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16794  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'
16795  ;;
16796
16797beos*)
16798  library_names_spec='${libname}${shared_ext}'
16799  dynamic_linker="$host_os ld.so"
16800  shlibpath_var=LIBRARY_PATH
16801  ;;
16802
16803bsdi[45]*)
16804  version_type=linux
16805  need_version=no
16806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807  soname_spec='${libname}${release}${shared_ext}$major'
16808  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16809  shlibpath_var=LD_LIBRARY_PATH
16810  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16811  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16812  # the default ld.so.conf also contains /usr/contrib/lib and
16813  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16814  # libtool to hard-code these into programs
16815  ;;
16816
16817cygwin* | mingw* | pw32*)
16818  version_type=windows
16819  shrext_cmds=".dll"
16820  need_version=no
16821  need_lib_prefix=no
16822
16823  case $GCC,$host_os in
16824  yes,cygwin* | yes,mingw* | yes,pw32*)
16825    library_names_spec='$libname.dll.a'
16826    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16827    postinstall_cmds='base_file=`basename \${file}`~
16828      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16829      dldir=$destdir/`dirname \$dlpath`~
16830      test -d \$dldir || mkdir -p \$dldir~
16831      $install_prog $dir/$dlname \$dldir/$dlname~
16832      chmod a+x \$dldir/$dlname'
16833    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16834      dlpath=$dir/\$dldll~
16835       $rm \$dlpath'
16836    shlibpath_overrides_runpath=yes
16837
16838    case $host_os in
16839    cygwin*)
16840      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16841      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16842      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16843      ;;
16844    mingw*)
16845      # MinGW DLLs use traditional 'lib' prefix
16846      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16847      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16848      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16849        # It is most probably a Windows format PATH printed by
16850        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16851        # path with ; separators, and with drive letters. We can handle the
16852        # drive letters (cygwin fileutils understands them), so leave them,
16853        # especially as we might pass files found there to a mingw objdump,
16854        # which wouldn't understand a cygwinified path. Ahh.
16855        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16856      else
16857        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16858      fi
16859      ;;
16860    pw32*)
16861      # pw32 DLLs use 'pw' prefix rather than 'lib'
16862      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16863      ;;
16864    esac
16865    ;;
16866
16867  linux*)
16868    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16869      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16870      supports_anon_versioning=no
16871      case `$LD -v 2>/dev/null` in
16872        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16873        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16874        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16875        *\ 2.11.*) ;; # other 2.11 versions
16876        *) supports_anon_versioning=yes ;;
16877      esac
16878      if test $supports_anon_versioning = yes; then
16879        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16880cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16881$echo "local: *; };" >> $output_objdir/$libname.ver~
16882        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16883      else
16884        $archive_expsym_cmds="$archive_cmds"
16885      fi
16886    else
16887      ld_shlibs=no
16888    fi
16889    ;;
16890
16891  *)
16892    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16893    ;;
16894  esac
16895  dynamic_linker='Win32 ld.exe'
16896  # FIXME: first we should search . and the directory the executable is in
16897  shlibpath_var=PATH
16898  ;;
16899
16900darwin* | rhapsody*)
16901  dynamic_linker="$host_os dyld"
16902  version_type=darwin
16903  need_lib_prefix=no
16904  need_version=no
16905  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16906  soname_spec='${libname}${release}${major}$shared_ext'
16907  shlibpath_overrides_runpath=yes
16908  shlibpath_var=DYLD_LIBRARY_PATH
16909  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16910  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16911  if test "$GCC" = yes; then
16912    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"`
16913  else
16914    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16915  fi
16916  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16917  ;;
16918
16919dgux*)
16920  version_type=linux
16921  need_lib_prefix=no
16922  need_version=no
16923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16924  soname_spec='${libname}${release}${shared_ext}$major'
16925  shlibpath_var=LD_LIBRARY_PATH
16926  ;;
16927
16928freebsd1*)
16929  dynamic_linker=no
16930  ;;
16931
16932kfreebsd*-gnu)
16933  version_type=linux
16934  need_lib_prefix=no
16935  need_version=no
16936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16937  soname_spec='${libname}${release}${shared_ext}$major'
16938  shlibpath_var=LD_LIBRARY_PATH
16939  shlibpath_overrides_runpath=no
16940  hardcode_into_libs=yes
16941  dynamic_linker='GNU ld.so'
16942  ;;
16943
16944freebsd* | dragonfly*)
16945  # DragonFly does not have aout.  When/if they implement a new
16946  # versioning mechanism, adjust this.
16947  if test -x /usr/bin/objformat; then
16948    objformat=`/usr/bin/objformat`
16949  else
16950    case $host_os in
16951    freebsd[123]*) objformat=aout ;;
16952    *) objformat=elf ;;
16953    esac
16954  fi
16955  # Handle Gentoo/FreeBSD as it was Linux
16956  case $host_vendor in
16957    gentoo)
16958      version_type=linux ;;
16959    *)
16960      version_type=freebsd-$objformat ;;
16961  esac
16962
16963  case $version_type in
16964    freebsd-elf*)
16965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16966      need_version=no
16967      need_lib_prefix=no
16968      ;;
16969    freebsd-*)
16970      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16971      need_version=yes
16972      ;;
16973    linux)
16974      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16975      soname_spec='${libname}${release}${shared_ext}$major'
16976      need_lib_prefix=no
16977      need_version=no
16978      ;;
16979  esac
16980  shlibpath_var=LD_LIBRARY_PATH
16981  case $host_os in
16982  freebsd2*)
16983    shlibpath_overrides_runpath=yes
16984    ;;
16985  freebsd3.[01]* | freebsdelf3.[01]*)
16986    shlibpath_overrides_runpath=yes
16987    hardcode_into_libs=yes
16988    ;;
16989  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16990  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16991    shlibpath_overrides_runpath=no
16992    hardcode_into_libs=yes
16993    ;;
16994  freebsd*) # from 4.6 on
16995    shlibpath_overrides_runpath=yes
16996    hardcode_into_libs=yes
16997    ;;
16998  esac
16999  ;;
17000
17001gnu*)
17002  version_type=linux
17003  need_lib_prefix=no
17004  need_version=no
17005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17006  soname_spec='${libname}${release}${shared_ext}$major'
17007  shlibpath_var=LD_LIBRARY_PATH
17008  hardcode_into_libs=yes
17009  ;;
17010
17011hpux9* | hpux10* | hpux11*)
17012  # Give a soname corresponding to the major version so that dld.sl refuses to
17013  # link against other versions.
17014  version_type=sunos
17015  need_lib_prefix=no
17016  need_version=no
17017  case $host_cpu in
17018  ia64*)
17019    shrext_cmds='.so'
17020    hardcode_into_libs=yes
17021    dynamic_linker="$host_os dld.so"
17022    shlibpath_var=LD_LIBRARY_PATH
17023    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025    soname_spec='${libname}${release}${shared_ext}$major'
17026    if test "X$HPUX_IA64_MODE" = X32; then
17027      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17028    else
17029      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17030    fi
17031    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032    ;;
17033   hppa*64*)
17034     shrext_cmds='.sl'
17035     hardcode_into_libs=yes
17036     dynamic_linker="$host_os dld.sl"
17037     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17038     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040     soname_spec='${libname}${release}${shared_ext}$major'
17041     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17043     ;;
17044   *)
17045    shrext_cmds='.sl'
17046    dynamic_linker="$host_os dld.sl"
17047    shlibpath_var=SHLIB_PATH
17048    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050    soname_spec='${libname}${release}${shared_ext}$major'
17051    ;;
17052  esac
17053  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17054  postinstall_cmds='chmod 555 $lib'
17055  ;;
17056
17057interix3*)
17058  version_type=linux
17059  need_lib_prefix=no
17060  need_version=no
17061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17062  soname_spec='${libname}${release}${shared_ext}$major'
17063  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17064  shlibpath_var=LD_LIBRARY_PATH
17065  shlibpath_overrides_runpath=no
17066  hardcode_into_libs=yes
17067  ;;
17068
17069irix5* | irix6* | nonstopux*)
17070  case $host_os in
17071    nonstopux*) version_type=nonstopux ;;
17072    *)
17073	if test "$lt_cv_prog_gnu_ld" = yes; then
17074		version_type=linux
17075	else
17076		version_type=irix
17077	fi ;;
17078  esac
17079  need_lib_prefix=no
17080  need_version=no
17081  soname_spec='${libname}${release}${shared_ext}$major'
17082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17083  case $host_os in
17084  irix5* | nonstopux*)
17085    libsuff= shlibsuff=
17086    ;;
17087  *)
17088    case $LD in # libtool.m4 will add one of these switches to LD
17089    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17090      libsuff= shlibsuff= libmagic=32-bit;;
17091    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17092      libsuff=32 shlibsuff=N32 libmagic=N32;;
17093    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17094      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17095    *) libsuff= shlibsuff= libmagic=never-match;;
17096    esac
17097    ;;
17098  esac
17099  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17100  shlibpath_overrides_runpath=no
17101  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17102  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17103  hardcode_into_libs=yes
17104  ;;
17105
17106# No shared lib support for Linux oldld, aout, or coff.
17107linux*oldld* | linux*aout* | linux*coff*)
17108  dynamic_linker=no
17109  ;;
17110
17111# This must be Linux ELF.
17112linux*)
17113  version_type=linux
17114  need_lib_prefix=no
17115  need_version=no
17116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117  soname_spec='${libname}${release}${shared_ext}$major'
17118  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17119  shlibpath_var=LD_LIBRARY_PATH
17120  shlibpath_overrides_runpath=no
17121  # This implies no fast_install, which is unacceptable.
17122  # Some rework will be needed to allow for fast_install
17123  # before this can be enabled.
17124  hardcode_into_libs=yes
17125
17126  # Append ld.so.conf contents to the search path
17127  if test -f /etc/ld.so.conf; then
17128    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' ' '`
17129    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17130  fi
17131
17132  # We used to test for /lib/ld.so.1 and disable shared libraries on
17133  # powerpc, because MkLinux only supported shared libraries with the
17134  # GNU dynamic linker.  Since this was broken with cross compilers,
17135  # most powerpc-linux boxes support dynamic linking these days and
17136  # people can always --disable-shared, the test was removed, and we
17137  # assume the GNU/Linux dynamic linker is in use.
17138  dynamic_linker='GNU/Linux ld.so'
17139  ;;
17140
17141knetbsd*-gnu)
17142  version_type=linux
17143  need_lib_prefix=no
17144  need_version=no
17145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17146  soname_spec='${libname}${release}${shared_ext}$major'
17147  shlibpath_var=LD_LIBRARY_PATH
17148  shlibpath_overrides_runpath=no
17149  hardcode_into_libs=yes
17150  dynamic_linker='GNU ld.so'
17151  ;;
17152
17153netbsd*)
17154  version_type=sunos
17155  need_lib_prefix=no
17156  need_version=no
17157  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17159    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17160    dynamic_linker='NetBSD (a.out) ld.so'
17161  else
17162    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17163    soname_spec='${libname}${release}${shared_ext}$major'
17164    dynamic_linker='NetBSD ld.elf_so'
17165  fi
17166  shlibpath_var=LD_LIBRARY_PATH
17167  shlibpath_overrides_runpath=yes
17168  hardcode_into_libs=yes
17169  ;;
17170
17171newsos6)
17172  version_type=linux
17173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174  shlibpath_var=LD_LIBRARY_PATH
17175  shlibpath_overrides_runpath=yes
17176  ;;
17177
17178nto-qnx*)
17179  version_type=linux
17180  need_lib_prefix=no
17181  need_version=no
17182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183  soname_spec='${libname}${release}${shared_ext}$major'
17184  shlibpath_var=LD_LIBRARY_PATH
17185  shlibpath_overrides_runpath=yes
17186  ;;
17187
17188openbsd*)
17189  version_type=sunos
17190  sys_lib_dlsearch_path_spec="/usr/lib"
17191  need_lib_prefix=no
17192  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17193  case $host_os in
17194    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17195    *)                         need_version=no  ;;
17196  esac
17197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17198  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17199  shlibpath_var=LD_LIBRARY_PATH
17200  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17201    case $host_os in
17202      openbsd2.[89] | openbsd2.[89].*)
17203	shlibpath_overrides_runpath=no
17204	;;
17205      *)
17206	shlibpath_overrides_runpath=yes
17207	;;
17208      esac
17209  else
17210    shlibpath_overrides_runpath=yes
17211  fi
17212  ;;
17213
17214os2*)
17215  libname_spec='$name'
17216  shrext_cmds=".dll"
17217  need_lib_prefix=no
17218  library_names_spec='$libname${shared_ext} $libname.a'
17219  dynamic_linker='OS/2 ld.exe'
17220  shlibpath_var=LIBPATH
17221  ;;
17222
17223osf3* | osf4* | osf5*)
17224  version_type=osf
17225  need_lib_prefix=no
17226  need_version=no
17227  soname_spec='${libname}${release}${shared_ext}$major'
17228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229  shlibpath_var=LD_LIBRARY_PATH
17230  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17231  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17232  ;;
17233
17234solaris*)
17235  version_type=linux
17236  need_lib_prefix=no
17237  need_version=no
17238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239  soname_spec='${libname}${release}${shared_ext}$major'
17240  shlibpath_var=LD_LIBRARY_PATH
17241  shlibpath_overrides_runpath=yes
17242  hardcode_into_libs=yes
17243  # ldd complains unless libraries are executable
17244  postinstall_cmds='chmod +x $lib'
17245  ;;
17246
17247sunos4*)
17248  version_type=sunos
17249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17250  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17251  shlibpath_var=LD_LIBRARY_PATH
17252  shlibpath_overrides_runpath=yes
17253  if test "$with_gnu_ld" = yes; then
17254    need_lib_prefix=no
17255  fi
17256  need_version=yes
17257  ;;
17258
17259sysv4 | sysv4.3*)
17260  version_type=linux
17261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262  soname_spec='${libname}${release}${shared_ext}$major'
17263  shlibpath_var=LD_LIBRARY_PATH
17264  case $host_vendor in
17265    sni)
17266      shlibpath_overrides_runpath=no
17267      need_lib_prefix=no
17268      export_dynamic_flag_spec='${wl}-Blargedynsym'
17269      runpath_var=LD_RUN_PATH
17270      ;;
17271    siemens)
17272      need_lib_prefix=no
17273      ;;
17274    motorola)
17275      need_lib_prefix=no
17276      need_version=no
17277      shlibpath_overrides_runpath=no
17278      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17279      ;;
17280  esac
17281  ;;
17282
17283sysv4*MP*)
17284  if test -d /usr/nec ;then
17285    version_type=linux
17286    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17287    soname_spec='$libname${shared_ext}.$major'
17288    shlibpath_var=LD_LIBRARY_PATH
17289  fi
17290  ;;
17291
17292sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17293  version_type=freebsd-elf
17294  need_lib_prefix=no
17295  need_version=no
17296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17297  soname_spec='${libname}${release}${shared_ext}$major'
17298  shlibpath_var=LD_LIBRARY_PATH
17299  hardcode_into_libs=yes
17300  if test "$with_gnu_ld" = yes; then
17301    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17302    shlibpath_overrides_runpath=no
17303  else
17304    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17305    shlibpath_overrides_runpath=yes
17306    case $host_os in
17307      sco3.2v5*)
17308        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17309	;;
17310    esac
17311  fi
17312  sys_lib_dlsearch_path_spec='/usr/lib'
17313  ;;
17314
17315uts4*)
17316  version_type=linux
17317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318  soname_spec='${libname}${release}${shared_ext}$major'
17319  shlibpath_var=LD_LIBRARY_PATH
17320  ;;
17321
17322*)
17323  dynamic_linker=no
17324  ;;
17325esac
17326echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17327echo "${ECHO_T}$dynamic_linker" >&6
17328test "$dynamic_linker" = no && can_build_shared=no
17329
17330variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17331if test "$GCC" = yes; then
17332  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17333fi
17334
17335echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17336echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17337hardcode_action_GCJ=
17338if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17339   test -n "$runpath_var_GCJ" || \
17340   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17341
17342  # We can hardcode non-existant directories.
17343  if test "$hardcode_direct_GCJ" != no &&
17344     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17345     # have to relink, otherwise we might link with an installed library
17346     # when we should be linking with a yet-to-be-installed one
17347     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17348     test "$hardcode_minus_L_GCJ" != no; then
17349    # Linking always hardcodes the temporary library directory.
17350    hardcode_action_GCJ=relink
17351  else
17352    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17353    hardcode_action_GCJ=immediate
17354  fi
17355else
17356  # We cannot hardcode anything, or else we can only hardcode existing
17357  # directories.
17358  hardcode_action_GCJ=unsupported
17359fi
17360echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17361echo "${ECHO_T}$hardcode_action_GCJ" >&6
17362
17363if test "$hardcode_action_GCJ" = relink; then
17364  # Fast installation is not supported
17365  enable_fast_install=no
17366elif test "$shlibpath_overrides_runpath" = yes ||
17367     test "$enable_shared" = no; then
17368  # Fast installation is not necessary
17369  enable_fast_install=needless
17370fi
17371
17372
17373# The else clause should only fire when bootstrapping the
17374# libtool distribution, otherwise you forgot to ship ltmain.sh
17375# with your package, and you will get complaints that there are
17376# no rules to generate ltmain.sh.
17377if test -f "$ltmain"; then
17378  # See if we are running on zsh, and set the options which allow our commands through
17379  # without removal of \ escapes.
17380  if test -n "${ZSH_VERSION+set}" ; then
17381    setopt NO_GLOB_SUBST
17382  fi
17383  # Now quote all the things that may contain metacharacters while being
17384  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17385  # variables and quote the copies for generation of the libtool script.
17386  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17387    SED SHELL STRIP \
17388    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17389    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17390    deplibs_check_method reload_flag reload_cmds need_locks \
17391    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17392    lt_cv_sys_global_symbol_to_c_name_address \
17393    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17394    old_postinstall_cmds old_postuninstall_cmds \
17395    compiler_GCJ \
17396    CC_GCJ \
17397    LD_GCJ \
17398    lt_prog_compiler_wl_GCJ \
17399    lt_prog_compiler_pic_GCJ \
17400    lt_prog_compiler_static_GCJ \
17401    lt_prog_compiler_no_builtin_flag_GCJ \
17402    export_dynamic_flag_spec_GCJ \
17403    thread_safe_flag_spec_GCJ \
17404    whole_archive_flag_spec_GCJ \
17405    enable_shared_with_static_runtimes_GCJ \
17406    old_archive_cmds_GCJ \
17407    old_archive_from_new_cmds_GCJ \
17408    predep_objects_GCJ \
17409    postdep_objects_GCJ \
17410    predeps_GCJ \
17411    postdeps_GCJ \
17412    compiler_lib_search_path_GCJ \
17413    archive_cmds_GCJ \
17414    archive_expsym_cmds_GCJ \
17415    postinstall_cmds_GCJ \
17416    postuninstall_cmds_GCJ \
17417    old_archive_from_expsyms_cmds_GCJ \
17418    allow_undefined_flag_GCJ \
17419    no_undefined_flag_GCJ \
17420    export_symbols_cmds_GCJ \
17421    hardcode_libdir_flag_spec_GCJ \
17422    hardcode_libdir_flag_spec_ld_GCJ \
17423    hardcode_libdir_separator_GCJ \
17424    hardcode_automatic_GCJ \
17425    module_cmds_GCJ \
17426    module_expsym_cmds_GCJ \
17427    lt_cv_prog_compiler_c_o_GCJ \
17428    exclude_expsyms_GCJ \
17429    include_expsyms_GCJ; do
17430
17431    case $var in
17432    old_archive_cmds_GCJ | \
17433    old_archive_from_new_cmds_GCJ | \
17434    archive_cmds_GCJ | \
17435    archive_expsym_cmds_GCJ | \
17436    module_cmds_GCJ | \
17437    module_expsym_cmds_GCJ | \
17438    old_archive_from_expsyms_cmds_GCJ | \
17439    export_symbols_cmds_GCJ | \
17440    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17441    postinstall_cmds | postuninstall_cmds | \
17442    old_postinstall_cmds | old_postuninstall_cmds | \
17443    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17444      # Double-quote double-evaled strings.
17445      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17446      ;;
17447    *)
17448      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17449      ;;
17450    esac
17451  done
17452
17453  case $lt_echo in
17454  *'\$0 --fallback-echo"')
17455    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17456    ;;
17457  esac
17458
17459cfgfile="$ofile"
17460
17461  cat <<__EOF__ >> "$cfgfile"
17462# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17463
17464# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17465
17466# Shell to use when invoking shell scripts.
17467SHELL=$lt_SHELL
17468
17469# Whether or not to build shared libraries.
17470build_libtool_libs=$enable_shared
17471
17472# Whether or not to build static libraries.
17473build_old_libs=$enable_static
17474
17475# Whether or not to add -lc for building shared libraries.
17476build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17477
17478# Whether or not to disallow shared libs when runtime libs are static
17479allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17480
17481# Whether or not to optimize for fast installation.
17482fast_install=$enable_fast_install
17483
17484# The host system.
17485host_alias=$host_alias
17486host=$host
17487host_os=$host_os
17488
17489# The build system.
17490build_alias=$build_alias
17491build=$build
17492build_os=$build_os
17493
17494# An echo program that does not interpret backslashes.
17495echo=$lt_echo
17496
17497# The archiver.
17498AR=$lt_AR
17499AR_FLAGS=$lt_AR_FLAGS
17500
17501# A C compiler.
17502LTCC=$lt_LTCC
17503
17504# LTCC compiler flags.
17505LTCFLAGS=$lt_LTCFLAGS
17506
17507# A language-specific compiler.
17508CC=$lt_compiler_GCJ
17509
17510# Is the compiler the GNU C compiler?
17511with_gcc=$GCC_GCJ
17512
17513# An ERE matcher.
17514EGREP=$lt_EGREP
17515
17516# The linker used to build libraries.
17517LD=$lt_LD_GCJ
17518
17519# Whether we need hard or soft links.
17520LN_S=$lt_LN_S
17521
17522# A BSD-compatible nm program.
17523NM=$lt_NM
17524
17525# A symbol stripping program
17526STRIP=$lt_STRIP
17527
17528# Used to examine libraries when file_magic_cmd begins "file"
17529MAGIC_CMD=$MAGIC_CMD
17530
17531# Used on cygwin: DLL creation program.
17532DLLTOOL="$DLLTOOL"
17533
17534# Used on cygwin: object dumper.
17535OBJDUMP="$OBJDUMP"
17536
17537# Used on cygwin: assembler.
17538AS="$AS"
17539
17540# The name of the directory that contains temporary libtool files.
17541objdir=$objdir
17542
17543# How to create reloadable object files.
17544reload_flag=$lt_reload_flag
17545reload_cmds=$lt_reload_cmds
17546
17547# How to pass a linker flag through the compiler.
17548wl=$lt_lt_prog_compiler_wl_GCJ
17549
17550# Object file suffix (normally "o").
17551objext="$ac_objext"
17552
17553# Old archive suffix (normally "a").
17554libext="$libext"
17555
17556# Shared library suffix (normally ".so").
17557shrext_cmds='$shrext_cmds'
17558
17559# Executable file suffix (normally "").
17560exeext="$exeext"
17561
17562# Additional compiler flags for building library objects.
17563pic_flag=$lt_lt_prog_compiler_pic_GCJ
17564pic_mode=$pic_mode
17565
17566# What is the maximum length of a command?
17567max_cmd_len=$lt_cv_sys_max_cmd_len
17568
17569# Does compiler simultaneously support -c and -o options?
17570compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17571
17572# Must we lock files when doing compilation?
17573need_locks=$lt_need_locks
17574
17575# Do we need the lib prefix for modules?
17576need_lib_prefix=$need_lib_prefix
17577
17578# Do we need a version for libraries?
17579need_version=$need_version
17580
17581# Whether dlopen is supported.
17582dlopen_support=$enable_dlopen
17583
17584# Whether dlopen of programs is supported.
17585dlopen_self=$enable_dlopen_self
17586
17587# Whether dlopen of statically linked programs is supported.
17588dlopen_self_static=$enable_dlopen_self_static
17589
17590# Compiler flag to prevent dynamic linking.
17591link_static_flag=$lt_lt_prog_compiler_static_GCJ
17592
17593# Compiler flag to turn off builtin functions.
17594no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17595
17596# Compiler flag to allow reflexive dlopens.
17597export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17598
17599# Compiler flag to generate shared objects directly from archives.
17600whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17601
17602# Compiler flag to generate thread-safe objects.
17603thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17604
17605# Library versioning type.
17606version_type=$version_type
17607
17608# Format of library name prefix.
17609libname_spec=$lt_libname_spec
17610
17611# List of archive names.  First name is the real one, the rest are links.
17612# The last name is the one that the linker finds with -lNAME.
17613library_names_spec=$lt_library_names_spec
17614
17615# The coded name of the library, if different from the real name.
17616soname_spec=$lt_soname_spec
17617
17618# Commands used to build and install an old-style archive.
17619RANLIB=$lt_RANLIB
17620old_archive_cmds=$lt_old_archive_cmds_GCJ
17621old_postinstall_cmds=$lt_old_postinstall_cmds
17622old_postuninstall_cmds=$lt_old_postuninstall_cmds
17623
17624# Create an old-style archive from a shared archive.
17625old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17626
17627# Create a temporary old-style archive to link instead of a shared archive.
17628old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17629
17630# Commands used to build and install a shared archive.
17631archive_cmds=$lt_archive_cmds_GCJ
17632archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17633postinstall_cmds=$lt_postinstall_cmds
17634postuninstall_cmds=$lt_postuninstall_cmds
17635
17636# Commands used to build a loadable module (assumed same as above if empty)
17637module_cmds=$lt_module_cmds_GCJ
17638module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17639
17640# Commands to strip libraries.
17641old_striplib=$lt_old_striplib
17642striplib=$lt_striplib
17643
17644# Dependencies to place before the objects being linked to create a
17645# shared library.
17646predep_objects=$lt_predep_objects_GCJ
17647
17648# Dependencies to place after the objects being linked to create a
17649# shared library.
17650postdep_objects=$lt_postdep_objects_GCJ
17651
17652# Dependencies to place before the objects being linked to create a
17653# shared library.
17654predeps=$lt_predeps_GCJ
17655
17656# Dependencies to place after the objects being linked to create a
17657# shared library.
17658postdeps=$lt_postdeps_GCJ
17659
17660# The library search path used internally by the compiler when linking
17661# a shared library.
17662compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17663
17664# Method to check whether dependent libraries are shared objects.
17665deplibs_check_method=$lt_deplibs_check_method
17666
17667# Command to use when deplibs_check_method == file_magic.
17668file_magic_cmd=$lt_file_magic_cmd
17669
17670# Flag that allows shared libraries with undefined symbols to be built.
17671allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17672
17673# Flag that forces no undefined symbols.
17674no_undefined_flag=$lt_no_undefined_flag_GCJ
17675
17676# Commands used to finish a libtool library installation in a directory.
17677finish_cmds=$lt_finish_cmds
17678
17679# Same as above, but a single script fragment to be evaled but not shown.
17680finish_eval=$lt_finish_eval
17681
17682# Take the output of nm and produce a listing of raw symbols and C names.
17683global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17684
17685# Transform the output of nm in a proper C declaration
17686global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17687
17688# Transform the output of nm in a C name address pair
17689global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17690
17691# This is the shared library runtime path variable.
17692runpath_var=$runpath_var
17693
17694# This is the shared library path variable.
17695shlibpath_var=$shlibpath_var
17696
17697# Is shlibpath searched before the hard-coded library search path?
17698shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17699
17700# How to hardcode a shared library path into an executable.
17701hardcode_action=$hardcode_action_GCJ
17702
17703# Whether we should hardcode library paths into libraries.
17704hardcode_into_libs=$hardcode_into_libs
17705
17706# Flag to hardcode \$libdir into a binary during linking.
17707# This must work even if \$libdir does not exist.
17708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17709
17710# If ld is used when linking, flag to hardcode \$libdir into
17711# a binary during linking. This must work even if \$libdir does
17712# not exist.
17713hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17714
17715# Whether we need a single -rpath flag with a separated argument.
17716hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17717
17718# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17719# resulting binary.
17720hardcode_direct=$hardcode_direct_GCJ
17721
17722# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17723# resulting binary.
17724hardcode_minus_L=$hardcode_minus_L_GCJ
17725
17726# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17727# the resulting binary.
17728hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17729
17730# Set to yes if building a shared library automatically hardcodes DIR into the library
17731# and all subsequent libraries and executables linked against it.
17732hardcode_automatic=$hardcode_automatic_GCJ
17733
17734# Variables whose values should be saved in libtool wrapper scripts and
17735# restored at relink time.
17736variables_saved_for_relink="$variables_saved_for_relink"
17737
17738# Whether libtool must link a program against all its dependency libraries.
17739link_all_deplibs=$link_all_deplibs_GCJ
17740
17741# Compile-time system search path for libraries
17742sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17743
17744# Run-time system search path for libraries
17745sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17746
17747# Fix the shell variable \$srcfile for the compiler.
17748fix_srcfile_path="$fix_srcfile_path_GCJ"
17749
17750# Set to yes if exported symbols are required.
17751always_export_symbols=$always_export_symbols_GCJ
17752
17753# The commands to list exported symbols.
17754export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17755
17756# The commands to extract the exported symbol list from a shared archive.
17757extract_expsyms_cmds=$lt_extract_expsyms_cmds
17758
17759# Symbols that should not be listed in the preloaded symbols.
17760exclude_expsyms=$lt_exclude_expsyms_GCJ
17761
17762# Symbols that must always be exported.
17763include_expsyms=$lt_include_expsyms_GCJ
17764
17765# ### END LIBTOOL TAG CONFIG: $tagname
17766
17767__EOF__
17768
17769
17770else
17771  # If there is no Makefile yet, we rely on a make rule to execute
17772  # `config.status --recheck' to rerun these tests and create the
17773  # libtool script then.
17774  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17775  if test -f "$ltmain_in"; then
17776    test -f Makefile && make "$ltmain"
17777  fi
17778fi
17779
17780
17781ac_ext=c
17782ac_cpp='$CPP $CPPFLAGS'
17783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785ac_compiler_gnu=$ac_cv_c_compiler_gnu
17786
17787CC="$lt_save_CC"
17788
17789	else
17790	  tagname=""
17791	fi
17792	;;
17793
17794      RC)
17795
17796
17797
17798# Source file extension for RC test sources.
17799ac_ext=rc
17800
17801# Object file extension for compiled RC test sources.
17802objext=o
17803objext_RC=$objext
17804
17805# Code to be used in simple compile tests
17806lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17807
17808# Code to be used in simple link tests
17809lt_simple_link_test_code="$lt_simple_compile_test_code"
17810
17811# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17812
17813# If no C compiler was specified, use CC.
17814LTCC=${LTCC-"$CC"}
17815
17816# If no C compiler flags were specified, use CFLAGS.
17817LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17818
17819# Allow CC to be a program name with arguments.
17820compiler=$CC
17821
17822
17823# save warnings/boilerplate of simple test code
17824ac_outfile=conftest.$ac_objext
17825printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17826eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17827_lt_compiler_boilerplate=`cat conftest.err`
17828$rm conftest*
17829
17830ac_outfile=conftest.$ac_objext
17831printf "$lt_simple_link_test_code" >conftest.$ac_ext
17832eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17833_lt_linker_boilerplate=`cat conftest.err`
17834$rm conftest*
17835
17836
17837# Allow CC to be a program name with arguments.
17838lt_save_CC="$CC"
17839CC=${RC-"windres"}
17840compiler=$CC
17841compiler_RC=$CC
17842for cc_temp in $compiler""; do
17843  case $cc_temp in
17844    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17845    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17846    \-*) ;;
17847    *) break;;
17848  esac
17849done
17850cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17851
17852lt_cv_prog_compiler_c_o_RC=yes
17853
17854# The else clause should only fire when bootstrapping the
17855# libtool distribution, otherwise you forgot to ship ltmain.sh
17856# with your package, and you will get complaints that there are
17857# no rules to generate ltmain.sh.
17858if test -f "$ltmain"; then
17859  # See if we are running on zsh, and set the options which allow our commands through
17860  # without removal of \ escapes.
17861  if test -n "${ZSH_VERSION+set}" ; then
17862    setopt NO_GLOB_SUBST
17863  fi
17864  # Now quote all the things that may contain metacharacters while being
17865  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17866  # variables and quote the copies for generation of the libtool script.
17867  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17868    SED SHELL STRIP \
17869    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17870    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17871    deplibs_check_method reload_flag reload_cmds need_locks \
17872    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17873    lt_cv_sys_global_symbol_to_c_name_address \
17874    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17875    old_postinstall_cmds old_postuninstall_cmds \
17876    compiler_RC \
17877    CC_RC \
17878    LD_RC \
17879    lt_prog_compiler_wl_RC \
17880    lt_prog_compiler_pic_RC \
17881    lt_prog_compiler_static_RC \
17882    lt_prog_compiler_no_builtin_flag_RC \
17883    export_dynamic_flag_spec_RC \
17884    thread_safe_flag_spec_RC \
17885    whole_archive_flag_spec_RC \
17886    enable_shared_with_static_runtimes_RC \
17887    old_archive_cmds_RC \
17888    old_archive_from_new_cmds_RC \
17889    predep_objects_RC \
17890    postdep_objects_RC \
17891    predeps_RC \
17892    postdeps_RC \
17893    compiler_lib_search_path_RC \
17894    archive_cmds_RC \
17895    archive_expsym_cmds_RC \
17896    postinstall_cmds_RC \
17897    postuninstall_cmds_RC \
17898    old_archive_from_expsyms_cmds_RC \
17899    allow_undefined_flag_RC \
17900    no_undefined_flag_RC \
17901    export_symbols_cmds_RC \
17902    hardcode_libdir_flag_spec_RC \
17903    hardcode_libdir_flag_spec_ld_RC \
17904    hardcode_libdir_separator_RC \
17905    hardcode_automatic_RC \
17906    module_cmds_RC \
17907    module_expsym_cmds_RC \
17908    lt_cv_prog_compiler_c_o_RC \
17909    exclude_expsyms_RC \
17910    include_expsyms_RC; do
17911
17912    case $var in
17913    old_archive_cmds_RC | \
17914    old_archive_from_new_cmds_RC | \
17915    archive_cmds_RC | \
17916    archive_expsym_cmds_RC | \
17917    module_cmds_RC | \
17918    module_expsym_cmds_RC | \
17919    old_archive_from_expsyms_cmds_RC | \
17920    export_symbols_cmds_RC | \
17921    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17922    postinstall_cmds | postuninstall_cmds | \
17923    old_postinstall_cmds | old_postuninstall_cmds | \
17924    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17925      # Double-quote double-evaled strings.
17926      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17927      ;;
17928    *)
17929      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17930      ;;
17931    esac
17932  done
17933
17934  case $lt_echo in
17935  *'\$0 --fallback-echo"')
17936    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17937    ;;
17938  esac
17939
17940cfgfile="$ofile"
17941
17942  cat <<__EOF__ >> "$cfgfile"
17943# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17944
17945# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17946
17947# Shell to use when invoking shell scripts.
17948SHELL=$lt_SHELL
17949
17950# Whether or not to build shared libraries.
17951build_libtool_libs=$enable_shared
17952
17953# Whether or not to build static libraries.
17954build_old_libs=$enable_static
17955
17956# Whether or not to add -lc for building shared libraries.
17957build_libtool_need_lc=$archive_cmds_need_lc_RC
17958
17959# Whether or not to disallow shared libs when runtime libs are static
17960allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17961
17962# Whether or not to optimize for fast installation.
17963fast_install=$enable_fast_install
17964
17965# The host system.
17966host_alias=$host_alias
17967host=$host
17968host_os=$host_os
17969
17970# The build system.
17971build_alias=$build_alias
17972build=$build
17973build_os=$build_os
17974
17975# An echo program that does not interpret backslashes.
17976echo=$lt_echo
17977
17978# The archiver.
17979AR=$lt_AR
17980AR_FLAGS=$lt_AR_FLAGS
17981
17982# A C compiler.
17983LTCC=$lt_LTCC
17984
17985# LTCC compiler flags.
17986LTCFLAGS=$lt_LTCFLAGS
17987
17988# A language-specific compiler.
17989CC=$lt_compiler_RC
17990
17991# Is the compiler the GNU C compiler?
17992with_gcc=$GCC_RC
17993
17994# An ERE matcher.
17995EGREP=$lt_EGREP
17996
17997# The linker used to build libraries.
17998LD=$lt_LD_RC
17999
18000# Whether we need hard or soft links.
18001LN_S=$lt_LN_S
18002
18003# A BSD-compatible nm program.
18004NM=$lt_NM
18005
18006# A symbol stripping program
18007STRIP=$lt_STRIP
18008
18009# Used to examine libraries when file_magic_cmd begins "file"
18010MAGIC_CMD=$MAGIC_CMD
18011
18012# Used on cygwin: DLL creation program.
18013DLLTOOL="$DLLTOOL"
18014
18015# Used on cygwin: object dumper.
18016OBJDUMP="$OBJDUMP"
18017
18018# Used on cygwin: assembler.
18019AS="$AS"
18020
18021# The name of the directory that contains temporary libtool files.
18022objdir=$objdir
18023
18024# How to create reloadable object files.
18025reload_flag=$lt_reload_flag
18026reload_cmds=$lt_reload_cmds
18027
18028# How to pass a linker flag through the compiler.
18029wl=$lt_lt_prog_compiler_wl_RC
18030
18031# Object file suffix (normally "o").
18032objext="$ac_objext"
18033
18034# Old archive suffix (normally "a").
18035libext="$libext"
18036
18037# Shared library suffix (normally ".so").
18038shrext_cmds='$shrext_cmds'
18039
18040# Executable file suffix (normally "").
18041exeext="$exeext"
18042
18043# Additional compiler flags for building library objects.
18044pic_flag=$lt_lt_prog_compiler_pic_RC
18045pic_mode=$pic_mode
18046
18047# What is the maximum length of a command?
18048max_cmd_len=$lt_cv_sys_max_cmd_len
18049
18050# Does compiler simultaneously support -c and -o options?
18051compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18052
18053# Must we lock files when doing compilation?
18054need_locks=$lt_need_locks
18055
18056# Do we need the lib prefix for modules?
18057need_lib_prefix=$need_lib_prefix
18058
18059# Do we need a version for libraries?
18060need_version=$need_version
18061
18062# Whether dlopen is supported.
18063dlopen_support=$enable_dlopen
18064
18065# Whether dlopen of programs is supported.
18066dlopen_self=$enable_dlopen_self
18067
18068# Whether dlopen of statically linked programs is supported.
18069dlopen_self_static=$enable_dlopen_self_static
18070
18071# Compiler flag to prevent dynamic linking.
18072link_static_flag=$lt_lt_prog_compiler_static_RC
18073
18074# Compiler flag to turn off builtin functions.
18075no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18076
18077# Compiler flag to allow reflexive dlopens.
18078export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18079
18080# Compiler flag to generate shared objects directly from archives.
18081whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18082
18083# Compiler flag to generate thread-safe objects.
18084thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18085
18086# Library versioning type.
18087version_type=$version_type
18088
18089# Format of library name prefix.
18090libname_spec=$lt_libname_spec
18091
18092# List of archive names.  First name is the real one, the rest are links.
18093# The last name is the one that the linker finds with -lNAME.
18094library_names_spec=$lt_library_names_spec
18095
18096# The coded name of the library, if different from the real name.
18097soname_spec=$lt_soname_spec
18098
18099# Commands used to build and install an old-style archive.
18100RANLIB=$lt_RANLIB
18101old_archive_cmds=$lt_old_archive_cmds_RC
18102old_postinstall_cmds=$lt_old_postinstall_cmds
18103old_postuninstall_cmds=$lt_old_postuninstall_cmds
18104
18105# Create an old-style archive from a shared archive.
18106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18107
18108# Create a temporary old-style archive to link instead of a shared archive.
18109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18110
18111# Commands used to build and install a shared archive.
18112archive_cmds=$lt_archive_cmds_RC
18113archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18114postinstall_cmds=$lt_postinstall_cmds
18115postuninstall_cmds=$lt_postuninstall_cmds
18116
18117# Commands used to build a loadable module (assumed same as above if empty)
18118module_cmds=$lt_module_cmds_RC
18119module_expsym_cmds=$lt_module_expsym_cmds_RC
18120
18121# Commands to strip libraries.
18122old_striplib=$lt_old_striplib
18123striplib=$lt_striplib
18124
18125# Dependencies to place before the objects being linked to create a
18126# shared library.
18127predep_objects=$lt_predep_objects_RC
18128
18129# Dependencies to place after the objects being linked to create a
18130# shared library.
18131postdep_objects=$lt_postdep_objects_RC
18132
18133# Dependencies to place before the objects being linked to create a
18134# shared library.
18135predeps=$lt_predeps_RC
18136
18137# Dependencies to place after the objects being linked to create a
18138# shared library.
18139postdeps=$lt_postdeps_RC
18140
18141# The library search path used internally by the compiler when linking
18142# a shared library.
18143compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18144
18145# Method to check whether dependent libraries are shared objects.
18146deplibs_check_method=$lt_deplibs_check_method
18147
18148# Command to use when deplibs_check_method == file_magic.
18149file_magic_cmd=$lt_file_magic_cmd
18150
18151# Flag that allows shared libraries with undefined symbols to be built.
18152allow_undefined_flag=$lt_allow_undefined_flag_RC
18153
18154# Flag that forces no undefined symbols.
18155no_undefined_flag=$lt_no_undefined_flag_RC
18156
18157# Commands used to finish a libtool library installation in a directory.
18158finish_cmds=$lt_finish_cmds
18159
18160# Same as above, but a single script fragment to be evaled but not shown.
18161finish_eval=$lt_finish_eval
18162
18163# Take the output of nm and produce a listing of raw symbols and C names.
18164global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18165
18166# Transform the output of nm in a proper C declaration
18167global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18168
18169# Transform the output of nm in a C name address pair
18170global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18171
18172# This is the shared library runtime path variable.
18173runpath_var=$runpath_var
18174
18175# This is the shared library path variable.
18176shlibpath_var=$shlibpath_var
18177
18178# Is shlibpath searched before the hard-coded library search path?
18179shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18180
18181# How to hardcode a shared library path into an executable.
18182hardcode_action=$hardcode_action_RC
18183
18184# Whether we should hardcode library paths into libraries.
18185hardcode_into_libs=$hardcode_into_libs
18186
18187# Flag to hardcode \$libdir into a binary during linking.
18188# This must work even if \$libdir does not exist.
18189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18190
18191# If ld is used when linking, flag to hardcode \$libdir into
18192# a binary during linking. This must work even if \$libdir does
18193# not exist.
18194hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18195
18196# Whether we need a single -rpath flag with a separated argument.
18197hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18198
18199# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18200# resulting binary.
18201hardcode_direct=$hardcode_direct_RC
18202
18203# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18204# resulting binary.
18205hardcode_minus_L=$hardcode_minus_L_RC
18206
18207# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18208# the resulting binary.
18209hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18210
18211# Set to yes if building a shared library automatically hardcodes DIR into the library
18212# and all subsequent libraries and executables linked against it.
18213hardcode_automatic=$hardcode_automatic_RC
18214
18215# Variables whose values should be saved in libtool wrapper scripts and
18216# restored at relink time.
18217variables_saved_for_relink="$variables_saved_for_relink"
18218
18219# Whether libtool must link a program against all its dependency libraries.
18220link_all_deplibs=$link_all_deplibs_RC
18221
18222# Compile-time system search path for libraries
18223sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18224
18225# Run-time system search path for libraries
18226sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18227
18228# Fix the shell variable \$srcfile for the compiler.
18229fix_srcfile_path="$fix_srcfile_path_RC"
18230
18231# Set to yes if exported symbols are required.
18232always_export_symbols=$always_export_symbols_RC
18233
18234# The commands to list exported symbols.
18235export_symbols_cmds=$lt_export_symbols_cmds_RC
18236
18237# The commands to extract the exported symbol list from a shared archive.
18238extract_expsyms_cmds=$lt_extract_expsyms_cmds
18239
18240# Symbols that should not be listed in the preloaded symbols.
18241exclude_expsyms=$lt_exclude_expsyms_RC
18242
18243# Symbols that must always be exported.
18244include_expsyms=$lt_include_expsyms_RC
18245
18246# ### END LIBTOOL TAG CONFIG: $tagname
18247
18248__EOF__
18249
18250
18251else
18252  # If there is no Makefile yet, we rely on a make rule to execute
18253  # `config.status --recheck' to rerun these tests and create the
18254  # libtool script then.
18255  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18256  if test -f "$ltmain_in"; then
18257    test -f Makefile && make "$ltmain"
18258  fi
18259fi
18260
18261
18262ac_ext=c
18263ac_cpp='$CPP $CPPFLAGS'
18264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18266ac_compiler_gnu=$ac_cv_c_compiler_gnu
18267
18268CC="$lt_save_CC"
18269
18270	;;
18271
18272      *)
18273	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18274echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18275   { (exit 1); exit 1; }; }
18276	;;
18277      esac
18278
18279      # Append the new tag name to the list of available tags.
18280      if test -n "$tagname" ; then
18281      available_tags="$available_tags $tagname"
18282    fi
18283    fi
18284  done
18285  IFS="$lt_save_ifs"
18286
18287  # Now substitute the updated list of available tags.
18288  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18289    mv "${ofile}T" "$ofile"
18290    chmod +x "$ofile"
18291  else
18292    rm -f "${ofile}T"
18293    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18294echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18295   { (exit 1); exit 1; }; }
18296  fi
18297fi
18298
18299
18300
18301# This can be used to rebuild libtool when needed
18302LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18303
18304# Always use our own libtool.
18305LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18306
18307# Prevent multiple expansion
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329# Check whether --enable-shared or --disable-shared was given.
18330if test "${enable_shared+set}" = set; then
18331  enableval="$enable_shared"
18332  p=${PACKAGE-default}
18333    case $enableval in
18334    yes) enable_shared=yes ;;
18335    no) enable_shared=no ;;
18336    *)
18337      enable_shared=no
18338      # Look at the argument we got.  We use all the common list separators.
18339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18340      for pkg in $enableval; do
18341	IFS="$lt_save_ifs"
18342	if test "X$pkg" = "X$p"; then
18343	  enable_shared=yes
18344	fi
18345      done
18346      IFS="$lt_save_ifs"
18347      ;;
18348    esac
18349else
18350  enable_shared=yes
18351fi;
18352
18353
18354# Check whether --enable-static or --disable-static was given.
18355if test "${enable_static+set}" = set; then
18356  enableval="$enable_static"
18357  p=${PACKAGE-default}
18358    case $enableval in
18359    yes) enable_static=yes ;;
18360    no) enable_static=no ;;
18361    *)
18362     enable_static=no
18363      # Look at the argument we got.  We use all the common list separators.
18364      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18365      for pkg in $enableval; do
18366	IFS="$lt_save_ifs"
18367	if test "X$pkg" = "X$p"; then
18368	  enable_static=yes
18369	fi
18370      done
18371      IFS="$lt_save_ifs"
18372      ;;
18373    esac
18374else
18375  enable_static=no
18376fi;
18377
18378
18379
18380                                        ac_config_files="$ac_config_files Makefile proxychains/Makefile proxychains/docs/Makefile proxychains/docs/en/Makefile"
18381cat >confcache <<\_ACEOF
18382# This file is a shell script that caches the results of configure
18383# tests run on this system so they can be shared between configure
18384# scripts and configure runs, see configure's option --config-cache.
18385# It is not useful on other systems.  If it contains results you don't
18386# want to keep, you may remove or edit it.
18387#
18388# config.status only pays attention to the cache file if you give it
18389# the --recheck option to rerun configure.
18390#
18391# `ac_cv_env_foo' variables (set or unset) will be overridden when
18392# loading this file, other *unset* `ac_cv_foo' will be assigned the
18393# following values.
18394
18395_ACEOF
18396
18397# The following way of writing the cache mishandles newlines in values,
18398# but we know of no workaround that is simple, portable, and efficient.
18399# So, don't put newlines in cache variables' values.
18400# Ultrix sh set writes to stderr and can't be redirected directly,
18401# and sets the high bit in the cache file unless we assign to the vars.
18402{
18403  (set) 2>&1 |
18404    case `(ac_space=' '; set | grep ac_space) 2>&1` in
18405    *ac_space=\ *)
18406      # `set' does not quote correctly, so add quotes (double-quote
18407      # substitution turns \\\\ into \\, and sed turns \\ into \).
18408      sed -n \
18409	"s/'/'\\\\''/g;
18410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18411      ;;
18412    *)
18413      # `set' quotes correctly as required by POSIX, so do not add quotes.
18414      sed -n \
18415	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18416      ;;
18417    esac;
18418} |
18419  sed '
18420     t clear
18421     : clear
18422     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18423     t end
18424     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18425     : end' >>confcache
18426if diff $cache_file confcache >/dev/null 2>&1; then :; else
18427  if test -w $cache_file; then
18428    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18429    cat confcache >$cache_file
18430  else
18431    echo "not updating unwritable cache $cache_file"
18432  fi
18433fi
18434rm -f confcache
18435
18436test "x$prefix" = xNONE && prefix=$ac_default_prefix
18437# Let make expand exec_prefix.
18438test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18439
18440# VPATH may cause trouble with some makes, so we remove $(srcdir),
18441# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18442# trailing colons and then remove the whole line if VPATH becomes empty
18443# (actually we leave an empty line to preserve line numbers).
18444if test "x$srcdir" = x.; then
18445  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18446s/:*\$(srcdir):*/:/;
18447s/:*\${srcdir}:*/:/;
18448s/:*@srcdir@:*/:/;
18449s/^\([^=]*=[	 ]*\):*/\1/;
18450s/:*$//;
18451s/^[^=]*=[	 ]*$//;
18452}'
18453fi
18454
18455DEFS=-DHAVE_CONFIG_H
18456
18457ac_libobjs=
18458ac_ltlibobjs=
18459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18460  # 1. Remove the extension, and $U if already installed.
18461  ac_i=`echo "$ac_i" |
18462	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18463  # 2. Add them.
18464  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18465  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18466done
18467LIBOBJS=$ac_libobjs
18468
18469LTLIBOBJS=$ac_ltlibobjs
18470
18471
18472
18473: ${CONFIG_STATUS=./config.status}
18474ac_clean_files_save=$ac_clean_files
18475ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18476{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18477echo "$as_me: creating $CONFIG_STATUS" >&6;}
18478cat >$CONFIG_STATUS <<_ACEOF
18479#! $SHELL
18480# Generated by $as_me.
18481# Run this file to recreate the current configuration.
18482# Compiler output produced by configure, useful for debugging
18483# configure, is in config.log if it exists.
18484
18485debug=false
18486ac_cs_recheck=false
18487ac_cs_silent=false
18488SHELL=\${CONFIG_SHELL-$SHELL}
18489_ACEOF
18490
18491cat >>$CONFIG_STATUS <<\_ACEOF
18492## --------------------- ##
18493## M4sh Initialization.  ##
18494## --------------------- ##
18495
18496# Be Bourne compatible
18497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18498  emulate sh
18499  NULLCMD=:
18500  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18501  # is contrary to our usage.  Disable this feature.
18502  alias -g '${1+"$@"}'='"$@"'
18503elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18504  set -o posix
18505fi
18506DUALCASE=1; export DUALCASE # for MKS sh
18507
18508# Support unset when possible.
18509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18510  as_unset=unset
18511else
18512  as_unset=false
18513fi
18514
18515
18516# Work around bugs in pre-3.0 UWIN ksh.
18517$as_unset ENV MAIL MAILPATH
18518PS1='$ '
18519PS2='> '
18520PS4='+ '
18521
18522# NLS nuisances.
18523for as_var in \
18524  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18525  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18526  LC_TELEPHONE LC_TIME
18527do
18528  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18529    eval $as_var=C; export $as_var
18530  else
18531    $as_unset $as_var
18532  fi
18533done
18534
18535# Required to use basename.
18536if expr a : '\(a\)' >/dev/null 2>&1; then
18537  as_expr=expr
18538else
18539  as_expr=false
18540fi
18541
18542if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18543  as_basename=basename
18544else
18545  as_basename=false
18546fi
18547
18548
18549# Name of the executable.
18550as_me=`$as_basename "$0" ||
18551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18552	 X"$0" : 'X\(//\)$' \| \
18553	 X"$0" : 'X\(/\)$' \| \
18554	 .     : '\(.\)' 2>/dev/null ||
18555echo X/"$0" |
18556    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18557  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
18558  	  /^X\/\(\/\).*/{ s//\1/; q; }
18559  	  s/.*/./; q'`
18560
18561
18562# PATH needs CR, and LINENO needs CR and PATH.
18563# Avoid depending upon Character Ranges.
18564as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18565as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18566as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18567as_cr_digits='0123456789'
18568as_cr_alnum=$as_cr_Letters$as_cr_digits
18569
18570# The user is always right.
18571if test "${PATH_SEPARATOR+set}" != set; then
18572  echo "#! /bin/sh" >conf$$.sh
18573  echo  "exit 0"   >>conf$$.sh
18574  chmod +x conf$$.sh
18575  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18576    PATH_SEPARATOR=';'
18577  else
18578    PATH_SEPARATOR=:
18579  fi
18580  rm -f conf$$.sh
18581fi
18582
18583
18584  as_lineno_1=$LINENO
18585  as_lineno_2=$LINENO
18586  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18587  test "x$as_lineno_1" != "x$as_lineno_2" &&
18588  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18589  # Find who we are.  Look in the path if we contain no path at all
18590  # relative or not.
18591  case $0 in
18592    *[\\/]* ) as_myself=$0 ;;
18593    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594for as_dir in $PATH
18595do
18596  IFS=$as_save_IFS
18597  test -z "$as_dir" && as_dir=.
18598  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18599done
18600
18601       ;;
18602  esac
18603  # We did not find ourselves, most probably we were run as `sh COMMAND'
18604  # in which case we are not to be found in the path.
18605  if test "x$as_myself" = x; then
18606    as_myself=$0
18607  fi
18608  if test ! -f "$as_myself"; then
18609    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18610echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18611   { (exit 1); exit 1; }; }
18612  fi
18613  case $CONFIG_SHELL in
18614  '')
18615    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18617do
18618  IFS=$as_save_IFS
18619  test -z "$as_dir" && as_dir=.
18620  for as_base in sh bash ksh sh5; do
18621	 case $as_dir in
18622	 /*)
18623	   if ("$as_dir/$as_base" -c '
18624  as_lineno_1=$LINENO
18625  as_lineno_2=$LINENO
18626  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18627  test "x$as_lineno_1" != "x$as_lineno_2" &&
18628  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18629	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18630	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18631	     CONFIG_SHELL=$as_dir/$as_base
18632	     export CONFIG_SHELL
18633	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18634	   fi;;
18635	 esac
18636       done
18637done
18638;;
18639  esac
18640
18641  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18642  # uniformly replaced by the line number.  The first 'sed' inserts a
18643  # line-number line before each line; the second 'sed' does the real
18644  # work.  The second script uses 'N' to pair each line-number line
18645  # with the numbered line, and appends trailing '-' during
18646  # substitution so that $LINENO is not a special case at line end.
18647  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18648  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18649  sed '=' <$as_myself |
18650    sed '
18651      N
18652      s,$,-,
18653      : loop
18654      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18655      t loop
18656      s,-$,,
18657      s,^['$as_cr_digits']*\n,,
18658    ' >$as_me.lineno &&
18659  chmod +x $as_me.lineno ||
18660    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18661echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18662   { (exit 1); exit 1; }; }
18663
18664  # Don't try to exec as it changes $[0], causing all sort of problems
18665  # (the dirname of $[0] is not the place where we might find the
18666  # original and so on.  Autoconf is especially sensible to this).
18667  . ./$as_me.lineno
18668  # Exit status is that of the last command.
18669  exit
18670}
18671
18672
18673case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18674  *c*,-n*) ECHO_N= ECHO_C='
18675' ECHO_T='	' ;;
18676  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18677  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18678esac
18679
18680if expr a : '\(a\)' >/dev/null 2>&1; then
18681  as_expr=expr
18682else
18683  as_expr=false
18684fi
18685
18686rm -f conf$$ conf$$.exe conf$$.file
18687echo >conf$$.file
18688if ln -s conf$$.file conf$$ 2>/dev/null; then
18689  # We could just check for DJGPP; but this test a) works b) is more generic
18690  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18691  if test -f conf$$.exe; then
18692    # Don't use ln at all; we don't have any links
18693    as_ln_s='cp -p'
18694  else
18695    as_ln_s='ln -s'
18696  fi
18697elif ln conf$$.file conf$$ 2>/dev/null; then
18698  as_ln_s=ln
18699else
18700  as_ln_s='cp -p'
18701fi
18702rm -f conf$$ conf$$.exe conf$$.file
18703
18704if mkdir -p . 2>/dev/null; then
18705  as_mkdir_p=:
18706else
18707  test -d ./-p && rmdir ./-p
18708  as_mkdir_p=false
18709fi
18710
18711as_executable_p="test -f"
18712
18713# Sed expression to map a string onto a valid CPP name.
18714as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18715
18716# Sed expression to map a string onto a valid variable name.
18717as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18718
18719
18720# IFS
18721# We need space, tab and new line, in precisely that order.
18722as_nl='
18723'
18724IFS=" 	$as_nl"
18725
18726# CDPATH.
18727$as_unset CDPATH
18728
18729exec 6>&1
18730
18731# Open the log real soon, to keep \$[0] and so on meaningful, and to
18732# report actual input values of CONFIG_FILES etc. instead of their
18733# values after options handling.  Logging --version etc. is OK.
18734exec 5>>config.log
18735{
18736  echo
18737  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18738## Running $as_me. ##
18739_ASBOX
18740} >&5
18741cat >&5 <<_CSEOF
18742
18743This file was extended by proxychains $as_me 3.1, which was
18744generated by GNU Autoconf 2.59.  Invocation command line was
18745
18746  CONFIG_FILES    = $CONFIG_FILES
18747  CONFIG_HEADERS  = $CONFIG_HEADERS
18748  CONFIG_LINKS    = $CONFIG_LINKS
18749  CONFIG_COMMANDS = $CONFIG_COMMANDS
18750  $ $0 $@
18751
18752_CSEOF
18753echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18754echo >&5
18755_ACEOF
18756
18757# Files that config.status was made for.
18758if test -n "$ac_config_files"; then
18759  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18760fi
18761
18762if test -n "$ac_config_headers"; then
18763  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18764fi
18765
18766if test -n "$ac_config_links"; then
18767  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18768fi
18769
18770if test -n "$ac_config_commands"; then
18771  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18772fi
18773
18774cat >>$CONFIG_STATUS <<\_ACEOF
18775
18776ac_cs_usage="\
18777\`$as_me' instantiates files from templates according to the
18778current configuration.
18779
18780Usage: $0 [OPTIONS] [FILE]...
18781
18782  -h, --help       print this help, then exit
18783  -V, --version    print version number, then exit
18784  -q, --quiet      do not print progress messages
18785  -d, --debug      don't remove temporary files
18786      --recheck    update $as_me by reconfiguring in the same conditions
18787  --file=FILE[:TEMPLATE]
18788		   instantiate the configuration file FILE
18789  --header=FILE[:TEMPLATE]
18790		   instantiate the configuration header FILE
18791
18792Configuration files:
18793$config_files
18794
18795Configuration headers:
18796$config_headers
18797
18798Configuration commands:
18799$config_commands
18800
18801Report bugs to <bug-autoconf@gnu.org>."
18802_ACEOF
18803
18804cat >>$CONFIG_STATUS <<_ACEOF
18805ac_cs_version="\\
18806proxychains config.status 3.1
18807configured by $0, generated by GNU Autoconf 2.59,
18808  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18809
18810Copyright (C) 2003 Free Software Foundation, Inc.
18811This config.status script is free software; the Free Software Foundation
18812gives unlimited permission to copy, distribute and modify it."
18813srcdir=$srcdir
18814INSTALL="$INSTALL"
18815_ACEOF
18816
18817cat >>$CONFIG_STATUS <<\_ACEOF
18818# If no file are specified by the user, then we need to provide default
18819# value.  By we need to know if files were specified by the user.
18820ac_need_defaults=:
18821while test $# != 0
18822do
18823  case $1 in
18824  --*=*)
18825    ac_option=`expr "x$1" : 'x\([^=]*\)='`
18826    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18827    ac_shift=:
18828    ;;
18829  -*)
18830    ac_option=$1
18831    ac_optarg=$2
18832    ac_shift=shift
18833    ;;
18834  *) # This is not an option, so the user has probably given explicit
18835     # arguments.
18836     ac_option=$1
18837     ac_need_defaults=false;;
18838  esac
18839
18840  case $ac_option in
18841  # Handling of the options.
18842_ACEOF
18843cat >>$CONFIG_STATUS <<\_ACEOF
18844  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18845    ac_cs_recheck=: ;;
18846  --version | --vers* | -V )
18847    echo "$ac_cs_version"; exit 0 ;;
18848  --he | --h)
18849    # Conflict between --help and --header
18850    { { echo "$as_me:$LINENO: error: ambiguous option: $1
18851Try \`$0 --help' for more information." >&5
18852echo "$as_me: error: ambiguous option: $1
18853Try \`$0 --help' for more information." >&2;}
18854   { (exit 1); exit 1; }; };;
18855  --help | --hel | -h )
18856    echo "$ac_cs_usage"; exit 0 ;;
18857  --debug | --d* | -d )
18858    debug=: ;;
18859  --file | --fil | --fi | --f )
18860    $ac_shift
18861    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18862    ac_need_defaults=false;;
18863  --header | --heade | --head | --hea )
18864    $ac_shift
18865    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18866    ac_need_defaults=false;;
18867  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18868  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18869    ac_cs_silent=: ;;
18870
18871  # This is an error.
18872  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18873Try \`$0 --help' for more information." >&5
18874echo "$as_me: error: unrecognized option: $1
18875Try \`$0 --help' for more information." >&2;}
18876   { (exit 1); exit 1; }; } ;;
18877
18878  *) ac_config_targets="$ac_config_targets $1" ;;
18879
18880  esac
18881  shift
18882done
18883
18884ac_configure_extra_args=
18885
18886if $ac_cs_silent; then
18887  exec 6>/dev/null
18888  ac_configure_extra_args="$ac_configure_extra_args --silent"
18889fi
18890
18891_ACEOF
18892cat >>$CONFIG_STATUS <<_ACEOF
18893if \$ac_cs_recheck; then
18894  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18895  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18896fi
18897
18898_ACEOF
18899
18900cat >>$CONFIG_STATUS <<_ACEOF
18901#
18902# INIT-COMMANDS section.
18903#
18904
18905
18906
18907_ACEOF
18908
18909
18910
18911cat >>$CONFIG_STATUS <<\_ACEOF
18912for ac_config_target in $ac_config_targets
18913do
18914  case "$ac_config_target" in
18915  # Handling of arguments.
18916  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18917  "proxychains/Makefile" ) CONFIG_FILES="$CONFIG_FILES proxychains/Makefile" ;;
18918  "proxychains/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES proxychains/docs/Makefile" ;;
18919  "proxychains/docs/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES proxychains/docs/en/Makefile" ;;
18920  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18921  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18922  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18923echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18924   { (exit 1); exit 1; }; };;
18925  esac
18926done
18927
18928# If the user did not use the arguments to specify the items to instantiate,
18929# then the envvar interface is used.  Set only those that are not.
18930# We use the long form for the default assignment because of an extremely
18931# bizarre bug on SunOS 4.1.3.
18932if $ac_need_defaults; then
18933  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18934  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18935  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18936fi
18937
18938# Have a temporary directory for convenience.  Make it in the build tree
18939# simply because there is no reason to put it here, and in addition,
18940# creating and moving files from /tmp can sometimes cause problems.
18941# Create a temporary directory, and hook for its removal unless debugging.
18942$debug ||
18943{
18944  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18945  trap '{ (exit 1); exit 1; }' 1 2 13 15
18946}
18947
18948# Create a (secure) tmp directory for tmp files.
18949
18950{
18951  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18952  test -n "$tmp" && test -d "$tmp"
18953}  ||
18954{
18955  tmp=./confstat$$-$RANDOM
18956  (umask 077 && mkdir $tmp)
18957} ||
18958{
18959   echo "$me: cannot create a temporary directory in ." >&2
18960   { (exit 1); exit 1; }
18961}
18962
18963_ACEOF
18964
18965cat >>$CONFIG_STATUS <<_ACEOF
18966
18967#
18968# CONFIG_FILES section.
18969#
18970
18971# No need to generate the scripts if there are no CONFIG_FILES.
18972# This happens for instance when ./config.status config.h
18973if test -n "\$CONFIG_FILES"; then
18974  # Protect against being on the right side of a sed subst in config.status.
18975  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18976   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18977s,@SHELL@,$SHELL,;t t
18978s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18979s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18980s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18981s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18982s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18983s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18984s,@exec_prefix@,$exec_prefix,;t t
18985s,@prefix@,$prefix,;t t
18986s,@program_transform_name@,$program_transform_name,;t t
18987s,@bindir@,$bindir,;t t
18988s,@sbindir@,$sbindir,;t t
18989s,@libexecdir@,$libexecdir,;t t
18990s,@datadir@,$datadir,;t t
18991s,@sysconfdir@,$sysconfdir,;t t
18992s,@sharedstatedir@,$sharedstatedir,;t t
18993s,@localstatedir@,$localstatedir,;t t
18994s,@libdir@,$libdir,;t t
18995s,@includedir@,$includedir,;t t
18996s,@oldincludedir@,$oldincludedir,;t t
18997s,@infodir@,$infodir,;t t
18998s,@mandir@,$mandir,;t t
18999s,@build_alias@,$build_alias,;t t
19000s,@host_alias@,$host_alias,;t t
19001s,@target_alias@,$target_alias,;t t
19002s,@DEFS@,$DEFS,;t t
19003s,@ECHO_C@,$ECHO_C,;t t
19004s,@ECHO_N@,$ECHO_N,;t t
19005s,@ECHO_T@,$ECHO_T,;t t
19006s,@LIBS@,$LIBS,;t t
19007s,@build@,$build,;t t
19008s,@build_cpu@,$build_cpu,;t t
19009s,@build_vendor@,$build_vendor,;t t
19010s,@build_os@,$build_os,;t t
19011s,@host@,$host,;t t
19012s,@host_cpu@,$host_cpu,;t t
19013s,@host_vendor@,$host_vendor,;t t
19014s,@host_os@,$host_os,;t t
19015s,@target@,$target,;t t
19016s,@target_cpu@,$target_cpu,;t t
19017s,@target_vendor@,$target_vendor,;t t
19018s,@target_os@,$target_os,;t t
19019s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19020s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19021s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19022s,@PACKAGE@,$PACKAGE,;t t
19023s,@VERSION@,$VERSION,;t t
19024s,@ACLOCAL@,$ACLOCAL,;t t
19025s,@AUTOCONF@,$AUTOCONF,;t t
19026s,@AUTOMAKE@,$AUTOMAKE,;t t
19027s,@AUTOHEADER@,$AUTOHEADER,;t t
19028s,@MAKEINFO@,$MAKEINFO,;t t
19029s,@SET_MAKE@,$SET_MAKE,;t t
19030s,@CC@,$CC,;t t
19031s,@CFLAGS@,$CFLAGS,;t t
19032s,@LDFLAGS@,$LDFLAGS,;t t
19033s,@CPPFLAGS@,$CPPFLAGS,;t t
19034s,@ac_ct_CC@,$ac_ct_CC,;t t
19035s,@EXEEXT@,$EXEEXT,;t t
19036s,@OBJEXT@,$OBJEXT,;t t
19037s,@EGREP@,$EGREP,;t t
19038s,@LN_S@,$LN_S,;t t
19039s,@ECHO@,$ECHO,;t t
19040s,@AR@,$AR,;t t
19041s,@ac_ct_AR@,$ac_ct_AR,;t t
19042s,@RANLIB@,$RANLIB,;t t
19043s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19044s,@STRIP@,$STRIP,;t t
19045s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19046s,@CPP@,$CPP,;t t
19047s,@CXX@,$CXX,;t t
19048s,@CXXFLAGS@,$CXXFLAGS,;t t
19049s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19050s,@CXXCPP@,$CXXCPP,;t t
19051s,@F77@,$F77,;t t
19052s,@FFLAGS@,$FFLAGS,;t t
19053s,@ac_ct_F77@,$ac_ct_F77,;t t
19054s,@LIBTOOL@,$LIBTOOL,;t t
19055s,@LIBOBJS@,$LIBOBJS,;t t
19056s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19057CEOF
19058
19059_ACEOF
19060
19061  cat >>$CONFIG_STATUS <<\_ACEOF
19062  # Split the substitutions into bite-sized pieces for seds with
19063  # small command number limits, like on Digital OSF/1 and HP-UX.
19064  ac_max_sed_lines=48
19065  ac_sed_frag=1 # Number of current file.
19066  ac_beg=1 # First line for current file.
19067  ac_end=$ac_max_sed_lines # Line after last line for current file.
19068  ac_more_lines=:
19069  ac_sed_cmds=
19070  while $ac_more_lines; do
19071    if test $ac_beg -gt 1; then
19072      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19073    else
19074      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19075    fi
19076    if test ! -s $tmp/subs.frag; then
19077      ac_more_lines=false
19078    else
19079      # The purpose of the label and of the branching condition is to
19080      # speed up the sed processing (if there are no `@' at all, there
19081      # is no need to browse any of the substitutions).
19082      # These are the two extra sed commands mentioned above.
19083      (echo ':t
19084  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19085      if test -z "$ac_sed_cmds"; then
19086	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19087      else
19088	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19089      fi
19090      ac_sed_frag=`expr $ac_sed_frag + 1`
19091      ac_beg=$ac_end
19092      ac_end=`expr $ac_end + $ac_max_sed_lines`
19093    fi
19094  done
19095  if test -z "$ac_sed_cmds"; then
19096    ac_sed_cmds=cat
19097  fi
19098fi # test -n "$CONFIG_FILES"
19099
19100_ACEOF
19101cat >>$CONFIG_STATUS <<\_ACEOF
19102for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19103  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19104  case $ac_file in
19105  - | *:- | *:-:* ) # input from stdin
19106	cat >$tmp/stdin
19107	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19108	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19109  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19110	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19111  * )   ac_file_in=$ac_file.in ;;
19112  esac
19113
19114  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19115  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19117	 X"$ac_file" : 'X\(//\)[^/]' \| \
19118	 X"$ac_file" : 'X\(//\)$' \| \
19119	 X"$ac_file" : 'X\(/\)' \| \
19120	 .     : '\(.\)' 2>/dev/null ||
19121echo X"$ac_file" |
19122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19123  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19124  	  /^X\(\/\/\)$/{ s//\1/; q; }
19125  	  /^X\(\/\).*/{ s//\1/; q; }
19126  	  s/.*/./; q'`
19127  { if $as_mkdir_p; then
19128    mkdir -p "$ac_dir"
19129  else
19130    as_dir="$ac_dir"
19131    as_dirs=
19132    while test ! -d "$as_dir"; do
19133      as_dirs="$as_dir $as_dirs"
19134      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19136	 X"$as_dir" : 'X\(//\)[^/]' \| \
19137	 X"$as_dir" : 'X\(//\)$' \| \
19138	 X"$as_dir" : 'X\(/\)' \| \
19139	 .     : '\(.\)' 2>/dev/null ||
19140echo X"$as_dir" |
19141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19142  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19143  	  /^X\(\/\/\)$/{ s//\1/; q; }
19144  	  /^X\(\/\).*/{ s//\1/; q; }
19145  	  s/.*/./; q'`
19146    done
19147    test ! -n "$as_dirs" || mkdir $as_dirs
19148  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19149echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19150   { (exit 1); exit 1; }; }; }
19151
19152  ac_builddir=.
19153
19154if test "$ac_dir" != .; then
19155  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19156  # A "../" for each directory in $ac_dir_suffix.
19157  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19158else
19159  ac_dir_suffix= ac_top_builddir=
19160fi
19161
19162case $srcdir in
19163  .)  # No --srcdir option.  We are building in place.
19164    ac_srcdir=.
19165    if test -z "$ac_top_builddir"; then
19166       ac_top_srcdir=.
19167    else
19168       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19169    fi ;;
19170  [\\/]* | ?:[\\/]* )  # Absolute path.
19171    ac_srcdir=$srcdir$ac_dir_suffix;
19172    ac_top_srcdir=$srcdir ;;
19173  *) # Relative path.
19174    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19175    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19176esac
19177
19178# Do not use `cd foo && pwd` to compute absolute paths, because
19179# the directories may not exist.
19180case `pwd` in
19181.) ac_abs_builddir="$ac_dir";;
19182*)
19183  case "$ac_dir" in
19184  .) ac_abs_builddir=`pwd`;;
19185  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19186  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19187  esac;;
19188esac
19189case $ac_abs_builddir in
19190.) ac_abs_top_builddir=${ac_top_builddir}.;;
19191*)
19192  case ${ac_top_builddir}. in
19193  .) ac_abs_top_builddir=$ac_abs_builddir;;
19194  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19195  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19196  esac;;
19197esac
19198case $ac_abs_builddir in
19199.) ac_abs_srcdir=$ac_srcdir;;
19200*)
19201  case $ac_srcdir in
19202  .) ac_abs_srcdir=$ac_abs_builddir;;
19203  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19204  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19205  esac;;
19206esac
19207case $ac_abs_builddir in
19208.) ac_abs_top_srcdir=$ac_top_srcdir;;
19209*)
19210  case $ac_top_srcdir in
19211  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19212  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19213  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19214  esac;;
19215esac
19216
19217
19218  case $INSTALL in
19219  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19220  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19221  esac
19222
19223  if test x"$ac_file" != x-; then
19224    { echo "$as_me:$LINENO: creating $ac_file" >&5
19225echo "$as_me: creating $ac_file" >&6;}
19226    rm -f "$ac_file"
19227  fi
19228  # Let's still pretend it is `configure' which instantiates (i.e., don't
19229  # use $as_me), people would be surprised to read:
19230  #    /* config.h.  Generated by config.status.  */
19231  if test x"$ac_file" = x-; then
19232    configure_input=
19233  else
19234    configure_input="$ac_file.  "
19235  fi
19236  configure_input=$configure_input"Generated from `echo $ac_file_in |
19237				     sed 's,.*/,,'` by configure."
19238
19239  # First look for the input files in the build tree, otherwise in the
19240  # src tree.
19241  ac_file_inputs=`IFS=:
19242    for f in $ac_file_in; do
19243      case $f in
19244      -) echo $tmp/stdin ;;
19245      [\\/$]*)
19246	 # Absolute (can't be DOS-style, as IFS=:)
19247	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19248echo "$as_me: error: cannot find input file: $f" >&2;}
19249   { (exit 1); exit 1; }; }
19250	 echo "$f";;
19251      *) # Relative
19252	 if test -f "$f"; then
19253	   # Build tree
19254	   echo "$f"
19255	 elif test -f "$srcdir/$f"; then
19256	   # Source tree
19257	   echo "$srcdir/$f"
19258	 else
19259	   # /dev/null tree
19260	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19261echo "$as_me: error: cannot find input file: $f" >&2;}
19262   { (exit 1); exit 1; }; }
19263	 fi;;
19264      esac
19265    done` || { (exit 1); exit 1; }
19266_ACEOF
19267cat >>$CONFIG_STATUS <<_ACEOF
19268  sed "$ac_vpsub
19269$extrasub
19270_ACEOF
19271cat >>$CONFIG_STATUS <<\_ACEOF
19272:t
19273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19274s,@configure_input@,$configure_input,;t t
19275s,@srcdir@,$ac_srcdir,;t t
19276s,@abs_srcdir@,$ac_abs_srcdir,;t t
19277s,@top_srcdir@,$ac_top_srcdir,;t t
19278s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19279s,@builddir@,$ac_builddir,;t t
19280s,@abs_builddir@,$ac_abs_builddir,;t t
19281s,@top_builddir@,$ac_top_builddir,;t t
19282s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19283s,@INSTALL@,$ac_INSTALL,;t t
19284" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19285  rm -f $tmp/stdin
19286  if test x"$ac_file" != x-; then
19287    mv $tmp/out $ac_file
19288  else
19289    cat $tmp/out
19290    rm -f $tmp/out
19291  fi
19292
19293done
19294_ACEOF
19295cat >>$CONFIG_STATUS <<\_ACEOF
19296
19297#
19298# CONFIG_HEADER section.
19299#
19300
19301# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19302# NAME is the cpp macro being defined and VALUE is the value it is being given.
19303#
19304# ac_d sets the value in "#define NAME VALUE" lines.
19305ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
19306ac_dB='[	 ].*$,\1#\2'
19307ac_dC=' '
19308ac_dD=',;t'
19309# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19310ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
19311ac_uB='$,\1#\2define\3'
19312ac_uC=' '
19313ac_uD=',;t'
19314
19315for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19316  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19317  case $ac_file in
19318  - | *:- | *:-:* ) # input from stdin
19319	cat >$tmp/stdin
19320	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19321	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19322  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19323	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19324  * )   ac_file_in=$ac_file.in ;;
19325  esac
19326
19327  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19328echo "$as_me: creating $ac_file" >&6;}
19329
19330  # First look for the input files in the build tree, otherwise in the
19331  # src tree.
19332  ac_file_inputs=`IFS=:
19333    for f in $ac_file_in; do
19334      case $f in
19335      -) echo $tmp/stdin ;;
19336      [\\/$]*)
19337	 # Absolute (can't be DOS-style, as IFS=:)
19338	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19339echo "$as_me: error: cannot find input file: $f" >&2;}
19340   { (exit 1); exit 1; }; }
19341	 # Do quote $f, to prevent DOS paths from being IFS'd.
19342	 echo "$f";;
19343      *) # Relative
19344	 if test -f "$f"; then
19345	   # Build tree
19346	   echo "$f"
19347	 elif test -f "$srcdir/$f"; then
19348	   # Source tree
19349	   echo "$srcdir/$f"
19350	 else
19351	   # /dev/null tree
19352	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19353echo "$as_me: error: cannot find input file: $f" >&2;}
19354   { (exit 1); exit 1; }; }
19355	 fi;;
19356      esac
19357    done` || { (exit 1); exit 1; }
19358  # Remove the trailing spaces.
19359  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
19360
19361_ACEOF
19362
19363# Transform confdefs.h into two sed scripts, `conftest.defines' and
19364# `conftest.undefs', that substitutes the proper values into
19365# config.h.in to produce config.h.  The first handles `#define'
19366# templates, and the second `#undef' templates.
19367# And first: Protect against being on the right side of a sed subst in
19368# config.status.  Protect against being in an unquoted here document
19369# in config.status.
19370rm -f conftest.defines conftest.undefs
19371# Using a here document instead of a string reduces the quoting nightmare.
19372# Putting comments in sed scripts is not portable.
19373#
19374# `end' is used to avoid that the second main sed command (meant for
19375# 0-ary CPP macros) applies to n-ary macro definitions.
19376# See the Autoconf documentation for `clear'.
19377cat >confdef2sed.sed <<\_ACEOF
19378s/[\\&,]/\\&/g
19379s,[\\$`],\\&,g
19380t clear
19381: clear
19382s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19383t end
19384s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19385: end
19386_ACEOF
19387# If some macros were called several times there might be several times
19388# the same #defines, which is useless.  Nevertheless, we may not want to
19389# sort them, since we want the *last* AC-DEFINE to be honored.
19390uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19391sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19392rm -f confdef2sed.sed
19393
19394# This sed command replaces #undef with comments.  This is necessary, for
19395# example, in the case of _POSIX_SOURCE, which is predefined and required
19396# on some systems where configure will not decide to define it.
19397cat >>conftest.undefs <<\_ACEOF
19398s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19399_ACEOF
19400
19401# Break up conftest.defines because some shells have a limit on the size
19402# of here documents, and old seds have small limits too (100 cmds).
19403echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19404echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19405echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19406echo '  :' >>$CONFIG_STATUS
19407rm -f conftest.tail
19408while grep . conftest.defines >/dev/null
19409do
19410  # Write a limited-size here document to $tmp/defines.sed.
19411  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19412  # Speed up: don't consider the non `#define' lines.
19413  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
19414  # Work around the forget-to-reset-the-flag bug.
19415  echo 't clr' >>$CONFIG_STATUS
19416  echo ': clr' >>$CONFIG_STATUS
19417  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19418  echo 'CEOF
19419  sed -f $tmp/defines.sed $tmp/in >$tmp/out
19420  rm -f $tmp/in
19421  mv $tmp/out $tmp/in
19422' >>$CONFIG_STATUS
19423  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19424  rm -f conftest.defines
19425  mv conftest.tail conftest.defines
19426done
19427rm -f conftest.defines
19428echo '  fi # grep' >>$CONFIG_STATUS
19429echo >>$CONFIG_STATUS
19430
19431# Break up conftest.undefs because some shells have a limit on the size
19432# of here documents, and old seds have small limits too (100 cmds).
19433echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19434rm -f conftest.tail
19435while grep . conftest.undefs >/dev/null
19436do
19437  # Write a limited-size here document to $tmp/undefs.sed.
19438  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19439  # Speed up: don't consider the non `#undef'
19440  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
19441  # Work around the forget-to-reset-the-flag bug.
19442  echo 't clr' >>$CONFIG_STATUS
19443  echo ': clr' >>$CONFIG_STATUS
19444  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19445  echo 'CEOF
19446  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19447  rm -f $tmp/in
19448  mv $tmp/out $tmp/in
19449' >>$CONFIG_STATUS
19450  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19451  rm -f conftest.undefs
19452  mv conftest.tail conftest.undefs
19453done
19454rm -f conftest.undefs
19455
19456cat >>$CONFIG_STATUS <<\_ACEOF
19457  # Let's still pretend it is `configure' which instantiates (i.e., don't
19458  # use $as_me), people would be surprised to read:
19459  #    /* config.h.  Generated by config.status.  */
19460  if test x"$ac_file" = x-; then
19461    echo "/* Generated by configure.  */" >$tmp/config.h
19462  else
19463    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19464  fi
19465  cat $tmp/in >>$tmp/config.h
19466  rm -f $tmp/in
19467  if test x"$ac_file" != x-; then
19468    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19469      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19470echo "$as_me: $ac_file is unchanged" >&6;}
19471    else
19472      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474	 X"$ac_file" : 'X\(//\)[^/]' \| \
19475	 X"$ac_file" : 'X\(//\)$' \| \
19476	 X"$ac_file" : 'X\(/\)' \| \
19477	 .     : '\(.\)' 2>/dev/null ||
19478echo X"$ac_file" |
19479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19480  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19481  	  /^X\(\/\/\)$/{ s//\1/; q; }
19482  	  /^X\(\/\).*/{ s//\1/; q; }
19483  	  s/.*/./; q'`
19484      { if $as_mkdir_p; then
19485    mkdir -p "$ac_dir"
19486  else
19487    as_dir="$ac_dir"
19488    as_dirs=
19489    while test ! -d "$as_dir"; do
19490      as_dirs="$as_dir $as_dirs"
19491      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19493	 X"$as_dir" : 'X\(//\)[^/]' \| \
19494	 X"$as_dir" : 'X\(//\)$' \| \
19495	 X"$as_dir" : 'X\(/\)' \| \
19496	 .     : '\(.\)' 2>/dev/null ||
19497echo X"$as_dir" |
19498    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19499  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19500  	  /^X\(\/\/\)$/{ s//\1/; q; }
19501  	  /^X\(\/\).*/{ s//\1/; q; }
19502  	  s/.*/./; q'`
19503    done
19504    test ! -n "$as_dirs" || mkdir $as_dirs
19505  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19506echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19507   { (exit 1); exit 1; }; }; }
19508
19509      rm -f $ac_file
19510      mv $tmp/config.h $ac_file
19511    fi
19512  else
19513    cat $tmp/config.h
19514    rm -f $tmp/config.h
19515  fi
19516done
19517_ACEOF
19518cat >>$CONFIG_STATUS <<\_ACEOF
19519
19520#
19521# CONFIG_COMMANDS section.
19522#
19523for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19524  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19525  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19526  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19527$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528	 X"$ac_dest" : 'X\(//\)[^/]' \| \
19529	 X"$ac_dest" : 'X\(//\)$' \| \
19530	 X"$ac_dest" : 'X\(/\)' \| \
19531	 .     : '\(.\)' 2>/dev/null ||
19532echo X"$ac_dest" |
19533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19534  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19535  	  /^X\(\/\/\)$/{ s//\1/; q; }
19536  	  /^X\(\/\).*/{ s//\1/; q; }
19537  	  s/.*/./; q'`
19538  { if $as_mkdir_p; then
19539    mkdir -p "$ac_dir"
19540  else
19541    as_dir="$ac_dir"
19542    as_dirs=
19543    while test ! -d "$as_dir"; do
19544      as_dirs="$as_dir $as_dirs"
19545      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19546$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547	 X"$as_dir" : 'X\(//\)[^/]' \| \
19548	 X"$as_dir" : 'X\(//\)$' \| \
19549	 X"$as_dir" : 'X\(/\)' \| \
19550	 .     : '\(.\)' 2>/dev/null ||
19551echo X"$as_dir" |
19552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19553  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19554  	  /^X\(\/\/\)$/{ s//\1/; q; }
19555  	  /^X\(\/\).*/{ s//\1/; q; }
19556  	  s/.*/./; q'`
19557    done
19558    test ! -n "$as_dirs" || mkdir $as_dirs
19559  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19560echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19561   { (exit 1); exit 1; }; }; }
19562
19563  ac_builddir=.
19564
19565if test "$ac_dir" != .; then
19566  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19567  # A "../" for each directory in $ac_dir_suffix.
19568  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19569else
19570  ac_dir_suffix= ac_top_builddir=
19571fi
19572
19573case $srcdir in
19574  .)  # No --srcdir option.  We are building in place.
19575    ac_srcdir=.
19576    if test -z "$ac_top_builddir"; then
19577       ac_top_srcdir=.
19578    else
19579       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19580    fi ;;
19581  [\\/]* | ?:[\\/]* )  # Absolute path.
19582    ac_srcdir=$srcdir$ac_dir_suffix;
19583    ac_top_srcdir=$srcdir ;;
19584  *) # Relative path.
19585    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19586    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19587esac
19588
19589# Do not use `cd foo && pwd` to compute absolute paths, because
19590# the directories may not exist.
19591case `pwd` in
19592.) ac_abs_builddir="$ac_dir";;
19593*)
19594  case "$ac_dir" in
19595  .) ac_abs_builddir=`pwd`;;
19596  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19597  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19598  esac;;
19599esac
19600case $ac_abs_builddir in
19601.) ac_abs_top_builddir=${ac_top_builddir}.;;
19602*)
19603  case ${ac_top_builddir}. in
19604  .) ac_abs_top_builddir=$ac_abs_builddir;;
19605  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19606  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19607  esac;;
19608esac
19609case $ac_abs_builddir in
19610.) ac_abs_srcdir=$ac_srcdir;;
19611*)
19612  case $ac_srcdir in
19613  .) ac_abs_srcdir=$ac_abs_builddir;;
19614  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19615  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19616  esac;;
19617esac
19618case $ac_abs_builddir in
19619.) ac_abs_top_srcdir=$ac_top_srcdir;;
19620*)
19621  case $ac_top_srcdir in
19622  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19623  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19624  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19625  esac;;
19626esac
19627
19628
19629  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19630echo "$as_me: executing $ac_dest commands" >&6;}
19631  case $ac_dest in
19632    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
19633  esac
19634done
19635_ACEOF
19636
19637cat >>$CONFIG_STATUS <<\_ACEOF
19638
19639{ (exit 0); exit 0; }
19640_ACEOF
19641chmod +x $CONFIG_STATUS
19642ac_clean_files=$ac_clean_files_save
19643
19644
19645# configure is writing to config.log, and then calls config.status.
19646# config.status does its own redirection, appending to config.log.
19647# Unfortunately, on DOS this fails, as config.log is still kept open
19648# by configure, so config.status won't be able to write to it; its
19649# output is simply discarded.  So we exec the FD to /dev/null,
19650# effectively closing config.log, so it can be properly (re)opened and
19651# appended to by config.status.  When coming back to configure, we
19652# need to make the FD available again.
19653if test "$no_create" != yes; then
19654  ac_cs_success=:
19655  ac_config_status_args=
19656  test "$silent" = yes &&
19657    ac_config_status_args="$ac_config_status_args --quiet"
19658  exec 5>/dev/null
19659  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19660  exec 5>>config.log
19661  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19662  # would make configure fail if this is the last instruction.
19663  $ac_cs_success || { (exit 1); exit 1; }
19664fi
19665
19666