1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
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
398tagnames=${tagnames+${tagnames},}GCJ
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME=
425PACKAGE_TARNAME=
426PACKAGE_VERSION=
427PACKAGE_STRING=
428PACKAGE_BUGREPORT=
429
430ac_unique_file="src/org/thestaticvoid/iriverter/ConverterUI.java"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar GCJ GCJFLAGS DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BUILD_WIN_TRUE BUILD_WIN_FALSE BUILD_GCJ_TRUE BUILD_GCJ_FALSE WINDRES JAVAC FASTJAR GCJ_JAR JAR SWT_JAR LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r "$srcdir/$ac_unique_file"; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r "$srcdir/$ac_unique_file"; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures this package to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022
1023  cat <<\_ACEOF
1024
1025Optional Features:
1026  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028  --disable-dependency-tracking  speeds up one-time build
1029  --enable-dependency-tracking   do not reject slow dependency extractors
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=no]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038Optional Packages:
1039  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042  --with-pic              try to use only PIC/non-PIC objects [default=use
1043                          both]
1044  --with-tags[=TAGS]
1045                          include additional configurations [automatic]
1046  --with-gcj              build JunePimp using the GCJ compiler
1047  --with-swt=JAR          the jar contating the SWT library
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066_ACEOF
1067fi
1068
1069if test "$ac_init_help" = "recursive"; then
1070  # If there are subdirs, report their specific --help.
1071  ac_popdir=`pwd`
1072  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073    test -d $ac_dir || continue
1074    ac_builddir=.
1075
1076if test "$ac_dir" != .; then
1077  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078  # A "../" for each directory in $ac_dir_suffix.
1079  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080else
1081  ac_dir_suffix= ac_top_builddir=
1082fi
1083
1084case $srcdir in
1085  .)  # No --srcdir option.  We are building in place.
1086    ac_srcdir=.
1087    if test -z "$ac_top_builddir"; then
1088       ac_top_srcdir=.
1089    else
1090       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091    fi ;;
1092  [\\/]* | ?:[\\/]* )  # Absolute path.
1093    ac_srcdir=$srcdir$ac_dir_suffix;
1094    ac_top_srcdir=$srcdir ;;
1095  *) # Relative path.
1096    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098esac
1099
1100# Do not use `cd foo && pwd` to compute absolute paths, because
1101# the directories may not exist.
1102case `pwd` in
1103.) ac_abs_builddir="$ac_dir";;
1104*)
1105  case "$ac_dir" in
1106  .) ac_abs_builddir=`pwd`;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109  esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_builddir=${ac_top_builddir}.;;
1113*)
1114  case ${ac_top_builddir}. in
1115  .) ac_abs_top_builddir=$ac_abs_builddir;;
1116  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118  esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_srcdir=$ac_srcdir;;
1122*)
1123  case $ac_srcdir in
1124  .) ac_abs_srcdir=$ac_abs_builddir;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_srcdir=$ac_top_srcdir;;
1131*)
1132  case $ac_top_srcdir in
1133  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136  esac;;
1137esac
1138
1139    cd $ac_dir
1140    # Check for guested configure; otherwise get Cygnus style configure.
1141    if test -f $ac_srcdir/configure.gnu; then
1142      echo
1143      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1144    elif test -f $ac_srcdir/configure; then
1145      echo
1146      $SHELL $ac_srcdir/configure  --help=recursive
1147    elif test -f $ac_srcdir/configure.ac ||
1148	   test -f $ac_srcdir/configure.in; then
1149      echo
1150      $ac_configure --help
1151    else
1152      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153    fi
1154    cd $ac_popdir
1155  done
1156fi
1157
1158test -n "$ac_init_help" && exit 0
1159if $ac_init_version; then
1160  cat <<\_ACEOF
1161
1162Copyright (C) 2003 Free Software Foundation, Inc.
1163This configure script is free software; the Free Software Foundation
1164gives unlimited permission to copy, distribute and modify it.
1165_ACEOF
1166  exit 0
1167fi
1168exec 5>config.log
1169cat >&5 <<_ACEOF
1170This file contains any messages produced by compilers while
1171running configure, to aid debugging if configure makes a mistake.
1172
1173It was created by $as_me, which was
1174generated by GNU Autoconf 2.59.  Invocation command line was
1175
1176  $ $0 $@
1177
1178_ACEOF
1179{
1180cat <<_ASUNAME
1181## --------- ##
1182## Platform. ##
1183## --------- ##
1184
1185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1193
1194/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1195/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1198/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1199/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1200/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1201
1202_ASUNAME
1203
1204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205for as_dir in $PATH
1206do
1207  IFS=$as_save_IFS
1208  test -z "$as_dir" && as_dir=.
1209  echo "PATH: $as_dir"
1210done
1211
1212} >&5
1213
1214cat >&5 <<_ACEOF
1215
1216
1217## ----------- ##
1218## Core tests. ##
1219## ----------- ##
1220
1221_ACEOF
1222
1223
1224# Keep a trace of the command line.
1225# Strip out --no-create and --no-recursion so they do not pile up.
1226# Strip out --silent because we don't want to record it for future runs.
1227# Also quote any args containing shell meta-characters.
1228# Make two passes to allow for proper duplicate-argument suppression.
1229ac_configure_args=
1230ac_configure_args0=
1231ac_configure_args1=
1232ac_sep=
1233ac_must_keep_next=false
1234for ac_pass in 1 2
1235do
1236  for ac_arg
1237  do
1238    case $ac_arg in
1239    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241    | -silent | --silent | --silen | --sile | --sil)
1242      continue ;;
1243    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245    esac
1246    case $ac_pass in
1247    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248    2)
1249      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250      if test $ac_must_keep_next = true; then
1251	ac_must_keep_next=false # Got value, back to normal.
1252      else
1253	case $ac_arg in
1254	  *=* | --config-cache | -C | -disable-* | --disable-* \
1255	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257	  | -with-* | --with-* | -without-* | --without-* | --x)
1258	    case "$ac_configure_args0 " in
1259	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260	    esac
1261	    ;;
1262	  -* ) ac_must_keep_next=true ;;
1263	esac
1264      fi
1265      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266      # Get rid of the leading space.
1267      ac_sep=" "
1268      ;;
1269    esac
1270  done
1271done
1272$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275# When interrupted or exit'd, cleanup temporary files, and complete
1276# config.log.  We remove comments because anyway the quotes in there
1277# would cause problems or look ugly.
1278# WARNING: Be sure not to use single quotes in there, as some shells,
1279# such as our DU 5.0 friend, will then `close' the trap.
1280trap 'exit_status=$?
1281  # Save into config.log some information that might help in debugging.
1282  {
1283    echo
1284
1285    cat <<\_ASBOX
1286## ---------------- ##
1287## Cache variables. ##
1288## ---------------- ##
1289_ASBOX
1290    echo
1291    # The following way of writing the cache mishandles newlines in values,
1292{
1293  (set) 2>&1 |
1294    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295    *ac_space=\ *)
1296      sed -n \
1297	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299      ;;
1300    *)
1301      sed -n \
1302	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303      ;;
1304    esac;
1305}
1306    echo
1307
1308    cat <<\_ASBOX
1309## ----------------- ##
1310## Output variables. ##
1311## ----------------- ##
1312_ASBOX
1313    echo
1314    for ac_var in $ac_subst_vars
1315    do
1316      eval ac_val=$`echo $ac_var`
1317      echo "$ac_var='"'"'$ac_val'"'"'"
1318    done | sort
1319    echo
1320
1321    if test -n "$ac_subst_files"; then
1322      cat <<\_ASBOX
1323## ------------- ##
1324## Output files. ##
1325## ------------- ##
1326_ASBOX
1327      echo
1328      for ac_var in $ac_subst_files
1329      do
1330	eval ac_val=$`echo $ac_var`
1331	echo "$ac_var='"'"'$ac_val'"'"'"
1332      done | sort
1333      echo
1334    fi
1335
1336    if test -s confdefs.h; then
1337      cat <<\_ASBOX
1338## ----------- ##
1339## confdefs.h. ##
1340## ----------- ##
1341_ASBOX
1342      echo
1343      sed "/^$/d" confdefs.h | sort
1344      echo
1345    fi
1346    test "$ac_signal" != 0 &&
1347      echo "$as_me: caught signal $ac_signal"
1348    echo "$as_me: exit $exit_status"
1349  } >&5
1350  rm -f core *.core &&
1351  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352    exit $exit_status
1353     ' 0
1354for ac_signal in 1 2 13 15; do
1355  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356done
1357ac_signal=0
1358
1359# confdefs.h avoids OS command line length limits that DEFS can exceed.
1360rm -rf conftest* confdefs.h
1361# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362echo >confdefs.h
1363
1364# Predefined preprocessor variables.
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_NAME "$PACKAGE_NAME"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_VERSION "$PACKAGE_VERSION"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_STRING "$PACKAGE_STRING"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388_ACEOF
1389
1390
1391# Let the site file select an alternate cache file if it wants to.
1392# Prefer explicitly selected file to automatically selected ones.
1393if test -z "$CONFIG_SITE"; then
1394  if test "x$prefix" != xNONE; then
1395    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396  else
1397    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398  fi
1399fi
1400for ac_site_file in $CONFIG_SITE; do
1401  if test -r "$ac_site_file"; then
1402    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403echo "$as_me: loading site script $ac_site_file" >&6;}
1404    sed 's/^/| /' "$ac_site_file" >&5
1405    . "$ac_site_file"
1406  fi
1407done
1408
1409if test -r "$cache_file"; then
1410  # Some versions of bash will fail to source /dev/null (special
1411  # files actually), so we avoid doing that.
1412  if test -f "$cache_file"; then
1413    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414echo "$as_me: loading cache $cache_file" >&6;}
1415    case $cache_file in
1416      [\\/]* | ?:[\\/]* ) . $cache_file;;
1417      *)                      . ./$cache_file;;
1418    esac
1419  fi
1420else
1421  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422echo "$as_me: creating cache $cache_file" >&6;}
1423  >$cache_file
1424fi
1425
1426# Check that the precious variables saved in the cache have kept the same
1427# value.
1428ac_cache_corrupted=false
1429for ac_var in `(set) 2>&1 |
1430	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432  eval ac_new_set=\$ac_env_${ac_var}_set
1433  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434  eval ac_new_val="\$ac_env_${ac_var}_value"
1435  case $ac_old_set,$ac_new_set in
1436    set,)
1437      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439      ac_cache_corrupted=: ;;
1440    ,set)
1441      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443      ac_cache_corrupted=: ;;
1444    ,);;
1445    *)
1446      if test "x$ac_old_val" != "x$ac_new_val"; then
1447	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1450echo "$as_me:   former value:  $ac_old_val" >&2;}
1451	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1452echo "$as_me:   current value: $ac_new_val" >&2;}
1453	ac_cache_corrupted=:
1454      fi;;
1455  esac
1456  # Pass precious variables to config.status.
1457  if test "$ac_new_set" = set; then
1458    case $ac_new_val in
1459    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461    *) ac_arg=$ac_var=$ac_new_val ;;
1462    esac
1463    case " $ac_configure_args " in
1464      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1465      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466    esac
1467  fi
1468done
1469if $ac_cache_corrupted; then
1470  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474   { (exit 1); exit 1; }; }
1475fi
1476
1477ac_ext=c
1478ac_cpp='$CPP $CPPFLAGS'
1479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502VERSION=0.16
1503
1504
1505am__api_version="1.9"
1506ac_aux_dir=
1507for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508  if test -f $ac_dir/install-sh; then
1509    ac_aux_dir=$ac_dir
1510    ac_install_sh="$ac_aux_dir/install-sh -c"
1511    break
1512  elif 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/shtool; then
1517    ac_aux_dir=$ac_dir
1518    ac_install_sh="$ac_aux_dir/shtool install -c"
1519    break
1520  fi
1521done
1522if test -z "$ac_aux_dir"; then
1523  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525   { (exit 1); exit 1; }; }
1526fi
1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531# Find a good install program.  We prefer a C program (faster),
1532# so one script is as good as another.  But avoid the broken or
1533# incompatible versions:
1534# SysV /etc/install, /usr/sbin/install
1535# SunOS /usr/etc/install
1536# IRIX /sbin/install
1537# AIX /bin/install
1538# AmigaOS /C/install, which installs bootblocks on floppy discs
1539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542# OS/2's system install, which has a completely different semantic
1543# ./install, which can be erroneously created by make from ./install.sh.
1544echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546if test -z "$INSTALL"; then
1547if test "${ac_cv_path_install+set}" = set; then
1548  echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551for as_dir in $PATH
1552do
1553  IFS=$as_save_IFS
1554  test -z "$as_dir" && as_dir=.
1555  # Account for people who put trailing slashes in PATH elements.
1556case $as_dir/ in
1557  ./ | .// | /cC/* | \
1558  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560  /usr/ucb/* ) ;;
1561  *)
1562    # OSF1 and SCO ODT 3.0 have their own names for install.
1563    # Don't use installbsd from OSF since it installs stuff as root
1564    # by default.
1565    for ac_prog in ginstall scoinst install; do
1566      for ac_exec_ext in '' $ac_executable_extensions; do
1567	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568	  if test $ac_prog = install &&
1569	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570	    # AIX install.  It has an incompatible calling convention.
1571	    :
1572	  elif test $ac_prog = install &&
1573	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574	    # program-specific install script used by HP pwplus--don't use.
1575	    :
1576	  else
1577	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1578	    break 3
1579	  fi
1580	fi
1581      done
1582    done
1583    ;;
1584esac
1585done
1586
1587
1588fi
1589  if test "${ac_cv_path_install+set}" = set; then
1590    INSTALL=$ac_cv_path_install
1591  else
1592    # As a last resort, use the slow shell script.  We don't cache a
1593    # path for INSTALL within a source directory, because that will
1594    # break other packages using the cache if that directory is
1595    # removed, or if the path is relative.
1596    INSTALL=$ac_install_sh
1597  fi
1598fi
1599echo "$as_me:$LINENO: result: $INSTALL" >&5
1600echo "${ECHO_T}$INSTALL" >&6
1601
1602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603# It thinks the first close brace ends the variable substitution.
1604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605
1606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1607
1608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609
1610echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1611echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1612# Just in case
1613sleep 1
1614echo timestamp > conftest.file
1615# Do `set' in a subshell so we don't clobber the current shell's
1616# arguments.  Must try -L first in case configure is actually a
1617# symlink; some systems play weird games with the mod time of symlinks
1618# (eg FreeBSD returns the mod time of the symlink's containing
1619# directory).
1620if (
1621   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1622   if test "$*" = "X"; then
1623      # -L didn't work.
1624      set X `ls -t $srcdir/configure conftest.file`
1625   fi
1626   rm -f conftest.file
1627   if test "$*" != "X $srcdir/configure conftest.file" \
1628      && test "$*" != "X conftest.file $srcdir/configure"; then
1629
1630      # If neither matched, then we have a broken ls.  This can happen
1631      # if, for instance, CONFIG_SHELL is bash and it inherits a
1632      # broken ls alias from the environment.  This has actually
1633      # happened.  Such a system could not be considered "sane".
1634      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1635alias in your environment" >&5
1636echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1637alias in your environment" >&2;}
1638   { (exit 1); exit 1; }; }
1639   fi
1640
1641   test "$2" = conftest.file
1642   )
1643then
1644   # Ok.
1645   :
1646else
1647   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1648Check your system clock" >&5
1649echo "$as_me: error: newly created file is older than distributed files!
1650Check your system clock" >&2;}
1651   { (exit 1); exit 1; }; }
1652fi
1653echo "$as_me:$LINENO: result: yes" >&5
1654echo "${ECHO_T}yes" >&6
1655test "$program_prefix" != NONE &&
1656  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1657# Use a double $ so make ignores it.
1658test "$program_suffix" != NONE &&
1659  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1660# Double any \ or $.  echo might interpret backslashes.
1661# By default was `s,x,x', remove it if useless.
1662cat <<\_ACEOF >conftest.sed
1663s/[\\$]/&&/g;s/;s,x,x,$//
1664_ACEOF
1665program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1666rm conftest.sed
1667
1668# expand $ac_aux_dir to an absolute path
1669am_aux_dir=`cd $ac_aux_dir && pwd`
1670
1671test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1672# Use eval to expand $SHELL
1673if eval "$MISSING --run true"; then
1674  am_missing_run="$MISSING --run "
1675else
1676  am_missing_run=
1677  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1678echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1679fi
1680
1681if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1682  # We used to keeping the `.' as first argument, in order to
1683  # allow $(mkdir_p) to be used without argument.  As in
1684  #   $(mkdir_p) $(somedir)
1685  # where $(somedir) is conditionally defined.  However this is wrong
1686  # for two reasons:
1687  #  1. if the package is installed by a user who cannot write `.'
1688  #     make install will fail,
1689  #  2. the above comment should most certainly read
1690  #     $(mkdir_p) $(DESTDIR)$(somedir)
1691  #     so it does not work when $(somedir) is undefined and
1692  #     $(DESTDIR) is not.
1693  #  To support the latter case, we have to write
1694  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1695  #  so the `.' trick is pointless.
1696  mkdir_p='mkdir -p --'
1697else
1698  # On NextStep and OpenStep, the `mkdir' command does not
1699  # recognize any option.  It will interpret all options as
1700  # directories to create, and then abort because `.' already
1701  # exists.
1702  for d in ./-p ./--version;
1703  do
1704    test -d $d && rmdir $d
1705  done
1706  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1707  if test -f "$ac_aux_dir/mkinstalldirs"; then
1708    mkdir_p='$(mkinstalldirs)'
1709  else
1710    mkdir_p='$(install_sh) -d'
1711  fi
1712fi
1713
1714for ac_prog in gawk mawk nawk awk
1715do
1716  # Extract the first word of "$ac_prog", so it can be a program name with args.
1717set dummy $ac_prog; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_AWK+set}" = set; then
1721  echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723  if test -n "$AWK"; then
1724  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729  IFS=$as_save_IFS
1730  test -z "$as_dir" && as_dir=.
1731  for ac_exec_ext in '' $ac_executable_extensions; do
1732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733    ac_cv_prog_AWK="$ac_prog"
1734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735    break 2
1736  fi
1737done
1738done
1739
1740fi
1741fi
1742AWK=$ac_cv_prog_AWK
1743if test -n "$AWK"; then
1744  echo "$as_me:$LINENO: result: $AWK" >&5
1745echo "${ECHO_T}$AWK" >&6
1746else
1747  echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751  test -n "$AWK" && break
1752done
1753
1754echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1755echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1756set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1757if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1758  echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760  cat >conftest.make <<\_ACEOF
1761all:
1762	@echo 'ac_maketemp="$(MAKE)"'
1763_ACEOF
1764# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1765eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1766if test -n "$ac_maketemp"; then
1767  eval ac_cv_prog_make_${ac_make}_set=yes
1768else
1769  eval ac_cv_prog_make_${ac_make}_set=no
1770fi
1771rm -f conftest.make
1772fi
1773if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1774  echo "$as_me:$LINENO: result: yes" >&5
1775echo "${ECHO_T}yes" >&6
1776  SET_MAKE=
1777else
1778  echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
1780  SET_MAKE="MAKE=${MAKE-make}"
1781fi
1782
1783rm -rf .tst 2>/dev/null
1784mkdir .tst 2>/dev/null
1785if test -d .tst; then
1786  am__leading_dot=.
1787else
1788  am__leading_dot=_
1789fi
1790rmdir .tst 2>/dev/null
1791
1792# test to see if srcdir already configured
1793if test "`cd $srcdir && pwd`" != "`pwd`" &&
1794   test -f $srcdir/config.status; then
1795  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1796echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1797   { (exit 1); exit 1; }; }
1798fi
1799
1800# test whether we have cygpath
1801if test -z "$CYGPATH_W"; then
1802  if (cygpath --version) >/dev/null 2>/dev/null; then
1803    CYGPATH_W='cygpath -w'
1804  else
1805    CYGPATH_W=echo
1806  fi
1807fi
1808
1809
1810# Define the identity of the package.
1811 PACKAGE=iriverter
1812 VERSION=$VERSION
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE "$PACKAGE"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define VERSION "$VERSION"
1822_ACEOF
1823
1824# Some tools Automake needs.
1825
1826ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827
1828
1829AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830
1831
1832AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833
1834
1835AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836
1837
1838MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1839
1840install_sh=${install_sh-"$am_aux_dir/install-sh"}
1841
1842# Installed binaries are usually stripped using `strip' when the user
1843# run `make install-strip'.  However `strip' might not be the right
1844# tool to use in cross-compilation environments, therefore Automake
1845# will honor the `STRIP' environment variable to overrule this program.
1846if test "$cross_compiling" != no; then
1847  if test -n "$ac_tool_prefix"; then
1848  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}strip; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_STRIP+set}" = set; then
1853  echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855  if test -n "$STRIP"; then
1856  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861  IFS=$as_save_IFS
1862  test -z "$as_dir" && as_dir=.
1863  for ac_exec_ext in '' $ac_executable_extensions; do
1864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867    break 2
1868  fi
1869done
1870done
1871
1872fi
1873fi
1874STRIP=$ac_cv_prog_STRIP
1875if test -n "$STRIP"; then
1876  echo "$as_me:$LINENO: result: $STRIP" >&5
1877echo "${ECHO_T}$STRIP" >&6
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883fi
1884if test -z "$ac_cv_prog_STRIP"; then
1885  ac_ct_STRIP=$STRIP
1886  # Extract the first word of "strip", so it can be a program name with args.
1887set dummy strip; ac_word=$2
1888echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1891  echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893  if test -n "$ac_ct_STRIP"; then
1894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901  for ac_exec_ext in '' $ac_executable_extensions; do
1902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903    ac_cv_prog_ac_ct_STRIP="strip"
1904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905    break 2
1906  fi
1907done
1908done
1909
1910  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1911fi
1912fi
1913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1914if test -n "$ac_ct_STRIP"; then
1915  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1916echo "${ECHO_T}$ac_ct_STRIP" >&6
1917else
1918  echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922  STRIP=$ac_ct_STRIP
1923else
1924  STRIP="$ac_cv_prog_STRIP"
1925fi
1926
1927fi
1928INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1929
1930# We need awk for the "check" target.  The system "awk" is bad on
1931# some platforms.
1932# Always define AMTAR for backward compatibility.
1933
1934AMTAR=${AMTAR-"${am_missing_run}tar"}
1935
1936am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1937
1938
1939
1940
1941
1942
1943DEPDIR="${am__leading_dot}deps"
1944
1945          ac_config_commands="$ac_config_commands depfiles"
1946
1947
1948am_make=${MAKE-make}
1949cat > confinc << 'END'
1950am__doit:
1951	@echo done
1952.PHONY: am__doit
1953END
1954# If we don't find an include directive, just comment out the code.
1955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1957am__include="#"
1958am__quote=
1959_am_result=none
1960# First try GNU make style include.
1961echo "include confinc" > confmf
1962# We grep out `Entering directory' and `Leaving directory'
1963# messages which can occur if `w' ends up in MAKEFLAGS.
1964# In particular we don't look at `^make:' because GNU make might
1965# be invoked under some other name (usually "gmake"), in which
1966# case it prints its new name instead of `make'.
1967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1968   am__include=include
1969   am__quote=
1970   _am_result=GNU
1971fi
1972# Now try BSD make style include.
1973if test "$am__include" = "#"; then
1974   echo '.include "confinc"' > confmf
1975   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1976      am__include=.include
1977      am__quote="\""
1978      _am_result=BSD
1979   fi
1980fi
1981
1982
1983echo "$as_me:$LINENO: result: $_am_result" >&5
1984echo "${ECHO_T}$_am_result" >&6
1985rm -f confinc confmf
1986
1987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1988if test "${enable_dependency_tracking+set}" = set; then
1989  enableval="$enable_dependency_tracking"
1990
1991fi;
1992if test "x$enable_dependency_tracking" != xno; then
1993  am_depcomp="$ac_aux_dir/depcomp"
1994  AMDEPBACKSLASH='\'
1995fi
1996
1997
1998if test "x$enable_dependency_tracking" != xno; then
1999  AMDEP_TRUE=
2000  AMDEP_FALSE='#'
2001else
2002  AMDEP_TRUE='#'
2003  AMDEP_FALSE=
2004fi
2005
2006
2007
2008
2009for ac_prog in gcj
2010do
2011  # Extract the first word of "$ac_prog", so it can be a program name with args.
2012set dummy $ac_prog; ac_word=$2
2013echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015if test "${ac_cv_prog_GCJ+set}" = set; then
2016  echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018  if test -n "$GCJ"; then
2019  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024  IFS=$as_save_IFS
2025  test -z "$as_dir" && as_dir=.
2026  for ac_exec_ext in '' $ac_executable_extensions; do
2027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028    ac_cv_prog_GCJ="$ac_prog"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034
2035fi
2036fi
2037GCJ=$ac_cv_prog_GCJ
2038if test -n "$GCJ"; then
2039  echo "$as_me:$LINENO: result: $GCJ" >&5
2040echo "${ECHO_T}$GCJ" >&6
2041else
2042  echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6
2044fi
2045
2046  test -n "$GCJ" && break
2047done
2048test -n "$GCJ" || GCJ="gcj"
2049
2050test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2051echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2052   { (exit 1); exit 1; }; }
2053if test "x${GCJFLAGS-unset}" = xunset; then
2054   GCJFLAGS="-g -O2"
2055fi
2056
2057
2058depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2059
2060echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2061echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2062if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2063  echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2066  # We make a subdir and do the tests there.  Otherwise we can end up
2067  # making bogus files that we don't know about and never remove.  For
2068  # instance it was reported that on HP-UX the gcc test will end up
2069  # making a dummy file named `D' -- because `-MD' means `put the output
2070  # in D'.
2071  mkdir conftest.dir
2072  # Copy depcomp to subdir because otherwise we won't find it if we're
2073  # using a relative directory.
2074  cp "$am_depcomp" conftest.dir
2075  cd conftest.dir
2076  # We will build objects and dependencies in a subdirectory because
2077  # it helps to detect inapplicable dependency modes.  For instance
2078  # both Tru64's cc and ICC support -MD to output dependencies as a
2079  # side effect of compilation, but ICC will put the dependencies in
2080  # the current directory while Tru64 will put them in the object
2081  # directory.
2082  mkdir sub
2083
2084  am_cv_GCJ_dependencies_compiler_type=none
2085  if test "$am_compiler_list" = ""; then
2086     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2087  fi
2088  for depmode in $am_compiler_list; do
2089    # Setup a source with many dependencies, because some compilers
2090    # like to wrap large dependency lists on column 80 (with \), and
2091    # we should not choose a depcomp mode which is confused by this.
2092    #
2093    # We need to recreate these files for each test, as the compiler may
2094    # overwrite some of them when testing with obscure command lines.
2095    # This happens at least with the AIX C compiler.
2096    : > sub/conftest.c
2097    for i in 1 2 3 4 5 6; do
2098      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2099      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2100      # Solaris 8's {/usr,}/bin/sh.
2101      touch sub/conftst$i.h
2102    done
2103    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2104
2105    case $depmode in
2106    nosideeffect)
2107      # after this tag, mechanisms are not by side-effect, so they'll
2108      # only be used when explicitly requested
2109      if test "x$enable_dependency_tracking" = xyes; then
2110	continue
2111      else
2112	break
2113      fi
2114      ;;
2115    none) break ;;
2116    esac
2117    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2118    # mode.  It turns out that the SunPro C++ compiler does not properly
2119    # handle `-M -o', and we need to detect this.
2120    if depmode=$depmode \
2121       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2122       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2123       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2124         >/dev/null 2>conftest.err &&
2125       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2126       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2127       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2128      # icc doesn't choke on unknown options, it will just issue warnings
2129      # or remarks (even with -Werror).  So we grep stderr for any message
2130      # that says an option was ignored or not supported.
2131      # When given -MP, icc 7.0 and 7.1 complain thusly:
2132      #   icc: Command line warning: ignoring option '-M'; no argument required
2133      # The diagnosis changed in icc 8.0:
2134      #   icc: Command line remark: option '-MP' not supported
2135      if (grep 'ignoring option' conftest.err ||
2136          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2137        am_cv_GCJ_dependencies_compiler_type=$depmode
2138        break
2139      fi
2140    fi
2141  done
2142
2143  cd ..
2144  rm -rf conftest.dir
2145else
2146  am_cv_GCJ_dependencies_compiler_type=none
2147fi
2148
2149fi
2150echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2151echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
2152GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2153
2154
2155
2156if
2157  test "x$enable_dependency_tracking" != xno \
2158  && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2159  am__fastdepGCJ_TRUE=
2160  am__fastdepGCJ_FALSE='#'
2161else
2162  am__fastdepGCJ_TRUE='#'
2163  am__fastdepGCJ_FALSE=
2164fi
2165
2166
2167
2168# Check whether --enable-shared or --disable-shared was given.
2169if test "${enable_shared+set}" = set; then
2170  enableval="$enable_shared"
2171  p=${PACKAGE-default}
2172    case $enableval in
2173    yes) enable_shared=yes ;;
2174    no) enable_shared=no ;;
2175    *)
2176      enable_shared=no
2177      # Look at the argument we got.  We use all the common list separators.
2178      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2179      for pkg in $enableval; do
2180	IFS="$lt_save_ifs"
2181	if test "X$pkg" = "X$p"; then
2182	  enable_shared=yes
2183	fi
2184      done
2185      IFS="$lt_save_ifs"
2186      ;;
2187    esac
2188else
2189  enable_shared=no
2190fi;
2191
2192
2193# Check whether --enable-static or --disable-static was given.
2194if test "${enable_static+set}" = set; then
2195  enableval="$enable_static"
2196  p=${PACKAGE-default}
2197    case $enableval in
2198    yes) enable_static=yes ;;
2199    no) enable_static=no ;;
2200    *)
2201     enable_static=no
2202      # Look at the argument we got.  We use all the common list separators.
2203      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2204      for pkg in $enableval; do
2205	IFS="$lt_save_ifs"
2206	if test "X$pkg" = "X$p"; then
2207	  enable_static=yes
2208	fi
2209      done
2210      IFS="$lt_save_ifs"
2211      ;;
2212    esac
2213else
2214  enable_static=yes
2215fi;
2216
2217# Check whether --enable-fast-install or --disable-fast-install was given.
2218if test "${enable_fast_install+set}" = set; then
2219  enableval="$enable_fast_install"
2220  p=${PACKAGE-default}
2221    case $enableval in
2222    yes) enable_fast_install=yes ;;
2223    no) enable_fast_install=no ;;
2224    *)
2225      enable_fast_install=no
2226      # Look at the argument we got.  We use all the common list separators.
2227      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2228      for pkg in $enableval; do
2229	IFS="$lt_save_ifs"
2230	if test "X$pkg" = "X$p"; then
2231	  enable_fast_install=yes
2232	fi
2233      done
2234      IFS="$lt_save_ifs"
2235      ;;
2236    esac
2237else
2238  enable_fast_install=yes
2239fi;
2240
2241# Make sure we can run config.sub.
2242$ac_config_sub sun4 >/dev/null 2>&1 ||
2243  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2244echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2245   { (exit 1); exit 1; }; }
2246
2247echo "$as_me:$LINENO: checking build system type" >&5
2248echo $ECHO_N "checking build system type... $ECHO_C" >&6
2249if test "${ac_cv_build+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  ac_cv_build_alias=$build_alias
2253test -z "$ac_cv_build_alias" &&
2254  ac_cv_build_alias=`$ac_config_guess`
2255test -z "$ac_cv_build_alias" &&
2256  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258   { (exit 1); exit 1; }; }
2259ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2260  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2261echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2262   { (exit 1); exit 1; }; }
2263
2264fi
2265echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266echo "${ECHO_T}$ac_cv_build" >&6
2267build=$ac_cv_build
2268build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2269build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2270build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2271
2272
2273echo "$as_me:$LINENO: checking host system type" >&5
2274echo $ECHO_N "checking host system type... $ECHO_C" >&6
2275if test "${ac_cv_host+set}" = set; then
2276  echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278  ac_cv_host_alias=$host_alias
2279test -z "$ac_cv_host_alias" &&
2280  ac_cv_host_alias=$ac_cv_build_alias
2281ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2282  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2283echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2284   { (exit 1); exit 1; }; }
2285
2286fi
2287echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2288echo "${ECHO_T}$ac_cv_host" >&6
2289host=$ac_cv_host
2290host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2291host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2292host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2293
2294
2295ac_ext=c
2296ac_cpp='$CPP $CPPFLAGS'
2297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300if test -n "$ac_tool_prefix"; then
2301  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2302set dummy ${ac_tool_prefix}gcc; ac_word=$2
2303echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305if test "${ac_cv_prog_CC+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  if test -n "$CC"; then
2309  ac_cv_prog_CC="$CC" # Let the user override the test.
2310else
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314  IFS=$as_save_IFS
2315  test -z "$as_dir" && as_dir=.
2316  for ac_exec_ext in '' $ac_executable_extensions; do
2317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320    break 2
2321  fi
2322done
2323done
2324
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
2329  echo "$as_me:$LINENO: result: $CC" >&5
2330echo "${ECHO_T}$CC" >&6
2331else
2332  echo "$as_me:$LINENO: result: no" >&5
2333echo "${ECHO_T}no" >&6
2334fi
2335
2336fi
2337if test -z "$ac_cv_prog_CC"; then
2338  ac_ct_CC=$CC
2339  # Extract the first word of "gcc", so it can be a program name with args.
2340set dummy gcc; ac_word=$2
2341echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  if test -n "$ac_ct_CC"; then
2347  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354  for ac_exec_ext in '' $ac_executable_extensions; do
2355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356    ac_cv_prog_ac_ct_CC="gcc"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362
2363fi
2364fi
2365ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366if test -n "$ac_ct_CC"; then
2367  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368echo "${ECHO_T}$ac_ct_CC" >&6
2369else
2370  echo "$as_me:$LINENO: result: no" >&5
2371echo "${ECHO_T}no" >&6
2372fi
2373
2374  CC=$ac_ct_CC
2375else
2376  CC="$ac_cv_prog_CC"
2377fi
2378
2379if test -z "$CC"; then
2380  if test -n "$ac_tool_prefix"; then
2381  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2382set dummy ${ac_tool_prefix}cc; ac_word=$2
2383echo "$as_me:$LINENO: checking for $ac_word" >&5
2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2385if test "${ac_cv_prog_CC+set}" = set; then
2386  echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388  if test -n "$CC"; then
2389  ac_cv_prog_CC="$CC" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396  for ac_exec_ext in '' $ac_executable_extensions; do
2397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398    ac_cv_prog_CC="${ac_tool_prefix}cc"
2399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403done
2404
2405fi
2406fi
2407CC=$ac_cv_prog_CC
2408if test -n "$CC"; then
2409  echo "$as_me:$LINENO: result: $CC" >&5
2410echo "${ECHO_T}$CC" >&6
2411else
2412  echo "$as_me:$LINENO: result: no" >&5
2413echo "${ECHO_T}no" >&6
2414fi
2415
2416fi
2417if test -z "$ac_cv_prog_CC"; then
2418  ac_ct_CC=$CC
2419  # Extract the first word of "cc", so it can be a program name with args.
2420set dummy cc; ac_word=$2
2421echo "$as_me:$LINENO: checking for $ac_word" >&5
2422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2424  echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426  if test -n "$ac_ct_CC"; then
2427  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434  for ac_exec_ext in '' $ac_executable_extensions; do
2435  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436    ac_cv_prog_ac_ct_CC="cc"
2437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438    break 2
2439  fi
2440done
2441done
2442
2443fi
2444fi
2445ac_ct_CC=$ac_cv_prog_ac_ct_CC
2446if test -n "$ac_ct_CC"; then
2447  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2448echo "${ECHO_T}$ac_ct_CC" >&6
2449else
2450  echo "$as_me:$LINENO: result: no" >&5
2451echo "${ECHO_T}no" >&6
2452fi
2453
2454  CC=$ac_ct_CC
2455else
2456  CC="$ac_cv_prog_CC"
2457fi
2458
2459fi
2460if test -z "$CC"; then
2461  # Extract the first word of "cc", so it can be a program name with args.
2462set dummy cc; ac_word=$2
2463echo "$as_me:$LINENO: checking for $ac_word" >&5
2464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465if test "${ac_cv_prog_CC+set}" = set; then
2466  echo $ECHO_N "(cached) $ECHO_C" >&6
2467else
2468  if test -n "$CC"; then
2469  ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
2471  ac_prog_rejected=no
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477  for ac_exec_ext in '' $ac_executable_extensions; do
2478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2480       ac_prog_rejected=yes
2481       continue
2482     fi
2483    ac_cv_prog_CC="cc"
2484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485    break 2
2486  fi
2487done
2488done
2489
2490if test $ac_prog_rejected = yes; then
2491  # We found a bogon in the path, so make sure we never use it.
2492  set dummy $ac_cv_prog_CC
2493  shift
2494  if test $# != 0; then
2495    # We chose a different compiler from the bogus one.
2496    # However, it has the same basename, so the bogon will be chosen
2497    # first if we set CC to just the basename; use the full file name.
2498    shift
2499    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2500  fi
2501fi
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
2506  echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6
2508else
2509  echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511fi
2512
2513fi
2514if test -z "$CC"; then
2515  if test -n "$ac_tool_prefix"; then
2516  for ac_prog in cl
2517  do
2518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520echo "$as_me:$LINENO: checking for $ac_word" >&5
2521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2522if test "${ac_cv_prog_CC+set}" = set; then
2523  echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525  if test -n "$CC"; then
2526  ac_cv_prog_CC="$CC" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533  for ac_exec_ext in '' $ac_executable_extensions; do
2534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537    break 2
2538  fi
2539done
2540done
2541
2542fi
2543fi
2544CC=$ac_cv_prog_CC
2545if test -n "$CC"; then
2546  echo "$as_me:$LINENO: result: $CC" >&5
2547echo "${ECHO_T}$CC" >&6
2548else
2549  echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
2551fi
2552
2553    test -n "$CC" && break
2554  done
2555fi
2556if test -z "$CC"; then
2557  ac_ct_CC=$CC
2558  for ac_prog in cl
2559do
2560  # Extract the first word of "$ac_prog", so it can be a program name with args.
2561set dummy $ac_prog; ac_word=$2
2562echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565  echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567  if test -n "$ac_ct_CC"; then
2568  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575  for ac_exec_ext in '' $ac_executable_extensions; do
2576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577    ac_cv_prog_ac_ct_CC="$ac_prog"
2578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582done
2583
2584fi
2585fi
2586ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587if test -n "$ac_ct_CC"; then
2588  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589echo "${ECHO_T}$ac_ct_CC" >&6
2590else
2591  echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6
2593fi
2594
2595  test -n "$ac_ct_CC" && break
2596done
2597
2598  CC=$ac_ct_CC
2599fi
2600
2601fi
2602
2603
2604test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: no acceptable C compiler found in \$PATH
2607See \`config.log' for more details." >&2;}
2608   { (exit 1); exit 1; }; }
2609
2610# Provide some information about the compiler.
2611echo "$as_me:$LINENO:" \
2612     "checking for C compiler version" >&5
2613ac_compiler=`set X $ac_compile; echo $2`
2614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2615  (eval $ac_compiler --version </dev/null >&5) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }
2619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2620  (eval $ac_compiler -v </dev/null >&5) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }
2624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2625  (eval $ac_compiler -V </dev/null >&5) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }
2629
2630cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636
2637int
2638main ()
2639{
2640
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645ac_clean_files_save=$ac_clean_files
2646ac_clean_files="$ac_clean_files a.out a.exe b.out"
2647# Try to create an executable without -o first, disregard a.out.
2648# It will help us diagnose broken compilers, and finding out an intuition
2649# of exeext.
2650echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2651echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2652ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2653if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2654  (eval $ac_link_default) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; then
2658  # Find the output, starting from the most likely.  This scheme is
2659# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2660# resort.
2661
2662# Be careful to initialize this variable, since it used to be cached.
2663# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2664ac_cv_exeext=
2665# b.out is created by i960 compilers.
2666for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2667do
2668  test -f "$ac_file" || continue
2669  case $ac_file in
2670    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2671	;;
2672    conftest.$ac_ext )
2673	# This is the source file.
2674	;;
2675    [ab].out )
2676	# We found the default executable, but exeext='' is most
2677	# certainly right.
2678	break;;
2679    *.* )
2680	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681	# FIXME: I believe we export ac_cv_exeext for Libtool,
2682	# but it would be cool to find out if it's true.  Does anybody
2683	# maintain Libtool? --akim.
2684	export ac_cv_exeext
2685	break;;
2686    * )
2687	break;;
2688  esac
2689done
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2695See \`config.log' for more details." >&5
2696echo "$as_me: error: C compiler cannot create executables
2697See \`config.log' for more details." >&2;}
2698   { (exit 77); exit 77; }; }
2699fi
2700
2701ac_exeext=$ac_cv_exeext
2702echo "$as_me:$LINENO: result: $ac_file" >&5
2703echo "${ECHO_T}$ac_file" >&6
2704
2705# Check the compiler produces executables we can run.  If not, either
2706# the compiler is broken, or we cross compile.
2707echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2708echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2709# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2710# If not cross compiling, check that we can run a simple program.
2711if test "$cross_compiling" != yes; then
2712  if { ac_try='./$ac_file'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; }; then
2718    cross_compiling=no
2719  else
2720    if test "$cross_compiling" = maybe; then
2721	cross_compiling=yes
2722    else
2723	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2724If you meant to cross compile, use \`--host'.
2725See \`config.log' for more details." >&5
2726echo "$as_me: error: cannot run C compiled programs.
2727If you meant to cross compile, use \`--host'.
2728See \`config.log' for more details." >&2;}
2729   { (exit 1); exit 1; }; }
2730    fi
2731  fi
2732fi
2733echo "$as_me:$LINENO: result: yes" >&5
2734echo "${ECHO_T}yes" >&6
2735
2736rm -f a.out a.exe conftest$ac_cv_exeext b.out
2737ac_clean_files=$ac_clean_files_save
2738# Check the compiler produces executables we can run.  If not, either
2739# the compiler is broken, or we cross compile.
2740echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2741echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2742echo "$as_me:$LINENO: result: $cross_compiling" >&5
2743echo "${ECHO_T}$cross_compiling" >&6
2744
2745echo "$as_me:$LINENO: checking for suffix of executables" >&5
2746echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2748  (eval $ac_link) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; then
2752  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2753# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2754# work properly (i.e., refer to `conftest.exe'), while it won't with
2755# `rm'.
2756for ac_file in conftest.exe conftest conftest.*; do
2757  test -f "$ac_file" || continue
2758  case $ac_file in
2759    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2760    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761	  export ac_cv_exeext
2762	  break;;
2763    * ) break;;
2764  esac
2765done
2766else
2767  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2768See \`config.log' for more details." >&5
2769echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2770See \`config.log' for more details." >&2;}
2771   { (exit 1); exit 1; }; }
2772fi
2773
2774rm -f conftest$ac_cv_exeext
2775echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2776echo "${ECHO_T}$ac_cv_exeext" >&6
2777
2778rm -f conftest.$ac_ext
2779EXEEXT=$ac_cv_exeext
2780ac_exeext=$EXEEXT
2781echo "$as_me:$LINENO: checking for suffix of object files" >&5
2782echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2783if test "${ac_cv_objext+set}" = set; then
2784  echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786  cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h.  */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h.  */
2792
2793int
2794main ()
2795{
2796
2797  ;
2798  return 0;
2799}
2800_ACEOF
2801rm -f conftest.o conftest.obj
2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803  (eval $ac_compile) 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; then
2807  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2808  case $ac_file in
2809    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2810    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2811       break;;
2812  esac
2813done
2814else
2815  echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2819See \`config.log' for more details." >&5
2820echo "$as_me: error: cannot compute suffix of object files: cannot compile
2821See \`config.log' for more details." >&2;}
2822   { (exit 1); exit 1; }; }
2823fi
2824
2825rm -f conftest.$ac_cv_objext conftest.$ac_ext
2826fi
2827echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2828echo "${ECHO_T}$ac_cv_objext" >&6
2829OBJEXT=$ac_cv_objext
2830ac_objext=$OBJEXT
2831echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2832echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2833if test "${ac_cv_c_compiler_gnu+set}" = set; then
2834  echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836  cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846#ifndef __GNUC__
2847       choke me
2848#endif
2849
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext
2855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856  (eval $ac_compile) 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } &&
2863	 { ac_try='test -z "$ac_c_werror_flag"
2864			 || test ! -s conftest.err'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; } &&
2870	 { ac_try='test -s conftest.$ac_objext'
2871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; }; then
2876  ac_compiler_gnu=yes
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881ac_compiler_gnu=no
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_cv_c_compiler_gnu=$ac_compiler_gnu
2885
2886fi
2887echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2888echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2889GCC=`test $ac_compiler_gnu = yes && echo yes`
2890ac_test_CFLAGS=${CFLAGS+set}
2891ac_save_CFLAGS=$CFLAGS
2892CFLAGS="-g"
2893echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2894echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2895if test "${ac_cv_prog_cc_g+set}" = set; then
2896  echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898  cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h.  */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h.  */
2904
2905int
2906main ()
2907{
2908
2909  ;
2910  return 0;
2911}
2912_ACEOF
2913rm -f conftest.$ac_objext
2914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915  (eval $ac_compile) 2>conftest.er1
2916  ac_status=$?
2917  grep -v '^ *+' conftest.er1 >conftest.err
2918  rm -f conftest.er1
2919  cat conftest.err >&5
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); } &&
2922	 { ac_try='test -z "$ac_c_werror_flag"
2923			 || test ! -s conftest.err'
2924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925  (eval $ac_try) 2>&5
2926  ac_status=$?
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }; } &&
2929	 { ac_try='test -s conftest.$ac_objext'
2930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931  (eval $ac_try) 2>&5
2932  ac_status=$?
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); }; }; then
2935  ac_cv_prog_cc_g=yes
2936else
2937  echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940ac_cv_prog_cc_g=no
2941fi
2942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943fi
2944echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2945echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2946if test "$ac_test_CFLAGS" = set; then
2947  CFLAGS=$ac_save_CFLAGS
2948elif test $ac_cv_prog_cc_g = yes; then
2949  if test "$GCC" = yes; then
2950    CFLAGS="-g -O2"
2951  else
2952    CFLAGS="-g"
2953  fi
2954else
2955  if test "$GCC" = yes; then
2956    CFLAGS="-O2"
2957  else
2958    CFLAGS=
2959  fi
2960fi
2961echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2962echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2963if test "${ac_cv_prog_cc_stdc+set}" = set; then
2964  echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966  ac_cv_prog_cc_stdc=no
2967ac_save_CC=$CC
2968cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h.  */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h.  */
2974#include <stdarg.h>
2975#include <stdio.h>
2976#include <sys/types.h>
2977#include <sys/stat.h>
2978/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2979struct buf { int x; };
2980FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981static char *e (p, i)
2982     char **p;
2983     int i;
2984{
2985  return p[i];
2986}
2987static char *f (char * (*g) (char **, int), char **p, ...)
2988{
2989  char *s;
2990  va_list v;
2991  va_start (v,p);
2992  s = g (p, va_arg (v,int));
2993  va_end (v);
2994  return s;
2995}
2996
2997/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2998   function prototypes and stuff, but not '\xHH' hex character constants.
2999   These don't provoke an error unfortunately, instead are silently treated
3000   as 'x'.  The following induces an error, until -std1 is added to get
3001   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3002   array size at least.  It's necessary to write '\x00'==0 to get something
3003   that's true only with -std1.  */
3004int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3005
3006int test (int i, double x);
3007struct s1 {int (*f) (int a);};
3008struct s2 {int (*f) (double a);};
3009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3010int argc;
3011char **argv;
3012int
3013main ()
3014{
3015return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020# Don't try gcc -ansi; that turns off useful extensions and
3021# breaks some systems' header files.
3022# AIX			-qlanglvl=ansi
3023# Ultrix and OSF/1	-std1
3024# HP-UX 10.20 and later	-Ae
3025# HP-UX older versions	-Aa -D_HPUX_SOURCE
3026# SVR4			-Xc -D__EXTENSIONS__
3027for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3028do
3029  CC="$ac_save_CC $ac_arg"
3030  rm -f conftest.$ac_objext
3031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032  (eval $ac_compile) 2>conftest.er1
3033  ac_status=$?
3034  grep -v '^ *+' conftest.er1 >conftest.err
3035  rm -f conftest.er1
3036  cat conftest.err >&5
3037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038  (exit $ac_status); } &&
3039	 { ac_try='test -z "$ac_c_werror_flag"
3040			 || test ! -s conftest.err'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; } &&
3046	 { ac_try='test -s conftest.$ac_objext'
3047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048  (eval $ac_try) 2>&5
3049  ac_status=$?
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); }; }; then
3052  ac_cv_prog_cc_stdc=$ac_arg
3053break
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058fi
3059rm -f conftest.err conftest.$ac_objext
3060done
3061rm -f conftest.$ac_ext conftest.$ac_objext
3062CC=$ac_save_CC
3063
3064fi
3065
3066case "x$ac_cv_prog_cc_stdc" in
3067  x|xno)
3068    echo "$as_me:$LINENO: result: none needed" >&5
3069echo "${ECHO_T}none needed" >&6 ;;
3070  *)
3071    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3072echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3073    CC="$CC $ac_cv_prog_cc_stdc" ;;
3074esac
3075
3076# Some people use a C++ compiler to compile C.  Since we use `exit',
3077# in C++ we need to declare it.  In case someone uses the same compiler
3078# for both compiling C and C++ we need to have the C++ compiler decide
3079# the declaration of exit, since it's the most demanding environment.
3080cat >conftest.$ac_ext <<_ACEOF
3081#ifndef __cplusplus
3082  choke me
3083#endif
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087  (eval $ac_compile) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094	 { ac_try='test -z "$ac_c_werror_flag"
3095			 || test ! -s conftest.err'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; } &&
3101	 { ac_try='test -s conftest.$ac_objext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  for ac_declaration in \
3108   '' \
3109   'extern "C" void std::exit (int) throw (); using std::exit;' \
3110   'extern "C" void std::exit (int); using std::exit;' \
3111   'extern "C" void exit (int) throw ();' \
3112   'extern "C" void exit (int);' \
3113   'void exit (int);'
3114do
3115  cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121$ac_declaration
3122#include <stdlib.h>
3123int
3124main ()
3125{
3126exit (42);
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133  (eval $ac_compile) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } &&
3140	 { ac_try='test -z "$ac_c_werror_flag"
3141			 || test ! -s conftest.err'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; } &&
3147	 { ac_try='test -s conftest.$ac_objext'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; }; then
3153  :
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158continue
3159fi
3160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3161  cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167$ac_declaration
3168int
3169main ()
3170{
3171exit (42);
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178  (eval $ac_compile) 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185	 { ac_try='test -z "$ac_c_werror_flag"
3186			 || test ! -s conftest.err'
3187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188  (eval $ac_try) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; } &&
3192	 { ac_try='test -s conftest.$ac_objext'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; }; then
3198  break
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203fi
3204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205done
3206rm -f conftest*
3207if test -n "$ac_declaration"; then
3208  echo '#ifdef __cplusplus' >>confdefs.h
3209  echo $ac_declaration      >>confdefs.h
3210  echo '#endif'             >>confdefs.h
3211fi
3212
3213else
3214  echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217fi
3218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224
3225depcc="$CC"   am_compiler_list=
3226
3227echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3228echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3229if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3233  # We make a subdir and do the tests there.  Otherwise we can end up
3234  # making bogus files that we don't know about and never remove.  For
3235  # instance it was reported that on HP-UX the gcc test will end up
3236  # making a dummy file named `D' -- because `-MD' means `put the output
3237  # in D'.
3238  mkdir conftest.dir
3239  # Copy depcomp to subdir because otherwise we won't find it if we're
3240  # using a relative directory.
3241  cp "$am_depcomp" conftest.dir
3242  cd conftest.dir
3243  # We will build objects and dependencies in a subdirectory because
3244  # it helps to detect inapplicable dependency modes.  For instance
3245  # both Tru64's cc and ICC support -MD to output dependencies as a
3246  # side effect of compilation, but ICC will put the dependencies in
3247  # the current directory while Tru64 will put them in the object
3248  # directory.
3249  mkdir sub
3250
3251  am_cv_CC_dependencies_compiler_type=none
3252  if test "$am_compiler_list" = ""; then
3253     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3254  fi
3255  for depmode in $am_compiler_list; do
3256    # Setup a source with many dependencies, because some compilers
3257    # like to wrap large dependency lists on column 80 (with \), and
3258    # we should not choose a depcomp mode which is confused by this.
3259    #
3260    # We need to recreate these files for each test, as the compiler may
3261    # overwrite some of them when testing with obscure command lines.
3262    # This happens at least with the AIX C compiler.
3263    : > sub/conftest.c
3264    for i in 1 2 3 4 5 6; do
3265      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3266      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3267      # Solaris 8's {/usr,}/bin/sh.
3268      touch sub/conftst$i.h
3269    done
3270    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3271
3272    case $depmode in
3273    nosideeffect)
3274      # after this tag, mechanisms are not by side-effect, so they'll
3275      # only be used when explicitly requested
3276      if test "x$enable_dependency_tracking" = xyes; then
3277	continue
3278      else
3279	break
3280      fi
3281      ;;
3282    none) break ;;
3283    esac
3284    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3285    # mode.  It turns out that the SunPro C++ compiler does not properly
3286    # handle `-M -o', and we need to detect this.
3287    if depmode=$depmode \
3288       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3289       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3290       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3291         >/dev/null 2>conftest.err &&
3292       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3293       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3294       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3295      # icc doesn't choke on unknown options, it will just issue warnings
3296      # or remarks (even with -Werror).  So we grep stderr for any message
3297      # that says an option was ignored or not supported.
3298      # When given -MP, icc 7.0 and 7.1 complain thusly:
3299      #   icc: Command line warning: ignoring option '-M'; no argument required
3300      # The diagnosis changed in icc 8.0:
3301      #   icc: Command line remark: option '-MP' not supported
3302      if (grep 'ignoring option' conftest.err ||
3303          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3304        am_cv_CC_dependencies_compiler_type=$depmode
3305        break
3306      fi
3307    fi
3308  done
3309
3310  cd ..
3311  rm -rf conftest.dir
3312else
3313  am_cv_CC_dependencies_compiler_type=none
3314fi
3315
3316fi
3317echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3318echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3320
3321
3322
3323if
3324  test "x$enable_dependency_tracking" != xno \
3325  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3326  am__fastdepCC_TRUE=
3327  am__fastdepCC_FALSE='#'
3328else
3329  am__fastdepCC_TRUE='#'
3330  am__fastdepCC_FALSE=
3331fi
3332
3333
3334echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3335echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3336if test "${lt_cv_path_SED+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  # Loop through the user's path and test for sed and gsed.
3340# Then use that list of sed's as ones to test for truncation.
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for lt_ac_prog in sed gsed; do
3347    for ac_exec_ext in '' $ac_executable_extensions; do
3348      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3349        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3350      fi
3351    done
3352  done
3353done
3354lt_ac_max=0
3355lt_ac_count=0
3356# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3357# along with /bin/sed that truncates output.
3358for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3359  test ! -f $lt_ac_sed && continue
3360  cat /dev/null > conftest.in
3361  lt_ac_count=0
3362  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3363  # Check for GNU sed and select it if it is found.
3364  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3365    lt_cv_path_SED=$lt_ac_sed
3366    break
3367  fi
3368  while true; do
3369    cat conftest.in conftest.in >conftest.tmp
3370    mv conftest.tmp conftest.in
3371    cp conftest.in conftest.nl
3372    echo >>conftest.nl
3373    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3374    cmp -s conftest.out conftest.nl || break
3375    # 10000 chars as input seems more than enough
3376    test $lt_ac_count -gt 10 && break
3377    lt_ac_count=`expr $lt_ac_count + 1`
3378    if test $lt_ac_count -gt $lt_ac_max; then
3379      lt_ac_max=$lt_ac_count
3380      lt_cv_path_SED=$lt_ac_sed
3381    fi
3382  done
3383done
3384
3385fi
3386
3387SED=$lt_cv_path_SED
3388echo "$as_me:$LINENO: result: $SED" >&5
3389echo "${ECHO_T}$SED" >&6
3390
3391echo "$as_me:$LINENO: checking for egrep" >&5
3392echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3393if test "${ac_cv_prog_egrep+set}" = set; then
3394  echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3397    then ac_cv_prog_egrep='grep -E'
3398    else ac_cv_prog_egrep='egrep'
3399    fi
3400fi
3401echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3402echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3403 EGREP=$ac_cv_prog_egrep
3404
3405
3406
3407# Check whether --with-gnu-ld or --without-gnu-ld was given.
3408if test "${with_gnu_ld+set}" = set; then
3409  withval="$with_gnu_ld"
3410  test "$withval" = no || with_gnu_ld=yes
3411else
3412  with_gnu_ld=no
3413fi;
3414ac_prog=ld
3415if test "$GCC" = yes; then
3416  # Check if gcc -print-prog-name=ld gives a path.
3417  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3418echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3419  case $host in
3420  *-*-mingw*)
3421    # gcc leaves a trailing carriage return which upsets mingw
3422    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3423  *)
3424    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3425  esac
3426  case $ac_prog in
3427    # Accept absolute paths.
3428    [\\/]* | ?:[\\/]*)
3429      re_direlt='/[^/][^/]*/\.\./'
3430      # Canonicalize the pathname of ld
3431      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3432      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3433	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3434      done
3435      test -z "$LD" && LD="$ac_prog"
3436      ;;
3437  "")
3438    # If it fails, then pretend we aren't using GCC.
3439    ac_prog=ld
3440    ;;
3441  *)
3442    # If it is relative, then search for the first ld in PATH.
3443    with_gnu_ld=unknown
3444    ;;
3445  esac
3446elif test "$with_gnu_ld" = yes; then
3447  echo "$as_me:$LINENO: checking for GNU ld" >&5
3448echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3449else
3450  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3451echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3452fi
3453if test "${lt_cv_path_LD+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  if test -z "$LD"; then
3457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3458  for ac_dir in $PATH; do
3459    IFS="$lt_save_ifs"
3460    test -z "$ac_dir" && ac_dir=.
3461    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3462      lt_cv_path_LD="$ac_dir/$ac_prog"
3463      # Check to see if the program is GNU ld.  I'd rather use --version,
3464      # but apparently some variants of GNU ld only accept -v.
3465      # Break only if it was the GNU/non-GNU ld that we prefer.
3466      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3467      *GNU* | *'with BFD'*)
3468	test "$with_gnu_ld" != no && break
3469	;;
3470      *)
3471	test "$with_gnu_ld" != yes && break
3472	;;
3473      esac
3474    fi
3475  done
3476  IFS="$lt_save_ifs"
3477else
3478  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3479fi
3480fi
3481
3482LD="$lt_cv_path_LD"
3483if test -n "$LD"; then
3484  echo "$as_me:$LINENO: result: $LD" >&5
3485echo "${ECHO_T}$LD" >&6
3486else
3487  echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
3489fi
3490test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3491echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3492   { (exit 1); exit 1; }; }
3493echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3494echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3495if test "${lt_cv_prog_gnu_ld+set}" = set; then
3496  echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3499case `$LD -v 2>&1 </dev/null` in
3500*GNU* | *'with BFD'*)
3501  lt_cv_prog_gnu_ld=yes
3502  ;;
3503*)
3504  lt_cv_prog_gnu_ld=no
3505  ;;
3506esac
3507fi
3508echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3509echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3510with_gnu_ld=$lt_cv_prog_gnu_ld
3511
3512
3513echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3514echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3515if test "${lt_cv_ld_reload_flag+set}" = set; then
3516  echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518  lt_cv_ld_reload_flag='-r'
3519fi
3520echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3521echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3522reload_flag=$lt_cv_ld_reload_flag
3523case $reload_flag in
3524"" | " "*) ;;
3525*) reload_flag=" $reload_flag" ;;
3526esac
3527reload_cmds='$LD$reload_flag -o $output$reload_objs'
3528case $host_os in
3529  darwin*)
3530    if test "$GCC" = yes; then
3531      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3532    else
3533      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3534    fi
3535    ;;
3536esac
3537
3538echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3539echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3540if test "${lt_cv_path_NM+set}" = set; then
3541  echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543  if test -n "$NM"; then
3544  # Let the user override the test.
3545  lt_cv_path_NM="$NM"
3546else
3547  lt_nm_to_check="${ac_tool_prefix}nm"
3548  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3549    lt_nm_to_check="$lt_nm_to_check nm"
3550  fi
3551  for lt_tmp_nm in $lt_nm_to_check; do
3552    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3553    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3554      IFS="$lt_save_ifs"
3555      test -z "$ac_dir" && ac_dir=.
3556      tmp_nm="$ac_dir/$lt_tmp_nm"
3557      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3558	# Check to see if the nm accepts a BSD-compat flag.
3559	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3560	#   nm: unknown option "B" ignored
3561	# Tru64's nm complains that /dev/null is an invalid object file
3562	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3563	*/dev/null* | *'Invalid file or object type'*)
3564	  lt_cv_path_NM="$tmp_nm -B"
3565	  break
3566	  ;;
3567	*)
3568	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3569	  */dev/null*)
3570	    lt_cv_path_NM="$tmp_nm -p"
3571	    break
3572	    ;;
3573	  *)
3574	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3575	    continue # so that we can try to find one that supports BSD flags
3576	    ;;
3577	  esac
3578	  ;;
3579	esac
3580      fi
3581    done
3582    IFS="$lt_save_ifs"
3583  done
3584  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3585fi
3586fi
3587echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3588echo "${ECHO_T}$lt_cv_path_NM" >&6
3589NM="$lt_cv_path_NM"
3590
3591echo "$as_me:$LINENO: checking whether ln -s works" >&5
3592echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3593LN_S=$as_ln_s
3594if test "$LN_S" = "ln -s"; then
3595  echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597else
3598  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3599echo "${ECHO_T}no, using $LN_S" >&6
3600fi
3601
3602echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3603echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3604if test "${lt_cv_deplibs_check_method+set}" = set; then
3605  echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607  lt_cv_file_magic_cmd='$MAGIC_CMD'
3608lt_cv_file_magic_test_file=
3609lt_cv_deplibs_check_method='unknown'
3610# Need to set the preceding variable on all platforms that support
3611# interlibrary dependencies.
3612# 'none' -- dependencies not supported.
3613# `unknown' -- same as none, but documents that we really don't know.
3614# 'pass_all' -- all dependencies passed with no checks.
3615# 'test_compile' -- check by making test program.
3616# 'file_magic [[regex]]' -- check by looking for files in library path
3617# which responds to the $file_magic_cmd with a given extended regex.
3618# If you have `file' or equivalent on your system and you're not sure
3619# whether `pass_all' will *always* work, you probably want this one.
3620
3621case $host_os in
3622aix4* | aix5*)
3623  lt_cv_deplibs_check_method=pass_all
3624  ;;
3625
3626beos*)
3627  lt_cv_deplibs_check_method=pass_all
3628  ;;
3629
3630bsdi[45]*)
3631  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3632  lt_cv_file_magic_cmd='/usr/bin/file -L'
3633  lt_cv_file_magic_test_file=/shlib/libc.so
3634  ;;
3635
3636cygwin*)
3637  # func_win32_libid is a shell function defined in ltmain.sh
3638  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3639  lt_cv_file_magic_cmd='func_win32_libid'
3640  ;;
3641
3642mingw* | pw32*)
3643  # Base MSYS/MinGW do not provide the 'file' command needed by
3644  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3645  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3646  lt_cv_file_magic_cmd='$OBJDUMP -f'
3647  ;;
3648
3649darwin* | rhapsody*)
3650  lt_cv_deplibs_check_method=pass_all
3651  ;;
3652
3653freebsd* | kfreebsd*-gnu | dragonfly*)
3654  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3655    case $host_cpu in
3656    i*86 )
3657      # Not sure whether the presence of OpenBSD here was a mistake.
3658      # Let's accept both of them until this is cleared up.
3659      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3660      lt_cv_file_magic_cmd=/usr/bin/file
3661      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3662      ;;
3663    esac
3664  else
3665    lt_cv_deplibs_check_method=pass_all
3666  fi
3667  ;;
3668
3669gnu*)
3670  lt_cv_deplibs_check_method=pass_all
3671  ;;
3672
3673hpux10.20* | hpux11*)
3674  lt_cv_file_magic_cmd=/usr/bin/file
3675  case $host_cpu in
3676  ia64*)
3677    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3678    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3679    ;;
3680  hppa*64*)
3681    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]'
3682    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3683    ;;
3684  *)
3685    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3686    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3687    ;;
3688  esac
3689  ;;
3690
3691interix3*)
3692  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3693  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3694  ;;
3695
3696irix5* | irix6* | nonstopux*)
3697  case $LD in
3698  *-32|*"-32 ") libmagic=32-bit;;
3699  *-n32|*"-n32 ") libmagic=N32;;
3700  *-64|*"-64 ") libmagic=64-bit;;
3701  *) libmagic=never-match;;
3702  esac
3703  lt_cv_deplibs_check_method=pass_all
3704  ;;
3705
3706# This must be Linux ELF.
3707linux*)
3708  lt_cv_deplibs_check_method=pass_all
3709  ;;
3710
3711netbsd*)
3712  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3714  else
3715    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3716  fi
3717  ;;
3718
3719newos6*)
3720  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3721  lt_cv_file_magic_cmd=/usr/bin/file
3722  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3723  ;;
3724
3725nto-qnx*)
3726  lt_cv_deplibs_check_method=unknown
3727  ;;
3728
3729openbsd*)
3730  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3732  else
3733    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3734  fi
3735  ;;
3736
3737osf3* | osf4* | osf5*)
3738  lt_cv_deplibs_check_method=pass_all
3739  ;;
3740
3741solaris*)
3742  lt_cv_deplibs_check_method=pass_all
3743  ;;
3744
3745sysv4 | sysv4.3*)
3746  case $host_vendor in
3747  motorola)
3748    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]'
3749    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3750    ;;
3751  ncr)
3752    lt_cv_deplibs_check_method=pass_all
3753    ;;
3754  sequent)
3755    lt_cv_file_magic_cmd='/bin/file'
3756    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3757    ;;
3758  sni)
3759    lt_cv_file_magic_cmd='/bin/file'
3760    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3761    lt_cv_file_magic_test_file=/lib/libc.so
3762    ;;
3763  siemens)
3764    lt_cv_deplibs_check_method=pass_all
3765    ;;
3766  pc)
3767    lt_cv_deplibs_check_method=pass_all
3768    ;;
3769  esac
3770  ;;
3771
3772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3773  lt_cv_deplibs_check_method=pass_all
3774  ;;
3775esac
3776
3777fi
3778echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3779echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3780file_magic_cmd=$lt_cv_file_magic_cmd
3781deplibs_check_method=$lt_cv_deplibs_check_method
3782test -z "$deplibs_check_method" && deplibs_check_method=unknown
3783
3784
3785
3786
3787# If no C compiler was specified, use CC.
3788LTCC=${LTCC-"$CC"}
3789
3790# If no C compiler flags were specified, use CFLAGS.
3791LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3792
3793# Allow CC to be a program name with arguments.
3794compiler=$CC
3795
3796
3797# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3798if test "${enable_libtool_lock+set}" = set; then
3799  enableval="$enable_libtool_lock"
3800
3801fi;
3802test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3803
3804# Some flags need to be propagated to the compiler or linker for good
3805# libtool support.
3806case $host in
3807ia64-*-hpux*)
3808  # Find out which ABI we are using.
3809  echo 'int i;' > conftest.$ac_ext
3810  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811  (eval $ac_compile) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; then
3815    case `/usr/bin/file conftest.$ac_objext` in
3816    *ELF-32*)
3817      HPUX_IA64_MODE="32"
3818      ;;
3819    *ELF-64*)
3820      HPUX_IA64_MODE="64"
3821      ;;
3822    esac
3823  fi
3824  rm -rf conftest*
3825  ;;
3826*-*-irix6*)
3827  # Find out which ABI we are using.
3828  echo '#line 3828 "configure"' > conftest.$ac_ext
3829  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830  (eval $ac_compile) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; then
3834   if test "$lt_cv_prog_gnu_ld" = yes; then
3835    case `/usr/bin/file conftest.$ac_objext` in
3836    *32-bit*)
3837      LD="${LD-ld} -melf32bsmip"
3838      ;;
3839    *N32*)
3840      LD="${LD-ld} -melf32bmipn32"
3841      ;;
3842    *64-bit*)
3843      LD="${LD-ld} -melf64bmip"
3844      ;;
3845    esac
3846   else
3847    case `/usr/bin/file conftest.$ac_objext` in
3848    *32-bit*)
3849      LD="${LD-ld} -32"
3850      ;;
3851    *N32*)
3852      LD="${LD-ld} -n32"
3853      ;;
3854    *64-bit*)
3855      LD="${LD-ld} -64"
3856      ;;
3857    esac
3858   fi
3859  fi
3860  rm -rf conftest*
3861  ;;
3862
3863x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3864  # Find out which ABI we are using.
3865  echo 'int i;' > conftest.$ac_ext
3866  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867  (eval $ac_compile) 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }; then
3871    case `/usr/bin/file conftest.o` in
3872    *32-bit*)
3873      case $host in
3874        x86_64-*linux*)
3875          LD="${LD-ld} -m elf_i386"
3876          ;;
3877        ppc64-*linux*|powerpc64-*linux*)
3878          LD="${LD-ld} -m elf32ppclinux"
3879          ;;
3880        s390x-*linux*)
3881          LD="${LD-ld} -m elf_s390"
3882          ;;
3883        sparc64-*linux*)
3884          LD="${LD-ld} -m elf32_sparc"
3885          ;;
3886      esac
3887      ;;
3888    *64-bit*)
3889      case $host in
3890        x86_64-*linux*)
3891          LD="${LD-ld} -m elf_x86_64"
3892          ;;
3893        ppc*-*linux*|powerpc*-*linux*)
3894          LD="${LD-ld} -m elf64ppc"
3895          ;;
3896        s390*-*linux*)
3897          LD="${LD-ld} -m elf64_s390"
3898          ;;
3899        sparc*-*linux*)
3900          LD="${LD-ld} -m elf64_sparc"
3901          ;;
3902      esac
3903      ;;
3904    esac
3905  fi
3906  rm -rf conftest*
3907  ;;
3908
3909*-*-sco3.2v5*)
3910  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3911  SAVE_CFLAGS="$CFLAGS"
3912  CFLAGS="$CFLAGS -belf"
3913  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3914echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3915if test "${lt_cv_cc_needs_belf+set}" = set; then
3916  echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918  ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924     cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930
3931int
3932main ()
3933{
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext conftest$ac_exeext
3940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941  (eval $ac_link) 2>conftest.er1
3942  ac_status=$?
3943  grep -v '^ *+' conftest.er1 >conftest.err
3944  rm -f conftest.er1
3945  cat conftest.err >&5
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); } &&
3948	 { ac_try='test -z "$ac_c_werror_flag"
3949			 || test ! -s conftest.err'
3950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951  (eval $ac_try) 2>&5
3952  ac_status=$?
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); }; } &&
3955	 { ac_try='test -s conftest$ac_exeext'
3956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957  (eval $ac_try) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); }; }; then
3961  lt_cv_cc_needs_belf=yes
3962else
3963  echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966lt_cv_cc_needs_belf=no
3967fi
3968rm -f conftest.err conftest.$ac_objext \
3969      conftest$ac_exeext conftest.$ac_ext
3970     ac_ext=c
3971ac_cpp='$CPP $CPPFLAGS'
3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976fi
3977echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3978echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3979  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3980    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3981    CFLAGS="$SAVE_CFLAGS"
3982  fi
3983  ;;
3984sparc*-*solaris*)
3985  # Find out which ABI we are using.
3986  echo 'int i;' > conftest.$ac_ext
3987  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988  (eval $ac_compile) 2>&5
3989  ac_status=$?
3990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); }; then
3992    case `/usr/bin/file conftest.o` in
3993    *64-bit*)
3994      case $lt_cv_prog_gnu_ld in
3995      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3996      *)    LD="${LD-ld} -64" ;;
3997      esac
3998      ;;
3999    esac
4000  fi
4001  rm -rf conftest*
4002  ;;
4003
4004
4005esac
4006
4007need_locks="$enable_libtool_lock"
4008
4009
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4016echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4017# On Suns, sometimes $CPP names a directory.
4018if test -n "$CPP" && test -d "$CPP"; then
4019  CPP=
4020fi
4021if test -z "$CPP"; then
4022  if test "${ac_cv_prog_CPP+set}" = set; then
4023  echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025      # Double quotes because CPP needs to be expanded
4026    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027    do
4028      ac_preproc_ok=false
4029for ac_c_preproc_warn_flag in '' yes
4030do
4031  # Use a header file that comes with gcc, so configuring glibc
4032  # with a fresh cross-compiler works.
4033  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034  # <limits.h> exists even on freestanding compilers.
4035  # On the NeXT, cc -E runs the code through the compiler's parser,
4036  # not just through cpp. "Syntax error" is here to catch this case.
4037  cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h.  */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h.  */
4043#ifdef __STDC__
4044# include <limits.h>
4045#else
4046# include <assert.h>
4047#endif
4048		     Syntax error
4049_ACEOF
4050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4051  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4052  ac_status=$?
4053  grep -v '^ *+' conftest.er1 >conftest.err
4054  rm -f conftest.er1
4055  cat conftest.err >&5
4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057  (exit $ac_status); } >/dev/null; then
4058  if test -s conftest.err; then
4059    ac_cpp_err=$ac_c_preproc_warn_flag
4060    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4061  else
4062    ac_cpp_err=
4063  fi
4064else
4065  ac_cpp_err=yes
4066fi
4067if test -z "$ac_cpp_err"; then
4068  :
4069else
4070  echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073  # Broken: fails on valid input.
4074continue
4075fi
4076rm -f conftest.err conftest.$ac_ext
4077
4078  # OK, works on sane cases.  Now check whether non-existent headers
4079  # can be detected and how.
4080  cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086#include <ac_nonexistent.h>
4087_ACEOF
4088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } >/dev/null; then
4096  if test -s conftest.err; then
4097    ac_cpp_err=$ac_c_preproc_warn_flag
4098    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4099  else
4100    ac_cpp_err=
4101  fi
4102else
4103  ac_cpp_err=yes
4104fi
4105if test -z "$ac_cpp_err"; then
4106  # Broken: success on invalid input.
4107continue
4108else
4109  echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112  # Passes both tests.
4113ac_preproc_ok=:
4114break
4115fi
4116rm -f conftest.err conftest.$ac_ext
4117
4118done
4119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4120rm -f conftest.err conftest.$ac_ext
4121if $ac_preproc_ok; then
4122  break
4123fi
4124
4125    done
4126    ac_cv_prog_CPP=$CPP
4127
4128fi
4129  CPP=$ac_cv_prog_CPP
4130else
4131  ac_cv_prog_CPP=$CPP
4132fi
4133echo "$as_me:$LINENO: result: $CPP" >&5
4134echo "${ECHO_T}$CPP" >&6
4135ac_preproc_ok=false
4136for ac_c_preproc_warn_flag in '' yes
4137do
4138  # Use a header file that comes with gcc, so configuring glibc
4139  # with a fresh cross-compiler works.
4140  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141  # <limits.h> exists even on freestanding compilers.
4142  # On the NeXT, cc -E runs the code through the compiler's parser,
4143  # not just through cpp. "Syntax error" is here to catch this case.
4144  cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h.  */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h.  */
4150#ifdef __STDC__
4151# include <limits.h>
4152#else
4153# include <assert.h>
4154#endif
4155		     Syntax error
4156_ACEOF
4157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4158  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4159  ac_status=$?
4160  grep -v '^ *+' conftest.er1 >conftest.err
4161  rm -f conftest.er1
4162  cat conftest.err >&5
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } >/dev/null; then
4165  if test -s conftest.err; then
4166    ac_cpp_err=$ac_c_preproc_warn_flag
4167    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4168  else
4169    ac_cpp_err=
4170  fi
4171else
4172  ac_cpp_err=yes
4173fi
4174if test -z "$ac_cpp_err"; then
4175  :
4176else
4177  echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180  # Broken: fails on valid input.
4181continue
4182fi
4183rm -f conftest.err conftest.$ac_ext
4184
4185  # OK, works on sane cases.  Now check whether non-existent headers
4186  # can be detected and how.
4187  cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193#include <ac_nonexistent.h>
4194_ACEOF
4195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4196  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4197  ac_status=$?
4198  grep -v '^ *+' conftest.er1 >conftest.err
4199  rm -f conftest.er1
4200  cat conftest.err >&5
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); } >/dev/null; then
4203  if test -s conftest.err; then
4204    ac_cpp_err=$ac_c_preproc_warn_flag
4205    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4206  else
4207    ac_cpp_err=
4208  fi
4209else
4210  ac_cpp_err=yes
4211fi
4212if test -z "$ac_cpp_err"; then
4213  # Broken: success on invalid input.
4214continue
4215else
4216  echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219  # Passes both tests.
4220ac_preproc_ok=:
4221break
4222fi
4223rm -f conftest.err conftest.$ac_ext
4224
4225done
4226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227rm -f conftest.err conftest.$ac_ext
4228if $ac_preproc_ok; then
4229  :
4230else
4231  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&5
4233echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4234See \`config.log' for more details." >&2;}
4235   { (exit 1); exit 1; }; }
4236fi
4237
4238ac_ext=c
4239ac_cpp='$CPP $CPPFLAGS'
4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4246echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4247if test "${ac_cv_header_stdc+set}" = set; then
4248  echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250  cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h.  */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h.  */
4256#include <stdlib.h>
4257#include <stdarg.h>
4258#include <string.h>
4259#include <float.h>
4260
4261int
4262main ()
4263{
4264
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269rm -f conftest.$ac_objext
4270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271  (eval $ac_compile) 2>conftest.er1
4272  ac_status=$?
4273  grep -v '^ *+' conftest.er1 >conftest.err
4274  rm -f conftest.er1
4275  cat conftest.err >&5
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); } &&
4278	 { ac_try='test -z "$ac_c_werror_flag"
4279			 || test ! -s conftest.err'
4280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281  (eval $ac_try) 2>&5
4282  ac_status=$?
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); }; } &&
4285	 { ac_try='test -s conftest.$ac_objext'
4286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287  (eval $ac_try) 2>&5
4288  ac_status=$?
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); }; }; then
4291  ac_cv_header_stdc=yes
4292else
4293  echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296ac_cv_header_stdc=no
4297fi
4298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300if test $ac_cv_header_stdc = yes; then
4301  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302  cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308#include <string.h>
4309
4310_ACEOF
4311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312  $EGREP "memchr" >/dev/null 2>&1; then
4313  :
4314else
4315  ac_cv_header_stdc=no
4316fi
4317rm -f conftest*
4318
4319fi
4320
4321if test $ac_cv_header_stdc = yes; then
4322  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323  cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329#include <stdlib.h>
4330
4331_ACEOF
4332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333  $EGREP "free" >/dev/null 2>&1; then
4334  :
4335else
4336  ac_cv_header_stdc=no
4337fi
4338rm -f conftest*
4339
4340fi
4341
4342if test $ac_cv_header_stdc = yes; then
4343  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344  if test "$cross_compiling" = yes; then
4345  :
4346else
4347  cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h.  */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h.  */
4353#include <ctype.h>
4354#if ((' ' & 0x0FF) == 0x020)
4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357#else
4358# define ISLOWER(c) \
4359		   (('a' <= (c) && (c) <= 'i') \
4360		     || ('j' <= (c) && (c) <= 'r') \
4361		     || ('s' <= (c) && (c) <= 'z'))
4362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363#endif
4364
4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4366int
4367main ()
4368{
4369  int i;
4370  for (i = 0; i < 256; i++)
4371    if (XOR (islower (i), ISLOWER (i))
4372	|| toupper (i) != TOUPPER (i))
4373      exit(2);
4374  exit (0);
4375}
4376_ACEOF
4377rm -f conftest$ac_exeext
4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379  (eval $ac_link) 2>&5
4380  ac_status=$?
4381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; }; then
4388  :
4389else
4390  echo "$as_me: program exited with status $ac_status" >&5
4391echo "$as_me: failed program was:" >&5
4392sed 's/^/| /' conftest.$ac_ext >&5
4393
4394( exit $ac_status )
4395ac_cv_header_stdc=no
4396fi
4397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4398fi
4399fi
4400fi
4401echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4402echo "${ECHO_T}$ac_cv_header_stdc" >&6
4403if test $ac_cv_header_stdc = yes; then
4404
4405cat >>confdefs.h <<\_ACEOF
4406#define STDC_HEADERS 1
4407_ACEOF
4408
4409fi
4410
4411# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4422		  inttypes.h stdint.h unistd.h
4423do
4424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425echo "$as_me:$LINENO: checking for $ac_header" >&5
4426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428  echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430  cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436$ac_includes_default
4437
4438#include <$ac_header>
4439_ACEOF
4440rm -f conftest.$ac_objext
4441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442  (eval $ac_compile) 2>conftest.er1
4443  ac_status=$?
4444  grep -v '^ *+' conftest.er1 >conftest.err
4445  rm -f conftest.er1
4446  cat conftest.err >&5
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); } &&
4449	 { ac_try='test -z "$ac_c_werror_flag"
4450			 || test ! -s conftest.err'
4451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452  (eval $ac_try) 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; } &&
4456	 { ac_try='test -s conftest.$ac_objext'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; }; then
4462  eval "$as_ac_Header=yes"
4463else
4464  echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467eval "$as_ac_Header=no"
4468fi
4469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4470fi
4471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4473if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474  cat >>confdefs.h <<_ACEOF
4475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476_ACEOF
4477
4478fi
4479
4480done
4481
4482
4483
4484for ac_header in dlfcn.h
4485do
4486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488  echo "$as_me:$LINENO: checking for $ac_header" >&5
4489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495else
4496  # Is the header compilable?
4497echo "$as_me:$LINENO: checking $ac_header usability" >&5
4498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4499cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505$ac_includes_default
4506#include <$ac_header>
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510  (eval $ac_compile) 2>conftest.er1
4511  ac_status=$?
4512  grep -v '^ *+' conftest.er1 >conftest.err
4513  rm -f conftest.er1
4514  cat conftest.err >&5
4515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); } &&
4517	 { ac_try='test -z "$ac_c_werror_flag"
4518			 || test ! -s conftest.err'
4519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520  (eval $ac_try) 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); }; } &&
4524	 { ac_try='test -s conftest.$ac_objext'
4525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526  (eval $ac_try) 2>&5
4527  ac_status=$?
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); }; }; then
4530  ac_header_compiler=yes
4531else
4532  echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535ac_header_compiler=no
4536fi
4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539echo "${ECHO_T}$ac_header_compiler" >&6
4540
4541# Is the header present?
4542echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h.  */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h.  */
4550#include <$ac_header>
4551_ACEOF
4552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4554  ac_status=$?
4555  grep -v '^ *+' conftest.er1 >conftest.err
4556  rm -f conftest.er1
4557  cat conftest.err >&5
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); } >/dev/null; then
4560  if test -s conftest.err; then
4561    ac_cpp_err=$ac_c_preproc_warn_flag
4562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4563  else
4564    ac_cpp_err=
4565  fi
4566else
4567  ac_cpp_err=yes
4568fi
4569if test -z "$ac_cpp_err"; then
4570  ac_header_preproc=yes
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575  ac_header_preproc=no
4576fi
4577rm -f conftest.err conftest.$ac_ext
4578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579echo "${ECHO_T}$ac_header_preproc" >&6
4580
4581# So?  What about this header?
4582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583  yes:no: )
4584    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4588    ac_header_preproc=yes
4589    ;;
4590  no:yes:* )
4591    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4594echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4595    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4598echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4603    (
4604      cat <<\_ASBOX
4605## ------------------------------------------ ##
4606## Report this to the AC_PACKAGE_NAME lists.  ##
4607## ------------------------------------------ ##
4608_ASBOX
4609    ) |
4610      sed "s/^/$as_me: WARNING:     /" >&2
4611    ;;
4612esac
4613echo "$as_me:$LINENO: checking for $ac_header" >&5
4614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  eval "$as_ac_Header=\$ac_header_preproc"
4619fi
4620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622
4623fi
4624if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625  cat >>confdefs.h <<_ACEOF
4626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627_ACEOF
4628
4629fi
4630
4631done
4632
4633ac_ext=cc
4634ac_cpp='$CXXCPP $CPPFLAGS'
4635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4638if test -n "$ac_tool_prefix"; then
4639  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4640  do
4641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4643echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645if test "${ac_cv_prog_CXX+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  if test -n "$CXX"; then
4649  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656  for ac_exec_ext in '' $ac_executable_extensions; do
4657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663done
4664
4665fi
4666fi
4667CXX=$ac_cv_prog_CXX
4668if test -n "$CXX"; then
4669  echo "$as_me:$LINENO: result: $CXX" >&5
4670echo "${ECHO_T}$CXX" >&6
4671else
4672  echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674fi
4675
4676    test -n "$CXX" && break
4677  done
4678fi
4679if test -z "$CXX"; then
4680  ac_ct_CXX=$CXX
4681  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4682do
4683  # Extract the first word of "$ac_prog", so it can be a program name with args.
4684set dummy $ac_prog; ac_word=$2
4685echo "$as_me:$LINENO: checking for $ac_word" >&5
4686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  if test -n "$ac_ct_CXX"; then
4691  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698  for ac_exec_ext in '' $ac_executable_extensions; do
4699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700    ac_cv_prog_ac_ct_CXX="$ac_prog"
4701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702    break 2
4703  fi
4704done
4705done
4706
4707fi
4708fi
4709ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4710if test -n "$ac_ct_CXX"; then
4711  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4712echo "${ECHO_T}$ac_ct_CXX" >&6
4713else
4714  echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716fi
4717
4718  test -n "$ac_ct_CXX" && break
4719done
4720test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4721
4722  CXX=$ac_ct_CXX
4723fi
4724
4725
4726# Provide some information about the compiler.
4727echo "$as_me:$LINENO:" \
4728     "checking for C++ compiler version" >&5
4729ac_compiler=`set X $ac_compile; echo $2`
4730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4731  (eval $ac_compiler --version </dev/null >&5) 2>&5
4732  ac_status=$?
4733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734  (exit $ac_status); }
4735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4736  (eval $ac_compiler -v </dev/null >&5) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }
4740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4741  (eval $ac_compiler -V </dev/null >&5) 2>&5
4742  ac_status=$?
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); }
4745
4746echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4747echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4748if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h.  */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h.  */
4757
4758int
4759main ()
4760{
4761#ifndef __GNUC__
4762       choke me
4763#endif
4764
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771  (eval $ac_compile) 2>conftest.er1
4772  ac_status=$?
4773  grep -v '^ *+' conftest.er1 >conftest.err
4774  rm -f conftest.er1
4775  cat conftest.err >&5
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); } &&
4778	 { ac_try='test -z "$ac_cxx_werror_flag"
4779			 || test ! -s conftest.err'
4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781  (eval $ac_try) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; } &&
4785	 { ac_try='test -s conftest.$ac_objext'
4786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787  (eval $ac_try) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); }; }; then
4791  ac_compiler_gnu=yes
4792else
4793  echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796ac_compiler_gnu=no
4797fi
4798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4800
4801fi
4802echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4803echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4804GXX=`test $ac_compiler_gnu = yes && echo yes`
4805ac_test_CXXFLAGS=${CXXFLAGS+set}
4806ac_save_CXXFLAGS=$CXXFLAGS
4807CXXFLAGS="-g"
4808echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4809echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4810if test "${ac_cv_prog_cxx_g+set}" = set; then
4811  echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813  cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h.  */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830  (eval $ac_compile) 2>conftest.er1
4831  ac_status=$?
4832  grep -v '^ *+' conftest.er1 >conftest.err
4833  rm -f conftest.er1
4834  cat conftest.err >&5
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } &&
4837	 { ac_try='test -z "$ac_cxx_werror_flag"
4838			 || test ! -s conftest.err'
4839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840  (eval $ac_try) 2>&5
4841  ac_status=$?
4842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); }; } &&
4844	 { ac_try='test -s conftest.$ac_objext'
4845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846  (eval $ac_try) 2>&5
4847  ac_status=$?
4848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849  (exit $ac_status); }; }; then
4850  ac_cv_prog_cxx_g=yes
4851else
4852  echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855ac_cv_prog_cxx_g=no
4856fi
4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858fi
4859echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4860echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4861if test "$ac_test_CXXFLAGS" = set; then
4862  CXXFLAGS=$ac_save_CXXFLAGS
4863elif test $ac_cv_prog_cxx_g = yes; then
4864  if test "$GXX" = yes; then
4865    CXXFLAGS="-g -O2"
4866  else
4867    CXXFLAGS="-g"
4868  fi
4869else
4870  if test "$GXX" = yes; then
4871    CXXFLAGS="-O2"
4872  else
4873    CXXFLAGS=
4874  fi
4875fi
4876for ac_declaration in \
4877   '' \
4878   'extern "C" void std::exit (int) throw (); using std::exit;' \
4879   'extern "C" void std::exit (int); using std::exit;' \
4880   'extern "C" void exit (int) throw ();' \
4881   'extern "C" void exit (int);' \
4882   'void exit (int);'
4883do
4884  cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h.  */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h.  */
4890$ac_declaration
4891#include <stdlib.h>
4892int
4893main ()
4894{
4895exit (42);
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900rm -f conftest.$ac_objext
4901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902  (eval $ac_compile) 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } &&
4909	 { ac_try='test -z "$ac_cxx_werror_flag"
4910			 || test ! -s conftest.err'
4911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912  (eval $ac_try) 2>&5
4913  ac_status=$?
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); }; } &&
4916	 { ac_try='test -s conftest.$ac_objext'
4917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918  (eval $ac_try) 2>&5
4919  ac_status=$?
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); }; }; then
4922  :
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927continue
4928fi
4929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930  cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h.  */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h.  */
4936$ac_declaration
4937int
4938main ()
4939{
4940exit (42);
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947  (eval $ac_compile) 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } &&
4954	 { ac_try='test -z "$ac_cxx_werror_flag"
4955			 || test ! -s conftest.err'
4956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957  (eval $ac_try) 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }; } &&
4961	 { ac_try='test -s conftest.$ac_objext'
4962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963  (eval $ac_try) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; }; then
4967  break
4968else
4969  echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974done
4975rm -f conftest*
4976if test -n "$ac_declaration"; then
4977  echo '#ifdef __cplusplus' >>confdefs.h
4978  echo $ac_declaration      >>confdefs.h
4979  echo '#endif'             >>confdefs.h
4980fi
4981
4982ac_ext=cc
4983ac_cpp='$CXXCPP $CPPFLAGS'
4984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987
4988depcc="$CXX"  am_compiler_list=
4989
4990echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4991echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4992if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4996  # We make a subdir and do the tests there.  Otherwise we can end up
4997  # making bogus files that we don't know about and never remove.  For
4998  # instance it was reported that on HP-UX the gcc test will end up
4999  # making a dummy file named `D' -- because `-MD' means `put the output
5000  # in D'.
5001  mkdir conftest.dir
5002  # Copy depcomp to subdir because otherwise we won't find it if we're
5003  # using a relative directory.
5004  cp "$am_depcomp" conftest.dir
5005  cd conftest.dir
5006  # We will build objects and dependencies in a subdirectory because
5007  # it helps to detect inapplicable dependency modes.  For instance
5008  # both Tru64's cc and ICC support -MD to output dependencies as a
5009  # side effect of compilation, but ICC will put the dependencies in
5010  # the current directory while Tru64 will put them in the object
5011  # directory.
5012  mkdir sub
5013
5014  am_cv_CXX_dependencies_compiler_type=none
5015  if test "$am_compiler_list" = ""; then
5016     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5017  fi
5018  for depmode in $am_compiler_list; do
5019    # Setup a source with many dependencies, because some compilers
5020    # like to wrap large dependency lists on column 80 (with \), and
5021    # we should not choose a depcomp mode which is confused by this.
5022    #
5023    # We need to recreate these files for each test, as the compiler may
5024    # overwrite some of them when testing with obscure command lines.
5025    # This happens at least with the AIX C compiler.
5026    : > sub/conftest.c
5027    for i in 1 2 3 4 5 6; do
5028      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5029      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5030      # Solaris 8's {/usr,}/bin/sh.
5031      touch sub/conftst$i.h
5032    done
5033    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5034
5035    case $depmode in
5036    nosideeffect)
5037      # after this tag, mechanisms are not by side-effect, so they'll
5038      # only be used when explicitly requested
5039      if test "x$enable_dependency_tracking" = xyes; then
5040	continue
5041      else
5042	break
5043      fi
5044      ;;
5045    none) break ;;
5046    esac
5047    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5048    # mode.  It turns out that the SunPro C++ compiler does not properly
5049    # handle `-M -o', and we need to detect this.
5050    if depmode=$depmode \
5051       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5052       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5053       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5054         >/dev/null 2>conftest.err &&
5055       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5056       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5057       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5058      # icc doesn't choke on unknown options, it will just issue warnings
5059      # or remarks (even with -Werror).  So we grep stderr for any message
5060      # that says an option was ignored or not supported.
5061      # When given -MP, icc 7.0 and 7.1 complain thusly:
5062      #   icc: Command line warning: ignoring option '-M'; no argument required
5063      # The diagnosis changed in icc 8.0:
5064      #   icc: Command line remark: option '-MP' not supported
5065      if (grep 'ignoring option' conftest.err ||
5066          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5067        am_cv_CXX_dependencies_compiler_type=$depmode
5068        break
5069      fi
5070    fi
5071  done
5072
5073  cd ..
5074  rm -rf conftest.dir
5075else
5076  am_cv_CXX_dependencies_compiler_type=none
5077fi
5078
5079fi
5080echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5081echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5082CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5083
5084
5085
5086if
5087  test "x$enable_dependency_tracking" != xno \
5088  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5089  am__fastdepCXX_TRUE=
5090  am__fastdepCXX_FALSE='#'
5091else
5092  am__fastdepCXX_TRUE='#'
5093  am__fastdepCXX_FALSE=
5094fi
5095
5096
5097
5098
5099if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5100    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5101    (test "X$CXX" != "Xg++"))) ; then
5102  ac_ext=cc
5103ac_cpp='$CXXCPP $CPPFLAGS'
5104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5108echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5109if test -z "$CXXCPP"; then
5110  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5111  echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113      # Double quotes because CXXCPP needs to be expanded
5114    for CXXCPP in "$CXX -E" "/lib/cpp"
5115    do
5116      ac_preproc_ok=false
5117for ac_cxx_preproc_warn_flag in '' yes
5118do
5119  # Use a header file that comes with gcc, so configuring glibc
5120  # with a fresh cross-compiler works.
5121  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5122  # <limits.h> exists even on freestanding compilers.
5123  # On the NeXT, cc -E runs the code through the compiler's parser,
5124  # not just through cpp. "Syntax error" is here to catch this case.
5125  cat >conftest.$ac_ext <<_ACEOF
5126/* confdefs.h.  */
5127_ACEOF
5128cat confdefs.h >>conftest.$ac_ext
5129cat >>conftest.$ac_ext <<_ACEOF
5130/* end confdefs.h.  */
5131#ifdef __STDC__
5132# include <limits.h>
5133#else
5134# include <assert.h>
5135#endif
5136		     Syntax error
5137_ACEOF
5138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } >/dev/null; then
5146  if test -s conftest.err; then
5147    ac_cpp_err=$ac_cxx_preproc_warn_flag
5148    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5149  else
5150    ac_cpp_err=
5151  fi
5152else
5153  ac_cpp_err=yes
5154fi
5155if test -z "$ac_cpp_err"; then
5156  :
5157else
5158  echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161  # Broken: fails on valid input.
5162continue
5163fi
5164rm -f conftest.err conftest.$ac_ext
5165
5166  # OK, works on sane cases.  Now check whether non-existent headers
5167  # can be detected and how.
5168  cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174#include <ac_nonexistent.h>
5175_ACEOF
5176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178  ac_status=$?
5179  grep -v '^ *+' conftest.er1 >conftest.err
5180  rm -f conftest.er1
5181  cat conftest.err >&5
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); } >/dev/null; then
5184  if test -s conftest.err; then
5185    ac_cpp_err=$ac_cxx_preproc_warn_flag
5186    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5187  else
5188    ac_cpp_err=
5189  fi
5190else
5191  ac_cpp_err=yes
5192fi
5193if test -z "$ac_cpp_err"; then
5194  # Broken: success on invalid input.
5195continue
5196else
5197  echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200  # Passes both tests.
5201ac_preproc_ok=:
5202break
5203fi
5204rm -f conftest.err conftest.$ac_ext
5205
5206done
5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208rm -f conftest.err conftest.$ac_ext
5209if $ac_preproc_ok; then
5210  break
5211fi
5212
5213    done
5214    ac_cv_prog_CXXCPP=$CXXCPP
5215
5216fi
5217  CXXCPP=$ac_cv_prog_CXXCPP
5218else
5219  ac_cv_prog_CXXCPP=$CXXCPP
5220fi
5221echo "$as_me:$LINENO: result: $CXXCPP" >&5
5222echo "${ECHO_T}$CXXCPP" >&6
5223ac_preproc_ok=false
5224for ac_cxx_preproc_warn_flag in '' yes
5225do
5226  # Use a header file that comes with gcc, so configuring glibc
5227  # with a fresh cross-compiler works.
5228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229  # <limits.h> exists even on freestanding compilers.
5230  # On the NeXT, cc -E runs the code through the compiler's parser,
5231  # not just through cpp. "Syntax error" is here to catch this case.
5232  cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h.  */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h.  */
5238#ifdef __STDC__
5239# include <limits.h>
5240#else
5241# include <assert.h>
5242#endif
5243		     Syntax error
5244_ACEOF
5245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5246  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5247  ac_status=$?
5248  grep -v '^ *+' conftest.er1 >conftest.err
5249  rm -f conftest.er1
5250  cat conftest.err >&5
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); } >/dev/null; then
5253  if test -s conftest.err; then
5254    ac_cpp_err=$ac_cxx_preproc_warn_flag
5255    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5256  else
5257    ac_cpp_err=
5258  fi
5259else
5260  ac_cpp_err=yes
5261fi
5262if test -z "$ac_cpp_err"; then
5263  :
5264else
5265  echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268  # Broken: fails on valid input.
5269continue
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272
5273  # OK, works on sane cases.  Now check whether non-existent headers
5274  # can be detected and how.
5275  cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281#include <ac_nonexistent.h>
5282_ACEOF
5283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285  ac_status=$?
5286  grep -v '^ *+' conftest.er1 >conftest.err
5287  rm -f conftest.er1
5288  cat conftest.err >&5
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); } >/dev/null; then
5291  if test -s conftest.err; then
5292    ac_cpp_err=$ac_cxx_preproc_warn_flag
5293    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5294  else
5295    ac_cpp_err=
5296  fi
5297else
5298  ac_cpp_err=yes
5299fi
5300if test -z "$ac_cpp_err"; then
5301  # Broken: success on invalid input.
5302continue
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307  # Passes both tests.
5308ac_preproc_ok=:
5309break
5310fi
5311rm -f conftest.err conftest.$ac_ext
5312
5313done
5314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5315rm -f conftest.err conftest.$ac_ext
5316if $ac_preproc_ok; then
5317  :
5318else
5319  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5320See \`config.log' for more details." >&5
5321echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5322See \`config.log' for more details." >&2;}
5323   { (exit 1); exit 1; }; }
5324fi
5325
5326ac_ext=cc
5327ac_cpp='$CXXCPP $CPPFLAGS'
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
5332fi
5333
5334
5335ac_ext=f
5336ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5337ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5339if test -n "$ac_tool_prefix"; then
5340  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5341  do
5342    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_F77+set}" = set; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  if test -n "$F77"; then
5350  ac_cv_prog_F77="$F77" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357  for ac_exec_ext in '' $ac_executable_extensions; do
5358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364done
5365
5366fi
5367fi
5368F77=$ac_cv_prog_F77
5369if test -n "$F77"; then
5370  echo "$as_me:$LINENO: result: $F77" >&5
5371echo "${ECHO_T}$F77" >&6
5372else
5373  echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375fi
5376
5377    test -n "$F77" && break
5378  done
5379fi
5380if test -z "$F77"; then
5381  ac_ct_F77=$F77
5382  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5383do
5384  # Extract the first word of "$ac_prog", so it can be a program name with args.
5385set dummy $ac_prog; ac_word=$2
5386echo "$as_me:$LINENO: checking for $ac_word" >&5
5387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  if test -n "$ac_ct_F77"; then
5392  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399  for ac_exec_ext in '' $ac_executable_extensions; do
5400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401    ac_cv_prog_ac_ct_F77="$ac_prog"
5402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406done
5407
5408fi
5409fi
5410ac_ct_F77=$ac_cv_prog_ac_ct_F77
5411if test -n "$ac_ct_F77"; then
5412  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5413echo "${ECHO_T}$ac_ct_F77" >&6
5414else
5415  echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419  test -n "$ac_ct_F77" && break
5420done
5421
5422  F77=$ac_ct_F77
5423fi
5424
5425
5426# Provide some information about the compiler.
5427echo "$as_me:5427:" \
5428     "checking for Fortran 77 compiler version" >&5
5429ac_compiler=`set X $ac_compile; echo $2`
5430{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5431  (eval $ac_compiler --version </dev/null >&5) 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }
5435{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5436  (eval $ac_compiler -v </dev/null >&5) 2>&5
5437  ac_status=$?
5438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439  (exit $ac_status); }
5440{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5441  (eval $ac_compiler -V </dev/null >&5) 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }
5445rm -f a.out
5446
5447# If we don't use `.F' as extension, the preprocessor is not run on the
5448# input file.  (Note that this only needs to work for GNU compilers.)
5449ac_save_ext=$ac_ext
5450ac_ext=F
5451echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5452echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5453if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5454  echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456  cat >conftest.$ac_ext <<_ACEOF
5457      program main
5458#ifndef __GNUC__
5459       choke me
5460#endif
5461
5462      end
5463_ACEOF
5464rm -f conftest.$ac_objext
5465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466  (eval $ac_compile) 2>conftest.er1
5467  ac_status=$?
5468  grep -v '^ *+' conftest.er1 >conftest.err
5469  rm -f conftest.er1
5470  cat conftest.err >&5
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); } &&
5473	 { ac_try='test -z "$ac_f77_werror_flag"
5474			 || test ! -s conftest.err'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; } &&
5480	 { ac_try='test -s conftest.$ac_objext'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; }; then
5486  ac_compiler_gnu=yes
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491ac_compiler_gnu=no
5492fi
5493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5495
5496fi
5497echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5498echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5499ac_ext=$ac_save_ext
5500ac_test_FFLAGS=${FFLAGS+set}
5501ac_save_FFLAGS=$FFLAGS
5502FFLAGS=
5503echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5504echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5505if test "${ac_cv_prog_f77_g+set}" = set; then
5506  echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508  FFLAGS=-g
5509cat >conftest.$ac_ext <<_ACEOF
5510      program main
5511
5512      end
5513_ACEOF
5514rm -f conftest.$ac_objext
5515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516  (eval $ac_compile) 2>conftest.er1
5517  ac_status=$?
5518  grep -v '^ *+' conftest.er1 >conftest.err
5519  rm -f conftest.er1
5520  cat conftest.err >&5
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); } &&
5523	 { ac_try='test -z "$ac_f77_werror_flag"
5524			 || test ! -s conftest.err'
5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526  (eval $ac_try) 2>&5
5527  ac_status=$?
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }; } &&
5530	 { ac_try='test -s conftest.$ac_objext'
5531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532  (eval $ac_try) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }; }; then
5536  ac_cv_prog_f77_g=yes
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541ac_cv_prog_f77_g=no
5542fi
5543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544
5545fi
5546echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5547echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5548if test "$ac_test_FFLAGS" = set; then
5549  FFLAGS=$ac_save_FFLAGS
5550elif test $ac_cv_prog_f77_g = yes; then
5551  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5552    FFLAGS="-g -O2"
5553  else
5554    FFLAGS="-g"
5555  fi
5556else
5557  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5558    FFLAGS="-O2"
5559  else
5560    FFLAGS=
5561  fi
5562fi
5563
5564G77=`test $ac_compiler_gnu = yes && echo yes`
5565ac_ext=c
5566ac_cpp='$CPP $CPPFLAGS'
5567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570
5571
5572
5573# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5574
5575# find the maximum length of command line arguments
5576echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5577echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5578if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5579  echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581    i=0
5582  teststring="ABCD"
5583
5584  case $build_os in
5585  msdosdjgpp*)
5586    # On DJGPP, this test can blow up pretty badly due to problems in libc
5587    # (any single argument exceeding 2000 bytes causes a buffer overrun
5588    # during glob expansion).  Even if it were fixed, the result of this
5589    # check would be larger than it should be.
5590    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5591    ;;
5592
5593  gnu*)
5594    # Under GNU Hurd, this test is not required because there is
5595    # no limit to the length of command line arguments.
5596    # Libtool will interpret -1 as no limit whatsoever
5597    lt_cv_sys_max_cmd_len=-1;
5598    ;;
5599
5600  cygwin* | mingw*)
5601    # On Win9x/ME, this test blows up -- it succeeds, but takes
5602    # about 5 minutes as the teststring grows exponentially.
5603    # Worse, since 9x/ME are not pre-emptively multitasking,
5604    # you end up with a "frozen" computer, even though with patience
5605    # the test eventually succeeds (with a max line length of 256k).
5606    # Instead, let's just punt: use the minimum linelength reported by
5607    # all of the supported platforms: 8192 (on NT/2K/XP).
5608    lt_cv_sys_max_cmd_len=8192;
5609    ;;
5610
5611  amigaos*)
5612    # On AmigaOS with pdksh, this test takes hours, literally.
5613    # So we just punt and use a minimum line length of 8192.
5614    lt_cv_sys_max_cmd_len=8192;
5615    ;;
5616
5617  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5618    # This has been around since 386BSD, at least.  Likely further.
5619    if test -x /sbin/sysctl; then
5620      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5621    elif test -x /usr/sbin/sysctl; then
5622      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5623    else
5624      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5625    fi
5626    # And add a safety zone
5627    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629    ;;
5630
5631  interix*)
5632    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5633    lt_cv_sys_max_cmd_len=196608
5634    ;;
5635
5636  osf*)
5637    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5638    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5639    # nice to cause kernel panics so lets avoid the loop below.
5640    # First set a reasonable default.
5641    lt_cv_sys_max_cmd_len=16384
5642    #
5643    if test -x /sbin/sysconfig; then
5644      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5645        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5646      esac
5647    fi
5648    ;;
5649  sco3.2v5*)
5650    lt_cv_sys_max_cmd_len=102400
5651    ;;
5652  sysv5* | sco5v6* | sysv4.2uw2*)
5653    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5654    if test -n "$kargmax"; then
5655      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5656    else
5657      lt_cv_sys_max_cmd_len=32768
5658    fi
5659    ;;
5660  *)
5661    # If test is not a shell built-in, we'll probably end up computing a
5662    # maximum length that is only half of the actual maximum length, but
5663    # we can't tell.
5664    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5665    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5666	       = "XX$teststring") >/dev/null 2>&1 &&
5667	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5668	    lt_cv_sys_max_cmd_len=$new_result &&
5669	    test $i != 17 # 1/2 MB should be enough
5670    do
5671      i=`expr $i + 1`
5672      teststring=$teststring$teststring
5673    done
5674    teststring=
5675    # Add a significant safety factor because C++ compilers can tack on massive
5676    # amounts of additional arguments before passing them to the linker.
5677    # It appears as though 1/2 is a usable value.
5678    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5679    ;;
5680  esac
5681
5682fi
5683
5684if test -n $lt_cv_sys_max_cmd_len ; then
5685  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5686echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5687else
5688  echo "$as_me:$LINENO: result: none" >&5
5689echo "${ECHO_T}none" >&6
5690fi
5691
5692
5693
5694
5695# Check for command to grab the raw symbol name followed by C symbol from nm.
5696echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5697echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5698if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701
5702# These are sane defaults that work on at least a few old systems.
5703# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5704
5705# Character class describing NM global symbol codes.
5706symcode='[BCDEGRST]'
5707
5708# Regexp to match symbols that can be accessed directly from C.
5709sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5710
5711# Transform an extracted symbol line into a proper C declaration
5712lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5713
5714# Transform an extracted symbol line into symbol name and symbol address
5715lt_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'"
5716
5717# Define system-specific variables.
5718case $host_os in
5719aix*)
5720  symcode='[BCDT]'
5721  ;;
5722cygwin* | mingw* | pw32*)
5723  symcode='[ABCDGISTW]'
5724  ;;
5725hpux*) # Its linker distinguishes data from code symbols
5726  if test "$host_cpu" = ia64; then
5727    symcode='[ABCDEGRST]'
5728  fi
5729  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5730  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'"
5731  ;;
5732linux*)
5733  if test "$host_cpu" = ia64; then
5734    symcode='[ABCDGIRSTW]'
5735    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5736    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'"
5737  fi
5738  ;;
5739irix* | nonstopux*)
5740  symcode='[BCDEGRST]'
5741  ;;
5742osf*)
5743  symcode='[BCDEGQRST]'
5744  ;;
5745solaris*)
5746  symcode='[BDRT]'
5747  ;;
5748sco3.2v5*)
5749  symcode='[DT]'
5750  ;;
5751sysv4.2uw2*)
5752  symcode='[DT]'
5753  ;;
5754sysv5* | sco5v6* | unixware* | OpenUNIX*)
5755  symcode='[ABDT]'
5756  ;;
5757sysv4)
5758  symcode='[DFNSTU]'
5759  ;;
5760esac
5761
5762# Handle CRLF in mingw tool chain
5763opt_cr=
5764case $build_os in
5765mingw*)
5766  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5767  ;;
5768esac
5769
5770# If we're using GNU nm, then use its standard symbol codes.
5771case `$NM -V 2>&1` in
5772*GNU* | *'with BFD'*)
5773  symcode='[ABCDGIRSTW]' ;;
5774esac
5775
5776# Try without a prefix undercore, then with it.
5777for ac_symprfx in "" "_"; do
5778
5779  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5780  symxfrm="\\1 $ac_symprfx\\2 \\2"
5781
5782  # Write the raw and C identifiers.
5783  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5784
5785  # Check to see that the pipe works correctly.
5786  pipe_works=no
5787
5788  rm -f conftest*
5789  cat > conftest.$ac_ext <<EOF
5790#ifdef __cplusplus
5791extern "C" {
5792#endif
5793char nm_test_var;
5794void nm_test_func(){}
5795#ifdef __cplusplus
5796}
5797#endif
5798int main(){nm_test_var='a';nm_test_func();return(0);}
5799EOF
5800
5801  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802  (eval $ac_compile) 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; then
5806    # Now try to grab the symbols.
5807    nlist=conftest.nm
5808    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5809  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5810  ac_status=$?
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); } && test -s "$nlist"; then
5813      # Try sorting and uniquifying the output.
5814      if sort "$nlist" | uniq > "$nlist"T; then
5815	mv -f "$nlist"T "$nlist"
5816      else
5817	rm -f "$nlist"T
5818      fi
5819
5820      # Make sure that we snagged all the symbols we need.
5821      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5822	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5823	  cat <<EOF > conftest.$ac_ext
5824#ifdef __cplusplus
5825extern "C" {
5826#endif
5827
5828EOF
5829	  # Now generate the symbol file.
5830	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5831
5832	  cat <<EOF >> conftest.$ac_ext
5833#if defined (__STDC__) && __STDC__
5834# define lt_ptr_t void *
5835#else
5836# define lt_ptr_t char *
5837# define const
5838#endif
5839
5840/* The mapping between symbol names and symbols. */
5841const struct {
5842  const char *name;
5843  lt_ptr_t address;
5844}
5845lt_preloaded_symbols[] =
5846{
5847EOF
5848	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5849	  cat <<\EOF >> conftest.$ac_ext
5850  {0, (lt_ptr_t) 0}
5851};
5852
5853#ifdef __cplusplus
5854}
5855#endif
5856EOF
5857	  # Now try linking the two files.
5858	  mv conftest.$ac_objext conftstm.$ac_objext
5859	  lt_save_LIBS="$LIBS"
5860	  lt_save_CFLAGS="$CFLAGS"
5861	  LIBS="conftstm.$ac_objext"
5862	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5863	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864  (eval $ac_link) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5868	    pipe_works=yes
5869	  fi
5870	  LIBS="$lt_save_LIBS"
5871	  CFLAGS="$lt_save_CFLAGS"
5872	else
5873	  echo "cannot find nm_test_func in $nlist" >&5
5874	fi
5875      else
5876	echo "cannot find nm_test_var in $nlist" >&5
5877      fi
5878    else
5879      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5880    fi
5881  else
5882    echo "$progname: failed program was:" >&5
5883    cat conftest.$ac_ext >&5
5884  fi
5885  rm -f conftest* conftst*
5886
5887  # Do not use the global_symbol_pipe unless it works.
5888  if test "$pipe_works" = yes; then
5889    break
5890  else
5891    lt_cv_sys_global_symbol_pipe=
5892  fi
5893done
5894
5895fi
5896
5897if test -z "$lt_cv_sys_global_symbol_pipe"; then
5898  lt_cv_sys_global_symbol_to_cdecl=
5899fi
5900if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5901  echo "$as_me:$LINENO: result: failed" >&5
5902echo "${ECHO_T}failed" >&6
5903else
5904  echo "$as_me:$LINENO: result: ok" >&5
5905echo "${ECHO_T}ok" >&6
5906fi
5907
5908echo "$as_me:$LINENO: checking for objdir" >&5
5909echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5910if test "${lt_cv_objdir+set}" = set; then
5911  echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913  rm -f .libs 2>/dev/null
5914mkdir .libs 2>/dev/null
5915if test -d .libs; then
5916  lt_cv_objdir=.libs
5917else
5918  # MS-DOS does not allow filenames that begin with a dot.
5919  lt_cv_objdir=_libs
5920fi
5921rmdir .libs 2>/dev/null
5922fi
5923echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5924echo "${ECHO_T}$lt_cv_objdir" >&6
5925objdir=$lt_cv_objdir
5926
5927
5928
5929
5930
5931case $host_os in
5932aix3*)
5933  # AIX sometimes has problems with the GCC collect2 program.  For some
5934  # reason, if we set the COLLECT_NAMES environment variable, the problems
5935  # vanish in a puff of smoke.
5936  if test "X${COLLECT_NAMES+set}" != Xset; then
5937    COLLECT_NAMES=
5938    export COLLECT_NAMES
5939  fi
5940  ;;
5941esac
5942
5943# Sed substitution that helps us do robust quoting.  It backslashifies
5944# metacharacters that are still active within double-quoted strings.
5945Xsed='sed -e 1s/^X//'
5946sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5947
5948# Same as above, but do not quote variable references.
5949double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5950
5951# Sed substitution to delay expansion of an escaped shell variable in a
5952# double_quote_subst'ed string.
5953delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5954
5955# Sed substitution to avoid accidental globbing in evaled expressions
5956no_glob_subst='s/\*/\\\*/g'
5957
5958# Constants:
5959rm="rm -f"
5960
5961# Global variables:
5962default_ofile=libtool
5963can_build_shared=yes
5964
5965# All known linkers require a `.a' archive for static linking (except MSVC,
5966# which needs '.lib').
5967libext=a
5968ltmain="$ac_aux_dir/ltmain.sh"
5969ofile="$default_ofile"
5970with_gnu_ld="$lt_cv_prog_gnu_ld"
5971
5972if test -n "$ac_tool_prefix"; then
5973  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5974set dummy ${ac_tool_prefix}ar; ac_word=$2
5975echo "$as_me:$LINENO: checking for $ac_word" >&5
5976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977if test "${ac_cv_prog_AR+set}" = set; then
5978  echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980  if test -n "$AR"; then
5981  ac_cv_prog_AR="$AR" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986  IFS=$as_save_IFS
5987  test -z "$as_dir" && as_dir=.
5988  for ac_exec_ext in '' $ac_executable_extensions; do
5989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990    ac_cv_prog_AR="${ac_tool_prefix}ar"
5991    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992    break 2
5993  fi
5994done
5995done
5996
5997fi
5998fi
5999AR=$ac_cv_prog_AR
6000if test -n "$AR"; then
6001  echo "$as_me:$LINENO: result: $AR" >&5
6002echo "${ECHO_T}$AR" >&6
6003else
6004  echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006fi
6007
6008fi
6009if test -z "$ac_cv_prog_AR"; then
6010  ac_ct_AR=$AR
6011  # Extract the first word of "ar", so it can be a program name with args.
6012set dummy ar; ac_word=$2
6013echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  if test -n "$ac_ct_AR"; then
6019  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  test -z "$as_dir" && as_dir=.
6026  for ac_exec_ext in '' $ac_executable_extensions; do
6027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028    ac_cv_prog_ac_ct_AR="ar"
6029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030    break 2
6031  fi
6032done
6033done
6034
6035  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6036fi
6037fi
6038ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039if test -n "$ac_ct_AR"; then
6040  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6041echo "${ECHO_T}$ac_ct_AR" >&6
6042else
6043  echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045fi
6046
6047  AR=$ac_ct_AR
6048else
6049  AR="$ac_cv_prog_AR"
6050fi
6051
6052if test -n "$ac_tool_prefix"; then
6053  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6055echo "$as_me:$LINENO: checking for $ac_word" >&5
6056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6057if test "${ac_cv_prog_RANLIB+set}" = set; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060  if test -n "$RANLIB"; then
6061  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066  IFS=$as_save_IFS
6067  test -z "$as_dir" && as_dir=.
6068  for ac_exec_ext in '' $ac_executable_extensions; do
6069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072    break 2
6073  fi
6074done
6075done
6076
6077fi
6078fi
6079RANLIB=$ac_cv_prog_RANLIB
6080if test -n "$RANLIB"; then
6081  echo "$as_me:$LINENO: result: $RANLIB" >&5
6082echo "${ECHO_T}$RANLIB" >&6
6083else
6084  echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086fi
6087
6088fi
6089if test -z "$ac_cv_prog_RANLIB"; then
6090  ac_ct_RANLIB=$RANLIB
6091  # Extract the first word of "ranlib", so it can be a program name with args.
6092set dummy ranlib; ac_word=$2
6093echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098  if test -n "$ac_ct_RANLIB"; then
6099  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106  for ac_exec_ext in '' $ac_executable_extensions; do
6107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108    ac_cv_prog_ac_ct_RANLIB="ranlib"
6109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113done
6114
6115  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6116fi
6117fi
6118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6119if test -n "$ac_ct_RANLIB"; then
6120  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6121echo "${ECHO_T}$ac_ct_RANLIB" >&6
6122else
6123  echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125fi
6126
6127  RANLIB=$ac_ct_RANLIB
6128else
6129  RANLIB="$ac_cv_prog_RANLIB"
6130fi
6131
6132if test -n "$ac_tool_prefix"; then
6133  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6134set dummy ${ac_tool_prefix}strip; ac_word=$2
6135echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6137if test "${ac_cv_prog_STRIP+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  if test -n "$STRIP"; then
6141  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148  for ac_exec_ext in '' $ac_executable_extensions; do
6149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155done
6156
6157fi
6158fi
6159STRIP=$ac_cv_prog_STRIP
6160if test -n "$STRIP"; then
6161  echo "$as_me:$LINENO: result: $STRIP" >&5
6162echo "${ECHO_T}$STRIP" >&6
6163else
6164  echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166fi
6167
6168fi
6169if test -z "$ac_cv_prog_STRIP"; then
6170  ac_ct_STRIP=$STRIP
6171  # Extract the first word of "strip", so it can be a program name with args.
6172set dummy strip; ac_word=$2
6173echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6176  echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178  if test -n "$ac_ct_STRIP"; then
6179  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184  IFS=$as_save_IFS
6185  test -z "$as_dir" && as_dir=.
6186  for ac_exec_ext in '' $ac_executable_extensions; do
6187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188    ac_cv_prog_ac_ct_STRIP="strip"
6189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190    break 2
6191  fi
6192done
6193done
6194
6195  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6196fi
6197fi
6198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6199if test -n "$ac_ct_STRIP"; then
6200  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6201echo "${ECHO_T}$ac_ct_STRIP" >&6
6202else
6203  echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
6205fi
6206
6207  STRIP=$ac_ct_STRIP
6208else
6209  STRIP="$ac_cv_prog_STRIP"
6210fi
6211
6212
6213old_CC="$CC"
6214old_CFLAGS="$CFLAGS"
6215
6216# Set sane defaults for various variables
6217test -z "$AR" && AR=ar
6218test -z "$AR_FLAGS" && AR_FLAGS=cru
6219test -z "$AS" && AS=as
6220test -z "$CC" && CC=cc
6221test -z "$LTCC" && LTCC=$CC
6222test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6223test -z "$DLLTOOL" && DLLTOOL=dlltool
6224test -z "$LD" && LD=ld
6225test -z "$LN_S" && LN_S="ln -s"
6226test -z "$MAGIC_CMD" && MAGIC_CMD=file
6227test -z "$NM" && NM=nm
6228test -z "$SED" && SED=sed
6229test -z "$OBJDUMP" && OBJDUMP=objdump
6230test -z "$RANLIB" && RANLIB=:
6231test -z "$STRIP" && STRIP=:
6232test -z "$ac_objext" && ac_objext=o
6233
6234# Determine commands to create old-style static archives.
6235old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6236old_postinstall_cmds='chmod 644 $oldlib'
6237old_postuninstall_cmds=
6238
6239if test -n "$RANLIB"; then
6240  case $host_os in
6241  openbsd*)
6242    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6243    ;;
6244  *)
6245    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6246    ;;
6247  esac
6248  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6249fi
6250
6251for cc_temp in $compiler""; do
6252  case $cc_temp in
6253    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6254    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6255    \-*) ;;
6256    *) break;;
6257  esac
6258done
6259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6260
6261
6262# Only perform the check for file, if the check method requires it
6263case $deplibs_check_method in
6264file_magic*)
6265  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6266    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6267echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6268if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  case $MAGIC_CMD in
6272[\\/*] |  ?:[\\/]*)
6273  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6274  ;;
6275*)
6276  lt_save_MAGIC_CMD="$MAGIC_CMD"
6277  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6278  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6279  for ac_dir in $ac_dummy; do
6280    IFS="$lt_save_ifs"
6281    test -z "$ac_dir" && ac_dir=.
6282    if test -f $ac_dir/${ac_tool_prefix}file; then
6283      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6284      if test -n "$file_magic_test_file"; then
6285	case $deplibs_check_method in
6286	"file_magic "*)
6287	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6288	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6289	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6290	    $EGREP "$file_magic_regex" > /dev/null; then
6291	    :
6292	  else
6293	    cat <<EOF 1>&2
6294
6295*** Warning: the command libtool uses to detect shared libraries,
6296*** $file_magic_cmd, produces output that libtool cannot recognize.
6297*** The result is that libtool may fail to recognize shared libraries
6298*** as such.  This will affect the creation of libtool libraries that
6299*** depend on shared libraries, but programs linked with such libtool
6300*** libraries will work regardless of this problem.  Nevertheless, you
6301*** may want to report the problem to your system manager and/or to
6302*** bug-libtool@gnu.org
6303
6304EOF
6305	  fi ;;
6306	esac
6307      fi
6308      break
6309    fi
6310  done
6311  IFS="$lt_save_ifs"
6312  MAGIC_CMD="$lt_save_MAGIC_CMD"
6313  ;;
6314esac
6315fi
6316
6317MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6318if test -n "$MAGIC_CMD"; then
6319  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6320echo "${ECHO_T}$MAGIC_CMD" >&6
6321else
6322  echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324fi
6325
6326if test -z "$lt_cv_path_MAGIC_CMD"; then
6327  if test -n "$ac_tool_prefix"; then
6328    echo "$as_me:$LINENO: checking for file" >&5
6329echo $ECHO_N "checking for file... $ECHO_C" >&6
6330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333  case $MAGIC_CMD in
6334[\\/*] |  ?:[\\/]*)
6335  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6336  ;;
6337*)
6338  lt_save_MAGIC_CMD="$MAGIC_CMD"
6339  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6341  for ac_dir in $ac_dummy; do
6342    IFS="$lt_save_ifs"
6343    test -z "$ac_dir" && ac_dir=.
6344    if test -f $ac_dir/file; then
6345      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6346      if test -n "$file_magic_test_file"; then
6347	case $deplibs_check_method in
6348	"file_magic "*)
6349	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6350	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6351	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6352	    $EGREP "$file_magic_regex" > /dev/null; then
6353	    :
6354	  else
6355	    cat <<EOF 1>&2
6356
6357*** Warning: the command libtool uses to detect shared libraries,
6358*** $file_magic_cmd, produces output that libtool cannot recognize.
6359*** The result is that libtool may fail to recognize shared libraries
6360*** as such.  This will affect the creation of libtool libraries that
6361*** depend on shared libraries, but programs linked with such libtool
6362*** libraries will work regardless of this problem.  Nevertheless, you
6363*** may want to report the problem to your system manager and/or to
6364*** bug-libtool@gnu.org
6365
6366EOF
6367	  fi ;;
6368	esac
6369      fi
6370      break
6371    fi
6372  done
6373  IFS="$lt_save_ifs"
6374  MAGIC_CMD="$lt_save_MAGIC_CMD"
6375  ;;
6376esac
6377fi
6378
6379MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6380if test -n "$MAGIC_CMD"; then
6381  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6382echo "${ECHO_T}$MAGIC_CMD" >&6
6383else
6384  echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386fi
6387
6388  else
6389    MAGIC_CMD=:
6390  fi
6391fi
6392
6393  fi
6394  ;;
6395esac
6396
6397enable_dlopen=no
6398enable_win32_dll=no
6399
6400# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6401if test "${enable_libtool_lock+set}" = set; then
6402  enableval="$enable_libtool_lock"
6403
6404fi;
6405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406
6407
6408# Check whether --with-pic or --without-pic was given.
6409if test "${with_pic+set}" = set; then
6410  withval="$with_pic"
6411  pic_mode="$withval"
6412else
6413  pic_mode=default
6414fi;
6415test -z "$pic_mode" && pic_mode=default
6416
6417# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6418#
6419# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6420#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6421#        calls AC_LIBTOOL_CONFIG and creates libtool.
6422#
6423echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6424echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6425if test "x$ltmain" = "x" ; then
6426  echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428  { { echo "$as_me:$LINENO: error:
6429
6430*** [Gentoo] sanity check failed! ***
6431*** \$ltmain is not defined, please check the patch for consistency! ***
6432" >&5
6433echo "$as_me: error:
6434
6435*** [Gentoo] sanity check failed! ***
6436*** \$ltmain is not defined, please check the patch for consistency! ***
6437" >&2;}
6438   { (exit 1); exit 1; }; }
6439fi
6440gentoo_lt_version="1.5.22"
6441gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
6442if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6443  echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445  { { echo "$as_me:$LINENO: error:
6446
6447*** [Gentoo] sanity check failed! ***
6448*** libtool.m4 and ltmain.sh have a version mismatch! ***
6449*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6450
6451Please run:
6452
6453  libtoolize --copy --force
6454
6455if appropriate, please contact the maintainer of this
6456package (or your distribution) for help.
6457" >&5
6458echo "$as_me: error:
6459
6460*** [Gentoo] sanity check failed! ***
6461*** libtool.m4 and ltmain.sh have a version mismatch! ***
6462*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6463
6464Please run:
6465
6466  libtoolize --copy --force
6467
6468if appropriate, please contact the maintainer of this
6469package (or your distribution) for help.
6470" >&2;}
6471   { (exit 1); exit 1; }; }
6472else
6473  echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475fi
6476
6477
6478# Use C for the default configuration in the libtool script
6479tagname=
6480lt_save_CC="$CC"
6481ac_ext=c
6482ac_cpp='$CPP $CPPFLAGS'
6483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_c_compiler_gnu
6486
6487
6488# Source file extension for C test sources.
6489ac_ext=c
6490
6491# Object file extension for compiled C test sources.
6492objext=o
6493objext=$objext
6494
6495# Code to be used in simple compile tests
6496lt_simple_compile_test_code="int some_variable = 0;\n"
6497
6498# Code to be used in simple link tests
6499lt_simple_link_test_code='int main(){return(0);}\n'
6500
6501
6502# If no C compiler was specified, use CC.
6503LTCC=${LTCC-"$CC"}
6504
6505# If no C compiler flags were specified, use CFLAGS.
6506LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6507
6508# Allow CC to be a program name with arguments.
6509compiler=$CC
6510
6511
6512# save warnings/boilerplate of simple test code
6513ac_outfile=conftest.$ac_objext
6514printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6516_lt_compiler_boilerplate=`cat conftest.err`
6517$rm conftest*
6518
6519ac_outfile=conftest.$ac_objext
6520printf "$lt_simple_link_test_code" >conftest.$ac_ext
6521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6522_lt_linker_boilerplate=`cat conftest.err`
6523$rm conftest*
6524
6525
6526
6527lt_prog_compiler_no_builtin_flag=
6528
6529if test "$GCC" = yes; then
6530  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6531
6532
6533echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6534echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6535if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  lt_cv_prog_compiler_rtti_exceptions=no
6539  ac_outfile=conftest.$ac_objext
6540   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6541   lt_compiler_flag="-fno-rtti -fno-exceptions"
6542   # Insert the option either (1) after the last *FLAGS variable, or
6543   # (2) before a word containing "conftest.", or (3) at the end.
6544   # Note that $ac_compile itself does not contain backslashes and begins
6545   # with a dollar sign (not a hyphen), so the echo should work correctly.
6546   # The option is referenced via a variable to avoid confusing sed.
6547   lt_compile=`echo "$ac_compile" | $SED \
6548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6550   -e 's:$: $lt_compiler_flag:'`
6551   (eval echo "\"\$as_me:6551: $lt_compile\"" >&5)
6552   (eval "$lt_compile" 2>conftest.err)
6553   ac_status=$?
6554   cat conftest.err >&5
6555   echo "$as_me:6555: \$? = $ac_status" >&5
6556   if (exit $ac_status) && test -s "$ac_outfile"; then
6557     # The compiler can only warn and ignore the option if not recognized
6558     # So say no if there are warnings other than the usual output.
6559     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6560     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6561     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6562       lt_cv_prog_compiler_rtti_exceptions=yes
6563     fi
6564   fi
6565   $rm conftest*
6566
6567fi
6568echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6569echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6570
6571if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6572    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6573else
6574    :
6575fi
6576
6577fi
6578
6579lt_prog_compiler_wl=
6580lt_prog_compiler_pic=
6581lt_prog_compiler_static=
6582
6583echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6584echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6585
6586  if test "$GCC" = yes; then
6587    lt_prog_compiler_wl='-Wl,'
6588    lt_prog_compiler_static='-static'
6589
6590    case $host_os in
6591      aix*)
6592      # All AIX code is PIC.
6593      if test "$host_cpu" = ia64; then
6594	# AIX 5 now supports IA64 processor
6595	lt_prog_compiler_static='-Bstatic'
6596      fi
6597      ;;
6598
6599    amigaos*)
6600      # FIXME: we need at least 68020 code to build shared libraries, but
6601      # adding the `-m68020' flag to GCC prevents building anything better,
6602      # like `-m68040'.
6603      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6604      ;;
6605
6606    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6607      # PIC is the default for these OSes.
6608      ;;
6609
6610    mingw* | pw32* | os2*)
6611      # This hack is so that the source file can tell whether it is being
6612      # built for inclusion in a dll (and should export symbols for example).
6613      lt_prog_compiler_pic='-DDLL_EXPORT'
6614      ;;
6615
6616    darwin* | rhapsody*)
6617      # PIC is the default on this platform
6618      # Common symbols not allowed in MH_DYLIB files
6619      lt_prog_compiler_pic='-fno-common'
6620      ;;
6621
6622    interix3*)
6623      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6624      # Instead, we relocate shared libraries at runtime.
6625      ;;
6626
6627    msdosdjgpp*)
6628      # Just because we use GCC doesn't mean we suddenly get shared libraries
6629      # on systems that don't support them.
6630      lt_prog_compiler_can_build_shared=no
6631      enable_shared=no
6632      ;;
6633
6634    sysv4*MP*)
6635      if test -d /usr/nec; then
6636	lt_prog_compiler_pic=-Kconform_pic
6637      fi
6638      ;;
6639
6640    hpux*)
6641      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6642      # not for PA HP-UX.
6643      case $host_cpu in
6644      hppa*64*|ia64*)
6645	# +Z the default
6646	;;
6647      *)
6648	lt_prog_compiler_pic='-fPIC'
6649	;;
6650      esac
6651      ;;
6652
6653    *)
6654      lt_prog_compiler_pic='-fPIC'
6655      ;;
6656    esac
6657  else
6658    # PORTME Check for flag to pass linker flags through the system compiler.
6659    case $host_os in
6660    aix*)
6661      lt_prog_compiler_wl='-Wl,'
6662      if test "$host_cpu" = ia64; then
6663	# AIX 5 now supports IA64 processor
6664	lt_prog_compiler_static='-Bstatic'
6665      else
6666	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6667      fi
6668      ;;
6669      darwin*)
6670        # PIC is the default on this platform
6671        # Common symbols not allowed in MH_DYLIB files
6672       case $cc_basename in
6673         xlc*)
6674         lt_prog_compiler_pic='-qnocommon'
6675         lt_prog_compiler_wl='-Wl,'
6676         ;;
6677       esac
6678       ;;
6679
6680    mingw* | pw32* | os2*)
6681      # This hack is so that the source file can tell whether it is being
6682      # built for inclusion in a dll (and should export symbols for example).
6683      lt_prog_compiler_pic='-DDLL_EXPORT'
6684      ;;
6685
6686    hpux9* | hpux10* | hpux11*)
6687      lt_prog_compiler_wl='-Wl,'
6688      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6689      # not for PA HP-UX.
6690      case $host_cpu in
6691      hppa*64*|ia64*)
6692	# +Z the default
6693	;;
6694      *)
6695	lt_prog_compiler_pic='+Z'
6696	;;
6697      esac
6698      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6699      lt_prog_compiler_static='${wl}-a ${wl}archive'
6700      ;;
6701
6702    irix5* | irix6* | nonstopux*)
6703      lt_prog_compiler_wl='-Wl,'
6704      # PIC (with -KPIC) is the default.
6705      lt_prog_compiler_static='-non_shared'
6706      ;;
6707
6708    newsos6)
6709      lt_prog_compiler_pic='-KPIC'
6710      lt_prog_compiler_static='-Bstatic'
6711      ;;
6712
6713    linux*)
6714      case $cc_basename in
6715      icc* | ecc*)
6716	lt_prog_compiler_wl='-Wl,'
6717	lt_prog_compiler_pic='-KPIC'
6718	lt_prog_compiler_static='-static'
6719        ;;
6720      pgcc* | pgf77* | pgf90* | pgf95*)
6721        # Portland Group compilers (*not* the Pentium gcc compiler,
6722	# which looks to be a dead project)
6723	lt_prog_compiler_wl='-Wl,'
6724	lt_prog_compiler_pic='-fpic'
6725	lt_prog_compiler_static='-Bstatic'
6726        ;;
6727      ccc*)
6728        lt_prog_compiler_wl='-Wl,'
6729        # All Alpha code is PIC.
6730        lt_prog_compiler_static='-non_shared'
6731        ;;
6732      esac
6733      ;;
6734
6735    osf3* | osf4* | osf5*)
6736      lt_prog_compiler_wl='-Wl,'
6737      # All OSF/1 code is PIC.
6738      lt_prog_compiler_static='-non_shared'
6739      ;;
6740
6741    solaris*)
6742      lt_prog_compiler_pic='-KPIC'
6743      lt_prog_compiler_static='-Bstatic'
6744      case $cc_basename in
6745      f77* | f90* | f95*)
6746	lt_prog_compiler_wl='-Qoption ld ';;
6747      *)
6748	lt_prog_compiler_wl='-Wl,';;
6749      esac
6750      ;;
6751
6752    sunos4*)
6753      lt_prog_compiler_wl='-Qoption ld '
6754      lt_prog_compiler_pic='-PIC'
6755      lt_prog_compiler_static='-Bstatic'
6756      ;;
6757
6758    sysv4 | sysv4.2uw2* | sysv4.3*)
6759      lt_prog_compiler_wl='-Wl,'
6760      lt_prog_compiler_pic='-KPIC'
6761      lt_prog_compiler_static='-Bstatic'
6762      ;;
6763
6764    sysv4*MP*)
6765      if test -d /usr/nec ;then
6766	lt_prog_compiler_pic='-Kconform_pic'
6767	lt_prog_compiler_static='-Bstatic'
6768      fi
6769      ;;
6770
6771    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6772      lt_prog_compiler_wl='-Wl,'
6773      lt_prog_compiler_pic='-KPIC'
6774      lt_prog_compiler_static='-Bstatic'
6775      ;;
6776
6777    unicos*)
6778      lt_prog_compiler_wl='-Wl,'
6779      lt_prog_compiler_can_build_shared=no
6780      ;;
6781
6782    uts4*)
6783      lt_prog_compiler_pic='-pic'
6784      lt_prog_compiler_static='-Bstatic'
6785      ;;
6786
6787    *)
6788      lt_prog_compiler_can_build_shared=no
6789      ;;
6790    esac
6791  fi
6792
6793echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6794echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6795
6796#
6797# Check to make sure the PIC flag actually works.
6798#
6799if test -n "$lt_prog_compiler_pic"; then
6800
6801echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6802echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6803if test "${lt_prog_compiler_pic_works+set}" = set; then
6804  echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806  lt_prog_compiler_pic_works=no
6807  ac_outfile=conftest.$ac_objext
6808   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6809   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6810   # Insert the option either (1) after the last *FLAGS variable, or
6811   # (2) before a word containing "conftest.", or (3) at the end.
6812   # Note that $ac_compile itself does not contain backslashes and begins
6813   # with a dollar sign (not a hyphen), so the echo should work correctly.
6814   # The option is referenced via a variable to avoid confusing sed.
6815   lt_compile=`echo "$ac_compile" | $SED \
6816   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6818   -e 's:$: $lt_compiler_flag:'`
6819   (eval echo "\"\$as_me:6819: $lt_compile\"" >&5)
6820   (eval "$lt_compile" 2>conftest.err)
6821   ac_status=$?
6822   cat conftest.err >&5
6823   echo "$as_me:6823: \$? = $ac_status" >&5
6824   if (exit $ac_status) && test -s "$ac_outfile"; then
6825     # The compiler can only warn and ignore the option if not recognized
6826     # So say no if there are warnings other than the usual output.
6827     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6828     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6829     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6830       lt_prog_compiler_pic_works=yes
6831     fi
6832   fi
6833   $rm conftest*
6834
6835fi
6836echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6837echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6838
6839if test x"$lt_prog_compiler_pic_works" = xyes; then
6840    case $lt_prog_compiler_pic in
6841     "" | " "*) ;;
6842     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6843     esac
6844else
6845    lt_prog_compiler_pic=
6846     lt_prog_compiler_can_build_shared=no
6847fi
6848
6849fi
6850case $host_os in
6851  # For platforms which do not support PIC, -DPIC is meaningless:
6852  *djgpp*)
6853    lt_prog_compiler_pic=
6854    ;;
6855  *)
6856    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6857    ;;
6858esac
6859
6860#
6861# Check to make sure the static flag actually works.
6862#
6863wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6864echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6865echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6866if test "${lt_prog_compiler_static_works+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  lt_prog_compiler_static_works=no
6870   save_LDFLAGS="$LDFLAGS"
6871   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6872   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6873   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6874     # The linker can only warn and ignore the option if not recognized
6875     # So say no if there are warnings
6876     if test -s conftest.err; then
6877       # Append any errors to the config.log.
6878       cat conftest.err 1>&5
6879       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6880       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6881       if diff conftest.exp conftest.er2 >/dev/null; then
6882         lt_prog_compiler_static_works=yes
6883       fi
6884     else
6885       lt_prog_compiler_static_works=yes
6886     fi
6887   fi
6888   $rm conftest*
6889   LDFLAGS="$save_LDFLAGS"
6890
6891fi
6892echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6893echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6894
6895if test x"$lt_prog_compiler_static_works" = xyes; then
6896    :
6897else
6898    lt_prog_compiler_static=
6899fi
6900
6901
6902echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6903echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6904if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907  lt_cv_prog_compiler_c_o=no
6908   $rm -r conftest 2>/dev/null
6909   mkdir conftest
6910   cd conftest
6911   mkdir out
6912   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6913
6914   lt_compiler_flag="-o out/conftest2.$ac_objext"
6915   # Insert the option either (1) after the last *FLAGS variable, or
6916   # (2) before a word containing "conftest.", or (3) at the end.
6917   # Note that $ac_compile itself does not contain backslashes and begins
6918   # with a dollar sign (not a hyphen), so the echo should work correctly.
6919   lt_compile=`echo "$ac_compile" | $SED \
6920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922   -e 's:$: $lt_compiler_flag:'`
6923   (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
6924   (eval "$lt_compile" 2>out/conftest.err)
6925   ac_status=$?
6926   cat out/conftest.err >&5
6927   echo "$as_me:6927: \$? = $ac_status" >&5
6928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6929   then
6930     # The compiler can only warn and ignore the option if not recognized
6931     # So say no if there are warnings
6932     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6935       lt_cv_prog_compiler_c_o=yes
6936     fi
6937   fi
6938   chmod u+w . 2>&5
6939   $rm conftest*
6940   # SGI C++ compiler will create directory out/ii_files/ for
6941   # template instantiation
6942   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6943   $rm out/* && rmdir out
6944   cd ..
6945   rmdir conftest
6946   $rm conftest*
6947
6948fi
6949echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6950echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6951
6952
6953hard_links="nottested"
6954if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6955  # do not overwrite the value of need_locks provided by the user
6956  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6957echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6958  hard_links=yes
6959  $rm conftest*
6960  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6961  touch conftest.a
6962  ln conftest.a conftest.b 2>&5 || hard_links=no
6963  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6964  echo "$as_me:$LINENO: result: $hard_links" >&5
6965echo "${ECHO_T}$hard_links" >&6
6966  if test "$hard_links" = no; then
6967    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6968echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6969    need_locks=warn
6970  fi
6971else
6972  need_locks=no
6973fi
6974
6975echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6976echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6977
6978  runpath_var=
6979  allow_undefined_flag=
6980  enable_shared_with_static_runtimes=no
6981  archive_cmds=
6982  archive_expsym_cmds=
6983  old_archive_From_new_cmds=
6984  old_archive_from_expsyms_cmds=
6985  export_dynamic_flag_spec=
6986  whole_archive_flag_spec=
6987  thread_safe_flag_spec=
6988  hardcode_libdir_flag_spec=
6989  hardcode_libdir_flag_spec_ld=
6990  hardcode_libdir_separator=
6991  hardcode_direct=no
6992  hardcode_minus_L=no
6993  hardcode_shlibpath_var=unsupported
6994  link_all_deplibs=unknown
6995  hardcode_automatic=no
6996  module_cmds=
6997  module_expsym_cmds=
6998  always_export_symbols=no
6999  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7000  # include_expsyms should be a list of space-separated symbols to be *always*
7001  # included in the symbol list
7002  include_expsyms=
7003  # exclude_expsyms can be an extended regexp of symbols to exclude
7004  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7005  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7006  # as well as any symbol that contains `d'.
7007  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7008  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7009  # platforms (ab)use it in PIC code, but their linkers get confused if
7010  # the symbol is explicitly referenced.  Since portable code cannot
7011  # rely on this symbol name, it's probably fine to never include it in
7012  # preloaded symbol tables.
7013  extract_expsyms_cmds=
7014  # Just being paranoid about ensuring that cc_basename is set.
7015  for cc_temp in $compiler""; do
7016  case $cc_temp in
7017    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7018    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7019    \-*) ;;
7020    *) break;;
7021  esac
7022done
7023cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7024
7025  case $host_os in
7026  cygwin* | mingw* | pw32*)
7027    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7028    # When not using gcc, we currently assume that we are using
7029    # Microsoft Visual C++.
7030    if test "$GCC" != yes; then
7031      with_gnu_ld=no
7032    fi
7033    ;;
7034  interix*)
7035    # we just hope/assume this is gcc and not c89 (= MSVC++)
7036    with_gnu_ld=yes
7037    ;;
7038  openbsd*)
7039    with_gnu_ld=no
7040    ;;
7041  esac
7042
7043  ld_shlibs=yes
7044  if test "$with_gnu_ld" = yes; then
7045    # If archive_cmds runs LD, not CC, wlarc should be empty
7046    wlarc='${wl}'
7047
7048    # Set some defaults for GNU ld with shared library support. These
7049    # are reset later if shared libraries are not supported. Putting them
7050    # here allows them to be overridden if necessary.
7051    runpath_var=LD_RUN_PATH
7052    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7053    export_dynamic_flag_spec='${wl}--export-dynamic'
7054    # ancient GNU ld didn't support --whole-archive et. al.
7055    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7056	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7057      else
7058  	whole_archive_flag_spec=
7059    fi
7060    supports_anon_versioning=no
7061    case `$LD -v 2>/dev/null` in
7062      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7063      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7064      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7065      *\ 2.11.*) ;; # other 2.11 versions
7066      *) supports_anon_versioning=yes ;;
7067    esac
7068
7069    # See if GNU ld supports shared libraries.
7070    case $host_os in
7071    aix3* | aix4* | aix5*)
7072      # On AIX/PPC, the GNU linker is very broken
7073      if test "$host_cpu" != ia64; then
7074	ld_shlibs=no
7075	cat <<EOF 1>&2
7076
7077*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7078*** to be unable to reliably create shared libraries on AIX.
7079*** Therefore, libtool is disabling shared libraries support.  If you
7080*** really care for shared libraries, you may want to modify your PATH
7081*** so that a non-GNU linker is found, and then restart.
7082
7083EOF
7084      fi
7085      ;;
7086
7087    amigaos*)
7088      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)'
7089      hardcode_libdir_flag_spec='-L$libdir'
7090      hardcode_minus_L=yes
7091
7092      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7093      # that the semantics of dynamic libraries on AmigaOS, at least up
7094      # to version 4, is to share data among multiple programs linked
7095      # with the same dynamic library.  Since this doesn't match the
7096      # behavior of shared libraries on other platforms, we can't use
7097      # them.
7098      ld_shlibs=no
7099      ;;
7100
7101    beos*)
7102      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7103	allow_undefined_flag=unsupported
7104	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7105	# support --undefined.  This deserves some investigation.  FIXME
7106	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7107      else
7108	ld_shlibs=no
7109      fi
7110      ;;
7111
7112    cygwin* | mingw* | pw32*)
7113      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7114      # as there is no search path for DLLs.
7115      hardcode_libdir_flag_spec='-L$libdir'
7116      allow_undefined_flag=unsupported
7117      always_export_symbols=no
7118      enable_shared_with_static_runtimes=yes
7119      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7120
7121      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7122        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7123	# If the export-symbols file already is a .def file (1st line
7124	# is EXPORTS), use it as is; otherwise, prepend...
7125	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7126	  cp $export_symbols $output_objdir/$soname.def;
7127	else
7128	  echo EXPORTS > $output_objdir/$soname.def;
7129	  cat $export_symbols >> $output_objdir/$soname.def;
7130	fi~
7131	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7132      else
7133	ld_shlibs=no
7134      fi
7135      ;;
7136
7137    interix3*)
7138      hardcode_direct=no
7139      hardcode_shlibpath_var=no
7140      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7141      export_dynamic_flag_spec='${wl}-E'
7142      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7143      # Instead, shared libraries are loaded at an image base (0x10000000 by
7144      # default) and relocated if they conflict, which is a slow very memory
7145      # consuming and fragmenting process.  To avoid this, we pick a random,
7146      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7147      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7148      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7149      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'
7150      ;;
7151
7152    linux*)
7153      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7154	tmp_addflag=
7155	case $cc_basename,$host_cpu in
7156	pgcc*)				# Portland Group C compiler
7157	  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'
7158	  tmp_addflag=' $pic_flag'
7159	  ;;
7160	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7161	  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'
7162	  tmp_addflag=' $pic_flag -Mnomain' ;;
7163	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7164	  tmp_addflag=' -i_dynamic' ;;
7165	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7166	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7167	ifc* | ifort*)			# Intel Fortran compiler
7168	  tmp_addflag=' -nofor_main' ;;
7169	esac
7170	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7171
7172	if test $supports_anon_versioning = yes; then
7173	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7174  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7175  $echo "local: *; };" >> $output_objdir/$libname.ver~
7176	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7177	fi
7178      else
7179	ld_shlibs=no
7180      fi
7181      ;;
7182
7183    netbsd*)
7184      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7185	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7186	wlarc=
7187      else
7188	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7189	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7190      fi
7191      ;;
7192
7193    solaris*)
7194      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7195	ld_shlibs=no
7196	cat <<EOF 1>&2
7197
7198*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7199*** create shared libraries on Solaris systems.  Therefore, libtool
7200*** is disabling shared libraries support.  We urge you to upgrade GNU
7201*** binutils to release 2.9.1 or newer.  Another option is to modify
7202*** your PATH or compiler configuration so that the native linker is
7203*** used, and then restart.
7204
7205EOF
7206      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7207	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7208	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7209      else
7210	ld_shlibs=no
7211      fi
7212      ;;
7213
7214    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7215      case `$LD -v 2>&1` in
7216        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7217	ld_shlibs=no
7218	cat <<_LT_EOF 1>&2
7219
7220*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7221*** reliably create shared libraries on SCO systems.  Therefore, libtool
7222*** is disabling shared libraries support.  We urge you to upgrade GNU
7223*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7224*** your PATH or compiler configuration so that the native linker is
7225*** used, and then restart.
7226
7227_LT_EOF
7228	;;
7229	*)
7230	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7231	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7232	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7233	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7234	  else
7235	    ld_shlibs=no
7236	  fi
7237	;;
7238      esac
7239      ;;
7240
7241    sunos4*)
7242      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243      wlarc=
7244      hardcode_direct=yes
7245      hardcode_shlibpath_var=no
7246      ;;
7247
7248    *)
7249      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7250	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7252      else
7253	ld_shlibs=no
7254      fi
7255      ;;
7256    esac
7257
7258    if test "$ld_shlibs" = no; then
7259      runpath_var=
7260      hardcode_libdir_flag_spec=
7261      export_dynamic_flag_spec=
7262      whole_archive_flag_spec=
7263    fi
7264  else
7265    # PORTME fill in a description of your system's linker (not GNU ld)
7266    case $host_os in
7267    aix3*)
7268      allow_undefined_flag=unsupported
7269      always_export_symbols=yes
7270      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'
7271      # Note: this linker hardcodes the directories in LIBPATH if there
7272      # are no directories specified by -L.
7273      hardcode_minus_L=yes
7274      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7275	# Neither direct hardcoding nor static linking is supported with a
7276	# broken collect2.
7277	hardcode_direct=unsupported
7278      fi
7279      ;;
7280
7281    aix4* | aix5*)
7282      if test "$host_cpu" = ia64; then
7283	# On IA64, the linker does run time linking by default, so we don't
7284	# have to do anything special.
7285	aix_use_runtimelinking=no
7286	exp_sym_flag='-Bexport'
7287	no_entry_flag=""
7288      else
7289	# If we're using GNU nm, then we don't want the "-C" option.
7290	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7291	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7292	  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'
7293	else
7294	  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'
7295	fi
7296	aix_use_runtimelinking=no
7297
7298	# Test if we are trying to use run time linking or normal
7299	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7300	# need to do runtime linking.
7301	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7302	  for ld_flag in $LDFLAGS; do
7303  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7304  	    aix_use_runtimelinking=yes
7305  	    break
7306  	  fi
7307	  done
7308	  ;;
7309	esac
7310
7311	exp_sym_flag='-bexport'
7312	no_entry_flag='-bnoentry'
7313      fi
7314
7315      # When large executables or shared objects are built, AIX ld can
7316      # have problems creating the table of contents.  If linking a library
7317      # or program results in "error TOC overflow" add -mminimal-toc to
7318      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7319      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7320
7321      archive_cmds=''
7322      hardcode_direct=yes
7323      hardcode_libdir_separator=':'
7324      link_all_deplibs=yes
7325
7326      if test "$GCC" = yes; then
7327	case $host_os in aix4.[012]|aix4.[012].*)
7328	# We only want to do this on AIX 4.2 and lower, the check
7329	# below for broken collect2 doesn't work under 4.3+
7330	  collect2name=`${CC} -print-prog-name=collect2`
7331	  if test -f "$collect2name" && \
7332  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7333	  then
7334  	  # We have reworked collect2
7335  	  hardcode_direct=yes
7336	  else
7337  	  # We have old collect2
7338  	  hardcode_direct=unsupported
7339  	  # It fails to find uninstalled libraries when the uninstalled
7340  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7341  	  # to unsupported forces relinking
7342  	  hardcode_minus_L=yes
7343  	  hardcode_libdir_flag_spec='-L$libdir'
7344  	  hardcode_libdir_separator=
7345	  fi
7346	  ;;
7347	esac
7348	shared_flag='-shared'
7349	if test "$aix_use_runtimelinking" = yes; then
7350	  shared_flag="$shared_flag "'${wl}-G'
7351	fi
7352      else
7353	# not using gcc
7354	if test "$host_cpu" = ia64; then
7355  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7356  	# chokes on -Wl,-G. The following line is correct:
7357	  shared_flag='-G'
7358	else
7359	  if test "$aix_use_runtimelinking" = yes; then
7360	    shared_flag='${wl}-G'
7361	  else
7362	    shared_flag='${wl}-bM:SRE'
7363	  fi
7364	fi
7365      fi
7366
7367      # It seems that -bexpall does not export symbols beginning with
7368      # underscore (_), so it is better to generate a list of symbols to export.
7369      always_export_symbols=yes
7370      if test "$aix_use_runtimelinking" = yes; then
7371	# Warning - without using the other runtime loading flags (-brtl),
7372	# -berok will link without error, but may produce a broken library.
7373	allow_undefined_flag='-berok'
7374       # Determine the default libpath from the value encoded in an empty executable.
7375       cat >conftest.$ac_ext <<_ACEOF
7376/* confdefs.h.  */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h.  */
7381
7382int
7383main ()
7384{
7385
7386  ;
7387  return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext conftest$ac_exeext
7391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392  (eval $ac_link) 2>conftest.er1
7393  ac_status=$?
7394  grep -v '^ *+' conftest.er1 >conftest.err
7395  rm -f conftest.er1
7396  cat conftest.err >&5
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); } &&
7399	 { ac_try='test -z "$ac_c_werror_flag"
7400			 || test ! -s conftest.err'
7401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402  (eval $ac_try) 2>&5
7403  ac_status=$?
7404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405  (exit $ac_status); }; } &&
7406	 { ac_try='test -s conftest$ac_exeext'
7407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408  (eval $ac_try) 2>&5
7409  ac_status=$?
7410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411  (exit $ac_status); }; }; then
7412
7413aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7414}'`
7415# Check for a 64-bit object if we didn't find anything.
7416if 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; }
7417}'`; fi
7418else
7419  echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
7422fi
7423rm -f conftest.err conftest.$ac_objext \
7424      conftest$ac_exeext conftest.$ac_ext
7425if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7426
7427       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7428	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"
7429       else
7430	if test "$host_cpu" = ia64; then
7431	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7432	  allow_undefined_flag="-z nodefs"
7433	  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"
7434	else
7435	 # Determine the default libpath from the value encoded in an empty executable.
7436	 cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h.  */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h.  */
7442
7443int
7444main ()
7445{
7446
7447  ;
7448  return 0;
7449}
7450_ACEOF
7451rm -f conftest.$ac_objext conftest$ac_exeext
7452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453  (eval $ac_link) 2>conftest.er1
7454  ac_status=$?
7455  grep -v '^ *+' conftest.er1 >conftest.err
7456  rm -f conftest.er1
7457  cat conftest.err >&5
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); } &&
7460	 { ac_try='test -z "$ac_c_werror_flag"
7461			 || test ! -s conftest.err'
7462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463  (eval $ac_try) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; } &&
7467	 { ac_try='test -s conftest$ac_exeext'
7468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469  (eval $ac_try) 2>&5
7470  ac_status=$?
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); }; }; then
7473
7474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7475}'`
7476# Check for a 64-bit object if we didn't find anything.
7477if 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; }
7478}'`; fi
7479else
7480  echo "$as_me: failed program was:" >&5
7481sed 's/^/| /' conftest.$ac_ext >&5
7482
7483fi
7484rm -f conftest.err conftest.$ac_objext \
7485      conftest$ac_exeext conftest.$ac_ext
7486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7487
7488	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7489	  # Warning - without using the other run time loading flags,
7490	  # -berok will link without error, but may produce a broken library.
7491	  no_undefined_flag=' ${wl}-bernotok'
7492	  allow_undefined_flag=' ${wl}-berok'
7493	  # Exported symbols can be pulled into shared objects from archives
7494	  whole_archive_flag_spec='$convenience'
7495	  archive_cmds_need_lc=yes
7496	  # This is similar to how AIX traditionally builds its shared libraries.
7497	  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'
7498	fi
7499      fi
7500      ;;
7501
7502    amigaos*)
7503      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)'
7504      hardcode_libdir_flag_spec='-L$libdir'
7505      hardcode_minus_L=yes
7506      # see comment about different semantics on the GNU ld section
7507      ld_shlibs=no
7508      ;;
7509
7510    bsdi[45]*)
7511      export_dynamic_flag_spec=-rdynamic
7512      ;;
7513
7514    cygwin* | mingw* | pw32*)
7515      # When not using gcc, we currently assume that we are using
7516      # Microsoft Visual C++.
7517      # hardcode_libdir_flag_spec is actually meaningless, as there is
7518      # no search path for DLLs.
7519      hardcode_libdir_flag_spec=' '
7520      allow_undefined_flag=unsupported
7521      # Tell ltmain to make .lib files, not .a files.
7522      libext=lib
7523      # Tell ltmain to make .dll files, not .so files.
7524      shrext_cmds=".dll"
7525      # FIXME: Setting linknames here is a bad hack.
7526      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7527      # The linker will automatically build a .lib file if we build a DLL.
7528      old_archive_From_new_cmds='true'
7529      # FIXME: Should let the user specify the lib program.
7530      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7531      fix_srcfile_path='`cygpath -w "$srcfile"`'
7532      enable_shared_with_static_runtimes=yes
7533      ;;
7534
7535    darwin* | rhapsody*)
7536      case $host_os in
7537        rhapsody* | darwin1.[012])
7538         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7539         ;;
7540       *) # Darwin 1.3 on
7541         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7542           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7543         else
7544           case ${MACOSX_DEPLOYMENT_TARGET} in
7545             10.[012])
7546               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7547               ;;
7548             10.*)
7549               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7550               ;;
7551           esac
7552         fi
7553         ;;
7554      esac
7555      archive_cmds_need_lc=no
7556      hardcode_direct=no
7557      hardcode_automatic=yes
7558      hardcode_shlibpath_var=unsupported
7559      whole_archive_flag_spec=''
7560      link_all_deplibs=yes
7561    if test "$GCC" = yes ; then
7562    	output_verbose_link_cmd='echo'
7563        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7564      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7565      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7566      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}'
7567      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}'
7568    else
7569      case $cc_basename in
7570        xlc*)
7571         output_verbose_link_cmd='echo'
7572         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7573         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7574          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7575         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}'
7576          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}'
7577          ;;
7578       *)
7579         ld_shlibs=no
7580          ;;
7581      esac
7582    fi
7583      ;;
7584
7585    dgux*)
7586      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587      hardcode_libdir_flag_spec='-L$libdir'
7588      hardcode_shlibpath_var=no
7589      ;;
7590
7591    freebsd1*)
7592      ld_shlibs=no
7593      ;;
7594
7595    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7596    # support.  Future versions do this automatically, but an explicit c++rt0.o
7597    # does not break anything, and helps significantly (at the cost of a little
7598    # extra space).
7599    freebsd2.2*)
7600      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7601      hardcode_libdir_flag_spec='-R$libdir'
7602      hardcode_direct=yes
7603      hardcode_shlibpath_var=no
7604      ;;
7605
7606    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7607    freebsd2*)
7608      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7609      hardcode_direct=yes
7610      hardcode_minus_L=yes
7611      hardcode_shlibpath_var=no
7612      ;;
7613
7614    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7615    freebsd* | kfreebsd*-gnu | dragonfly*)
7616      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7617      hardcode_libdir_flag_spec='-R$libdir'
7618      hardcode_direct=yes
7619      hardcode_shlibpath_var=no
7620      ;;
7621
7622    hpux9*)
7623      if test "$GCC" = yes; then
7624	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'
7625      else
7626	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'
7627      fi
7628      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7629      hardcode_libdir_separator=:
7630      hardcode_direct=yes
7631
7632      # hardcode_minus_L: Not really in the search PATH,
7633      # but as the default location of the library.
7634      hardcode_minus_L=yes
7635      export_dynamic_flag_spec='${wl}-E'
7636      ;;
7637
7638    hpux10*)
7639      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7640	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7641      else
7642	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7643      fi
7644      if test "$with_gnu_ld" = no; then
7645	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7646	hardcode_libdir_separator=:
7647
7648	hardcode_direct=yes
7649	export_dynamic_flag_spec='${wl}-E'
7650
7651	# hardcode_minus_L: Not really in the search PATH,
7652	# but as the default location of the library.
7653	hardcode_minus_L=yes
7654      fi
7655      ;;
7656
7657    hpux11*)
7658      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7659	case $host_cpu in
7660	hppa*64*)
7661	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7662	  ;;
7663	ia64*)
7664	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7665	  ;;
7666	*)
7667	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7668	  ;;
7669	esac
7670      else
7671	case $host_cpu in
7672	hppa*64*)
7673	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7674	  ;;
7675	ia64*)
7676	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7677	  ;;
7678	*)
7679	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7680	  ;;
7681	esac
7682      fi
7683      if test "$with_gnu_ld" = no; then
7684	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7685	hardcode_libdir_separator=:
7686
7687	case $host_cpu in
7688	hppa*64*|ia64*)
7689	  hardcode_libdir_flag_spec_ld='+b $libdir'
7690	  hardcode_direct=no
7691	  hardcode_shlibpath_var=no
7692	  ;;
7693	*)
7694	  hardcode_direct=yes
7695	  export_dynamic_flag_spec='${wl}-E'
7696
7697	  # hardcode_minus_L: Not really in the search PATH,
7698	  # but as the default location of the library.
7699	  hardcode_minus_L=yes
7700	  ;;
7701	esac
7702      fi
7703      ;;
7704
7705    irix5* | irix6* | nonstopux*)
7706      if test "$GCC" = yes; then
7707	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'
7708      else
7709	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'
7710	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7711      fi
7712      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7713      hardcode_libdir_separator=:
7714      link_all_deplibs=yes
7715      ;;
7716
7717    netbsd*)
7718      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7719	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7720      else
7721	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7722      fi
7723      hardcode_libdir_flag_spec='-R$libdir'
7724      hardcode_direct=yes
7725      hardcode_shlibpath_var=no
7726      ;;
7727
7728    newsos6)
7729      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7730      hardcode_direct=yes
7731      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7732      hardcode_libdir_separator=:
7733      hardcode_shlibpath_var=no
7734      ;;
7735
7736    openbsd*)
7737      hardcode_direct=yes
7738      hardcode_shlibpath_var=no
7739      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7740	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7741	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7742	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7743	export_dynamic_flag_spec='${wl}-E'
7744      else
7745       case $host_os in
7746	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7747	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7748	   hardcode_libdir_flag_spec='-R$libdir'
7749	   ;;
7750	 *)
7751	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7752	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7753	   ;;
7754       esac
7755      fi
7756      ;;
7757
7758    os2*)
7759      hardcode_libdir_flag_spec='-L$libdir'
7760      hardcode_minus_L=yes
7761      allow_undefined_flag=unsupported
7762      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'
7763      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7764      ;;
7765
7766    osf3*)
7767      if test "$GCC" = yes; then
7768	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7769	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'
7770      else
7771	allow_undefined_flag=' -expect_unresolved \*'
7772	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'
7773      fi
7774      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7775      hardcode_libdir_separator=:
7776      ;;
7777
7778    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7779      if test "$GCC" = yes; then
7780	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7781	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'
7782	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7783      else
7784	allow_undefined_flag=' -expect_unresolved \*'
7785	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'
7786	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7787	$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'
7788
7789	# Both c and cxx compiler support -rpath directly
7790	hardcode_libdir_flag_spec='-rpath $libdir'
7791      fi
7792      hardcode_libdir_separator=:
7793      ;;
7794
7795    solaris*)
7796      no_undefined_flag=' -z text'
7797      if test "$GCC" = yes; then
7798	wlarc='${wl}'
7799	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7800	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7801	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7802      else
7803	wlarc=''
7804	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7806  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7807      fi
7808      hardcode_libdir_flag_spec='-R$libdir'
7809      hardcode_shlibpath_var=no
7810      case $host_os in
7811      solaris2.[0-5] | solaris2.[0-5].*) ;;
7812      *)
7813 	# The compiler driver will combine linker options so we
7814 	# cannot just pass the convience library names through
7815 	# without $wl, iff we do not link with $LD.
7816 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7817 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7818 	case $wlarc in
7819 	'')
7820 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7821 	*)
7822 	  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' ;;
7823 	esac ;;
7824      esac
7825      link_all_deplibs=yes
7826      ;;
7827
7828    sunos4*)
7829      if test "x$host_vendor" = xsequent; then
7830	# Use $CC to link under sequent, because it throws in some extra .o
7831	# files that make .init and .fini sections work.
7832	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7833      else
7834	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7835      fi
7836      hardcode_libdir_flag_spec='-L$libdir'
7837      hardcode_direct=yes
7838      hardcode_minus_L=yes
7839      hardcode_shlibpath_var=no
7840      ;;
7841
7842    sysv4)
7843      case $host_vendor in
7844	sni)
7845	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846	  hardcode_direct=yes # is this really true???
7847	;;
7848	siemens)
7849	  ## LD is ld it makes a PLAMLIB
7850	  ## CC just makes a GrossModule.
7851	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7852	  reload_cmds='$CC -r -o $output$reload_objs'
7853	  hardcode_direct=no
7854        ;;
7855	motorola)
7856	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7857	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7858	;;
7859      esac
7860      runpath_var='LD_RUN_PATH'
7861      hardcode_shlibpath_var=no
7862      ;;
7863
7864    sysv4.3*)
7865      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7866      hardcode_shlibpath_var=no
7867      export_dynamic_flag_spec='-Bexport'
7868      ;;
7869
7870    sysv4*MP*)
7871      if test -d /usr/nec; then
7872	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7873	hardcode_shlibpath_var=no
7874	runpath_var=LD_RUN_PATH
7875	hardcode_runpath_var=yes
7876	ld_shlibs=yes
7877      fi
7878      ;;
7879
7880    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7881      no_undefined_flag='${wl}-z,text'
7882      archive_cmds_need_lc=no
7883      hardcode_shlibpath_var=no
7884      runpath_var='LD_RUN_PATH'
7885
7886      if test "$GCC" = yes; then
7887	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7888	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7889      else
7890	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7891	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7892      fi
7893      ;;
7894
7895    sysv5* | sco3.2v5* | sco5v6*)
7896      # Note: We can NOT use -z defs as we might desire, because we do not
7897      # link with -lc, and that would cause any symbols used from libc to
7898      # always be unresolved, which means just about no library would
7899      # ever link correctly.  If we're not using GNU ld we use -z text
7900      # though, which does catch some bad symbols but isn't as heavy-handed
7901      # as -z defs.
7902      no_undefined_flag='${wl}-z,text'
7903      allow_undefined_flag='${wl}-z,nodefs'
7904      archive_cmds_need_lc=no
7905      hardcode_shlibpath_var=no
7906      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7907      hardcode_libdir_separator=':'
7908      link_all_deplibs=yes
7909      export_dynamic_flag_spec='${wl}-Bexport'
7910      runpath_var='LD_RUN_PATH'
7911
7912      if test "$GCC" = yes; then
7913	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7914	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7915      else
7916	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7917	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918      fi
7919      ;;
7920
7921    uts4*)
7922      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7923      hardcode_libdir_flag_spec='-L$libdir'
7924      hardcode_shlibpath_var=no
7925      ;;
7926
7927    *)
7928      ld_shlibs=no
7929      ;;
7930    esac
7931  fi
7932
7933echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7934echo "${ECHO_T}$ld_shlibs" >&6
7935test "$ld_shlibs" = no && can_build_shared=no
7936
7937#
7938# Do we need to explicitly link libc?
7939#
7940case "x$archive_cmds_need_lc" in
7941x|xyes)
7942  # Assume -lc should be added
7943  archive_cmds_need_lc=yes
7944
7945  if test "$enable_shared" = yes && test "$GCC" = yes; then
7946    case $archive_cmds in
7947    *'~'*)
7948      # FIXME: we may have to deal with multi-command sequences.
7949      ;;
7950    '$CC '*)
7951      # Test whether the compiler implicitly links with -lc since on some
7952      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7953      # to ld, don't add -lc before -lgcc.
7954      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7955echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7956      $rm conftest*
7957      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7958
7959      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960  (eval $ac_compile) 2>&5
7961  ac_status=$?
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); } 2>conftest.err; then
7964        soname=conftest
7965        lib=conftest
7966        libobjs=conftest.$ac_objext
7967        deplibs=
7968        wl=$lt_prog_compiler_wl
7969	pic_flag=$lt_prog_compiler_pic
7970        compiler_flags=-v
7971        linker_flags=-v
7972        verstring=
7973        output_objdir=.
7974        libname=conftest
7975        lt_save_allow_undefined_flag=$allow_undefined_flag
7976        allow_undefined_flag=
7977        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7978  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7979  ac_status=$?
7980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981  (exit $ac_status); }
7982        then
7983	  archive_cmds_need_lc=no
7984        else
7985	  archive_cmds_need_lc=yes
7986        fi
7987        allow_undefined_flag=$lt_save_allow_undefined_flag
7988      else
7989        cat conftest.err 1>&5
7990      fi
7991      $rm conftest*
7992      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7993echo "${ECHO_T}$archive_cmds_need_lc" >&6
7994      ;;
7995    esac
7996  fi
7997  ;;
7998esac
7999
8000echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8001echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8002library_names_spec=
8003libname_spec='lib$name'
8004soname_spec=
8005shrext_cmds=".so"
8006postinstall_cmds=
8007postuninstall_cmds=
8008finish_cmds=
8009finish_eval=
8010shlibpath_var=
8011shlibpath_overrides_runpath=unknown
8012version_type=none
8013dynamic_linker="$host_os ld.so"
8014sys_lib_dlsearch_path_spec="/lib /usr/lib"
8015if test "$GCC" = yes; then
8016  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8017  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8018    # if the path contains ";" then we assume it to be the separator
8019    # otherwise default to the standard path separator (i.e. ":") - it is
8020    # assumed that no part of a normal pathname contains ";" but that should
8021    # okay in the real world where ";" in dirpaths is itself problematic.
8022    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8023  else
8024    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8025  fi
8026else
8027  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8028fi
8029need_lib_prefix=unknown
8030hardcode_into_libs=no
8031
8032# when you set need_version to no, make sure it does not cause -set_version
8033# flags to be left without arguments
8034need_version=unknown
8035
8036case $host_os in
8037aix3*)
8038  version_type=linux
8039  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8040  shlibpath_var=LIBPATH
8041
8042  # AIX 3 has no versioning support, so we append a major version to the name.
8043  soname_spec='${libname}${release}${shared_ext}$major'
8044  ;;
8045
8046aix4* | aix5*)
8047  version_type=linux
8048  need_lib_prefix=no
8049  need_version=no
8050  hardcode_into_libs=yes
8051  if test "$host_cpu" = ia64; then
8052    # AIX 5 supports IA64
8053    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8054    shlibpath_var=LD_LIBRARY_PATH
8055  else
8056    # With GCC up to 2.95.x, collect2 would create an import file
8057    # for dependence libraries.  The import file would start with
8058    # the line `#! .'.  This would cause the generated library to
8059    # depend on `.', always an invalid library.  This was fixed in
8060    # development snapshots of GCC prior to 3.0.
8061    case $host_os in
8062      aix4 | aix4.[01] | aix4.[01].*)
8063      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8064	   echo ' yes '
8065	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8066	:
8067      else
8068	can_build_shared=no
8069      fi
8070      ;;
8071    esac
8072    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8073    # soname into executable. Probably we can add versioning support to
8074    # collect2, so additional links can be useful in future.
8075    if test "$aix_use_runtimelinking" = yes; then
8076      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8077      # instead of lib<name>.a to let people know that these are not
8078      # typical AIX shared libraries.
8079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080    else
8081      # We preserve .a as extension for shared libraries through AIX4.2
8082      # and later when we are not doing run time linking.
8083      library_names_spec='${libname}${release}.a $libname.a'
8084      soname_spec='${libname}${release}${shared_ext}$major'
8085    fi
8086    shlibpath_var=LIBPATH
8087  fi
8088  ;;
8089
8090amigaos*)
8091  library_names_spec='$libname.ixlibrary $libname.a'
8092  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8093  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'
8094  ;;
8095
8096beos*)
8097  library_names_spec='${libname}${shared_ext}'
8098  dynamic_linker="$host_os ld.so"
8099  shlibpath_var=LIBRARY_PATH
8100  ;;
8101
8102bsdi[45]*)
8103  version_type=linux
8104  need_version=no
8105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106  soname_spec='${libname}${release}${shared_ext}$major'
8107  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8108  shlibpath_var=LD_LIBRARY_PATH
8109  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8110  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8111  # the default ld.so.conf also contains /usr/contrib/lib and
8112  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8113  # libtool to hard-code these into programs
8114  ;;
8115
8116cygwin* | mingw* | pw32*)
8117  version_type=windows
8118  shrext_cmds=".dll"
8119  need_version=no
8120  need_lib_prefix=no
8121
8122  case $GCC,$host_os in
8123  yes,cygwin* | yes,mingw* | yes,pw32*)
8124    library_names_spec='$libname.dll.a'
8125    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8126    postinstall_cmds='base_file=`basename \${file}`~
8127      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8128      dldir=$destdir/`dirname \$dlpath`~
8129      test -d \$dldir || mkdir -p \$dldir~
8130      $install_prog $dir/$dlname \$dldir/$dlname~
8131      chmod a+x \$dldir/$dlname'
8132    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8133      dlpath=$dir/\$dldll~
8134       $rm \$dlpath'
8135    shlibpath_overrides_runpath=yes
8136
8137    case $host_os in
8138    cygwin*)
8139      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8140      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8141      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8142      ;;
8143    mingw*)
8144      # MinGW DLLs use traditional 'lib' prefix
8145      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8146      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8147      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8148        # It is most probably a Windows format PATH printed by
8149        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8150        # path with ; separators, and with drive letters. We can handle the
8151        # drive letters (cygwin fileutils understands them), so leave them,
8152        # especially as we might pass files found there to a mingw objdump,
8153        # which wouldn't understand a cygwinified path. Ahh.
8154        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8155      else
8156        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8157      fi
8158      ;;
8159    pw32*)
8160      # pw32 DLLs use 'pw' prefix rather than 'lib'
8161      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8162      ;;
8163    esac
8164    ;;
8165
8166  linux*)
8167    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8168      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169      supports_anon_versioning=no
8170      case `$LD -v 2>/dev/null` in
8171        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174        *\ 2.11.*) ;; # other 2.11 versions
8175        *) supports_anon_versioning=yes ;;
8176      esac
8177      if test $supports_anon_versioning = yes; then
8178        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8179cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8180$echo "local: *; };" >> $output_objdir/$libname.ver~
8181        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8182      else
8183        $archive_expsym_cmds="$archive_cmds"
8184      fi
8185    else
8186      ld_shlibs=no
8187    fi
8188    ;;
8189
8190  *)
8191    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8192    ;;
8193  esac
8194  dynamic_linker='Win32 ld.exe'
8195  # FIXME: first we should search . and the directory the executable is in
8196  shlibpath_var=PATH
8197  ;;
8198
8199darwin* | rhapsody*)
8200  dynamic_linker="$host_os dyld"
8201  version_type=darwin
8202  need_lib_prefix=no
8203  need_version=no
8204  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8205  soname_spec='${libname}${release}${major}$shared_ext'
8206  shlibpath_overrides_runpath=yes
8207  shlibpath_var=DYLD_LIBRARY_PATH
8208  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8209  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8210  if test "$GCC" = yes; then
8211    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"`
8212  else
8213    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8214  fi
8215  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8216  ;;
8217
8218dgux*)
8219  version_type=linux
8220  need_lib_prefix=no
8221  need_version=no
8222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8223  soname_spec='${libname}${release}${shared_ext}$major'
8224  shlibpath_var=LD_LIBRARY_PATH
8225  ;;
8226
8227freebsd1*)
8228  dynamic_linker=no
8229  ;;
8230
8231kfreebsd*-gnu)
8232  version_type=linux
8233  need_lib_prefix=no
8234  need_version=no
8235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8236  soname_spec='${libname}${release}${shared_ext}$major'
8237  shlibpath_var=LD_LIBRARY_PATH
8238  shlibpath_overrides_runpath=no
8239  hardcode_into_libs=yes
8240  dynamic_linker='GNU ld.so'
8241  ;;
8242
8243freebsd* | dragonfly*)
8244  # DragonFly does not have aout.  When/if they implement a new
8245  # versioning mechanism, adjust this.
8246  if test -x /usr/bin/objformat; then
8247    objformat=`/usr/bin/objformat`
8248  else
8249    case $host_os in
8250    freebsd[123]*) objformat=aout ;;
8251    *) objformat=elf ;;
8252    esac
8253  fi
8254  # Handle Gentoo/FreeBSD as it was Linux
8255  case $host_vendor in
8256    gentoo)
8257      version_type=linux ;;
8258    *)
8259      version_type=freebsd-$objformat ;;
8260  esac
8261
8262  case $version_type in
8263    freebsd-elf*)
8264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8265      need_version=no
8266      need_lib_prefix=no
8267      ;;
8268    freebsd-*)
8269      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8270      need_version=yes
8271      ;;
8272    linux)
8273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8274      soname_spec='${libname}${release}${shared_ext}$major'
8275      need_lib_prefix=no
8276      need_version=no
8277      ;;
8278  esac
8279  shlibpath_var=LD_LIBRARY_PATH
8280  case $host_os in
8281  freebsd2*)
8282    shlibpath_overrides_runpath=yes
8283    ;;
8284  freebsd3.[01]* | freebsdelf3.[01]*)
8285    shlibpath_overrides_runpath=yes
8286    hardcode_into_libs=yes
8287    ;;
8288  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8289  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8290    shlibpath_overrides_runpath=no
8291    hardcode_into_libs=yes
8292    ;;
8293  freebsd*) # from 4.6 on
8294    shlibpath_overrides_runpath=yes
8295    hardcode_into_libs=yes
8296    ;;
8297  esac
8298  ;;
8299
8300gnu*)
8301  version_type=linux
8302  need_lib_prefix=no
8303  need_version=no
8304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8305  soname_spec='${libname}${release}${shared_ext}$major'
8306  shlibpath_var=LD_LIBRARY_PATH
8307  hardcode_into_libs=yes
8308  ;;
8309
8310hpux9* | hpux10* | hpux11*)
8311  # Give a soname corresponding to the major version so that dld.sl refuses to
8312  # link against other versions.
8313  version_type=sunos
8314  need_lib_prefix=no
8315  need_version=no
8316  case $host_cpu in
8317  ia64*)
8318    shrext_cmds='.so'
8319    hardcode_into_libs=yes
8320    dynamic_linker="$host_os dld.so"
8321    shlibpath_var=LD_LIBRARY_PATH
8322    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8323    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324    soname_spec='${libname}${release}${shared_ext}$major'
8325    if test "X$HPUX_IA64_MODE" = X32; then
8326      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8327    else
8328      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8329    fi
8330    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8331    ;;
8332   hppa*64*)
8333     shrext_cmds='.sl'
8334     hardcode_into_libs=yes
8335     dynamic_linker="$host_os dld.sl"
8336     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8339     soname_spec='${libname}${release}${shared_ext}$major'
8340     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8342     ;;
8343   *)
8344    shrext_cmds='.sl'
8345    dynamic_linker="$host_os dld.sl"
8346    shlibpath_var=SHLIB_PATH
8347    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349    soname_spec='${libname}${release}${shared_ext}$major'
8350    ;;
8351  esac
8352  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8353  postinstall_cmds='chmod 555 $lib'
8354  ;;
8355
8356interix3*)
8357  version_type=linux
8358  need_lib_prefix=no
8359  need_version=no
8360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8361  soname_spec='${libname}${release}${shared_ext}$major'
8362  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8363  shlibpath_var=LD_LIBRARY_PATH
8364  shlibpath_overrides_runpath=no
8365  hardcode_into_libs=yes
8366  ;;
8367
8368irix5* | irix6* | nonstopux*)
8369  case $host_os in
8370    nonstopux*) version_type=nonstopux ;;
8371    *)
8372	if test "$lt_cv_prog_gnu_ld" = yes; then
8373		version_type=linux
8374	else
8375		version_type=irix
8376	fi ;;
8377  esac
8378  need_lib_prefix=no
8379  need_version=no
8380  soname_spec='${libname}${release}${shared_ext}$major'
8381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8382  case $host_os in
8383  irix5* | nonstopux*)
8384    libsuff= shlibsuff=
8385    ;;
8386  *)
8387    case $LD in # libtool.m4 will add one of these switches to LD
8388    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8389      libsuff= shlibsuff= libmagic=32-bit;;
8390    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8391      libsuff=32 shlibsuff=N32 libmagic=N32;;
8392    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8393      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8394    *) libsuff= shlibsuff= libmagic=never-match;;
8395    esac
8396    ;;
8397  esac
8398  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8399  shlibpath_overrides_runpath=no
8400  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8401  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8402  hardcode_into_libs=yes
8403  ;;
8404
8405# No shared lib support for Linux oldld, aout, or coff.
8406linux*oldld* | linux*aout* | linux*coff*)
8407  dynamic_linker=no
8408  ;;
8409
8410# This must be Linux ELF.
8411linux*)
8412  version_type=linux
8413  need_lib_prefix=no
8414  need_version=no
8415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8416  soname_spec='${libname}${release}${shared_ext}$major'
8417  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8418  shlibpath_var=LD_LIBRARY_PATH
8419  shlibpath_overrides_runpath=no
8420  # This implies no fast_install, which is unacceptable.
8421  # Some rework will be needed to allow for fast_install
8422  # before this can be enabled.
8423  hardcode_into_libs=yes
8424
8425  # Append ld.so.conf contents to the search path
8426  if test -f /etc/ld.so.conf; then
8427    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' ' '`
8428    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8429  fi
8430
8431  # We used to test for /lib/ld.so.1 and disable shared libraries on
8432  # powerpc, because MkLinux only supported shared libraries with the
8433  # GNU dynamic linker.  Since this was broken with cross compilers,
8434  # most powerpc-linux boxes support dynamic linking these days and
8435  # people can always --disable-shared, the test was removed, and we
8436  # assume the GNU/Linux dynamic linker is in use.
8437  dynamic_linker='GNU/Linux ld.so'
8438  ;;
8439
8440knetbsd*-gnu)
8441  version_type=linux
8442  need_lib_prefix=no
8443  need_version=no
8444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8445  soname_spec='${libname}${release}${shared_ext}$major'
8446  shlibpath_var=LD_LIBRARY_PATH
8447  shlibpath_overrides_runpath=no
8448  hardcode_into_libs=yes
8449  dynamic_linker='GNU ld.so'
8450  ;;
8451
8452netbsd*)
8453  version_type=sunos
8454  need_lib_prefix=no
8455  need_version=no
8456  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8458    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8459    dynamic_linker='NetBSD (a.out) ld.so'
8460  else
8461    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8462    soname_spec='${libname}${release}${shared_ext}$major'
8463    dynamic_linker='NetBSD ld.elf_so'
8464  fi
8465  shlibpath_var=LD_LIBRARY_PATH
8466  shlibpath_overrides_runpath=yes
8467  hardcode_into_libs=yes
8468  ;;
8469
8470newsos6)
8471  version_type=linux
8472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8473  shlibpath_var=LD_LIBRARY_PATH
8474  shlibpath_overrides_runpath=yes
8475  ;;
8476
8477nto-qnx*)
8478  version_type=linux
8479  need_lib_prefix=no
8480  need_version=no
8481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8482  soname_spec='${libname}${release}${shared_ext}$major'
8483  shlibpath_var=LD_LIBRARY_PATH
8484  shlibpath_overrides_runpath=yes
8485  ;;
8486
8487openbsd*)
8488  version_type=sunos
8489  sys_lib_dlsearch_path_spec="/usr/lib"
8490  need_lib_prefix=no
8491  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8492  case $host_os in
8493    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8494    *)                         need_version=no  ;;
8495  esac
8496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8498  shlibpath_var=LD_LIBRARY_PATH
8499  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8500    case $host_os in
8501      openbsd2.[89] | openbsd2.[89].*)
8502	shlibpath_overrides_runpath=no
8503	;;
8504      *)
8505	shlibpath_overrides_runpath=yes
8506	;;
8507      esac
8508  else
8509    shlibpath_overrides_runpath=yes
8510  fi
8511  ;;
8512
8513os2*)
8514  libname_spec='$name'
8515  shrext_cmds=".dll"
8516  need_lib_prefix=no
8517  library_names_spec='$libname${shared_ext} $libname.a'
8518  dynamic_linker='OS/2 ld.exe'
8519  shlibpath_var=LIBPATH
8520  ;;
8521
8522osf3* | osf4* | osf5*)
8523  version_type=osf
8524  need_lib_prefix=no
8525  need_version=no
8526  soname_spec='${libname}${release}${shared_ext}$major'
8527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8528  shlibpath_var=LD_LIBRARY_PATH
8529  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8530  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8531  ;;
8532
8533solaris*)
8534  version_type=linux
8535  need_lib_prefix=no
8536  need_version=no
8537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8538  soname_spec='${libname}${release}${shared_ext}$major'
8539  shlibpath_var=LD_LIBRARY_PATH
8540  shlibpath_overrides_runpath=yes
8541  hardcode_into_libs=yes
8542  # ldd complains unless libraries are executable
8543  postinstall_cmds='chmod +x $lib'
8544  ;;
8545
8546sunos4*)
8547  version_type=sunos
8548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8550  shlibpath_var=LD_LIBRARY_PATH
8551  shlibpath_overrides_runpath=yes
8552  if test "$with_gnu_ld" = yes; then
8553    need_lib_prefix=no
8554  fi
8555  need_version=yes
8556  ;;
8557
8558sysv4 | sysv4.3*)
8559  version_type=linux
8560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561  soname_spec='${libname}${release}${shared_ext}$major'
8562  shlibpath_var=LD_LIBRARY_PATH
8563  case $host_vendor in
8564    sni)
8565      shlibpath_overrides_runpath=no
8566      need_lib_prefix=no
8567      export_dynamic_flag_spec='${wl}-Blargedynsym'
8568      runpath_var=LD_RUN_PATH
8569      ;;
8570    siemens)
8571      need_lib_prefix=no
8572      ;;
8573    motorola)
8574      need_lib_prefix=no
8575      need_version=no
8576      shlibpath_overrides_runpath=no
8577      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8578      ;;
8579  esac
8580  ;;
8581
8582sysv4*MP*)
8583  if test -d /usr/nec ;then
8584    version_type=linux
8585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8586    soname_spec='$libname${shared_ext}.$major'
8587    shlibpath_var=LD_LIBRARY_PATH
8588  fi
8589  ;;
8590
8591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8592  version_type=freebsd-elf
8593  need_lib_prefix=no
8594  need_version=no
8595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8596  soname_spec='${libname}${release}${shared_ext}$major'
8597  shlibpath_var=LD_LIBRARY_PATH
8598  hardcode_into_libs=yes
8599  if test "$with_gnu_ld" = yes; then
8600    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8601    shlibpath_overrides_runpath=no
8602  else
8603    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8604    shlibpath_overrides_runpath=yes
8605    case $host_os in
8606      sco3.2v5*)
8607        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8608	;;
8609    esac
8610  fi
8611  sys_lib_dlsearch_path_spec='/usr/lib'
8612  ;;
8613
8614uts4*)
8615  version_type=linux
8616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617  soname_spec='${libname}${release}${shared_ext}$major'
8618  shlibpath_var=LD_LIBRARY_PATH
8619  ;;
8620
8621*)
8622  dynamic_linker=no
8623  ;;
8624esac
8625echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8626echo "${ECHO_T}$dynamic_linker" >&6
8627test "$dynamic_linker" = no && can_build_shared=no
8628
8629variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8630if test "$GCC" = yes; then
8631  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8632fi
8633
8634echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8635echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8636hardcode_action=
8637if test -n "$hardcode_libdir_flag_spec" || \
8638   test -n "$runpath_var" || \
8639   test "X$hardcode_automatic" = "Xyes" ; then
8640
8641  # We can hardcode non-existant directories.
8642  if test "$hardcode_direct" != no &&
8643     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8644     # have to relink, otherwise we might link with an installed library
8645     # when we should be linking with a yet-to-be-installed one
8646     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8647     test "$hardcode_minus_L" != no; then
8648    # Linking always hardcodes the temporary library directory.
8649    hardcode_action=relink
8650  else
8651    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8652    hardcode_action=immediate
8653  fi
8654else
8655  # We cannot hardcode anything, or else we can only hardcode existing
8656  # directories.
8657  hardcode_action=unsupported
8658fi
8659echo "$as_me:$LINENO: result: $hardcode_action" >&5
8660echo "${ECHO_T}$hardcode_action" >&6
8661
8662if test "$hardcode_action" = relink; then
8663  # Fast installation is not supported
8664  enable_fast_install=no
8665elif test "$shlibpath_overrides_runpath" = yes ||
8666     test "$enable_shared" = no; then
8667  # Fast installation is not necessary
8668  enable_fast_install=needless
8669fi
8670
8671striplib=
8672old_striplib=
8673echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8674echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8675if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8676  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8677  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8678  echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
8680else
8681# FIXME - insert some real tests, host_os isn't really good enough
8682  case $host_os in
8683   darwin*)
8684       if test -n "$STRIP" ; then
8685         striplib="$STRIP -x"
8686         echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
8688       else
8689  echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691fi
8692       ;;
8693   *)
8694  echo "$as_me:$LINENO: result: no" >&5
8695echo "${ECHO_T}no" >&6
8696    ;;
8697  esac
8698fi
8699
8700if test "x$enable_dlopen" != xyes; then
8701  enable_dlopen=unknown
8702  enable_dlopen_self=unknown
8703  enable_dlopen_self_static=unknown
8704else
8705  lt_cv_dlopen=no
8706  lt_cv_dlopen_libs=
8707
8708  case $host_os in
8709  beos*)
8710    lt_cv_dlopen="load_add_on"
8711    lt_cv_dlopen_libs=
8712    lt_cv_dlopen_self=yes
8713    ;;
8714
8715  mingw* | pw32*)
8716    lt_cv_dlopen="LoadLibrary"
8717    lt_cv_dlopen_libs=
8718   ;;
8719
8720  cygwin*)
8721    lt_cv_dlopen="dlopen"
8722    lt_cv_dlopen_libs=
8723   ;;
8724
8725  darwin*)
8726  # if libdl is installed we need to link against it
8727    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8728echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8730  echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732  ac_check_lib_save_LIBS=$LIBS
8733LIBS="-ldl  $LIBS"
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h.  */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h.  */
8740
8741/* Override any gcc2 internal prototype to avoid an error.  */
8742#ifdef __cplusplus
8743extern "C"
8744#endif
8745/* We use char because int might match the return type of a gcc2
8746   builtin and then its argument prototype would still apply.  */
8747char dlopen ();
8748int
8749main ()
8750{
8751dlopen ();
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext conftest$ac_exeext
8757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758  (eval $ac_link) 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } &&
8765	 { ac_try='test -z "$ac_c_werror_flag"
8766			 || test ! -s conftest.err'
8767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768  (eval $ac_try) 2>&5
8769  ac_status=$?
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); }; } &&
8772	 { ac_try='test -s conftest$ac_exeext'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; }; then
8778  ac_cv_lib_dl_dlopen=yes
8779else
8780  echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_cv_lib_dl_dlopen=no
8784fi
8785rm -f conftest.err conftest.$ac_objext \
8786      conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8790echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8791if test $ac_cv_lib_dl_dlopen = yes; then
8792  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8793else
8794
8795    lt_cv_dlopen="dyld"
8796    lt_cv_dlopen_libs=
8797    lt_cv_dlopen_self=yes
8798
8799fi
8800
8801   ;;
8802
8803  *)
8804    echo "$as_me:$LINENO: checking for shl_load" >&5
8805echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8806if test "${ac_cv_func_shl_load+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8817#define shl_load innocuous_shl_load
8818
8819/* System header to define __stub macros and hopefully few prototypes,
8820    which can conflict with char shl_load (); below.
8821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822    <limits.h> exists even on freestanding compilers.  */
8823
8824#ifdef __STDC__
8825# include <limits.h>
8826#else
8827# include <assert.h>
8828#endif
8829
8830#undef shl_load
8831
8832/* Override any gcc2 internal prototype to avoid an error.  */
8833#ifdef __cplusplus
8834extern "C"
8835{
8836#endif
8837/* We use char because int might match the return type of a gcc2
8838   builtin and then its argument prototype would still apply.  */
8839char shl_load ();
8840/* The GNU C library defines this for functions which it implements
8841    to always fail with ENOSYS.  Some functions are actually named
8842    something starting with __ and the normal name is an alias.  */
8843#if defined (__stub_shl_load) || defined (__stub___shl_load)
8844choke me
8845#else
8846char (*f) () = shl_load;
8847#endif
8848#ifdef __cplusplus
8849}
8850#endif
8851
8852int
8853main ()
8854{
8855return f != shl_load;
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860rm -f conftest.$ac_objext conftest$ac_exeext
8861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862  (eval $ac_link) 2>conftest.er1
8863  ac_status=$?
8864  grep -v '^ *+' conftest.er1 >conftest.err
8865  rm -f conftest.er1
8866  cat conftest.err >&5
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); } &&
8869	 { ac_try='test -z "$ac_c_werror_flag"
8870			 || test ! -s conftest.err'
8871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872  (eval $ac_try) 2>&5
8873  ac_status=$?
8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875  (exit $ac_status); }; } &&
8876	 { ac_try='test -s conftest$ac_exeext'
8877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878  (eval $ac_try) 2>&5
8879  ac_status=$?
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); }; }; then
8882  ac_cv_func_shl_load=yes
8883else
8884  echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887ac_cv_func_shl_load=no
8888fi
8889rm -f conftest.err conftest.$ac_objext \
8890      conftest$ac_exeext conftest.$ac_ext
8891fi
8892echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8893echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8894if test $ac_cv_func_shl_load = yes; then
8895  lt_cv_dlopen="shl_load"
8896else
8897  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8898echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8899if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902  ac_check_lib_save_LIBS=$LIBS
8903LIBS="-ldld  $LIBS"
8904cat >conftest.$ac_ext <<_ACEOF
8905/* confdefs.h.  */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h.  */
8910
8911/* Override any gcc2 internal prototype to avoid an error.  */
8912#ifdef __cplusplus
8913extern "C"
8914#endif
8915/* We use char because int might match the return type of a gcc2
8916   builtin and then its argument prototype would still apply.  */
8917char shl_load ();
8918int
8919main ()
8920{
8921shl_load ();
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928  (eval $ac_link) 2>conftest.er1
8929  ac_status=$?
8930  grep -v '^ *+' conftest.er1 >conftest.err
8931  rm -f conftest.er1
8932  cat conftest.err >&5
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); } &&
8935	 { ac_try='test -z "$ac_c_werror_flag"
8936			 || test ! -s conftest.err'
8937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938  (eval $ac_try) 2>&5
8939  ac_status=$?
8940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941  (exit $ac_status); }; } &&
8942	 { ac_try='test -s conftest$ac_exeext'
8943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944  (eval $ac_try) 2>&5
8945  ac_status=$?
8946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947  (exit $ac_status); }; }; then
8948  ac_cv_lib_dld_shl_load=yes
8949else
8950  echo "$as_me: failed program was:" >&5
8951sed 's/^/| /' conftest.$ac_ext >&5
8952
8953ac_cv_lib_dld_shl_load=no
8954fi
8955rm -f conftest.err conftest.$ac_objext \
8956      conftest$ac_exeext conftest.$ac_ext
8957LIBS=$ac_check_lib_save_LIBS
8958fi
8959echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8960echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8961if test $ac_cv_lib_dld_shl_load = yes; then
8962  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8963else
8964  echo "$as_me:$LINENO: checking for dlopen" >&5
8965echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8966if test "${ac_cv_func_dlopen+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h.  */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h.  */
8975/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8976   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8977#define dlopen innocuous_dlopen
8978
8979/* System header to define __stub macros and hopefully few prototypes,
8980    which can conflict with char dlopen (); below.
8981    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8982    <limits.h> exists even on freestanding compilers.  */
8983
8984#ifdef __STDC__
8985# include <limits.h>
8986#else
8987# include <assert.h>
8988#endif
8989
8990#undef dlopen
8991
8992/* Override any gcc2 internal prototype to avoid an error.  */
8993#ifdef __cplusplus
8994extern "C"
8995{
8996#endif
8997/* We use char because int might match the return type of a gcc2
8998   builtin and then its argument prototype would still apply.  */
8999char dlopen ();
9000/* The GNU C library defines this for functions which it implements
9001    to always fail with ENOSYS.  Some functions are actually named
9002    something starting with __ and the normal name is an alias.  */
9003#if defined (__stub_dlopen) || defined (__stub___dlopen)
9004choke me
9005#else
9006char (*f) () = dlopen;
9007#endif
9008#ifdef __cplusplus
9009}
9010#endif
9011
9012int
9013main ()
9014{
9015return f != dlopen;
9016  ;
9017  return 0;
9018}
9019_ACEOF
9020rm -f conftest.$ac_objext conftest$ac_exeext
9021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022  (eval $ac_link) 2>conftest.er1
9023  ac_status=$?
9024  grep -v '^ *+' conftest.er1 >conftest.err
9025  rm -f conftest.er1
9026  cat conftest.err >&5
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } &&
9029	 { ac_try='test -z "$ac_c_werror_flag"
9030			 || test ! -s conftest.err'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; } &&
9036	 { ac_try='test -s conftest$ac_exeext'
9037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038  (eval $ac_try) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); }; }; then
9042  ac_cv_func_dlopen=yes
9043else
9044  echo "$as_me: failed program was:" >&5
9045sed 's/^/| /' conftest.$ac_ext >&5
9046
9047ac_cv_func_dlopen=no
9048fi
9049rm -f conftest.err conftest.$ac_objext \
9050      conftest$ac_exeext conftest.$ac_ext
9051fi
9052echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9053echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9054if test $ac_cv_func_dlopen = yes; then
9055  lt_cv_dlopen="dlopen"
9056else
9057  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9058echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9059if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062  ac_check_lib_save_LIBS=$LIBS
9063LIBS="-ldl  $LIBS"
9064cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h.  */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h.  */
9070
9071/* Override any gcc2 internal prototype to avoid an error.  */
9072#ifdef __cplusplus
9073extern "C"
9074#endif
9075/* We use char because int might match the return type of a gcc2
9076   builtin and then its argument prototype would still apply.  */
9077char dlopen ();
9078int
9079main ()
9080{
9081dlopen ();
9082  ;
9083  return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088  (eval $ac_link) 2>conftest.er1
9089  ac_status=$?
9090  grep -v '^ *+' conftest.er1 >conftest.err
9091  rm -f conftest.er1
9092  cat conftest.err >&5
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } &&
9095	 { ac_try='test -z "$ac_c_werror_flag"
9096			 || test ! -s conftest.err'
9097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098  (eval $ac_try) 2>&5
9099  ac_status=$?
9100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101  (exit $ac_status); }; } &&
9102	 { ac_try='test -s conftest$ac_exeext'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; }; then
9108  ac_cv_lib_dl_dlopen=yes
9109else
9110  echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113ac_cv_lib_dl_dlopen=no
9114fi
9115rm -f conftest.err conftest.$ac_objext \
9116      conftest$ac_exeext conftest.$ac_ext
9117LIBS=$ac_check_lib_save_LIBS
9118fi
9119echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9121if test $ac_cv_lib_dl_dlopen = yes; then
9122  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9123else
9124  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9125echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9126if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9127  echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129  ac_check_lib_save_LIBS=$LIBS
9130LIBS="-lsvld  $LIBS"
9131cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h.  */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h.  */
9137
9138/* Override any gcc2 internal prototype to avoid an error.  */
9139#ifdef __cplusplus
9140extern "C"
9141#endif
9142/* We use char because int might match the return type of a gcc2
9143   builtin and then its argument prototype would still apply.  */
9144char dlopen ();
9145int
9146main ()
9147{
9148dlopen ();
9149  ;
9150  return 0;
9151}
9152_ACEOF
9153rm -f conftest.$ac_objext conftest$ac_exeext
9154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155  (eval $ac_link) 2>conftest.er1
9156  ac_status=$?
9157  grep -v '^ *+' conftest.er1 >conftest.err
9158  rm -f conftest.er1
9159  cat conftest.err >&5
9160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161  (exit $ac_status); } &&
9162	 { ac_try='test -z "$ac_c_werror_flag"
9163			 || test ! -s conftest.err'
9164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165  (eval $ac_try) 2>&5
9166  ac_status=$?
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); }; } &&
9169	 { ac_try='test -s conftest$ac_exeext'
9170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171  (eval $ac_try) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); }; }; then
9175  ac_cv_lib_svld_dlopen=yes
9176else
9177  echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180ac_cv_lib_svld_dlopen=no
9181fi
9182rm -f conftest.err conftest.$ac_objext \
9183      conftest$ac_exeext conftest.$ac_ext
9184LIBS=$ac_check_lib_save_LIBS
9185fi
9186echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9187echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9188if test $ac_cv_lib_svld_dlopen = yes; then
9189  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9190else
9191  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9192echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9193if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9194  echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196  ac_check_lib_save_LIBS=$LIBS
9197LIBS="-ldld  $LIBS"
9198cat >conftest.$ac_ext <<_ACEOF
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204
9205/* Override any gcc2 internal prototype to avoid an error.  */
9206#ifdef __cplusplus
9207extern "C"
9208#endif
9209/* We use char because int might match the return type of a gcc2
9210   builtin and then its argument prototype would still apply.  */
9211char dld_link ();
9212int
9213main ()
9214{
9215dld_link ();
9216  ;
9217  return 0;
9218}
9219_ACEOF
9220rm -f conftest.$ac_objext conftest$ac_exeext
9221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222  (eval $ac_link) 2>conftest.er1
9223  ac_status=$?
9224  grep -v '^ *+' conftest.er1 >conftest.err
9225  rm -f conftest.er1
9226  cat conftest.err >&5
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } &&
9229	 { ac_try='test -z "$ac_c_werror_flag"
9230			 || test ! -s conftest.err'
9231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232  (eval $ac_try) 2>&5
9233  ac_status=$?
9234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235  (exit $ac_status); }; } &&
9236	 { ac_try='test -s conftest$ac_exeext'
9237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238  (eval $ac_try) 2>&5
9239  ac_status=$?
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); }; }; then
9242  ac_cv_lib_dld_dld_link=yes
9243else
9244  echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247ac_cv_lib_dld_dld_link=no
9248fi
9249rm -f conftest.err conftest.$ac_objext \
9250      conftest$ac_exeext conftest.$ac_ext
9251LIBS=$ac_check_lib_save_LIBS
9252fi
9253echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9254echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9255if test $ac_cv_lib_dld_dld_link = yes; then
9256  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9257fi
9258
9259
9260fi
9261
9262
9263fi
9264
9265
9266fi
9267
9268
9269fi
9270
9271
9272fi
9273
9274    ;;
9275  esac
9276
9277  if test "x$lt_cv_dlopen" != xno; then
9278    enable_dlopen=yes
9279  else
9280    enable_dlopen=no
9281  fi
9282
9283  case $lt_cv_dlopen in
9284  dlopen)
9285    save_CPPFLAGS="$CPPFLAGS"
9286    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9287
9288    save_LDFLAGS="$LDFLAGS"
9289    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9290
9291    save_LIBS="$LIBS"
9292    LIBS="$lt_cv_dlopen_libs $LIBS"
9293
9294    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9295echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9296if test "${lt_cv_dlopen_self+set}" = set; then
9297  echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299  	  if test "$cross_compiling" = yes; then :
9300  lt_cv_dlopen_self=cross
9301else
9302  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9303  lt_status=$lt_dlunknown
9304  cat > conftest.$ac_ext <<EOF
9305#line 9305 "configure"
9306#include "confdefs.h"
9307
9308#if HAVE_DLFCN_H
9309#include <dlfcn.h>
9310#endif
9311
9312#include <stdio.h>
9313
9314#ifdef RTLD_GLOBAL
9315#  define LT_DLGLOBAL		RTLD_GLOBAL
9316#else
9317#  ifdef DL_GLOBAL
9318#    define LT_DLGLOBAL		DL_GLOBAL
9319#  else
9320#    define LT_DLGLOBAL		0
9321#  endif
9322#endif
9323
9324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9325   find out it does not work in some platform. */
9326#ifndef LT_DLLAZY_OR_NOW
9327#  ifdef RTLD_LAZY
9328#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9329#  else
9330#    ifdef DL_LAZY
9331#      define LT_DLLAZY_OR_NOW		DL_LAZY
9332#    else
9333#      ifdef RTLD_NOW
9334#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9335#      else
9336#        ifdef DL_NOW
9337#          define LT_DLLAZY_OR_NOW	DL_NOW
9338#        else
9339#          define LT_DLLAZY_OR_NOW	0
9340#        endif
9341#      endif
9342#    endif
9343#  endif
9344#endif
9345
9346#ifdef __cplusplus
9347extern "C" void exit (int);
9348#endif
9349
9350void fnord() { int i=42;}
9351int main ()
9352{
9353  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9354  int status = $lt_dlunknown;
9355
9356  if (self)
9357    {
9358      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9359      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9360      /* dlclose (self); */
9361    }
9362  else
9363    puts (dlerror ());
9364
9365    exit (status);
9366}
9367EOF
9368  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369  (eval $ac_link) 2>&5
9370  ac_status=$?
9371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9373    (./conftest; exit; ) >&5 2>/dev/null
9374    lt_status=$?
9375    case x$lt_status in
9376      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9377      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9378      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9379    esac
9380  else :
9381    # compilation failed
9382    lt_cv_dlopen_self=no
9383  fi
9384fi
9385rm -fr conftest*
9386
9387
9388fi
9389echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9390echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9391
9392    if test "x$lt_cv_dlopen_self" = xyes; then
9393      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9394      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9395echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9396if test "${lt_cv_dlopen_self_static+set}" = set; then
9397  echo $ECHO_N "(cached) $ECHO_C" >&6
9398else
9399  	  if test "$cross_compiling" = yes; then :
9400  lt_cv_dlopen_self_static=cross
9401else
9402  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9403  lt_status=$lt_dlunknown
9404  cat > conftest.$ac_ext <<EOF
9405#line 9405 "configure"
9406#include "confdefs.h"
9407
9408#if HAVE_DLFCN_H
9409#include <dlfcn.h>
9410#endif
9411
9412#include <stdio.h>
9413
9414#ifdef RTLD_GLOBAL
9415#  define LT_DLGLOBAL		RTLD_GLOBAL
9416#else
9417#  ifdef DL_GLOBAL
9418#    define LT_DLGLOBAL		DL_GLOBAL
9419#  else
9420#    define LT_DLGLOBAL		0
9421#  endif
9422#endif
9423
9424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9425   find out it does not work in some platform. */
9426#ifndef LT_DLLAZY_OR_NOW
9427#  ifdef RTLD_LAZY
9428#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9429#  else
9430#    ifdef DL_LAZY
9431#      define LT_DLLAZY_OR_NOW		DL_LAZY
9432#    else
9433#      ifdef RTLD_NOW
9434#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9435#      else
9436#        ifdef DL_NOW
9437#          define LT_DLLAZY_OR_NOW	DL_NOW
9438#        else
9439#          define LT_DLLAZY_OR_NOW	0
9440#        endif
9441#      endif
9442#    endif
9443#  endif
9444#endif
9445
9446#ifdef __cplusplus
9447extern "C" void exit (int);
9448#endif
9449
9450void fnord() { int i=42;}
9451int main ()
9452{
9453  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9454  int status = $lt_dlunknown;
9455
9456  if (self)
9457    {
9458      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9459      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9460      /* dlclose (self); */
9461    }
9462  else
9463    puts (dlerror ());
9464
9465    exit (status);
9466}
9467EOF
9468  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469  (eval $ac_link) 2>&5
9470  ac_status=$?
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9473    (./conftest; exit; ) >&5 2>/dev/null
9474    lt_status=$?
9475    case x$lt_status in
9476      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9477      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9478      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9479    esac
9480  else :
9481    # compilation failed
9482    lt_cv_dlopen_self_static=no
9483  fi
9484fi
9485rm -fr conftest*
9486
9487
9488fi
9489echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9490echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9491    fi
9492
9493    CPPFLAGS="$save_CPPFLAGS"
9494    LDFLAGS="$save_LDFLAGS"
9495    LIBS="$save_LIBS"
9496    ;;
9497  esac
9498
9499  case $lt_cv_dlopen_self in
9500  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9501  *) enable_dlopen_self=unknown ;;
9502  esac
9503
9504  case $lt_cv_dlopen_self_static in
9505  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9506  *) enable_dlopen_self_static=unknown ;;
9507  esac
9508fi
9509
9510
9511# Report which library types will actually be built
9512echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9513echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9514echo "$as_me:$LINENO: result: $can_build_shared" >&5
9515echo "${ECHO_T}$can_build_shared" >&6
9516
9517echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9518echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9519test "$can_build_shared" = "no" && enable_shared=no
9520
9521# On AIX, shared libraries and static libraries use the same namespace, and
9522# are all built from PIC.
9523case $host_os in
9524aix3*)
9525  test "$enable_shared" = yes && enable_static=no
9526  if test -n "$RANLIB"; then
9527    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9528    postinstall_cmds='$RANLIB $lib'
9529  fi
9530  ;;
9531
9532aix4* | aix5*)
9533  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9534    test "$enable_shared" = yes && enable_static=no
9535  fi
9536    ;;
9537esac
9538echo "$as_me:$LINENO: result: $enable_shared" >&5
9539echo "${ECHO_T}$enable_shared" >&6
9540
9541echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9542echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9543# Make sure either enable_shared or enable_static is yes.
9544test "$enable_shared" = yes || enable_static=yes
9545echo "$as_me:$LINENO: result: $enable_static" >&5
9546echo "${ECHO_T}$enable_static" >&6
9547
9548# The else clause should only fire when bootstrapping the
9549# libtool distribution, otherwise you forgot to ship ltmain.sh
9550# with your package, and you will get complaints that there are
9551# no rules to generate ltmain.sh.
9552if test -f "$ltmain"; then
9553  # See if we are running on zsh, and set the options which allow our commands through
9554  # without removal of \ escapes.
9555  if test -n "${ZSH_VERSION+set}" ; then
9556    setopt NO_GLOB_SUBST
9557  fi
9558  # Now quote all the things that may contain metacharacters while being
9559  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9560  # variables and quote the copies for generation of the libtool script.
9561  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9562    SED SHELL STRIP \
9563    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9564    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9565    deplibs_check_method reload_flag reload_cmds need_locks \
9566    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9567    lt_cv_sys_global_symbol_to_c_name_address \
9568    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9569    old_postinstall_cmds old_postuninstall_cmds \
9570    compiler \
9571    CC \
9572    LD \
9573    lt_prog_compiler_wl \
9574    lt_prog_compiler_pic \
9575    lt_prog_compiler_static \
9576    lt_prog_compiler_no_builtin_flag \
9577    export_dynamic_flag_spec \
9578    thread_safe_flag_spec \
9579    whole_archive_flag_spec \
9580    enable_shared_with_static_runtimes \
9581    old_archive_cmds \
9582    old_archive_from_new_cmds \
9583    predep_objects \
9584    postdep_objects \
9585    predeps \
9586    postdeps \
9587    compiler_lib_search_path \
9588    archive_cmds \
9589    archive_expsym_cmds \
9590    postinstall_cmds \
9591    postuninstall_cmds \
9592    old_archive_from_expsyms_cmds \
9593    allow_undefined_flag \
9594    no_undefined_flag \
9595    export_symbols_cmds \
9596    hardcode_libdir_flag_spec \
9597    hardcode_libdir_flag_spec_ld \
9598    hardcode_libdir_separator \
9599    hardcode_automatic \
9600    module_cmds \
9601    module_expsym_cmds \
9602    lt_cv_prog_compiler_c_o \
9603    exclude_expsyms \
9604    include_expsyms; do
9605
9606    case $var in
9607    old_archive_cmds | \
9608    old_archive_from_new_cmds | \
9609    archive_cmds | \
9610    archive_expsym_cmds | \
9611    module_cmds | \
9612    module_expsym_cmds | \
9613    old_archive_from_expsyms_cmds | \
9614    export_symbols_cmds | \
9615    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9616    postinstall_cmds | postuninstall_cmds | \
9617    old_postinstall_cmds | old_postuninstall_cmds | \
9618    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9619      # Double-quote double-evaled strings.
9620      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9621      ;;
9622    *)
9623      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9624      ;;
9625    esac
9626  done
9627
9628  case $lt_echo in
9629  *'\$0 --fallback-echo"')
9630    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9631    ;;
9632  esac
9633
9634cfgfile="${ofile}T"
9635  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9636  $rm -f "$cfgfile"
9637  { echo "$as_me:$LINENO: creating $ofile" >&5
9638echo "$as_me: creating $ofile" >&6;}
9639
9640  cat <<__EOF__ >> "$cfgfile"
9641#! $SHELL
9642
9643# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9644# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9645# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9646#
9647# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9648# Free Software Foundation, Inc.
9649#
9650# This file is part of GNU Libtool:
9651# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9652#
9653# This program is free software; you can redistribute it and/or modify
9654# it under the terms of the GNU General Public License as published by
9655# the Free Software Foundation; either version 2 of the License, or
9656# (at your option) any later version.
9657#
9658# This program is distributed in the hope that it will be useful, but
9659# WITHOUT ANY WARRANTY; without even the implied warranty of
9660# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9661# General Public License for more details.
9662#
9663# You should have received a copy of the GNU General Public License
9664# along with this program; if not, write to the Free Software
9665# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9666#
9667# As a special exception to the GNU General Public License, if you
9668# distribute this file as part of a program that contains a
9669# configuration script generated by Autoconf, you may include it under
9670# the same distribution terms that you use for the rest of that program.
9671
9672# A sed program that does not truncate output.
9673SED=$lt_SED
9674
9675# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9676Xsed="$SED -e 1s/^X//"
9677
9678# The HP-UX ksh and POSIX shell print the target directory to stdout
9679# if CDPATH is set.
9680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9681
9682# The names of the tagged configurations supported by this script.
9683available_tags=
9684
9685# ### BEGIN LIBTOOL CONFIG
9686
9687# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9688
9689# Shell to use when invoking shell scripts.
9690SHELL=$lt_SHELL
9691
9692# Whether or not to build shared libraries.
9693build_libtool_libs=$enable_shared
9694
9695# Whether or not to build static libraries.
9696build_old_libs=$enable_static
9697
9698# Whether or not to add -lc for building shared libraries.
9699build_libtool_need_lc=$archive_cmds_need_lc
9700
9701# Whether or not to disallow shared libs when runtime libs are static
9702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9703
9704# Whether or not to optimize for fast installation.
9705fast_install=$enable_fast_install
9706
9707# The host system.
9708host_alias=$host_alias
9709host=$host
9710host_os=$host_os
9711
9712# The build system.
9713build_alias=$build_alias
9714build=$build
9715build_os=$build_os
9716
9717# An echo program that does not interpret backslashes.
9718echo=$lt_echo
9719
9720# The archiver.
9721AR=$lt_AR
9722AR_FLAGS=$lt_AR_FLAGS
9723
9724# A C compiler.
9725LTCC=$lt_LTCC
9726
9727# LTCC compiler flags.
9728LTCFLAGS=$lt_LTCFLAGS
9729
9730# A language-specific compiler.
9731CC=$lt_compiler
9732
9733# Is the compiler the GNU C compiler?
9734with_gcc=$GCC
9735
9736# An ERE matcher.
9737EGREP=$lt_EGREP
9738
9739# The linker used to build libraries.
9740LD=$lt_LD
9741
9742# Whether we need hard or soft links.
9743LN_S=$lt_LN_S
9744
9745# A BSD-compatible nm program.
9746NM=$lt_NM
9747
9748# A symbol stripping program
9749STRIP=$lt_STRIP
9750
9751# Used to examine libraries when file_magic_cmd begins "file"
9752MAGIC_CMD=$MAGIC_CMD
9753
9754# Used on cygwin: DLL creation program.
9755DLLTOOL="$DLLTOOL"
9756
9757# Used on cygwin: object dumper.
9758OBJDUMP="$OBJDUMP"
9759
9760# Used on cygwin: assembler.
9761AS="$AS"
9762
9763# The name of the directory that contains temporary libtool files.
9764objdir=$objdir
9765
9766# How to create reloadable object files.
9767reload_flag=$lt_reload_flag
9768reload_cmds=$lt_reload_cmds
9769
9770# How to pass a linker flag through the compiler.
9771wl=$lt_lt_prog_compiler_wl
9772
9773# Object file suffix (normally "o").
9774objext="$ac_objext"
9775
9776# Old archive suffix (normally "a").
9777libext="$libext"
9778
9779# Shared library suffix (normally ".so").
9780shrext_cmds='$shrext_cmds'
9781
9782# Executable file suffix (normally "").
9783exeext="$exeext"
9784
9785# Additional compiler flags for building library objects.
9786pic_flag=$lt_lt_prog_compiler_pic
9787pic_mode=$pic_mode
9788
9789# What is the maximum length of a command?
9790max_cmd_len=$lt_cv_sys_max_cmd_len
9791
9792# Does compiler simultaneously support -c and -o options?
9793compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9794
9795# Must we lock files when doing compilation?
9796need_locks=$lt_need_locks
9797
9798# Do we need the lib prefix for modules?
9799need_lib_prefix=$need_lib_prefix
9800
9801# Do we need a version for libraries?
9802need_version=$need_version
9803
9804# Whether dlopen is supported.
9805dlopen_support=$enable_dlopen
9806
9807# Whether dlopen of programs is supported.
9808dlopen_self=$enable_dlopen_self
9809
9810# Whether dlopen of statically linked programs is supported.
9811dlopen_self_static=$enable_dlopen_self_static
9812
9813# Compiler flag to prevent dynamic linking.
9814link_static_flag=$lt_lt_prog_compiler_static
9815
9816# Compiler flag to turn off builtin functions.
9817no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9818
9819# Compiler flag to allow reflexive dlopens.
9820export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9821
9822# Compiler flag to generate shared objects directly from archives.
9823whole_archive_flag_spec=$lt_whole_archive_flag_spec
9824
9825# Compiler flag to generate thread-safe objects.
9826thread_safe_flag_spec=$lt_thread_safe_flag_spec
9827
9828# Library versioning type.
9829version_type=$version_type
9830
9831# Format of library name prefix.
9832libname_spec=$lt_libname_spec
9833
9834# List of archive names.  First name is the real one, the rest are links.
9835# The last name is the one that the linker finds with -lNAME.
9836library_names_spec=$lt_library_names_spec
9837
9838# The coded name of the library, if different from the real name.
9839soname_spec=$lt_soname_spec
9840
9841# Commands used to build and install an old-style archive.
9842RANLIB=$lt_RANLIB
9843old_archive_cmds=$lt_old_archive_cmds
9844old_postinstall_cmds=$lt_old_postinstall_cmds
9845old_postuninstall_cmds=$lt_old_postuninstall_cmds
9846
9847# Create an old-style archive from a shared archive.
9848old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9849
9850# Create a temporary old-style archive to link instead of a shared archive.
9851old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9852
9853# Commands used to build and install a shared archive.
9854archive_cmds=$lt_archive_cmds
9855archive_expsym_cmds=$lt_archive_expsym_cmds
9856postinstall_cmds=$lt_postinstall_cmds
9857postuninstall_cmds=$lt_postuninstall_cmds
9858
9859# Commands used to build a loadable module (assumed same as above if empty)
9860module_cmds=$lt_module_cmds
9861module_expsym_cmds=$lt_module_expsym_cmds
9862
9863# Commands to strip libraries.
9864old_striplib=$lt_old_striplib
9865striplib=$lt_striplib
9866
9867# Dependencies to place before the objects being linked to create a
9868# shared library.
9869predep_objects=$lt_predep_objects
9870
9871# Dependencies to place after the objects being linked to create a
9872# shared library.
9873postdep_objects=$lt_postdep_objects
9874
9875# Dependencies to place before the objects being linked to create a
9876# shared library.
9877predeps=$lt_predeps
9878
9879# Dependencies to place after the objects being linked to create a
9880# shared library.
9881postdeps=$lt_postdeps
9882
9883# The library search path used internally by the compiler when linking
9884# a shared library.
9885compiler_lib_search_path=$lt_compiler_lib_search_path
9886
9887# Method to check whether dependent libraries are shared objects.
9888deplibs_check_method=$lt_deplibs_check_method
9889
9890# Command to use when deplibs_check_method == file_magic.
9891file_magic_cmd=$lt_file_magic_cmd
9892
9893# Flag that allows shared libraries with undefined symbols to be built.
9894allow_undefined_flag=$lt_allow_undefined_flag
9895
9896# Flag that forces no undefined symbols.
9897no_undefined_flag=$lt_no_undefined_flag
9898
9899# Commands used to finish a libtool library installation in a directory.
9900finish_cmds=$lt_finish_cmds
9901
9902# Same as above, but a single script fragment to be evaled but not shown.
9903finish_eval=$lt_finish_eval
9904
9905# Take the output of nm and produce a listing of raw symbols and C names.
9906global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9907
9908# Transform the output of nm in a proper C declaration
9909global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9910
9911# Transform the output of nm in a C name address pair
9912global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9913
9914# This is the shared library runtime path variable.
9915runpath_var=$runpath_var
9916
9917# This is the shared library path variable.
9918shlibpath_var=$shlibpath_var
9919
9920# Is shlibpath searched before the hard-coded library search path?
9921shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9922
9923# How to hardcode a shared library path into an executable.
9924hardcode_action=$hardcode_action
9925
9926# Whether we should hardcode library paths into libraries.
9927hardcode_into_libs=$hardcode_into_libs
9928
9929# Flag to hardcode \$libdir into a binary during linking.
9930# This must work even if \$libdir does not exist.
9931hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9932
9933# If ld is used when linking, flag to hardcode \$libdir into
9934# a binary during linking. This must work even if \$libdir does
9935# not exist.
9936hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9937
9938# Whether we need a single -rpath flag with a separated argument.
9939hardcode_libdir_separator=$lt_hardcode_libdir_separator
9940
9941# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9942# resulting binary.
9943hardcode_direct=$hardcode_direct
9944
9945# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9946# resulting binary.
9947hardcode_minus_L=$hardcode_minus_L
9948
9949# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9950# the resulting binary.
9951hardcode_shlibpath_var=$hardcode_shlibpath_var
9952
9953# Set to yes if building a shared library automatically hardcodes DIR into the library
9954# and all subsequent libraries and executables linked against it.
9955hardcode_automatic=$hardcode_automatic
9956
9957# Variables whose values should be saved in libtool wrapper scripts and
9958# restored at relink time.
9959variables_saved_for_relink="$variables_saved_for_relink"
9960
9961# Whether libtool must link a program against all its dependency libraries.
9962link_all_deplibs=$link_all_deplibs
9963
9964# Compile-time system search path for libraries
9965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9966
9967# Run-time system search path for libraries
9968sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9969
9970# Fix the shell variable \$srcfile for the compiler.
9971fix_srcfile_path="$fix_srcfile_path"
9972
9973# Set to yes if exported symbols are required.
9974always_export_symbols=$always_export_symbols
9975
9976# The commands to list exported symbols.
9977export_symbols_cmds=$lt_export_symbols_cmds
9978
9979# The commands to extract the exported symbol list from a shared archive.
9980extract_expsyms_cmds=$lt_extract_expsyms_cmds
9981
9982# Symbols that should not be listed in the preloaded symbols.
9983exclude_expsyms=$lt_exclude_expsyms
9984
9985# Symbols that must always be exported.
9986include_expsyms=$lt_include_expsyms
9987
9988# ### END LIBTOOL CONFIG
9989
9990__EOF__
9991
9992
9993  case $host_os in
9994  aix3*)
9995    cat <<\EOF >> "$cfgfile"
9996
9997# AIX sometimes has problems with the GCC collect2 program.  For some
9998# reason, if we set the COLLECT_NAMES environment variable, the problems
9999# vanish in a puff of smoke.
10000if test "X${COLLECT_NAMES+set}" != Xset; then
10001  COLLECT_NAMES=
10002  export COLLECT_NAMES
10003fi
10004EOF
10005    ;;
10006  esac
10007
10008  # We use sed instead of cat because bash on DJGPP gets confused if
10009  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10010  # text mode, it properly converts lines to CR/LF.  This bash problem
10011  # is reportedly fixed, but why not run on old versions too?
10012  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10013
10014  mv -f "$cfgfile" "$ofile" || \
10015    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10016  chmod +x "$ofile"
10017
10018else
10019  # If there is no Makefile yet, we rely on a make rule to execute
10020  # `config.status --recheck' to rerun these tests and create the
10021  # libtool script then.
10022  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10023  if test -f "$ltmain_in"; then
10024    test -f Makefile && make "$ltmain"
10025  fi
10026fi
10027
10028
10029ac_ext=c
10030ac_cpp='$CPP $CPPFLAGS'
10031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10033ac_compiler_gnu=$ac_cv_c_compiler_gnu
10034
10035CC="$lt_save_CC"
10036
10037
10038# Check whether --with-tags or --without-tags was given.
10039if test "${with_tags+set}" = set; then
10040  withval="$with_tags"
10041  tagnames="$withval"
10042fi;
10043
10044if test -f "$ltmain" && test -n "$tagnames"; then
10045  if test ! -f "${ofile}"; then
10046    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10047echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10048  fi
10049
10050  if test -z "$LTCC"; then
10051    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10052    if test -z "$LTCC"; then
10053      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10054echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10055    else
10056      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10057echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10058    fi
10059  fi
10060  if test -z "$LTCFLAGS"; then
10061    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10062  fi
10063
10064  # Extract list of available tagged configurations in $ofile.
10065  # Note that this assumes the entire list is on one line.
10066  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10067
10068  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10069  for tagname in $tagnames; do
10070    IFS="$lt_save_ifs"
10071    # Check whether tagname contains only valid characters
10072    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10073    "") ;;
10074    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10075echo "$as_me: error: invalid tag name: $tagname" >&2;}
10076   { (exit 1); exit 1; }; }
10077	;;
10078    esac
10079
10080    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10081    then
10082      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10083echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10084   { (exit 1); exit 1; }; }
10085    fi
10086
10087    # Update the list of available tags.
10088    if test -n "$tagname"; then
10089      echo appending configuration tag \"$tagname\" to $ofile
10090
10091      case $tagname in
10092      CXX)
10093	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10094	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10095	    (test "X$CXX" != "Xg++"))) ; then
10096	  ac_ext=cc
10097ac_cpp='$CXXCPP $CPPFLAGS'
10098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10101
10102
10103
10104
10105archive_cmds_need_lc_CXX=no
10106allow_undefined_flag_CXX=
10107always_export_symbols_CXX=no
10108archive_expsym_cmds_CXX=
10109export_dynamic_flag_spec_CXX=
10110hardcode_direct_CXX=no
10111hardcode_libdir_flag_spec_CXX=
10112hardcode_libdir_flag_spec_ld_CXX=
10113hardcode_libdir_separator_CXX=
10114hardcode_minus_L_CXX=no
10115hardcode_shlibpath_var_CXX=unsupported
10116hardcode_automatic_CXX=no
10117module_cmds_CXX=
10118module_expsym_cmds_CXX=
10119link_all_deplibs_CXX=unknown
10120old_archive_cmds_CXX=$old_archive_cmds
10121no_undefined_flag_CXX=
10122whole_archive_flag_spec_CXX=
10123enable_shared_with_static_runtimes_CXX=no
10124
10125# Dependencies to place before and after the object being linked:
10126predep_objects_CXX=
10127postdep_objects_CXX=
10128predeps_CXX=
10129postdeps_CXX=
10130compiler_lib_search_path_CXX=
10131
10132# Source file extension for C++ test sources.
10133ac_ext=cpp
10134
10135# Object file extension for compiled C++ test sources.
10136objext=o
10137objext_CXX=$objext
10138
10139# Code to be used in simple compile tests
10140lt_simple_compile_test_code="int some_variable = 0;\n"
10141
10142# Code to be used in simple link tests
10143lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10144
10145# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10146
10147# If no C compiler was specified, use CC.
10148LTCC=${LTCC-"$CC"}
10149
10150# If no C compiler flags were specified, use CFLAGS.
10151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10152
10153# Allow CC to be a program name with arguments.
10154compiler=$CC
10155
10156
10157# save warnings/boilerplate of simple test code
10158ac_outfile=conftest.$ac_objext
10159printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10161_lt_compiler_boilerplate=`cat conftest.err`
10162$rm conftest*
10163
10164ac_outfile=conftest.$ac_objext
10165printf "$lt_simple_link_test_code" >conftest.$ac_ext
10166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10167_lt_linker_boilerplate=`cat conftest.err`
10168$rm conftest*
10169
10170
10171# Allow CC to be a program name with arguments.
10172lt_save_CC=$CC
10173lt_save_LD=$LD
10174lt_save_GCC=$GCC
10175GCC=$GXX
10176lt_save_with_gnu_ld=$with_gnu_ld
10177lt_save_path_LD=$lt_cv_path_LD
10178if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10179  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10180else
10181  $as_unset lt_cv_prog_gnu_ld
10182fi
10183if test -n "${lt_cv_path_LDCXX+set}"; then
10184  lt_cv_path_LD=$lt_cv_path_LDCXX
10185else
10186  $as_unset lt_cv_path_LD
10187fi
10188test -z "${LDCXX+set}" || LD=$LDCXX
10189CC=${CXX-"c++"}
10190compiler=$CC
10191compiler_CXX=$CC
10192for cc_temp in $compiler""; do
10193  case $cc_temp in
10194    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10195    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10196    \-*) ;;
10197    *) break;;
10198  esac
10199done
10200cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10201
10202
10203# We don't want -fno-exception wen compiling C++ code, so set the
10204# no_builtin_flag separately
10205if test "$GXX" = yes; then
10206  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10207else
10208  lt_prog_compiler_no_builtin_flag_CXX=
10209fi
10210
10211if test "$GXX" = yes; then
10212  # Set up default GNU C++ configuration
10213
10214
10215# Check whether --with-gnu-ld or --without-gnu-ld was given.
10216if test "${with_gnu_ld+set}" = set; then
10217  withval="$with_gnu_ld"
10218  test "$withval" = no || with_gnu_ld=yes
10219else
10220  with_gnu_ld=no
10221fi;
10222ac_prog=ld
10223if test "$GCC" = yes; then
10224  # Check if gcc -print-prog-name=ld gives a path.
10225  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10226echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10227  case $host in
10228  *-*-mingw*)
10229    # gcc leaves a trailing carriage return which upsets mingw
10230    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10231  *)
10232    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10233  esac
10234  case $ac_prog in
10235    # Accept absolute paths.
10236    [\\/]* | ?:[\\/]*)
10237      re_direlt='/[^/][^/]*/\.\./'
10238      # Canonicalize the pathname of ld
10239      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10240      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10241	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10242      done
10243      test -z "$LD" && LD="$ac_prog"
10244      ;;
10245  "")
10246    # If it fails, then pretend we aren't using GCC.
10247    ac_prog=ld
10248    ;;
10249  *)
10250    # If it is relative, then search for the first ld in PATH.
10251    with_gnu_ld=unknown
10252    ;;
10253  esac
10254elif test "$with_gnu_ld" = yes; then
10255  echo "$as_me:$LINENO: checking for GNU ld" >&5
10256echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10257else
10258  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10259echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10260fi
10261if test "${lt_cv_path_LD+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  if test -z "$LD"; then
10265  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10266  for ac_dir in $PATH; do
10267    IFS="$lt_save_ifs"
10268    test -z "$ac_dir" && ac_dir=.
10269    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10270      lt_cv_path_LD="$ac_dir/$ac_prog"
10271      # Check to see if the program is GNU ld.  I'd rather use --version,
10272      # but apparently some variants of GNU ld only accept -v.
10273      # Break only if it was the GNU/non-GNU ld that we prefer.
10274      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10275      *GNU* | *'with BFD'*)
10276	test "$with_gnu_ld" != no && break
10277	;;
10278      *)
10279	test "$with_gnu_ld" != yes && break
10280	;;
10281      esac
10282    fi
10283  done
10284  IFS="$lt_save_ifs"
10285else
10286  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10287fi
10288fi
10289
10290LD="$lt_cv_path_LD"
10291if test -n "$LD"; then
10292  echo "$as_me:$LINENO: result: $LD" >&5
10293echo "${ECHO_T}$LD" >&6
10294else
10295  echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10299echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10300   { (exit 1); exit 1; }; }
10301echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10302echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10303if test "${lt_cv_prog_gnu_ld+set}" = set; then
10304  echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10307case `$LD -v 2>&1 </dev/null` in
10308*GNU* | *'with BFD'*)
10309  lt_cv_prog_gnu_ld=yes
10310  ;;
10311*)
10312  lt_cv_prog_gnu_ld=no
10313  ;;
10314esac
10315fi
10316echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10317echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10318with_gnu_ld=$lt_cv_prog_gnu_ld
10319
10320
10321
10322  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10323  # archiving commands below assume that GNU ld is being used.
10324  if test "$with_gnu_ld" = yes; then
10325    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326    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'
10327
10328    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10329    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10330
10331    # If archive_cmds runs LD, not CC, wlarc should be empty
10332    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10333    #     investigate it a little bit more. (MM)
10334    wlarc='${wl}'
10335
10336    # ancient GNU ld didn't support --whole-archive et. al.
10337    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10338	grep 'no-whole-archive' > /dev/null; then
10339      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10340    else
10341      whole_archive_flag_spec_CXX=
10342    fi
10343  else
10344    with_gnu_ld=no
10345    wlarc=
10346
10347    # A generic and very simple default shared library creation
10348    # command for GNU C++ for the case where it uses the native
10349    # linker, instead of GNU ld.  If possible, this setting should
10350    # overridden to take advantage of the native linker features on
10351    # the platform it is being used on.
10352    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10353  fi
10354
10355  # Commands to make compiler produce verbose output that lists
10356  # what "hidden" libraries, object files and flags are used when
10357  # linking a shared library.
10358  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10359
10360else
10361  GXX=no
10362  with_gnu_ld=no
10363  wlarc=
10364fi
10365
10366# PORTME: fill in a description of your system's C++ link characteristics
10367echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10368echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10369ld_shlibs_CXX=yes
10370case $host_os in
10371  aix3*)
10372    # FIXME: insert proper C++ library support
10373    ld_shlibs_CXX=no
10374    ;;
10375  aix4* | aix5*)
10376    if test "$host_cpu" = ia64; then
10377      # On IA64, the linker does run time linking by default, so we don't
10378      # have to do anything special.
10379      aix_use_runtimelinking=no
10380      exp_sym_flag='-Bexport'
10381      no_entry_flag=""
10382    else
10383      aix_use_runtimelinking=no
10384
10385      # Test if we are trying to use run time linking or normal
10386      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10387      # need to do runtime linking.
10388      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10389	for ld_flag in $LDFLAGS; do
10390	  case $ld_flag in
10391	  *-brtl*)
10392	    aix_use_runtimelinking=yes
10393	    break
10394	    ;;
10395	  esac
10396	done
10397	;;
10398      esac
10399
10400      exp_sym_flag='-bexport'
10401      no_entry_flag='-bnoentry'
10402    fi
10403
10404    # When large executables or shared objects are built, AIX ld can
10405    # have problems creating the table of contents.  If linking a library
10406    # or program results in "error TOC overflow" add -mminimal-toc to
10407    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10408    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10409
10410    archive_cmds_CXX=''
10411    hardcode_direct_CXX=yes
10412    hardcode_libdir_separator_CXX=':'
10413    link_all_deplibs_CXX=yes
10414
10415    if test "$GXX" = yes; then
10416      case $host_os in aix4.[012]|aix4.[012].*)
10417      # We only want to do this on AIX 4.2 and lower, the check
10418      # below for broken collect2 doesn't work under 4.3+
10419	collect2name=`${CC} -print-prog-name=collect2`
10420	if test -f "$collect2name" && \
10421	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10422	then
10423	  # We have reworked collect2
10424	  hardcode_direct_CXX=yes
10425	else
10426	  # We have old collect2
10427	  hardcode_direct_CXX=unsupported
10428	  # It fails to find uninstalled libraries when the uninstalled
10429	  # path is not listed in the libpath.  Setting hardcode_minus_L
10430	  # to unsupported forces relinking
10431	  hardcode_minus_L_CXX=yes
10432	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10433	  hardcode_libdir_separator_CXX=
10434	fi
10435	;;
10436      esac
10437      shared_flag='-shared'
10438      if test "$aix_use_runtimelinking" = yes; then
10439	shared_flag="$shared_flag "'${wl}-G'
10440      fi
10441    else
10442      # not using gcc
10443      if test "$host_cpu" = ia64; then
10444	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10445	# chokes on -Wl,-G. The following line is correct:
10446	shared_flag='-G'
10447      else
10448	if test "$aix_use_runtimelinking" = yes; then
10449	  shared_flag='${wl}-G'
10450	else
10451	  shared_flag='${wl}-bM:SRE'
10452	fi
10453      fi
10454    fi
10455
10456    # It seems that -bexpall does not export symbols beginning with
10457    # underscore (_), so it is better to generate a list of symbols to export.
10458    always_export_symbols_CXX=yes
10459    if test "$aix_use_runtimelinking" = yes; then
10460      # Warning - without using the other runtime loading flags (-brtl),
10461      # -berok will link without error, but may produce a broken library.
10462      allow_undefined_flag_CXX='-berok'
10463      # Determine the default libpath from the value encoded in an empty executable.
10464      cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h.  */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h.  */
10470
10471int
10472main ()
10473{
10474
10475  ;
10476  return 0;
10477}
10478_ACEOF
10479rm -f conftest.$ac_objext conftest$ac_exeext
10480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481  (eval $ac_link) 2>conftest.er1
10482  ac_status=$?
10483  grep -v '^ *+' conftest.er1 >conftest.err
10484  rm -f conftest.er1
10485  cat conftest.err >&5
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); } &&
10488	 { ac_try='test -z "$ac_cxx_werror_flag"
10489			 || test ! -s conftest.err'
10490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491  (eval $ac_try) 2>&5
10492  ac_status=$?
10493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494  (exit $ac_status); }; } &&
10495	 { ac_try='test -s conftest$ac_exeext'
10496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497  (eval $ac_try) 2>&5
10498  ac_status=$?
10499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500  (exit $ac_status); }; }; then
10501
10502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10503}'`
10504# Check for a 64-bit object if we didn't find anything.
10505if 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; }
10506}'`; fi
10507else
10508  echo "$as_me: failed program was:" >&5
10509sed 's/^/| /' conftest.$ac_ext >&5
10510
10511fi
10512rm -f conftest.err conftest.$ac_objext \
10513      conftest$ac_exeext conftest.$ac_ext
10514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10515
10516      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10517
10518      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"
10519     else
10520      if test "$host_cpu" = ia64; then
10521	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10522	allow_undefined_flag_CXX="-z nodefs"
10523	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"
10524      else
10525	# Determine the default libpath from the value encoded in an empty executable.
10526	cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h.  */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h.  */
10532
10533int
10534main ()
10535{
10536
10537  ;
10538  return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext conftest$ac_exeext
10542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543  (eval $ac_link) 2>conftest.er1
10544  ac_status=$?
10545  grep -v '^ *+' conftest.er1 >conftest.err
10546  rm -f conftest.er1
10547  cat conftest.err >&5
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } &&
10550	 { ac_try='test -z "$ac_cxx_werror_flag"
10551			 || test ! -s conftest.err'
10552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553  (eval $ac_try) 2>&5
10554  ac_status=$?
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); }; } &&
10557	 { ac_try='test -s conftest$ac_exeext'
10558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559  (eval $ac_try) 2>&5
10560  ac_status=$?
10561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); }; }; then
10563
10564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10565}'`
10566# Check for a 64-bit object if we didn't find anything.
10567if 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; }
10568}'`; fi
10569else
10570  echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573fi
10574rm -f conftest.err conftest.$ac_objext \
10575      conftest$ac_exeext conftest.$ac_ext
10576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10577
10578	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10579	# Warning - without using the other run time loading flags,
10580	# -berok will link without error, but may produce a broken library.
10581	no_undefined_flag_CXX=' ${wl}-bernotok'
10582	allow_undefined_flag_CXX=' ${wl}-berok'
10583	# Exported symbols can be pulled into shared objects from archives
10584	whole_archive_flag_spec_CXX='$convenience'
10585	archive_cmds_need_lc_CXX=yes
10586	# This is similar to how AIX traditionally builds its shared libraries.
10587	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'
10588      fi
10589    fi
10590    ;;
10591
10592  beos*)
10593    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10594      allow_undefined_flag_CXX=unsupported
10595      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10596      # support --undefined.  This deserves some investigation.  FIXME
10597      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10598    else
10599      ld_shlibs_CXX=no
10600    fi
10601    ;;
10602
10603  chorus*)
10604    case $cc_basename in
10605      *)
10606	# FIXME: insert proper C++ library support
10607	ld_shlibs_CXX=no
10608	;;
10609    esac
10610    ;;
10611
10612  cygwin* | mingw* | pw32*)
10613    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10614    # as there is no search path for DLLs.
10615    hardcode_libdir_flag_spec_CXX='-L$libdir'
10616    allow_undefined_flag_CXX=unsupported
10617    always_export_symbols_CXX=no
10618    enable_shared_with_static_runtimes_CXX=yes
10619
10620    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10621      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'
10622      # If the export-symbols file already is a .def file (1st line
10623      # is EXPORTS), use it as is; otherwise, prepend...
10624      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10625	cp $export_symbols $output_objdir/$soname.def;
10626      else
10627	echo EXPORTS > $output_objdir/$soname.def;
10628	cat $export_symbols >> $output_objdir/$soname.def;
10629      fi~
10630      $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'
10631    else
10632      ld_shlibs_CXX=no
10633    fi
10634  ;;
10635      darwin* | rhapsody*)
10636        case $host_os in
10637        rhapsody* | darwin1.[012])
10638         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10639         ;;
10640       *) # Darwin 1.3 on
10641         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10642           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10643         else
10644           case ${MACOSX_DEPLOYMENT_TARGET} in
10645             10.[012])
10646               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10647               ;;
10648             10.*)
10649               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10650               ;;
10651           esac
10652         fi
10653         ;;
10654        esac
10655      archive_cmds_need_lc_CXX=no
10656      hardcode_direct_CXX=no
10657      hardcode_automatic_CXX=yes
10658      hardcode_shlibpath_var_CXX=unsupported
10659      whole_archive_flag_spec_CXX=''
10660      link_all_deplibs_CXX=yes
10661
10662    if test "$GXX" = yes ; then
10663      lt_int_apple_cc_single_mod=no
10664      output_verbose_link_cmd='echo'
10665      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10666       lt_int_apple_cc_single_mod=yes
10667      fi
10668      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10669       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10670      else
10671          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'
10672        fi
10673        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10674        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10675          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10676            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}'
10677          else
10678            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}'
10679          fi
10680            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}'
10681      else
10682      case $cc_basename in
10683        xlc*)
10684         output_verbose_link_cmd='echo'
10685          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'
10686          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10687          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10688          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}'
10689          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}'
10690          ;;
10691       *)
10692         ld_shlibs_CXX=no
10693          ;;
10694      esac
10695      fi
10696        ;;
10697
10698  dgux*)
10699    case $cc_basename in
10700      ec++*)
10701	# FIXME: insert proper C++ library support
10702	ld_shlibs_CXX=no
10703	;;
10704      ghcx*)
10705	# Green Hills C++ Compiler
10706	# FIXME: insert proper C++ library support
10707	ld_shlibs_CXX=no
10708	;;
10709      *)
10710	# FIXME: insert proper C++ library support
10711	ld_shlibs_CXX=no
10712	;;
10713    esac
10714    ;;
10715  freebsd[12]*)
10716    # C++ shared libraries reported to be fairly broken before switch to ELF
10717    ld_shlibs_CXX=no
10718    ;;
10719  freebsd-elf*)
10720    archive_cmds_need_lc_CXX=no
10721    ;;
10722  freebsd* | kfreebsd*-gnu | dragonfly*)
10723    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10724    # conventions
10725    ld_shlibs_CXX=yes
10726    ;;
10727  gnu*)
10728    ;;
10729  hpux9*)
10730    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10731    hardcode_libdir_separator_CXX=:
10732    export_dynamic_flag_spec_CXX='${wl}-E'
10733    hardcode_direct_CXX=yes
10734    hardcode_minus_L_CXX=yes # Not in the search PATH,
10735				# but as the default
10736				# location of the library.
10737
10738    case $cc_basename in
10739    CC*)
10740      # FIXME: insert proper C++ library support
10741      ld_shlibs_CXX=no
10742      ;;
10743    aCC*)
10744      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'
10745      # Commands to make compiler produce verbose output that lists
10746      # what "hidden" libraries, object files and flags are used when
10747      # linking a shared library.
10748      #
10749      # There doesn't appear to be a way to prevent this compiler from
10750      # explicitly linking system object files so we need to strip them
10751      # from the output so that they don't get included in the library
10752      # dependencies.
10753      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'
10754      ;;
10755    *)
10756      if test "$GXX" = yes; then
10757        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'
10758      else
10759        # FIXME: insert proper C++ library support
10760        ld_shlibs_CXX=no
10761      fi
10762      ;;
10763    esac
10764    ;;
10765  hpux10*|hpux11*)
10766    if test $with_gnu_ld = no; then
10767      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10768      hardcode_libdir_separator_CXX=:
10769
10770      case $host_cpu in
10771      hppa*64*|ia64*)
10772	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10773        ;;
10774      *)
10775	export_dynamic_flag_spec_CXX='${wl}-E'
10776        ;;
10777      esac
10778    fi
10779    case $host_cpu in
10780    hppa*64*|ia64*)
10781      hardcode_direct_CXX=no
10782      hardcode_shlibpath_var_CXX=no
10783      ;;
10784    *)
10785      hardcode_direct_CXX=yes
10786      hardcode_minus_L_CXX=yes # Not in the search PATH,
10787					      # but as the default
10788					      # location of the library.
10789      ;;
10790    esac
10791
10792    case $cc_basename in
10793      CC*)
10794	# FIXME: insert proper C++ library support
10795	ld_shlibs_CXX=no
10796	;;
10797      aCC*)
10798	case $host_cpu in
10799	hppa*64*)
10800	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10801	  ;;
10802	ia64*)
10803	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10804	  ;;
10805	*)
10806	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10807	  ;;
10808	esac
10809	# Commands to make compiler produce verbose output that lists
10810	# what "hidden" libraries, object files and flags are used when
10811	# linking a shared library.
10812	#
10813	# There doesn't appear to be a way to prevent this compiler from
10814	# explicitly linking system object files so we need to strip them
10815	# from the output so that they don't get included in the library
10816	# dependencies.
10817	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'
10818	;;
10819      *)
10820	if test "$GXX" = yes; then
10821	  if test $with_gnu_ld = no; then
10822	    case $host_cpu in
10823	    hppa*64*)
10824	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10825	      ;;
10826	    ia64*)
10827	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10828	      ;;
10829	    *)
10830	      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'
10831	      ;;
10832	    esac
10833	  fi
10834	else
10835	  # FIXME: insert proper C++ library support
10836	  ld_shlibs_CXX=no
10837	fi
10838	;;
10839    esac
10840    ;;
10841  interix3*)
10842    hardcode_direct_CXX=no
10843    hardcode_shlibpath_var_CXX=no
10844    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10845    export_dynamic_flag_spec_CXX='${wl}-E'
10846    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10847    # Instead, shared libraries are loaded at an image base (0x10000000 by
10848    # default) and relocated if they conflict, which is a slow very memory
10849    # consuming and fragmenting process.  To avoid this, we pick a random,
10850    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10851    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10852    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'
10853    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'
10854    ;;
10855  irix5* | irix6*)
10856    case $cc_basename in
10857      CC*)
10858	# SGI C++
10859	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'
10860
10861	# Archives containing C++ object files must be created using
10862	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10863	# necessary to make sure instantiated templates are included
10864	# in the archive.
10865	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10866	;;
10867      *)
10868	if test "$GXX" = yes; then
10869	  if test "$with_gnu_ld" = no; then
10870	    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'
10871	  else
10872	    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'
10873	  fi
10874	fi
10875	link_all_deplibs_CXX=yes
10876	;;
10877    esac
10878    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10879    hardcode_libdir_separator_CXX=:
10880    ;;
10881  linux*)
10882    case $cc_basename in
10883      KCC*)
10884	# Kuck and Associates, Inc. (KAI) C++ Compiler
10885
10886	# KCC will only create a shared library if the output file
10887	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10888	# to its proper name (with version) after linking.
10889	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'
10890	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'
10891	# Commands to make compiler produce verbose output that lists
10892	# what "hidden" libraries, object files and flags are used when
10893	# linking a shared library.
10894	#
10895	# There doesn't appear to be a way to prevent this compiler from
10896	# explicitly linking system object files so we need to strip them
10897	# from the output so that they don't get included in the library
10898	# dependencies.
10899	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'
10900
10901	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10902	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10903
10904	# Archives containing C++ object files must be created using
10905	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10906	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10907	;;
10908      icpc*)
10909	# Intel C++
10910	with_gnu_ld=yes
10911	# version 8.0 and above of icpc choke on multiply defined symbols
10912	# if we add $predep_objects and $postdep_objects, however 7.1 and
10913	# earlier do not add the objects themselves.
10914	case `$CC -V 2>&1` in
10915	*"Version 7."*)
10916  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10917  	  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'
10918	  ;;
10919	*)  # Version 8.0 or newer
10920	  tmp_idyn=
10921	  case $host_cpu in
10922	    ia64*) tmp_idyn=' -i_dynamic';;
10923	  esac
10924  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10925	  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'
10926	  ;;
10927	esac
10928	archive_cmds_need_lc_CXX=no
10929	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10930	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10931	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10932	;;
10933      pgCC*)
10934        # Portland Group C++ compiler
10935	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10936  	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'
10937
10938	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10939	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10940	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'
10941        ;;
10942      cxx*)
10943	# Compaq C++
10944	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10945	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'
10946
10947	runpath_var=LD_RUN_PATH
10948	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10949	hardcode_libdir_separator_CXX=:
10950
10951	# Commands to make compiler produce verbose output that lists
10952	# what "hidden" libraries, object files and flags are used when
10953	# linking a shared library.
10954	#
10955	# There doesn't appear to be a way to prevent this compiler from
10956	# explicitly linking system object files so we need to strip them
10957	# from the output so that they don't get included in the library
10958	# dependencies.
10959	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'
10960	;;
10961    esac
10962    ;;
10963  lynxos*)
10964    # FIXME: insert proper C++ library support
10965    ld_shlibs_CXX=no
10966    ;;
10967  m88k*)
10968    # FIXME: insert proper C++ library support
10969    ld_shlibs_CXX=no
10970    ;;
10971  mvs*)
10972    case $cc_basename in
10973      cxx*)
10974	# FIXME: insert proper C++ library support
10975	ld_shlibs_CXX=no
10976	;;
10977      *)
10978	# FIXME: insert proper C++ library support
10979	ld_shlibs_CXX=no
10980	;;
10981    esac
10982    ;;
10983  netbsd*)
10984    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10985      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10986      wlarc=
10987      hardcode_libdir_flag_spec_CXX='-R$libdir'
10988      hardcode_direct_CXX=yes
10989      hardcode_shlibpath_var_CXX=no
10990    fi
10991    # Workaround some broken pre-1.5 toolchains
10992    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10993    ;;
10994  openbsd2*)
10995    # C++ shared libraries are fairly broken
10996    ld_shlibs_CXX=no
10997    ;;
10998  openbsd*)
10999    hardcode_direct_CXX=yes
11000    hardcode_shlibpath_var_CXX=no
11001    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11002    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11003    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11004      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11005      export_dynamic_flag_spec_CXX='${wl}-E'
11006      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11007    fi
11008    output_verbose_link_cmd='echo'
11009    ;;
11010  osf3*)
11011    case $cc_basename in
11012      KCC*)
11013	# Kuck and Associates, Inc. (KAI) C++ Compiler
11014
11015	# KCC will only create a shared library if the output file
11016	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11017	# to its proper name (with version) after linking.
11018	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'
11019
11020	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11021	hardcode_libdir_separator_CXX=:
11022
11023	# Archives containing C++ object files must be created using
11024	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11025	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11026
11027	;;
11028      RCC*)
11029	# Rational C++ 2.4.1
11030	# FIXME: insert proper C++ library support
11031	ld_shlibs_CXX=no
11032	;;
11033      cxx*)
11034	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11035	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'
11036
11037	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11038	hardcode_libdir_separator_CXX=:
11039
11040	# Commands to make compiler produce verbose output that lists
11041	# what "hidden" libraries, object files and flags are used when
11042	# linking a shared library.
11043	#
11044	# There doesn't appear to be a way to prevent this compiler from
11045	# explicitly linking system object files so we need to strip them
11046	# from the output so that they don't get included in the library
11047	# dependencies.
11048	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'
11049	;;
11050      *)
11051	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11052	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11053	  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'
11054
11055	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11056	  hardcode_libdir_separator_CXX=:
11057
11058	  # Commands to make compiler produce verbose output that lists
11059	  # what "hidden" libraries, object files and flags are used when
11060	  # linking a shared library.
11061	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11062
11063	else
11064	  # FIXME: insert proper C++ library support
11065	  ld_shlibs_CXX=no
11066	fi
11067	;;
11068    esac
11069    ;;
11070  osf4* | osf5*)
11071    case $cc_basename in
11072      KCC*)
11073	# Kuck and Associates, Inc. (KAI) C++ Compiler
11074
11075	# KCC will only create a shared library if the output file
11076	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11077	# to its proper name (with version) after linking.
11078	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'
11079
11080	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11081	hardcode_libdir_separator_CXX=:
11082
11083	# Archives containing C++ object files must be created using
11084	# the KAI C++ compiler.
11085	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11086	;;
11087      RCC*)
11088	# Rational C++ 2.4.1
11089	# FIXME: insert proper C++ library support
11090	ld_shlibs_CXX=no
11091	;;
11092      cxx*)
11093	allow_undefined_flag_CXX=' -expect_unresolved \*'
11094	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'
11095	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11096	  echo "-hidden">> $lib.exp~
11097	  $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~
11098	  $rm $lib.exp'
11099
11100	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11101	hardcode_libdir_separator_CXX=:
11102
11103	# Commands to make compiler produce verbose output that lists
11104	# what "hidden" libraries, object files and flags are used when
11105	# linking a shared library.
11106	#
11107	# There doesn't appear to be a way to prevent this compiler from
11108	# explicitly linking system object files so we need to strip them
11109	# from the output so that they don't get included in the library
11110	# dependencies.
11111	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'
11112	;;
11113      *)
11114	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11115	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11116	 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'
11117
11118	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11119	  hardcode_libdir_separator_CXX=:
11120
11121	  # Commands to make compiler produce verbose output that lists
11122	  # what "hidden" libraries, object files and flags are used when
11123	  # linking a shared library.
11124	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11125
11126	else
11127	  # FIXME: insert proper C++ library support
11128	  ld_shlibs_CXX=no
11129	fi
11130	;;
11131    esac
11132    ;;
11133  psos*)
11134    # FIXME: insert proper C++ library support
11135    ld_shlibs_CXX=no
11136    ;;
11137  sunos4*)
11138    case $cc_basename in
11139      CC*)
11140	# Sun C++ 4.x
11141	# FIXME: insert proper C++ library support
11142	ld_shlibs_CXX=no
11143	;;
11144      lcc*)
11145	# Lucid
11146	# FIXME: insert proper C++ library support
11147	ld_shlibs_CXX=no
11148	;;
11149      *)
11150	# FIXME: insert proper C++ library support
11151	ld_shlibs_CXX=no
11152	;;
11153    esac
11154    ;;
11155  solaris*)
11156    case $cc_basename in
11157      CC*)
11158	# Sun C++ 4.2, 5.x and Centerline C++
11159        archive_cmds_need_lc_CXX=yes
11160	no_undefined_flag_CXX=' -zdefs'
11161	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11162	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11163	$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'
11164
11165	hardcode_libdir_flag_spec_CXX='-R$libdir'
11166	hardcode_shlibpath_var_CXX=no
11167	case $host_os in
11168	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11169	  *)
11170	    # The C++ compiler is used as linker so we must use $wl
11171	    # flag to pass the commands to the underlying system
11172	    # linker. We must also pass each convience library through
11173	    # to the system linker between allextract/defaultextract.
11174	    # The C++ compiler will combine linker options so we
11175	    # cannot just pass the convience library names through
11176	    # without $wl.
11177	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11178	    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'
11179	    ;;
11180	esac
11181	link_all_deplibs_CXX=yes
11182
11183	output_verbose_link_cmd='echo'
11184
11185	# Archives containing C++ object files must be created using
11186	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11187	# necessary to make sure instantiated templates are included
11188	# in the archive.
11189	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11190	;;
11191      gcx*)
11192	# Green Hills C++ Compiler
11193	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11194
11195	# The C++ compiler must be used to create the archive.
11196	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11197	;;
11198      *)
11199	# GNU C++ compiler with Solaris linker
11200	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11201	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11202	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11203	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11204	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11205		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11206
11207	    # Commands to make compiler produce verbose output that lists
11208	    # what "hidden" libraries, object files and flags are used when
11209	    # linking a shared library.
11210	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11211	  else
11212	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11213	    # platform.
11214	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11215	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11216		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11217
11218	    # Commands to make compiler produce verbose output that lists
11219	    # what "hidden" libraries, object files and flags are used when
11220	    # linking a shared library.
11221	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11222	  fi
11223
11224	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11225	fi
11226	;;
11227    esac
11228    ;;
11229  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11230    no_undefined_flag_CXX='${wl}-z,text'
11231    archive_cmds_need_lc_CXX=no
11232    hardcode_shlibpath_var_CXX=no
11233    runpath_var='LD_RUN_PATH'
11234
11235    case $cc_basename in
11236      CC*)
11237	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11238	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11239	;;
11240      *)
11241	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11242	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11243	;;
11244    esac
11245    ;;
11246  sysv5* | sco3.2v5* | sco5v6*)
11247    # Note: We can NOT use -z defs as we might desire, because we do not
11248    # link with -lc, and that would cause any symbols used from libc to
11249    # always be unresolved, which means just about no library would
11250    # ever link correctly.  If we're not using GNU ld we use -z text
11251    # though, which does catch some bad symbols but isn't as heavy-handed
11252    # as -z defs.
11253    # For security reasons, it is highly recommended that you always
11254    # use absolute paths for naming shared libraries, and exclude the
11255    # DT_RUNPATH tag from executables and libraries.  But doing so
11256    # requires that you compile everything twice, which is a pain.
11257    # So that behaviour is only enabled if SCOABSPATH is set to a
11258    # non-empty value in the environment.  Most likely only useful for
11259    # creating official distributions of packages.
11260    # This is a hack until libtool officially supports absolute path
11261    # names for shared libraries.
11262    no_undefined_flag_CXX='${wl}-z,text'
11263    allow_undefined_flag_CXX='${wl}-z,nodefs'
11264    archive_cmds_need_lc_CXX=no
11265    hardcode_shlibpath_var_CXX=no
11266    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11267    hardcode_libdir_separator_CXX=':'
11268    link_all_deplibs_CXX=yes
11269    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11270    runpath_var='LD_RUN_PATH'
11271
11272    case $cc_basename in
11273      CC*)
11274	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276	;;
11277      *)
11278	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11280	;;
11281    esac
11282    ;;
11283  tandem*)
11284    case $cc_basename in
11285      NCC*)
11286	# NonStop-UX NCC 3.20
11287	# FIXME: insert proper C++ library support
11288	ld_shlibs_CXX=no
11289	;;
11290      *)
11291	# FIXME: insert proper C++ library support
11292	ld_shlibs_CXX=no
11293	;;
11294    esac
11295    ;;
11296  vxworks*)
11297    # FIXME: insert proper C++ library support
11298    ld_shlibs_CXX=no
11299    ;;
11300  *)
11301    # FIXME: insert proper C++ library support
11302    ld_shlibs_CXX=no
11303    ;;
11304esac
11305echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11306echo "${ECHO_T}$ld_shlibs_CXX" >&6
11307test "$ld_shlibs_CXX" = no && can_build_shared=no
11308
11309GCC_CXX="$GXX"
11310LD_CXX="$LD"
11311
11312
11313cat > conftest.$ac_ext <<EOF
11314class Foo
11315{
11316public:
11317  Foo (void) { a = 0; }
11318private:
11319  int a;
11320};
11321EOF
11322
11323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324  (eval $ac_compile) 2>&5
11325  ac_status=$?
11326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327  (exit $ac_status); }; then
11328  # Parse the compiler output and extract the necessary
11329  # objects, libraries and library flags.
11330
11331  # Sentinel used to keep track of whether or not we are before
11332  # the conftest object file.
11333  pre_test_object_deps_done=no
11334
11335  # The `*' in the case matches for architectures that use `case' in
11336  # $output_verbose_cmd can trigger glob expansion during the loop
11337  # eval without this substitution.
11338  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11339
11340  for p in `eval $output_verbose_link_cmd`; do
11341    case $p in
11342
11343    -L* | -R* | -l*)
11344       # Some compilers place space between "-{L,R}" and the path.
11345       # Remove the space.
11346       if test $p = "-L" \
11347	  || test $p = "-R"; then
11348	 prev=$p
11349	 continue
11350       else
11351	 prev=
11352       fi
11353
11354       if test "$pre_test_object_deps_done" = no; then
11355	 case $p in
11356	 -L* | -R*)
11357	   # Internal compiler library paths should come after those
11358	   # provided the user.  The postdeps already come after the
11359	   # user supplied libs so there is no need to process them.
11360	   if test -z "$compiler_lib_search_path_CXX"; then
11361	     compiler_lib_search_path_CXX="${prev}${p}"
11362	   else
11363	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11364	   fi
11365	   ;;
11366	 # The "-l" case would never come before the object being
11367	 # linked, so don't bother handling this case.
11368	 esac
11369       else
11370	 if test -z "$postdeps_CXX"; then
11371	   postdeps_CXX="${prev}${p}"
11372	 else
11373	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11374	 fi
11375       fi
11376       ;;
11377
11378    *.$objext)
11379       # This assumes that the test object file only shows up
11380       # once in the compiler output.
11381       if test "$p" = "conftest.$objext"; then
11382	 pre_test_object_deps_done=yes
11383	 continue
11384       fi
11385
11386       if test "$pre_test_object_deps_done" = no; then
11387	 if test -z "$predep_objects_CXX"; then
11388	   predep_objects_CXX="$p"
11389	 else
11390	   predep_objects_CXX="$predep_objects_CXX $p"
11391	 fi
11392       else
11393	 if test -z "$postdep_objects_CXX"; then
11394	   postdep_objects_CXX="$p"
11395	 else
11396	   postdep_objects_CXX="$postdep_objects_CXX $p"
11397	 fi
11398       fi
11399       ;;
11400
11401    *) ;; # Ignore the rest.
11402
11403    esac
11404  done
11405
11406  # Clean up.
11407  rm -f a.out a.exe
11408else
11409  echo "libtool.m4: error: problem compiling CXX test program"
11410fi
11411
11412$rm -f confest.$objext
11413
11414# PORTME: override above test on systems where it is broken
11415case $host_os in
11416interix3*)
11417  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11418  # hack all around it, let's just trust "g++" to DTRT.
11419  predep_objects_CXX=
11420  postdep_objects_CXX=
11421  postdeps_CXX=
11422  ;;
11423
11424solaris*)
11425  case $cc_basename in
11426  CC*)
11427    # Adding this requires a known-good setup of shared libraries for
11428    # Sun compiler versions before 5.6, else PIC objects from an old
11429    # archive will be linked into the output, leading to subtle bugs.
11430    postdeps_CXX='-lCstd -lCrun'
11431    ;;
11432  esac
11433  ;;
11434esac
11435
11436
11437case " $postdeps_CXX " in
11438*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11439esac
11440
11441lt_prog_compiler_wl_CXX=
11442lt_prog_compiler_pic_CXX=
11443lt_prog_compiler_static_CXX=
11444
11445echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11446echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11447
11448  # C++ specific cases for pic, static, wl, etc.
11449  if test "$GXX" = yes; then
11450    lt_prog_compiler_wl_CXX='-Wl,'
11451    lt_prog_compiler_static_CXX='-static'
11452
11453    case $host_os in
11454    aix*)
11455      # All AIX code is PIC.
11456      if test "$host_cpu" = ia64; then
11457	# AIX 5 now supports IA64 processor
11458	lt_prog_compiler_static_CXX='-Bstatic'
11459      fi
11460      ;;
11461    amigaos*)
11462      # FIXME: we need at least 68020 code to build shared libraries, but
11463      # adding the `-m68020' flag to GCC prevents building anything better,
11464      # like `-m68040'.
11465      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11466      ;;
11467    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11468      # PIC is the default for these OSes.
11469      ;;
11470    mingw* | os2* | pw32*)
11471      # This hack is so that the source file can tell whether it is being
11472      # built for inclusion in a dll (and should export symbols for example).
11473      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11474      ;;
11475    darwin* | rhapsody*)
11476      # PIC is the default on this platform
11477      # Common symbols not allowed in MH_DYLIB files
11478      lt_prog_compiler_pic_CXX='-fno-common'
11479      ;;
11480    *djgpp*)
11481      # DJGPP does not support shared libraries at all
11482      lt_prog_compiler_pic_CXX=
11483      ;;
11484    interix3*)
11485      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11486      # Instead, we relocate shared libraries at runtime.
11487      ;;
11488    sysv4*MP*)
11489      if test -d /usr/nec; then
11490	lt_prog_compiler_pic_CXX=-Kconform_pic
11491      fi
11492      ;;
11493    hpux*)
11494      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11495      # not for PA HP-UX.
11496      case $host_cpu in
11497      hppa*64*|ia64*)
11498	;;
11499      *)
11500	lt_prog_compiler_pic_CXX='-fPIC'
11501	;;
11502      esac
11503      ;;
11504    *)
11505      lt_prog_compiler_pic_CXX='-fPIC'
11506      ;;
11507    esac
11508  else
11509    case $host_os in
11510      aix4* | aix5*)
11511	# All AIX code is PIC.
11512	if test "$host_cpu" = ia64; then
11513	  # AIX 5 now supports IA64 processor
11514	  lt_prog_compiler_static_CXX='-Bstatic'
11515	else
11516	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11517	fi
11518	;;
11519      chorus*)
11520	case $cc_basename in
11521	cxch68*)
11522	  # Green Hills C++ Compiler
11523	  # _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"
11524	  ;;
11525	esac
11526	;;
11527       darwin*)
11528         # PIC is the default on this platform
11529         # Common symbols not allowed in MH_DYLIB files
11530         case $cc_basename in
11531           xlc*)
11532           lt_prog_compiler_pic_CXX='-qnocommon'
11533           lt_prog_compiler_wl_CXX='-Wl,'
11534           ;;
11535         esac
11536       ;;
11537      dgux*)
11538	case $cc_basename in
11539	  ec++*)
11540	    lt_prog_compiler_pic_CXX='-KPIC'
11541	    ;;
11542	  ghcx*)
11543	    # Green Hills C++ Compiler
11544	    lt_prog_compiler_pic_CXX='-pic'
11545	    ;;
11546	  *)
11547	    ;;
11548	esac
11549	;;
11550      freebsd* | kfreebsd*-gnu | dragonfly*)
11551	# FreeBSD uses GNU C++
11552	;;
11553      hpux9* | hpux10* | hpux11*)
11554	case $cc_basename in
11555	  CC*)
11556	    lt_prog_compiler_wl_CXX='-Wl,'
11557	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11558	    if test "$host_cpu" != ia64; then
11559	      lt_prog_compiler_pic_CXX='+Z'
11560	    fi
11561	    ;;
11562	  aCC*)
11563	    lt_prog_compiler_wl_CXX='-Wl,'
11564	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11565	    case $host_cpu in
11566	    hppa*64*|ia64*)
11567	      # +Z the default
11568	      ;;
11569	    *)
11570	      lt_prog_compiler_pic_CXX='+Z'
11571	      ;;
11572	    esac
11573	    ;;
11574	  *)
11575	    ;;
11576	esac
11577	;;
11578      interix*)
11579	# This is c89, which is MS Visual C++ (no shared libs)
11580	# Anyone wants to do a port?
11581	;;
11582      irix5* | irix6* | nonstopux*)
11583	case $cc_basename in
11584	  CC*)
11585	    lt_prog_compiler_wl_CXX='-Wl,'
11586	    lt_prog_compiler_static_CXX='-non_shared'
11587	    # CC pic flag -KPIC is the default.
11588	    ;;
11589	  *)
11590	    ;;
11591	esac
11592	;;
11593      linux*)
11594	case $cc_basename in
11595	  KCC*)
11596	    # KAI C++ Compiler
11597	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11598	    lt_prog_compiler_pic_CXX='-fPIC'
11599	    ;;
11600	  icpc* | ecpc*)
11601	    # Intel C++
11602	    lt_prog_compiler_wl_CXX='-Wl,'
11603	    lt_prog_compiler_pic_CXX='-KPIC'
11604	    lt_prog_compiler_static_CXX='-static'
11605	    ;;
11606	  pgCC*)
11607	    # Portland Group C++ compiler.
11608	    lt_prog_compiler_wl_CXX='-Wl,'
11609	    lt_prog_compiler_pic_CXX='-fpic'
11610	    lt_prog_compiler_static_CXX='-Bstatic'
11611	    ;;
11612	  cxx*)
11613	    # Compaq C++
11614	    # Make sure the PIC flag is empty.  It appears that all Alpha
11615	    # Linux and Compaq Tru64 Unix objects are PIC.
11616	    lt_prog_compiler_pic_CXX=
11617	    lt_prog_compiler_static_CXX='-non_shared'
11618	    ;;
11619	  *)
11620	    ;;
11621	esac
11622	;;
11623      lynxos*)
11624	;;
11625      m88k*)
11626	;;
11627      mvs*)
11628	case $cc_basename in
11629	  cxx*)
11630	    lt_prog_compiler_pic_CXX='-W c,exportall'
11631	    ;;
11632	  *)
11633	    ;;
11634	esac
11635	;;
11636      netbsd*)
11637	;;
11638      osf3* | osf4* | osf5*)
11639	case $cc_basename in
11640	  KCC*)
11641	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11642	    ;;
11643	  RCC*)
11644	    # Rational C++ 2.4.1
11645	    lt_prog_compiler_pic_CXX='-pic'
11646	    ;;
11647	  cxx*)
11648	    # Digital/Compaq C++
11649	    lt_prog_compiler_wl_CXX='-Wl,'
11650	    # Make sure the PIC flag is empty.  It appears that all Alpha
11651	    # Linux and Compaq Tru64 Unix objects are PIC.
11652	    lt_prog_compiler_pic_CXX=
11653	    lt_prog_compiler_static_CXX='-non_shared'
11654	    ;;
11655	  *)
11656	    ;;
11657	esac
11658	;;
11659      psos*)
11660	;;
11661      solaris*)
11662	case $cc_basename in
11663	  CC*)
11664	    # Sun C++ 4.2, 5.x and Centerline C++
11665	    lt_prog_compiler_pic_CXX='-KPIC'
11666	    lt_prog_compiler_static_CXX='-Bstatic'
11667	    lt_prog_compiler_wl_CXX='-Qoption ld '
11668	    ;;
11669	  gcx*)
11670	    # Green Hills C++ Compiler
11671	    lt_prog_compiler_pic_CXX='-PIC'
11672	    ;;
11673	  *)
11674	    ;;
11675	esac
11676	;;
11677      sunos4*)
11678	case $cc_basename in
11679	  CC*)
11680	    # Sun C++ 4.x
11681	    lt_prog_compiler_pic_CXX='-pic'
11682	    lt_prog_compiler_static_CXX='-Bstatic'
11683	    ;;
11684	  lcc*)
11685	    # Lucid
11686	    lt_prog_compiler_pic_CXX='-pic'
11687	    ;;
11688	  *)
11689	    ;;
11690	esac
11691	;;
11692      tandem*)
11693	case $cc_basename in
11694	  NCC*)
11695	    # NonStop-UX NCC 3.20
11696	    lt_prog_compiler_pic_CXX='-KPIC'
11697	    ;;
11698	  *)
11699	    ;;
11700	esac
11701	;;
11702      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11703	case $cc_basename in
11704	  CC*)
11705	    lt_prog_compiler_wl_CXX='-Wl,'
11706	    lt_prog_compiler_pic_CXX='-KPIC'
11707	    lt_prog_compiler_static_CXX='-Bstatic'
11708	    ;;
11709	esac
11710	;;
11711      vxworks*)
11712	;;
11713      *)
11714	lt_prog_compiler_can_build_shared_CXX=no
11715	;;
11716    esac
11717  fi
11718
11719echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11720echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11721
11722#
11723# Check to make sure the PIC flag actually works.
11724#
11725if test -n "$lt_prog_compiler_pic_CXX"; then
11726
11727echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11728echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11729if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11730  echo $ECHO_N "(cached) $ECHO_C" >&6
11731else
11732  lt_prog_compiler_pic_works_CXX=no
11733  ac_outfile=conftest.$ac_objext
11734   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11735   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11736   # Insert the option either (1) after the last *FLAGS variable, or
11737   # (2) before a word containing "conftest.", or (3) at the end.
11738   # Note that $ac_compile itself does not contain backslashes and begins
11739   # with a dollar sign (not a hyphen), so the echo should work correctly.
11740   # The option is referenced via a variable to avoid confusing sed.
11741   lt_compile=`echo "$ac_compile" | $SED \
11742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11744   -e 's:$: $lt_compiler_flag:'`
11745   (eval echo "\"\$as_me:11745: $lt_compile\"" >&5)
11746   (eval "$lt_compile" 2>conftest.err)
11747   ac_status=$?
11748   cat conftest.err >&5
11749   echo "$as_me:11749: \$? = $ac_status" >&5
11750   if (exit $ac_status) && test -s "$ac_outfile"; then
11751     # The compiler can only warn and ignore the option if not recognized
11752     # So say no if there are warnings other than the usual output.
11753     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11756       lt_prog_compiler_pic_works_CXX=yes
11757     fi
11758   fi
11759   $rm conftest*
11760
11761fi
11762echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11763echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11764
11765if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11766    case $lt_prog_compiler_pic_CXX in
11767     "" | " "*) ;;
11768     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11769     esac
11770else
11771    lt_prog_compiler_pic_CXX=
11772     lt_prog_compiler_can_build_shared_CXX=no
11773fi
11774
11775fi
11776case $host_os in
11777  # For platforms which do not support PIC, -DPIC is meaningless:
11778  *djgpp*)
11779    lt_prog_compiler_pic_CXX=
11780    ;;
11781  *)
11782    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11783    ;;
11784esac
11785
11786#
11787# Check to make sure the static flag actually works.
11788#
11789wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11790echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11791echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11792if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11793  echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
11795  lt_prog_compiler_static_works_CXX=no
11796   save_LDFLAGS="$LDFLAGS"
11797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11798   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11800     # The linker can only warn and ignore the option if not recognized
11801     # So say no if there are warnings
11802     if test -s conftest.err; then
11803       # Append any errors to the config.log.
11804       cat conftest.err 1>&5
11805       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11807       if diff conftest.exp conftest.er2 >/dev/null; then
11808         lt_prog_compiler_static_works_CXX=yes
11809       fi
11810     else
11811       lt_prog_compiler_static_works_CXX=yes
11812     fi
11813   fi
11814   $rm conftest*
11815   LDFLAGS="$save_LDFLAGS"
11816
11817fi
11818echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11819echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11820
11821if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11822    :
11823else
11824    lt_prog_compiler_static_CXX=
11825fi
11826
11827
11828echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11830if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11831  echo $ECHO_N "(cached) $ECHO_C" >&6
11832else
11833  lt_cv_prog_compiler_c_o_CXX=no
11834   $rm -r conftest 2>/dev/null
11835   mkdir conftest
11836   cd conftest
11837   mkdir out
11838   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11839
11840   lt_compiler_flag="-o out/conftest2.$ac_objext"
11841   # Insert the option either (1) after the last *FLAGS variable, or
11842   # (2) before a word containing "conftest.", or (3) at the end.
11843   # Note that $ac_compile itself does not contain backslashes and begins
11844   # with a dollar sign (not a hyphen), so the echo should work correctly.
11845   lt_compile=`echo "$ac_compile" | $SED \
11846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11848   -e 's:$: $lt_compiler_flag:'`
11849   (eval echo "\"\$as_me:11849: $lt_compile\"" >&5)
11850   (eval "$lt_compile" 2>out/conftest.err)
11851   ac_status=$?
11852   cat out/conftest.err >&5
11853   echo "$as_me:11853: \$? = $ac_status" >&5
11854   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11855   then
11856     # The compiler can only warn and ignore the option if not recognized
11857     # So say no if there are warnings
11858     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11859     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11860     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11861       lt_cv_prog_compiler_c_o_CXX=yes
11862     fi
11863   fi
11864   chmod u+w . 2>&5
11865   $rm conftest*
11866   # SGI C++ compiler will create directory out/ii_files/ for
11867   # template instantiation
11868   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11869   $rm out/* && rmdir out
11870   cd ..
11871   rmdir conftest
11872   $rm conftest*
11873
11874fi
11875echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11876echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11877
11878
11879hard_links="nottested"
11880if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11881  # do not overwrite the value of need_locks provided by the user
11882  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11883echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11884  hard_links=yes
11885  $rm conftest*
11886  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11887  touch conftest.a
11888  ln conftest.a conftest.b 2>&5 || hard_links=no
11889  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11890  echo "$as_me:$LINENO: result: $hard_links" >&5
11891echo "${ECHO_T}$hard_links" >&6
11892  if test "$hard_links" = no; then
11893    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11894echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11895    need_locks=warn
11896  fi
11897else
11898  need_locks=no
11899fi
11900
11901echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11903
11904  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11905  case $host_os in
11906  aix4* | aix5*)
11907    # If we're using GNU nm, then we don't want the "-C" option.
11908    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11909    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11910      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'
11911    else
11912      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'
11913    fi
11914    ;;
11915  pw32*)
11916    export_symbols_cmds_CXX="$ltdll_cmds"
11917  ;;
11918  cygwin* | mingw*)
11919    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'
11920  ;;
11921  *)
11922    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11923  ;;
11924  esac
11925
11926echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11927echo "${ECHO_T}$ld_shlibs_CXX" >&6
11928test "$ld_shlibs_CXX" = no && can_build_shared=no
11929
11930#
11931# Do we need to explicitly link libc?
11932#
11933case "x$archive_cmds_need_lc_CXX" in
11934x|xyes)
11935  # Assume -lc should be added
11936  archive_cmds_need_lc_CXX=yes
11937
11938  if test "$enable_shared" = yes && test "$GCC" = yes; then
11939    case $archive_cmds_CXX in
11940    *'~'*)
11941      # FIXME: we may have to deal with multi-command sequences.
11942      ;;
11943    '$CC '*)
11944      # Test whether the compiler implicitly links with -lc since on some
11945      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11946      # to ld, don't add -lc before -lgcc.
11947      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11948echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11949      $rm conftest*
11950      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11951
11952      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953  (eval $ac_compile) 2>&5
11954  ac_status=$?
11955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956  (exit $ac_status); } 2>conftest.err; then
11957        soname=conftest
11958        lib=conftest
11959        libobjs=conftest.$ac_objext
11960        deplibs=
11961        wl=$lt_prog_compiler_wl_CXX
11962	pic_flag=$lt_prog_compiler_pic_CXX
11963        compiler_flags=-v
11964        linker_flags=-v
11965        verstring=
11966        output_objdir=.
11967        libname=conftest
11968        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11969        allow_undefined_flag_CXX=
11970        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11971  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11972  ac_status=$?
11973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974  (exit $ac_status); }
11975        then
11976	  archive_cmds_need_lc_CXX=no
11977        else
11978	  archive_cmds_need_lc_CXX=yes
11979        fi
11980        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11981      else
11982        cat conftest.err 1>&5
11983      fi
11984      $rm conftest*
11985      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11986echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11987      ;;
11988    esac
11989  fi
11990  ;;
11991esac
11992
11993echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11994echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11995library_names_spec=
11996libname_spec='lib$name'
11997soname_spec=
11998shrext_cmds=".so"
11999postinstall_cmds=
12000postuninstall_cmds=
12001finish_cmds=
12002finish_eval=
12003shlibpath_var=
12004shlibpath_overrides_runpath=unknown
12005version_type=none
12006dynamic_linker="$host_os ld.so"
12007sys_lib_dlsearch_path_spec="/lib /usr/lib"
12008if test "$GCC" = yes; then
12009  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12010  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12011    # if the path contains ";" then we assume it to be the separator
12012    # otherwise default to the standard path separator (i.e. ":") - it is
12013    # assumed that no part of a normal pathname contains ";" but that should
12014    # okay in the real world where ";" in dirpaths is itself problematic.
12015    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12016  else
12017    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12018  fi
12019else
12020  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12021fi
12022need_lib_prefix=unknown
12023hardcode_into_libs=no
12024
12025# when you set need_version to no, make sure it does not cause -set_version
12026# flags to be left without arguments
12027need_version=unknown
12028
12029case $host_os in
12030aix3*)
12031  version_type=linux
12032  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12033  shlibpath_var=LIBPATH
12034
12035  # AIX 3 has no versioning support, so we append a major version to the name.
12036  soname_spec='${libname}${release}${shared_ext}$major'
12037  ;;
12038
12039aix4* | aix5*)
12040  version_type=linux
12041  need_lib_prefix=no
12042  need_version=no
12043  hardcode_into_libs=yes
12044  if test "$host_cpu" = ia64; then
12045    # AIX 5 supports IA64
12046    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12047    shlibpath_var=LD_LIBRARY_PATH
12048  else
12049    # With GCC up to 2.95.x, collect2 would create an import file
12050    # for dependence libraries.  The import file would start with
12051    # the line `#! .'.  This would cause the generated library to
12052    # depend on `.', always an invalid library.  This was fixed in
12053    # development snapshots of GCC prior to 3.0.
12054    case $host_os in
12055      aix4 | aix4.[01] | aix4.[01].*)
12056      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12057	   echo ' yes '
12058	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12059	:
12060      else
12061	can_build_shared=no
12062      fi
12063      ;;
12064    esac
12065    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12066    # soname into executable. Probably we can add versioning support to
12067    # collect2, so additional links can be useful in future.
12068    if test "$aix_use_runtimelinking" = yes; then
12069      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12070      # instead of lib<name>.a to let people know that these are not
12071      # typical AIX shared libraries.
12072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073    else
12074      # We preserve .a as extension for shared libraries through AIX4.2
12075      # and later when we are not doing run time linking.
12076      library_names_spec='${libname}${release}.a $libname.a'
12077      soname_spec='${libname}${release}${shared_ext}$major'
12078    fi
12079    shlibpath_var=LIBPATH
12080  fi
12081  ;;
12082
12083amigaos*)
12084  library_names_spec='$libname.ixlibrary $libname.a'
12085  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12086  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'
12087  ;;
12088
12089beos*)
12090  library_names_spec='${libname}${shared_ext}'
12091  dynamic_linker="$host_os ld.so"
12092  shlibpath_var=LIBRARY_PATH
12093  ;;
12094
12095bsdi[45]*)
12096  version_type=linux
12097  need_version=no
12098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099  soname_spec='${libname}${release}${shared_ext}$major'
12100  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12101  shlibpath_var=LD_LIBRARY_PATH
12102  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12103  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12104  # the default ld.so.conf also contains /usr/contrib/lib and
12105  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12106  # libtool to hard-code these into programs
12107  ;;
12108
12109cygwin* | mingw* | pw32*)
12110  version_type=windows
12111  shrext_cmds=".dll"
12112  need_version=no
12113  need_lib_prefix=no
12114
12115  case $GCC,$host_os in
12116  yes,cygwin* | yes,mingw* | yes,pw32*)
12117    library_names_spec='$libname.dll.a'
12118    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12119    postinstall_cmds='base_file=`basename \${file}`~
12120      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12121      dldir=$destdir/`dirname \$dlpath`~
12122      test -d \$dldir || mkdir -p \$dldir~
12123      $install_prog $dir/$dlname \$dldir/$dlname~
12124      chmod a+x \$dldir/$dlname'
12125    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12126      dlpath=$dir/\$dldll~
12127       $rm \$dlpath'
12128    shlibpath_overrides_runpath=yes
12129
12130    case $host_os in
12131    cygwin*)
12132      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12133      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12134      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12135      ;;
12136    mingw*)
12137      # MinGW DLLs use traditional 'lib' prefix
12138      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12139      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12140      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12141        # It is most probably a Windows format PATH printed by
12142        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12143        # path with ; separators, and with drive letters. We can handle the
12144        # drive letters (cygwin fileutils understands them), so leave them,
12145        # especially as we might pass files found there to a mingw objdump,
12146        # which wouldn't understand a cygwinified path. Ahh.
12147        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12148      else
12149        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12150      fi
12151      ;;
12152    pw32*)
12153      # pw32 DLLs use 'pw' prefix rather than 'lib'
12154      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12155      ;;
12156    esac
12157    ;;
12158
12159  linux*)
12160    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12161      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162      supports_anon_versioning=no
12163      case `$LD -v 2>/dev/null` in
12164        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12165        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12166        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12167        *\ 2.11.*) ;; # other 2.11 versions
12168        *) supports_anon_versioning=yes ;;
12169      esac
12170      if test $supports_anon_versioning = yes; then
12171        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12172cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12173$echo "local: *; };" >> $output_objdir/$libname.ver~
12174        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12175      else
12176        $archive_expsym_cmds="$archive_cmds"
12177      fi
12178    else
12179      ld_shlibs=no
12180    fi
12181    ;;
12182
12183  *)
12184    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12185    ;;
12186  esac
12187  dynamic_linker='Win32 ld.exe'
12188  # FIXME: first we should search . and the directory the executable is in
12189  shlibpath_var=PATH
12190  ;;
12191
12192darwin* | rhapsody*)
12193  dynamic_linker="$host_os dyld"
12194  version_type=darwin
12195  need_lib_prefix=no
12196  need_version=no
12197  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12198  soname_spec='${libname}${release}${major}$shared_ext'
12199  shlibpath_overrides_runpath=yes
12200  shlibpath_var=DYLD_LIBRARY_PATH
12201  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12202  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12203  if test "$GCC" = yes; then
12204    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"`
12205  else
12206    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12207  fi
12208  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12209  ;;
12210
12211dgux*)
12212  version_type=linux
12213  need_lib_prefix=no
12214  need_version=no
12215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12216  soname_spec='${libname}${release}${shared_ext}$major'
12217  shlibpath_var=LD_LIBRARY_PATH
12218  ;;
12219
12220freebsd1*)
12221  dynamic_linker=no
12222  ;;
12223
12224kfreebsd*-gnu)
12225  version_type=linux
12226  need_lib_prefix=no
12227  need_version=no
12228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12229  soname_spec='${libname}${release}${shared_ext}$major'
12230  shlibpath_var=LD_LIBRARY_PATH
12231  shlibpath_overrides_runpath=no
12232  hardcode_into_libs=yes
12233  dynamic_linker='GNU ld.so'
12234  ;;
12235
12236freebsd* | dragonfly*)
12237  # DragonFly does not have aout.  When/if they implement a new
12238  # versioning mechanism, adjust this.
12239  if test -x /usr/bin/objformat; then
12240    objformat=`/usr/bin/objformat`
12241  else
12242    case $host_os in
12243    freebsd[123]*) objformat=aout ;;
12244    *) objformat=elf ;;
12245    esac
12246  fi
12247  # Handle Gentoo/FreeBSD as it was Linux
12248  case $host_vendor in
12249    gentoo)
12250      version_type=linux ;;
12251    *)
12252      version_type=freebsd-$objformat ;;
12253  esac
12254
12255  case $version_type in
12256    freebsd-elf*)
12257      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12258      need_version=no
12259      need_lib_prefix=no
12260      ;;
12261    freebsd-*)
12262      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12263      need_version=yes
12264      ;;
12265    linux)
12266      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12267      soname_spec='${libname}${release}${shared_ext}$major'
12268      need_lib_prefix=no
12269      need_version=no
12270      ;;
12271  esac
12272  shlibpath_var=LD_LIBRARY_PATH
12273  case $host_os in
12274  freebsd2*)
12275    shlibpath_overrides_runpath=yes
12276    ;;
12277  freebsd3.[01]* | freebsdelf3.[01]*)
12278    shlibpath_overrides_runpath=yes
12279    hardcode_into_libs=yes
12280    ;;
12281  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12282  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12283    shlibpath_overrides_runpath=no
12284    hardcode_into_libs=yes
12285    ;;
12286  freebsd*) # from 4.6 on
12287    shlibpath_overrides_runpath=yes
12288    hardcode_into_libs=yes
12289    ;;
12290  esac
12291  ;;
12292
12293gnu*)
12294  version_type=linux
12295  need_lib_prefix=no
12296  need_version=no
12297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12298  soname_spec='${libname}${release}${shared_ext}$major'
12299  shlibpath_var=LD_LIBRARY_PATH
12300  hardcode_into_libs=yes
12301  ;;
12302
12303hpux9* | hpux10* | hpux11*)
12304  # Give a soname corresponding to the major version so that dld.sl refuses to
12305  # link against other versions.
12306  version_type=sunos
12307  need_lib_prefix=no
12308  need_version=no
12309  case $host_cpu in
12310  ia64*)
12311    shrext_cmds='.so'
12312    hardcode_into_libs=yes
12313    dynamic_linker="$host_os dld.so"
12314    shlibpath_var=LD_LIBRARY_PATH
12315    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12316    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317    soname_spec='${libname}${release}${shared_ext}$major'
12318    if test "X$HPUX_IA64_MODE" = X32; then
12319      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12320    else
12321      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12322    fi
12323    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12324    ;;
12325   hppa*64*)
12326     shrext_cmds='.sl'
12327     hardcode_into_libs=yes
12328     dynamic_linker="$host_os dld.sl"
12329     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12330     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332     soname_spec='${libname}${release}${shared_ext}$major'
12333     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12334     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12335     ;;
12336   *)
12337    shrext_cmds='.sl'
12338    dynamic_linker="$host_os dld.sl"
12339    shlibpath_var=SHLIB_PATH
12340    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342    soname_spec='${libname}${release}${shared_ext}$major'
12343    ;;
12344  esac
12345  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12346  postinstall_cmds='chmod 555 $lib'
12347  ;;
12348
12349interix3*)
12350  version_type=linux
12351  need_lib_prefix=no
12352  need_version=no
12353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12354  soname_spec='${libname}${release}${shared_ext}$major'
12355  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12356  shlibpath_var=LD_LIBRARY_PATH
12357  shlibpath_overrides_runpath=no
12358  hardcode_into_libs=yes
12359  ;;
12360
12361irix5* | irix6* | nonstopux*)
12362  case $host_os in
12363    nonstopux*) version_type=nonstopux ;;
12364    *)
12365	if test "$lt_cv_prog_gnu_ld" = yes; then
12366		version_type=linux
12367	else
12368		version_type=irix
12369	fi ;;
12370  esac
12371  need_lib_prefix=no
12372  need_version=no
12373  soname_spec='${libname}${release}${shared_ext}$major'
12374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12375  case $host_os in
12376  irix5* | nonstopux*)
12377    libsuff= shlibsuff=
12378    ;;
12379  *)
12380    case $LD in # libtool.m4 will add one of these switches to LD
12381    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12382      libsuff= shlibsuff= libmagic=32-bit;;
12383    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12384      libsuff=32 shlibsuff=N32 libmagic=N32;;
12385    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12386      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12387    *) libsuff= shlibsuff= libmagic=never-match;;
12388    esac
12389    ;;
12390  esac
12391  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12392  shlibpath_overrides_runpath=no
12393  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12394  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12395  hardcode_into_libs=yes
12396  ;;
12397
12398# No shared lib support for Linux oldld, aout, or coff.
12399linux*oldld* | linux*aout* | linux*coff*)
12400  dynamic_linker=no
12401  ;;
12402
12403# This must be Linux ELF.
12404linux*)
12405  version_type=linux
12406  need_lib_prefix=no
12407  need_version=no
12408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409  soname_spec='${libname}${release}${shared_ext}$major'
12410  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12411  shlibpath_var=LD_LIBRARY_PATH
12412  shlibpath_overrides_runpath=no
12413  # This implies no fast_install, which is unacceptable.
12414  # Some rework will be needed to allow for fast_install
12415  # before this can be enabled.
12416  hardcode_into_libs=yes
12417
12418  # Append ld.so.conf contents to the search path
12419  if test -f /etc/ld.so.conf; then
12420    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' ' '`
12421    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12422  fi
12423
12424  # We used to test for /lib/ld.so.1 and disable shared libraries on
12425  # powerpc, because MkLinux only supported shared libraries with the
12426  # GNU dynamic linker.  Since this was broken with cross compilers,
12427  # most powerpc-linux boxes support dynamic linking these days and
12428  # people can always --disable-shared, the test was removed, and we
12429  # assume the GNU/Linux dynamic linker is in use.
12430  dynamic_linker='GNU/Linux ld.so'
12431  ;;
12432
12433knetbsd*-gnu)
12434  version_type=linux
12435  need_lib_prefix=no
12436  need_version=no
12437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12438  soname_spec='${libname}${release}${shared_ext}$major'
12439  shlibpath_var=LD_LIBRARY_PATH
12440  shlibpath_overrides_runpath=no
12441  hardcode_into_libs=yes
12442  dynamic_linker='GNU ld.so'
12443  ;;
12444
12445netbsd*)
12446  version_type=sunos
12447  need_lib_prefix=no
12448  need_version=no
12449  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12451    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12452    dynamic_linker='NetBSD (a.out) ld.so'
12453  else
12454    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12455    soname_spec='${libname}${release}${shared_ext}$major'
12456    dynamic_linker='NetBSD ld.elf_so'
12457  fi
12458  shlibpath_var=LD_LIBRARY_PATH
12459  shlibpath_overrides_runpath=yes
12460  hardcode_into_libs=yes
12461  ;;
12462
12463newsos6)
12464  version_type=linux
12465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12466  shlibpath_var=LD_LIBRARY_PATH
12467  shlibpath_overrides_runpath=yes
12468  ;;
12469
12470nto-qnx*)
12471  version_type=linux
12472  need_lib_prefix=no
12473  need_version=no
12474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475  soname_spec='${libname}${release}${shared_ext}$major'
12476  shlibpath_var=LD_LIBRARY_PATH
12477  shlibpath_overrides_runpath=yes
12478  ;;
12479
12480openbsd*)
12481  version_type=sunos
12482  sys_lib_dlsearch_path_spec="/usr/lib"
12483  need_lib_prefix=no
12484  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12485  case $host_os in
12486    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12487    *)                         need_version=no  ;;
12488  esac
12489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12490  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491  shlibpath_var=LD_LIBRARY_PATH
12492  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12493    case $host_os in
12494      openbsd2.[89] | openbsd2.[89].*)
12495	shlibpath_overrides_runpath=no
12496	;;
12497      *)
12498	shlibpath_overrides_runpath=yes
12499	;;
12500      esac
12501  else
12502    shlibpath_overrides_runpath=yes
12503  fi
12504  ;;
12505
12506os2*)
12507  libname_spec='$name'
12508  shrext_cmds=".dll"
12509  need_lib_prefix=no
12510  library_names_spec='$libname${shared_ext} $libname.a'
12511  dynamic_linker='OS/2 ld.exe'
12512  shlibpath_var=LIBPATH
12513  ;;
12514
12515osf3* | osf4* | osf5*)
12516  version_type=osf
12517  need_lib_prefix=no
12518  need_version=no
12519  soname_spec='${libname}${release}${shared_ext}$major'
12520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521  shlibpath_var=LD_LIBRARY_PATH
12522  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12523  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12524  ;;
12525
12526solaris*)
12527  version_type=linux
12528  need_lib_prefix=no
12529  need_version=no
12530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12531  soname_spec='${libname}${release}${shared_ext}$major'
12532  shlibpath_var=LD_LIBRARY_PATH
12533  shlibpath_overrides_runpath=yes
12534  hardcode_into_libs=yes
12535  # ldd complains unless libraries are executable
12536  postinstall_cmds='chmod +x $lib'
12537  ;;
12538
12539sunos4*)
12540  version_type=sunos
12541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12542  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12543  shlibpath_var=LD_LIBRARY_PATH
12544  shlibpath_overrides_runpath=yes
12545  if test "$with_gnu_ld" = yes; then
12546    need_lib_prefix=no
12547  fi
12548  need_version=yes
12549  ;;
12550
12551sysv4 | sysv4.3*)
12552  version_type=linux
12553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12554  soname_spec='${libname}${release}${shared_ext}$major'
12555  shlibpath_var=LD_LIBRARY_PATH
12556  case $host_vendor in
12557    sni)
12558      shlibpath_overrides_runpath=no
12559      need_lib_prefix=no
12560      export_dynamic_flag_spec='${wl}-Blargedynsym'
12561      runpath_var=LD_RUN_PATH
12562      ;;
12563    siemens)
12564      need_lib_prefix=no
12565      ;;
12566    motorola)
12567      need_lib_prefix=no
12568      need_version=no
12569      shlibpath_overrides_runpath=no
12570      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12571      ;;
12572  esac
12573  ;;
12574
12575sysv4*MP*)
12576  if test -d /usr/nec ;then
12577    version_type=linux
12578    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12579    soname_spec='$libname${shared_ext}.$major'
12580    shlibpath_var=LD_LIBRARY_PATH
12581  fi
12582  ;;
12583
12584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12585  version_type=freebsd-elf
12586  need_lib_prefix=no
12587  need_version=no
12588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12589  soname_spec='${libname}${release}${shared_ext}$major'
12590  shlibpath_var=LD_LIBRARY_PATH
12591  hardcode_into_libs=yes
12592  if test "$with_gnu_ld" = yes; then
12593    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12594    shlibpath_overrides_runpath=no
12595  else
12596    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12597    shlibpath_overrides_runpath=yes
12598    case $host_os in
12599      sco3.2v5*)
12600        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12601	;;
12602    esac
12603  fi
12604  sys_lib_dlsearch_path_spec='/usr/lib'
12605  ;;
12606
12607uts4*)
12608  version_type=linux
12609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610  soname_spec='${libname}${release}${shared_ext}$major'
12611  shlibpath_var=LD_LIBRARY_PATH
12612  ;;
12613
12614*)
12615  dynamic_linker=no
12616  ;;
12617esac
12618echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12619echo "${ECHO_T}$dynamic_linker" >&6
12620test "$dynamic_linker" = no && can_build_shared=no
12621
12622variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12623if test "$GCC" = yes; then
12624  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12625fi
12626
12627echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12628echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12629hardcode_action_CXX=
12630if test -n "$hardcode_libdir_flag_spec_CXX" || \
12631   test -n "$runpath_var_CXX" || \
12632   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12633
12634  # We can hardcode non-existant directories.
12635  if test "$hardcode_direct_CXX" != no &&
12636     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12637     # have to relink, otherwise we might link with an installed library
12638     # when we should be linking with a yet-to-be-installed one
12639     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12640     test "$hardcode_minus_L_CXX" != no; then
12641    # Linking always hardcodes the temporary library directory.
12642    hardcode_action_CXX=relink
12643  else
12644    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12645    hardcode_action_CXX=immediate
12646  fi
12647else
12648  # We cannot hardcode anything, or else we can only hardcode existing
12649  # directories.
12650  hardcode_action_CXX=unsupported
12651fi
12652echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12653echo "${ECHO_T}$hardcode_action_CXX" >&6
12654
12655if test "$hardcode_action_CXX" = relink; then
12656  # Fast installation is not supported
12657  enable_fast_install=no
12658elif test "$shlibpath_overrides_runpath" = yes ||
12659     test "$enable_shared" = no; then
12660  # Fast installation is not necessary
12661  enable_fast_install=needless
12662fi
12663
12664
12665# The else clause should only fire when bootstrapping the
12666# libtool distribution, otherwise you forgot to ship ltmain.sh
12667# with your package, and you will get complaints that there are
12668# no rules to generate ltmain.sh.
12669if test -f "$ltmain"; then
12670  # See if we are running on zsh, and set the options which allow our commands through
12671  # without removal of \ escapes.
12672  if test -n "${ZSH_VERSION+set}" ; then
12673    setopt NO_GLOB_SUBST
12674  fi
12675  # Now quote all the things that may contain metacharacters while being
12676  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12677  # variables and quote the copies for generation of the libtool script.
12678  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12679    SED SHELL STRIP \
12680    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12681    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12682    deplibs_check_method reload_flag reload_cmds need_locks \
12683    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12684    lt_cv_sys_global_symbol_to_c_name_address \
12685    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12686    old_postinstall_cmds old_postuninstall_cmds \
12687    compiler_CXX \
12688    CC_CXX \
12689    LD_CXX \
12690    lt_prog_compiler_wl_CXX \
12691    lt_prog_compiler_pic_CXX \
12692    lt_prog_compiler_static_CXX \
12693    lt_prog_compiler_no_builtin_flag_CXX \
12694    export_dynamic_flag_spec_CXX \
12695    thread_safe_flag_spec_CXX \
12696    whole_archive_flag_spec_CXX \
12697    enable_shared_with_static_runtimes_CXX \
12698    old_archive_cmds_CXX \
12699    old_archive_from_new_cmds_CXX \
12700    predep_objects_CXX \
12701    postdep_objects_CXX \
12702    predeps_CXX \
12703    postdeps_CXX \
12704    compiler_lib_search_path_CXX \
12705    archive_cmds_CXX \
12706    archive_expsym_cmds_CXX \
12707    postinstall_cmds_CXX \
12708    postuninstall_cmds_CXX \
12709    old_archive_from_expsyms_cmds_CXX \
12710    allow_undefined_flag_CXX \
12711    no_undefined_flag_CXX \
12712    export_symbols_cmds_CXX \
12713    hardcode_libdir_flag_spec_CXX \
12714    hardcode_libdir_flag_spec_ld_CXX \
12715    hardcode_libdir_separator_CXX \
12716    hardcode_automatic_CXX \
12717    module_cmds_CXX \
12718    module_expsym_cmds_CXX \
12719    lt_cv_prog_compiler_c_o_CXX \
12720    exclude_expsyms_CXX \
12721    include_expsyms_CXX; do
12722
12723    case $var in
12724    old_archive_cmds_CXX | \
12725    old_archive_from_new_cmds_CXX | \
12726    archive_cmds_CXX | \
12727    archive_expsym_cmds_CXX | \
12728    module_cmds_CXX | \
12729    module_expsym_cmds_CXX | \
12730    old_archive_from_expsyms_cmds_CXX | \
12731    export_symbols_cmds_CXX | \
12732    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12733    postinstall_cmds | postuninstall_cmds | \
12734    old_postinstall_cmds | old_postuninstall_cmds | \
12735    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12736      # Double-quote double-evaled strings.
12737      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12738      ;;
12739    *)
12740      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12741      ;;
12742    esac
12743  done
12744
12745  case $lt_echo in
12746  *'\$0 --fallback-echo"')
12747    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12748    ;;
12749  esac
12750
12751cfgfile="$ofile"
12752
12753  cat <<__EOF__ >> "$cfgfile"
12754# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12755
12756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12757
12758# Shell to use when invoking shell scripts.
12759SHELL=$lt_SHELL
12760
12761# Whether or not to build shared libraries.
12762build_libtool_libs=$enable_shared
12763
12764# Whether or not to build static libraries.
12765build_old_libs=$enable_static
12766
12767# Whether or not to add -lc for building shared libraries.
12768build_libtool_need_lc=$archive_cmds_need_lc_CXX
12769
12770# Whether or not to disallow shared libs when runtime libs are static
12771allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12772
12773# Whether or not to optimize for fast installation.
12774fast_install=$enable_fast_install
12775
12776# The host system.
12777host_alias=$host_alias
12778host=$host
12779host_os=$host_os
12780
12781# The build system.
12782build_alias=$build_alias
12783build=$build
12784build_os=$build_os
12785
12786# An echo program that does not interpret backslashes.
12787echo=$lt_echo
12788
12789# The archiver.
12790AR=$lt_AR
12791AR_FLAGS=$lt_AR_FLAGS
12792
12793# A C compiler.
12794LTCC=$lt_LTCC
12795
12796# LTCC compiler flags.
12797LTCFLAGS=$lt_LTCFLAGS
12798
12799# A language-specific compiler.
12800CC=$lt_compiler_CXX
12801
12802# Is the compiler the GNU C compiler?
12803with_gcc=$GCC_CXX
12804
12805# An ERE matcher.
12806EGREP=$lt_EGREP
12807
12808# The linker used to build libraries.
12809LD=$lt_LD_CXX
12810
12811# Whether we need hard or soft links.
12812LN_S=$lt_LN_S
12813
12814# A BSD-compatible nm program.
12815NM=$lt_NM
12816
12817# A symbol stripping program
12818STRIP=$lt_STRIP
12819
12820# Used to examine libraries when file_magic_cmd begins "file"
12821MAGIC_CMD=$MAGIC_CMD
12822
12823# Used on cygwin: DLL creation program.
12824DLLTOOL="$DLLTOOL"
12825
12826# Used on cygwin: object dumper.
12827OBJDUMP="$OBJDUMP"
12828
12829# Used on cygwin: assembler.
12830AS="$AS"
12831
12832# The name of the directory that contains temporary libtool files.
12833objdir=$objdir
12834
12835# How to create reloadable object files.
12836reload_flag=$lt_reload_flag
12837reload_cmds=$lt_reload_cmds
12838
12839# How to pass a linker flag through the compiler.
12840wl=$lt_lt_prog_compiler_wl_CXX
12841
12842# Object file suffix (normally "o").
12843objext="$ac_objext"
12844
12845# Old archive suffix (normally "a").
12846libext="$libext"
12847
12848# Shared library suffix (normally ".so").
12849shrext_cmds='$shrext_cmds'
12850
12851# Executable file suffix (normally "").
12852exeext="$exeext"
12853
12854# Additional compiler flags for building library objects.
12855pic_flag=$lt_lt_prog_compiler_pic_CXX
12856pic_mode=$pic_mode
12857
12858# What is the maximum length of a command?
12859max_cmd_len=$lt_cv_sys_max_cmd_len
12860
12861# Does compiler simultaneously support -c and -o options?
12862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12863
12864# Must we lock files when doing compilation?
12865need_locks=$lt_need_locks
12866
12867# Do we need the lib prefix for modules?
12868need_lib_prefix=$need_lib_prefix
12869
12870# Do we need a version for libraries?
12871need_version=$need_version
12872
12873# Whether dlopen is supported.
12874dlopen_support=$enable_dlopen
12875
12876# Whether dlopen of programs is supported.
12877dlopen_self=$enable_dlopen_self
12878
12879# Whether dlopen of statically linked programs is supported.
12880dlopen_self_static=$enable_dlopen_self_static
12881
12882# Compiler flag to prevent dynamic linking.
12883link_static_flag=$lt_lt_prog_compiler_static_CXX
12884
12885# Compiler flag to turn off builtin functions.
12886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12887
12888# Compiler flag to allow reflexive dlopens.
12889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12890
12891# Compiler flag to generate shared objects directly from archives.
12892whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12893
12894# Compiler flag to generate thread-safe objects.
12895thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12896
12897# Library versioning type.
12898version_type=$version_type
12899
12900# Format of library name prefix.
12901libname_spec=$lt_libname_spec
12902
12903# List of archive names.  First name is the real one, the rest are links.
12904# The last name is the one that the linker finds with -lNAME.
12905library_names_spec=$lt_library_names_spec
12906
12907# The coded name of the library, if different from the real name.
12908soname_spec=$lt_soname_spec
12909
12910# Commands used to build and install an old-style archive.
12911RANLIB=$lt_RANLIB
12912old_archive_cmds=$lt_old_archive_cmds_CXX
12913old_postinstall_cmds=$lt_old_postinstall_cmds
12914old_postuninstall_cmds=$lt_old_postuninstall_cmds
12915
12916# Create an old-style archive from a shared archive.
12917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12918
12919# Create a temporary old-style archive to link instead of a shared archive.
12920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12921
12922# Commands used to build and install a shared archive.
12923archive_cmds=$lt_archive_cmds_CXX
12924archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12925postinstall_cmds=$lt_postinstall_cmds
12926postuninstall_cmds=$lt_postuninstall_cmds
12927
12928# Commands used to build a loadable module (assumed same as above if empty)
12929module_cmds=$lt_module_cmds_CXX
12930module_expsym_cmds=$lt_module_expsym_cmds_CXX
12931
12932# Commands to strip libraries.
12933old_striplib=$lt_old_striplib
12934striplib=$lt_striplib
12935
12936# Dependencies to place before the objects being linked to create a
12937# shared library.
12938predep_objects=$lt_predep_objects_CXX
12939
12940# Dependencies to place after the objects being linked to create a
12941# shared library.
12942postdep_objects=$lt_postdep_objects_CXX
12943
12944# Dependencies to place before the objects being linked to create a
12945# shared library.
12946predeps=$lt_predeps_CXX
12947
12948# Dependencies to place after the objects being linked to create a
12949# shared library.
12950postdeps=$lt_postdeps_CXX
12951
12952# The library search path used internally by the compiler when linking
12953# a shared library.
12954compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12955
12956# Method to check whether dependent libraries are shared objects.
12957deplibs_check_method=$lt_deplibs_check_method
12958
12959# Command to use when deplibs_check_method == file_magic.
12960file_magic_cmd=$lt_file_magic_cmd
12961
12962# Flag that allows shared libraries with undefined symbols to be built.
12963allow_undefined_flag=$lt_allow_undefined_flag_CXX
12964
12965# Flag that forces no undefined symbols.
12966no_undefined_flag=$lt_no_undefined_flag_CXX
12967
12968# Commands used to finish a libtool library installation in a directory.
12969finish_cmds=$lt_finish_cmds
12970
12971# Same as above, but a single script fragment to be evaled but not shown.
12972finish_eval=$lt_finish_eval
12973
12974# Take the output of nm and produce a listing of raw symbols and C names.
12975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12976
12977# Transform the output of nm in a proper C declaration
12978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12979
12980# Transform the output of nm in a C name address pair
12981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12982
12983# This is the shared library runtime path variable.
12984runpath_var=$runpath_var
12985
12986# This is the shared library path variable.
12987shlibpath_var=$shlibpath_var
12988
12989# Is shlibpath searched before the hard-coded library search path?
12990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12991
12992# How to hardcode a shared library path into an executable.
12993hardcode_action=$hardcode_action_CXX
12994
12995# Whether we should hardcode library paths into libraries.
12996hardcode_into_libs=$hardcode_into_libs
12997
12998# Flag to hardcode \$libdir into a binary during linking.
12999# This must work even if \$libdir does not exist.
13000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13001
13002# If ld is used when linking, flag to hardcode \$libdir into
13003# a binary during linking. This must work even if \$libdir does
13004# not exist.
13005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13006
13007# Whether we need a single -rpath flag with a separated argument.
13008hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13009
13010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13011# resulting binary.
13012hardcode_direct=$hardcode_direct_CXX
13013
13014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13015# resulting binary.
13016hardcode_minus_L=$hardcode_minus_L_CXX
13017
13018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13019# the resulting binary.
13020hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13021
13022# Set to yes if building a shared library automatically hardcodes DIR into the library
13023# and all subsequent libraries and executables linked against it.
13024hardcode_automatic=$hardcode_automatic_CXX
13025
13026# Variables whose values should be saved in libtool wrapper scripts and
13027# restored at relink time.
13028variables_saved_for_relink="$variables_saved_for_relink"
13029
13030# Whether libtool must link a program against all its dependency libraries.
13031link_all_deplibs=$link_all_deplibs_CXX
13032
13033# Compile-time system search path for libraries
13034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13035
13036# Run-time system search path for libraries
13037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13038
13039# Fix the shell variable \$srcfile for the compiler.
13040fix_srcfile_path="$fix_srcfile_path_CXX"
13041
13042# Set to yes if exported symbols are required.
13043always_export_symbols=$always_export_symbols_CXX
13044
13045# The commands to list exported symbols.
13046export_symbols_cmds=$lt_export_symbols_cmds_CXX
13047
13048# The commands to extract the exported symbol list from a shared archive.
13049extract_expsyms_cmds=$lt_extract_expsyms_cmds
13050
13051# Symbols that should not be listed in the preloaded symbols.
13052exclude_expsyms=$lt_exclude_expsyms_CXX
13053
13054# Symbols that must always be exported.
13055include_expsyms=$lt_include_expsyms_CXX
13056
13057# ### END LIBTOOL TAG CONFIG: $tagname
13058
13059__EOF__
13060
13061
13062else
13063  # If there is no Makefile yet, we rely on a make rule to execute
13064  # `config.status --recheck' to rerun these tests and create the
13065  # libtool script then.
13066  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13067  if test -f "$ltmain_in"; then
13068    test -f Makefile && make "$ltmain"
13069  fi
13070fi
13071
13072
13073ac_ext=c
13074ac_cpp='$CPP $CPPFLAGS'
13075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078
13079CC=$lt_save_CC
13080LDCXX=$LD
13081LD=$lt_save_LD
13082GCC=$lt_save_GCC
13083with_gnu_ldcxx=$with_gnu_ld
13084with_gnu_ld=$lt_save_with_gnu_ld
13085lt_cv_path_LDCXX=$lt_cv_path_LD
13086lt_cv_path_LD=$lt_save_path_LD
13087lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13088lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13089
13090	else
13091	  tagname=""
13092	fi
13093	;;
13094
13095      F77)
13096	if test -n "$F77" && test "X$F77" != "Xno"; then
13097
13098ac_ext=f
13099ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13100ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13102
13103
13104archive_cmds_need_lc_F77=no
13105allow_undefined_flag_F77=
13106always_export_symbols_F77=no
13107archive_expsym_cmds_F77=
13108export_dynamic_flag_spec_F77=
13109hardcode_direct_F77=no
13110hardcode_libdir_flag_spec_F77=
13111hardcode_libdir_flag_spec_ld_F77=
13112hardcode_libdir_separator_F77=
13113hardcode_minus_L_F77=no
13114hardcode_automatic_F77=no
13115module_cmds_F77=
13116module_expsym_cmds_F77=
13117link_all_deplibs_F77=unknown
13118old_archive_cmds_F77=$old_archive_cmds
13119no_undefined_flag_F77=
13120whole_archive_flag_spec_F77=
13121enable_shared_with_static_runtimes_F77=no
13122
13123# Source file extension for f77 test sources.
13124ac_ext=f
13125
13126# Object file extension for compiled f77 test sources.
13127objext=o
13128objext_F77=$objext
13129
13130# Code to be used in simple compile tests
13131lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13132
13133# Code to be used in simple link tests
13134lt_simple_link_test_code="      program t\n      end\n"
13135
13136# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13137
13138# If no C compiler was specified, use CC.
13139LTCC=${LTCC-"$CC"}
13140
13141# If no C compiler flags were specified, use CFLAGS.
13142LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13143
13144# Allow CC to be a program name with arguments.
13145compiler=$CC
13146
13147
13148# save warnings/boilerplate of simple test code
13149ac_outfile=conftest.$ac_objext
13150printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13151eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13152_lt_compiler_boilerplate=`cat conftest.err`
13153$rm conftest*
13154
13155ac_outfile=conftest.$ac_objext
13156printf "$lt_simple_link_test_code" >conftest.$ac_ext
13157eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13158_lt_linker_boilerplate=`cat conftest.err`
13159$rm conftest*
13160
13161
13162# Allow CC to be a program name with arguments.
13163lt_save_CC="$CC"
13164CC=${F77-"f77"}
13165compiler=$CC
13166compiler_F77=$CC
13167for cc_temp in $compiler""; do
13168  case $cc_temp in
13169    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13170    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13171    \-*) ;;
13172    *) break;;
13173  esac
13174done
13175cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13176
13177
13178echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13179echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13180echo "$as_me:$LINENO: result: $can_build_shared" >&5
13181echo "${ECHO_T}$can_build_shared" >&6
13182
13183echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13184echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13185test "$can_build_shared" = "no" && enable_shared=no
13186
13187# On AIX, shared libraries and static libraries use the same namespace, and
13188# are all built from PIC.
13189case $host_os in
13190aix3*)
13191  test "$enable_shared" = yes && enable_static=no
13192  if test -n "$RANLIB"; then
13193    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13194    postinstall_cmds='$RANLIB $lib'
13195  fi
13196  ;;
13197aix4* | aix5*)
13198  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13199    test "$enable_shared" = yes && enable_static=no
13200  fi
13201  ;;
13202esac
13203echo "$as_me:$LINENO: result: $enable_shared" >&5
13204echo "${ECHO_T}$enable_shared" >&6
13205
13206echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13207echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13208# Make sure either enable_shared or enable_static is yes.
13209test "$enable_shared" = yes || enable_static=yes
13210echo "$as_me:$LINENO: result: $enable_static" >&5
13211echo "${ECHO_T}$enable_static" >&6
13212
13213GCC_F77="$G77"
13214LD_F77="$LD"
13215
13216lt_prog_compiler_wl_F77=
13217lt_prog_compiler_pic_F77=
13218lt_prog_compiler_static_F77=
13219
13220echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13221echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13222
13223  if test "$GCC" = yes; then
13224    lt_prog_compiler_wl_F77='-Wl,'
13225    lt_prog_compiler_static_F77='-static'
13226
13227    case $host_os in
13228      aix*)
13229      # All AIX code is PIC.
13230      if test "$host_cpu" = ia64; then
13231	# AIX 5 now supports IA64 processor
13232	lt_prog_compiler_static_F77='-Bstatic'
13233      fi
13234      ;;
13235
13236    amigaos*)
13237      # FIXME: we need at least 68020 code to build shared libraries, but
13238      # adding the `-m68020' flag to GCC prevents building anything better,
13239      # like `-m68040'.
13240      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13241      ;;
13242
13243    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13244      # PIC is the default for these OSes.
13245      ;;
13246
13247    mingw* | pw32* | os2*)
13248      # This hack is so that the source file can tell whether it is being
13249      # built for inclusion in a dll (and should export symbols for example).
13250      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13251      ;;
13252
13253    darwin* | rhapsody*)
13254      # PIC is the default on this platform
13255      # Common symbols not allowed in MH_DYLIB files
13256      lt_prog_compiler_pic_F77='-fno-common'
13257      ;;
13258
13259    interix3*)
13260      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13261      # Instead, we relocate shared libraries at runtime.
13262      ;;
13263
13264    msdosdjgpp*)
13265      # Just because we use GCC doesn't mean we suddenly get shared libraries
13266      # on systems that don't support them.
13267      lt_prog_compiler_can_build_shared_F77=no
13268      enable_shared=no
13269      ;;
13270
13271    sysv4*MP*)
13272      if test -d /usr/nec; then
13273	lt_prog_compiler_pic_F77=-Kconform_pic
13274      fi
13275      ;;
13276
13277    hpux*)
13278      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13279      # not for PA HP-UX.
13280      case $host_cpu in
13281      hppa*64*|ia64*)
13282	# +Z the default
13283	;;
13284      *)
13285	lt_prog_compiler_pic_F77='-fPIC'
13286	;;
13287      esac
13288      ;;
13289
13290    *)
13291      lt_prog_compiler_pic_F77='-fPIC'
13292      ;;
13293    esac
13294  else
13295    # PORTME Check for flag to pass linker flags through the system compiler.
13296    case $host_os in
13297    aix*)
13298      lt_prog_compiler_wl_F77='-Wl,'
13299      if test "$host_cpu" = ia64; then
13300	# AIX 5 now supports IA64 processor
13301	lt_prog_compiler_static_F77='-Bstatic'
13302      else
13303	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13304      fi
13305      ;;
13306      darwin*)
13307        # PIC is the default on this platform
13308        # Common symbols not allowed in MH_DYLIB files
13309       case $cc_basename in
13310         xlc*)
13311         lt_prog_compiler_pic_F77='-qnocommon'
13312         lt_prog_compiler_wl_F77='-Wl,'
13313         ;;
13314       esac
13315       ;;
13316
13317    mingw* | pw32* | os2*)
13318      # This hack is so that the source file can tell whether it is being
13319      # built for inclusion in a dll (and should export symbols for example).
13320      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13321      ;;
13322
13323    hpux9* | hpux10* | hpux11*)
13324      lt_prog_compiler_wl_F77='-Wl,'
13325      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13326      # not for PA HP-UX.
13327      case $host_cpu in
13328      hppa*64*|ia64*)
13329	# +Z the default
13330	;;
13331      *)
13332	lt_prog_compiler_pic_F77='+Z'
13333	;;
13334      esac
13335      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13336      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13337      ;;
13338
13339    irix5* | irix6* | nonstopux*)
13340      lt_prog_compiler_wl_F77='-Wl,'
13341      # PIC (with -KPIC) is the default.
13342      lt_prog_compiler_static_F77='-non_shared'
13343      ;;
13344
13345    newsos6)
13346      lt_prog_compiler_pic_F77='-KPIC'
13347      lt_prog_compiler_static_F77='-Bstatic'
13348      ;;
13349
13350    linux*)
13351      case $cc_basename in
13352      icc* | ecc*)
13353	lt_prog_compiler_wl_F77='-Wl,'
13354	lt_prog_compiler_pic_F77='-KPIC'
13355	lt_prog_compiler_static_F77='-static'
13356        ;;
13357      pgcc* | pgf77* | pgf90* | pgf95*)
13358        # Portland Group compilers (*not* the Pentium gcc compiler,
13359	# which looks to be a dead project)
13360	lt_prog_compiler_wl_F77='-Wl,'
13361	lt_prog_compiler_pic_F77='-fpic'
13362	lt_prog_compiler_static_F77='-Bstatic'
13363        ;;
13364      ccc*)
13365        lt_prog_compiler_wl_F77='-Wl,'
13366        # All Alpha code is PIC.
13367        lt_prog_compiler_static_F77='-non_shared'
13368        ;;
13369      esac
13370      ;;
13371
13372    osf3* | osf4* | osf5*)
13373      lt_prog_compiler_wl_F77='-Wl,'
13374      # All OSF/1 code is PIC.
13375      lt_prog_compiler_static_F77='-non_shared'
13376      ;;
13377
13378    solaris*)
13379      lt_prog_compiler_pic_F77='-KPIC'
13380      lt_prog_compiler_static_F77='-Bstatic'
13381      case $cc_basename in
13382      f77* | f90* | f95*)
13383	lt_prog_compiler_wl_F77='-Qoption ld ';;
13384      *)
13385	lt_prog_compiler_wl_F77='-Wl,';;
13386      esac
13387      ;;
13388
13389    sunos4*)
13390      lt_prog_compiler_wl_F77='-Qoption ld '
13391      lt_prog_compiler_pic_F77='-PIC'
13392      lt_prog_compiler_static_F77='-Bstatic'
13393      ;;
13394
13395    sysv4 | sysv4.2uw2* | sysv4.3*)
13396      lt_prog_compiler_wl_F77='-Wl,'
13397      lt_prog_compiler_pic_F77='-KPIC'
13398      lt_prog_compiler_static_F77='-Bstatic'
13399      ;;
13400
13401    sysv4*MP*)
13402      if test -d /usr/nec ;then
13403	lt_prog_compiler_pic_F77='-Kconform_pic'
13404	lt_prog_compiler_static_F77='-Bstatic'
13405      fi
13406      ;;
13407
13408    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13409      lt_prog_compiler_wl_F77='-Wl,'
13410      lt_prog_compiler_pic_F77='-KPIC'
13411      lt_prog_compiler_static_F77='-Bstatic'
13412      ;;
13413
13414    unicos*)
13415      lt_prog_compiler_wl_F77='-Wl,'
13416      lt_prog_compiler_can_build_shared_F77=no
13417      ;;
13418
13419    uts4*)
13420      lt_prog_compiler_pic_F77='-pic'
13421      lt_prog_compiler_static_F77='-Bstatic'
13422      ;;
13423
13424    *)
13425      lt_prog_compiler_can_build_shared_F77=no
13426      ;;
13427    esac
13428  fi
13429
13430echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13431echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13432
13433#
13434# Check to make sure the PIC flag actually works.
13435#
13436if test -n "$lt_prog_compiler_pic_F77"; then
13437
13438echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13440if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13441  echo $ECHO_N "(cached) $ECHO_C" >&6
13442else
13443  lt_prog_compiler_pic_works_F77=no
13444  ac_outfile=conftest.$ac_objext
13445   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13446   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13447   # Insert the option either (1) after the last *FLAGS variable, or
13448   # (2) before a word containing "conftest.", or (3) at the end.
13449   # Note that $ac_compile itself does not contain backslashes and begins
13450   # with a dollar sign (not a hyphen), so the echo should work correctly.
13451   # The option is referenced via a variable to avoid confusing sed.
13452   lt_compile=`echo "$ac_compile" | $SED \
13453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13455   -e 's:$: $lt_compiler_flag:'`
13456   (eval echo "\"\$as_me:13456: $lt_compile\"" >&5)
13457   (eval "$lt_compile" 2>conftest.err)
13458   ac_status=$?
13459   cat conftest.err >&5
13460   echo "$as_me:13460: \$? = $ac_status" >&5
13461   if (exit $ac_status) && test -s "$ac_outfile"; then
13462     # The compiler can only warn and ignore the option if not recognized
13463     # So say no if there are warnings other than the usual output.
13464     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13465     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13466     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13467       lt_prog_compiler_pic_works_F77=yes
13468     fi
13469   fi
13470   $rm conftest*
13471
13472fi
13473echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13474echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13475
13476if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13477    case $lt_prog_compiler_pic_F77 in
13478     "" | " "*) ;;
13479     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13480     esac
13481else
13482    lt_prog_compiler_pic_F77=
13483     lt_prog_compiler_can_build_shared_F77=no
13484fi
13485
13486fi
13487case $host_os in
13488  # For platforms which do not support PIC, -DPIC is meaningless:
13489  *djgpp*)
13490    lt_prog_compiler_pic_F77=
13491    ;;
13492  *)
13493    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13494    ;;
13495esac
13496
13497#
13498# Check to make sure the static flag actually works.
13499#
13500wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13501echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13502echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13503if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13504  echo $ECHO_N "(cached) $ECHO_C" >&6
13505else
13506  lt_prog_compiler_static_works_F77=no
13507   save_LDFLAGS="$LDFLAGS"
13508   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13509   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13510   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13511     # The linker can only warn and ignore the option if not recognized
13512     # So say no if there are warnings
13513     if test -s conftest.err; then
13514       # Append any errors to the config.log.
13515       cat conftest.err 1>&5
13516       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13517       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13518       if diff conftest.exp conftest.er2 >/dev/null; then
13519         lt_prog_compiler_static_works_F77=yes
13520       fi
13521     else
13522       lt_prog_compiler_static_works_F77=yes
13523     fi
13524   fi
13525   $rm conftest*
13526   LDFLAGS="$save_LDFLAGS"
13527
13528fi
13529echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13530echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13531
13532if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13533    :
13534else
13535    lt_prog_compiler_static_F77=
13536fi
13537
13538
13539echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13540echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13541if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13542  echo $ECHO_N "(cached) $ECHO_C" >&6
13543else
13544  lt_cv_prog_compiler_c_o_F77=no
13545   $rm -r conftest 2>/dev/null
13546   mkdir conftest
13547   cd conftest
13548   mkdir out
13549   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13550
13551   lt_compiler_flag="-o out/conftest2.$ac_objext"
13552   # Insert the option either (1) after the last *FLAGS variable, or
13553   # (2) before a word containing "conftest.", or (3) at the end.
13554   # Note that $ac_compile itself does not contain backslashes and begins
13555   # with a dollar sign (not a hyphen), so the echo should work correctly.
13556   lt_compile=`echo "$ac_compile" | $SED \
13557   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13558   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13559   -e 's:$: $lt_compiler_flag:'`
13560   (eval echo "\"\$as_me:13560: $lt_compile\"" >&5)
13561   (eval "$lt_compile" 2>out/conftest.err)
13562   ac_status=$?
13563   cat out/conftest.err >&5
13564   echo "$as_me:13564: \$? = $ac_status" >&5
13565   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13566   then
13567     # The compiler can only warn and ignore the option if not recognized
13568     # So say no if there are warnings
13569     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13570     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13571     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13572       lt_cv_prog_compiler_c_o_F77=yes
13573     fi
13574   fi
13575   chmod u+w . 2>&5
13576   $rm conftest*
13577   # SGI C++ compiler will create directory out/ii_files/ for
13578   # template instantiation
13579   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13580   $rm out/* && rmdir out
13581   cd ..
13582   rmdir conftest
13583   $rm conftest*
13584
13585fi
13586echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13588
13589
13590hard_links="nottested"
13591if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13592  # do not overwrite the value of need_locks provided by the user
13593  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13595  hard_links=yes
13596  $rm conftest*
13597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13598  touch conftest.a
13599  ln conftest.a conftest.b 2>&5 || hard_links=no
13600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13601  echo "$as_me:$LINENO: result: $hard_links" >&5
13602echo "${ECHO_T}$hard_links" >&6
13603  if test "$hard_links" = no; then
13604    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13606    need_locks=warn
13607  fi
13608else
13609  need_locks=no
13610fi
13611
13612echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13614
13615  runpath_var=
13616  allow_undefined_flag_F77=
13617  enable_shared_with_static_runtimes_F77=no
13618  archive_cmds_F77=
13619  archive_expsym_cmds_F77=
13620  old_archive_From_new_cmds_F77=
13621  old_archive_from_expsyms_cmds_F77=
13622  export_dynamic_flag_spec_F77=
13623  whole_archive_flag_spec_F77=
13624  thread_safe_flag_spec_F77=
13625  hardcode_libdir_flag_spec_F77=
13626  hardcode_libdir_flag_spec_ld_F77=
13627  hardcode_libdir_separator_F77=
13628  hardcode_direct_F77=no
13629  hardcode_minus_L_F77=no
13630  hardcode_shlibpath_var_F77=unsupported
13631  link_all_deplibs_F77=unknown
13632  hardcode_automatic_F77=no
13633  module_cmds_F77=
13634  module_expsym_cmds_F77=
13635  always_export_symbols_F77=no
13636  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13637  # include_expsyms should be a list of space-separated symbols to be *always*
13638  # included in the symbol list
13639  include_expsyms_F77=
13640  # exclude_expsyms can be an extended regexp of symbols to exclude
13641  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13642  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13643  # as well as any symbol that contains `d'.
13644  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13645  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13646  # platforms (ab)use it in PIC code, but their linkers get confused if
13647  # the symbol is explicitly referenced.  Since portable code cannot
13648  # rely on this symbol name, it's probably fine to never include it in
13649  # preloaded symbol tables.
13650  extract_expsyms_cmds=
13651  # Just being paranoid about ensuring that cc_basename is set.
13652  for cc_temp in $compiler""; do
13653  case $cc_temp in
13654    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13655    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13656    \-*) ;;
13657    *) break;;
13658  esac
13659done
13660cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13661
13662  case $host_os in
13663  cygwin* | mingw* | pw32*)
13664    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13665    # When not using gcc, we currently assume that we are using
13666    # Microsoft Visual C++.
13667    if test "$GCC" != yes; then
13668      with_gnu_ld=no
13669    fi
13670    ;;
13671  interix*)
13672    # we just hope/assume this is gcc and not c89 (= MSVC++)
13673    with_gnu_ld=yes
13674    ;;
13675  openbsd*)
13676    with_gnu_ld=no
13677    ;;
13678  esac
13679
13680  ld_shlibs_F77=yes
13681  if test "$with_gnu_ld" = yes; then
13682    # If archive_cmds runs LD, not CC, wlarc should be empty
13683    wlarc='${wl}'
13684
13685    # Set some defaults for GNU ld with shared library support. These
13686    # are reset later if shared libraries are not supported. Putting them
13687    # here allows them to be overridden if necessary.
13688    runpath_var=LD_RUN_PATH
13689    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13690    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13691    # ancient GNU ld didn't support --whole-archive et. al.
13692    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13693	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13694      else
13695  	whole_archive_flag_spec_F77=
13696    fi
13697    supports_anon_versioning=no
13698    case `$LD -v 2>/dev/null` in
13699      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13700      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13701      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13702      *\ 2.11.*) ;; # other 2.11 versions
13703      *) supports_anon_versioning=yes ;;
13704    esac
13705
13706    # See if GNU ld supports shared libraries.
13707    case $host_os in
13708    aix3* | aix4* | aix5*)
13709      # On AIX/PPC, the GNU linker is very broken
13710      if test "$host_cpu" != ia64; then
13711	ld_shlibs_F77=no
13712	cat <<EOF 1>&2
13713
13714*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13715*** to be unable to reliably create shared libraries on AIX.
13716*** Therefore, libtool is disabling shared libraries support.  If you
13717*** really care for shared libraries, you may want to modify your PATH
13718*** so that a non-GNU linker is found, and then restart.
13719
13720EOF
13721      fi
13722      ;;
13723
13724    amigaos*)
13725      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)'
13726      hardcode_libdir_flag_spec_F77='-L$libdir'
13727      hardcode_minus_L_F77=yes
13728
13729      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13730      # that the semantics of dynamic libraries on AmigaOS, at least up
13731      # to version 4, is to share data among multiple programs linked
13732      # with the same dynamic library.  Since this doesn't match the
13733      # behavior of shared libraries on other platforms, we can't use
13734      # them.
13735      ld_shlibs_F77=no
13736      ;;
13737
13738    beos*)
13739      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13740	allow_undefined_flag_F77=unsupported
13741	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13742	# support --undefined.  This deserves some investigation.  FIXME
13743	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744      else
13745	ld_shlibs_F77=no
13746      fi
13747      ;;
13748
13749    cygwin* | mingw* | pw32*)
13750      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13751      # as there is no search path for DLLs.
13752      hardcode_libdir_flag_spec_F77='-L$libdir'
13753      allow_undefined_flag_F77=unsupported
13754      always_export_symbols_F77=no
13755      enable_shared_with_static_runtimes_F77=yes
13756      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13757
13758      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13759        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13760	# If the export-symbols file already is a .def file (1st line
13761	# is EXPORTS), use it as is; otherwise, prepend...
13762	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13763	  cp $export_symbols $output_objdir/$soname.def;
13764	else
13765	  echo EXPORTS > $output_objdir/$soname.def;
13766	  cat $export_symbols >> $output_objdir/$soname.def;
13767	fi~
13768	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13769      else
13770	ld_shlibs_F77=no
13771      fi
13772      ;;
13773
13774    interix3*)
13775      hardcode_direct_F77=no
13776      hardcode_shlibpath_var_F77=no
13777      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13778      export_dynamic_flag_spec_F77='${wl}-E'
13779      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13780      # Instead, shared libraries are loaded at an image base (0x10000000 by
13781      # default) and relocated if they conflict, which is a slow very memory
13782      # consuming and fragmenting process.  To avoid this, we pick a random,
13783      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13784      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13785      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'
13786      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'
13787      ;;
13788
13789    linux*)
13790      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13791	tmp_addflag=
13792	case $cc_basename,$host_cpu in
13793	pgcc*)				# Portland Group C compiler
13794	  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'
13795	  tmp_addflag=' $pic_flag'
13796	  ;;
13797	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13798	  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'
13799	  tmp_addflag=' $pic_flag -Mnomain' ;;
13800	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13801	  tmp_addflag=' -i_dynamic' ;;
13802	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13803	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13804	ifc* | ifort*)			# Intel Fortran compiler
13805	  tmp_addflag=' -nofor_main' ;;
13806	esac
13807	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808
13809	if test $supports_anon_versioning = yes; then
13810	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13811  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13812  $echo "local: *; };" >> $output_objdir/$libname.ver~
13813	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13814	fi
13815      else
13816	ld_shlibs_F77=no
13817      fi
13818      ;;
13819
13820    netbsd*)
13821      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13822	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13823	wlarc=
13824      else
13825	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827      fi
13828      ;;
13829
13830    solaris*)
13831      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13832	ld_shlibs_F77=no
13833	cat <<EOF 1>&2
13834
13835*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13836*** create shared libraries on Solaris systems.  Therefore, libtool
13837*** is disabling shared libraries support.  We urge you to upgrade GNU
13838*** binutils to release 2.9.1 or newer.  Another option is to modify
13839*** your PATH or compiler configuration so that the native linker is
13840*** used, and then restart.
13841
13842EOF
13843      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13844	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13845	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13846      else
13847	ld_shlibs_F77=no
13848      fi
13849      ;;
13850
13851    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13852      case `$LD -v 2>&1` in
13853        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13854	ld_shlibs_F77=no
13855	cat <<_LT_EOF 1>&2
13856
13857*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13858*** reliably create shared libraries on SCO systems.  Therefore, libtool
13859*** is disabling shared libraries support.  We urge you to upgrade GNU
13860*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13861*** your PATH or compiler configuration so that the native linker is
13862*** used, and then restart.
13863
13864_LT_EOF
13865	;;
13866	*)
13867	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13868	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13869	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13870	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13871	  else
13872	    ld_shlibs_F77=no
13873	  fi
13874	;;
13875      esac
13876      ;;
13877
13878    sunos4*)
13879      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13880      wlarc=
13881      hardcode_direct_F77=yes
13882      hardcode_shlibpath_var_F77=no
13883      ;;
13884
13885    *)
13886      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13887	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13889      else
13890	ld_shlibs_F77=no
13891      fi
13892      ;;
13893    esac
13894
13895    if test "$ld_shlibs_F77" = no; then
13896      runpath_var=
13897      hardcode_libdir_flag_spec_F77=
13898      export_dynamic_flag_spec_F77=
13899      whole_archive_flag_spec_F77=
13900    fi
13901  else
13902    # PORTME fill in a description of your system's linker (not GNU ld)
13903    case $host_os in
13904    aix3*)
13905      allow_undefined_flag_F77=unsupported
13906      always_export_symbols_F77=yes
13907      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'
13908      # Note: this linker hardcodes the directories in LIBPATH if there
13909      # are no directories specified by -L.
13910      hardcode_minus_L_F77=yes
13911      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13912	# Neither direct hardcoding nor static linking is supported with a
13913	# broken collect2.
13914	hardcode_direct_F77=unsupported
13915      fi
13916      ;;
13917
13918    aix4* | aix5*)
13919      if test "$host_cpu" = ia64; then
13920	# On IA64, the linker does run time linking by default, so we don't
13921	# have to do anything special.
13922	aix_use_runtimelinking=no
13923	exp_sym_flag='-Bexport'
13924	no_entry_flag=""
13925      else
13926	# If we're using GNU nm, then we don't want the "-C" option.
13927	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13928	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13929	  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'
13930	else
13931	  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'
13932	fi
13933	aix_use_runtimelinking=no
13934
13935	# Test if we are trying to use run time linking or normal
13936	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13937	# need to do runtime linking.
13938	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13939	  for ld_flag in $LDFLAGS; do
13940  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13941  	    aix_use_runtimelinking=yes
13942  	    break
13943  	  fi
13944	  done
13945	  ;;
13946	esac
13947
13948	exp_sym_flag='-bexport'
13949	no_entry_flag='-bnoentry'
13950      fi
13951
13952      # When large executables or shared objects are built, AIX ld can
13953      # have problems creating the table of contents.  If linking a library
13954      # or program results in "error TOC overflow" add -mminimal-toc to
13955      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13956      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13957
13958      archive_cmds_F77=''
13959      hardcode_direct_F77=yes
13960      hardcode_libdir_separator_F77=':'
13961      link_all_deplibs_F77=yes
13962
13963      if test "$GCC" = yes; then
13964	case $host_os in aix4.[012]|aix4.[012].*)
13965	# We only want to do this on AIX 4.2 and lower, the check
13966	# below for broken collect2 doesn't work under 4.3+
13967	  collect2name=`${CC} -print-prog-name=collect2`
13968	  if test -f "$collect2name" && \
13969  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13970	  then
13971  	  # We have reworked collect2
13972  	  hardcode_direct_F77=yes
13973	  else
13974  	  # We have old collect2
13975  	  hardcode_direct_F77=unsupported
13976  	  # It fails to find uninstalled libraries when the uninstalled
13977  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13978  	  # to unsupported forces relinking
13979  	  hardcode_minus_L_F77=yes
13980  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13981  	  hardcode_libdir_separator_F77=
13982	  fi
13983	  ;;
13984	esac
13985	shared_flag='-shared'
13986	if test "$aix_use_runtimelinking" = yes; then
13987	  shared_flag="$shared_flag "'${wl}-G'
13988	fi
13989      else
13990	# not using gcc
13991	if test "$host_cpu" = ia64; then
13992  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13993  	# chokes on -Wl,-G. The following line is correct:
13994	  shared_flag='-G'
13995	else
13996	  if test "$aix_use_runtimelinking" = yes; then
13997	    shared_flag='${wl}-G'
13998	  else
13999	    shared_flag='${wl}-bM:SRE'
14000	  fi
14001	fi
14002      fi
14003
14004      # It seems that -bexpall does not export symbols beginning with
14005      # underscore (_), so it is better to generate a list of symbols to export.
14006      always_export_symbols_F77=yes
14007      if test "$aix_use_runtimelinking" = yes; then
14008	# Warning - without using the other runtime loading flags (-brtl),
14009	# -berok will link without error, but may produce a broken library.
14010	allow_undefined_flag_F77='-berok'
14011       # Determine the default libpath from the value encoded in an empty executable.
14012       cat >conftest.$ac_ext <<_ACEOF
14013      program main
14014
14015      end
14016_ACEOF
14017rm -f conftest.$ac_objext conftest$ac_exeext
14018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019  (eval $ac_link) 2>conftest.er1
14020  ac_status=$?
14021  grep -v '^ *+' conftest.er1 >conftest.err
14022  rm -f conftest.er1
14023  cat conftest.err >&5
14024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025  (exit $ac_status); } &&
14026	 { ac_try='test -z "$ac_f77_werror_flag"
14027			 || test ! -s conftest.err'
14028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029  (eval $ac_try) 2>&5
14030  ac_status=$?
14031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032  (exit $ac_status); }; } &&
14033	 { ac_try='test -s conftest$ac_exeext'
14034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035  (eval $ac_try) 2>&5
14036  ac_status=$?
14037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038  (exit $ac_status); }; }; then
14039
14040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14041}'`
14042# Check for a 64-bit object if we didn't find anything.
14043if 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; }
14044}'`; fi
14045else
14046  echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049fi
14050rm -f conftest.err conftest.$ac_objext \
14051      conftest$ac_exeext conftest.$ac_ext
14052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14053
14054       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14055	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"
14056       else
14057	if test "$host_cpu" = ia64; then
14058	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14059	  allow_undefined_flag_F77="-z nodefs"
14060	  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"
14061	else
14062	 # Determine the default libpath from the value encoded in an empty executable.
14063	 cat >conftest.$ac_ext <<_ACEOF
14064      program main
14065
14066      end
14067_ACEOF
14068rm -f conftest.$ac_objext conftest$ac_exeext
14069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14070  (eval $ac_link) 2>conftest.er1
14071  ac_status=$?
14072  grep -v '^ *+' conftest.er1 >conftest.err
14073  rm -f conftest.er1
14074  cat conftest.err >&5
14075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076  (exit $ac_status); } &&
14077	 { ac_try='test -z "$ac_f77_werror_flag"
14078			 || test ! -s conftest.err'
14079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080  (eval $ac_try) 2>&5
14081  ac_status=$?
14082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083  (exit $ac_status); }; } &&
14084	 { ac_try='test -s conftest$ac_exeext'
14085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086  (eval $ac_try) 2>&5
14087  ac_status=$?
14088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089  (exit $ac_status); }; }; then
14090
14091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14092}'`
14093# Check for a 64-bit object if we didn't find anything.
14094if 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; }
14095}'`; fi
14096else
14097  echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
14100fi
14101rm -f conftest.err conftest.$ac_objext \
14102      conftest$ac_exeext conftest.$ac_ext
14103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14104
14105	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14106	  # Warning - without using the other run time loading flags,
14107	  # -berok will link without error, but may produce a broken library.
14108	  no_undefined_flag_F77=' ${wl}-bernotok'
14109	  allow_undefined_flag_F77=' ${wl}-berok'
14110	  # Exported symbols can be pulled into shared objects from archives
14111	  whole_archive_flag_spec_F77='$convenience'
14112	  archive_cmds_need_lc_F77=yes
14113	  # This is similar to how AIX traditionally builds its shared libraries.
14114	  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'
14115	fi
14116      fi
14117      ;;
14118
14119    amigaos*)
14120      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)'
14121      hardcode_libdir_flag_spec_F77='-L$libdir'
14122      hardcode_minus_L_F77=yes
14123      # see comment about different semantics on the GNU ld section
14124      ld_shlibs_F77=no
14125      ;;
14126
14127    bsdi[45]*)
14128      export_dynamic_flag_spec_F77=-rdynamic
14129      ;;
14130
14131    cygwin* | mingw* | pw32*)
14132      # When not using gcc, we currently assume that we are using
14133      # Microsoft Visual C++.
14134      # hardcode_libdir_flag_spec is actually meaningless, as there is
14135      # no search path for DLLs.
14136      hardcode_libdir_flag_spec_F77=' '
14137      allow_undefined_flag_F77=unsupported
14138      # Tell ltmain to make .lib files, not .a files.
14139      libext=lib
14140      # Tell ltmain to make .dll files, not .so files.
14141      shrext_cmds=".dll"
14142      # FIXME: Setting linknames here is a bad hack.
14143      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14144      # The linker will automatically build a .lib file if we build a DLL.
14145      old_archive_From_new_cmds_F77='true'
14146      # FIXME: Should let the user specify the lib program.
14147      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14148      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14149      enable_shared_with_static_runtimes_F77=yes
14150      ;;
14151
14152    darwin* | rhapsody*)
14153      case $host_os in
14154        rhapsody* | darwin1.[012])
14155         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14156         ;;
14157       *) # Darwin 1.3 on
14158         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14159           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14160         else
14161           case ${MACOSX_DEPLOYMENT_TARGET} in
14162             10.[012])
14163               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14164               ;;
14165             10.*)
14166               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14167               ;;
14168           esac
14169         fi
14170         ;;
14171      esac
14172      archive_cmds_need_lc_F77=no
14173      hardcode_direct_F77=no
14174      hardcode_automatic_F77=yes
14175      hardcode_shlibpath_var_F77=unsupported
14176      whole_archive_flag_spec_F77=''
14177      link_all_deplibs_F77=yes
14178    if test "$GCC" = yes ; then
14179    	output_verbose_link_cmd='echo'
14180        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14181      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14182      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14183      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}'
14184      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}'
14185    else
14186      case $cc_basename in
14187        xlc*)
14188         output_verbose_link_cmd='echo'
14189         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14190         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14191          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14192         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}'
14193          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}'
14194          ;;
14195       *)
14196         ld_shlibs_F77=no
14197          ;;
14198      esac
14199    fi
14200      ;;
14201
14202    dgux*)
14203      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204      hardcode_libdir_flag_spec_F77='-L$libdir'
14205      hardcode_shlibpath_var_F77=no
14206      ;;
14207
14208    freebsd1*)
14209      ld_shlibs_F77=no
14210      ;;
14211
14212    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14213    # support.  Future versions do this automatically, but an explicit c++rt0.o
14214    # does not break anything, and helps significantly (at the cost of a little
14215    # extra space).
14216    freebsd2.2*)
14217      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14218      hardcode_libdir_flag_spec_F77='-R$libdir'
14219      hardcode_direct_F77=yes
14220      hardcode_shlibpath_var_F77=no
14221      ;;
14222
14223    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14224    freebsd2*)
14225      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14226      hardcode_direct_F77=yes
14227      hardcode_minus_L_F77=yes
14228      hardcode_shlibpath_var_F77=no
14229      ;;
14230
14231    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14232    freebsd* | kfreebsd*-gnu | dragonfly*)
14233      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14234      hardcode_libdir_flag_spec_F77='-R$libdir'
14235      hardcode_direct_F77=yes
14236      hardcode_shlibpath_var_F77=no
14237      ;;
14238
14239    hpux9*)
14240      if test "$GCC" = yes; then
14241	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'
14242      else
14243	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'
14244      fi
14245      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14246      hardcode_libdir_separator_F77=:
14247      hardcode_direct_F77=yes
14248
14249      # hardcode_minus_L: Not really in the search PATH,
14250      # but as the default location of the library.
14251      hardcode_minus_L_F77=yes
14252      export_dynamic_flag_spec_F77='${wl}-E'
14253      ;;
14254
14255    hpux10*)
14256      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14257	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14258      else
14259	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14260      fi
14261      if test "$with_gnu_ld" = no; then
14262	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14263	hardcode_libdir_separator_F77=:
14264
14265	hardcode_direct_F77=yes
14266	export_dynamic_flag_spec_F77='${wl}-E'
14267
14268	# hardcode_minus_L: Not really in the search PATH,
14269	# but as the default location of the library.
14270	hardcode_minus_L_F77=yes
14271      fi
14272      ;;
14273
14274    hpux11*)
14275      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14276	case $host_cpu in
14277	hppa*64*)
14278	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279	  ;;
14280	ia64*)
14281	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14282	  ;;
14283	*)
14284	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14285	  ;;
14286	esac
14287      else
14288	case $host_cpu in
14289	hppa*64*)
14290	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14291	  ;;
14292	ia64*)
14293	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14294	  ;;
14295	*)
14296	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14297	  ;;
14298	esac
14299      fi
14300      if test "$with_gnu_ld" = no; then
14301	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14302	hardcode_libdir_separator_F77=:
14303
14304	case $host_cpu in
14305	hppa*64*|ia64*)
14306	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14307	  hardcode_direct_F77=no
14308	  hardcode_shlibpath_var_F77=no
14309	  ;;
14310	*)
14311	  hardcode_direct_F77=yes
14312	  export_dynamic_flag_spec_F77='${wl}-E'
14313
14314	  # hardcode_minus_L: Not really in the search PATH,
14315	  # but as the default location of the library.
14316	  hardcode_minus_L_F77=yes
14317	  ;;
14318	esac
14319      fi
14320      ;;
14321
14322    irix5* | irix6* | nonstopux*)
14323      if test "$GCC" = yes; then
14324	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'
14325      else
14326	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'
14327	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14328      fi
14329      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14330      hardcode_libdir_separator_F77=:
14331      link_all_deplibs_F77=yes
14332      ;;
14333
14334    netbsd*)
14335      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14336	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14337      else
14338	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14339      fi
14340      hardcode_libdir_flag_spec_F77='-R$libdir'
14341      hardcode_direct_F77=yes
14342      hardcode_shlibpath_var_F77=no
14343      ;;
14344
14345    newsos6)
14346      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347      hardcode_direct_F77=yes
14348      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14349      hardcode_libdir_separator_F77=:
14350      hardcode_shlibpath_var_F77=no
14351      ;;
14352
14353    openbsd*)
14354      hardcode_direct_F77=yes
14355      hardcode_shlibpath_var_F77=no
14356      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14357	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14358	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14359	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14360	export_dynamic_flag_spec_F77='${wl}-E'
14361      else
14362       case $host_os in
14363	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14364	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14365	   hardcode_libdir_flag_spec_F77='-R$libdir'
14366	   ;;
14367	 *)
14368	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14369	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14370	   ;;
14371       esac
14372      fi
14373      ;;
14374
14375    os2*)
14376      hardcode_libdir_flag_spec_F77='-L$libdir'
14377      hardcode_minus_L_F77=yes
14378      allow_undefined_flag_F77=unsupported
14379      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'
14380      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14381      ;;
14382
14383    osf3*)
14384      if test "$GCC" = yes; then
14385	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14386	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'
14387      else
14388	allow_undefined_flag_F77=' -expect_unresolved \*'
14389	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'
14390      fi
14391      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14392      hardcode_libdir_separator_F77=:
14393      ;;
14394
14395    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14396      if test "$GCC" = yes; then
14397	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14398	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'
14399	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14400      else
14401	allow_undefined_flag_F77=' -expect_unresolved \*'
14402	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'
14403	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~
14404	$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'
14405
14406	# Both c and cxx compiler support -rpath directly
14407	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14408      fi
14409      hardcode_libdir_separator_F77=:
14410      ;;
14411
14412    solaris*)
14413      no_undefined_flag_F77=' -z text'
14414      if test "$GCC" = yes; then
14415	wlarc='${wl}'
14416	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14417	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14418	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14419      else
14420	wlarc=''
14421	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14423  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14424      fi
14425      hardcode_libdir_flag_spec_F77='-R$libdir'
14426      hardcode_shlibpath_var_F77=no
14427      case $host_os in
14428      solaris2.[0-5] | solaris2.[0-5].*) ;;
14429      *)
14430 	# The compiler driver will combine linker options so we
14431 	# cannot just pass the convience library names through
14432 	# without $wl, iff we do not link with $LD.
14433 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14434 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14435 	case $wlarc in
14436 	'')
14437 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14438 	*)
14439 	  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' ;;
14440 	esac ;;
14441      esac
14442      link_all_deplibs_F77=yes
14443      ;;
14444
14445    sunos4*)
14446      if test "x$host_vendor" = xsequent; then
14447	# Use $CC to link under sequent, because it throws in some extra .o
14448	# files that make .init and .fini sections work.
14449	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14450      else
14451	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14452      fi
14453      hardcode_libdir_flag_spec_F77='-L$libdir'
14454      hardcode_direct_F77=yes
14455      hardcode_minus_L_F77=yes
14456      hardcode_shlibpath_var_F77=no
14457      ;;
14458
14459    sysv4)
14460      case $host_vendor in
14461	sni)
14462	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463	  hardcode_direct_F77=yes # is this really true???
14464	;;
14465	siemens)
14466	  ## LD is ld it makes a PLAMLIB
14467	  ## CC just makes a GrossModule.
14468	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14469	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14470	  hardcode_direct_F77=no
14471        ;;
14472	motorola)
14473	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14474	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14475	;;
14476      esac
14477      runpath_var='LD_RUN_PATH'
14478      hardcode_shlibpath_var_F77=no
14479      ;;
14480
14481    sysv4.3*)
14482      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483      hardcode_shlibpath_var_F77=no
14484      export_dynamic_flag_spec_F77='-Bexport'
14485      ;;
14486
14487    sysv4*MP*)
14488      if test -d /usr/nec; then
14489	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490	hardcode_shlibpath_var_F77=no
14491	runpath_var=LD_RUN_PATH
14492	hardcode_runpath_var=yes
14493	ld_shlibs_F77=yes
14494      fi
14495      ;;
14496
14497    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14498      no_undefined_flag_F77='${wl}-z,text'
14499      archive_cmds_need_lc_F77=no
14500      hardcode_shlibpath_var_F77=no
14501      runpath_var='LD_RUN_PATH'
14502
14503      if test "$GCC" = yes; then
14504	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506      else
14507	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509      fi
14510      ;;
14511
14512    sysv5* | sco3.2v5* | sco5v6*)
14513      # Note: We can NOT use -z defs as we might desire, because we do not
14514      # link with -lc, and that would cause any symbols used from libc to
14515      # always be unresolved, which means just about no library would
14516      # ever link correctly.  If we're not using GNU ld we use -z text
14517      # though, which does catch some bad symbols but isn't as heavy-handed
14518      # as -z defs.
14519      no_undefined_flag_F77='${wl}-z,text'
14520      allow_undefined_flag_F77='${wl}-z,nodefs'
14521      archive_cmds_need_lc_F77=no
14522      hardcode_shlibpath_var_F77=no
14523      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14524      hardcode_libdir_separator_F77=':'
14525      link_all_deplibs_F77=yes
14526      export_dynamic_flag_spec_F77='${wl}-Bexport'
14527      runpath_var='LD_RUN_PATH'
14528
14529      if test "$GCC" = yes; then
14530	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14532      else
14533	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14534	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535      fi
14536      ;;
14537
14538    uts4*)
14539      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540      hardcode_libdir_flag_spec_F77='-L$libdir'
14541      hardcode_shlibpath_var_F77=no
14542      ;;
14543
14544    *)
14545      ld_shlibs_F77=no
14546      ;;
14547    esac
14548  fi
14549
14550echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14551echo "${ECHO_T}$ld_shlibs_F77" >&6
14552test "$ld_shlibs_F77" = no && can_build_shared=no
14553
14554#
14555# Do we need to explicitly link libc?
14556#
14557case "x$archive_cmds_need_lc_F77" in
14558x|xyes)
14559  # Assume -lc should be added
14560  archive_cmds_need_lc_F77=yes
14561
14562  if test "$enable_shared" = yes && test "$GCC" = yes; then
14563    case $archive_cmds_F77 in
14564    *'~'*)
14565      # FIXME: we may have to deal with multi-command sequences.
14566      ;;
14567    '$CC '*)
14568      # Test whether the compiler implicitly links with -lc since on some
14569      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14570      # to ld, don't add -lc before -lgcc.
14571      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14572echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14573      $rm conftest*
14574      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577  (eval $ac_compile) 2>&5
14578  ac_status=$?
14579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580  (exit $ac_status); } 2>conftest.err; then
14581        soname=conftest
14582        lib=conftest
14583        libobjs=conftest.$ac_objext
14584        deplibs=
14585        wl=$lt_prog_compiler_wl_F77
14586	pic_flag=$lt_prog_compiler_pic_F77
14587        compiler_flags=-v
14588        linker_flags=-v
14589        verstring=
14590        output_objdir=.
14591        libname=conftest
14592        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14593        allow_undefined_flag_F77=
14594        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14595  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14596  ac_status=$?
14597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598  (exit $ac_status); }
14599        then
14600	  archive_cmds_need_lc_F77=no
14601        else
14602	  archive_cmds_need_lc_F77=yes
14603        fi
14604        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14605      else
14606        cat conftest.err 1>&5
14607      fi
14608      $rm conftest*
14609      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14610echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14611      ;;
14612    esac
14613  fi
14614  ;;
14615esac
14616
14617echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14618echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14619library_names_spec=
14620libname_spec='lib$name'
14621soname_spec=
14622shrext_cmds=".so"
14623postinstall_cmds=
14624postuninstall_cmds=
14625finish_cmds=
14626finish_eval=
14627shlibpath_var=
14628shlibpath_overrides_runpath=unknown
14629version_type=none
14630dynamic_linker="$host_os ld.so"
14631sys_lib_dlsearch_path_spec="/lib /usr/lib"
14632if test "$GCC" = yes; then
14633  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14634  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14635    # if the path contains ";" then we assume it to be the separator
14636    # otherwise default to the standard path separator (i.e. ":") - it is
14637    # assumed that no part of a normal pathname contains ";" but that should
14638    # okay in the real world where ";" in dirpaths is itself problematic.
14639    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14640  else
14641    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14642  fi
14643else
14644  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14645fi
14646need_lib_prefix=unknown
14647hardcode_into_libs=no
14648
14649# when you set need_version to no, make sure it does not cause -set_version
14650# flags to be left without arguments
14651need_version=unknown
14652
14653case $host_os in
14654aix3*)
14655  version_type=linux
14656  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14657  shlibpath_var=LIBPATH
14658
14659  # AIX 3 has no versioning support, so we append a major version to the name.
14660  soname_spec='${libname}${release}${shared_ext}$major'
14661  ;;
14662
14663aix4* | aix5*)
14664  version_type=linux
14665  need_lib_prefix=no
14666  need_version=no
14667  hardcode_into_libs=yes
14668  if test "$host_cpu" = ia64; then
14669    # AIX 5 supports IA64
14670    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14671    shlibpath_var=LD_LIBRARY_PATH
14672  else
14673    # With GCC up to 2.95.x, collect2 would create an import file
14674    # for dependence libraries.  The import file would start with
14675    # the line `#! .'.  This would cause the generated library to
14676    # depend on `.', always an invalid library.  This was fixed in
14677    # development snapshots of GCC prior to 3.0.
14678    case $host_os in
14679      aix4 | aix4.[01] | aix4.[01].*)
14680      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14681	   echo ' yes '
14682	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14683	:
14684      else
14685	can_build_shared=no
14686      fi
14687      ;;
14688    esac
14689    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14690    # soname into executable. Probably we can add versioning support to
14691    # collect2, so additional links can be useful in future.
14692    if test "$aix_use_runtimelinking" = yes; then
14693      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14694      # instead of lib<name>.a to let people know that these are not
14695      # typical AIX shared libraries.
14696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697    else
14698      # We preserve .a as extension for shared libraries through AIX4.2
14699      # and later when we are not doing run time linking.
14700      library_names_spec='${libname}${release}.a $libname.a'
14701      soname_spec='${libname}${release}${shared_ext}$major'
14702    fi
14703    shlibpath_var=LIBPATH
14704  fi
14705  ;;
14706
14707amigaos*)
14708  library_names_spec='$libname.ixlibrary $libname.a'
14709  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14710  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'
14711  ;;
14712
14713beos*)
14714  library_names_spec='${libname}${shared_ext}'
14715  dynamic_linker="$host_os ld.so"
14716  shlibpath_var=LIBRARY_PATH
14717  ;;
14718
14719bsdi[45]*)
14720  version_type=linux
14721  need_version=no
14722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723  soname_spec='${libname}${release}${shared_ext}$major'
14724  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14725  shlibpath_var=LD_LIBRARY_PATH
14726  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14727  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14728  # the default ld.so.conf also contains /usr/contrib/lib and
14729  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14730  # libtool to hard-code these into programs
14731  ;;
14732
14733cygwin* | mingw* | pw32*)
14734  version_type=windows
14735  shrext_cmds=".dll"
14736  need_version=no
14737  need_lib_prefix=no
14738
14739  case $GCC,$host_os in
14740  yes,cygwin* | yes,mingw* | yes,pw32*)
14741    library_names_spec='$libname.dll.a'
14742    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14743    postinstall_cmds='base_file=`basename \${file}`~
14744      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14745      dldir=$destdir/`dirname \$dlpath`~
14746      test -d \$dldir || mkdir -p \$dldir~
14747      $install_prog $dir/$dlname \$dldir/$dlname~
14748      chmod a+x \$dldir/$dlname'
14749    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14750      dlpath=$dir/\$dldll~
14751       $rm \$dlpath'
14752    shlibpath_overrides_runpath=yes
14753
14754    case $host_os in
14755    cygwin*)
14756      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14757      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14758      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14759      ;;
14760    mingw*)
14761      # MinGW DLLs use traditional 'lib' prefix
14762      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14763      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14764      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14765        # It is most probably a Windows format PATH printed by
14766        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14767        # path with ; separators, and with drive letters. We can handle the
14768        # drive letters (cygwin fileutils understands them), so leave them,
14769        # especially as we might pass files found there to a mingw objdump,
14770        # which wouldn't understand a cygwinified path. Ahh.
14771        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14772      else
14773        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14774      fi
14775      ;;
14776    pw32*)
14777      # pw32 DLLs use 'pw' prefix rather than 'lib'
14778      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14779      ;;
14780    esac
14781    ;;
14782
14783  linux*)
14784    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14785      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786      supports_anon_versioning=no
14787      case `$LD -v 2>/dev/null` in
14788        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14789        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14790        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14791        *\ 2.11.*) ;; # other 2.11 versions
14792        *) supports_anon_versioning=yes ;;
14793      esac
14794      if test $supports_anon_versioning = yes; then
14795        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14796cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14797$echo "local: *; };" >> $output_objdir/$libname.ver~
14798        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14799      else
14800        $archive_expsym_cmds="$archive_cmds"
14801      fi
14802    else
14803      ld_shlibs=no
14804    fi
14805    ;;
14806
14807  *)
14808    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14809    ;;
14810  esac
14811  dynamic_linker='Win32 ld.exe'
14812  # FIXME: first we should search . and the directory the executable is in
14813  shlibpath_var=PATH
14814  ;;
14815
14816darwin* | rhapsody*)
14817  dynamic_linker="$host_os dyld"
14818  version_type=darwin
14819  need_lib_prefix=no
14820  need_version=no
14821  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14822  soname_spec='${libname}${release}${major}$shared_ext'
14823  shlibpath_overrides_runpath=yes
14824  shlibpath_var=DYLD_LIBRARY_PATH
14825  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14826  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14827  if test "$GCC" = yes; then
14828    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"`
14829  else
14830    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14831  fi
14832  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14833  ;;
14834
14835dgux*)
14836  version_type=linux
14837  need_lib_prefix=no
14838  need_version=no
14839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14840  soname_spec='${libname}${release}${shared_ext}$major'
14841  shlibpath_var=LD_LIBRARY_PATH
14842  ;;
14843
14844freebsd1*)
14845  dynamic_linker=no
14846  ;;
14847
14848kfreebsd*-gnu)
14849  version_type=linux
14850  need_lib_prefix=no
14851  need_version=no
14852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853  soname_spec='${libname}${release}${shared_ext}$major'
14854  shlibpath_var=LD_LIBRARY_PATH
14855  shlibpath_overrides_runpath=no
14856  hardcode_into_libs=yes
14857  dynamic_linker='GNU ld.so'
14858  ;;
14859
14860freebsd* | dragonfly*)
14861  # DragonFly does not have aout.  When/if they implement a new
14862  # versioning mechanism, adjust this.
14863  if test -x /usr/bin/objformat; then
14864    objformat=`/usr/bin/objformat`
14865  else
14866    case $host_os in
14867    freebsd[123]*) objformat=aout ;;
14868    *) objformat=elf ;;
14869    esac
14870  fi
14871  # Handle Gentoo/FreeBSD as it was Linux
14872  case $host_vendor in
14873    gentoo)
14874      version_type=linux ;;
14875    *)
14876      version_type=freebsd-$objformat ;;
14877  esac
14878
14879  case $version_type in
14880    freebsd-elf*)
14881      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14882      need_version=no
14883      need_lib_prefix=no
14884      ;;
14885    freebsd-*)
14886      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14887      need_version=yes
14888      ;;
14889    linux)
14890      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14891      soname_spec='${libname}${release}${shared_ext}$major'
14892      need_lib_prefix=no
14893      need_version=no
14894      ;;
14895  esac
14896  shlibpath_var=LD_LIBRARY_PATH
14897  case $host_os in
14898  freebsd2*)
14899    shlibpath_overrides_runpath=yes
14900    ;;
14901  freebsd3.[01]* | freebsdelf3.[01]*)
14902    shlibpath_overrides_runpath=yes
14903    hardcode_into_libs=yes
14904    ;;
14905  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14906  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14907    shlibpath_overrides_runpath=no
14908    hardcode_into_libs=yes
14909    ;;
14910  freebsd*) # from 4.6 on
14911    shlibpath_overrides_runpath=yes
14912    hardcode_into_libs=yes
14913    ;;
14914  esac
14915  ;;
14916
14917gnu*)
14918  version_type=linux
14919  need_lib_prefix=no
14920  need_version=no
14921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14922  soname_spec='${libname}${release}${shared_ext}$major'
14923  shlibpath_var=LD_LIBRARY_PATH
14924  hardcode_into_libs=yes
14925  ;;
14926
14927hpux9* | hpux10* | hpux11*)
14928  # Give a soname corresponding to the major version so that dld.sl refuses to
14929  # link against other versions.
14930  version_type=sunos
14931  need_lib_prefix=no
14932  need_version=no
14933  case $host_cpu in
14934  ia64*)
14935    shrext_cmds='.so'
14936    hardcode_into_libs=yes
14937    dynamic_linker="$host_os dld.so"
14938    shlibpath_var=LD_LIBRARY_PATH
14939    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14940    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941    soname_spec='${libname}${release}${shared_ext}$major'
14942    if test "X$HPUX_IA64_MODE" = X32; then
14943      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14944    else
14945      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14946    fi
14947    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14948    ;;
14949   hppa*64*)
14950     shrext_cmds='.sl'
14951     hardcode_into_libs=yes
14952     dynamic_linker="$host_os dld.sl"
14953     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956     soname_spec='${libname}${release}${shared_ext}$major'
14957     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14959     ;;
14960   *)
14961    shrext_cmds='.sl'
14962    dynamic_linker="$host_os dld.sl"
14963    shlibpath_var=SHLIB_PATH
14964    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14965    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966    soname_spec='${libname}${release}${shared_ext}$major'
14967    ;;
14968  esac
14969  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14970  postinstall_cmds='chmod 555 $lib'
14971  ;;
14972
14973interix3*)
14974  version_type=linux
14975  need_lib_prefix=no
14976  need_version=no
14977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14978  soname_spec='${libname}${release}${shared_ext}$major'
14979  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14980  shlibpath_var=LD_LIBRARY_PATH
14981  shlibpath_overrides_runpath=no
14982  hardcode_into_libs=yes
14983  ;;
14984
14985irix5* | irix6* | nonstopux*)
14986  case $host_os in
14987    nonstopux*) version_type=nonstopux ;;
14988    *)
14989	if test "$lt_cv_prog_gnu_ld" = yes; then
14990		version_type=linux
14991	else
14992		version_type=irix
14993	fi ;;
14994  esac
14995  need_lib_prefix=no
14996  need_version=no
14997  soname_spec='${libname}${release}${shared_ext}$major'
14998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14999  case $host_os in
15000  irix5* | nonstopux*)
15001    libsuff= shlibsuff=
15002    ;;
15003  *)
15004    case $LD in # libtool.m4 will add one of these switches to LD
15005    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15006      libsuff= shlibsuff= libmagic=32-bit;;
15007    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15008      libsuff=32 shlibsuff=N32 libmagic=N32;;
15009    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15010      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15011    *) libsuff= shlibsuff= libmagic=never-match;;
15012    esac
15013    ;;
15014  esac
15015  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15016  shlibpath_overrides_runpath=no
15017  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15018  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15019  hardcode_into_libs=yes
15020  ;;
15021
15022# No shared lib support for Linux oldld, aout, or coff.
15023linux*oldld* | linux*aout* | linux*coff*)
15024  dynamic_linker=no
15025  ;;
15026
15027# This must be Linux ELF.
15028linux*)
15029  version_type=linux
15030  need_lib_prefix=no
15031  need_version=no
15032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033  soname_spec='${libname}${release}${shared_ext}$major'
15034  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15035  shlibpath_var=LD_LIBRARY_PATH
15036  shlibpath_overrides_runpath=no
15037  # This implies no fast_install, which is unacceptable.
15038  # Some rework will be needed to allow for fast_install
15039  # before this can be enabled.
15040  hardcode_into_libs=yes
15041
15042  # Append ld.so.conf contents to the search path
15043  if test -f /etc/ld.so.conf; then
15044    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' ' '`
15045    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15046  fi
15047
15048  # We used to test for /lib/ld.so.1 and disable shared libraries on
15049  # powerpc, because MkLinux only supported shared libraries with the
15050  # GNU dynamic linker.  Since this was broken with cross compilers,
15051  # most powerpc-linux boxes support dynamic linking these days and
15052  # people can always --disable-shared, the test was removed, and we
15053  # assume the GNU/Linux dynamic linker is in use.
15054  dynamic_linker='GNU/Linux ld.so'
15055  ;;
15056
15057knetbsd*-gnu)
15058  version_type=linux
15059  need_lib_prefix=no
15060  need_version=no
15061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15062  soname_spec='${libname}${release}${shared_ext}$major'
15063  shlibpath_var=LD_LIBRARY_PATH
15064  shlibpath_overrides_runpath=no
15065  hardcode_into_libs=yes
15066  dynamic_linker='GNU ld.so'
15067  ;;
15068
15069netbsd*)
15070  version_type=sunos
15071  need_lib_prefix=no
15072  need_version=no
15073  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15075    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15076    dynamic_linker='NetBSD (a.out) ld.so'
15077  else
15078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15079    soname_spec='${libname}${release}${shared_ext}$major'
15080    dynamic_linker='NetBSD ld.elf_so'
15081  fi
15082  shlibpath_var=LD_LIBRARY_PATH
15083  shlibpath_overrides_runpath=yes
15084  hardcode_into_libs=yes
15085  ;;
15086
15087newsos6)
15088  version_type=linux
15089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090  shlibpath_var=LD_LIBRARY_PATH
15091  shlibpath_overrides_runpath=yes
15092  ;;
15093
15094nto-qnx*)
15095  version_type=linux
15096  need_lib_prefix=no
15097  need_version=no
15098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099  soname_spec='${libname}${release}${shared_ext}$major'
15100  shlibpath_var=LD_LIBRARY_PATH
15101  shlibpath_overrides_runpath=yes
15102  ;;
15103
15104openbsd*)
15105  version_type=sunos
15106  sys_lib_dlsearch_path_spec="/usr/lib"
15107  need_lib_prefix=no
15108  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15109  case $host_os in
15110    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15111    *)                         need_version=no  ;;
15112  esac
15113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15114  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15115  shlibpath_var=LD_LIBRARY_PATH
15116  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15117    case $host_os in
15118      openbsd2.[89] | openbsd2.[89].*)
15119	shlibpath_overrides_runpath=no
15120	;;
15121      *)
15122	shlibpath_overrides_runpath=yes
15123	;;
15124      esac
15125  else
15126    shlibpath_overrides_runpath=yes
15127  fi
15128  ;;
15129
15130os2*)
15131  libname_spec='$name'
15132  shrext_cmds=".dll"
15133  need_lib_prefix=no
15134  library_names_spec='$libname${shared_ext} $libname.a'
15135  dynamic_linker='OS/2 ld.exe'
15136  shlibpath_var=LIBPATH
15137  ;;
15138
15139osf3* | osf4* | osf5*)
15140  version_type=osf
15141  need_lib_prefix=no
15142  need_version=no
15143  soname_spec='${libname}${release}${shared_ext}$major'
15144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145  shlibpath_var=LD_LIBRARY_PATH
15146  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15147  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15148  ;;
15149
15150solaris*)
15151  version_type=linux
15152  need_lib_prefix=no
15153  need_version=no
15154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155  soname_spec='${libname}${release}${shared_ext}$major'
15156  shlibpath_var=LD_LIBRARY_PATH
15157  shlibpath_overrides_runpath=yes
15158  hardcode_into_libs=yes
15159  # ldd complains unless libraries are executable
15160  postinstall_cmds='chmod +x $lib'
15161  ;;
15162
15163sunos4*)
15164  version_type=sunos
15165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15166  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15167  shlibpath_var=LD_LIBRARY_PATH
15168  shlibpath_overrides_runpath=yes
15169  if test "$with_gnu_ld" = yes; then
15170    need_lib_prefix=no
15171  fi
15172  need_version=yes
15173  ;;
15174
15175sysv4 | sysv4.3*)
15176  version_type=linux
15177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178  soname_spec='${libname}${release}${shared_ext}$major'
15179  shlibpath_var=LD_LIBRARY_PATH
15180  case $host_vendor in
15181    sni)
15182      shlibpath_overrides_runpath=no
15183      need_lib_prefix=no
15184      export_dynamic_flag_spec='${wl}-Blargedynsym'
15185      runpath_var=LD_RUN_PATH
15186      ;;
15187    siemens)
15188      need_lib_prefix=no
15189      ;;
15190    motorola)
15191      need_lib_prefix=no
15192      need_version=no
15193      shlibpath_overrides_runpath=no
15194      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15195      ;;
15196  esac
15197  ;;
15198
15199sysv4*MP*)
15200  if test -d /usr/nec ;then
15201    version_type=linux
15202    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15203    soname_spec='$libname${shared_ext}.$major'
15204    shlibpath_var=LD_LIBRARY_PATH
15205  fi
15206  ;;
15207
15208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15209  version_type=freebsd-elf
15210  need_lib_prefix=no
15211  need_version=no
15212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15213  soname_spec='${libname}${release}${shared_ext}$major'
15214  shlibpath_var=LD_LIBRARY_PATH
15215  hardcode_into_libs=yes
15216  if test "$with_gnu_ld" = yes; then
15217    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15218    shlibpath_overrides_runpath=no
15219  else
15220    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15221    shlibpath_overrides_runpath=yes
15222    case $host_os in
15223      sco3.2v5*)
15224        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15225	;;
15226    esac
15227  fi
15228  sys_lib_dlsearch_path_spec='/usr/lib'
15229  ;;
15230
15231uts4*)
15232  version_type=linux
15233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234  soname_spec='${libname}${release}${shared_ext}$major'
15235  shlibpath_var=LD_LIBRARY_PATH
15236  ;;
15237
15238*)
15239  dynamic_linker=no
15240  ;;
15241esac
15242echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15243echo "${ECHO_T}$dynamic_linker" >&6
15244test "$dynamic_linker" = no && can_build_shared=no
15245
15246variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15247if test "$GCC" = yes; then
15248  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15249fi
15250
15251echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15252echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15253hardcode_action_F77=
15254if test -n "$hardcode_libdir_flag_spec_F77" || \
15255   test -n "$runpath_var_F77" || \
15256   test "X$hardcode_automatic_F77" = "Xyes" ; then
15257
15258  # We can hardcode non-existant directories.
15259  if test "$hardcode_direct_F77" != no &&
15260     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15261     # have to relink, otherwise we might link with an installed library
15262     # when we should be linking with a yet-to-be-installed one
15263     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15264     test "$hardcode_minus_L_F77" != no; then
15265    # Linking always hardcodes the temporary library directory.
15266    hardcode_action_F77=relink
15267  else
15268    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15269    hardcode_action_F77=immediate
15270  fi
15271else
15272  # We cannot hardcode anything, or else we can only hardcode existing
15273  # directories.
15274  hardcode_action_F77=unsupported
15275fi
15276echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15277echo "${ECHO_T}$hardcode_action_F77" >&6
15278
15279if test "$hardcode_action_F77" = relink; then
15280  # Fast installation is not supported
15281  enable_fast_install=no
15282elif test "$shlibpath_overrides_runpath" = yes ||
15283     test "$enable_shared" = no; then
15284  # Fast installation is not necessary
15285  enable_fast_install=needless
15286fi
15287
15288
15289# The else clause should only fire when bootstrapping the
15290# libtool distribution, otherwise you forgot to ship ltmain.sh
15291# with your package, and you will get complaints that there are
15292# no rules to generate ltmain.sh.
15293if test -f "$ltmain"; then
15294  # See if we are running on zsh, and set the options which allow our commands through
15295  # without removal of \ escapes.
15296  if test -n "${ZSH_VERSION+set}" ; then
15297    setopt NO_GLOB_SUBST
15298  fi
15299  # Now quote all the things that may contain metacharacters while being
15300  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15301  # variables and quote the copies for generation of the libtool script.
15302  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15303    SED SHELL STRIP \
15304    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15305    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15306    deplibs_check_method reload_flag reload_cmds need_locks \
15307    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15308    lt_cv_sys_global_symbol_to_c_name_address \
15309    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15310    old_postinstall_cmds old_postuninstall_cmds \
15311    compiler_F77 \
15312    CC_F77 \
15313    LD_F77 \
15314    lt_prog_compiler_wl_F77 \
15315    lt_prog_compiler_pic_F77 \
15316    lt_prog_compiler_static_F77 \
15317    lt_prog_compiler_no_builtin_flag_F77 \
15318    export_dynamic_flag_spec_F77 \
15319    thread_safe_flag_spec_F77 \
15320    whole_archive_flag_spec_F77 \
15321    enable_shared_with_static_runtimes_F77 \
15322    old_archive_cmds_F77 \
15323    old_archive_from_new_cmds_F77 \
15324    predep_objects_F77 \
15325    postdep_objects_F77 \
15326    predeps_F77 \
15327    postdeps_F77 \
15328    compiler_lib_search_path_F77 \
15329    archive_cmds_F77 \
15330    archive_expsym_cmds_F77 \
15331    postinstall_cmds_F77 \
15332    postuninstall_cmds_F77 \
15333    old_archive_from_expsyms_cmds_F77 \
15334    allow_undefined_flag_F77 \
15335    no_undefined_flag_F77 \
15336    export_symbols_cmds_F77 \
15337    hardcode_libdir_flag_spec_F77 \
15338    hardcode_libdir_flag_spec_ld_F77 \
15339    hardcode_libdir_separator_F77 \
15340    hardcode_automatic_F77 \
15341    module_cmds_F77 \
15342    module_expsym_cmds_F77 \
15343    lt_cv_prog_compiler_c_o_F77 \
15344    exclude_expsyms_F77 \
15345    include_expsyms_F77; do
15346
15347    case $var in
15348    old_archive_cmds_F77 | \
15349    old_archive_from_new_cmds_F77 | \
15350    archive_cmds_F77 | \
15351    archive_expsym_cmds_F77 | \
15352    module_cmds_F77 | \
15353    module_expsym_cmds_F77 | \
15354    old_archive_from_expsyms_cmds_F77 | \
15355    export_symbols_cmds_F77 | \
15356    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15357    postinstall_cmds | postuninstall_cmds | \
15358    old_postinstall_cmds | old_postuninstall_cmds | \
15359    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15360      # Double-quote double-evaled strings.
15361      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15362      ;;
15363    *)
15364      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15365      ;;
15366    esac
15367  done
15368
15369  case $lt_echo in
15370  *'\$0 --fallback-echo"')
15371    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15372    ;;
15373  esac
15374
15375cfgfile="$ofile"
15376
15377  cat <<__EOF__ >> "$cfgfile"
15378# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15379
15380# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15381
15382# Shell to use when invoking shell scripts.
15383SHELL=$lt_SHELL
15384
15385# Whether or not to build shared libraries.
15386build_libtool_libs=$enable_shared
15387
15388# Whether or not to build static libraries.
15389build_old_libs=$enable_static
15390
15391# Whether or not to add -lc for building shared libraries.
15392build_libtool_need_lc=$archive_cmds_need_lc_F77
15393
15394# Whether or not to disallow shared libs when runtime libs are static
15395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15396
15397# Whether or not to optimize for fast installation.
15398fast_install=$enable_fast_install
15399
15400# The host system.
15401host_alias=$host_alias
15402host=$host
15403host_os=$host_os
15404
15405# The build system.
15406build_alias=$build_alias
15407build=$build
15408build_os=$build_os
15409
15410# An echo program that does not interpret backslashes.
15411echo=$lt_echo
15412
15413# The archiver.
15414AR=$lt_AR
15415AR_FLAGS=$lt_AR_FLAGS
15416
15417# A C compiler.
15418LTCC=$lt_LTCC
15419
15420# LTCC compiler flags.
15421LTCFLAGS=$lt_LTCFLAGS
15422
15423# A language-specific compiler.
15424CC=$lt_compiler_F77
15425
15426# Is the compiler the GNU C compiler?
15427with_gcc=$GCC_F77
15428
15429# An ERE matcher.
15430EGREP=$lt_EGREP
15431
15432# The linker used to build libraries.
15433LD=$lt_LD_F77
15434
15435# Whether we need hard or soft links.
15436LN_S=$lt_LN_S
15437
15438# A BSD-compatible nm program.
15439NM=$lt_NM
15440
15441# A symbol stripping program
15442STRIP=$lt_STRIP
15443
15444# Used to examine libraries when file_magic_cmd begins "file"
15445MAGIC_CMD=$MAGIC_CMD
15446
15447# Used on cygwin: DLL creation program.
15448DLLTOOL="$DLLTOOL"
15449
15450# Used on cygwin: object dumper.
15451OBJDUMP="$OBJDUMP"
15452
15453# Used on cygwin: assembler.
15454AS="$AS"
15455
15456# The name of the directory that contains temporary libtool files.
15457objdir=$objdir
15458
15459# How to create reloadable object files.
15460reload_flag=$lt_reload_flag
15461reload_cmds=$lt_reload_cmds
15462
15463# How to pass a linker flag through the compiler.
15464wl=$lt_lt_prog_compiler_wl_F77
15465
15466# Object file suffix (normally "o").
15467objext="$ac_objext"
15468
15469# Old archive suffix (normally "a").
15470libext="$libext"
15471
15472# Shared library suffix (normally ".so").
15473shrext_cmds='$shrext_cmds'
15474
15475# Executable file suffix (normally "").
15476exeext="$exeext"
15477
15478# Additional compiler flags for building library objects.
15479pic_flag=$lt_lt_prog_compiler_pic_F77
15480pic_mode=$pic_mode
15481
15482# What is the maximum length of a command?
15483max_cmd_len=$lt_cv_sys_max_cmd_len
15484
15485# Does compiler simultaneously support -c and -o options?
15486compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15487
15488# Must we lock files when doing compilation?
15489need_locks=$lt_need_locks
15490
15491# Do we need the lib prefix for modules?
15492need_lib_prefix=$need_lib_prefix
15493
15494# Do we need a version for libraries?
15495need_version=$need_version
15496
15497# Whether dlopen is supported.
15498dlopen_support=$enable_dlopen
15499
15500# Whether dlopen of programs is supported.
15501dlopen_self=$enable_dlopen_self
15502
15503# Whether dlopen of statically linked programs is supported.
15504dlopen_self_static=$enable_dlopen_self_static
15505
15506# Compiler flag to prevent dynamic linking.
15507link_static_flag=$lt_lt_prog_compiler_static_F77
15508
15509# Compiler flag to turn off builtin functions.
15510no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15511
15512# Compiler flag to allow reflexive dlopens.
15513export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15514
15515# Compiler flag to generate shared objects directly from archives.
15516whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15517
15518# Compiler flag to generate thread-safe objects.
15519thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15520
15521# Library versioning type.
15522version_type=$version_type
15523
15524# Format of library name prefix.
15525libname_spec=$lt_libname_spec
15526
15527# List of archive names.  First name is the real one, the rest are links.
15528# The last name is the one that the linker finds with -lNAME.
15529library_names_spec=$lt_library_names_spec
15530
15531# The coded name of the library, if different from the real name.
15532soname_spec=$lt_soname_spec
15533
15534# Commands used to build and install an old-style archive.
15535RANLIB=$lt_RANLIB
15536old_archive_cmds=$lt_old_archive_cmds_F77
15537old_postinstall_cmds=$lt_old_postinstall_cmds
15538old_postuninstall_cmds=$lt_old_postuninstall_cmds
15539
15540# Create an old-style archive from a shared archive.
15541old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15542
15543# Create a temporary old-style archive to link instead of a shared archive.
15544old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15545
15546# Commands used to build and install a shared archive.
15547archive_cmds=$lt_archive_cmds_F77
15548archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15549postinstall_cmds=$lt_postinstall_cmds
15550postuninstall_cmds=$lt_postuninstall_cmds
15551
15552# Commands used to build a loadable module (assumed same as above if empty)
15553module_cmds=$lt_module_cmds_F77
15554module_expsym_cmds=$lt_module_expsym_cmds_F77
15555
15556# Commands to strip libraries.
15557old_striplib=$lt_old_striplib
15558striplib=$lt_striplib
15559
15560# Dependencies to place before the objects being linked to create a
15561# shared library.
15562predep_objects=$lt_predep_objects_F77
15563
15564# Dependencies to place after the objects being linked to create a
15565# shared library.
15566postdep_objects=$lt_postdep_objects_F77
15567
15568# Dependencies to place before the objects being linked to create a
15569# shared library.
15570predeps=$lt_predeps_F77
15571
15572# Dependencies to place after the objects being linked to create a
15573# shared library.
15574postdeps=$lt_postdeps_F77
15575
15576# The library search path used internally by the compiler when linking
15577# a shared library.
15578compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15579
15580# Method to check whether dependent libraries are shared objects.
15581deplibs_check_method=$lt_deplibs_check_method
15582
15583# Command to use when deplibs_check_method == file_magic.
15584file_magic_cmd=$lt_file_magic_cmd
15585
15586# Flag that allows shared libraries with undefined symbols to be built.
15587allow_undefined_flag=$lt_allow_undefined_flag_F77
15588
15589# Flag that forces no undefined symbols.
15590no_undefined_flag=$lt_no_undefined_flag_F77
15591
15592# Commands used to finish a libtool library installation in a directory.
15593finish_cmds=$lt_finish_cmds
15594
15595# Same as above, but a single script fragment to be evaled but not shown.
15596finish_eval=$lt_finish_eval
15597
15598# Take the output of nm and produce a listing of raw symbols and C names.
15599global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15600
15601# Transform the output of nm in a proper C declaration
15602global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15603
15604# Transform the output of nm in a C name address pair
15605global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15606
15607# This is the shared library runtime path variable.
15608runpath_var=$runpath_var
15609
15610# This is the shared library path variable.
15611shlibpath_var=$shlibpath_var
15612
15613# Is shlibpath searched before the hard-coded library search path?
15614shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15615
15616# How to hardcode a shared library path into an executable.
15617hardcode_action=$hardcode_action_F77
15618
15619# Whether we should hardcode library paths into libraries.
15620hardcode_into_libs=$hardcode_into_libs
15621
15622# Flag to hardcode \$libdir into a binary during linking.
15623# This must work even if \$libdir does not exist.
15624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15625
15626# If ld is used when linking, flag to hardcode \$libdir into
15627# a binary during linking. This must work even if \$libdir does
15628# not exist.
15629hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15630
15631# Whether we need a single -rpath flag with a separated argument.
15632hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15633
15634# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15635# resulting binary.
15636hardcode_direct=$hardcode_direct_F77
15637
15638# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15639# resulting binary.
15640hardcode_minus_L=$hardcode_minus_L_F77
15641
15642# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15643# the resulting binary.
15644hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15645
15646# Set to yes if building a shared library automatically hardcodes DIR into the library
15647# and all subsequent libraries and executables linked against it.
15648hardcode_automatic=$hardcode_automatic_F77
15649
15650# Variables whose values should be saved in libtool wrapper scripts and
15651# restored at relink time.
15652variables_saved_for_relink="$variables_saved_for_relink"
15653
15654# Whether libtool must link a program against all its dependency libraries.
15655link_all_deplibs=$link_all_deplibs_F77
15656
15657# Compile-time system search path for libraries
15658sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15659
15660# Run-time system search path for libraries
15661sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15662
15663# Fix the shell variable \$srcfile for the compiler.
15664fix_srcfile_path="$fix_srcfile_path_F77"
15665
15666# Set to yes if exported symbols are required.
15667always_export_symbols=$always_export_symbols_F77
15668
15669# The commands to list exported symbols.
15670export_symbols_cmds=$lt_export_symbols_cmds_F77
15671
15672# The commands to extract the exported symbol list from a shared archive.
15673extract_expsyms_cmds=$lt_extract_expsyms_cmds
15674
15675# Symbols that should not be listed in the preloaded symbols.
15676exclude_expsyms=$lt_exclude_expsyms_F77
15677
15678# Symbols that must always be exported.
15679include_expsyms=$lt_include_expsyms_F77
15680
15681# ### END LIBTOOL TAG CONFIG: $tagname
15682
15683__EOF__
15684
15685
15686else
15687  # If there is no Makefile yet, we rely on a make rule to execute
15688  # `config.status --recheck' to rerun these tests and create the
15689  # libtool script then.
15690  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15691  if test -f "$ltmain_in"; then
15692    test -f Makefile && make "$ltmain"
15693  fi
15694fi
15695
15696
15697ac_ext=c
15698ac_cpp='$CPP $CPPFLAGS'
15699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15701ac_compiler_gnu=$ac_cv_c_compiler_gnu
15702
15703CC="$lt_save_CC"
15704
15705	else
15706	  tagname=""
15707	fi
15708	;;
15709
15710      GCJ)
15711	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15712
15713
15714
15715# Source file extension for Java test sources.
15716ac_ext=java
15717
15718# Object file extension for compiled Java test sources.
15719objext=o
15720objext_GCJ=$objext
15721
15722# Code to be used in simple compile tests
15723lt_simple_compile_test_code="class foo {}\n"
15724
15725# Code to be used in simple link tests
15726lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15727
15728# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15729
15730# If no C compiler was specified, use CC.
15731LTCC=${LTCC-"$CC"}
15732
15733# If no C compiler flags were specified, use CFLAGS.
15734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15735
15736# Allow CC to be a program name with arguments.
15737compiler=$CC
15738
15739
15740# save warnings/boilerplate of simple test code
15741ac_outfile=conftest.$ac_objext
15742printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15744_lt_compiler_boilerplate=`cat conftest.err`
15745$rm conftest*
15746
15747ac_outfile=conftest.$ac_objext
15748printf "$lt_simple_link_test_code" >conftest.$ac_ext
15749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15750_lt_linker_boilerplate=`cat conftest.err`
15751$rm conftest*
15752
15753
15754# Allow CC to be a program name with arguments.
15755lt_save_CC="$CC"
15756CC=${GCJ-"gcj"}
15757compiler=$CC
15758compiler_GCJ=$CC
15759for cc_temp in $compiler""; do
15760  case $cc_temp in
15761    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15762    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15763    \-*) ;;
15764    *) break;;
15765  esac
15766done
15767cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15768
15769
15770# GCJ did not exist at the time GCC didn't implicitly link libc in.
15771archive_cmds_need_lc_GCJ=no
15772
15773old_archive_cmds_GCJ=$old_archive_cmds
15774
15775
15776lt_prog_compiler_no_builtin_flag_GCJ=
15777
15778if test "$GCC" = yes; then
15779  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15780
15781
15782echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15783echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15784if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15785  echo $ECHO_N "(cached) $ECHO_C" >&6
15786else
15787  lt_cv_prog_compiler_rtti_exceptions=no
15788  ac_outfile=conftest.$ac_objext
15789   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15790   lt_compiler_flag="-fno-rtti -fno-exceptions"
15791   # Insert the option either (1) after the last *FLAGS variable, or
15792   # (2) before a word containing "conftest.", or (3) at the end.
15793   # Note that $ac_compile itself does not contain backslashes and begins
15794   # with a dollar sign (not a hyphen), so the echo should work correctly.
15795   # The option is referenced via a variable to avoid confusing sed.
15796   lt_compile=`echo "$ac_compile" | $SED \
15797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15799   -e 's:$: $lt_compiler_flag:'`
15800   (eval echo "\"\$as_me:15800: $lt_compile\"" >&5)
15801   (eval "$lt_compile" 2>conftest.err)
15802   ac_status=$?
15803   cat conftest.err >&5
15804   echo "$as_me:15804: \$? = $ac_status" >&5
15805   if (exit $ac_status) && test -s "$ac_outfile"; then
15806     # The compiler can only warn and ignore the option if not recognized
15807     # So say no if there are warnings other than the usual output.
15808     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15809     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15810     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15811       lt_cv_prog_compiler_rtti_exceptions=yes
15812     fi
15813   fi
15814   $rm conftest*
15815
15816fi
15817echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15818echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15819
15820if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15821    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15822else
15823    :
15824fi
15825
15826fi
15827
15828lt_prog_compiler_wl_GCJ=
15829lt_prog_compiler_pic_GCJ=
15830lt_prog_compiler_static_GCJ=
15831
15832echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15833echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15834
15835  if test "$GCC" = yes; then
15836    lt_prog_compiler_wl_GCJ='-Wl,'
15837    lt_prog_compiler_static_GCJ='-static'
15838
15839    case $host_os in
15840      aix*)
15841      # All AIX code is PIC.
15842      if test "$host_cpu" = ia64; then
15843	# AIX 5 now supports IA64 processor
15844	lt_prog_compiler_static_GCJ='-Bstatic'
15845      fi
15846      ;;
15847
15848    amigaos*)
15849      # FIXME: we need at least 68020 code to build shared libraries, but
15850      # adding the `-m68020' flag to GCC prevents building anything better,
15851      # like `-m68040'.
15852      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15853      ;;
15854
15855    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15856      # PIC is the default for these OSes.
15857      ;;
15858
15859    mingw* | pw32* | os2*)
15860      # This hack is so that the source file can tell whether it is being
15861      # built for inclusion in a dll (and should export symbols for example).
15862      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15863      ;;
15864
15865    darwin* | rhapsody*)
15866      # PIC is the default on this platform
15867      # Common symbols not allowed in MH_DYLIB files
15868      lt_prog_compiler_pic_GCJ='-fno-common'
15869      ;;
15870
15871    interix3*)
15872      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15873      # Instead, we relocate shared libraries at runtime.
15874      ;;
15875
15876    msdosdjgpp*)
15877      # Just because we use GCC doesn't mean we suddenly get shared libraries
15878      # on systems that don't support them.
15879      lt_prog_compiler_can_build_shared_GCJ=no
15880      enable_shared=no
15881      ;;
15882
15883    sysv4*MP*)
15884      if test -d /usr/nec; then
15885	lt_prog_compiler_pic_GCJ=-Kconform_pic
15886      fi
15887      ;;
15888
15889    hpux*)
15890      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15891      # not for PA HP-UX.
15892      case $host_cpu in
15893      hppa*64*|ia64*)
15894	# +Z the default
15895	;;
15896      *)
15897	lt_prog_compiler_pic_GCJ='-fPIC'
15898	;;
15899      esac
15900      ;;
15901
15902    *)
15903      lt_prog_compiler_pic_GCJ='-fPIC'
15904      ;;
15905    esac
15906  else
15907    # PORTME Check for flag to pass linker flags through the system compiler.
15908    case $host_os in
15909    aix*)
15910      lt_prog_compiler_wl_GCJ='-Wl,'
15911      if test "$host_cpu" = ia64; then
15912	# AIX 5 now supports IA64 processor
15913	lt_prog_compiler_static_GCJ='-Bstatic'
15914      else
15915	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15916      fi
15917      ;;
15918      darwin*)
15919        # PIC is the default on this platform
15920        # Common symbols not allowed in MH_DYLIB files
15921       case $cc_basename in
15922         xlc*)
15923         lt_prog_compiler_pic_GCJ='-qnocommon'
15924         lt_prog_compiler_wl_GCJ='-Wl,'
15925         ;;
15926       esac
15927       ;;
15928
15929    mingw* | pw32* | os2*)
15930      # This hack is so that the source file can tell whether it is being
15931      # built for inclusion in a dll (and should export symbols for example).
15932      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15933      ;;
15934
15935    hpux9* | hpux10* | hpux11*)
15936      lt_prog_compiler_wl_GCJ='-Wl,'
15937      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938      # not for PA HP-UX.
15939      case $host_cpu in
15940      hppa*64*|ia64*)
15941	# +Z the default
15942	;;
15943      *)
15944	lt_prog_compiler_pic_GCJ='+Z'
15945	;;
15946      esac
15947      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15948      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15949      ;;
15950
15951    irix5* | irix6* | nonstopux*)
15952      lt_prog_compiler_wl_GCJ='-Wl,'
15953      # PIC (with -KPIC) is the default.
15954      lt_prog_compiler_static_GCJ='-non_shared'
15955      ;;
15956
15957    newsos6)
15958      lt_prog_compiler_pic_GCJ='-KPIC'
15959      lt_prog_compiler_static_GCJ='-Bstatic'
15960      ;;
15961
15962    linux*)
15963      case $cc_basename in
15964      icc* | ecc*)
15965	lt_prog_compiler_wl_GCJ='-Wl,'
15966	lt_prog_compiler_pic_GCJ='-KPIC'
15967	lt_prog_compiler_static_GCJ='-static'
15968        ;;
15969      pgcc* | pgf77* | pgf90* | pgf95*)
15970        # Portland Group compilers (*not* the Pentium gcc compiler,
15971	# which looks to be a dead project)
15972	lt_prog_compiler_wl_GCJ='-Wl,'
15973	lt_prog_compiler_pic_GCJ='-fpic'
15974	lt_prog_compiler_static_GCJ='-Bstatic'
15975        ;;
15976      ccc*)
15977        lt_prog_compiler_wl_GCJ='-Wl,'
15978        # All Alpha code is PIC.
15979        lt_prog_compiler_static_GCJ='-non_shared'
15980        ;;
15981      esac
15982      ;;
15983
15984    osf3* | osf4* | osf5*)
15985      lt_prog_compiler_wl_GCJ='-Wl,'
15986      # All OSF/1 code is PIC.
15987      lt_prog_compiler_static_GCJ='-non_shared'
15988      ;;
15989
15990    solaris*)
15991      lt_prog_compiler_pic_GCJ='-KPIC'
15992      lt_prog_compiler_static_GCJ='-Bstatic'
15993      case $cc_basename in
15994      f77* | f90* | f95*)
15995	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15996      *)
15997	lt_prog_compiler_wl_GCJ='-Wl,';;
15998      esac
15999      ;;
16000
16001    sunos4*)
16002      lt_prog_compiler_wl_GCJ='-Qoption ld '
16003      lt_prog_compiler_pic_GCJ='-PIC'
16004      lt_prog_compiler_static_GCJ='-Bstatic'
16005      ;;
16006
16007    sysv4 | sysv4.2uw2* | sysv4.3*)
16008      lt_prog_compiler_wl_GCJ='-Wl,'
16009      lt_prog_compiler_pic_GCJ='-KPIC'
16010      lt_prog_compiler_static_GCJ='-Bstatic'
16011      ;;
16012
16013    sysv4*MP*)
16014      if test -d /usr/nec ;then
16015	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16016	lt_prog_compiler_static_GCJ='-Bstatic'
16017      fi
16018      ;;
16019
16020    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16021      lt_prog_compiler_wl_GCJ='-Wl,'
16022      lt_prog_compiler_pic_GCJ='-KPIC'
16023      lt_prog_compiler_static_GCJ='-Bstatic'
16024      ;;
16025
16026    unicos*)
16027      lt_prog_compiler_wl_GCJ='-Wl,'
16028      lt_prog_compiler_can_build_shared_GCJ=no
16029      ;;
16030
16031    uts4*)
16032      lt_prog_compiler_pic_GCJ='-pic'
16033      lt_prog_compiler_static_GCJ='-Bstatic'
16034      ;;
16035
16036    *)
16037      lt_prog_compiler_can_build_shared_GCJ=no
16038      ;;
16039    esac
16040  fi
16041
16042echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16043echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16044
16045#
16046# Check to make sure the PIC flag actually works.
16047#
16048if test -n "$lt_prog_compiler_pic_GCJ"; then
16049
16050echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16051echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16052if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16053  echo $ECHO_N "(cached) $ECHO_C" >&6
16054else
16055  lt_prog_compiler_pic_works_GCJ=no
16056  ac_outfile=conftest.$ac_objext
16057   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16058   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16059   # Insert the option either (1) after the last *FLAGS variable, or
16060   # (2) before a word containing "conftest.", or (3) at the end.
16061   # Note that $ac_compile itself does not contain backslashes and begins
16062   # with a dollar sign (not a hyphen), so the echo should work correctly.
16063   # The option is referenced via a variable to avoid confusing sed.
16064   lt_compile=`echo "$ac_compile" | $SED \
16065   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16066   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16067   -e 's:$: $lt_compiler_flag:'`
16068   (eval echo "\"\$as_me:16068: $lt_compile\"" >&5)
16069   (eval "$lt_compile" 2>conftest.err)
16070   ac_status=$?
16071   cat conftest.err >&5
16072   echo "$as_me:16072: \$? = $ac_status" >&5
16073   if (exit $ac_status) && test -s "$ac_outfile"; then
16074     # The compiler can only warn and ignore the option if not recognized
16075     # So say no if there are warnings other than the usual output.
16076     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16077     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16078     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16079       lt_prog_compiler_pic_works_GCJ=yes
16080     fi
16081   fi
16082   $rm conftest*
16083
16084fi
16085echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16086echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16087
16088if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16089    case $lt_prog_compiler_pic_GCJ in
16090     "" | " "*) ;;
16091     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16092     esac
16093else
16094    lt_prog_compiler_pic_GCJ=
16095     lt_prog_compiler_can_build_shared_GCJ=no
16096fi
16097
16098fi
16099case $host_os in
16100  # For platforms which do not support PIC, -DPIC is meaningless:
16101  *djgpp*)
16102    lt_prog_compiler_pic_GCJ=
16103    ;;
16104  *)
16105    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16106    ;;
16107esac
16108
16109#
16110# Check to make sure the static flag actually works.
16111#
16112wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16113echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16114echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16115if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16116  echo $ECHO_N "(cached) $ECHO_C" >&6
16117else
16118  lt_prog_compiler_static_works_GCJ=no
16119   save_LDFLAGS="$LDFLAGS"
16120   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16121   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16122   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16123     # The linker can only warn and ignore the option if not recognized
16124     # So say no if there are warnings
16125     if test -s conftest.err; then
16126       # Append any errors to the config.log.
16127       cat conftest.err 1>&5
16128       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16129       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16130       if diff conftest.exp conftest.er2 >/dev/null; then
16131         lt_prog_compiler_static_works_GCJ=yes
16132       fi
16133     else
16134       lt_prog_compiler_static_works_GCJ=yes
16135     fi
16136   fi
16137   $rm conftest*
16138   LDFLAGS="$save_LDFLAGS"
16139
16140fi
16141echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16142echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16143
16144if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16145    :
16146else
16147    lt_prog_compiler_static_GCJ=
16148fi
16149
16150
16151echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16152echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16153if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16154  echo $ECHO_N "(cached) $ECHO_C" >&6
16155else
16156  lt_cv_prog_compiler_c_o_GCJ=no
16157   $rm -r conftest 2>/dev/null
16158   mkdir conftest
16159   cd conftest
16160   mkdir out
16161   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16162
16163   lt_compiler_flag="-o out/conftest2.$ac_objext"
16164   # Insert the option either (1) after the last *FLAGS variable, or
16165   # (2) before a word containing "conftest.", or (3) at the end.
16166   # Note that $ac_compile itself does not contain backslashes and begins
16167   # with a dollar sign (not a hyphen), so the echo should work correctly.
16168   lt_compile=`echo "$ac_compile" | $SED \
16169   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16170   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16171   -e 's:$: $lt_compiler_flag:'`
16172   (eval echo "\"\$as_me:16172: $lt_compile\"" >&5)
16173   (eval "$lt_compile" 2>out/conftest.err)
16174   ac_status=$?
16175   cat out/conftest.err >&5
16176   echo "$as_me:16176: \$? = $ac_status" >&5
16177   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16178   then
16179     # The compiler can only warn and ignore the option if not recognized
16180     # So say no if there are warnings
16181     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16182     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16183     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16184       lt_cv_prog_compiler_c_o_GCJ=yes
16185     fi
16186   fi
16187   chmod u+w . 2>&5
16188   $rm conftest*
16189   # SGI C++ compiler will create directory out/ii_files/ for
16190   # template instantiation
16191   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16192   $rm out/* && rmdir out
16193   cd ..
16194   rmdir conftest
16195   $rm conftest*
16196
16197fi
16198echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16199echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16200
16201
16202hard_links="nottested"
16203if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16204  # do not overwrite the value of need_locks provided by the user
16205  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16206echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16207  hard_links=yes
16208  $rm conftest*
16209  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16210  touch conftest.a
16211  ln conftest.a conftest.b 2>&5 || hard_links=no
16212  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213  echo "$as_me:$LINENO: result: $hard_links" >&5
16214echo "${ECHO_T}$hard_links" >&6
16215  if test "$hard_links" = no; then
16216    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16217echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16218    need_locks=warn
16219  fi
16220else
16221  need_locks=no
16222fi
16223
16224echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16225echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16226
16227  runpath_var=
16228  allow_undefined_flag_GCJ=
16229  enable_shared_with_static_runtimes_GCJ=no
16230  archive_cmds_GCJ=
16231  archive_expsym_cmds_GCJ=
16232  old_archive_From_new_cmds_GCJ=
16233  old_archive_from_expsyms_cmds_GCJ=
16234  export_dynamic_flag_spec_GCJ=
16235  whole_archive_flag_spec_GCJ=
16236  thread_safe_flag_spec_GCJ=
16237  hardcode_libdir_flag_spec_GCJ=
16238  hardcode_libdir_flag_spec_ld_GCJ=
16239  hardcode_libdir_separator_GCJ=
16240  hardcode_direct_GCJ=no
16241  hardcode_minus_L_GCJ=no
16242  hardcode_shlibpath_var_GCJ=unsupported
16243  link_all_deplibs_GCJ=unknown
16244  hardcode_automatic_GCJ=no
16245  module_cmds_GCJ=
16246  module_expsym_cmds_GCJ=
16247  always_export_symbols_GCJ=no
16248  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16249  # include_expsyms should be a list of space-separated symbols to be *always*
16250  # included in the symbol list
16251  include_expsyms_GCJ=
16252  # exclude_expsyms can be an extended regexp of symbols to exclude
16253  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16254  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16255  # as well as any symbol that contains `d'.
16256  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16257  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16258  # platforms (ab)use it in PIC code, but their linkers get confused if
16259  # the symbol is explicitly referenced.  Since portable code cannot
16260  # rely on this symbol name, it's probably fine to never include it in
16261  # preloaded symbol tables.
16262  extract_expsyms_cmds=
16263  # Just being paranoid about ensuring that cc_basename is set.
16264  for cc_temp in $compiler""; do
16265  case $cc_temp in
16266    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16267    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16268    \-*) ;;
16269    *) break;;
16270  esac
16271done
16272cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16273
16274  case $host_os in
16275  cygwin* | mingw* | pw32*)
16276    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16277    # When not using gcc, we currently assume that we are using
16278    # Microsoft Visual C++.
16279    if test "$GCC" != yes; then
16280      with_gnu_ld=no
16281    fi
16282    ;;
16283  interix*)
16284    # we just hope/assume this is gcc and not c89 (= MSVC++)
16285    with_gnu_ld=yes
16286    ;;
16287  openbsd*)
16288    with_gnu_ld=no
16289    ;;
16290  esac
16291
16292  ld_shlibs_GCJ=yes
16293  if test "$with_gnu_ld" = yes; then
16294    # If archive_cmds runs LD, not CC, wlarc should be empty
16295    wlarc='${wl}'
16296
16297    # Set some defaults for GNU ld with shared library support. These
16298    # are reset later if shared libraries are not supported. Putting them
16299    # here allows them to be overridden if necessary.
16300    runpath_var=LD_RUN_PATH
16301    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16302    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16303    # ancient GNU ld didn't support --whole-archive et. al.
16304    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16305	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16306      else
16307  	whole_archive_flag_spec_GCJ=
16308    fi
16309    supports_anon_versioning=no
16310    case `$LD -v 2>/dev/null` in
16311      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16312      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16313      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16314      *\ 2.11.*) ;; # other 2.11 versions
16315      *) supports_anon_versioning=yes ;;
16316    esac
16317
16318    # See if GNU ld supports shared libraries.
16319    case $host_os in
16320    aix3* | aix4* | aix5*)
16321      # On AIX/PPC, the GNU linker is very broken
16322      if test "$host_cpu" != ia64; then
16323	ld_shlibs_GCJ=no
16324	cat <<EOF 1>&2
16325
16326*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16327*** to be unable to reliably create shared libraries on AIX.
16328*** Therefore, libtool is disabling shared libraries support.  If you
16329*** really care for shared libraries, you may want to modify your PATH
16330*** so that a non-GNU linker is found, and then restart.
16331
16332EOF
16333      fi
16334      ;;
16335
16336    amigaos*)
16337      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)'
16338      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339      hardcode_minus_L_GCJ=yes
16340
16341      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16342      # that the semantics of dynamic libraries on AmigaOS, at least up
16343      # to version 4, is to share data among multiple programs linked
16344      # with the same dynamic library.  Since this doesn't match the
16345      # behavior of shared libraries on other platforms, we can't use
16346      # them.
16347      ld_shlibs_GCJ=no
16348      ;;
16349
16350    beos*)
16351      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16352	allow_undefined_flag_GCJ=unsupported
16353	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16354	# support --undefined.  This deserves some investigation.  FIXME
16355	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16356      else
16357	ld_shlibs_GCJ=no
16358      fi
16359      ;;
16360
16361    cygwin* | mingw* | pw32*)
16362      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16363      # as there is no search path for DLLs.
16364      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365      allow_undefined_flag_GCJ=unsupported
16366      always_export_symbols_GCJ=no
16367      enable_shared_with_static_runtimes_GCJ=yes
16368      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16369
16370      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16371        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16372	# If the export-symbols file already is a .def file (1st line
16373	# is EXPORTS), use it as is; otherwise, prepend...
16374	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16375	  cp $export_symbols $output_objdir/$soname.def;
16376	else
16377	  echo EXPORTS > $output_objdir/$soname.def;
16378	  cat $export_symbols >> $output_objdir/$soname.def;
16379	fi~
16380	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16381      else
16382	ld_shlibs_GCJ=no
16383      fi
16384      ;;
16385
16386    interix3*)
16387      hardcode_direct_GCJ=no
16388      hardcode_shlibpath_var_GCJ=no
16389      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16390      export_dynamic_flag_spec_GCJ='${wl}-E'
16391      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16392      # Instead, shared libraries are loaded at an image base (0x10000000 by
16393      # default) and relocated if they conflict, which is a slow very memory
16394      # consuming and fragmenting process.  To avoid this, we pick a random,
16395      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16396      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16397      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'
16398      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'
16399      ;;
16400
16401    linux*)
16402      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16403	tmp_addflag=
16404	case $cc_basename,$host_cpu in
16405	pgcc*)				# Portland Group C compiler
16406	  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'
16407	  tmp_addflag=' $pic_flag'
16408	  ;;
16409	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16410	  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'
16411	  tmp_addflag=' $pic_flag -Mnomain' ;;
16412	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16413	  tmp_addflag=' -i_dynamic' ;;
16414	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16415	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16416	ifc* | ifort*)			# Intel Fortran compiler
16417	  tmp_addflag=' -nofor_main' ;;
16418	esac
16419	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420
16421	if test $supports_anon_versioning = yes; then
16422	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16423  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16424  $echo "local: *; };" >> $output_objdir/$libname.ver~
16425	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16426	fi
16427      else
16428	ld_shlibs_GCJ=no
16429      fi
16430      ;;
16431
16432    netbsd*)
16433      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16434	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16435	wlarc=
16436      else
16437	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16438	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16439      fi
16440      ;;
16441
16442    solaris*)
16443      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16444	ld_shlibs_GCJ=no
16445	cat <<EOF 1>&2
16446
16447*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16448*** create shared libraries on Solaris systems.  Therefore, libtool
16449*** is disabling shared libraries support.  We urge you to upgrade GNU
16450*** binutils to release 2.9.1 or newer.  Another option is to modify
16451*** your PATH or compiler configuration so that the native linker is
16452*** used, and then restart.
16453
16454EOF
16455      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16456	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16457	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16458      else
16459	ld_shlibs_GCJ=no
16460      fi
16461      ;;
16462
16463    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16464      case `$LD -v 2>&1` in
16465        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16466	ld_shlibs_GCJ=no
16467	cat <<_LT_EOF 1>&2
16468
16469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16470*** reliably create shared libraries on SCO systems.  Therefore, libtool
16471*** is disabling shared libraries support.  We urge you to upgrade GNU
16472*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16473*** your PATH or compiler configuration so that the native linker is
16474*** used, and then restart.
16475
16476_LT_EOF
16477	;;
16478	*)
16479	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16481	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16482	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16483	  else
16484	    ld_shlibs_GCJ=no
16485	  fi
16486	;;
16487      esac
16488      ;;
16489
16490    sunos4*)
16491      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16492      wlarc=
16493      hardcode_direct_GCJ=yes
16494      hardcode_shlibpath_var_GCJ=no
16495      ;;
16496
16497    *)
16498      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16499	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16500	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16501      else
16502	ld_shlibs_GCJ=no
16503      fi
16504      ;;
16505    esac
16506
16507    if test "$ld_shlibs_GCJ" = no; then
16508      runpath_var=
16509      hardcode_libdir_flag_spec_GCJ=
16510      export_dynamic_flag_spec_GCJ=
16511      whole_archive_flag_spec_GCJ=
16512    fi
16513  else
16514    # PORTME fill in a description of your system's linker (not GNU ld)
16515    case $host_os in
16516    aix3*)
16517      allow_undefined_flag_GCJ=unsupported
16518      always_export_symbols_GCJ=yes
16519      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'
16520      # Note: this linker hardcodes the directories in LIBPATH if there
16521      # are no directories specified by -L.
16522      hardcode_minus_L_GCJ=yes
16523      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16524	# Neither direct hardcoding nor static linking is supported with a
16525	# broken collect2.
16526	hardcode_direct_GCJ=unsupported
16527      fi
16528      ;;
16529
16530    aix4* | aix5*)
16531      if test "$host_cpu" = ia64; then
16532	# On IA64, the linker does run time linking by default, so we don't
16533	# have to do anything special.
16534	aix_use_runtimelinking=no
16535	exp_sym_flag='-Bexport'
16536	no_entry_flag=""
16537      else
16538	# If we're using GNU nm, then we don't want the "-C" option.
16539	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16540	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16541	  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'
16542	else
16543	  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'
16544	fi
16545	aix_use_runtimelinking=no
16546
16547	# Test if we are trying to use run time linking or normal
16548	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16549	# need to do runtime linking.
16550	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16551	  for ld_flag in $LDFLAGS; do
16552  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16553  	    aix_use_runtimelinking=yes
16554  	    break
16555  	  fi
16556	  done
16557	  ;;
16558	esac
16559
16560	exp_sym_flag='-bexport'
16561	no_entry_flag='-bnoentry'
16562      fi
16563
16564      # When large executables or shared objects are built, AIX ld can
16565      # have problems creating the table of contents.  If linking a library
16566      # or program results in "error TOC overflow" add -mminimal-toc to
16567      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16568      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16569
16570      archive_cmds_GCJ=''
16571      hardcode_direct_GCJ=yes
16572      hardcode_libdir_separator_GCJ=':'
16573      link_all_deplibs_GCJ=yes
16574
16575      if test "$GCC" = yes; then
16576	case $host_os in aix4.[012]|aix4.[012].*)
16577	# We only want to do this on AIX 4.2 and lower, the check
16578	# below for broken collect2 doesn't work under 4.3+
16579	  collect2name=`${CC} -print-prog-name=collect2`
16580	  if test -f "$collect2name" && \
16581  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16582	  then
16583  	  # We have reworked collect2
16584  	  hardcode_direct_GCJ=yes
16585	  else
16586  	  # We have old collect2
16587  	  hardcode_direct_GCJ=unsupported
16588  	  # It fails to find uninstalled libraries when the uninstalled
16589  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16590  	  # to unsupported forces relinking
16591  	  hardcode_minus_L_GCJ=yes
16592  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16593  	  hardcode_libdir_separator_GCJ=
16594	  fi
16595	  ;;
16596	esac
16597	shared_flag='-shared'
16598	if test "$aix_use_runtimelinking" = yes; then
16599	  shared_flag="$shared_flag "'${wl}-G'
16600	fi
16601      else
16602	# not using gcc
16603	if test "$host_cpu" = ia64; then
16604  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16605  	# chokes on -Wl,-G. The following line is correct:
16606	  shared_flag='-G'
16607	else
16608	  if test "$aix_use_runtimelinking" = yes; then
16609	    shared_flag='${wl}-G'
16610	  else
16611	    shared_flag='${wl}-bM:SRE'
16612	  fi
16613	fi
16614      fi
16615
16616      # It seems that -bexpall does not export symbols beginning with
16617      # underscore (_), so it is better to generate a list of symbols to export.
16618      always_export_symbols_GCJ=yes
16619      if test "$aix_use_runtimelinking" = yes; then
16620	# Warning - without using the other runtime loading flags (-brtl),
16621	# -berok will link without error, but may produce a broken library.
16622	allow_undefined_flag_GCJ='-berok'
16623       # Determine the default libpath from the value encoded in an empty executable.
16624       cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h.  */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h.  */
16630
16631int
16632main ()
16633{
16634
16635  ;
16636  return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext conftest$ac_exeext
16640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16641  (eval $ac_link) 2>conftest.er1
16642  ac_status=$?
16643  grep -v '^ *+' conftest.er1 >conftest.err
16644  rm -f conftest.er1
16645  cat conftest.err >&5
16646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647  (exit $ac_status); } &&
16648	 { ac_try='test -z "$ac_c_werror_flag"
16649			 || test ! -s conftest.err'
16650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651  (eval $ac_try) 2>&5
16652  ac_status=$?
16653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654  (exit $ac_status); }; } &&
16655	 { ac_try='test -s conftest$ac_exeext'
16656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657  (eval $ac_try) 2>&5
16658  ac_status=$?
16659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660  (exit $ac_status); }; }; then
16661
16662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16663}'`
16664# Check for a 64-bit object if we didn't find anything.
16665if 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; }
16666}'`; fi
16667else
16668  echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671fi
16672rm -f conftest.err conftest.$ac_objext \
16673      conftest$ac_exeext conftest.$ac_ext
16674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16675
16676       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16677	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"
16678       else
16679	if test "$host_cpu" = ia64; then
16680	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16681	  allow_undefined_flag_GCJ="-z nodefs"
16682	  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"
16683	else
16684	 # Determine the default libpath from the value encoded in an empty executable.
16685	 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h.  */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h.  */
16691
16692int
16693main ()
16694{
16695
16696  ;
16697  return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext conftest$ac_exeext
16701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702  (eval $ac_link) 2>conftest.er1
16703  ac_status=$?
16704  grep -v '^ *+' conftest.er1 >conftest.err
16705  rm -f conftest.er1
16706  cat conftest.err >&5
16707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708  (exit $ac_status); } &&
16709	 { ac_try='test -z "$ac_c_werror_flag"
16710			 || test ! -s conftest.err'
16711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712  (eval $ac_try) 2>&5
16713  ac_status=$?
16714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715  (exit $ac_status); }; } &&
16716	 { ac_try='test -s conftest$ac_exeext'
16717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718  (eval $ac_try) 2>&5
16719  ac_status=$?
16720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721  (exit $ac_status); }; }; then
16722
16723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16724}'`
16725# Check for a 64-bit object if we didn't find anything.
16726if 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; }
16727}'`; fi
16728else
16729  echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732fi
16733rm -f conftest.err conftest.$ac_objext \
16734      conftest$ac_exeext conftest.$ac_ext
16735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16736
16737	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738	  # Warning - without using the other run time loading flags,
16739	  # -berok will link without error, but may produce a broken library.
16740	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16741	  allow_undefined_flag_GCJ=' ${wl}-berok'
16742	  # Exported symbols can be pulled into shared objects from archives
16743	  whole_archive_flag_spec_GCJ='$convenience'
16744	  archive_cmds_need_lc_GCJ=yes
16745	  # This is similar to how AIX traditionally builds its shared libraries.
16746	  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'
16747	fi
16748      fi
16749      ;;
16750
16751    amigaos*)
16752      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)'
16753      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754      hardcode_minus_L_GCJ=yes
16755      # see comment about different semantics on the GNU ld section
16756      ld_shlibs_GCJ=no
16757      ;;
16758
16759    bsdi[45]*)
16760      export_dynamic_flag_spec_GCJ=-rdynamic
16761      ;;
16762
16763    cygwin* | mingw* | pw32*)
16764      # When not using gcc, we currently assume that we are using
16765      # Microsoft Visual C++.
16766      # hardcode_libdir_flag_spec is actually meaningless, as there is
16767      # no search path for DLLs.
16768      hardcode_libdir_flag_spec_GCJ=' '
16769      allow_undefined_flag_GCJ=unsupported
16770      # Tell ltmain to make .lib files, not .a files.
16771      libext=lib
16772      # Tell ltmain to make .dll files, not .so files.
16773      shrext_cmds=".dll"
16774      # FIXME: Setting linknames here is a bad hack.
16775      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16776      # The linker will automatically build a .lib file if we build a DLL.
16777      old_archive_From_new_cmds_GCJ='true'
16778      # FIXME: Should let the user specify the lib program.
16779      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16780      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16781      enable_shared_with_static_runtimes_GCJ=yes
16782      ;;
16783
16784    darwin* | rhapsody*)
16785      case $host_os in
16786        rhapsody* | darwin1.[012])
16787         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16788         ;;
16789       *) # Darwin 1.3 on
16790         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16791           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16792         else
16793           case ${MACOSX_DEPLOYMENT_TARGET} in
16794             10.[012])
16795               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16796               ;;
16797             10.*)
16798               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16799               ;;
16800           esac
16801         fi
16802         ;;
16803      esac
16804      archive_cmds_need_lc_GCJ=no
16805      hardcode_direct_GCJ=no
16806      hardcode_automatic_GCJ=yes
16807      hardcode_shlibpath_var_GCJ=unsupported
16808      whole_archive_flag_spec_GCJ=''
16809      link_all_deplibs_GCJ=yes
16810    if test "$GCC" = yes ; then
16811    	output_verbose_link_cmd='echo'
16812        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16813      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16814      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16815      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}'
16816      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}'
16817    else
16818      case $cc_basename in
16819        xlc*)
16820         output_verbose_link_cmd='echo'
16821         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16822         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16823          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16824         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}'
16825          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}'
16826          ;;
16827       *)
16828         ld_shlibs_GCJ=no
16829          ;;
16830      esac
16831    fi
16832      ;;
16833
16834    dgux*)
16835      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16836      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16837      hardcode_shlibpath_var_GCJ=no
16838      ;;
16839
16840    freebsd1*)
16841      ld_shlibs_GCJ=no
16842      ;;
16843
16844    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16845    # support.  Future versions do this automatically, but an explicit c++rt0.o
16846    # does not break anything, and helps significantly (at the cost of a little
16847    # extra space).
16848    freebsd2.2*)
16849      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16850      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16851      hardcode_direct_GCJ=yes
16852      hardcode_shlibpath_var_GCJ=no
16853      ;;
16854
16855    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16856    freebsd2*)
16857      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16858      hardcode_direct_GCJ=yes
16859      hardcode_minus_L_GCJ=yes
16860      hardcode_shlibpath_var_GCJ=no
16861      ;;
16862
16863    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16864    freebsd* | kfreebsd*-gnu | dragonfly*)
16865      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16866      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867      hardcode_direct_GCJ=yes
16868      hardcode_shlibpath_var_GCJ=no
16869      ;;
16870
16871    hpux9*)
16872      if test "$GCC" = yes; then
16873	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'
16874      else
16875	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'
16876      fi
16877      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16878      hardcode_libdir_separator_GCJ=:
16879      hardcode_direct_GCJ=yes
16880
16881      # hardcode_minus_L: Not really in the search PATH,
16882      # but as the default location of the library.
16883      hardcode_minus_L_GCJ=yes
16884      export_dynamic_flag_spec_GCJ='${wl}-E'
16885      ;;
16886
16887    hpux10*)
16888      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16889	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16890      else
16891	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16892      fi
16893      if test "$with_gnu_ld" = no; then
16894	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16895	hardcode_libdir_separator_GCJ=:
16896
16897	hardcode_direct_GCJ=yes
16898	export_dynamic_flag_spec_GCJ='${wl}-E'
16899
16900	# hardcode_minus_L: Not really in the search PATH,
16901	# but as the default location of the library.
16902	hardcode_minus_L_GCJ=yes
16903      fi
16904      ;;
16905
16906    hpux11*)
16907      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16908	case $host_cpu in
16909	hppa*64*)
16910	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16911	  ;;
16912	ia64*)
16913	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16914	  ;;
16915	*)
16916	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16917	  ;;
16918	esac
16919      else
16920	case $host_cpu in
16921	hppa*64*)
16922	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923	  ;;
16924	ia64*)
16925	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16926	  ;;
16927	*)
16928	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16929	  ;;
16930	esac
16931      fi
16932      if test "$with_gnu_ld" = no; then
16933	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16934	hardcode_libdir_separator_GCJ=:
16935
16936	case $host_cpu in
16937	hppa*64*|ia64*)
16938	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16939	  hardcode_direct_GCJ=no
16940	  hardcode_shlibpath_var_GCJ=no
16941	  ;;
16942	*)
16943	  hardcode_direct_GCJ=yes
16944	  export_dynamic_flag_spec_GCJ='${wl}-E'
16945
16946	  # hardcode_minus_L: Not really in the search PATH,
16947	  # but as the default location of the library.
16948	  hardcode_minus_L_GCJ=yes
16949	  ;;
16950	esac
16951      fi
16952      ;;
16953
16954    irix5* | irix6* | nonstopux*)
16955      if test "$GCC" = yes; then
16956	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'
16957      else
16958	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'
16959	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16960      fi
16961      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16962      hardcode_libdir_separator_GCJ=:
16963      link_all_deplibs_GCJ=yes
16964      ;;
16965
16966    netbsd*)
16967      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16968	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16969      else
16970	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16971      fi
16972      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16973      hardcode_direct_GCJ=yes
16974      hardcode_shlibpath_var_GCJ=no
16975      ;;
16976
16977    newsos6)
16978      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16979      hardcode_direct_GCJ=yes
16980      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16981      hardcode_libdir_separator_GCJ=:
16982      hardcode_shlibpath_var_GCJ=no
16983      ;;
16984
16985    openbsd*)
16986      hardcode_direct_GCJ=yes
16987      hardcode_shlibpath_var_GCJ=no
16988      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16989	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16990	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16991	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16992	export_dynamic_flag_spec_GCJ='${wl}-E'
16993      else
16994       case $host_os in
16995	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16996	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16997	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16998	   ;;
16999	 *)
17000	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17001	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17002	   ;;
17003       esac
17004      fi
17005      ;;
17006
17007    os2*)
17008      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17009      hardcode_minus_L_GCJ=yes
17010      allow_undefined_flag_GCJ=unsupported
17011      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'
17012      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17013      ;;
17014
17015    osf3*)
17016      if test "$GCC" = yes; then
17017	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17018	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'
17019      else
17020	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17021	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'
17022      fi
17023      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17024      hardcode_libdir_separator_GCJ=:
17025      ;;
17026
17027    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17028      if test "$GCC" = yes; then
17029	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17030	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'
17031	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17032      else
17033	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17034	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'
17035	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~
17036	$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'
17037
17038	# Both c and cxx compiler support -rpath directly
17039	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17040      fi
17041      hardcode_libdir_separator_GCJ=:
17042      ;;
17043
17044    solaris*)
17045      no_undefined_flag_GCJ=' -z text'
17046      if test "$GCC" = yes; then
17047	wlarc='${wl}'
17048	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17049	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17050	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17051      else
17052	wlarc=''
17053	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17054	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17055  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17056      fi
17057      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17058      hardcode_shlibpath_var_GCJ=no
17059      case $host_os in
17060      solaris2.[0-5] | solaris2.[0-5].*) ;;
17061      *)
17062 	# The compiler driver will combine linker options so we
17063 	# cannot just pass the convience library names through
17064 	# without $wl, iff we do not link with $LD.
17065 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17066 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17067 	case $wlarc in
17068 	'')
17069 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17070 	*)
17071 	  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' ;;
17072 	esac ;;
17073      esac
17074      link_all_deplibs_GCJ=yes
17075      ;;
17076
17077    sunos4*)
17078      if test "x$host_vendor" = xsequent; then
17079	# Use $CC to link under sequent, because it throws in some extra .o
17080	# files that make .init and .fini sections work.
17081	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17082      else
17083	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17084      fi
17085      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17086      hardcode_direct_GCJ=yes
17087      hardcode_minus_L_GCJ=yes
17088      hardcode_shlibpath_var_GCJ=no
17089      ;;
17090
17091    sysv4)
17092      case $host_vendor in
17093	sni)
17094	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095	  hardcode_direct_GCJ=yes # is this really true???
17096	;;
17097	siemens)
17098	  ## LD is ld it makes a PLAMLIB
17099	  ## CC just makes a GrossModule.
17100	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17101	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17102	  hardcode_direct_GCJ=no
17103        ;;
17104	motorola)
17105	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17107	;;
17108      esac
17109      runpath_var='LD_RUN_PATH'
17110      hardcode_shlibpath_var_GCJ=no
17111      ;;
17112
17113    sysv4.3*)
17114      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115      hardcode_shlibpath_var_GCJ=no
17116      export_dynamic_flag_spec_GCJ='-Bexport'
17117      ;;
17118
17119    sysv4*MP*)
17120      if test -d /usr/nec; then
17121	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17122	hardcode_shlibpath_var_GCJ=no
17123	runpath_var=LD_RUN_PATH
17124	hardcode_runpath_var=yes
17125	ld_shlibs_GCJ=yes
17126      fi
17127      ;;
17128
17129    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17130      no_undefined_flag_GCJ='${wl}-z,text'
17131      archive_cmds_need_lc_GCJ=no
17132      hardcode_shlibpath_var_GCJ=no
17133      runpath_var='LD_RUN_PATH'
17134
17135      if test "$GCC" = yes; then
17136	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17137	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17138      else
17139	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17140	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17141      fi
17142      ;;
17143
17144    sysv5* | sco3.2v5* | sco5v6*)
17145      # Note: We can NOT use -z defs as we might desire, because we do not
17146      # link with -lc, and that would cause any symbols used from libc to
17147      # always be unresolved, which means just about no library would
17148      # ever link correctly.  If we're not using GNU ld we use -z text
17149      # though, which does catch some bad symbols but isn't as heavy-handed
17150      # as -z defs.
17151      no_undefined_flag_GCJ='${wl}-z,text'
17152      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17153      archive_cmds_need_lc_GCJ=no
17154      hardcode_shlibpath_var_GCJ=no
17155      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17156      hardcode_libdir_separator_GCJ=':'
17157      link_all_deplibs_GCJ=yes
17158      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17159      runpath_var='LD_RUN_PATH'
17160
17161      if test "$GCC" = yes; then
17162	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164      else
17165	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17166	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167      fi
17168      ;;
17169
17170    uts4*)
17171      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17172      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17173      hardcode_shlibpath_var_GCJ=no
17174      ;;
17175
17176    *)
17177      ld_shlibs_GCJ=no
17178      ;;
17179    esac
17180  fi
17181
17182echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17183echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17184test "$ld_shlibs_GCJ" = no && can_build_shared=no
17185
17186#
17187# Do we need to explicitly link libc?
17188#
17189case "x$archive_cmds_need_lc_GCJ" in
17190x|xyes)
17191  # Assume -lc should be added
17192  archive_cmds_need_lc_GCJ=yes
17193
17194  if test "$enable_shared" = yes && test "$GCC" = yes; then
17195    case $archive_cmds_GCJ in
17196    *'~'*)
17197      # FIXME: we may have to deal with multi-command sequences.
17198      ;;
17199    '$CC '*)
17200      # Test whether the compiler implicitly links with -lc since on some
17201      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17202      # to ld, don't add -lc before -lgcc.
17203      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17205      $rm conftest*
17206      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17207
17208      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17209  (eval $ac_compile) 2>&5
17210  ac_status=$?
17211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212  (exit $ac_status); } 2>conftest.err; then
17213        soname=conftest
17214        lib=conftest
17215        libobjs=conftest.$ac_objext
17216        deplibs=
17217        wl=$lt_prog_compiler_wl_GCJ
17218	pic_flag=$lt_prog_compiler_pic_GCJ
17219        compiler_flags=-v
17220        linker_flags=-v
17221        verstring=
17222        output_objdir=.
17223        libname=conftest
17224        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17225        allow_undefined_flag_GCJ=
17226        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17227  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17228  ac_status=$?
17229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230  (exit $ac_status); }
17231        then
17232	  archive_cmds_need_lc_GCJ=no
17233        else
17234	  archive_cmds_need_lc_GCJ=yes
17235        fi
17236        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17237      else
17238        cat conftest.err 1>&5
17239      fi
17240      $rm conftest*
17241      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17242echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17243      ;;
17244    esac
17245  fi
17246  ;;
17247esac
17248
17249echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17250echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17251library_names_spec=
17252libname_spec='lib$name'
17253soname_spec=
17254shrext_cmds=".so"
17255postinstall_cmds=
17256postuninstall_cmds=
17257finish_cmds=
17258finish_eval=
17259shlibpath_var=
17260shlibpath_overrides_runpath=unknown
17261version_type=none
17262dynamic_linker="$host_os ld.so"
17263sys_lib_dlsearch_path_spec="/lib /usr/lib"
17264if test "$GCC" = yes; then
17265  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17266  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17267    # if the path contains ";" then we assume it to be the separator
17268    # otherwise default to the standard path separator (i.e. ":") - it is
17269    # assumed that no part of a normal pathname contains ";" but that should
17270    # okay in the real world where ";" in dirpaths is itself problematic.
17271    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17272  else
17273    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17274  fi
17275else
17276  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17277fi
17278need_lib_prefix=unknown
17279hardcode_into_libs=no
17280
17281# when you set need_version to no, make sure it does not cause -set_version
17282# flags to be left without arguments
17283need_version=unknown
17284
17285case $host_os in
17286aix3*)
17287  version_type=linux
17288  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17289  shlibpath_var=LIBPATH
17290
17291  # AIX 3 has no versioning support, so we append a major version to the name.
17292  soname_spec='${libname}${release}${shared_ext}$major'
17293  ;;
17294
17295aix4* | aix5*)
17296  version_type=linux
17297  need_lib_prefix=no
17298  need_version=no
17299  hardcode_into_libs=yes
17300  if test "$host_cpu" = ia64; then
17301    # AIX 5 supports IA64
17302    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17303    shlibpath_var=LD_LIBRARY_PATH
17304  else
17305    # With GCC up to 2.95.x, collect2 would create an import file
17306    # for dependence libraries.  The import file would start with
17307    # the line `#! .'.  This would cause the generated library to
17308    # depend on `.', always an invalid library.  This was fixed in
17309    # development snapshots of GCC prior to 3.0.
17310    case $host_os in
17311      aix4 | aix4.[01] | aix4.[01].*)
17312      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17313	   echo ' yes '
17314	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17315	:
17316      else
17317	can_build_shared=no
17318      fi
17319      ;;
17320    esac
17321    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17322    # soname into executable. Probably we can add versioning support to
17323    # collect2, so additional links can be useful in future.
17324    if test "$aix_use_runtimelinking" = yes; then
17325      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17326      # instead of lib<name>.a to let people know that these are not
17327      # typical AIX shared libraries.
17328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329    else
17330      # We preserve .a as extension for shared libraries through AIX4.2
17331      # and later when we are not doing run time linking.
17332      library_names_spec='${libname}${release}.a $libname.a'
17333      soname_spec='${libname}${release}${shared_ext}$major'
17334    fi
17335    shlibpath_var=LIBPATH
17336  fi
17337  ;;
17338
17339amigaos*)
17340  library_names_spec='$libname.ixlibrary $libname.a'
17341  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17342  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'
17343  ;;
17344
17345beos*)
17346  library_names_spec='${libname}${shared_ext}'
17347  dynamic_linker="$host_os ld.so"
17348  shlibpath_var=LIBRARY_PATH
17349  ;;
17350
17351bsdi[45]*)
17352  version_type=linux
17353  need_version=no
17354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355  soname_spec='${libname}${release}${shared_ext}$major'
17356  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17357  shlibpath_var=LD_LIBRARY_PATH
17358  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17359  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17360  # the default ld.so.conf also contains /usr/contrib/lib and
17361  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17362  # libtool to hard-code these into programs
17363  ;;
17364
17365cygwin* | mingw* | pw32*)
17366  version_type=windows
17367  shrext_cmds=".dll"
17368  need_version=no
17369  need_lib_prefix=no
17370
17371  case $GCC,$host_os in
17372  yes,cygwin* | yes,mingw* | yes,pw32*)
17373    library_names_spec='$libname.dll.a'
17374    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17375    postinstall_cmds='base_file=`basename \${file}`~
17376      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17377      dldir=$destdir/`dirname \$dlpath`~
17378      test -d \$dldir || mkdir -p \$dldir~
17379      $install_prog $dir/$dlname \$dldir/$dlname~
17380      chmod a+x \$dldir/$dlname'
17381    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17382      dlpath=$dir/\$dldll~
17383       $rm \$dlpath'
17384    shlibpath_overrides_runpath=yes
17385
17386    case $host_os in
17387    cygwin*)
17388      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17389      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17390      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17391      ;;
17392    mingw*)
17393      # MinGW DLLs use traditional 'lib' prefix
17394      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17395      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17396      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17397        # It is most probably a Windows format PATH printed by
17398        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17399        # path with ; separators, and with drive letters. We can handle the
17400        # drive letters (cygwin fileutils understands them), so leave them,
17401        # especially as we might pass files found there to a mingw objdump,
17402        # which wouldn't understand a cygwinified path. Ahh.
17403        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17404      else
17405        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17406      fi
17407      ;;
17408    pw32*)
17409      # pw32 DLLs use 'pw' prefix rather than 'lib'
17410      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411      ;;
17412    esac
17413    ;;
17414
17415  linux*)
17416    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17417      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418      supports_anon_versioning=no
17419      case `$LD -v 2>/dev/null` in
17420        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17421        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17422        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17423        *\ 2.11.*) ;; # other 2.11 versions
17424        *) supports_anon_versioning=yes ;;
17425      esac
17426      if test $supports_anon_versioning = yes; then
17427        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17428cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17429$echo "local: *; };" >> $output_objdir/$libname.ver~
17430        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17431      else
17432        $archive_expsym_cmds="$archive_cmds"
17433      fi
17434    else
17435      ld_shlibs=no
17436    fi
17437    ;;
17438
17439  *)
17440    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17441    ;;
17442  esac
17443  dynamic_linker='Win32 ld.exe'
17444  # FIXME: first we should search . and the directory the executable is in
17445  shlibpath_var=PATH
17446  ;;
17447
17448darwin* | rhapsody*)
17449  dynamic_linker="$host_os dyld"
17450  version_type=darwin
17451  need_lib_prefix=no
17452  need_version=no
17453  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17454  soname_spec='${libname}${release}${major}$shared_ext'
17455  shlibpath_overrides_runpath=yes
17456  shlibpath_var=DYLD_LIBRARY_PATH
17457  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17458  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17459  if test "$GCC" = yes; then
17460    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"`
17461  else
17462    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17463  fi
17464  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17465  ;;
17466
17467dgux*)
17468  version_type=linux
17469  need_lib_prefix=no
17470  need_version=no
17471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17472  soname_spec='${libname}${release}${shared_ext}$major'
17473  shlibpath_var=LD_LIBRARY_PATH
17474  ;;
17475
17476freebsd1*)
17477  dynamic_linker=no
17478  ;;
17479
17480kfreebsd*-gnu)
17481  version_type=linux
17482  need_lib_prefix=no
17483  need_version=no
17484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17485  soname_spec='${libname}${release}${shared_ext}$major'
17486  shlibpath_var=LD_LIBRARY_PATH
17487  shlibpath_overrides_runpath=no
17488  hardcode_into_libs=yes
17489  dynamic_linker='GNU ld.so'
17490  ;;
17491
17492freebsd* | dragonfly*)
17493  # DragonFly does not have aout.  When/if they implement a new
17494  # versioning mechanism, adjust this.
17495  if test -x /usr/bin/objformat; then
17496    objformat=`/usr/bin/objformat`
17497  else
17498    case $host_os in
17499    freebsd[123]*) objformat=aout ;;
17500    *) objformat=elf ;;
17501    esac
17502  fi
17503  # Handle Gentoo/FreeBSD as it was Linux
17504  case $host_vendor in
17505    gentoo)
17506      version_type=linux ;;
17507    *)
17508      version_type=freebsd-$objformat ;;
17509  esac
17510
17511  case $version_type in
17512    freebsd-elf*)
17513      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17514      need_version=no
17515      need_lib_prefix=no
17516      ;;
17517    freebsd-*)
17518      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17519      need_version=yes
17520      ;;
17521    linux)
17522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17523      soname_spec='${libname}${release}${shared_ext}$major'
17524      need_lib_prefix=no
17525      need_version=no
17526      ;;
17527  esac
17528  shlibpath_var=LD_LIBRARY_PATH
17529  case $host_os in
17530  freebsd2*)
17531    shlibpath_overrides_runpath=yes
17532    ;;
17533  freebsd3.[01]* | freebsdelf3.[01]*)
17534    shlibpath_overrides_runpath=yes
17535    hardcode_into_libs=yes
17536    ;;
17537  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17538  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17539    shlibpath_overrides_runpath=no
17540    hardcode_into_libs=yes
17541    ;;
17542  freebsd*) # from 4.6 on
17543    shlibpath_overrides_runpath=yes
17544    hardcode_into_libs=yes
17545    ;;
17546  esac
17547  ;;
17548
17549gnu*)
17550  version_type=linux
17551  need_lib_prefix=no
17552  need_version=no
17553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17554  soname_spec='${libname}${release}${shared_ext}$major'
17555  shlibpath_var=LD_LIBRARY_PATH
17556  hardcode_into_libs=yes
17557  ;;
17558
17559hpux9* | hpux10* | hpux11*)
17560  # Give a soname corresponding to the major version so that dld.sl refuses to
17561  # link against other versions.
17562  version_type=sunos
17563  need_lib_prefix=no
17564  need_version=no
17565  case $host_cpu in
17566  ia64*)
17567    shrext_cmds='.so'
17568    hardcode_into_libs=yes
17569    dynamic_linker="$host_os dld.so"
17570    shlibpath_var=LD_LIBRARY_PATH
17571    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17572    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573    soname_spec='${libname}${release}${shared_ext}$major'
17574    if test "X$HPUX_IA64_MODE" = X32; then
17575      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17576    else
17577      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17578    fi
17579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17580    ;;
17581   hppa*64*)
17582     shrext_cmds='.sl'
17583     hardcode_into_libs=yes
17584     dynamic_linker="$host_os dld.sl"
17585     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588     soname_spec='${libname}${release}${shared_ext}$major'
17589     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17590     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17591     ;;
17592   *)
17593    shrext_cmds='.sl'
17594    dynamic_linker="$host_os dld.sl"
17595    shlibpath_var=SHLIB_PATH
17596    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598    soname_spec='${libname}${release}${shared_ext}$major'
17599    ;;
17600  esac
17601  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17602  postinstall_cmds='chmod 555 $lib'
17603  ;;
17604
17605interix3*)
17606  version_type=linux
17607  need_lib_prefix=no
17608  need_version=no
17609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17610  soname_spec='${libname}${release}${shared_ext}$major'
17611  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17612  shlibpath_var=LD_LIBRARY_PATH
17613  shlibpath_overrides_runpath=no
17614  hardcode_into_libs=yes
17615  ;;
17616
17617irix5* | irix6* | nonstopux*)
17618  case $host_os in
17619    nonstopux*) version_type=nonstopux ;;
17620    *)
17621	if test "$lt_cv_prog_gnu_ld" = yes; then
17622		version_type=linux
17623	else
17624		version_type=irix
17625	fi ;;
17626  esac
17627  need_lib_prefix=no
17628  need_version=no
17629  soname_spec='${libname}${release}${shared_ext}$major'
17630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17631  case $host_os in
17632  irix5* | nonstopux*)
17633    libsuff= shlibsuff=
17634    ;;
17635  *)
17636    case $LD in # libtool.m4 will add one of these switches to LD
17637    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17638      libsuff= shlibsuff= libmagic=32-bit;;
17639    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17640      libsuff=32 shlibsuff=N32 libmagic=N32;;
17641    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17642      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17643    *) libsuff= shlibsuff= libmagic=never-match;;
17644    esac
17645    ;;
17646  esac
17647  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17648  shlibpath_overrides_runpath=no
17649  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17650  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17651  hardcode_into_libs=yes
17652  ;;
17653
17654# No shared lib support for Linux oldld, aout, or coff.
17655linux*oldld* | linux*aout* | linux*coff*)
17656  dynamic_linker=no
17657  ;;
17658
17659# This must be Linux ELF.
17660linux*)
17661  version_type=linux
17662  need_lib_prefix=no
17663  need_version=no
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665  soname_spec='${libname}${release}${shared_ext}$major'
17666  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17667  shlibpath_var=LD_LIBRARY_PATH
17668  shlibpath_overrides_runpath=no
17669  # This implies no fast_install, which is unacceptable.
17670  # Some rework will be needed to allow for fast_install
17671  # before this can be enabled.
17672  hardcode_into_libs=yes
17673
17674  # Append ld.so.conf contents to the search path
17675  if test -f /etc/ld.so.conf; then
17676    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' ' '`
17677    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17678  fi
17679
17680  # We used to test for /lib/ld.so.1 and disable shared libraries on
17681  # powerpc, because MkLinux only supported shared libraries with the
17682  # GNU dynamic linker.  Since this was broken with cross compilers,
17683  # most powerpc-linux boxes support dynamic linking these days and
17684  # people can always --disable-shared, the test was removed, and we
17685  # assume the GNU/Linux dynamic linker is in use.
17686  dynamic_linker='GNU/Linux ld.so'
17687  ;;
17688
17689knetbsd*-gnu)
17690  version_type=linux
17691  need_lib_prefix=no
17692  need_version=no
17693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694  soname_spec='${libname}${release}${shared_ext}$major'
17695  shlibpath_var=LD_LIBRARY_PATH
17696  shlibpath_overrides_runpath=no
17697  hardcode_into_libs=yes
17698  dynamic_linker='GNU ld.so'
17699  ;;
17700
17701netbsd*)
17702  version_type=sunos
17703  need_lib_prefix=no
17704  need_version=no
17705  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17707    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17708    dynamic_linker='NetBSD (a.out) ld.so'
17709  else
17710    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711    soname_spec='${libname}${release}${shared_ext}$major'
17712    dynamic_linker='NetBSD ld.elf_so'
17713  fi
17714  shlibpath_var=LD_LIBRARY_PATH
17715  shlibpath_overrides_runpath=yes
17716  hardcode_into_libs=yes
17717  ;;
17718
17719newsos6)
17720  version_type=linux
17721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722  shlibpath_var=LD_LIBRARY_PATH
17723  shlibpath_overrides_runpath=yes
17724  ;;
17725
17726nto-qnx*)
17727  version_type=linux
17728  need_lib_prefix=no
17729  need_version=no
17730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731  soname_spec='${libname}${release}${shared_ext}$major'
17732  shlibpath_var=LD_LIBRARY_PATH
17733  shlibpath_overrides_runpath=yes
17734  ;;
17735
17736openbsd*)
17737  version_type=sunos
17738  sys_lib_dlsearch_path_spec="/usr/lib"
17739  need_lib_prefix=no
17740  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17741  case $host_os in
17742    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17743    *)                         need_version=no  ;;
17744  esac
17745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17749    case $host_os in
17750      openbsd2.[89] | openbsd2.[89].*)
17751	shlibpath_overrides_runpath=no
17752	;;
17753      *)
17754	shlibpath_overrides_runpath=yes
17755	;;
17756      esac
17757  else
17758    shlibpath_overrides_runpath=yes
17759  fi
17760  ;;
17761
17762os2*)
17763  libname_spec='$name'
17764  shrext_cmds=".dll"
17765  need_lib_prefix=no
17766  library_names_spec='$libname${shared_ext} $libname.a'
17767  dynamic_linker='OS/2 ld.exe'
17768  shlibpath_var=LIBPATH
17769  ;;
17770
17771osf3* | osf4* | osf5*)
17772  version_type=osf
17773  need_lib_prefix=no
17774  need_version=no
17775  soname_spec='${libname}${release}${shared_ext}$major'
17776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777  shlibpath_var=LD_LIBRARY_PATH
17778  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17779  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17780  ;;
17781
17782solaris*)
17783  version_type=linux
17784  need_lib_prefix=no
17785  need_version=no
17786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787  soname_spec='${libname}${release}${shared_ext}$major'
17788  shlibpath_var=LD_LIBRARY_PATH
17789  shlibpath_overrides_runpath=yes
17790  hardcode_into_libs=yes
17791  # ldd complains unless libraries are executable
17792  postinstall_cmds='chmod +x $lib'
17793  ;;
17794
17795sunos4*)
17796  version_type=sunos
17797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17799  shlibpath_var=LD_LIBRARY_PATH
17800  shlibpath_overrides_runpath=yes
17801  if test "$with_gnu_ld" = yes; then
17802    need_lib_prefix=no
17803  fi
17804  need_version=yes
17805  ;;
17806
17807sysv4 | sysv4.3*)
17808  version_type=linux
17809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810  soname_spec='${libname}${release}${shared_ext}$major'
17811  shlibpath_var=LD_LIBRARY_PATH
17812  case $host_vendor in
17813    sni)
17814      shlibpath_overrides_runpath=no
17815      need_lib_prefix=no
17816      export_dynamic_flag_spec='${wl}-Blargedynsym'
17817      runpath_var=LD_RUN_PATH
17818      ;;
17819    siemens)
17820      need_lib_prefix=no
17821      ;;
17822    motorola)
17823      need_lib_prefix=no
17824      need_version=no
17825      shlibpath_overrides_runpath=no
17826      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17827      ;;
17828  esac
17829  ;;
17830
17831sysv4*MP*)
17832  if test -d /usr/nec ;then
17833    version_type=linux
17834    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17835    soname_spec='$libname${shared_ext}.$major'
17836    shlibpath_var=LD_LIBRARY_PATH
17837  fi
17838  ;;
17839
17840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17841  version_type=freebsd-elf
17842  need_lib_prefix=no
17843  need_version=no
17844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17845  soname_spec='${libname}${release}${shared_ext}$major'
17846  shlibpath_var=LD_LIBRARY_PATH
17847  hardcode_into_libs=yes
17848  if test "$with_gnu_ld" = yes; then
17849    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17850    shlibpath_overrides_runpath=no
17851  else
17852    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17853    shlibpath_overrides_runpath=yes
17854    case $host_os in
17855      sco3.2v5*)
17856        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17857	;;
17858    esac
17859  fi
17860  sys_lib_dlsearch_path_spec='/usr/lib'
17861  ;;
17862
17863uts4*)
17864  version_type=linux
17865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866  soname_spec='${libname}${release}${shared_ext}$major'
17867  shlibpath_var=LD_LIBRARY_PATH
17868  ;;
17869
17870*)
17871  dynamic_linker=no
17872  ;;
17873esac
17874echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17875echo "${ECHO_T}$dynamic_linker" >&6
17876test "$dynamic_linker" = no && can_build_shared=no
17877
17878variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17879if test "$GCC" = yes; then
17880  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17881fi
17882
17883echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885hardcode_action_GCJ=
17886if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887   test -n "$runpath_var_GCJ" || \
17888   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17889
17890  # We can hardcode non-existant directories.
17891  if test "$hardcode_direct_GCJ" != no &&
17892     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893     # have to relink, otherwise we might link with an installed library
17894     # when we should be linking with a yet-to-be-installed one
17895     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896     test "$hardcode_minus_L_GCJ" != no; then
17897    # Linking always hardcodes the temporary library directory.
17898    hardcode_action_GCJ=relink
17899  else
17900    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901    hardcode_action_GCJ=immediate
17902  fi
17903else
17904  # We cannot hardcode anything, or else we can only hardcode existing
17905  # directories.
17906  hardcode_action_GCJ=unsupported
17907fi
17908echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909echo "${ECHO_T}$hardcode_action_GCJ" >&6
17910
17911if test "$hardcode_action_GCJ" = relink; then
17912  # Fast installation is not supported
17913  enable_fast_install=no
17914elif test "$shlibpath_overrides_runpath" = yes ||
17915     test "$enable_shared" = no; then
17916  # Fast installation is not necessary
17917  enable_fast_install=needless
17918fi
17919
17920
17921# The else clause should only fire when bootstrapping the
17922# libtool distribution, otherwise you forgot to ship ltmain.sh
17923# with your package, and you will get complaints that there are
17924# no rules to generate ltmain.sh.
17925if test -f "$ltmain"; then
17926  # See if we are running on zsh, and set the options which allow our commands through
17927  # without removal of \ escapes.
17928  if test -n "${ZSH_VERSION+set}" ; then
17929    setopt NO_GLOB_SUBST
17930  fi
17931  # Now quote all the things that may contain metacharacters while being
17932  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17933  # variables and quote the copies for generation of the libtool script.
17934  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935    SED SHELL STRIP \
17936    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17937    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17938    deplibs_check_method reload_flag reload_cmds need_locks \
17939    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17940    lt_cv_sys_global_symbol_to_c_name_address \
17941    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17942    old_postinstall_cmds old_postuninstall_cmds \
17943    compiler_GCJ \
17944    CC_GCJ \
17945    LD_GCJ \
17946    lt_prog_compiler_wl_GCJ \
17947    lt_prog_compiler_pic_GCJ \
17948    lt_prog_compiler_static_GCJ \
17949    lt_prog_compiler_no_builtin_flag_GCJ \
17950    export_dynamic_flag_spec_GCJ \
17951    thread_safe_flag_spec_GCJ \
17952    whole_archive_flag_spec_GCJ \
17953    enable_shared_with_static_runtimes_GCJ \
17954    old_archive_cmds_GCJ \
17955    old_archive_from_new_cmds_GCJ \
17956    predep_objects_GCJ \
17957    postdep_objects_GCJ \
17958    predeps_GCJ \
17959    postdeps_GCJ \
17960    compiler_lib_search_path_GCJ \
17961    archive_cmds_GCJ \
17962    archive_expsym_cmds_GCJ \
17963    postinstall_cmds_GCJ \
17964    postuninstall_cmds_GCJ \
17965    old_archive_from_expsyms_cmds_GCJ \
17966    allow_undefined_flag_GCJ \
17967    no_undefined_flag_GCJ \
17968    export_symbols_cmds_GCJ \
17969    hardcode_libdir_flag_spec_GCJ \
17970    hardcode_libdir_flag_spec_ld_GCJ \
17971    hardcode_libdir_separator_GCJ \
17972    hardcode_automatic_GCJ \
17973    module_cmds_GCJ \
17974    module_expsym_cmds_GCJ \
17975    lt_cv_prog_compiler_c_o_GCJ \
17976    exclude_expsyms_GCJ \
17977    include_expsyms_GCJ; do
17978
17979    case $var in
17980    old_archive_cmds_GCJ | \
17981    old_archive_from_new_cmds_GCJ | \
17982    archive_cmds_GCJ | \
17983    archive_expsym_cmds_GCJ | \
17984    module_cmds_GCJ | \
17985    module_expsym_cmds_GCJ | \
17986    old_archive_from_expsyms_cmds_GCJ | \
17987    export_symbols_cmds_GCJ | \
17988    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17989    postinstall_cmds | postuninstall_cmds | \
17990    old_postinstall_cmds | old_postuninstall_cmds | \
17991    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17992      # Double-quote double-evaled strings.
17993      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17994      ;;
17995    *)
17996      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17997      ;;
17998    esac
17999  done
18000
18001  case $lt_echo in
18002  *'\$0 --fallback-echo"')
18003    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18004    ;;
18005  esac
18006
18007cfgfile="$ofile"
18008
18009  cat <<__EOF__ >> "$cfgfile"
18010# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18011
18012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18013
18014# Shell to use when invoking shell scripts.
18015SHELL=$lt_SHELL
18016
18017# Whether or not to build shared libraries.
18018build_libtool_libs=$enable_shared
18019
18020# Whether or not to build static libraries.
18021build_old_libs=$enable_static
18022
18023# Whether or not to add -lc for building shared libraries.
18024build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18025
18026# Whether or not to disallow shared libs when runtime libs are static
18027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18028
18029# Whether or not to optimize for fast installation.
18030fast_install=$enable_fast_install
18031
18032# The host system.
18033host_alias=$host_alias
18034host=$host
18035host_os=$host_os
18036
18037# The build system.
18038build_alias=$build_alias
18039build=$build
18040build_os=$build_os
18041
18042# An echo program that does not interpret backslashes.
18043echo=$lt_echo
18044
18045# The archiver.
18046AR=$lt_AR
18047AR_FLAGS=$lt_AR_FLAGS
18048
18049# A C compiler.
18050LTCC=$lt_LTCC
18051
18052# LTCC compiler flags.
18053LTCFLAGS=$lt_LTCFLAGS
18054
18055# A language-specific compiler.
18056CC=$lt_compiler_GCJ
18057
18058# Is the compiler the GNU C compiler?
18059with_gcc=$GCC_GCJ
18060
18061# An ERE matcher.
18062EGREP=$lt_EGREP
18063
18064# The linker used to build libraries.
18065LD=$lt_LD_GCJ
18066
18067# Whether we need hard or soft links.
18068LN_S=$lt_LN_S
18069
18070# A BSD-compatible nm program.
18071NM=$lt_NM
18072
18073# A symbol stripping program
18074STRIP=$lt_STRIP
18075
18076# Used to examine libraries when file_magic_cmd begins "file"
18077MAGIC_CMD=$MAGIC_CMD
18078
18079# Used on cygwin: DLL creation program.
18080DLLTOOL="$DLLTOOL"
18081
18082# Used on cygwin: object dumper.
18083OBJDUMP="$OBJDUMP"
18084
18085# Used on cygwin: assembler.
18086AS="$AS"
18087
18088# The name of the directory that contains temporary libtool files.
18089objdir=$objdir
18090
18091# How to create reloadable object files.
18092reload_flag=$lt_reload_flag
18093reload_cmds=$lt_reload_cmds
18094
18095# How to pass a linker flag through the compiler.
18096wl=$lt_lt_prog_compiler_wl_GCJ
18097
18098# Object file suffix (normally "o").
18099objext="$ac_objext"
18100
18101# Old archive suffix (normally "a").
18102libext="$libext"
18103
18104# Shared library suffix (normally ".so").
18105shrext_cmds='$shrext_cmds'
18106
18107# Executable file suffix (normally "").
18108exeext="$exeext"
18109
18110# Additional compiler flags for building library objects.
18111pic_flag=$lt_lt_prog_compiler_pic_GCJ
18112pic_mode=$pic_mode
18113
18114# What is the maximum length of a command?
18115max_cmd_len=$lt_cv_sys_max_cmd_len
18116
18117# Does compiler simultaneously support -c and -o options?
18118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18119
18120# Must we lock files when doing compilation?
18121need_locks=$lt_need_locks
18122
18123# Do we need the lib prefix for modules?
18124need_lib_prefix=$need_lib_prefix
18125
18126# Do we need a version for libraries?
18127need_version=$need_version
18128
18129# Whether dlopen is supported.
18130dlopen_support=$enable_dlopen
18131
18132# Whether dlopen of programs is supported.
18133dlopen_self=$enable_dlopen_self
18134
18135# Whether dlopen of statically linked programs is supported.
18136dlopen_self_static=$enable_dlopen_self_static
18137
18138# Compiler flag to prevent dynamic linking.
18139link_static_flag=$lt_lt_prog_compiler_static_GCJ
18140
18141# Compiler flag to turn off builtin functions.
18142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18143
18144# Compiler flag to allow reflexive dlopens.
18145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18146
18147# Compiler flag to generate shared objects directly from archives.
18148whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18149
18150# Compiler flag to generate thread-safe objects.
18151thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18152
18153# Library versioning type.
18154version_type=$version_type
18155
18156# Format of library name prefix.
18157libname_spec=$lt_libname_spec
18158
18159# List of archive names.  First name is the real one, the rest are links.
18160# The last name is the one that the linker finds with -lNAME.
18161library_names_spec=$lt_library_names_spec
18162
18163# The coded name of the library, if different from the real name.
18164soname_spec=$lt_soname_spec
18165
18166# Commands used to build and install an old-style archive.
18167RANLIB=$lt_RANLIB
18168old_archive_cmds=$lt_old_archive_cmds_GCJ
18169old_postinstall_cmds=$lt_old_postinstall_cmds
18170old_postuninstall_cmds=$lt_old_postuninstall_cmds
18171
18172# Create an old-style archive from a shared archive.
18173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18174
18175# Create a temporary old-style archive to link instead of a shared archive.
18176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18177
18178# Commands used to build and install a shared archive.
18179archive_cmds=$lt_archive_cmds_GCJ
18180archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18181postinstall_cmds=$lt_postinstall_cmds
18182postuninstall_cmds=$lt_postuninstall_cmds
18183
18184# Commands used to build a loadable module (assumed same as above if empty)
18185module_cmds=$lt_module_cmds_GCJ
18186module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18187
18188# Commands to strip libraries.
18189old_striplib=$lt_old_striplib
18190striplib=$lt_striplib
18191
18192# Dependencies to place before the objects being linked to create a
18193# shared library.
18194predep_objects=$lt_predep_objects_GCJ
18195
18196# Dependencies to place after the objects being linked to create a
18197# shared library.
18198postdep_objects=$lt_postdep_objects_GCJ
18199
18200# Dependencies to place before the objects being linked to create a
18201# shared library.
18202predeps=$lt_predeps_GCJ
18203
18204# Dependencies to place after the objects being linked to create a
18205# shared library.
18206postdeps=$lt_postdeps_GCJ
18207
18208# The library search path used internally by the compiler when linking
18209# a shared library.
18210compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18211
18212# Method to check whether dependent libraries are shared objects.
18213deplibs_check_method=$lt_deplibs_check_method
18214
18215# Command to use when deplibs_check_method == file_magic.
18216file_magic_cmd=$lt_file_magic_cmd
18217
18218# Flag that allows shared libraries with undefined symbols to be built.
18219allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18220
18221# Flag that forces no undefined symbols.
18222no_undefined_flag=$lt_no_undefined_flag_GCJ
18223
18224# Commands used to finish a libtool library installation in a directory.
18225finish_cmds=$lt_finish_cmds
18226
18227# Same as above, but a single script fragment to be evaled but not shown.
18228finish_eval=$lt_finish_eval
18229
18230# Take the output of nm and produce a listing of raw symbols and C names.
18231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18232
18233# Transform the output of nm in a proper C declaration
18234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18235
18236# Transform the output of nm in a C name address pair
18237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18238
18239# This is the shared library runtime path variable.
18240runpath_var=$runpath_var
18241
18242# This is the shared library path variable.
18243shlibpath_var=$shlibpath_var
18244
18245# Is shlibpath searched before the hard-coded library search path?
18246shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18247
18248# How to hardcode a shared library path into an executable.
18249hardcode_action=$hardcode_action_GCJ
18250
18251# Whether we should hardcode library paths into libraries.
18252hardcode_into_libs=$hardcode_into_libs
18253
18254# Flag to hardcode \$libdir into a binary during linking.
18255# This must work even if \$libdir does not exist.
18256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18257
18258# If ld is used when linking, flag to hardcode \$libdir into
18259# a binary during linking. This must work even if \$libdir does
18260# not exist.
18261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18262
18263# Whether we need a single -rpath flag with a separated argument.
18264hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18265
18266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18267# resulting binary.
18268hardcode_direct=$hardcode_direct_GCJ
18269
18270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18271# resulting binary.
18272hardcode_minus_L=$hardcode_minus_L_GCJ
18273
18274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18275# the resulting binary.
18276hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18277
18278# Set to yes if building a shared library automatically hardcodes DIR into the library
18279# and all subsequent libraries and executables linked against it.
18280hardcode_automatic=$hardcode_automatic_GCJ
18281
18282# Variables whose values should be saved in libtool wrapper scripts and
18283# restored at relink time.
18284variables_saved_for_relink="$variables_saved_for_relink"
18285
18286# Whether libtool must link a program against all its dependency libraries.
18287link_all_deplibs=$link_all_deplibs_GCJ
18288
18289# Compile-time system search path for libraries
18290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18291
18292# Run-time system search path for libraries
18293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18294
18295# Fix the shell variable \$srcfile for the compiler.
18296fix_srcfile_path="$fix_srcfile_path_GCJ"
18297
18298# Set to yes if exported symbols are required.
18299always_export_symbols=$always_export_symbols_GCJ
18300
18301# The commands to list exported symbols.
18302export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18303
18304# The commands to extract the exported symbol list from a shared archive.
18305extract_expsyms_cmds=$lt_extract_expsyms_cmds
18306
18307# Symbols that should not be listed in the preloaded symbols.
18308exclude_expsyms=$lt_exclude_expsyms_GCJ
18309
18310# Symbols that must always be exported.
18311include_expsyms=$lt_include_expsyms_GCJ
18312
18313# ### END LIBTOOL TAG CONFIG: $tagname
18314
18315__EOF__
18316
18317
18318else
18319  # If there is no Makefile yet, we rely on a make rule to execute
18320  # `config.status --recheck' to rerun these tests and create the
18321  # libtool script then.
18322  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18323  if test -f "$ltmain_in"; then
18324    test -f Makefile && make "$ltmain"
18325  fi
18326fi
18327
18328
18329ac_ext=c
18330ac_cpp='$CPP $CPPFLAGS'
18331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333ac_compiler_gnu=$ac_cv_c_compiler_gnu
18334
18335CC="$lt_save_CC"
18336
18337	else
18338	  tagname=""
18339	fi
18340	;;
18341
18342      RC)
18343
18344
18345
18346# Source file extension for RC test sources.
18347ac_ext=rc
18348
18349# Object file extension for compiled RC test sources.
18350objext=o
18351objext_RC=$objext
18352
18353# Code to be used in simple compile tests
18354lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18355
18356# Code to be used in simple link tests
18357lt_simple_link_test_code="$lt_simple_compile_test_code"
18358
18359# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18360
18361# If no C compiler was specified, use CC.
18362LTCC=${LTCC-"$CC"}
18363
18364# If no C compiler flags were specified, use CFLAGS.
18365LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366
18367# Allow CC to be a program name with arguments.
18368compiler=$CC
18369
18370
18371# save warnings/boilerplate of simple test code
18372ac_outfile=conftest.$ac_objext
18373printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18374eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18375_lt_compiler_boilerplate=`cat conftest.err`
18376$rm conftest*
18377
18378ac_outfile=conftest.$ac_objext
18379printf "$lt_simple_link_test_code" >conftest.$ac_ext
18380eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18381_lt_linker_boilerplate=`cat conftest.err`
18382$rm conftest*
18383
18384
18385# Allow CC to be a program name with arguments.
18386lt_save_CC="$CC"
18387CC=${RC-"windres"}
18388compiler=$CC
18389compiler_RC=$CC
18390for cc_temp in $compiler""; do
18391  case $cc_temp in
18392    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18393    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18394    \-*) ;;
18395    *) break;;
18396  esac
18397done
18398cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18399
18400lt_cv_prog_compiler_c_o_RC=yes
18401
18402# The else clause should only fire when bootstrapping the
18403# libtool distribution, otherwise you forgot to ship ltmain.sh
18404# with your package, and you will get complaints that there are
18405# no rules to generate ltmain.sh.
18406if test -f "$ltmain"; then
18407  # See if we are running on zsh, and set the options which allow our commands through
18408  # without removal of \ escapes.
18409  if test -n "${ZSH_VERSION+set}" ; then
18410    setopt NO_GLOB_SUBST
18411  fi
18412  # Now quote all the things that may contain metacharacters while being
18413  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18414  # variables and quote the copies for generation of the libtool script.
18415  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18416    SED SHELL STRIP \
18417    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18418    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18419    deplibs_check_method reload_flag reload_cmds need_locks \
18420    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18421    lt_cv_sys_global_symbol_to_c_name_address \
18422    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18423    old_postinstall_cmds old_postuninstall_cmds \
18424    compiler_RC \
18425    CC_RC \
18426    LD_RC \
18427    lt_prog_compiler_wl_RC \
18428    lt_prog_compiler_pic_RC \
18429    lt_prog_compiler_static_RC \
18430    lt_prog_compiler_no_builtin_flag_RC \
18431    export_dynamic_flag_spec_RC \
18432    thread_safe_flag_spec_RC \
18433    whole_archive_flag_spec_RC \
18434    enable_shared_with_static_runtimes_RC \
18435    old_archive_cmds_RC \
18436    old_archive_from_new_cmds_RC \
18437    predep_objects_RC \
18438    postdep_objects_RC \
18439    predeps_RC \
18440    postdeps_RC \
18441    compiler_lib_search_path_RC \
18442    archive_cmds_RC \
18443    archive_expsym_cmds_RC \
18444    postinstall_cmds_RC \
18445    postuninstall_cmds_RC \
18446    old_archive_from_expsyms_cmds_RC \
18447    allow_undefined_flag_RC \
18448    no_undefined_flag_RC \
18449    export_symbols_cmds_RC \
18450    hardcode_libdir_flag_spec_RC \
18451    hardcode_libdir_flag_spec_ld_RC \
18452    hardcode_libdir_separator_RC \
18453    hardcode_automatic_RC \
18454    module_cmds_RC \
18455    module_expsym_cmds_RC \
18456    lt_cv_prog_compiler_c_o_RC \
18457    exclude_expsyms_RC \
18458    include_expsyms_RC; do
18459
18460    case $var in
18461    old_archive_cmds_RC | \
18462    old_archive_from_new_cmds_RC | \
18463    archive_cmds_RC | \
18464    archive_expsym_cmds_RC | \
18465    module_cmds_RC | \
18466    module_expsym_cmds_RC | \
18467    old_archive_from_expsyms_cmds_RC | \
18468    export_symbols_cmds_RC | \
18469    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18470    postinstall_cmds | postuninstall_cmds | \
18471    old_postinstall_cmds | old_postuninstall_cmds | \
18472    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18473      # Double-quote double-evaled strings.
18474      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18475      ;;
18476    *)
18477      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18478      ;;
18479    esac
18480  done
18481
18482  case $lt_echo in
18483  *'\$0 --fallback-echo"')
18484    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18485    ;;
18486  esac
18487
18488cfgfile="$ofile"
18489
18490  cat <<__EOF__ >> "$cfgfile"
18491# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18492
18493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18494
18495# Shell to use when invoking shell scripts.
18496SHELL=$lt_SHELL
18497
18498# Whether or not to build shared libraries.
18499build_libtool_libs=$enable_shared
18500
18501# Whether or not to build static libraries.
18502build_old_libs=$enable_static
18503
18504# Whether or not to add -lc for building shared libraries.
18505build_libtool_need_lc=$archive_cmds_need_lc_RC
18506
18507# Whether or not to disallow shared libs when runtime libs are static
18508allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18509
18510# Whether or not to optimize for fast installation.
18511fast_install=$enable_fast_install
18512
18513# The host system.
18514host_alias=$host_alias
18515host=$host
18516host_os=$host_os
18517
18518# The build system.
18519build_alias=$build_alias
18520build=$build
18521build_os=$build_os
18522
18523# An echo program that does not interpret backslashes.
18524echo=$lt_echo
18525
18526# The archiver.
18527AR=$lt_AR
18528AR_FLAGS=$lt_AR_FLAGS
18529
18530# A C compiler.
18531LTCC=$lt_LTCC
18532
18533# LTCC compiler flags.
18534LTCFLAGS=$lt_LTCFLAGS
18535
18536# A language-specific compiler.
18537CC=$lt_compiler_RC
18538
18539# Is the compiler the GNU C compiler?
18540with_gcc=$GCC_RC
18541
18542# An ERE matcher.
18543EGREP=$lt_EGREP
18544
18545# The linker used to build libraries.
18546LD=$lt_LD_RC
18547
18548# Whether we need hard or soft links.
18549LN_S=$lt_LN_S
18550
18551# A BSD-compatible nm program.
18552NM=$lt_NM
18553
18554# A symbol stripping program
18555STRIP=$lt_STRIP
18556
18557# Used to examine libraries when file_magic_cmd begins "file"
18558MAGIC_CMD=$MAGIC_CMD
18559
18560# Used on cygwin: DLL creation program.
18561DLLTOOL="$DLLTOOL"
18562
18563# Used on cygwin: object dumper.
18564OBJDUMP="$OBJDUMP"
18565
18566# Used on cygwin: assembler.
18567AS="$AS"
18568
18569# The name of the directory that contains temporary libtool files.
18570objdir=$objdir
18571
18572# How to create reloadable object files.
18573reload_flag=$lt_reload_flag
18574reload_cmds=$lt_reload_cmds
18575
18576# How to pass a linker flag through the compiler.
18577wl=$lt_lt_prog_compiler_wl_RC
18578
18579# Object file suffix (normally "o").
18580objext="$ac_objext"
18581
18582# Old archive suffix (normally "a").
18583libext="$libext"
18584
18585# Shared library suffix (normally ".so").
18586shrext_cmds='$shrext_cmds'
18587
18588# Executable file suffix (normally "").
18589exeext="$exeext"
18590
18591# Additional compiler flags for building library objects.
18592pic_flag=$lt_lt_prog_compiler_pic_RC
18593pic_mode=$pic_mode
18594
18595# What is the maximum length of a command?
18596max_cmd_len=$lt_cv_sys_max_cmd_len
18597
18598# Does compiler simultaneously support -c and -o options?
18599compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18600
18601# Must we lock files when doing compilation?
18602need_locks=$lt_need_locks
18603
18604# Do we need the lib prefix for modules?
18605need_lib_prefix=$need_lib_prefix
18606
18607# Do we need a version for libraries?
18608need_version=$need_version
18609
18610# Whether dlopen is supported.
18611dlopen_support=$enable_dlopen
18612
18613# Whether dlopen of programs is supported.
18614dlopen_self=$enable_dlopen_self
18615
18616# Whether dlopen of statically linked programs is supported.
18617dlopen_self_static=$enable_dlopen_self_static
18618
18619# Compiler flag to prevent dynamic linking.
18620link_static_flag=$lt_lt_prog_compiler_static_RC
18621
18622# Compiler flag to turn off builtin functions.
18623no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18624
18625# Compiler flag to allow reflexive dlopens.
18626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18627
18628# Compiler flag to generate shared objects directly from archives.
18629whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18630
18631# Compiler flag to generate thread-safe objects.
18632thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18633
18634# Library versioning type.
18635version_type=$version_type
18636
18637# Format of library name prefix.
18638libname_spec=$lt_libname_spec
18639
18640# List of archive names.  First name is the real one, the rest are links.
18641# The last name is the one that the linker finds with -lNAME.
18642library_names_spec=$lt_library_names_spec
18643
18644# The coded name of the library, if different from the real name.
18645soname_spec=$lt_soname_spec
18646
18647# Commands used to build and install an old-style archive.
18648RANLIB=$lt_RANLIB
18649old_archive_cmds=$lt_old_archive_cmds_RC
18650old_postinstall_cmds=$lt_old_postinstall_cmds
18651old_postuninstall_cmds=$lt_old_postuninstall_cmds
18652
18653# Create an old-style archive from a shared archive.
18654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18655
18656# Create a temporary old-style archive to link instead of a shared archive.
18657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18658
18659# Commands used to build and install a shared archive.
18660archive_cmds=$lt_archive_cmds_RC
18661archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18662postinstall_cmds=$lt_postinstall_cmds
18663postuninstall_cmds=$lt_postuninstall_cmds
18664
18665# Commands used to build a loadable module (assumed same as above if empty)
18666module_cmds=$lt_module_cmds_RC
18667module_expsym_cmds=$lt_module_expsym_cmds_RC
18668
18669# Commands to strip libraries.
18670old_striplib=$lt_old_striplib
18671striplib=$lt_striplib
18672
18673# Dependencies to place before the objects being linked to create a
18674# shared library.
18675predep_objects=$lt_predep_objects_RC
18676
18677# Dependencies to place after the objects being linked to create a
18678# shared library.
18679postdep_objects=$lt_postdep_objects_RC
18680
18681# Dependencies to place before the objects being linked to create a
18682# shared library.
18683predeps=$lt_predeps_RC
18684
18685# Dependencies to place after the objects being linked to create a
18686# shared library.
18687postdeps=$lt_postdeps_RC
18688
18689# The library search path used internally by the compiler when linking
18690# a shared library.
18691compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18692
18693# Method to check whether dependent libraries are shared objects.
18694deplibs_check_method=$lt_deplibs_check_method
18695
18696# Command to use when deplibs_check_method == file_magic.
18697file_magic_cmd=$lt_file_magic_cmd
18698
18699# Flag that allows shared libraries with undefined symbols to be built.
18700allow_undefined_flag=$lt_allow_undefined_flag_RC
18701
18702# Flag that forces no undefined symbols.
18703no_undefined_flag=$lt_no_undefined_flag_RC
18704
18705# Commands used to finish a libtool library installation in a directory.
18706finish_cmds=$lt_finish_cmds
18707
18708# Same as above, but a single script fragment to be evaled but not shown.
18709finish_eval=$lt_finish_eval
18710
18711# Take the output of nm and produce a listing of raw symbols and C names.
18712global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18713
18714# Transform the output of nm in a proper C declaration
18715global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18716
18717# Transform the output of nm in a C name address pair
18718global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18719
18720# This is the shared library runtime path variable.
18721runpath_var=$runpath_var
18722
18723# This is the shared library path variable.
18724shlibpath_var=$shlibpath_var
18725
18726# Is shlibpath searched before the hard-coded library search path?
18727shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18728
18729# How to hardcode a shared library path into an executable.
18730hardcode_action=$hardcode_action_RC
18731
18732# Whether we should hardcode library paths into libraries.
18733hardcode_into_libs=$hardcode_into_libs
18734
18735# Flag to hardcode \$libdir into a binary during linking.
18736# This must work even if \$libdir does not exist.
18737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18738
18739# If ld is used when linking, flag to hardcode \$libdir into
18740# a binary during linking. This must work even if \$libdir does
18741# not exist.
18742hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18743
18744# Whether we need a single -rpath flag with a separated argument.
18745hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18746
18747# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18748# resulting binary.
18749hardcode_direct=$hardcode_direct_RC
18750
18751# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18752# resulting binary.
18753hardcode_minus_L=$hardcode_minus_L_RC
18754
18755# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18756# the resulting binary.
18757hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18758
18759# Set to yes if building a shared library automatically hardcodes DIR into the library
18760# and all subsequent libraries and executables linked against it.
18761hardcode_automatic=$hardcode_automatic_RC
18762
18763# Variables whose values should be saved in libtool wrapper scripts and
18764# restored at relink time.
18765variables_saved_for_relink="$variables_saved_for_relink"
18766
18767# Whether libtool must link a program against all its dependency libraries.
18768link_all_deplibs=$link_all_deplibs_RC
18769
18770# Compile-time system search path for libraries
18771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18772
18773# Run-time system search path for libraries
18774sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18775
18776# Fix the shell variable \$srcfile for the compiler.
18777fix_srcfile_path="$fix_srcfile_path_RC"
18778
18779# Set to yes if exported symbols are required.
18780always_export_symbols=$always_export_symbols_RC
18781
18782# The commands to list exported symbols.
18783export_symbols_cmds=$lt_export_symbols_cmds_RC
18784
18785# The commands to extract the exported symbol list from a shared archive.
18786extract_expsyms_cmds=$lt_extract_expsyms_cmds
18787
18788# Symbols that should not be listed in the preloaded symbols.
18789exclude_expsyms=$lt_exclude_expsyms_RC
18790
18791# Symbols that must always be exported.
18792include_expsyms=$lt_include_expsyms_RC
18793
18794# ### END LIBTOOL TAG CONFIG: $tagname
18795
18796__EOF__
18797
18798
18799else
18800  # If there is no Makefile yet, we rely on a make rule to execute
18801  # `config.status --recheck' to rerun these tests and create the
18802  # libtool script then.
18803  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18804  if test -f "$ltmain_in"; then
18805    test -f Makefile && make "$ltmain"
18806  fi
18807fi
18808
18809
18810ac_ext=c
18811ac_cpp='$CPP $CPPFLAGS'
18812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816CC="$lt_save_CC"
18817
18818	;;
18819
18820      *)
18821	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18822echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18823   { (exit 1); exit 1; }; }
18824	;;
18825      esac
18826
18827      # Append the new tag name to the list of available tags.
18828      if test -n "$tagname" ; then
18829      available_tags="$available_tags $tagname"
18830    fi
18831    fi
18832  done
18833  IFS="$lt_save_ifs"
18834
18835  # Now substitute the updated list of available tags.
18836  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18837    mv "${ofile}T" "$ofile"
18838    chmod +x "$ofile"
18839  else
18840    rm -f "${ofile}T"
18841    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18842echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18843   { (exit 1); exit 1; }; }
18844  fi
18845fi
18846
18847
18848
18849# This can be used to rebuild libtool when needed
18850LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18851
18852# Always use our own libtool.
18853LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18854
18855# Prevent multiple expansion
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879# Find a good install program.  We prefer a C program (faster),
18880# so one script is as good as another.  But avoid the broken or
18881# incompatible versions:
18882# SysV /etc/install, /usr/sbin/install
18883# SunOS /usr/etc/install
18884# IRIX /sbin/install
18885# AIX /bin/install
18886# AmigaOS /C/install, which installs bootblocks on floppy discs
18887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18888# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18890# OS/2's system install, which has a completely different semantic
18891# ./install, which can be erroneously created by make from ./install.sh.
18892echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18893echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18894if test -z "$INSTALL"; then
18895if test "${ac_cv_path_install+set}" = set; then
18896  echo $ECHO_N "(cached) $ECHO_C" >&6
18897else
18898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899for as_dir in $PATH
18900do
18901  IFS=$as_save_IFS
18902  test -z "$as_dir" && as_dir=.
18903  # Account for people who put trailing slashes in PATH elements.
18904case $as_dir/ in
18905  ./ | .// | /cC/* | \
18906  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18907  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18908  /usr/ucb/* ) ;;
18909  *)
18910    # OSF1 and SCO ODT 3.0 have their own names for install.
18911    # Don't use installbsd from OSF since it installs stuff as root
18912    # by default.
18913    for ac_prog in ginstall scoinst install; do
18914      for ac_exec_ext in '' $ac_executable_extensions; do
18915	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18916	  if test $ac_prog = install &&
18917	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18918	    # AIX install.  It has an incompatible calling convention.
18919	    :
18920	  elif test $ac_prog = install &&
18921	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18922	    # program-specific install script used by HP pwplus--don't use.
18923	    :
18924	  else
18925	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18926	    break 3
18927	  fi
18928	fi
18929      done
18930    done
18931    ;;
18932esac
18933done
18934
18935
18936fi
18937  if test "${ac_cv_path_install+set}" = set; then
18938    INSTALL=$ac_cv_path_install
18939  else
18940    # As a last resort, use the slow shell script.  We don't cache a
18941    # path for INSTALL within a source directory, because that will
18942    # break other packages using the cache if that directory is
18943    # removed, or if the path is relative.
18944    INSTALL=$ac_install_sh
18945  fi
18946fi
18947echo "$as_me:$LINENO: result: $INSTALL" >&5
18948echo "${ECHO_T}$INSTALL" >&6
18949
18950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18951# It thinks the first close brace ends the variable substitution.
18952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18953
18954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18955
18956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18957
18958
18959case "$host_os" in
18960	cygwin* | mingw*)
18961		windows="yes"
18962	;;
18963esac
18964
18965
18966
18967if test "$windows" = "yes"; then
18968  BUILD_WIN_TRUE=
18969  BUILD_WIN_FALSE='#'
18970else
18971  BUILD_WIN_TRUE='#'
18972  BUILD_WIN_FALSE=
18973fi
18974
18975
18976
18977# Check whether --with-gcj or --without-gcj was given.
18978if test "${with_gcj+set}" = set; then
18979  withval="$with_gcj"
18980  gcj="$withval"
18981else
18982  gcj="no"
18983fi;
18984
18985
18986if test "$gcj" = "yes"; then
18987  BUILD_GCJ_TRUE=
18988  BUILD_GCJ_FALSE='#'
18989else
18990  BUILD_GCJ_TRUE='#'
18991  BUILD_GCJ_FALSE=
18992fi
18993
18994
18995if test "$gcj" = "yes"; then
18996	if test "$GCJ" = ""; then
18997		{ { echo "$as_me:$LINENO: error: Can't find \"gcj\" in your PATH" >&5
18998echo "$as_me: error: Can't find \"gcj\" in your PATH" >&2;}
18999   { (exit 1); exit 1; }; }
19000	fi
19001
19002	if test "$windows" = "yes"; then
19003		# Extract the first word of ""$host_alias"-windres", so it can be a program name with args.
19004set dummy "$host_alias"-windres; ac_word=$2
19005echo "$as_me:$LINENO: checking for $ac_word" >&5
19006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19007if test "${ac_cv_path_WINDRES+set}" = set; then
19008  echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010  case $WINDRES in
19011  [\\/]* | ?:[\\/]*)
19012  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
19013  ;;
19014  *)
19015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19016for as_dir in $PATH
19017do
19018  IFS=$as_save_IFS
19019  test -z "$as_dir" && as_dir=.
19020  for ac_exec_ext in '' $ac_executable_extensions; do
19021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19022    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
19023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19024    break 2
19025  fi
19026done
19027done
19028
19029  ;;
19030esac
19031fi
19032WINDRES=$ac_cv_path_WINDRES
19033
19034if test -n "$WINDRES"; then
19035  echo "$as_me:$LINENO: result: $WINDRES" >&5
19036echo "${ECHO_T}$WINDRES" >&6
19037else
19038  echo "$as_me:$LINENO: result: no" >&5
19039echo "${ECHO_T}no" >&6
19040fi
19041
19042		if test "$WINDRES" = ""; then
19043			{ { echo "$as_me:$LINENO: error: Can't find \"$host_alias-windres\" in your PATH" >&5
19044echo "$as_me: error: Can't find \"$host_alias-windres\" in your PATH" >&2;}
19045   { (exit 1); exit 1; }; }
19046		fi
19047	fi
19048else
19049	if test "$JAVAC" = ""; then
19050		# Extract the first word of "javac", so it can be a program name with args.
19051set dummy javac; ac_word=$2
19052echo "$as_me:$LINENO: checking for $ac_word" >&5
19053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19054if test "${ac_cv_path_JAVAC+set}" = set; then
19055  echo $ECHO_N "(cached) $ECHO_C" >&6
19056else
19057  case $JAVAC in
19058  [\\/]* | ?:[\\/]*)
19059  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
19060  ;;
19061  *)
19062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19063for as_dir in $PATH
19064do
19065  IFS=$as_save_IFS
19066  test -z "$as_dir" && as_dir=.
19067  for ac_exec_ext in '' $ac_executable_extensions; do
19068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19069    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
19070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19071    break 2
19072  fi
19073done
19074done
19075
19076  ;;
19077esac
19078fi
19079JAVAC=$ac_cv_path_JAVAC
19080
19081if test -n "$JAVAC"; then
19082  echo "$as_me:$LINENO: result: $JAVAC" >&5
19083echo "${ECHO_T}$JAVAC" >&6
19084else
19085  echo "$as_me:$LINENO: result: no" >&5
19086echo "${ECHO_T}no" >&6
19087fi
19088
19089		if test "$JAVAC" = ""; then
19090			{ { echo "$as_me:$LINENO: error: Can't find \"javac\" in your PATH" >&5
19091echo "$as_me: error: Can't find \"javac\" in your PATH" >&2;}
19092   { (exit 1); exit 1; }; }
19093		fi
19094	fi
19095fi
19096
19097# Extract the first word of "fastjar", so it can be a program name with args.
19098set dummy fastjar; ac_word=$2
19099echo "$as_me:$LINENO: checking for $ac_word" >&5
19100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19101if test "${ac_cv_path_FASTJAR+set}" = set; then
19102  echo $ECHO_N "(cached) $ECHO_C" >&6
19103else
19104  case $FASTJAR in
19105  [\\/]* | ?:[\\/]*)
19106  ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
19107  ;;
19108  *)
19109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110for as_dir in $PATH
19111do
19112  IFS=$as_save_IFS
19113  test -z "$as_dir" && as_dir=.
19114  for ac_exec_ext in '' $ac_executable_extensions; do
19115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19116    ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
19117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19118    break 2
19119  fi
19120done
19121done
19122
19123  ;;
19124esac
19125fi
19126FASTJAR=$ac_cv_path_FASTJAR
19127
19128if test -n "$FASTJAR"; then
19129  echo "$as_me:$LINENO: result: $FASTJAR" >&5
19130echo "${ECHO_T}$FASTJAR" >&6
19131else
19132  echo "$as_me:$LINENO: result: no" >&5
19133echo "${ECHO_T}no" >&6
19134fi
19135
19136# Extract the first word of "gcj-jar", so it can be a program name with args.
19137set dummy gcj-jar; ac_word=$2
19138echo "$as_me:$LINENO: checking for $ac_word" >&5
19139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19140if test "${ac_cv_path_GCJ_JAR+set}" = set; then
19141  echo $ECHO_N "(cached) $ECHO_C" >&6
19142else
19143  case $GCJ_JAR in
19144  [\\/]* | ?:[\\/]*)
19145  ac_cv_path_GCJ_JAR="$GCJ_JAR" # Let the user override the test with a path.
19146  ;;
19147  *)
19148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19149for as_dir in $PATH
19150do
19151  IFS=$as_save_IFS
19152  test -z "$as_dir" && as_dir=.
19153  for ac_exec_ext in '' $ac_executable_extensions; do
19154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19155    ac_cv_path_GCJ_JAR="$as_dir/$ac_word$ac_exec_ext"
19156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19157    break 2
19158  fi
19159done
19160done
19161
19162  ;;
19163esac
19164fi
19165GCJ_JAR=$ac_cv_path_GCJ_JAR
19166
19167if test -n "$GCJ_JAR"; then
19168  echo "$as_me:$LINENO: result: $GCJ_JAR" >&5
19169echo "${ECHO_T}$GCJ_JAR" >&6
19170else
19171  echo "$as_me:$LINENO: result: no" >&5
19172echo "${ECHO_T}no" >&6
19173fi
19174
19175# Extract the first word of "jar", so it can be a program name with args.
19176set dummy jar; ac_word=$2
19177echo "$as_me:$LINENO: checking for $ac_word" >&5
19178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19179if test "${ac_cv_path_JAR+set}" = set; then
19180  echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182  case $JAR in
19183  [\\/]* | ?:[\\/]*)
19184  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
19185  ;;
19186  *)
19187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188for as_dir in $PATH
19189do
19190  IFS=$as_save_IFS
19191  test -z "$as_dir" && as_dir=.
19192  for ac_exec_ext in '' $ac_executable_extensions; do
19193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194    ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
19195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19196    break 2
19197  fi
19198done
19199done
19200
19201  ;;
19202esac
19203fi
19204JAR=$ac_cv_path_JAR
19205
19206if test -n "$JAR"; then
19207  echo "$as_me:$LINENO: result: $JAR" >&5
19208echo "${ECHO_T}$JAR" >&6
19209else
19210  echo "$as_me:$LINENO: result: no" >&5
19211echo "${ECHO_T}no" >&6
19212fi
19213
19214
19215if test "$FASTJAR" != ""; then
19216	JAR="$FASTJAR"
19217elif test "$GCJ_JAR" != ""; then
19218	JAR="$GCJ_JAR"
19219fi
19220
19221if test "$JAR" = ""; then
19222	{ { echo "$as_me:$LINENO: error: Can't find \"fastjar\", \"gcj-jar\", or \"jar\" in your PATH" >&5
19223echo "$as_me: error: Can't find \"fastjar\", \"gcj-jar\", or \"jar\" in your PATH" >&2;}
19224   { (exit 1); exit 1; }; }
19225fi
19226
19227
19228# Check whether --with-swt or --without-swt was given.
19229if test "${with_swt+set}" = set; then
19230  withval="$with_swt"
19231  swt="$withval"
19232else
19233  swt="no"
19234fi;
19235
19236if test "$swt" = "no"; then
19237	{ { echo "$as_me:$LINENO: error: Can't find \"swt.jar\"" >&5
19238echo "$as_me: error: Can't find \"swt.jar\"" >&2;}
19239   { (exit 1); exit 1; }; }
19240else
19241	SWT_JAR="$swt"
19242
19243fi
19244
19245                                                                                          ac_config_files="$ac_config_files Makefile src/Makefile src/doc/Makefile src/doc/html/Makefile src/doc/images/Makefile src/org/thestaticvoid/iriverter/Config.java src/profiles/Makefile src/launcher/Makefile src/launcher/iriverter"
19246cat >confcache <<\_ACEOF
19247# This file is a shell script that caches the results of configure
19248# tests run on this system so they can be shared between configure
19249# scripts and configure runs, see configure's option --config-cache.
19250# It is not useful on other systems.  If it contains results you don't
19251# want to keep, you may remove or edit it.
19252#
19253# config.status only pays attention to the cache file if you give it
19254# the --recheck option to rerun configure.
19255#
19256# `ac_cv_env_foo' variables (set or unset) will be overridden when
19257# loading this file, other *unset* `ac_cv_foo' will be assigned the
19258# following values.
19259
19260_ACEOF
19261
19262# The following way of writing the cache mishandles newlines in values,
19263# but we know of no workaround that is simple, portable, and efficient.
19264# So, don't put newlines in cache variables' values.
19265# Ultrix sh set writes to stderr and can't be redirected directly,
19266# and sets the high bit in the cache file unless we assign to the vars.
19267{
19268  (set) 2>&1 |
19269    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19270    *ac_space=\ *)
19271      # `set' does not quote correctly, so add quotes (double-quote
19272      # substitution turns \\\\ into \\, and sed turns \\ into \).
19273      sed -n \
19274	"s/'/'\\\\''/g;
19275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19276      ;;
19277    *)
19278      # `set' quotes correctly as required by POSIX, so do not add quotes.
19279      sed -n \
19280	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19281      ;;
19282    esac;
19283} |
19284  sed '
19285     t clear
19286     : clear
19287     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19288     t end
19289     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19290     : end' >>confcache
19291if diff $cache_file confcache >/dev/null 2>&1; then :; else
19292  if test -w $cache_file; then
19293    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19294    cat confcache >$cache_file
19295  else
19296    echo "not updating unwritable cache $cache_file"
19297  fi
19298fi
19299rm -f confcache
19300
19301test "x$prefix" = xNONE && prefix=$ac_default_prefix
19302# Let make expand exec_prefix.
19303test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19304
19305# VPATH may cause trouble with some makes, so we remove $(srcdir),
19306# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19307# trailing colons and then remove the whole line if VPATH becomes empty
19308# (actually we leave an empty line to preserve line numbers).
19309if test "x$srcdir" = x.; then
19310  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19311s/:*\$(srcdir):*/:/;
19312s/:*\${srcdir}:*/:/;
19313s/:*@srcdir@:*/:/;
19314s/^\([^=]*=[	 ]*\):*/\1/;
19315s/:*$//;
19316s/^[^=]*=[	 ]*$//;
19317}'
19318fi
19319
19320# Transform confdefs.h into DEFS.
19321# Protect against shell expansion while executing Makefile rules.
19322# Protect against Makefile macro expansion.
19323#
19324# If the first sed substitution is executed (which looks for macros that
19325# take arguments), then we branch to the quote section.  Otherwise,
19326# look for a macro that doesn't take arguments.
19327cat >confdef2opt.sed <<\_ACEOF
19328t clear
19329: clear
19330s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
19331t quote
19332s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
19333t quote
19334d
19335: quote
19336s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
19337s,\[,\\&,g
19338s,\],\\&,g
19339s,\$,$$,g
19340p
19341_ACEOF
19342# We use echo to avoid assuming a particular line-breaking character.
19343# The extra dot is to prevent the shell from consuming trailing
19344# line-breaks from the sub-command output.  A line-break within
19345# single-quotes doesn't work because, if this script is created in a
19346# platform that uses two characters for line-breaks (e.g., DOS), tr
19347# would break.
19348ac_LF_and_DOT=`echo; echo .`
19349DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19350rm -f confdef2opt.sed
19351
19352
19353ac_libobjs=
19354ac_ltlibobjs=
19355for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19356  # 1. Remove the extension, and $U if already installed.
19357  ac_i=`echo "$ac_i" |
19358	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19359  # 2. Add them.
19360  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19361  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19362done
19363LIBOBJS=$ac_libobjs
19364
19365LTLIBOBJS=$ac_ltlibobjs
19366
19367
19368if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19369  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19370Usually this means the macro was only invoked conditionally." >&5
19371echo "$as_me: error: conditional \"AMDEP\" was never defined.
19372Usually this means the macro was only invoked conditionally." >&2;}
19373   { (exit 1); exit 1; }; }
19374fi
19375if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
19376  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
19377Usually this means the macro was only invoked conditionally." >&5
19378echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
19379Usually this means the macro was only invoked conditionally." >&2;}
19380   { (exit 1); exit 1; }; }
19381fi
19382if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19383  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19384Usually this means the macro was only invoked conditionally." >&5
19385echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19386Usually this means the macro was only invoked conditionally." >&2;}
19387   { (exit 1); exit 1; }; }
19388fi
19389if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19390  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19391Usually this means the macro was only invoked conditionally." >&5
19392echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19393Usually this means the macro was only invoked conditionally." >&2;}
19394   { (exit 1); exit 1; }; }
19395fi
19396if test -z "${BUILD_WIN_TRUE}" && test -z "${BUILD_WIN_FALSE}"; then
19397  { { echo "$as_me:$LINENO: error: conditional \"BUILD_WIN\" was never defined.
19398Usually this means the macro was only invoked conditionally." >&5
19399echo "$as_me: error: conditional \"BUILD_WIN\" was never defined.
19400Usually this means the macro was only invoked conditionally." >&2;}
19401   { (exit 1); exit 1; }; }
19402fi
19403if test -z "${BUILD_GCJ_TRUE}" && test -z "${BUILD_GCJ_FALSE}"; then
19404  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GCJ\" was never defined.
19405Usually this means the macro was only invoked conditionally." >&5
19406echo "$as_me: error: conditional \"BUILD_GCJ\" was never defined.
19407Usually this means the macro was only invoked conditionally." >&2;}
19408   { (exit 1); exit 1; }; }
19409fi
19410
19411: ${CONFIG_STATUS=./config.status}
19412ac_clean_files_save=$ac_clean_files
19413ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19414{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19415echo "$as_me: creating $CONFIG_STATUS" >&6;}
19416cat >$CONFIG_STATUS <<_ACEOF
19417#! $SHELL
19418# Generated by $as_me.
19419# Run this file to recreate the current configuration.
19420# Compiler output produced by configure, useful for debugging
19421# configure, is in config.log if it exists.
19422
19423debug=false
19424ac_cs_recheck=false
19425ac_cs_silent=false
19426SHELL=\${CONFIG_SHELL-$SHELL}
19427_ACEOF
19428
19429cat >>$CONFIG_STATUS <<\_ACEOF
19430## --------------------- ##
19431## M4sh Initialization.  ##
19432## --------------------- ##
19433
19434# Be Bourne compatible
19435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19436  emulate sh
19437  NULLCMD=:
19438  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19439  # is contrary to our usage.  Disable this feature.
19440  alias -g '${1+"$@"}'='"$@"'
19441elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19442  set -o posix
19443fi
19444DUALCASE=1; export DUALCASE # for MKS sh
19445
19446# Support unset when possible.
19447if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19448  as_unset=unset
19449else
19450  as_unset=false
19451fi
19452
19453
19454# Work around bugs in pre-3.0 UWIN ksh.
19455$as_unset ENV MAIL MAILPATH
19456PS1='$ '
19457PS2='> '
19458PS4='+ '
19459
19460# NLS nuisances.
19461for as_var in \
19462  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19463  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19464  LC_TELEPHONE LC_TIME
19465do
19466  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19467    eval $as_var=C; export $as_var
19468  else
19469    $as_unset $as_var
19470  fi
19471done
19472
19473# Required to use basename.
19474if expr a : '\(a\)' >/dev/null 2>&1; then
19475  as_expr=expr
19476else
19477  as_expr=false
19478fi
19479
19480if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19481  as_basename=basename
19482else
19483  as_basename=false
19484fi
19485
19486
19487# Name of the executable.
19488as_me=`$as_basename "$0" ||
19489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19490	 X"$0" : 'X\(//\)$' \| \
19491	 X"$0" : 'X\(/\)$' \| \
19492	 .     : '\(.\)' 2>/dev/null ||
19493echo X/"$0" |
19494    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19495  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19496  	  /^X\/\(\/\).*/{ s//\1/; q; }
19497  	  s/.*/./; q'`
19498
19499
19500# PATH needs CR, and LINENO needs CR and PATH.
19501# Avoid depending upon Character Ranges.
19502as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19503as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19504as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19505as_cr_digits='0123456789'
19506as_cr_alnum=$as_cr_Letters$as_cr_digits
19507
19508# The user is always right.
19509if test "${PATH_SEPARATOR+set}" != set; then
19510  echo "#! /bin/sh" >conf$$.sh
19511  echo  "exit 0"   >>conf$$.sh
19512  chmod +x conf$$.sh
19513  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19514    PATH_SEPARATOR=';'
19515  else
19516    PATH_SEPARATOR=:
19517  fi
19518  rm -f conf$$.sh
19519fi
19520
19521
19522  as_lineno_1=$LINENO
19523  as_lineno_2=$LINENO
19524  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19525  test "x$as_lineno_1" != "x$as_lineno_2" &&
19526  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19527  # Find who we are.  Look in the path if we contain no path at all
19528  # relative or not.
19529  case $0 in
19530    *[\\/]* ) as_myself=$0 ;;
19531    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532for as_dir in $PATH
19533do
19534  IFS=$as_save_IFS
19535  test -z "$as_dir" && as_dir=.
19536  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19537done
19538
19539       ;;
19540  esac
19541  # We did not find ourselves, most probably we were run as `sh COMMAND'
19542  # in which case we are not to be found in the path.
19543  if test "x$as_myself" = x; then
19544    as_myself=$0
19545  fi
19546  if test ! -f "$as_myself"; then
19547    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19548echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19549   { (exit 1); exit 1; }; }
19550  fi
19551  case $CONFIG_SHELL in
19552  '')
19553    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19554for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19555do
19556  IFS=$as_save_IFS
19557  test -z "$as_dir" && as_dir=.
19558  for as_base in sh bash ksh sh5; do
19559	 case $as_dir in
19560	 /*)
19561	   if ("$as_dir/$as_base" -c '
19562  as_lineno_1=$LINENO
19563  as_lineno_2=$LINENO
19564  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19565  test "x$as_lineno_1" != "x$as_lineno_2" &&
19566  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19567	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19568	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19569	     CONFIG_SHELL=$as_dir/$as_base
19570	     export CONFIG_SHELL
19571	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19572	   fi;;
19573	 esac
19574       done
19575done
19576;;
19577  esac
19578
19579  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19580  # uniformly replaced by the line number.  The first 'sed' inserts a
19581  # line-number line before each line; the second 'sed' does the real
19582  # work.  The second script uses 'N' to pair each line-number line
19583  # with the numbered line, and appends trailing '-' during
19584  # substitution so that $LINENO is not a special case at line end.
19585  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19586  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19587  sed '=' <$as_myself |
19588    sed '
19589      N
19590      s,$,-,
19591      : loop
19592      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19593      t loop
19594      s,-$,,
19595      s,^['$as_cr_digits']*\n,,
19596    ' >$as_me.lineno &&
19597  chmod +x $as_me.lineno ||
19598    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19599echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19600   { (exit 1); exit 1; }; }
19601
19602  # Don't try to exec as it changes $[0], causing all sort of problems
19603  # (the dirname of $[0] is not the place where we might find the
19604  # original and so on.  Autoconf is especially sensible to this).
19605  . ./$as_me.lineno
19606  # Exit status is that of the last command.
19607  exit
19608}
19609
19610
19611case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19612  *c*,-n*) ECHO_N= ECHO_C='
19613' ECHO_T='	' ;;
19614  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19615  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19616esac
19617
19618if expr a : '\(a\)' >/dev/null 2>&1; then
19619  as_expr=expr
19620else
19621  as_expr=false
19622fi
19623
19624rm -f conf$$ conf$$.exe conf$$.file
19625echo >conf$$.file
19626if ln -s conf$$.file conf$$ 2>/dev/null; then
19627  # We could just check for DJGPP; but this test a) works b) is more generic
19628  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19629  if test -f conf$$.exe; then
19630    # Don't use ln at all; we don't have any links
19631    as_ln_s='cp -p'
19632  else
19633    as_ln_s='ln -s'
19634  fi
19635elif ln conf$$.file conf$$ 2>/dev/null; then
19636  as_ln_s=ln
19637else
19638  as_ln_s='cp -p'
19639fi
19640rm -f conf$$ conf$$.exe conf$$.file
19641
19642if mkdir -p . 2>/dev/null; then
19643  as_mkdir_p=:
19644else
19645  test -d ./-p && rmdir ./-p
19646  as_mkdir_p=false
19647fi
19648
19649as_executable_p="test -f"
19650
19651# Sed expression to map a string onto a valid CPP name.
19652as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19653
19654# Sed expression to map a string onto a valid variable name.
19655as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19656
19657
19658# IFS
19659# We need space, tab and new line, in precisely that order.
19660as_nl='
19661'
19662IFS=" 	$as_nl"
19663
19664# CDPATH.
19665$as_unset CDPATH
19666
19667exec 6>&1
19668
19669# Open the log real soon, to keep \$[0] and so on meaningful, and to
19670# report actual input values of CONFIG_FILES etc. instead of their
19671# values after options handling.  Logging --version etc. is OK.
19672exec 5>>config.log
19673{
19674  echo
19675  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19676## Running $as_me. ##
19677_ASBOX
19678} >&5
19679cat >&5 <<_CSEOF
19680
19681This file was extended by $as_me, which was
19682generated by GNU Autoconf 2.59.  Invocation command line was
19683
19684  CONFIG_FILES    = $CONFIG_FILES
19685  CONFIG_HEADERS  = $CONFIG_HEADERS
19686  CONFIG_LINKS    = $CONFIG_LINKS
19687  CONFIG_COMMANDS = $CONFIG_COMMANDS
19688  $ $0 $@
19689
19690_CSEOF
19691echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19692echo >&5
19693_ACEOF
19694
19695# Files that config.status was made for.
19696if test -n "$ac_config_files"; then
19697  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19698fi
19699
19700if test -n "$ac_config_headers"; then
19701  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19702fi
19703
19704if test -n "$ac_config_links"; then
19705  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19706fi
19707
19708if test -n "$ac_config_commands"; then
19709  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19710fi
19711
19712cat >>$CONFIG_STATUS <<\_ACEOF
19713
19714ac_cs_usage="\
19715\`$as_me' instantiates files from templates according to the
19716current configuration.
19717
19718Usage: $0 [OPTIONS] [FILE]...
19719
19720  -h, --help       print this help, then exit
19721  -V, --version    print version number, then exit
19722  -q, --quiet      do not print progress messages
19723  -d, --debug      don't remove temporary files
19724      --recheck    update $as_me by reconfiguring in the same conditions
19725  --file=FILE[:TEMPLATE]
19726		   instantiate the configuration file FILE
19727
19728Configuration files:
19729$config_files
19730
19731Configuration commands:
19732$config_commands
19733
19734Report bugs to <bug-autoconf@gnu.org>."
19735_ACEOF
19736
19737cat >>$CONFIG_STATUS <<_ACEOF
19738ac_cs_version="\\
19739config.status
19740configured by $0, generated by GNU Autoconf 2.59,
19741  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19742
19743Copyright (C) 2003 Free Software Foundation, Inc.
19744This config.status script is free software; the Free Software Foundation
19745gives unlimited permission to copy, distribute and modify it."
19746srcdir=$srcdir
19747INSTALL="$INSTALL"
19748_ACEOF
19749
19750cat >>$CONFIG_STATUS <<\_ACEOF
19751# If no file are specified by the user, then we need to provide default
19752# value.  By we need to know if files were specified by the user.
19753ac_need_defaults=:
19754while test $# != 0
19755do
19756  case $1 in
19757  --*=*)
19758    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19759    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19760    ac_shift=:
19761    ;;
19762  -*)
19763    ac_option=$1
19764    ac_optarg=$2
19765    ac_shift=shift
19766    ;;
19767  *) # This is not an option, so the user has probably given explicit
19768     # arguments.
19769     ac_option=$1
19770     ac_need_defaults=false;;
19771  esac
19772
19773  case $ac_option in
19774  # Handling of the options.
19775_ACEOF
19776cat >>$CONFIG_STATUS <<\_ACEOF
19777  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19778    ac_cs_recheck=: ;;
19779  --version | --vers* | -V )
19780    echo "$ac_cs_version"; exit 0 ;;
19781  --he | --h)
19782    # Conflict between --help and --header
19783    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19784Try \`$0 --help' for more information." >&5
19785echo "$as_me: error: ambiguous option: $1
19786Try \`$0 --help' for more information." >&2;}
19787   { (exit 1); exit 1; }; };;
19788  --help | --hel | -h )
19789    echo "$ac_cs_usage"; exit 0 ;;
19790  --debug | --d* | -d )
19791    debug=: ;;
19792  --file | --fil | --fi | --f )
19793    $ac_shift
19794    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19795    ac_need_defaults=false;;
19796  --header | --heade | --head | --hea )
19797    $ac_shift
19798    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19799    ac_need_defaults=false;;
19800  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19801  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19802    ac_cs_silent=: ;;
19803
19804  # This is an error.
19805  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19806Try \`$0 --help' for more information." >&5
19807echo "$as_me: error: unrecognized option: $1
19808Try \`$0 --help' for more information." >&2;}
19809   { (exit 1); exit 1; }; } ;;
19810
19811  *) ac_config_targets="$ac_config_targets $1" ;;
19812
19813  esac
19814  shift
19815done
19816
19817ac_configure_extra_args=
19818
19819if $ac_cs_silent; then
19820  exec 6>/dev/null
19821  ac_configure_extra_args="$ac_configure_extra_args --silent"
19822fi
19823
19824_ACEOF
19825cat >>$CONFIG_STATUS <<_ACEOF
19826if \$ac_cs_recheck; then
19827  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19828  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19829fi
19830
19831_ACEOF
19832
19833cat >>$CONFIG_STATUS <<_ACEOF
19834#
19835# INIT-COMMANDS section.
19836#
19837
19838AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19839
19840_ACEOF
19841
19842
19843
19844cat >>$CONFIG_STATUS <<\_ACEOF
19845for ac_config_target in $ac_config_targets
19846do
19847  case "$ac_config_target" in
19848  # Handling of arguments.
19849  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19850  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19851  "src/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/doc/Makefile" ;;
19852  "src/doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/doc/html/Makefile" ;;
19853  "src/doc/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/doc/images/Makefile" ;;
19854  "src/org/thestaticvoid/iriverter/Config.java" ) CONFIG_FILES="$CONFIG_FILES src/org/thestaticvoid/iriverter/Config.java" ;;
19855  "src/profiles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/profiles/Makefile" ;;
19856  "src/launcher/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/launcher/Makefile" ;;
19857  "src/launcher/iriverter" ) CONFIG_FILES="$CONFIG_FILES src/launcher/iriverter" ;;
19858  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19859  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19860echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19861   { (exit 1); exit 1; }; };;
19862  esac
19863done
19864
19865# If the user did not use the arguments to specify the items to instantiate,
19866# then the envvar interface is used.  Set only those that are not.
19867# We use the long form for the default assignment because of an extremely
19868# bizarre bug on SunOS 4.1.3.
19869if $ac_need_defaults; then
19870  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19871  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19872fi
19873
19874# Have a temporary directory for convenience.  Make it in the build tree
19875# simply because there is no reason to put it here, and in addition,
19876# creating and moving files from /tmp can sometimes cause problems.
19877# Create a temporary directory, and hook for its removal unless debugging.
19878$debug ||
19879{
19880  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19881  trap '{ (exit 1); exit 1; }' 1 2 13 15
19882}
19883
19884# Create a (secure) tmp directory for tmp files.
19885
19886{
19887  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19888  test -n "$tmp" && test -d "$tmp"
19889}  ||
19890{
19891  tmp=./confstat$$-$RANDOM
19892  (umask 077 && mkdir $tmp)
19893} ||
19894{
19895   echo "$me: cannot create a temporary directory in ." >&2
19896   { (exit 1); exit 1; }
19897}
19898
19899_ACEOF
19900
19901cat >>$CONFIG_STATUS <<_ACEOF
19902
19903#
19904# CONFIG_FILES section.
19905#
19906
19907# No need to generate the scripts if there are no CONFIG_FILES.
19908# This happens for instance when ./config.status config.h
19909if test -n "\$CONFIG_FILES"; then
19910  # Protect against being on the right side of a sed subst in config.status.
19911  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19912   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19913s,@SHELL@,$SHELL,;t t
19914s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19915s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19916s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19917s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19918s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19919s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19920s,@exec_prefix@,$exec_prefix,;t t
19921s,@prefix@,$prefix,;t t
19922s,@program_transform_name@,$program_transform_name,;t t
19923s,@bindir@,$bindir,;t t
19924s,@sbindir@,$sbindir,;t t
19925s,@libexecdir@,$libexecdir,;t t
19926s,@datadir@,$datadir,;t t
19927s,@sysconfdir@,$sysconfdir,;t t
19928s,@sharedstatedir@,$sharedstatedir,;t t
19929s,@localstatedir@,$localstatedir,;t t
19930s,@libdir@,$libdir,;t t
19931s,@includedir@,$includedir,;t t
19932s,@oldincludedir@,$oldincludedir,;t t
19933s,@infodir@,$infodir,;t t
19934s,@mandir@,$mandir,;t t
19935s,@build_alias@,$build_alias,;t t
19936s,@host_alias@,$host_alias,;t t
19937s,@target_alias@,$target_alias,;t t
19938s,@DEFS@,$DEFS,;t t
19939s,@ECHO_C@,$ECHO_C,;t t
19940s,@ECHO_N@,$ECHO_N,;t t
19941s,@ECHO_T@,$ECHO_T,;t t
19942s,@LIBS@,$LIBS,;t t
19943s,@VERSION@,$VERSION,;t t
19944s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19945s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19946s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19947s,@CYGPATH_W@,$CYGPATH_W,;t t
19948s,@PACKAGE@,$PACKAGE,;t t
19949s,@ACLOCAL@,$ACLOCAL,;t t
19950s,@AUTOCONF@,$AUTOCONF,;t t
19951s,@AUTOMAKE@,$AUTOMAKE,;t t
19952s,@AUTOHEADER@,$AUTOHEADER,;t t
19953s,@MAKEINFO@,$MAKEINFO,;t t
19954s,@install_sh@,$install_sh,;t t
19955s,@STRIP@,$STRIP,;t t
19956s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19957s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19958s,@mkdir_p@,$mkdir_p,;t t
19959s,@AWK@,$AWK,;t t
19960s,@SET_MAKE@,$SET_MAKE,;t t
19961s,@am__leading_dot@,$am__leading_dot,;t t
19962s,@AMTAR@,$AMTAR,;t t
19963s,@am__tar@,$am__tar,;t t
19964s,@am__untar@,$am__untar,;t t
19965s,@GCJ@,$GCJ,;t t
19966s,@GCJFLAGS@,$GCJFLAGS,;t t
19967s,@DEPDIR@,$DEPDIR,;t t
19968s,@am__include@,$am__include,;t t
19969s,@am__quote@,$am__quote,;t t
19970s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19971s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19972s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19973s,@GCJDEPMODE@,$GCJDEPMODE,;t t
19974s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
19975s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
19976s,@build@,$build,;t t
19977s,@build_cpu@,$build_cpu,;t t
19978s,@build_vendor@,$build_vendor,;t t
19979s,@build_os@,$build_os,;t t
19980s,@host@,$host,;t t
19981s,@host_cpu@,$host_cpu,;t t
19982s,@host_vendor@,$host_vendor,;t t
19983s,@host_os@,$host_os,;t t
19984s,@CC@,$CC,;t t
19985s,@CFLAGS@,$CFLAGS,;t t
19986s,@LDFLAGS@,$LDFLAGS,;t t
19987s,@CPPFLAGS@,$CPPFLAGS,;t t
19988s,@ac_ct_CC@,$ac_ct_CC,;t t
19989s,@EXEEXT@,$EXEEXT,;t t
19990s,@OBJEXT@,$OBJEXT,;t t
19991s,@CCDEPMODE@,$CCDEPMODE,;t t
19992s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19993s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19994s,@EGREP@,$EGREP,;t t
19995s,@LN_S@,$LN_S,;t t
19996s,@ECHO@,$ECHO,;t t
19997s,@AR@,$AR,;t t
19998s,@ac_ct_AR@,$ac_ct_AR,;t t
19999s,@RANLIB@,$RANLIB,;t t
20000s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20001s,@CPP@,$CPP,;t t
20002s,@CXX@,$CXX,;t t
20003s,@CXXFLAGS@,$CXXFLAGS,;t t
20004s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20005s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20006s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20007s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20008s,@CXXCPP@,$CXXCPP,;t t
20009s,@F77@,$F77,;t t
20010s,@FFLAGS@,$FFLAGS,;t t
20011s,@ac_ct_F77@,$ac_ct_F77,;t t
20012s,@LIBTOOL@,$LIBTOOL,;t t
20013s,@BUILD_WIN_TRUE@,$BUILD_WIN_TRUE,;t t
20014s,@BUILD_WIN_FALSE@,$BUILD_WIN_FALSE,;t t
20015s,@BUILD_GCJ_TRUE@,$BUILD_GCJ_TRUE,;t t
20016s,@BUILD_GCJ_FALSE@,$BUILD_GCJ_FALSE,;t t
20017s,@WINDRES@,$WINDRES,;t t
20018s,@JAVAC@,$JAVAC,;t t
20019s,@FASTJAR@,$FASTJAR,;t t
20020s,@GCJ_JAR@,$GCJ_JAR,;t t
20021s,@JAR@,$JAR,;t t
20022s,@SWT_JAR@,$SWT_JAR,;t t
20023s,@LIBOBJS@,$LIBOBJS,;t t
20024s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20025CEOF
20026
20027_ACEOF
20028
20029  cat >>$CONFIG_STATUS <<\_ACEOF
20030  # Split the substitutions into bite-sized pieces for seds with
20031  # small command number limits, like on Digital OSF/1 and HP-UX.
20032  ac_max_sed_lines=48
20033  ac_sed_frag=1 # Number of current file.
20034  ac_beg=1 # First line for current file.
20035  ac_end=$ac_max_sed_lines # Line after last line for current file.
20036  ac_more_lines=:
20037  ac_sed_cmds=
20038  while $ac_more_lines; do
20039    if test $ac_beg -gt 1; then
20040      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20041    else
20042      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20043    fi
20044    if test ! -s $tmp/subs.frag; then
20045      ac_more_lines=false
20046    else
20047      # The purpose of the label and of the branching condition is to
20048      # speed up the sed processing (if there are no `@' at all, there
20049      # is no need to browse any of the substitutions).
20050      # These are the two extra sed commands mentioned above.
20051      (echo ':t
20052  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20053      if test -z "$ac_sed_cmds"; then
20054	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20055      else
20056	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20057      fi
20058      ac_sed_frag=`expr $ac_sed_frag + 1`
20059      ac_beg=$ac_end
20060      ac_end=`expr $ac_end + $ac_max_sed_lines`
20061    fi
20062  done
20063  if test -z "$ac_sed_cmds"; then
20064    ac_sed_cmds=cat
20065  fi
20066fi # test -n "$CONFIG_FILES"
20067
20068_ACEOF
20069cat >>$CONFIG_STATUS <<\_ACEOF
20070for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20071  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20072  case $ac_file in
20073  - | *:- | *:-:* ) # input from stdin
20074	cat >$tmp/stdin
20075	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20076	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20077  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20078	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20079  * )   ac_file_in=$ac_file.in ;;
20080  esac
20081
20082  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20083  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20085	 X"$ac_file" : 'X\(//\)[^/]' \| \
20086	 X"$ac_file" : 'X\(//\)$' \| \
20087	 X"$ac_file" : 'X\(/\)' \| \
20088	 .     : '\(.\)' 2>/dev/null ||
20089echo X"$ac_file" |
20090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20091  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20092  	  /^X\(\/\/\)$/{ s//\1/; q; }
20093  	  /^X\(\/\).*/{ s//\1/; q; }
20094  	  s/.*/./; q'`
20095  { if $as_mkdir_p; then
20096    mkdir -p "$ac_dir"
20097  else
20098    as_dir="$ac_dir"
20099    as_dirs=
20100    while test ! -d "$as_dir"; do
20101      as_dirs="$as_dir $as_dirs"
20102      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104	 X"$as_dir" : 'X\(//\)[^/]' \| \
20105	 X"$as_dir" : 'X\(//\)$' \| \
20106	 X"$as_dir" : 'X\(/\)' \| \
20107	 .     : '\(.\)' 2>/dev/null ||
20108echo X"$as_dir" |
20109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20110  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20111  	  /^X\(\/\/\)$/{ s//\1/; q; }
20112  	  /^X\(\/\).*/{ s//\1/; q; }
20113  	  s/.*/./; q'`
20114    done
20115    test ! -n "$as_dirs" || mkdir $as_dirs
20116  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20117echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20118   { (exit 1); exit 1; }; }; }
20119
20120  ac_builddir=.
20121
20122if test "$ac_dir" != .; then
20123  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20124  # A "../" for each directory in $ac_dir_suffix.
20125  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20126else
20127  ac_dir_suffix= ac_top_builddir=
20128fi
20129
20130case $srcdir in
20131  .)  # No --srcdir option.  We are building in place.
20132    ac_srcdir=.
20133    if test -z "$ac_top_builddir"; then
20134       ac_top_srcdir=.
20135    else
20136       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20137    fi ;;
20138  [\\/]* | ?:[\\/]* )  # Absolute path.
20139    ac_srcdir=$srcdir$ac_dir_suffix;
20140    ac_top_srcdir=$srcdir ;;
20141  *) # Relative path.
20142    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20143    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20144esac
20145
20146# Do not use `cd foo && pwd` to compute absolute paths, because
20147# the directories may not exist.
20148case `pwd` in
20149.) ac_abs_builddir="$ac_dir";;
20150*)
20151  case "$ac_dir" in
20152  .) ac_abs_builddir=`pwd`;;
20153  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20154  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20155  esac;;
20156esac
20157case $ac_abs_builddir in
20158.) ac_abs_top_builddir=${ac_top_builddir}.;;
20159*)
20160  case ${ac_top_builddir}. in
20161  .) ac_abs_top_builddir=$ac_abs_builddir;;
20162  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20163  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20164  esac;;
20165esac
20166case $ac_abs_builddir in
20167.) ac_abs_srcdir=$ac_srcdir;;
20168*)
20169  case $ac_srcdir in
20170  .) ac_abs_srcdir=$ac_abs_builddir;;
20171  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20172  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20173  esac;;
20174esac
20175case $ac_abs_builddir in
20176.) ac_abs_top_srcdir=$ac_top_srcdir;;
20177*)
20178  case $ac_top_srcdir in
20179  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20180  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20181  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20182  esac;;
20183esac
20184
20185
20186  case $INSTALL in
20187  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20188  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20189  esac
20190
20191  if test x"$ac_file" != x-; then
20192    { echo "$as_me:$LINENO: creating $ac_file" >&5
20193echo "$as_me: creating $ac_file" >&6;}
20194    rm -f "$ac_file"
20195  fi
20196  # Let's still pretend it is `configure' which instantiates (i.e., don't
20197  # use $as_me), people would be surprised to read:
20198  #    /* config.h.  Generated by config.status.  */
20199  if test x"$ac_file" = x-; then
20200    configure_input=
20201  else
20202    configure_input="$ac_file.  "
20203  fi
20204  configure_input=$configure_input"Generated from `echo $ac_file_in |
20205				     sed 's,.*/,,'` by configure."
20206
20207  # First look for the input files in the build tree, otherwise in the
20208  # src tree.
20209  ac_file_inputs=`IFS=:
20210    for f in $ac_file_in; do
20211      case $f in
20212      -) echo $tmp/stdin ;;
20213      [\\/$]*)
20214	 # Absolute (can't be DOS-style, as IFS=:)
20215	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20216echo "$as_me: error: cannot find input file: $f" >&2;}
20217   { (exit 1); exit 1; }; }
20218	 echo "$f";;
20219      *) # Relative
20220	 if test -f "$f"; then
20221	   # Build tree
20222	   echo "$f"
20223	 elif test -f "$srcdir/$f"; then
20224	   # Source tree
20225	   echo "$srcdir/$f"
20226	 else
20227	   # /dev/null tree
20228	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20229echo "$as_me: error: cannot find input file: $f" >&2;}
20230   { (exit 1); exit 1; }; }
20231	 fi;;
20232      esac
20233    done` || { (exit 1); exit 1; }
20234_ACEOF
20235cat >>$CONFIG_STATUS <<_ACEOF
20236  sed "$ac_vpsub
20237$extrasub
20238_ACEOF
20239cat >>$CONFIG_STATUS <<\_ACEOF
20240:t
20241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20242s,@configure_input@,$configure_input,;t t
20243s,@srcdir@,$ac_srcdir,;t t
20244s,@abs_srcdir@,$ac_abs_srcdir,;t t
20245s,@top_srcdir@,$ac_top_srcdir,;t t
20246s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20247s,@builddir@,$ac_builddir,;t t
20248s,@abs_builddir@,$ac_abs_builddir,;t t
20249s,@top_builddir@,$ac_top_builddir,;t t
20250s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20251s,@INSTALL@,$ac_INSTALL,;t t
20252" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20253  rm -f $tmp/stdin
20254  if test x"$ac_file" != x-; then
20255    mv $tmp/out $ac_file
20256  else
20257    cat $tmp/out
20258    rm -f $tmp/out
20259  fi
20260
20261done
20262_ACEOF
20263cat >>$CONFIG_STATUS <<\_ACEOF
20264
20265#
20266# CONFIG_COMMANDS section.
20267#
20268for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20269  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20270  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20271  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20272$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20273	 X"$ac_dest" : 'X\(//\)[^/]' \| \
20274	 X"$ac_dest" : 'X\(//\)$' \| \
20275	 X"$ac_dest" : 'X\(/\)' \| \
20276	 .     : '\(.\)' 2>/dev/null ||
20277echo X"$ac_dest" |
20278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20279  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20280  	  /^X\(\/\/\)$/{ s//\1/; q; }
20281  	  /^X\(\/\).*/{ s//\1/; q; }
20282  	  s/.*/./; q'`
20283  { if $as_mkdir_p; then
20284    mkdir -p "$ac_dir"
20285  else
20286    as_dir="$ac_dir"
20287    as_dirs=
20288    while test ! -d "$as_dir"; do
20289      as_dirs="$as_dir $as_dirs"
20290      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20292	 X"$as_dir" : 'X\(//\)[^/]' \| \
20293	 X"$as_dir" : 'X\(//\)$' \| \
20294	 X"$as_dir" : 'X\(/\)' \| \
20295	 .     : '\(.\)' 2>/dev/null ||
20296echo X"$as_dir" |
20297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20298  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20299  	  /^X\(\/\/\)$/{ s//\1/; q; }
20300  	  /^X\(\/\).*/{ s//\1/; q; }
20301  	  s/.*/./; q'`
20302    done
20303    test ! -n "$as_dirs" || mkdir $as_dirs
20304  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20306   { (exit 1); exit 1; }; }; }
20307
20308  ac_builddir=.
20309
20310if test "$ac_dir" != .; then
20311  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20312  # A "../" for each directory in $ac_dir_suffix.
20313  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20314else
20315  ac_dir_suffix= ac_top_builddir=
20316fi
20317
20318case $srcdir in
20319  .)  # No --srcdir option.  We are building in place.
20320    ac_srcdir=.
20321    if test -z "$ac_top_builddir"; then
20322       ac_top_srcdir=.
20323    else
20324       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20325    fi ;;
20326  [\\/]* | ?:[\\/]* )  # Absolute path.
20327    ac_srcdir=$srcdir$ac_dir_suffix;
20328    ac_top_srcdir=$srcdir ;;
20329  *) # Relative path.
20330    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20331    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20332esac
20333
20334# Do not use `cd foo && pwd` to compute absolute paths, because
20335# the directories may not exist.
20336case `pwd` in
20337.) ac_abs_builddir="$ac_dir";;
20338*)
20339  case "$ac_dir" in
20340  .) ac_abs_builddir=`pwd`;;
20341  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20342  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20343  esac;;
20344esac
20345case $ac_abs_builddir in
20346.) ac_abs_top_builddir=${ac_top_builddir}.;;
20347*)
20348  case ${ac_top_builddir}. in
20349  .) ac_abs_top_builddir=$ac_abs_builddir;;
20350  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20351  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20352  esac;;
20353esac
20354case $ac_abs_builddir in
20355.) ac_abs_srcdir=$ac_srcdir;;
20356*)
20357  case $ac_srcdir in
20358  .) ac_abs_srcdir=$ac_abs_builddir;;
20359  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20360  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20361  esac;;
20362esac
20363case $ac_abs_builddir in
20364.) ac_abs_top_srcdir=$ac_top_srcdir;;
20365*)
20366  case $ac_top_srcdir in
20367  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20368  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20369  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20370  esac;;
20371esac
20372
20373
20374  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20375echo "$as_me: executing $ac_dest commands" >&6;}
20376  case $ac_dest in
20377    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20378  # Strip MF so we end up with the name of the file.
20379  mf=`echo "$mf" | sed -e 's/:.*$//'`
20380  # Check whether this is an Automake generated Makefile or not.
20381  # We used to match only the files named `Makefile.in', but
20382  # some people rename them; so instead we look at the file content.
20383  # Grep'ing the first line is not enough: some people post-process
20384  # each Makefile.in and add a new line on top of each file to say so.
20385  # So let's grep whole file.
20386  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20387    dirpart=`(dirname "$mf") 2>/dev/null ||
20388$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20389	 X"$mf" : 'X\(//\)[^/]' \| \
20390	 X"$mf" : 'X\(//\)$' \| \
20391	 X"$mf" : 'X\(/\)' \| \
20392	 .     : '\(.\)' 2>/dev/null ||
20393echo X"$mf" |
20394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20395  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20396  	  /^X\(\/\/\)$/{ s//\1/; q; }
20397  	  /^X\(\/\).*/{ s//\1/; q; }
20398  	  s/.*/./; q'`
20399  else
20400    continue
20401  fi
20402  # Extract the definition of DEPDIR, am__include, and am__quote
20403  # from the Makefile without running `make'.
20404  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20405  test -z "$DEPDIR" && continue
20406  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20407  test -z "am__include" && continue
20408  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20409  # When using ansi2knr, U may be empty or an underscore; expand it
20410  U=`sed -n 's/^U = //p' < "$mf"`
20411  # Find all dependency output files, they are included files with
20412  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20413  # simplest approach to changing $(DEPDIR) to its actual value in the
20414  # expansion.
20415  for file in `sed -n "
20416    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20417       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20418    # Make sure the directory exists.
20419    test -f "$dirpart/$file" && continue
20420    fdir=`(dirname "$file") 2>/dev/null ||
20421$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20422	 X"$file" : 'X\(//\)[^/]' \| \
20423	 X"$file" : 'X\(//\)$' \| \
20424	 X"$file" : 'X\(/\)' \| \
20425	 .     : '\(.\)' 2>/dev/null ||
20426echo X"$file" |
20427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20428  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20429  	  /^X\(\/\/\)$/{ s//\1/; q; }
20430  	  /^X\(\/\).*/{ s//\1/; q; }
20431  	  s/.*/./; q'`
20432    { if $as_mkdir_p; then
20433    mkdir -p $dirpart/$fdir
20434  else
20435    as_dir=$dirpart/$fdir
20436    as_dirs=
20437    while test ! -d "$as_dir"; do
20438      as_dirs="$as_dir $as_dirs"
20439      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441	 X"$as_dir" : 'X\(//\)[^/]' \| \
20442	 X"$as_dir" : 'X\(//\)$' \| \
20443	 X"$as_dir" : 'X\(/\)' \| \
20444	 .     : '\(.\)' 2>/dev/null ||
20445echo X"$as_dir" |
20446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20447  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20448  	  /^X\(\/\/\)$/{ s//\1/; q; }
20449  	  /^X\(\/\).*/{ s//\1/; q; }
20450  	  s/.*/./; q'`
20451    done
20452    test ! -n "$as_dirs" || mkdir $as_dirs
20453  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20454echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20455   { (exit 1); exit 1; }; }; }
20456
20457    # echo "creating $dirpart/$file"
20458    echo '# dummy' > "$dirpart/$file"
20459  done
20460done
20461 ;;
20462  esac
20463done
20464_ACEOF
20465
20466cat >>$CONFIG_STATUS <<\_ACEOF
20467
20468{ (exit 0); exit 0; }
20469_ACEOF
20470chmod +x $CONFIG_STATUS
20471ac_clean_files=$ac_clean_files_save
20472
20473
20474# configure is writing to config.log, and then calls config.status.
20475# config.status does its own redirection, appending to config.log.
20476# Unfortunately, on DOS this fails, as config.log is still kept open
20477# by configure, so config.status won't be able to write to it; its
20478# output is simply discarded.  So we exec the FD to /dev/null,
20479# effectively closing config.log, so it can be properly (re)opened and
20480# appended to by config.status.  When coming back to configure, we
20481# need to make the FD available again.
20482if test "$no_create" != yes; then
20483  ac_cs_success=:
20484  ac_config_status_args=
20485  test "$silent" = yes &&
20486    ac_config_status_args="$ac_config_status_args --quiet"
20487  exec 5>/dev/null
20488  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20489  exec 5>>config.log
20490  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20491  # would make configure fail if this is the last instruction.
20492  $ac_cs_success || { (exit 1); exit 1; }
20493fi
20494
20495