1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for mdemo 0.1.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='mdemo'
425PACKAGE_TARNAME='mdemo'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='mdemo 0.1'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="main.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE INCLTDL LIBLTDL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS STATIC LIBM LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures mdemo 0.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of mdemo 0.1:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <bug-libtool@gnu.org>.
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071  # If there are subdirs, report their specific --help.
1072  ac_popdir=`pwd`
1073  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074    test -d $ac_dir || continue
1075    ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079  # A "../" for each directory in $ac_dir_suffix.
1080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082  ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086  .)  # No --srcdir option.  We are building in place.
1087    ac_srcdir=.
1088    if test -z "$ac_top_builddir"; then
1089       ac_top_srcdir=.
1090    else
1091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092    fi ;;
1093  [\\/]* | ?:[\\/]* )  # Absolute path.
1094    ac_srcdir=$srcdir$ac_dir_suffix;
1095    ac_top_srcdir=$srcdir ;;
1096  *) # Relative path.
1097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106  case "$ac_dir" in
1107  .) ac_abs_builddir=`pwd`;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110  esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115  case ${ac_top_builddir}. in
1116  .) ac_abs_top_builddir=$ac_abs_builddir;;
1117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119  esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124  case $ac_srcdir in
1125  .) ac_abs_srcdir=$ac_abs_builddir;;
1126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128  esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133  case $ac_top_srcdir in
1134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137  esac;;
1138esac
1139
1140    cd $ac_dir
1141    # Check for guested configure; otherwise get Cygnus style configure.
1142    if test -f $ac_srcdir/configure.gnu; then
1143      echo
1144      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145    elif test -f $ac_srcdir/configure; then
1146      echo
1147      $SHELL $ac_srcdir/configure  --help=recursive
1148    elif test -f $ac_srcdir/configure.ac ||
1149	   test -f $ac_srcdir/configure.in; then
1150      echo
1151      $ac_configure --help
1152    else
1153      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154    fi
1155    cd $ac_popdir
1156  done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161  cat <<\_ACEOF
1162mdemo configure 0.1
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169  exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by mdemo $as_me 0.1, which was
1177generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179  $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210  IFS=$as_save_IFS
1211  test -z "$as_dir" && as_dir=.
1212  echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239  for ac_arg
1240  do
1241    case $ac_arg in
1242    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244    | -silent | --silent | --silen | --sile | --sil)
1245      continue ;;
1246    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    esac
1249    case $ac_pass in
1250    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251    2)
1252      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253      if test $ac_must_keep_next = true; then
1254	ac_must_keep_next=false # Got value, back to normal.
1255      else
1256	case $ac_arg in
1257	  *=* | --config-cache | -C | -disable-* | --disable-* \
1258	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260	  | -with-* | --with-* | -without-* | --without-* | --x)
1261	    case "$ac_configure_args0 " in
1262	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263	    esac
1264	    ;;
1265	  -* ) ac_must_keep_next=true ;;
1266	esac
1267      fi
1268      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269      # Get rid of the leading space.
1270      ac_sep=" "
1271      ;;
1272    esac
1273  done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log.  We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284  # Save into config.log some information that might help in debugging.
1285  {
1286    echo
1287
1288    cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293    echo
1294    # The following way of writing the cache mishandles newlines in values,
1295{
1296  (set) 2>&1 |
1297    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298    *ac_space=\ *)
1299      sed -n \
1300	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302      ;;
1303    *)
1304      sed -n \
1305	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306      ;;
1307    esac;
1308}
1309    echo
1310
1311    cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316    echo
1317    for ac_var in $ac_subst_vars
1318    do
1319      eval ac_val=$`echo $ac_var`
1320      echo "$ac_var='"'"'$ac_val'"'"'"
1321    done | sort
1322    echo
1323
1324    if test -n "$ac_subst_files"; then
1325      cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330      echo
1331      for ac_var in $ac_subst_files
1332      do
1333	eval ac_val=$`echo $ac_var`
1334	echo "$ac_var='"'"'$ac_val'"'"'"
1335      done | sort
1336      echo
1337    fi
1338
1339    if test -s confdefs.h; then
1340      cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345      echo
1346      sed "/^$/d" confdefs.h | sort
1347      echo
1348    fi
1349    test "$ac_signal" != 0 &&
1350      echo "$as_me: caught signal $ac_signal"
1351    echo "$as_me: exit $exit_status"
1352  } >&5
1353  rm -f core *.core &&
1354  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355    exit $exit_status
1356     ' 0
1357for ac_signal in 1 2 13 15; do
1358  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397  if test "x$prefix" != xNONE; then
1398    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399  else
1400    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401  fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404  if test -r "$ac_site_file"; then
1405    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407    sed 's/^/| /' "$ac_site_file" >&5
1408    . "$ac_site_file"
1409  fi
1410done
1411
1412if test -r "$cache_file"; then
1413  # Some versions of bash will fail to source /dev/null (special
1414  # files actually), so we avoid doing that.
1415  if test -f "$cache_file"; then
1416    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418    case $cache_file in
1419      [\\/]* | ?:[\\/]* ) . $cache_file;;
1420      *)                      . ./$cache_file;;
1421    esac
1422  fi
1423else
1424  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426  >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435  eval ac_new_set=\$ac_env_${ac_var}_set
1436  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437  eval ac_new_val="\$ac_env_${ac_var}_value"
1438  case $ac_old_set,$ac_new_set in
1439    set,)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,set)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,);;
1448    *)
1449      if test "x$ac_old_val" != "x$ac_new_val"; then
1450	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453echo "$as_me:   former value:  $ac_old_val" >&2;}
1454	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455echo "$as_me:   current value: $ac_new_val" >&2;}
1456	ac_cache_corrupted=:
1457      fi;;
1458  esac
1459  # Pass precious variables to config.status.
1460  if test "$ac_new_set" = set; then
1461    case $ac_new_val in
1462    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464    *) ac_arg=$ac_var=$ac_new_val ;;
1465    esac
1466    case " $ac_configure_args " in
1467      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469    esac
1470  fi
1471done
1472if $ac_cache_corrupted; then
1473  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515## ------------------------ ##
1516## Automake Initialisation. ##
1517## ------------------------ ##
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521  if test -f $ac_dir/install-sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install-sh -c"
1524    break
1525  elif test -f $ac_dir/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program.  We prefer a C program (faster),
1545# so one script is as good as another.  But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570  ./ | .// | /cC/* | \
1571  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573  /usr/ucb/* ) ;;
1574  *)
1575    # OSF1 and SCO ODT 3.0 have their own names for install.
1576    # Don't use installbsd from OSF since it installs stuff as root
1577    # by default.
1578    for ac_prog in ginstall scoinst install; do
1579      for ac_exec_ext in '' $ac_executable_extensions; do
1580	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581	  if test $ac_prog = install &&
1582	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583	    # AIX install.  It has an incompatible calling convention.
1584	    :
1585	  elif test $ac_prog = install &&
1586	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587	    # program-specific install script used by HP pwplus--don't use.
1588	    :
1589	  else
1590	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591	    break 3
1592	  fi
1593	fi
1594      done
1595    done
1596    ;;
1597esac
1598done
1599
1600
1601fi
1602  if test "${ac_cv_path_install+set}" = set; then
1603    INSTALL=$ac_cv_path_install
1604  else
1605    # As a last resort, use the slow shell script.  We don't cache a
1606    # path for INSTALL within a source directory, because that will
1607    # break other packages using the cache if that directory is
1608    # removed, or if the path is relative.
1609    INSTALL=$ac_install_sh
1610  fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments.  Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635   if test "$*" = "X"; then
1636      # -L didn't work.
1637      set X `ls -t $srcdir/configure conftest.file`
1638   fi
1639   rm -f conftest.file
1640   if test "$*" != "X $srcdir/configure conftest.file" \
1641      && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643      # If neither matched, then we have a broken ls.  This can happen
1644      # if, for instance, CONFIG_SHELL is bash and it inherits a
1645      # broken ls alias from the environment.  This has actually
1646      # happened.  Such a system could not be considered "sane".
1647      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650alias in your environment" >&2;}
1651   { (exit 1); exit 1; }; }
1652   fi
1653
1654   test "$2" = conftest.file
1655   )
1656then
1657   # Ok.
1658   :
1659else
1660   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $.  echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687  am_missing_run="$MISSING --run "
1688else
1689  am_missing_run=
1690  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695  # We used to keeping the `.' as first argument, in order to
1696  # allow $(mkdir_p) to be used without argument.  As in
1697  #   $(mkdir_p) $(somedir)
1698  # where $(somedir) is conditionally defined.  However this is wrong
1699  # for two reasons:
1700  #  1. if the package is installed by a user who cannot write `.'
1701  #     make install will fail,
1702  #  2. the above comment should most certainly read
1703  #     $(mkdir_p) $(DESTDIR)$(somedir)
1704  #     so it does not work when $(somedir) is undefined and
1705  #     $(DESTDIR) is not.
1706  #  To support the latter case, we have to write
1707  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708  #  so the `.' trick is pointless.
1709  mkdir_p='mkdir -p --'
1710else
1711  # On NextStep and OpenStep, the `mkdir' command does not
1712  # recognize any option.  It will interpret all options as
1713  # directories to create, and then abort because `.' already
1714  # exists.
1715  for d in ./-p ./--version;
1716  do
1717    test -d $d && rmdir $d
1718  done
1719  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720  if test -f "$ac_aux_dir/mkinstalldirs"; then
1721    mkdir_p='$(mkinstalldirs)'
1722  else
1723    mkdir_p='$(install_sh) -d'
1724  fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729  # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734  echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736  if test -n "$AWK"; then
1737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742  IFS=$as_save_IFS
1743  test -z "$as_dir" && as_dir=.
1744  for ac_exec_ext in '' $ac_executable_extensions; do
1745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746    ac_cv_prog_AWK="$ac_prog"
1747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748    break 2
1749  fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757  echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760  echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764  test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  cat >conftest.make <<\_ACEOF
1774all:
1775	@echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780  eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782  eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787  echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789  SET_MAKE=
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793  SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799  am__leading_dot=.
1800else
1801  am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807   test -f $srcdir/config.status; then
1808  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810   { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815  if (cygpath --version) >/dev/null 2>/dev/null; then
1816    CYGPATH_W='cygpath -w'
1817  else
1818    CYGPATH_W=echo
1819  fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE=mdemo
1825 VERSION=0.1
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE "$PACKAGE"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define VERSION "$VERSION"
1835_ACEOF
1836
1837# Some tools Automake needs.
1838
1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840
1841
1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843
1844
1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846
1847
1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849
1850
1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852
1853install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854
1855# Installed binaries are usually stripped using `strip' when the user
1856# run `make install-strip'.  However `strip' might not be the right
1857# tool to use in cross-compilation environments, therefore Automake
1858# will honor the `STRIP' environment variable to overrule this program.
1859if test "$cross_compiling" != no; then
1860  if test -n "$ac_tool_prefix"; then
1861  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862set dummy ${ac_tool_prefix}strip; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_STRIP+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if test -n "$STRIP"; then
1869  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876  for ac_exec_ext in '' $ac_executable_extensions; do
1877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883done
1884
1885fi
1886fi
1887STRIP=$ac_cv_prog_STRIP
1888if test -n "$STRIP"; then
1889  echo "$as_me:$LINENO: result: $STRIP" >&5
1890echo "${ECHO_T}$STRIP" >&6
1891else
1892  echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$ac_cv_prog_STRIP"; then
1898  ac_ct_STRIP=$STRIP
1899  # Extract the first word of "strip", so it can be a program name with args.
1900set dummy strip; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$ac_ct_STRIP"; then
1907  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    ac_cv_prog_ac_ct_STRIP="strip"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924fi
1925fi
1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927if test -n "$ac_ct_STRIP"; then
1928  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929echo "${ECHO_T}$ac_ct_STRIP" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935  STRIP=$ac_ct_STRIP
1936else
1937  STRIP="$ac_cv_prog_STRIP"
1938fi
1939
1940fi
1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942
1943# We need awk for the "check" target.  The system "awk" is bad on
1944# some platforms.
1945# Always define AMTAR for backward compatibility.
1946
1947AMTAR=${AMTAR-"${am_missing_run}tar"}
1948
1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1950
1951
1952
1953
1954
1955
1956
1957## ------------------ ##
1958## C compiler checks. ##
1959## ------------------ ##
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003  ac_ct_CC=$CC
2004  # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$ac_ct_CC"; then
2012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    ac_cv_prog_ac_ct_CC="gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035  echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039  CC=$ac_ct_CC
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045  if test -n "$ac_tool_prefix"; then
2046  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083  ac_ct_CC=$CC
2084  # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="cc"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  CC=$ac_ct_CC
2120else
2121  CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126  # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136  ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145       ac_prog_rejected=yes
2146       continue
2147     fi
2148    ac_cv_prog_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156  # We found a bogon in the path, so make sure we never use it.
2157  set dummy $ac_cv_prog_CC
2158  shift
2159  if test $# != 0; then
2160    # We chose a different compiler from the bogus one.
2161    # However, it has the same basename, so the bogon will be chosen
2162    # first if we set CC to just the basename; use the full file name.
2163    shift
2164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165  fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  for ac_prog in cl
2182  do
2183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$CC"; then
2191  ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    test -n "$CC" && break
2219  done
2220fi
2221if test -z "$CC"; then
2222  ac_ct_CC=$CC
2223  for ac_prog in cl
2224do
2225  # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$ac_ct_CC"; then
2233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_ac_ct_CC="$ac_prog"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260  test -n "$ac_ct_CC" && break
2261done
2262
2263  CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277     "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280  (eval $ac_compiler --version </dev/null >&5) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285  (eval $ac_compiler -v </dev/null >&5) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290  (eval $ac_compiler -V </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310ac_clean_files_save=$ac_clean_files
2311ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312# Try to create an executable without -o first, disregard a.out.
2313# It will help us diagnose broken compilers, and finding out an intuition
2314# of exeext.
2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319  (eval $ac_link_default) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # Find the output, starting from the most likely.  This scheme is
2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325# resort.
2326
2327# Be careful to initialize this variable, since it used to be cached.
2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329ac_cv_exeext=
2330# b.out is created by i960 compilers.
2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332do
2333  test -f "$ac_file" || continue
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336	;;
2337    conftest.$ac_ext )
2338	# This is the source file.
2339	;;
2340    [ab].out )
2341	# We found the default executable, but exeext='' is most
2342	# certainly right.
2343	break;;
2344    *.* )
2345	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346	# FIXME: I believe we export ac_cv_exeext for Libtool,
2347	# but it would be cool to find out if it's true.  Does anybody
2348	# maintain Libtool? --akim.
2349	export ac_cv_exeext
2350	break;;
2351    * )
2352	break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: C compiler cannot create executables
2362See \`config.log' for more details." >&2;}
2363   { (exit 77); exit 77; }; }
2364fi
2365
2366ac_exeext=$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6
2369
2370# Check the compiler produces executables we can run.  If not, either
2371# the compiler is broken, or we cross compile.
2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375# If not cross compiling, check that we can run a simple program.
2376if test "$cross_compiling" != yes; then
2377  if { ac_try='./$ac_file'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383    cross_compiling=no
2384  else
2385    if test "$cross_compiling" = maybe; then
2386	cross_compiling=yes
2387    else
2388	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389If you meant to cross compile, use \`--host'.
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395    fi
2396  fi
2397fi
2398echo "$as_me:$LINENO: result: yes" >&5
2399echo "${ECHO_T}yes" >&6
2400
2401rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402ac_clean_files=$ac_clean_files_save
2403# Check the compiler produces executables we can run.  If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408echo "${ECHO_T}$cross_compiling" >&6
2409
2410echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413  (eval $ac_link) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; then
2417  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419# work properly (i.e., refer to `conftest.exe'), while it won't with
2420# `rm'.
2421for ac_file in conftest.exe conftest conftest.*; do
2422  test -f "$ac_file" || continue
2423  case $ac_file in
2424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426	  export ac_cv_exeext
2427	  break;;
2428    * ) break;;
2429  esac
2430done
2431else
2432  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435See \`config.log' for more details." >&2;}
2436   { (exit 1); exit 1; }; }
2437fi
2438
2439rm -f conftest$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443rm -f conftest.$ac_ext
2444EXEEXT=$ac_cv_exeext
2445ac_exeext=$EXEEXT
2446echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448if test "${ac_cv_objext+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.o conftest.obj
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; then
2472  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473  case $ac_file in
2474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476       break;;
2477  esac
2478done
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512       choke me
2513#endif
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528	 { ac_try='test -z "$ac_c_werror_flag"
2529			 || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535	 { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_compiler_gnu=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_compiler_gnu=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554GCC=`test $ac_compiler_gnu = yes && echo yes`
2555ac_test_CFLAGS=${CFLAGS+set}
2556ac_save_CFLAGS=$CFLAGS
2557CFLAGS="-g"
2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560if test "${ac_cv_prog_cc_g+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570int
2571main ()
2572{
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest.$ac_objext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_prog_cc_g=yes
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605ac_cv_prog_cc_g=no
2606fi
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611if test "$ac_test_CFLAGS" = set; then
2612  CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614  if test "$GCC" = yes; then
2615    CFLAGS="-g -O2"
2616  else
2617    CFLAGS="-g"
2618  fi
2619else
2620  if test "$GCC" = yes; then
2621    CFLAGS="-O2"
2622  else
2623    CFLAGS=
2624  fi
2625fi
2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  ac_cv_prog_cc_stdc=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647     char **p;
2648     int i;
2649{
2650  return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654  char *s;
2655  va_list v;
2656  va_start (v,p);
2657  s = g (p, va_arg (v,int));
2658  va_end (v);
2659  return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663   function prototypes and stuff, but not '\xHH' hex character constants.
2664   These don't provoke an error unfortunately, instead are silently treated
2665   as 'x'.  The following induces an error, until -std1 is added to get
2666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667   array size at least.  It's necessary to write '\x00'==0 to get something
2668   that's true only with -std1.  */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671int test (int i, double x);
2672struct s1 {int (*f) (int a);};
2673struct s2 {int (*f) (double a);};
2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675int argc;
2676char **argv;
2677int
2678main ()
2679{
2680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685# Don't try gcc -ansi; that turns off useful extensions and
2686# breaks some systems' header files.
2687# AIX			-qlanglvl=ansi
2688# Ultrix and OSF/1	-std1
2689# HP-UX 10.20 and later	-Ae
2690# HP-UX older versions	-Aa -D_HPUX_SOURCE
2691# SVR4			-Xc -D__EXTENSIONS__
2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693do
2694  CC="$ac_save_CC $ac_arg"
2695  rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732  x|xno)
2733    echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735  *)
2736    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738    CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C.  Since we use `exit',
2742# in C++ we need to declare it.  In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747  choke me
2748#endif
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"
2760			 || test ! -s conftest.err'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; } &&
2766	 { ac_try='test -s conftest.$ac_objext'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; }; then
2772  for ac_declaration in \
2773   '' \
2774   'extern "C" void std::exit (int) throw (); using std::exit;' \
2775   'extern "C" void std::exit (int); using std::exit;' \
2776   'extern "C" void exit (int) throw ();' \
2777   'extern "C" void exit (int);' \
2778   'void exit (int);'
2779do
2780  cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786$ac_declaration
2787#include <stdlib.h>
2788int
2789main ()
2790{
2791exit (42);
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"
2806			 || test ! -s conftest.err'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; } &&
2812	 { ac_try='test -s conftest.$ac_objext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  :
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823continue
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832$ac_declaration
2833int
2834main ()
2835{
2836exit (42);
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843  (eval $ac_compile) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850	 { ac_try='test -z "$ac_c_werror_flag"
2851			 || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857	 { ac_try='test -s conftest.$ac_objext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  break
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870done
2871rm -f conftest*
2872if test -n "$ac_declaration"; then
2873  echo '#ifdef __cplusplus' >>confdefs.h
2874  echo $ac_declaration      >>confdefs.h
2875  echo '#endif'             >>confdefs.h
2876fi
2877
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889DEPDIR="${am__leading_dot}deps"
2890
2891          ac_config_commands="$ac_config_commands depfiles"
2892
2893
2894am_make=${MAKE-make}
2895cat > confinc << 'END'
2896am__doit:
2897	@echo done
2898.PHONY: am__doit
2899END
2900# If we don't find an include directive, just comment out the code.
2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2903am__include="#"
2904am__quote=
2905_am_result=none
2906# First try GNU make style include.
2907echo "include confinc" > confmf
2908# We grep out `Entering directory' and `Leaving directory'
2909# messages which can occur if `w' ends up in MAKEFLAGS.
2910# In particular we don't look at `^make:' because GNU make might
2911# be invoked under some other name (usually "gmake"), in which
2912# case it prints its new name instead of `make'.
2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914   am__include=include
2915   am__quote=
2916   _am_result=GNU
2917fi
2918# Now try BSD make style include.
2919if test "$am__include" = "#"; then
2920   echo '.include "confinc"' > confmf
2921   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2922      am__include=.include
2923      am__quote="\""
2924      _am_result=BSD
2925   fi
2926fi
2927
2928
2929echo "$as_me:$LINENO: result: $_am_result" >&5
2930echo "${ECHO_T}$_am_result" >&6
2931rm -f confinc confmf
2932
2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2934if test "${enable_dependency_tracking+set}" = set; then
2935  enableval="$enable_dependency_tracking"
2936
2937fi;
2938if test "x$enable_dependency_tracking" != xno; then
2939  am_depcomp="$ac_aux_dir/depcomp"
2940  AMDEPBACKSLASH='\'
2941fi
2942
2943
2944if test "x$enable_dependency_tracking" != xno; then
2945  AMDEP_TRUE=
2946  AMDEP_FALSE='#'
2947else
2948  AMDEP_TRUE='#'
2949  AMDEP_FALSE=
2950fi
2951
2952
2953
2954
2955depcc="$CC"   am_compiler_list=
2956
2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2963  # We make a subdir and do the tests there.  Otherwise we can end up
2964  # making bogus files that we don't know about and never remove.  For
2965  # instance it was reported that on HP-UX the gcc test will end up
2966  # making a dummy file named `D' -- because `-MD' means `put the output
2967  # in D'.
2968  mkdir conftest.dir
2969  # Copy depcomp to subdir because otherwise we won't find it if we're
2970  # using a relative directory.
2971  cp "$am_depcomp" conftest.dir
2972  cd conftest.dir
2973  # We will build objects and dependencies in a subdirectory because
2974  # it helps to detect inapplicable dependency modes.  For instance
2975  # both Tru64's cc and ICC support -MD to output dependencies as a
2976  # side effect of compilation, but ICC will put the dependencies in
2977  # the current directory while Tru64 will put them in the object
2978  # directory.
2979  mkdir sub
2980
2981  am_cv_CC_dependencies_compiler_type=none
2982  if test "$am_compiler_list" = ""; then
2983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2984  fi
2985  for depmode in $am_compiler_list; do
2986    # Setup a source with many dependencies, because some compilers
2987    # like to wrap large dependency lists on column 80 (with \), and
2988    # we should not choose a depcomp mode which is confused by this.
2989    #
2990    # We need to recreate these files for each test, as the compiler may
2991    # overwrite some of them when testing with obscure command lines.
2992    # This happens at least with the AIX C compiler.
2993    : > sub/conftest.c
2994    for i in 1 2 3 4 5 6; do
2995      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2996      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2997      # Solaris 8's {/usr,}/bin/sh.
2998      touch sub/conftst$i.h
2999    done
3000    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002    case $depmode in
3003    nosideeffect)
3004      # after this tag, mechanisms are not by side-effect, so they'll
3005      # only be used when explicitly requested
3006      if test "x$enable_dependency_tracking" = xyes; then
3007	continue
3008      else
3009	break
3010      fi
3011      ;;
3012    none) break ;;
3013    esac
3014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015    # mode.  It turns out that the SunPro C++ compiler does not properly
3016    # handle `-M -o', and we need to detect this.
3017    if depmode=$depmode \
3018       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021         >/dev/null 2>conftest.err &&
3022       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025      # icc doesn't choke on unknown options, it will just issue warnings
3026      # or remarks (even with -Werror).  So we grep stderr for any message
3027      # that says an option was ignored or not supported.
3028      # When given -MP, icc 7.0 and 7.1 complain thusly:
3029      #   icc: Command line warning: ignoring option '-M'; no argument required
3030      # The diagnosis changed in icc 8.0:
3031      #   icc: Command line remark: option '-MP' not supported
3032      if (grep 'ignoring option' conftest.err ||
3033          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3034        am_cv_CC_dependencies_compiler_type=$depmode
3035        break
3036      fi
3037    fi
3038  done
3039
3040  cd ..
3041  rm -rf conftest.dir
3042else
3043  am_cv_CC_dependencies_compiler_type=none
3044fi
3045
3046fi
3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
3051
3052
3053if
3054  test "x$enable_dependency_tracking" != xno \
3055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3056  am__fastdepCC_TRUE=
3057  am__fastdepCC_FALSE='#'
3058else
3059  am__fastdepCC_TRUE='#'
3060  am__fastdepCC_FALSE=
3061fi
3062
3063
3064
3065echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3066echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3067if test "${ac_cv_c_const+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080/* FIXME: Include the comments suggested by Paul. */
3081#ifndef __cplusplus
3082  /* Ultrix mips cc rejects this.  */
3083  typedef int charset[2];
3084  const charset x;
3085  /* SunOS 4.1.1 cc rejects this.  */
3086  char const *const *ccp;
3087  char **p;
3088  /* NEC SVR4.0.2 mips cc rejects this.  */
3089  struct point {int x, y;};
3090  static struct point const zero = {0,0};
3091  /* AIX XL C 1.02.0.0 rejects this.
3092     It does not let you subtract one const X* pointer from another in
3093     an arm of an if-expression whose if-part is not a constant
3094     expression */
3095  const char *g = "string";
3096  ccp = &g + (g ? g-g : 0);
3097  /* HPUX 7.0 cc rejects these. */
3098  ++ccp;
3099  p = (char**) ccp;
3100  ccp = (char const *const *) p;
3101  { /* SCO 3.2v4 cc rejects this.  */
3102    char *t;
3103    char const *s = 0 ? (char *) 0 : (char const *) 0;
3104
3105    *t++ = 0;
3106  }
3107  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3108    int x[] = {25, 17};
3109    const int *foo = &x[0];
3110    ++foo;
3111  }
3112  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3113    typedef const int *iptr;
3114    iptr p = 0;
3115    ++p;
3116  }
3117  { /* AIX XL C 1.02.0.0 rejects this saying
3118       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3119    struct s { int j; const int *ap[3]; };
3120    struct s *b; b->j = 5;
3121  }
3122  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3123    const int foo = 10;
3124  }
3125#endif
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133  (eval $ac_compile) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } &&
3140	 { ac_try='test -z "$ac_c_werror_flag"
3141			 || test ! -s conftest.err'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; } &&
3147	 { ac_try='test -s conftest.$ac_objext'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; }; then
3153  ac_cv_c_const=yes
3154else
3155  echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158ac_cv_c_const=no
3159fi
3160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3161fi
3162echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3163echo "${ECHO_T}$ac_cv_c_const" >&6
3164if test $ac_cv_c_const = no; then
3165
3166cat >>confdefs.h <<\_ACEOF
3167#define const
3168_ACEOF
3169
3170fi
3171
3172
3173
3174## ----------------------- ##
3175## Libtool initialisation. ##
3176## ----------------------- ##
3177  case $enable_ltdl_convenience in
3178  no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3179echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3180   { (exit 1); exit 1; }; } ;;
3181  "") enable_ltdl_convenience=yes
3182      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3183  esac
3184  LIBLTDL='${top_builddir}/'../libltdl/libltdlc.la
3185  LTDLINCL='-I${top_srcdir}/'../libltdl
3186  # For backwards non-gettext consistent compatibility...
3187  INCLTDL="$LTDLINCL"
3188
3189
3190
3191
3192
3193
3194
3195
3196# Check whether --enable-shared or --disable-shared was given.
3197if test "${enable_shared+set}" = set; then
3198  enableval="$enable_shared"
3199  p=${PACKAGE-default}
3200    case $enableval in
3201    yes) enable_shared=yes ;;
3202    no) enable_shared=no ;;
3203    *)
3204      enable_shared=no
3205      # Look at the argument we got.  We use all the common list separators.
3206      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3207      for pkg in $enableval; do
3208	IFS="$lt_save_ifs"
3209	if test "X$pkg" = "X$p"; then
3210	  enable_shared=yes
3211	fi
3212      done
3213      IFS="$lt_save_ifs"
3214      ;;
3215    esac
3216else
3217  enable_shared=yes
3218fi;
3219
3220# Check whether --enable-static or --disable-static was given.
3221if test "${enable_static+set}" = set; then
3222  enableval="$enable_static"
3223  p=${PACKAGE-default}
3224    case $enableval in
3225    yes) enable_static=yes ;;
3226    no) enable_static=no ;;
3227    *)
3228     enable_static=no
3229      # Look at the argument we got.  We use all the common list separators.
3230      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3231      for pkg in $enableval; do
3232	IFS="$lt_save_ifs"
3233	if test "X$pkg" = "X$p"; then
3234	  enable_static=yes
3235	fi
3236      done
3237      IFS="$lt_save_ifs"
3238      ;;
3239    esac
3240else
3241  enable_static=yes
3242fi;
3243
3244# Check whether --enable-fast-install or --disable-fast-install was given.
3245if test "${enable_fast_install+set}" = set; then
3246  enableval="$enable_fast_install"
3247  p=${PACKAGE-default}
3248    case $enableval in
3249    yes) enable_fast_install=yes ;;
3250    no) enable_fast_install=no ;;
3251    *)
3252      enable_fast_install=no
3253      # Look at the argument we got.  We use all the common list separators.
3254      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3255      for pkg in $enableval; do
3256	IFS="$lt_save_ifs"
3257	if test "X$pkg" = "X$p"; then
3258	  enable_fast_install=yes
3259	fi
3260      done
3261      IFS="$lt_save_ifs"
3262      ;;
3263    esac
3264else
3265  enable_fast_install=yes
3266fi;
3267
3268# Make sure we can run config.sub.
3269$ac_config_sub sun4 >/dev/null 2>&1 ||
3270  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3271echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3272   { (exit 1); exit 1; }; }
3273
3274echo "$as_me:$LINENO: checking build system type" >&5
3275echo $ECHO_N "checking build system type... $ECHO_C" >&6
3276if test "${ac_cv_build+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  ac_cv_build_alias=$build_alias
3280test -z "$ac_cv_build_alias" &&
3281  ac_cv_build_alias=`$ac_config_guess`
3282test -z "$ac_cv_build_alias" &&
3283  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3284echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3285   { (exit 1); exit 1; }; }
3286ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3287  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3288echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3289   { (exit 1); exit 1; }; }
3290
3291fi
3292echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3293echo "${ECHO_T}$ac_cv_build" >&6
3294build=$ac_cv_build
3295build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3296build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3297build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3298
3299
3300echo "$as_me:$LINENO: checking host system type" >&5
3301echo $ECHO_N "checking host system type... $ECHO_C" >&6
3302if test "${ac_cv_host+set}" = set; then
3303  echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305  ac_cv_host_alias=$host_alias
3306test -z "$ac_cv_host_alias" &&
3307  ac_cv_host_alias=$ac_cv_build_alias
3308ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3309  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3310echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3311   { (exit 1); exit 1; }; }
3312
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3315echo "${ECHO_T}$ac_cv_host" >&6
3316host=$ac_cv_host
3317host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3318host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3319host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3320
3321
3322echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3323echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3324if test "${lt_cv_path_SED+set}" = set; then
3325  echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327  # Loop through the user's path and test for sed and gsed.
3328# Then use that list of sed's as ones to test for truncation.
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334  for lt_ac_prog in sed gsed; do
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3337        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3338      fi
3339    done
3340  done
3341done
3342lt_ac_max=0
3343lt_ac_count=0
3344# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3345# along with /bin/sed that truncates output.
3346for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3347  test ! -f $lt_ac_sed && continue
3348  cat /dev/null > conftest.in
3349  lt_ac_count=0
3350  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3351  # Check for GNU sed and select it if it is found.
3352  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3353    lt_cv_path_SED=$lt_ac_sed
3354    break
3355  fi
3356  while true; do
3357    cat conftest.in conftest.in >conftest.tmp
3358    mv conftest.tmp conftest.in
3359    cp conftest.in conftest.nl
3360    echo >>conftest.nl
3361    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3362    cmp -s conftest.out conftest.nl || break
3363    # 10000 chars as input seems more than enough
3364    test $lt_ac_count -gt 10 && break
3365    lt_ac_count=`expr $lt_ac_count + 1`
3366    if test $lt_ac_count -gt $lt_ac_max; then
3367      lt_ac_max=$lt_ac_count
3368      lt_cv_path_SED=$lt_ac_sed
3369    fi
3370  done
3371done
3372
3373fi
3374
3375SED=$lt_cv_path_SED
3376echo "$as_me:$LINENO: result: $SED" >&5
3377echo "${ECHO_T}$SED" >&6
3378
3379echo "$as_me:$LINENO: checking for egrep" >&5
3380echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3381if test "${ac_cv_prog_egrep+set}" = set; then
3382  echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
3384  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3385    then ac_cv_prog_egrep='grep -E'
3386    else ac_cv_prog_egrep='egrep'
3387    fi
3388fi
3389echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3390echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3391 EGREP=$ac_cv_prog_egrep
3392
3393
3394
3395# Check whether --with-gnu-ld or --without-gnu-ld was given.
3396if test "${with_gnu_ld+set}" = set; then
3397  withval="$with_gnu_ld"
3398  test "$withval" = no || with_gnu_ld=yes
3399else
3400  with_gnu_ld=no
3401fi;
3402ac_prog=ld
3403if test "$GCC" = yes; then
3404  # Check if gcc -print-prog-name=ld gives a path.
3405  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3406echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3407  case $host in
3408  *-*-mingw*)
3409    # gcc leaves a trailing carriage return which upsets mingw
3410    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3411  *)
3412    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3413  esac
3414  case $ac_prog in
3415    # Accept absolute paths.
3416    [\\/]* | ?:[\\/]*)
3417      re_direlt='/[^/][^/]*/\.\./'
3418      # Canonicalize the pathname of ld
3419      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3420      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3421	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3422      done
3423      test -z "$LD" && LD="$ac_prog"
3424      ;;
3425  "")
3426    # If it fails, then pretend we aren't using GCC.
3427    ac_prog=ld
3428    ;;
3429  *)
3430    # If it is relative, then search for the first ld in PATH.
3431    with_gnu_ld=unknown
3432    ;;
3433  esac
3434elif test "$with_gnu_ld" = yes; then
3435  echo "$as_me:$LINENO: checking for GNU ld" >&5
3436echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3437else
3438  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3439echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3440fi
3441if test "${lt_cv_path_LD+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444  if test -z "$LD"; then
3445  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3446  for ac_dir in $PATH; do
3447    IFS="$lt_save_ifs"
3448    test -z "$ac_dir" && ac_dir=.
3449    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3450      lt_cv_path_LD="$ac_dir/$ac_prog"
3451      # Check to see if the program is GNU ld.  I'd rather use --version,
3452      # but apparently some variants of GNU ld only accept -v.
3453      # Break only if it was the GNU/non-GNU ld that we prefer.
3454      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3455      *GNU* | *'with BFD'*)
3456	test "$with_gnu_ld" != no && break
3457	;;
3458      *)
3459	test "$with_gnu_ld" != yes && break
3460	;;
3461      esac
3462    fi
3463  done
3464  IFS="$lt_save_ifs"
3465else
3466  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3467fi
3468fi
3469
3470LD="$lt_cv_path_LD"
3471if test -n "$LD"; then
3472  echo "$as_me:$LINENO: result: $LD" >&5
3473echo "${ECHO_T}$LD" >&6
3474else
3475  echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
3477fi
3478test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3479echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3480   { (exit 1); exit 1; }; }
3481echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3482echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3483if test "${lt_cv_prog_gnu_ld+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3487case `$LD -v 2>&1 </dev/null` in
3488*GNU* | *'with BFD'*)
3489  lt_cv_prog_gnu_ld=yes
3490  ;;
3491*)
3492  lt_cv_prog_gnu_ld=no
3493  ;;
3494esac
3495fi
3496echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3497echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3498with_gnu_ld=$lt_cv_prog_gnu_ld
3499
3500
3501echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3502echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3503if test "${lt_cv_ld_reload_flag+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506  lt_cv_ld_reload_flag='-r'
3507fi
3508echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3509echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3510reload_flag=$lt_cv_ld_reload_flag
3511case $reload_flag in
3512"" | " "*) ;;
3513*) reload_flag=" $reload_flag" ;;
3514esac
3515reload_cmds='$LD$reload_flag -o $output$reload_objs'
3516case $host_os in
3517  darwin*)
3518    if test "$GCC" = yes; then
3519      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3520    else
3521      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3522    fi
3523    ;;
3524esac
3525
3526echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3527echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3528if test "${lt_cv_path_NM+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  if test -n "$NM"; then
3532  # Let the user override the test.
3533  lt_cv_path_NM="$NM"
3534else
3535  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3536  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3537    IFS="$lt_save_ifs"
3538    test -z "$ac_dir" && ac_dir=.
3539    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3540    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3541      # Check to see if the nm accepts a BSD-compat flag.
3542      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3543      #   nm: unknown option "B" ignored
3544      # Tru64's nm complains that /dev/null is an invalid object file
3545      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3546      */dev/null* | *'Invalid file or object type'*)
3547	lt_cv_path_NM="$tmp_nm -B"
3548	break
3549        ;;
3550      *)
3551	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3552	*/dev/null*)
3553	  lt_cv_path_NM="$tmp_nm -p"
3554	  break
3555	  ;;
3556	*)
3557	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3558	  continue # so that we can try to find one that supports BSD flags
3559	  ;;
3560	esac
3561      esac
3562    fi
3563  done
3564  IFS="$lt_save_ifs"
3565  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3566fi
3567fi
3568echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3569echo "${ECHO_T}$lt_cv_path_NM" >&6
3570NM="$lt_cv_path_NM"
3571
3572echo "$as_me:$LINENO: checking whether ln -s works" >&5
3573echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3574LN_S=$as_ln_s
3575if test "$LN_S" = "ln -s"; then
3576  echo "$as_me:$LINENO: result: yes" >&5
3577echo "${ECHO_T}yes" >&6
3578else
3579  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3580echo "${ECHO_T}no, using $LN_S" >&6
3581fi
3582
3583echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3584echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3585if test "${lt_cv_deplibs_check_method+set}" = set; then
3586  echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588  lt_cv_file_magic_cmd='$MAGIC_CMD'
3589lt_cv_file_magic_test_file=
3590lt_cv_deplibs_check_method='unknown'
3591# Need to set the preceding variable on all platforms that support
3592# interlibrary dependencies.
3593# 'none' -- dependencies not supported.
3594# `unknown' -- same as none, but documents that we really don't know.
3595# 'pass_all' -- all dependencies passed with no checks.
3596# 'test_compile' -- check by making test program.
3597# 'file_magic [[regex]]' -- check by looking for files in library path
3598# which responds to the $file_magic_cmd with a given extended regex.
3599# If you have `file' or equivalent on your system and you're not sure
3600# whether `pass_all' will *always* work, you probably want this one.
3601
3602case $host_os in
3603aix4* | aix5*)
3604  lt_cv_deplibs_check_method=pass_all
3605  ;;
3606
3607beos*)
3608  lt_cv_deplibs_check_method=pass_all
3609  ;;
3610
3611bsdi[45]*)
3612  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3613  lt_cv_file_magic_cmd='/usr/bin/file -L'
3614  lt_cv_file_magic_test_file=/shlib/libc.so
3615  ;;
3616
3617cygwin*)
3618  # func_win32_libid is a shell function defined in ltmain.sh
3619  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3620  lt_cv_file_magic_cmd='func_win32_libid'
3621  ;;
3622
3623mingw* | pw32*)
3624  # Base MSYS/MinGW do not provide the 'file' command needed by
3625  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3626  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3627  lt_cv_file_magic_cmd='$OBJDUMP -f'
3628  ;;
3629
3630darwin* | rhapsody*)
3631  lt_cv_deplibs_check_method=pass_all
3632  ;;
3633
3634freebsd* | kfreebsd*-gnu | dragonfly*)
3635  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3636    case $host_cpu in
3637    i*86 )
3638      # Not sure whether the presence of OpenBSD here was a mistake.
3639      # Let's accept both of them until this is cleared up.
3640      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3641      lt_cv_file_magic_cmd=/usr/bin/file
3642      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3643      ;;
3644    esac
3645  else
3646    lt_cv_deplibs_check_method=pass_all
3647  fi
3648  ;;
3649
3650gnu*)
3651  lt_cv_deplibs_check_method=pass_all
3652  ;;
3653
3654haiku*)
3655  lt_cv_deplibs_check_method=pass_all
3656  ;;
3657
3658hpux10.20* | hpux11*)
3659  lt_cv_file_magic_cmd=/usr/bin/file
3660  case $host_cpu in
3661  ia64*)
3662    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3663    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3664    ;;
3665  hppa*64*)
3666    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]'
3667    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3668    ;;
3669  *)
3670    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3671    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3672    ;;
3673  esac
3674  ;;
3675
3676irix5* | irix6* | nonstopux*)
3677  case $LD in
3678  *-32|*"-32 ") libmagic=32-bit;;
3679  *-n32|*"-n32 ") libmagic=N32;;
3680  *-64|*"-64 ") libmagic=64-bit;;
3681  *) libmagic=never-match;;
3682  esac
3683  lt_cv_deplibs_check_method=pass_all
3684  ;;
3685
3686# This must be Linux ELF.
3687linux*)
3688  lt_cv_deplibs_check_method=pass_all
3689  ;;
3690
3691netbsd*)
3692  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3694  else
3695    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3696  fi
3697  ;;
3698
3699newos6*)
3700  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3701  lt_cv_file_magic_cmd=/usr/bin/file
3702  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3703  ;;
3704
3705nto-qnx*)
3706  lt_cv_deplibs_check_method=unknown
3707  ;;
3708
3709openbsd*)
3710  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3712  else
3713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3714  fi
3715  ;;
3716
3717osf3* | osf4* | osf5*)
3718  lt_cv_deplibs_check_method=pass_all
3719  ;;
3720
3721sco3.2v5*)
3722  lt_cv_deplibs_check_method=pass_all
3723  ;;
3724
3725solaris*)
3726  lt_cv_deplibs_check_method=pass_all
3727  ;;
3728
3729sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3730  case $host_vendor in
3731  motorola)
3732    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]'
3733    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3734    ;;
3735  ncr)
3736    lt_cv_deplibs_check_method=pass_all
3737    ;;
3738  sequent)
3739    lt_cv_file_magic_cmd='/bin/file'
3740    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3741    ;;
3742  sni)
3743    lt_cv_file_magic_cmd='/bin/file'
3744    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3745    lt_cv_file_magic_test_file=/lib/libc.so
3746    ;;
3747  siemens)
3748    lt_cv_deplibs_check_method=pass_all
3749    ;;
3750  esac
3751  ;;
3752
3753sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3754  lt_cv_deplibs_check_method=pass_all
3755  ;;
3756esac
3757
3758fi
3759echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3760echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3761file_magic_cmd=$lt_cv_file_magic_cmd
3762deplibs_check_method=$lt_cv_deplibs_check_method
3763test -z "$deplibs_check_method" && deplibs_check_method=unknown
3764
3765
3766
3767
3768# If no C compiler was specified, use CC.
3769LTCC=${LTCC-"$CC"}
3770
3771# Allow CC to be a program name with arguments.
3772compiler=$CC
3773
3774# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3775if test "${enable_libtool_lock+set}" = set; then
3776  enableval="$enable_libtool_lock"
3777
3778fi;
3779test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3780
3781# Some flags need to be propagated to the compiler or linker for good
3782# libtool support.
3783case $host in
3784ia64-*-hpux*)
3785  # Find out which ABI we are using.
3786  echo 'int i;' > conftest.$ac_ext
3787  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; then
3792    case `/usr/bin/file conftest.$ac_objext` in
3793    *ELF-32*)
3794      HPUX_IA64_MODE="32"
3795      ;;
3796    *ELF-64*)
3797      HPUX_IA64_MODE="64"
3798      ;;
3799    esac
3800  fi
3801  rm -rf conftest*
3802  ;;
3803*-*-irix6*)
3804  # Find out which ABI we are using.
3805  echo '#line 3805 "configure"' > conftest.$ac_ext
3806  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807  (eval $ac_compile) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; then
3811   if test "$lt_cv_prog_gnu_ld" = yes; then
3812    case `/usr/bin/file conftest.$ac_objext` in
3813    *32-bit*)
3814      LD="${LD-ld} -melf32bsmip"
3815      ;;
3816    *N32*)
3817      LD="${LD-ld} -melf32bmipn32"
3818      ;;
3819    *64-bit*)
3820      LD="${LD-ld} -melf64bmip"
3821      ;;
3822    esac
3823   else
3824    case `/usr/bin/file conftest.$ac_objext` in
3825    *32-bit*)
3826      LD="${LD-ld} -32"
3827      ;;
3828    *N32*)
3829      LD="${LD-ld} -n32"
3830      ;;
3831    *64-bit*)
3832      LD="${LD-ld} -64"
3833      ;;
3834    esac
3835   fi
3836  fi
3837  rm -rf conftest*
3838  ;;
3839
3840x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3841  # Find out which ABI we are using.
3842  echo 'int i;' > conftest.$ac_ext
3843  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844  (eval $ac_compile) 2>&5
3845  ac_status=$?
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); }; then
3848    case `/usr/bin/file conftest.o` in
3849    *32-bit*)
3850      case $host in
3851        x86_64-*linux*)
3852          LD="${LD-ld} -m elf_i386"
3853          ;;
3854        ppc64-*linux*|powerpc64-*linux*)
3855          LD="${LD-ld} -m elf32ppclinux"
3856          ;;
3857        s390x-*linux*)
3858          LD="${LD-ld} -m elf_s390"
3859          ;;
3860        sparc64-*linux*)
3861          LD="${LD-ld} -m elf32_sparc"
3862          ;;
3863      esac
3864      ;;
3865    *64-bit*)
3866      case $host in
3867        x86_64-*linux*)
3868          LD="${LD-ld} -m elf_x86_64"
3869          ;;
3870        ppc*-*linux*|powerpc*-*linux*)
3871          LD="${LD-ld} -m elf64ppc"
3872          ;;
3873        s390*-*linux*)
3874          LD="${LD-ld} -m elf64_s390"
3875          ;;
3876        sparc*-*linux*)
3877          LD="${LD-ld} -m elf64_sparc"
3878          ;;
3879      esac
3880      ;;
3881    esac
3882  fi
3883  rm -rf conftest*
3884  ;;
3885
3886*-*-sco3.2v5*)
3887  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3888  SAVE_CFLAGS="$CFLAGS"
3889  CFLAGS="$CFLAGS -belf"
3890  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3891echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3892if test "${lt_cv_cc_needs_belf+set}" = set; then
3893  echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895  ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901     cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916rm -f conftest.$ac_objext conftest$ac_exeext
3917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918  (eval $ac_link) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925	 { ac_try='test -z "$ac_c_werror_flag"
3926			 || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932	 { ac_try='test -s conftest$ac_exeext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  lt_cv_cc_needs_belf=yes
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943lt_cv_cc_needs_belf=no
3944fi
3945rm -f conftest.err conftest.$ac_objext \
3946      conftest$ac_exeext conftest.$ac_ext
3947     ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953fi
3954echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3955echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3956  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3957    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3958    CFLAGS="$SAVE_CFLAGS"
3959  fi
3960  ;;
3961*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3962  if test -n "$ac_tool_prefix"; then
3963  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3964set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3965echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3968  echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970  if test -n "$DLLTOOL"; then
3971  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978  for ac_exec_ext in '' $ac_executable_extensions; do
3979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982    break 2
3983  fi
3984done
3985done
3986
3987fi
3988fi
3989DLLTOOL=$ac_cv_prog_DLLTOOL
3990if test -n "$DLLTOOL"; then
3991  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3992echo "${ECHO_T}$DLLTOOL" >&6
3993else
3994  echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996fi
3997
3998fi
3999if test -z "$ac_cv_prog_DLLTOOL"; then
4000  ac_ct_DLLTOOL=$DLLTOOL
4001  # Extract the first word of "dlltool", so it can be a program name with args.
4002set dummy dlltool; ac_word=$2
4003echo "$as_me:$LINENO: checking for $ac_word" >&5
4004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4006  echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008  if test -n "$ac_ct_DLLTOOL"; then
4009  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4010else
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016  for ac_exec_ext in '' $ac_executable_extensions; do
4017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020    break 2
4021  fi
4022done
4023done
4024
4025  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4026fi
4027fi
4028ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4029if test -n "$ac_ct_DLLTOOL"; then
4030  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4031echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4032else
4033  echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035fi
4036
4037  DLLTOOL=$ac_ct_DLLTOOL
4038else
4039  DLLTOOL="$ac_cv_prog_DLLTOOL"
4040fi
4041
4042  if test -n "$ac_tool_prefix"; then
4043  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4044set dummy ${ac_tool_prefix}as; ac_word=$2
4045echo "$as_me:$LINENO: checking for $ac_word" >&5
4046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047if test "${ac_cv_prog_AS+set}" = set; then
4048  echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050  if test -n "$AS"; then
4051  ac_cv_prog_AS="$AS" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056  IFS=$as_save_IFS
4057  test -z "$as_dir" && as_dir=.
4058  for ac_exec_ext in '' $ac_executable_extensions; do
4059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060    ac_cv_prog_AS="${ac_tool_prefix}as"
4061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065done
4066
4067fi
4068fi
4069AS=$ac_cv_prog_AS
4070if test -n "$AS"; then
4071  echo "$as_me:$LINENO: result: $AS" >&5
4072echo "${ECHO_T}$AS" >&6
4073else
4074  echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076fi
4077
4078fi
4079if test -z "$ac_cv_prog_AS"; then
4080  ac_ct_AS=$AS
4081  # Extract the first word of "as", so it can be a program name with args.
4082set dummy as; ac_word=$2
4083echo "$as_me:$LINENO: checking for $ac_word" >&5
4084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4086  echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088  if test -n "$ac_ct_AS"; then
4089  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4090else
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094  IFS=$as_save_IFS
4095  test -z "$as_dir" && as_dir=.
4096  for ac_exec_ext in '' $ac_executable_extensions; do
4097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098    ac_cv_prog_ac_ct_AS="as"
4099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100    break 2
4101  fi
4102done
4103done
4104
4105  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4106fi
4107fi
4108ac_ct_AS=$ac_cv_prog_ac_ct_AS
4109if test -n "$ac_ct_AS"; then
4110  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4111echo "${ECHO_T}$ac_ct_AS" >&6
4112else
4113  echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6
4115fi
4116
4117  AS=$ac_ct_AS
4118else
4119  AS="$ac_cv_prog_AS"
4120fi
4121
4122  if test -n "$ac_tool_prefix"; then
4123  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}objdump; ac_word=$2
4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4128  echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130  if test -n "$OBJDUMP"; then
4131  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4132else
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136  IFS=$as_save_IFS
4137  test -z "$as_dir" && as_dir=.
4138  for ac_exec_ext in '' $ac_executable_extensions; do
4139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142    break 2
4143  fi
4144done
4145done
4146
4147fi
4148fi
4149OBJDUMP=$ac_cv_prog_OBJDUMP
4150if test -n "$OBJDUMP"; then
4151  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4152echo "${ECHO_T}$OBJDUMP" >&6
4153else
4154  echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
4156fi
4157
4158fi
4159if test -z "$ac_cv_prog_OBJDUMP"; then
4160  ac_ct_OBJDUMP=$OBJDUMP
4161  # Extract the first word of "objdump", so it can be a program name with args.
4162set dummy objdump; ac_word=$2
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  if test -n "$ac_ct_OBJDUMP"; then
4169  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176  for ac_exec_ext in '' $ac_executable_extensions; do
4177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180    break 2
4181  fi
4182done
4183done
4184
4185  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4186fi
4187fi
4188ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4189if test -n "$ac_ct_OBJDUMP"; then
4190  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4191echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4192else
4193  echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195fi
4196
4197  OBJDUMP=$ac_ct_OBJDUMP
4198else
4199  OBJDUMP="$ac_cv_prog_OBJDUMP"
4200fi
4201
4202  ;;
4203
4204esac
4205
4206need_locks="$enable_libtool_lock"
4207
4208
4209ac_ext=c
4210ac_cpp='$CPP $CPPFLAGS'
4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4215echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4216# On Suns, sometimes $CPP names a directory.
4217if test -n "$CPP" && test -d "$CPP"; then
4218  CPP=
4219fi
4220if test -z "$CPP"; then
4221  if test "${ac_cv_prog_CPP+set}" = set; then
4222  echo $ECHO_N "(cached) $ECHO_C" >&6
4223else
4224      # Double quotes because CPP needs to be expanded
4225    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226    do
4227      ac_preproc_ok=false
4228for ac_c_preproc_warn_flag in '' yes
4229do
4230  # Use a header file that comes with gcc, so configuring glibc
4231  # with a fresh cross-compiler works.
4232  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233  # <limits.h> exists even on freestanding compilers.
4234  # On the NeXT, cc -E runs the code through the compiler's parser,
4235  # not just through cpp. "Syntax error" is here to catch this case.
4236  cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h.  */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h.  */
4242#ifdef __STDC__
4243# include <limits.h>
4244#else
4245# include <assert.h>
4246#endif
4247		     Syntax error
4248_ACEOF
4249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251  ac_status=$?
4252  grep -v '^ *+' conftest.er1 >conftest.err
4253  rm -f conftest.er1
4254  cat conftest.err >&5
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); } >/dev/null; then
4257  if test -s conftest.err; then
4258    ac_cpp_err=$ac_c_preproc_warn_flag
4259    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260  else
4261    ac_cpp_err=
4262  fi
4263else
4264  ac_cpp_err=yes
4265fi
4266if test -z "$ac_cpp_err"; then
4267  :
4268else
4269  echo "$as_me: failed program was:" >&5
4270sed 's/^/| /' conftest.$ac_ext >&5
4271
4272  # Broken: fails on valid input.
4273continue
4274fi
4275rm -f conftest.err conftest.$ac_ext
4276
4277  # OK, works on sane cases.  Now check whether non-existent headers
4278  # can be detected and how.
4279  cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h.  */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h.  */
4285#include <ac_nonexistent.h>
4286_ACEOF
4287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4288  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4289  ac_status=$?
4290  grep -v '^ *+' conftest.er1 >conftest.err
4291  rm -f conftest.er1
4292  cat conftest.err >&5
4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294  (exit $ac_status); } >/dev/null; then
4295  if test -s conftest.err; then
4296    ac_cpp_err=$ac_c_preproc_warn_flag
4297    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4298  else
4299    ac_cpp_err=
4300  fi
4301else
4302  ac_cpp_err=yes
4303fi
4304if test -z "$ac_cpp_err"; then
4305  # Broken: success on invalid input.
4306continue
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311  # Passes both tests.
4312ac_preproc_ok=:
4313break
4314fi
4315rm -f conftest.err conftest.$ac_ext
4316
4317done
4318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319rm -f conftest.err conftest.$ac_ext
4320if $ac_preproc_ok; then
4321  break
4322fi
4323
4324    done
4325    ac_cv_prog_CPP=$CPP
4326
4327fi
4328  CPP=$ac_cv_prog_CPP
4329else
4330  ac_cv_prog_CPP=$CPP
4331fi
4332echo "$as_me:$LINENO: result: $CPP" >&5
4333echo "${ECHO_T}$CPP" >&6
4334ac_preproc_ok=false
4335for ac_c_preproc_warn_flag in '' yes
4336do
4337  # Use a header file that comes with gcc, so configuring glibc
4338  # with a fresh cross-compiler works.
4339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340  # <limits.h> exists even on freestanding compilers.
4341  # On the NeXT, cc -E runs the code through the compiler's parser,
4342  # not just through cpp. "Syntax error" is here to catch this case.
4343  cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h.  */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h.  */
4349#ifdef __STDC__
4350# include <limits.h>
4351#else
4352# include <assert.h>
4353#endif
4354		     Syntax error
4355_ACEOF
4356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } >/dev/null; then
4364  if test -s conftest.err; then
4365    ac_cpp_err=$ac_c_preproc_warn_flag
4366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4367  else
4368    ac_cpp_err=
4369  fi
4370else
4371  ac_cpp_err=yes
4372fi
4373if test -z "$ac_cpp_err"; then
4374  :
4375else
4376  echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379  # Broken: fails on valid input.
4380continue
4381fi
4382rm -f conftest.err conftest.$ac_ext
4383
4384  # OK, works on sane cases.  Now check whether non-existent headers
4385  # can be detected and how.
4386  cat >conftest.$ac_ext <<_ACEOF
4387/* confdefs.h.  */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h.  */
4392#include <ac_nonexistent.h>
4393_ACEOF
4394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4395  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4396  ac_status=$?
4397  grep -v '^ *+' conftest.er1 >conftest.err
4398  rm -f conftest.er1
4399  cat conftest.err >&5
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); } >/dev/null; then
4402  if test -s conftest.err; then
4403    ac_cpp_err=$ac_c_preproc_warn_flag
4404    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4405  else
4406    ac_cpp_err=
4407  fi
4408else
4409  ac_cpp_err=yes
4410fi
4411if test -z "$ac_cpp_err"; then
4412  # Broken: success on invalid input.
4413continue
4414else
4415  echo "$as_me: failed program was:" >&5
4416sed 's/^/| /' conftest.$ac_ext >&5
4417
4418  # Passes both tests.
4419ac_preproc_ok=:
4420break
4421fi
4422rm -f conftest.err conftest.$ac_ext
4423
4424done
4425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426rm -f conftest.err conftest.$ac_ext
4427if $ac_preproc_ok; then
4428  :
4429else
4430  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4431See \`config.log' for more details." >&5
4432echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4433See \`config.log' for more details." >&2;}
4434   { (exit 1); exit 1; }; }
4435fi
4436
4437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443
4444echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4445echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4446if test "${ac_cv_header_stdc+set}" = set; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h.  */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h.  */
4455#include <stdlib.h>
4456#include <stdarg.h>
4457#include <string.h>
4458#include <float.h>
4459
4460int
4461main ()
4462{
4463
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470  (eval $ac_compile) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } &&
4477	 { ac_try='test -z "$ac_c_werror_flag"
4478			 || test ! -s conftest.err'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; } &&
4484	 { ac_try='test -s conftest.$ac_objext'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; }; then
4490  ac_cv_header_stdc=yes
4491else
4492  echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495ac_cv_header_stdc=no
4496fi
4497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499if test $ac_cv_header_stdc = yes; then
4500  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501  cat >conftest.$ac_ext <<_ACEOF
4502/* confdefs.h.  */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h.  */
4507#include <string.h>
4508
4509_ACEOF
4510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511  $EGREP "memchr" >/dev/null 2>&1; then
4512  :
4513else
4514  ac_cv_header_stdc=no
4515fi
4516rm -f conftest*
4517
4518fi
4519
4520if test $ac_cv_header_stdc = yes; then
4521  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522  cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528#include <stdlib.h>
4529
4530_ACEOF
4531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532  $EGREP "free" >/dev/null 2>&1; then
4533  :
4534else
4535  ac_cv_header_stdc=no
4536fi
4537rm -f conftest*
4538
4539fi
4540
4541if test $ac_cv_header_stdc = yes; then
4542  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543  if test "$cross_compiling" = yes; then
4544  :
4545else
4546  cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h.  */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h.  */
4552#include <ctype.h>
4553#if ((' ' & 0x0FF) == 0x020)
4554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556#else
4557# define ISLOWER(c) \
4558		   (('a' <= (c) && (c) <= 'i') \
4559		     || ('j' <= (c) && (c) <= 'r') \
4560		     || ('s' <= (c) && (c) <= 'z'))
4561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4562#endif
4563
4564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4565int
4566main ()
4567{
4568  int i;
4569  for (i = 0; i < 256; i++)
4570    if (XOR (islower (i), ISLOWER (i))
4571	|| toupper (i) != TOUPPER (i))
4572      exit(2);
4573  exit (0);
4574}
4575_ACEOF
4576rm -f conftest$ac_exeext
4577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4578  (eval $ac_link) 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; }; then
4587  :
4588else
4589  echo "$as_me: program exited with status $ac_status" >&5
4590echo "$as_me: failed program was:" >&5
4591sed 's/^/| /' conftest.$ac_ext >&5
4592
4593( exit $ac_status )
4594ac_cv_header_stdc=no
4595fi
4596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4597fi
4598fi
4599fi
4600echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4601echo "${ECHO_T}$ac_cv_header_stdc" >&6
4602if test $ac_cv_header_stdc = yes; then
4603
4604cat >>confdefs.h <<\_ACEOF
4605#define STDC_HEADERS 1
4606_ACEOF
4607
4608fi
4609
4610# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4621		  inttypes.h stdint.h unistd.h
4622do
4623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4624echo "$as_me:$LINENO: checking for $ac_header" >&5
4625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4626if eval "test \"\${$as_ac_Header+set}\" = set"; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629  cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h.  */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h.  */
4635$ac_includes_default
4636
4637#include <$ac_header>
4638_ACEOF
4639rm -f conftest.$ac_objext
4640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641  (eval $ac_compile) 2>conftest.er1
4642  ac_status=$?
4643  grep -v '^ *+' conftest.er1 >conftest.err
4644  rm -f conftest.er1
4645  cat conftest.err >&5
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); } &&
4648	 { ac_try='test -z "$ac_c_werror_flag"
4649			 || test ! -s conftest.err'
4650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651  (eval $ac_try) 2>&5
4652  ac_status=$?
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); }; } &&
4655	 { ac_try='test -s conftest.$ac_objext'
4656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657  (eval $ac_try) 2>&5
4658  ac_status=$?
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); }; }; then
4661  eval "$as_ac_Header=yes"
4662else
4663  echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666eval "$as_ac_Header=no"
4667fi
4668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669fi
4670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4672if test `eval echo '${'$as_ac_Header'}'` = yes; then
4673  cat >>confdefs.h <<_ACEOF
4674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675_ACEOF
4676
4677fi
4678
4679done
4680
4681
4682
4683for ac_header in dlfcn.h
4684do
4685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4686if eval "test \"\${$as_ac_Header+set}\" = set"; then
4687  echo "$as_me:$LINENO: checking for $ac_header" >&5
4688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691fi
4692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4694else
4695  # Is the header compilable?
4696echo "$as_me:$LINENO: checking $ac_header usability" >&5
4697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4698cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h.  */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h.  */
4704$ac_includes_default
4705#include <$ac_header>
4706_ACEOF
4707rm -f conftest.$ac_objext
4708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709  (eval $ac_compile) 2>conftest.er1
4710  ac_status=$?
4711  grep -v '^ *+' conftest.er1 >conftest.err
4712  rm -f conftest.er1
4713  cat conftest.err >&5
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); } &&
4716	 { ac_try='test -z "$ac_c_werror_flag"
4717			 || test ! -s conftest.err'
4718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719  (eval $ac_try) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }; } &&
4723	 { ac_try='test -s conftest.$ac_objext'
4724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725  (eval $ac_try) 2>&5
4726  ac_status=$?
4727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); }; }; then
4729  ac_header_compiler=yes
4730else
4731  echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734ac_header_compiler=no
4735fi
4736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4738echo "${ECHO_T}$ac_header_compiler" >&6
4739
4740# Is the header present?
4741echo "$as_me:$LINENO: checking $ac_header presence" >&5
4742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4743cat >conftest.$ac_ext <<_ACEOF
4744/* confdefs.h.  */
4745_ACEOF
4746cat confdefs.h >>conftest.$ac_ext
4747cat >>conftest.$ac_ext <<_ACEOF
4748/* end confdefs.h.  */
4749#include <$ac_header>
4750_ACEOF
4751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } >/dev/null; then
4759  if test -s conftest.err; then
4760    ac_cpp_err=$ac_c_preproc_warn_flag
4761    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4762  else
4763    ac_cpp_err=
4764  fi
4765else
4766  ac_cpp_err=yes
4767fi
4768if test -z "$ac_cpp_err"; then
4769  ac_header_preproc=yes
4770else
4771  echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774  ac_header_preproc=no
4775fi
4776rm -f conftest.err conftest.$ac_ext
4777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4778echo "${ECHO_T}$ac_header_preproc" >&6
4779
4780# So?  What about this header?
4781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4782  yes:no: )
4783    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4787    ac_header_preproc=yes
4788    ;;
4789  no:yes:* )
4790    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4792    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4793echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4794    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4796    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4797echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4798    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4800    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4802    (
4803      cat <<\_ASBOX
4804## ---------------------------------- ##
4805## Report this to bug-libtool@gnu.org ##
4806## ---------------------------------- ##
4807_ASBOX
4808    ) |
4809      sed "s/^/$as_me: WARNING:     /" >&2
4810    ;;
4811esac
4812echo "$as_me:$LINENO: checking for $ac_header" >&5
4813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815  echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817  eval "$as_ac_Header=\$ac_header_preproc"
4818fi
4819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4821
4822fi
4823if test `eval echo '${'$as_ac_Header'}'` = yes; then
4824  cat >>confdefs.h <<_ACEOF
4825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4826_ACEOF
4827
4828fi
4829
4830done
4831
4832ac_ext=cc
4833ac_cpp='$CXXCPP $CPPFLAGS'
4834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4837if test -n "$ac_tool_prefix"; then
4838  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4839  do
4840    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842echo "$as_me:$LINENO: checking for $ac_word" >&5
4843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844if test "${ac_cv_prog_CXX+set}" = set; then
4845  echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847  if test -n "$CXX"; then
4848  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853  IFS=$as_save_IFS
4854  test -z "$as_dir" && as_dir=.
4855  for ac_exec_ext in '' $ac_executable_extensions; do
4856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859    break 2
4860  fi
4861done
4862done
4863
4864fi
4865fi
4866CXX=$ac_cv_prog_CXX
4867if test -n "$CXX"; then
4868  echo "$as_me:$LINENO: result: $CXX" >&5
4869echo "${ECHO_T}$CXX" >&6
4870else
4871  echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873fi
4874
4875    test -n "$CXX" && break
4876  done
4877fi
4878if test -z "$CXX"; then
4879  ac_ct_CXX=$CXX
4880  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4881do
4882  # Extract the first word of "$ac_prog", so it can be a program name with args.
4883set dummy $ac_prog; ac_word=$2
4884echo "$as_me:$LINENO: checking for $ac_word" >&5
4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4887  echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889  if test -n "$ac_ct_CXX"; then
4890  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895  IFS=$as_save_IFS
4896  test -z "$as_dir" && as_dir=.
4897  for ac_exec_ext in '' $ac_executable_extensions; do
4898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899    ac_cv_prog_ac_ct_CXX="$ac_prog"
4900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901    break 2
4902  fi
4903done
4904done
4905
4906fi
4907fi
4908ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4909if test -n "$ac_ct_CXX"; then
4910  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4911echo "${ECHO_T}$ac_ct_CXX" >&6
4912else
4913  echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915fi
4916
4917  test -n "$ac_ct_CXX" && break
4918done
4919test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4920
4921  CXX=$ac_ct_CXX
4922fi
4923
4924
4925# Provide some information about the compiler.
4926echo "$as_me:$LINENO:" \
4927     "checking for C++ compiler version" >&5
4928ac_compiler=`set X $ac_compile; echo $2`
4929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4930  (eval $ac_compiler --version </dev/null >&5) 2>&5
4931  ac_status=$?
4932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933  (exit $ac_status); }
4934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4935  (eval $ac_compiler -v </dev/null >&5) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }
4939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4940  (eval $ac_compiler -V </dev/null >&5) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }
4944
4945echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4946echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4947if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  cat >conftest.$ac_ext <<_ACEOF
4951/* confdefs.h.  */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h.  */
4956
4957int
4958main ()
4959{
4960#ifndef __GNUC__
4961       choke me
4962#endif
4963
4964  ;
4965  return 0;
4966}
4967_ACEOF
4968rm -f conftest.$ac_objext
4969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970  (eval $ac_compile) 2>conftest.er1
4971  ac_status=$?
4972  grep -v '^ *+' conftest.er1 >conftest.err
4973  rm -f conftest.er1
4974  cat conftest.err >&5
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); } &&
4977	 { ac_try='test -z "$ac_cxx_werror_flag"
4978			 || test ! -s conftest.err'
4979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980  (eval $ac_try) 2>&5
4981  ac_status=$?
4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); }; } &&
4984	 { ac_try='test -s conftest.$ac_objext'
4985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986  (eval $ac_try) 2>&5
4987  ac_status=$?
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); }; }; then
4990  ac_compiler_gnu=yes
4991else
4992  echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
4995ac_compiler_gnu=no
4996fi
4997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4999
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5002echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5003GXX=`test $ac_compiler_gnu = yes && echo yes`
5004ac_test_CXXFLAGS=${CXXFLAGS+set}
5005ac_save_CXXFLAGS=$CXXFLAGS
5006CXXFLAGS="-g"
5007echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5008echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5009if test "${ac_cv_prog_cxx_g+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018
5019int
5020main ()
5021{
5022
5023  ;
5024  return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext
5028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029  (eval $ac_compile) 2>conftest.er1
5030  ac_status=$?
5031  grep -v '^ *+' conftest.er1 >conftest.err
5032  rm -f conftest.er1
5033  cat conftest.err >&5
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); } &&
5036	 { ac_try='test -z "$ac_cxx_werror_flag"
5037			 || test ! -s conftest.err'
5038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039  (eval $ac_try) 2>&5
5040  ac_status=$?
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); }; } &&
5043	 { ac_try='test -s conftest.$ac_objext'
5044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045  (eval $ac_try) 2>&5
5046  ac_status=$?
5047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); }; }; then
5049  ac_cv_prog_cxx_g=yes
5050else
5051  echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054ac_cv_prog_cxx_g=no
5055fi
5056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057fi
5058echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5059echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5060if test "$ac_test_CXXFLAGS" = set; then
5061  CXXFLAGS=$ac_save_CXXFLAGS
5062elif test $ac_cv_prog_cxx_g = yes; then
5063  if test "$GXX" = yes; then
5064    CXXFLAGS="-g -O2"
5065  else
5066    CXXFLAGS="-g"
5067  fi
5068else
5069  if test "$GXX" = yes; then
5070    CXXFLAGS="-O2"
5071  else
5072    CXXFLAGS=
5073  fi
5074fi
5075for ac_declaration in \
5076   '' \
5077   'extern "C" void std::exit (int) throw (); using std::exit;' \
5078   'extern "C" void std::exit (int); using std::exit;' \
5079   'extern "C" void exit (int) throw ();' \
5080   'extern "C" void exit (int);' \
5081   'void exit (int);'
5082do
5083  cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089$ac_declaration
5090#include <stdlib.h>
5091int
5092main ()
5093{
5094exit (42);
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101  (eval $ac_compile) 2>conftest.er1
5102  ac_status=$?
5103  grep -v '^ *+' conftest.er1 >conftest.err
5104  rm -f conftest.er1
5105  cat conftest.err >&5
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); } &&
5108	 { ac_try='test -z "$ac_cxx_werror_flag"
5109			 || test ! -s conftest.err'
5110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111  (eval $ac_try) 2>&5
5112  ac_status=$?
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); }; } &&
5115	 { ac_try='test -s conftest.$ac_objext'
5116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117  (eval $ac_try) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }; }; then
5121  :
5122else
5123  echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126continue
5127fi
5128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135$ac_declaration
5136int
5137main ()
5138{
5139exit (42);
5140  ;
5141  return 0;
5142}
5143_ACEOF
5144rm -f conftest.$ac_objext
5145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146  (eval $ac_compile) 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } &&
5153	 { ac_try='test -z "$ac_cxx_werror_flag"
5154			 || test ! -s conftest.err'
5155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156  (eval $ac_try) 2>&5
5157  ac_status=$?
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); }; } &&
5160	 { ac_try='test -s conftest.$ac_objext'
5161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162  (eval $ac_try) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; }; then
5166  break
5167else
5168  echo "$as_me: failed program was:" >&5
5169sed 's/^/| /' conftest.$ac_ext >&5
5170
5171fi
5172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173done
5174rm -f conftest*
5175if test -n "$ac_declaration"; then
5176  echo '#ifdef __cplusplus' >>confdefs.h
5177  echo $ac_declaration      >>confdefs.h
5178  echo '#endif'             >>confdefs.h
5179fi
5180
5181ac_ext=cc
5182ac_cpp='$CXXCPP $CPPFLAGS'
5183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186
5187depcc="$CXX"  am_compiler_list=
5188
5189echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5190echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5191if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5195  # We make a subdir and do the tests there.  Otherwise we can end up
5196  # making bogus files that we don't know about and never remove.  For
5197  # instance it was reported that on HP-UX the gcc test will end up
5198  # making a dummy file named `D' -- because `-MD' means `put the output
5199  # in D'.
5200  mkdir conftest.dir
5201  # Copy depcomp to subdir because otherwise we won't find it if we're
5202  # using a relative directory.
5203  cp "$am_depcomp" conftest.dir
5204  cd conftest.dir
5205  # We will build objects and dependencies in a subdirectory because
5206  # it helps to detect inapplicable dependency modes.  For instance
5207  # both Tru64's cc and ICC support -MD to output dependencies as a
5208  # side effect of compilation, but ICC will put the dependencies in
5209  # the current directory while Tru64 will put them in the object
5210  # directory.
5211  mkdir sub
5212
5213  am_cv_CXX_dependencies_compiler_type=none
5214  if test "$am_compiler_list" = ""; then
5215     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5216  fi
5217  for depmode in $am_compiler_list; do
5218    # Setup a source with many dependencies, because some compilers
5219    # like to wrap large dependency lists on column 80 (with \), and
5220    # we should not choose a depcomp mode which is confused by this.
5221    #
5222    # We need to recreate these files for each test, as the compiler may
5223    # overwrite some of them when testing with obscure command lines.
5224    # This happens at least with the AIX C compiler.
5225    : > sub/conftest.c
5226    for i in 1 2 3 4 5 6; do
5227      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5228      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5229      # Solaris 8's {/usr,}/bin/sh.
5230      touch sub/conftst$i.h
5231    done
5232    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5233
5234    case $depmode in
5235    nosideeffect)
5236      # after this tag, mechanisms are not by side-effect, so they'll
5237      # only be used when explicitly requested
5238      if test "x$enable_dependency_tracking" = xyes; then
5239	continue
5240      else
5241	break
5242      fi
5243      ;;
5244    none) break ;;
5245    esac
5246    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5247    # mode.  It turns out that the SunPro C++ compiler does not properly
5248    # handle `-M -o', and we need to detect this.
5249    if depmode=$depmode \
5250       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5251       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5252       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5253         >/dev/null 2>conftest.err &&
5254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5255       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5257      # icc doesn't choke on unknown options, it will just issue warnings
5258      # or remarks (even with -Werror).  So we grep stderr for any message
5259      # that says an option was ignored or not supported.
5260      # When given -MP, icc 7.0 and 7.1 complain thusly:
5261      #   icc: Command line warning: ignoring option '-M'; no argument required
5262      # The diagnosis changed in icc 8.0:
5263      #   icc: Command line remark: option '-MP' not supported
5264      if (grep 'ignoring option' conftest.err ||
5265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266        am_cv_CXX_dependencies_compiler_type=$depmode
5267        break
5268      fi
5269    fi
5270  done
5271
5272  cd ..
5273  rm -rf conftest.dir
5274else
5275  am_cv_CXX_dependencies_compiler_type=none
5276fi
5277
5278fi
5279echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5280echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5281CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5282
5283
5284
5285if
5286  test "x$enable_dependency_tracking" != xno \
5287  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5288  am__fastdepCXX_TRUE=
5289  am__fastdepCXX_FALSE='#'
5290else
5291  am__fastdepCXX_TRUE='#'
5292  am__fastdepCXX_FALSE=
5293fi
5294
5295
5296
5297
5298if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5299    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5300    (test "X$CXX" != "Xg++"))) ; then
5301  ac_ext=cc
5302ac_cpp='$CXXCPP $CPPFLAGS'
5303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5306echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5307echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5308if test -z "$CXXCPP"; then
5309  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312      # Double quotes because CXXCPP needs to be expanded
5313    for CXXCPP in "$CXX -E" "/lib/cpp"
5314    do
5315      ac_preproc_ok=false
5316for ac_cxx_preproc_warn_flag in '' yes
5317do
5318  # Use a header file that comes with gcc, so configuring glibc
5319  # with a fresh cross-compiler works.
5320  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321  # <limits.h> exists even on freestanding compilers.
5322  # On the NeXT, cc -E runs the code through the compiler's parser,
5323  # not just through cpp. "Syntax error" is here to catch this case.
5324  cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h.  */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h.  */
5330#ifdef __STDC__
5331# include <limits.h>
5332#else
5333# include <assert.h>
5334#endif
5335		     Syntax error
5336_ACEOF
5337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339  ac_status=$?
5340  grep -v '^ *+' conftest.er1 >conftest.err
5341  rm -f conftest.er1
5342  cat conftest.err >&5
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); } >/dev/null; then
5345  if test -s conftest.err; then
5346    ac_cpp_err=$ac_cxx_preproc_warn_flag
5347    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5348  else
5349    ac_cpp_err=
5350  fi
5351else
5352  ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
5355  :
5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360  # Broken: fails on valid input.
5361continue
5362fi
5363rm -f conftest.err conftest.$ac_ext
5364
5365  # OK, works on sane cases.  Now check whether non-existent headers
5366  # can be detected and how.
5367  cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h.  */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h.  */
5373#include <ac_nonexistent.h>
5374_ACEOF
5375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377  ac_status=$?
5378  grep -v '^ *+' conftest.er1 >conftest.err
5379  rm -f conftest.er1
5380  cat conftest.err >&5
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); } >/dev/null; then
5383  if test -s conftest.err; then
5384    ac_cpp_err=$ac_cxx_preproc_warn_flag
5385    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5386  else
5387    ac_cpp_err=
5388  fi
5389else
5390  ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
5393  # Broken: success on invalid input.
5394continue
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399  # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
5403rm -f conftest.err conftest.$ac_ext
5404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407rm -f conftest.err conftest.$ac_ext
5408if $ac_preproc_ok; then
5409  break
5410fi
5411
5412    done
5413    ac_cv_prog_CXXCPP=$CXXCPP
5414
5415fi
5416  CXXCPP=$ac_cv_prog_CXXCPP
5417else
5418  ac_cv_prog_CXXCPP=$CXXCPP
5419fi
5420echo "$as_me:$LINENO: result: $CXXCPP" >&5
5421echo "${ECHO_T}$CXXCPP" >&6
5422ac_preproc_ok=false
5423for ac_cxx_preproc_warn_flag in '' yes
5424do
5425  # Use a header file that comes with gcc, so configuring glibc
5426  # with a fresh cross-compiler works.
5427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428  # <limits.h> exists even on freestanding compilers.
5429  # On the NeXT, cc -E runs the code through the compiler's parser,
5430  # not just through cpp. "Syntax error" is here to catch this case.
5431  cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h.  */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h.  */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442		     Syntax error
5443_ACEOF
5444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } >/dev/null; then
5452  if test -s conftest.err; then
5453    ac_cpp_err=$ac_cxx_preproc_warn_flag
5454    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5455  else
5456    ac_cpp_err=
5457  fi
5458else
5459  ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
5462  :
5463else
5464  echo "$as_me: failed program was:" >&5
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467  # Broken: fails on valid input.
5468continue
5469fi
5470rm -f conftest.err conftest.$ac_ext
5471
5472  # OK, works on sane cases.  Now check whether non-existent headers
5473  # can be detected and how.
5474  cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h.  */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h.  */
5480#include <ac_nonexistent.h>
5481_ACEOF
5482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5484  ac_status=$?
5485  grep -v '^ *+' conftest.er1 >conftest.err
5486  rm -f conftest.er1
5487  cat conftest.err >&5
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } >/dev/null; then
5490  if test -s conftest.err; then
5491    ac_cpp_err=$ac_cxx_preproc_warn_flag
5492    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5493  else
5494    ac_cpp_err=
5495  fi
5496else
5497  ac_cpp_err=yes
5498fi
5499if test -z "$ac_cpp_err"; then
5500  # Broken: success on invalid input.
5501continue
5502else
5503  echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
5506  # Passes both tests.
5507ac_preproc_ok=:
5508break
5509fi
5510rm -f conftest.err conftest.$ac_ext
5511
5512done
5513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514rm -f conftest.err conftest.$ac_ext
5515if $ac_preproc_ok; then
5516  :
5517else
5518  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5519See \`config.log' for more details." >&5
5520echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5521See \`config.log' for more details." >&2;}
5522   { (exit 1); exit 1; }; }
5523fi
5524
5525ac_ext=cc
5526ac_cpp='$CXXCPP $CPPFLAGS'
5527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5530
5531fi
5532
5533
5534ac_ext=f
5535ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5536ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5538if test -n "$ac_tool_prefix"; then
5539  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5540  do
5541    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5543echo "$as_me:$LINENO: checking for $ac_word" >&5
5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545if test "${ac_cv_prog_F77+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  if test -n "$F77"; then
5549  ac_cv_prog_F77="$F77" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554  IFS=$as_save_IFS
5555  test -z "$as_dir" && as_dir=.
5556  for ac_exec_ext in '' $ac_executable_extensions; do
5557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560    break 2
5561  fi
5562done
5563done
5564
5565fi
5566fi
5567F77=$ac_cv_prog_F77
5568if test -n "$F77"; then
5569  echo "$as_me:$LINENO: result: $F77" >&5
5570echo "${ECHO_T}$F77" >&6
5571else
5572  echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
5576    test -n "$F77" && break
5577  done
5578fi
5579if test -z "$F77"; then
5580  ac_ct_F77=$F77
5581  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5582do
5583  # Extract the first word of "$ac_prog", so it can be a program name with args.
5584set dummy $ac_prog; ac_word=$2
5585echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  if test -n "$ac_ct_F77"; then
5591  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596  IFS=$as_save_IFS
5597  test -z "$as_dir" && as_dir=.
5598  for ac_exec_ext in '' $ac_executable_extensions; do
5599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600    ac_cv_prog_ac_ct_F77="$ac_prog"
5601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602    break 2
5603  fi
5604done
5605done
5606
5607fi
5608fi
5609ac_ct_F77=$ac_cv_prog_ac_ct_F77
5610if test -n "$ac_ct_F77"; then
5611  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5612echo "${ECHO_T}$ac_ct_F77" >&6
5613else
5614  echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
5616fi
5617
5618  test -n "$ac_ct_F77" && break
5619done
5620
5621  F77=$ac_ct_F77
5622fi
5623
5624
5625# Provide some information about the compiler.
5626echo "$as_me:5626:" \
5627     "checking for Fortran 77 compiler version" >&5
5628ac_compiler=`set X $ac_compile; echo $2`
5629{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5630  (eval $ac_compiler --version </dev/null >&5) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); }
5634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5635  (eval $ac_compiler -v </dev/null >&5) 2>&5
5636  ac_status=$?
5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638  (exit $ac_status); }
5639{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5640  (eval $ac_compiler -V </dev/null >&5) 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }
5644rm -f a.out
5645
5646# If we don't use `.F' as extension, the preprocessor is not run on the
5647# input file.  (Note that this only needs to work for GNU compilers.)
5648ac_save_ext=$ac_ext
5649ac_ext=F
5650echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5651echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5652if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  cat >conftest.$ac_ext <<_ACEOF
5656      program main
5657#ifndef __GNUC__
5658       choke me
5659#endif
5660
5661      end
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665  (eval $ac_compile) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } &&
5672	 { ac_try='test -z "$ac_f77_werror_flag"
5673			 || test ! -s conftest.err'
5674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675  (eval $ac_try) 2>&5
5676  ac_status=$?
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); }; } &&
5679	 { ac_try='test -s conftest.$ac_objext'
5680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681  (eval $ac_try) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }; }; then
5685  ac_compiler_gnu=yes
5686else
5687  echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
5690ac_compiler_gnu=no
5691fi
5692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5694
5695fi
5696echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5697echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5698ac_ext=$ac_save_ext
5699ac_test_FFLAGS=${FFLAGS+set}
5700ac_save_FFLAGS=$FFLAGS
5701FFLAGS=
5702echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5703echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5704if test "${ac_cv_prog_f77_g+set}" = set; then
5705  echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707  FFLAGS=-g
5708cat >conftest.$ac_ext <<_ACEOF
5709      program main
5710
5711      end
5712_ACEOF
5713rm -f conftest.$ac_objext
5714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715  (eval $ac_compile) 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } &&
5722	 { ac_try='test -z "$ac_f77_werror_flag"
5723			 || test ! -s conftest.err'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; } &&
5729	 { ac_try='test -s conftest.$ac_objext'
5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731  (eval $ac_try) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; }; then
5735  ac_cv_prog_f77_g=yes
5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740ac_cv_prog_f77_g=no
5741fi
5742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743
5744fi
5745echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5746echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5747if test "$ac_test_FFLAGS" = set; then
5748  FFLAGS=$ac_save_FFLAGS
5749elif test $ac_cv_prog_f77_g = yes; then
5750  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5751    FFLAGS="-g -O2"
5752  else
5753    FFLAGS="-g"
5754  fi
5755else
5756  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5757    FFLAGS="-O2"
5758  else
5759    FFLAGS=
5760  fi
5761fi
5762
5763G77=`test $ac_compiler_gnu = yes && echo yes`
5764ac_ext=c
5765ac_cpp='$CPP $CPPFLAGS'
5766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768ac_compiler_gnu=$ac_cv_c_compiler_gnu
5769
5770
5771
5772# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5773
5774# find the maximum length of command line arguments
5775echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5776echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5777if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5778  echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780    i=0
5781  teststring="ABCD"
5782
5783  case $build_os in
5784  msdosdjgpp*)
5785    # On DJGPP, this test can blow up pretty badly due to problems in libc
5786    # (any single argument exceeding 2000 bytes causes a buffer overrun
5787    # during glob expansion).  Even if it were fixed, the result of this
5788    # check would be larger than it should be.
5789    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5790    ;;
5791
5792  gnu*)
5793    # Under GNU Hurd, this test is not required because there is
5794    # no limit to the length of command line arguments.
5795    # Libtool will interpret -1 as no limit whatsoever
5796    lt_cv_sys_max_cmd_len=-1;
5797    ;;
5798
5799  cygwin* | mingw*)
5800    # On Win9x/ME, this test blows up -- it succeeds, but takes
5801    # about 5 minutes as the teststring grows exponentially.
5802    # Worse, since 9x/ME are not pre-emptively multitasking,
5803    # you end up with a "frozen" computer, even though with patience
5804    # the test eventually succeeds (with a max line length of 256k).
5805    # Instead, let's just punt: use the minimum linelength reported by
5806    # all of the supported platforms: 8192 (on NT/2K/XP).
5807    lt_cv_sys_max_cmd_len=8192;
5808    ;;
5809
5810  amigaos*)
5811    # On AmigaOS with pdksh, this test takes hours, literally.
5812    # So we just punt and use a minimum line length of 8192.
5813    lt_cv_sys_max_cmd_len=8192;
5814    ;;
5815
5816  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5817    # This has been around since 386BSD, at least.  Likely further.
5818    if test -x /sbin/sysctl; then
5819      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5820    elif test -x /usr/sbin/sysctl; then
5821      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5822    else
5823      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5824    fi
5825    # And add a safety zone
5826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828    ;;
5829  osf*)
5830    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5831    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5832    # nice to cause kernel panics so lets avoid the loop below.
5833    # First set a reasonable default.
5834    lt_cv_sys_max_cmd_len=16384
5835    #
5836    if test -x /sbin/sysconfig; then
5837      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5838        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5839      esac
5840    fi
5841    ;;
5842  *)
5843    # If test is not a shell built-in, we'll probably end up computing a
5844    # maximum length that is only half of the actual maximum length, but
5845    # we can't tell.
5846    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5848	       = "XX$teststring") >/dev/null 2>&1 &&
5849	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5850	    lt_cv_sys_max_cmd_len=$new_result &&
5851	    test $i != 17 # 1/2 MB should be enough
5852    do
5853      i=`expr $i + 1`
5854      teststring=$teststring$teststring
5855    done
5856    teststring=
5857    # Add a significant safety factor because C++ compilers can tack on massive
5858    # amounts of additional arguments before passing them to the linker.
5859    # It appears as though 1/2 is a usable value.
5860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5861    ;;
5862  esac
5863
5864fi
5865
5866if test -n $lt_cv_sys_max_cmd_len ; then
5867  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5868echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5869else
5870  echo "$as_me:$LINENO: result: none" >&5
5871echo "${ECHO_T}none" >&6
5872fi
5873
5874
5875
5876
5877# Check for command to grab the raw symbol name followed by C symbol from nm.
5878echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5879echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5880if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5881  echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883
5884# These are sane defaults that work on at least a few old systems.
5885# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5886
5887# Character class describing NM global symbol codes.
5888symcode='[BCDEGRST]'
5889
5890# Regexp to match symbols that can be accessed directly from C.
5891sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5892
5893# Transform an extracted symbol line into a proper C declaration
5894lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5895
5896# Transform an extracted symbol line into symbol name and symbol address
5897lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5898
5899# Define system-specific variables.
5900case $host_os in
5901aix*)
5902  symcode='[BCDT]'
5903  ;;
5904cygwin* | mingw* | pw32*)
5905  symcode='[ABCDGISTW]'
5906  ;;
5907hpux*) # Its linker distinguishes data from code symbols
5908  if test "$host_cpu" = ia64; then
5909    symcode='[ABCDEGRST]'
5910  fi
5911  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5912  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'"
5913  ;;
5914linux*)
5915  if test "$host_cpu" = ia64; then
5916    symcode='[ABCDGIRSTW]'
5917    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5918    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'"
5919  fi
5920  ;;
5921irix* | nonstopux*)
5922  symcode='[BCDEGRST]'
5923  ;;
5924osf*)
5925  symcode='[BCDEGQRST]'
5926  ;;
5927solaris* | sysv5*)
5928  symcode='[BDRT]'
5929  ;;
5930sysv4)
5931  symcode='[DFNSTU]'
5932  ;;
5933esac
5934
5935# Handle CRLF in mingw tool chain
5936opt_cr=
5937case $build_os in
5938mingw*)
5939  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5940  ;;
5941esac
5942
5943# If we're using GNU nm, then use its standard symbol codes.
5944case `$NM -V 2>&1` in
5945*GNU* | *'with BFD'*)
5946  symcode='[ABCDGIRSTW]' ;;
5947esac
5948
5949# Try without a prefix undercore, then with it.
5950for ac_symprfx in "" "_"; do
5951
5952  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5953  symxfrm="\\1 $ac_symprfx\\2 \\2"
5954
5955  # Write the raw and C identifiers.
5956  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5957
5958  # Check to see that the pipe works correctly.
5959  pipe_works=no
5960
5961  rm -f conftest*
5962  cat > conftest.$ac_ext <<EOF
5963#ifdef __cplusplus
5964extern "C" {
5965#endif
5966char nm_test_var;
5967void nm_test_func(){}
5968#ifdef __cplusplus
5969}
5970#endif
5971int main(){nm_test_var='a';nm_test_func();return(0);}
5972EOF
5973
5974  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975  (eval $ac_compile) 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; then
5979    # Now try to grab the symbols.
5980    nlist=conftest.nm
5981    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5982  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } && test -s "$nlist"; then
5986      # Try sorting and uniquifying the output.
5987      if sort "$nlist" | uniq > "$nlist"T; then
5988	mv -f "$nlist"T "$nlist"
5989      else
5990	rm -f "$nlist"T
5991      fi
5992
5993      # Make sure that we snagged all the symbols we need.
5994      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5995	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5996	  cat <<EOF > conftest.$ac_ext
5997#ifdef __cplusplus
5998extern "C" {
5999#endif
6000
6001EOF
6002	  # Now generate the symbol file.
6003	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6004
6005	  cat <<EOF >> conftest.$ac_ext
6006#if defined (__STDC__) && __STDC__
6007# define lt_ptr_t void *
6008#else
6009# define lt_ptr_t char *
6010# define const
6011#endif
6012
6013/* The mapping between symbol names and symbols. */
6014const struct {
6015  const char *name;
6016  lt_ptr_t address;
6017}
6018lt_preloaded_symbols[] =
6019{
6020EOF
6021	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6022	  cat <<\EOF >> conftest.$ac_ext
6023  {0, (lt_ptr_t) 0}
6024};
6025
6026#ifdef __cplusplus
6027}
6028#endif
6029EOF
6030	  # Now try linking the two files.
6031	  mv conftest.$ac_objext conftstm.$ac_objext
6032	  lt_save_LIBS="$LIBS"
6033	  lt_save_CFLAGS="$CFLAGS"
6034	  LIBS="conftstm.$ac_objext"
6035	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6036	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037  (eval $ac_link) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6041	    pipe_works=yes
6042	  fi
6043	  LIBS="$lt_save_LIBS"
6044	  CFLAGS="$lt_save_CFLAGS"
6045	else
6046	  echo "cannot find nm_test_func in $nlist" >&5
6047	fi
6048      else
6049	echo "cannot find nm_test_var in $nlist" >&5
6050      fi
6051    else
6052      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6053    fi
6054  else
6055    echo "$progname: failed program was:" >&5
6056    cat conftest.$ac_ext >&5
6057  fi
6058  rm -f conftest* conftst*
6059
6060  # Do not use the global_symbol_pipe unless it works.
6061  if test "$pipe_works" = yes; then
6062    break
6063  else
6064    lt_cv_sys_global_symbol_pipe=
6065  fi
6066done
6067
6068fi
6069
6070if test -z "$lt_cv_sys_global_symbol_pipe"; then
6071  lt_cv_sys_global_symbol_to_cdecl=
6072fi
6073if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6074  echo "$as_me:$LINENO: result: failed" >&5
6075echo "${ECHO_T}failed" >&6
6076else
6077  echo "$as_me:$LINENO: result: ok" >&5
6078echo "${ECHO_T}ok" >&6
6079fi
6080
6081echo "$as_me:$LINENO: checking for objdir" >&5
6082echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6083if test "${lt_cv_objdir+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  rm -f .libs 2>/dev/null
6087mkdir .libs 2>/dev/null
6088if test -d .libs; then
6089  lt_cv_objdir=.libs
6090else
6091  # MS-DOS does not allow filenames that begin with a dot.
6092  lt_cv_objdir=_libs
6093fi
6094rmdir .libs 2>/dev/null
6095fi
6096echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6097echo "${ECHO_T}$lt_cv_objdir" >&6
6098objdir=$lt_cv_objdir
6099
6100
6101
6102
6103
6104case $host_os in
6105aix3*)
6106  # AIX sometimes has problems with the GCC collect2 program.  For some
6107  # reason, if we set the COLLECT_NAMES environment variable, the problems
6108  # vanish in a puff of smoke.
6109  if test "X${COLLECT_NAMES+set}" != Xset; then
6110    COLLECT_NAMES=
6111    export COLLECT_NAMES
6112  fi
6113  ;;
6114esac
6115
6116# Sed substitution that helps us do robust quoting.  It backslashifies
6117# metacharacters that are still active within double-quoted strings.
6118Xsed='sed -e 1s/^X//'
6119sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6120
6121# Same as above, but do not quote variable references.
6122double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6123
6124# Sed substitution to delay expansion of an escaped shell variable in a
6125# double_quote_subst'ed string.
6126delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6127
6128# Sed substitution to avoid accidental globbing in evaled expressions
6129no_glob_subst='s/\*/\\\*/g'
6130
6131# Constants:
6132rm="rm -f"
6133
6134# Global variables:
6135default_ofile=libtool
6136can_build_shared=yes
6137
6138# All known linkers require a `.a' archive for static linking (except MSVC,
6139# which needs '.lib').
6140libext=a
6141ltmain="$ac_aux_dir/ltmain.sh"
6142ofile="$default_ofile"
6143with_gnu_ld="$lt_cv_prog_gnu_ld"
6144
6145if test -n "$ac_tool_prefix"; then
6146  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6147set dummy ${ac_tool_prefix}ar; ac_word=$2
6148echo "$as_me:$LINENO: checking for $ac_word" >&5
6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6150if test "${ac_cv_prog_AR+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  if test -n "$AR"; then
6154  ac_cv_prog_AR="$AR" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161  for ac_exec_ext in '' $ac_executable_extensions; do
6162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163    ac_cv_prog_AR="${ac_tool_prefix}ar"
6164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168done
6169
6170fi
6171fi
6172AR=$ac_cv_prog_AR
6173if test -n "$AR"; then
6174  echo "$as_me:$LINENO: result: $AR" >&5
6175echo "${ECHO_T}$AR" >&6
6176else
6177  echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179fi
6180
6181fi
6182if test -z "$ac_cv_prog_AR"; then
6183  ac_ct_AR=$AR
6184  # Extract the first word of "ar", so it can be a program name with args.
6185set dummy ar; ac_word=$2
6186echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6188if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6189  echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191  if test -n "$ac_ct_AR"; then
6192  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197  IFS=$as_save_IFS
6198  test -z "$as_dir" && as_dir=.
6199  for ac_exec_ext in '' $ac_executable_extensions; do
6200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201    ac_cv_prog_ac_ct_AR="ar"
6202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203    break 2
6204  fi
6205done
6206done
6207
6208  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6209fi
6210fi
6211ac_ct_AR=$ac_cv_prog_ac_ct_AR
6212if test -n "$ac_ct_AR"; then
6213  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6214echo "${ECHO_T}$ac_ct_AR" >&6
6215else
6216  echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218fi
6219
6220  AR=$ac_ct_AR
6221else
6222  AR="$ac_cv_prog_AR"
6223fi
6224
6225if test -n "$ac_tool_prefix"; then
6226  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6230if test "${ac_cv_prog_RANLIB+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  if test -n "$RANLIB"; then
6234  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241  for ac_exec_ext in '' $ac_executable_extensions; do
6242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248done
6249
6250fi
6251fi
6252RANLIB=$ac_cv_prog_RANLIB
6253if test -n "$RANLIB"; then
6254  echo "$as_me:$LINENO: result: $RANLIB" >&5
6255echo "${ECHO_T}$RANLIB" >&6
6256else
6257  echo "$as_me:$LINENO: result: no" >&5
6258echo "${ECHO_T}no" >&6
6259fi
6260
6261fi
6262if test -z "$ac_cv_prog_RANLIB"; then
6263  ac_ct_RANLIB=$RANLIB
6264  # Extract the first word of "ranlib", so it can be a program name with args.
6265set dummy ranlib; ac_word=$2
6266echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  if test -n "$ac_ct_RANLIB"; then
6272  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279  for ac_exec_ext in '' $ac_executable_extensions; do
6280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281    ac_cv_prog_ac_ct_RANLIB="ranlib"
6282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286done
6287
6288  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6289fi
6290fi
6291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6292if test -n "$ac_ct_RANLIB"; then
6293  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6294echo "${ECHO_T}$ac_ct_RANLIB" >&6
6295else
6296  echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
6300  RANLIB=$ac_ct_RANLIB
6301else
6302  RANLIB="$ac_cv_prog_RANLIB"
6303fi
6304
6305if test -n "$ac_tool_prefix"; then
6306  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307set dummy ${ac_tool_prefix}strip; ac_word=$2
6308echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310if test "${ac_cv_prog_STRIP+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  if test -n "$STRIP"; then
6314  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321  for ac_exec_ext in '' $ac_executable_extensions; do
6322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328done
6329
6330fi
6331fi
6332STRIP=$ac_cv_prog_STRIP
6333if test -n "$STRIP"; then
6334  echo "$as_me:$LINENO: result: $STRIP" >&5
6335echo "${ECHO_T}$STRIP" >&6
6336else
6337  echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339fi
6340
6341fi
6342if test -z "$ac_cv_prog_STRIP"; then
6343  ac_ct_STRIP=$STRIP
6344  # Extract the first word of "strip", so it can be a program name with args.
6345set dummy strip; ac_word=$2
6346echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6348if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6349  echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351  if test -n "$ac_ct_STRIP"; then
6352  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359  for ac_exec_ext in '' $ac_executable_extensions; do
6360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361    ac_cv_prog_ac_ct_STRIP="strip"
6362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366done
6367
6368  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6369fi
6370fi
6371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372if test -n "$ac_ct_STRIP"; then
6373  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6374echo "${ECHO_T}$ac_ct_STRIP" >&6
6375else
6376  echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378fi
6379
6380  STRIP=$ac_ct_STRIP
6381else
6382  STRIP="$ac_cv_prog_STRIP"
6383fi
6384
6385
6386old_CC="$CC"
6387old_CFLAGS="$CFLAGS"
6388
6389# Set sane defaults for various variables
6390test -z "$AR" && AR=ar
6391test -z "$AR_FLAGS" && AR_FLAGS=cru
6392test -z "$AS" && AS=as
6393test -z "$CC" && CC=cc
6394test -z "$LTCC" && LTCC=$CC
6395test -z "$DLLTOOL" && DLLTOOL=dlltool
6396test -z "$LD" && LD=ld
6397test -z "$LN_S" && LN_S="ln -s"
6398test -z "$MAGIC_CMD" && MAGIC_CMD=file
6399test -z "$NM" && NM=nm
6400test -z "$SED" && SED=sed
6401test -z "$OBJDUMP" && OBJDUMP=objdump
6402test -z "$RANLIB" && RANLIB=:
6403test -z "$STRIP" && STRIP=:
6404test -z "$ac_objext" && ac_objext=o
6405
6406# Determine commands to create old-style static archives.
6407old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6408old_postinstall_cmds='chmod 644 $oldlib'
6409old_postuninstall_cmds=
6410
6411if test -n "$RANLIB"; then
6412  case $host_os in
6413  openbsd*)
6414    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6415    ;;
6416  *)
6417    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6418    ;;
6419  esac
6420  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6421fi
6422
6423for cc_temp in $compiler""; do
6424  case $cc_temp in
6425    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6426    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6427    \-*) ;;
6428    *) break;;
6429  esac
6430done
6431cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6432
6433
6434# Only perform the check for file, if the check method requires it
6435case $deplibs_check_method in
6436file_magic*)
6437  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6438    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6439echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6440if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6441  echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443  case $MAGIC_CMD in
6444[\\/*] |  ?:[\\/]*)
6445  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6446  ;;
6447*)
6448  lt_save_MAGIC_CMD="$MAGIC_CMD"
6449  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6451  for ac_dir in $ac_dummy; do
6452    IFS="$lt_save_ifs"
6453    test -z "$ac_dir" && ac_dir=.
6454    if test -f $ac_dir/${ac_tool_prefix}file; then
6455      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6456      if test -n "$file_magic_test_file"; then
6457	case $deplibs_check_method in
6458	"file_magic "*)
6459	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6460	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6462	    $EGREP "$file_magic_regex" > /dev/null; then
6463	    :
6464	  else
6465	    cat <<EOF 1>&2
6466
6467*** Warning: the command libtool uses to detect shared libraries,
6468*** $file_magic_cmd, produces output that libtool cannot recognize.
6469*** The result is that libtool may fail to recognize shared libraries
6470*** as such.  This will affect the creation of libtool libraries that
6471*** depend on shared libraries, but programs linked with such libtool
6472*** libraries will work regardless of this problem.  Nevertheless, you
6473*** may want to report the problem to your system manager and/or to
6474*** bug-libtool@gnu.org
6475
6476EOF
6477	  fi ;;
6478	esac
6479      fi
6480      break
6481    fi
6482  done
6483  IFS="$lt_save_ifs"
6484  MAGIC_CMD="$lt_save_MAGIC_CMD"
6485  ;;
6486esac
6487fi
6488
6489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490if test -n "$MAGIC_CMD"; then
6491  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6492echo "${ECHO_T}$MAGIC_CMD" >&6
6493else
6494  echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6
6496fi
6497
6498if test -z "$lt_cv_path_MAGIC_CMD"; then
6499  if test -n "$ac_tool_prefix"; then
6500    echo "$as_me:$LINENO: checking for file" >&5
6501echo $ECHO_N "checking for file... $ECHO_C" >&6
6502if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6503  echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505  case $MAGIC_CMD in
6506[\\/*] |  ?:[\\/]*)
6507  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6508  ;;
6509*)
6510  lt_save_MAGIC_CMD="$MAGIC_CMD"
6511  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6512  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6513  for ac_dir in $ac_dummy; do
6514    IFS="$lt_save_ifs"
6515    test -z "$ac_dir" && ac_dir=.
6516    if test -f $ac_dir/file; then
6517      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6518      if test -n "$file_magic_test_file"; then
6519	case $deplibs_check_method in
6520	"file_magic "*)
6521	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6522	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6524	    $EGREP "$file_magic_regex" > /dev/null; then
6525	    :
6526	  else
6527	    cat <<EOF 1>&2
6528
6529*** Warning: the command libtool uses to detect shared libraries,
6530*** $file_magic_cmd, produces output that libtool cannot recognize.
6531*** The result is that libtool may fail to recognize shared libraries
6532*** as such.  This will affect the creation of libtool libraries that
6533*** depend on shared libraries, but programs linked with such libtool
6534*** libraries will work regardless of this problem.  Nevertheless, you
6535*** may want to report the problem to your system manager and/or to
6536*** bug-libtool@gnu.org
6537
6538EOF
6539	  fi ;;
6540	esac
6541      fi
6542      break
6543    fi
6544  done
6545  IFS="$lt_save_ifs"
6546  MAGIC_CMD="$lt_save_MAGIC_CMD"
6547  ;;
6548esac
6549fi
6550
6551MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6552if test -n "$MAGIC_CMD"; then
6553  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6554echo "${ECHO_T}$MAGIC_CMD" >&6
6555else
6556  echo "$as_me:$LINENO: result: no" >&5
6557echo "${ECHO_T}no" >&6
6558fi
6559
6560  else
6561    MAGIC_CMD=:
6562  fi
6563fi
6564
6565  fi
6566  ;;
6567esac
6568
6569enable_dlopen=yes
6570enable_win32_dll=yes
6571
6572# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6573if test "${enable_libtool_lock+set}" = set; then
6574  enableval="$enable_libtool_lock"
6575
6576fi;
6577test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6578
6579
6580# Check whether --with-pic or --without-pic was given.
6581if test "${with_pic+set}" = set; then
6582  withval="$with_pic"
6583  pic_mode="$withval"
6584else
6585  pic_mode=default
6586fi;
6587test -z "$pic_mode" && pic_mode=default
6588
6589# Use C for the default configuration in the libtool script
6590tagname=
6591lt_save_CC="$CC"
6592ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598
6599# Source file extension for C test sources.
6600ac_ext=c
6601
6602# Object file extension for compiled C test sources.
6603objext=o
6604objext=$objext
6605
6606# Code to be used in simple compile tests
6607lt_simple_compile_test_code="int some_variable = 0;\n"
6608
6609# Code to be used in simple link tests
6610lt_simple_link_test_code='int main(){return(0);}\n'
6611
6612
6613# If no C compiler was specified, use CC.
6614LTCC=${LTCC-"$CC"}
6615
6616# Allow CC to be a program name with arguments.
6617compiler=$CC
6618
6619
6620# save warnings/boilerplate of simple test code
6621ac_outfile=conftest.$ac_objext
6622printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6623eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6624_lt_compiler_boilerplate=`cat conftest.err`
6625$rm conftest*
6626
6627ac_outfile=conftest.$ac_objext
6628printf "$lt_simple_link_test_code" >conftest.$ac_ext
6629eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6630_lt_linker_boilerplate=`cat conftest.err`
6631$rm conftest*
6632
6633
6634#
6635# Check for any special shared library compilation flags.
6636#
6637lt_prog_cc_shlib=
6638if test "$GCC" = no; then
6639  case $host_os in
6640  sco3.2v5*)
6641    lt_prog_cc_shlib='-belf'
6642    ;;
6643  esac
6644fi
6645if test -n "$lt_prog_cc_shlib"; then
6646  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6647echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6648  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6649  else
6650    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6651echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6652    lt_cv_prog_cc_can_build_shared=no
6653  fi
6654fi
6655
6656
6657#
6658# Check to make sure the static flag actually works.
6659#
6660echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6661echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6662if test "${lt_prog_compiler_static_works+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665  lt_prog_compiler_static_works=no
6666   save_LDFLAGS="$LDFLAGS"
6667   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6668   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6669   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6670     # The linker can only warn and ignore the option if not recognized
6671     # So say no if there are warnings
6672     if test -s conftest.err; then
6673       # Append any errors to the config.log.
6674       cat conftest.err 1>&5
6675       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6676       $SED '/^$/d' conftest.err >conftest.er2
6677       if diff conftest.exp conftest.er2 >/dev/null; then
6678         lt_prog_compiler_static_works=yes
6679       fi
6680     else
6681       lt_prog_compiler_static_works=yes
6682     fi
6683   fi
6684   $rm conftest*
6685   LDFLAGS="$save_LDFLAGS"
6686
6687fi
6688echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6689echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6690
6691if test x"$lt_prog_compiler_static_works" = xyes; then
6692    :
6693else
6694    lt_prog_compiler_static=
6695fi
6696
6697
6698
6699## CAVEAT EMPTOR:
6700## There is no encapsulation within the following macros, do not change
6701## the running order or otherwise move them around unless you know exactly
6702## what you are doing...
6703
6704lt_prog_compiler_no_builtin_flag=
6705
6706if test "$GCC" = yes; then
6707  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6708
6709
6710echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6711echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6712if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  lt_cv_prog_compiler_rtti_exceptions=no
6716  ac_outfile=conftest.$ac_objext
6717   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6718   lt_compiler_flag="-fno-rtti -fno-exceptions"
6719   # Insert the option either (1) after the last *FLAGS variable, or
6720   # (2) before a word containing "conftest.", or (3) at the end.
6721   # Note that $ac_compile itself does not contain backslashes and begins
6722   # with a dollar sign (not a hyphen), so the echo should work correctly.
6723   # The option is referenced via a variable to avoid confusing sed.
6724   lt_compile=`echo "$ac_compile" | $SED \
6725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6727   -e 's:$: $lt_compiler_flag:'`
6728   (eval echo "\"\$as_me:6728: $lt_compile\"" >&5)
6729   (eval "$lt_compile" 2>conftest.err)
6730   ac_status=$?
6731   cat conftest.err >&5
6732   echo "$as_me:6732: \$? = $ac_status" >&5
6733   if (exit $ac_status) && test -s "$ac_outfile"; then
6734     # The compiler can only warn and ignore the option if not recognized
6735     # So say no if there are warnings other than the usual output.
6736     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6737     $SED '/^$/d' conftest.err >conftest.er2
6738     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6739       lt_cv_prog_compiler_rtti_exceptions=yes
6740     fi
6741   fi
6742   $rm conftest*
6743
6744fi
6745echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6746echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6747
6748if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6749    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6750else
6751    :
6752fi
6753
6754fi
6755
6756lt_prog_compiler_wl=
6757lt_prog_compiler_pic=
6758lt_prog_compiler_static=
6759
6760echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6761echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6762
6763  if test "$GCC" = yes; then
6764    lt_prog_compiler_wl='-Wl,'
6765    lt_prog_compiler_static='-static'
6766
6767    case $host_os in
6768      aix*)
6769      # All AIX code is PIC.
6770      if test "$host_cpu" = ia64; then
6771	# AIX 5 now supports IA64 processor
6772	lt_prog_compiler_static='-Bstatic'
6773      fi
6774      ;;
6775
6776    amigaos*)
6777      # FIXME: we need at least 68020 code to build shared libraries, but
6778      # adding the `-m68020' flag to GCC prevents building anything better,
6779      # like `-m68040'.
6780      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6781      ;;
6782
6783    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
6784    | osf5*)
6785      # PIC is the default for these OSes.
6786      ;;
6787
6788    mingw* | pw32* | os2*)
6789      # This hack is so that the source file can tell whether it is being
6790      # built for inclusion in a dll (and should export symbols for example).
6791      lt_prog_compiler_pic='-DDLL_EXPORT'
6792      ;;
6793
6794    darwin* | rhapsody*)
6795      # PIC is the default on this platform
6796      # Common symbols not allowed in MH_DYLIB files
6797      lt_prog_compiler_pic='-fno-common'
6798      ;;
6799
6800    msdosdjgpp*)
6801      # Just because we use GCC doesn't mean we suddenly get shared libraries
6802      # on systems that don't support them.
6803      lt_prog_compiler_can_build_shared=no
6804      enable_shared=no
6805      ;;
6806
6807    sysv4*MP*)
6808      if test -d /usr/nec; then
6809	lt_prog_compiler_pic=-Kconform_pic
6810      fi
6811      ;;
6812
6813    hpux*)
6814      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6815      # not for PA HP-UX.
6816      case $host_cpu in
6817      hppa*64*|ia64*)
6818	# +Z the default
6819	;;
6820      *)
6821	lt_prog_compiler_pic='-fPIC'
6822	;;
6823      esac
6824      ;;
6825
6826    *)
6827      lt_prog_compiler_pic='-fPIC'
6828      ;;
6829    esac
6830  else
6831    # PORTME Check for flag to pass linker flags through the system compiler.
6832    case $host_os in
6833    aix*)
6834      lt_prog_compiler_wl='-Wl,'
6835      if test "$host_cpu" = ia64; then
6836	# AIX 5 now supports IA64 processor
6837	lt_prog_compiler_static='-Bstatic'
6838      else
6839	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6840      fi
6841      ;;
6842      darwin*)
6843        # PIC is the default on this platform
6844        # Common symbols not allowed in MH_DYLIB files
6845       case $cc_basename in
6846         xlc*)
6847         lt_prog_compiler_pic='-qnocommon'
6848         lt_prog_compiler_wl='-Wl,'
6849         ;;
6850       esac
6851       ;;
6852
6853    mingw* | pw32* | os2*)
6854      # This hack is so that the source file can tell whether it is being
6855      # built for inclusion in a dll (and should export symbols for example).
6856      lt_prog_compiler_pic='-DDLL_EXPORT'
6857      ;;
6858
6859    hpux9* | hpux10* | hpux11*)
6860      lt_prog_compiler_wl='-Wl,'
6861      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6862      # not for PA HP-UX.
6863      case $host_cpu in
6864      hppa*64*|ia64*)
6865	# +Z the default
6866	;;
6867      *)
6868	lt_prog_compiler_pic='+Z'
6869	;;
6870      esac
6871      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6872      lt_prog_compiler_static='${wl}-a ${wl}archive'
6873      ;;
6874
6875    irix5* | irix6* | nonstopux*)
6876      lt_prog_compiler_wl='-Wl,'
6877      # PIC (with -KPIC) is the default.
6878      lt_prog_compiler_static='-non_shared'
6879      ;;
6880
6881    newsos6)
6882      lt_prog_compiler_pic='-KPIC'
6883      lt_prog_compiler_static='-Bstatic'
6884      ;;
6885
6886    linux*)
6887      case $cc_basename in
6888      icc* | ecc*)
6889	lt_prog_compiler_wl='-Wl,'
6890	lt_prog_compiler_pic='-KPIC'
6891	lt_prog_compiler_static='-static'
6892        ;;
6893      pgcc* | pgf77* | pgf90* | pgf95*)
6894        # Portland Group compilers (*not* the Pentium gcc compiler,
6895	# which looks to be a dead project)
6896	lt_prog_compiler_wl='-Wl,'
6897	lt_prog_compiler_pic='-fpic'
6898	lt_prog_compiler_static='-Bstatic'
6899        ;;
6900      ccc*)
6901        lt_prog_compiler_wl='-Wl,'
6902        # All Alpha code is PIC.
6903        lt_prog_compiler_static='-non_shared'
6904        ;;
6905      esac
6906      ;;
6907
6908    osf3* | osf4* | osf5*)
6909      lt_prog_compiler_wl='-Wl,'
6910      # All OSF/1 code is PIC.
6911      lt_prog_compiler_static='-non_shared'
6912      ;;
6913
6914    sco3.2v5*)
6915      lt_prog_compiler_pic='-Kpic'
6916      lt_prog_compiler_static='-dn'
6917      ;;
6918
6919    solaris*)
6920      lt_prog_compiler_pic='-KPIC'
6921      lt_prog_compiler_static='-Bstatic'
6922      case $cc_basename in
6923      f77* | f90* | f95*)
6924	lt_prog_compiler_wl='-Qoption ld ';;
6925      *)
6926	lt_prog_compiler_wl='-Wl,';;
6927      esac
6928      ;;
6929
6930    sunos4*)
6931      lt_prog_compiler_wl='-Qoption ld '
6932      lt_prog_compiler_pic='-PIC'
6933      lt_prog_compiler_static='-Bstatic'
6934      ;;
6935
6936    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6937      lt_prog_compiler_wl='-Wl,'
6938      lt_prog_compiler_pic='-KPIC'
6939      lt_prog_compiler_static='-Bstatic'
6940      ;;
6941
6942    sysv4*MP*)
6943      if test -d /usr/nec ;then
6944	lt_prog_compiler_pic='-Kconform_pic'
6945	lt_prog_compiler_static='-Bstatic'
6946      fi
6947      ;;
6948
6949    unicos*)
6950      lt_prog_compiler_wl='-Wl,'
6951      lt_prog_compiler_can_build_shared=no
6952      ;;
6953
6954    uts4*)
6955      lt_prog_compiler_pic='-pic'
6956      lt_prog_compiler_static='-Bstatic'
6957      ;;
6958
6959    *)
6960      lt_prog_compiler_can_build_shared=no
6961      ;;
6962    esac
6963  fi
6964
6965echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6966echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6967
6968#
6969# Check to make sure the PIC flag actually works.
6970#
6971if test -n "$lt_prog_compiler_pic"; then
6972
6973echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6974echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6975if test "${lt_prog_compiler_pic_works+set}" = set; then
6976  echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978  lt_prog_compiler_pic_works=no
6979  ac_outfile=conftest.$ac_objext
6980   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6981   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6982   # Insert the option either (1) after the last *FLAGS variable, or
6983   # (2) before a word containing "conftest.", or (3) at the end.
6984   # Note that $ac_compile itself does not contain backslashes and begins
6985   # with a dollar sign (not a hyphen), so the echo should work correctly.
6986   # The option is referenced via a variable to avoid confusing sed.
6987   lt_compile=`echo "$ac_compile" | $SED \
6988   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6989   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6990   -e 's:$: $lt_compiler_flag:'`
6991   (eval echo "\"\$as_me:6991: $lt_compile\"" >&5)
6992   (eval "$lt_compile" 2>conftest.err)
6993   ac_status=$?
6994   cat conftest.err >&5
6995   echo "$as_me:6995: \$? = $ac_status" >&5
6996   if (exit $ac_status) && test -s "$ac_outfile"; then
6997     # The compiler can only warn and ignore the option if not recognized
6998     # So say no if there are warnings other than the usual output.
6999     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7000     $SED '/^$/d' conftest.err >conftest.er2
7001     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7002       lt_prog_compiler_pic_works=yes
7003     fi
7004   fi
7005   $rm conftest*
7006
7007fi
7008echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7009echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7010
7011if test x"$lt_prog_compiler_pic_works" = xyes; then
7012    case $lt_prog_compiler_pic in
7013     "" | " "*) ;;
7014     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7015     esac
7016else
7017    lt_prog_compiler_pic=
7018     lt_prog_compiler_can_build_shared=no
7019fi
7020
7021fi
7022case $host_os in
7023  # For platforms which do not support PIC, -DPIC is meaningless:
7024  *djgpp*)
7025    lt_prog_compiler_pic=
7026    ;;
7027  *)
7028    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7029    ;;
7030esac
7031
7032echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7033echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7034if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  lt_cv_prog_compiler_c_o=no
7038   $rm -r conftest 2>/dev/null
7039   mkdir conftest
7040   cd conftest
7041   mkdir out
7042   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7043
7044   lt_compiler_flag="-o out/conftest2.$ac_objext"
7045   # Insert the option either (1) after the last *FLAGS variable, or
7046   # (2) before a word containing "conftest.", or (3) at the end.
7047   # Note that $ac_compile itself does not contain backslashes and begins
7048   # with a dollar sign (not a hyphen), so the echo should work correctly.
7049   lt_compile=`echo "$ac_compile" | $SED \
7050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7052   -e 's:$: $lt_compiler_flag:'`
7053   (eval echo "\"\$as_me:7053: $lt_compile\"" >&5)
7054   (eval "$lt_compile" 2>out/conftest.err)
7055   ac_status=$?
7056   cat out/conftest.err >&5
7057   echo "$as_me:7057: \$? = $ac_status" >&5
7058   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7059   then
7060     # The compiler can only warn and ignore the option if not recognized
7061     # So say no if there are warnings
7062     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7063     $SED '/^$/d' out/conftest.err >out/conftest.er2
7064     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7065       lt_cv_prog_compiler_c_o=yes
7066     fi
7067   fi
7068   chmod u+w . 2>&5
7069   $rm conftest*
7070   # SGI C++ compiler will create directory out/ii_files/ for
7071   # template instantiation
7072   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7073   $rm out/* && rmdir out
7074   cd ..
7075   rmdir conftest
7076   $rm conftest*
7077
7078fi
7079echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7080echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7081
7082
7083hard_links="nottested"
7084if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7085  # do not overwrite the value of need_locks provided by the user
7086  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7087echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7088  hard_links=yes
7089  $rm conftest*
7090  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7091  touch conftest.a
7092  ln conftest.a conftest.b 2>&5 || hard_links=no
7093  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7094  echo "$as_me:$LINENO: result: $hard_links" >&5
7095echo "${ECHO_T}$hard_links" >&6
7096  if test "$hard_links" = no; then
7097    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7098echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7099    need_locks=warn
7100  fi
7101else
7102  need_locks=no
7103fi
7104
7105echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7106echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7107
7108  runpath_var=
7109  allow_undefined_flag=
7110  enable_shared_with_static_runtimes=no
7111  archive_cmds=
7112  archive_expsym_cmds=
7113  old_archive_From_new_cmds=
7114  old_archive_from_expsyms_cmds=
7115  export_dynamic_flag_spec=
7116  whole_archive_flag_spec=
7117  thread_safe_flag_spec=
7118  hardcode_libdir_flag_spec=
7119  hardcode_libdir_flag_spec_ld=
7120  hardcode_libdir_separator=
7121  hardcode_direct=no
7122  hardcode_minus_L=no
7123  hardcode_shlibpath_var=unsupported
7124  link_all_deplibs=unknown
7125  hardcode_automatic=no
7126  module_cmds=
7127  module_expsym_cmds=
7128  always_export_symbols=no
7129  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7130  # include_expsyms should be a list of space-separated symbols to be *always*
7131  # included in the symbol list
7132  include_expsyms=
7133  # exclude_expsyms can be an extended regexp of symbols to exclude
7134  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7135  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7136  # as well as any symbol that contains `d'.
7137  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7138  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7139  # platforms (ab)use it in PIC code, but their linkers get confused if
7140  # the symbol is explicitly referenced.  Since portable code cannot
7141  # rely on this symbol name, it's probably fine to never include it in
7142  # preloaded symbol tables.
7143  extract_expsyms_cmds=
7144  # Just being paranoid about ensuring that cc_basename is set.
7145  for cc_temp in $compiler""; do
7146  case $cc_temp in
7147    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7148    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7149    \-*) ;;
7150    *) break;;
7151  esac
7152done
7153cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7154
7155  case $host_os in
7156  cygwin* | mingw* | pw32*)
7157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7158    # When not using gcc, we currently assume that we are using
7159    # Microsoft Visual C++.
7160    if test "$GCC" != yes; then
7161      with_gnu_ld=no
7162    fi
7163    ;;
7164  openbsd*)
7165    with_gnu_ld=no
7166    ;;
7167  esac
7168
7169  ld_shlibs=yes
7170  if test "$with_gnu_ld" = yes; then
7171    # If archive_cmds runs LD, not CC, wlarc should be empty
7172    wlarc='${wl}'
7173
7174    # Set some defaults for GNU ld with shared library support. These
7175    # are reset later if shared libraries are not supported. Putting them
7176    # here allows them to be overridden if necessary.
7177    runpath_var=LD_RUN_PATH
7178    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7179    export_dynamic_flag_spec='${wl}--export-dynamic'
7180    # ancient GNU ld didn't support --whole-archive et. al.
7181    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7182	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7183      else
7184  	whole_archive_flag_spec=
7185    fi
7186    supports_anon_versioning=no
7187    case `$LD -v 2>/dev/null` in
7188      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7189      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7190      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7191      *\ 2.11.*) ;; # other 2.11 versions
7192      *) supports_anon_versioning=yes ;;
7193    esac
7194
7195    # See if GNU ld supports shared libraries.
7196    case $host_os in
7197    aix3* | aix4* | aix5*)
7198      # On AIX/PPC, the GNU linker is very broken
7199      if test "$host_cpu" != ia64; then
7200	ld_shlibs=no
7201	cat <<EOF 1>&2
7202
7203*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7204*** to be unable to reliably create shared libraries on AIX.
7205*** Therefore, libtool is disabling shared libraries support.  If you
7206*** really care for shared libraries, you may want to modify your PATH
7207*** so that a non-GNU linker is found, and then restart.
7208
7209EOF
7210      fi
7211      ;;
7212
7213    amigaos*)
7214      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)'
7215      hardcode_libdir_flag_spec='-L$libdir'
7216      hardcode_minus_L=yes
7217
7218      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7219      # that the semantics of dynamic libraries on AmigaOS, at least up
7220      # to version 4, is to share data among multiple programs linked
7221      # with the same dynamic library.  Since this doesn't match the
7222      # behavior of shared libraries on other platforms, we can't use
7223      # them.
7224      ld_shlibs=no
7225      ;;
7226
7227    beos*)
7228      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7229	allow_undefined_flag=unsupported
7230	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7231	# support --undefined.  This deserves some investigation.  FIXME
7232	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7233      else
7234	ld_shlibs=no
7235      fi
7236      ;;
7237
7238    cygwin* | mingw* | pw32*)
7239      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7240      # as there is no search path for DLLs.
7241      hardcode_libdir_flag_spec='-L$libdir'
7242      allow_undefined_flag=unsupported
7243      always_export_symbols=no
7244      enable_shared_with_static_runtimes=yes
7245      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7246
7247      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7248        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7249	# If the export-symbols file already is a .def file (1st line
7250	# is EXPORTS), use it as is; otherwise, prepend...
7251	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7252	  cp $export_symbols $output_objdir/$soname.def;
7253	else
7254	  echo EXPORTS > $output_objdir/$soname.def;
7255	  cat $export_symbols >> $output_objdir/$soname.def;
7256	fi~
7257	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7258      else
7259	ld_shlibs=no
7260      fi
7261      ;;
7262
7263    haiku*)
7264      allow_undefined_flag=unsupported
7265      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7266      ;;
7267
7268    linux*)
7269      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7270	tmp_addflag=
7271	case $cc_basename,$host_cpu in
7272	pgcc*)				# Portland Group C compiler
7273	  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'
7274	  tmp_addflag=' $pic_flag'
7275	  ;;
7276	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7277	  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'
7278	  tmp_addflag=' $pic_flag -Mnomain' ;;
7279	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7280	  tmp_addflag=' -i_dynamic' ;;
7281	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7282	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7283	ifc* | ifort*)			# Intel Fortran compiler
7284	  tmp_addflag=' -nofor_main' ;;
7285	esac
7286	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7287
7288	if test $supports_anon_versioning = yes; then
7289	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7290  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7291  $echo "local: *; };" >> $output_objdir/$libname.ver~
7292	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7293	fi
7294      else
7295	ld_shlibs=no
7296      fi
7297      ;;
7298
7299    netbsd*)
7300      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7301	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7302	wlarc=
7303      else
7304	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7305	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7306      fi
7307      ;;
7308
7309    solaris* | sysv5*)
7310      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7311	ld_shlibs=no
7312	cat <<EOF 1>&2
7313
7314*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7315*** create shared libraries on Solaris systems.  Therefore, libtool
7316*** is disabling shared libraries support.  We urge you to upgrade GNU
7317*** binutils to release 2.9.1 or newer.  Another option is to modify
7318*** your PATH or compiler configuration so that the native linker is
7319*** used, and then restart.
7320
7321EOF
7322      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7323	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7324	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7325      else
7326	ld_shlibs=no
7327      fi
7328      ;;
7329
7330    sunos4*)
7331      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7332      wlarc=
7333      hardcode_direct=yes
7334      hardcode_shlibpath_var=no
7335      ;;
7336
7337    *)
7338      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7339	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7340	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7341      else
7342	ld_shlibs=no
7343      fi
7344      ;;
7345    esac
7346
7347    if test "$ld_shlibs" = no; then
7348      runpath_var=
7349      hardcode_libdir_flag_spec=
7350      export_dynamic_flag_spec=
7351      whole_archive_flag_spec=
7352    fi
7353  else
7354    # PORTME fill in a description of your system's linker (not GNU ld)
7355    case $host_os in
7356    aix3*)
7357      allow_undefined_flag=unsupported
7358      always_export_symbols=yes
7359      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'
7360      # Note: this linker hardcodes the directories in LIBPATH if there
7361      # are no directories specified by -L.
7362      hardcode_minus_L=yes
7363      if test "$GCC" = yes && test -z "$link_static_flag"; then
7364	# Neither direct hardcoding nor static linking is supported with a
7365	# broken collect2.
7366	hardcode_direct=unsupported
7367      fi
7368      ;;
7369
7370    aix4* | aix5*)
7371      if test "$host_cpu" = ia64; then
7372	# On IA64, the linker does run time linking by default, so we don't
7373	# have to do anything special.
7374	aix_use_runtimelinking=no
7375	exp_sym_flag='-Bexport'
7376	no_entry_flag=""
7377      else
7378	# If we're using GNU nm, then we don't want the "-C" option.
7379	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7380	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7381	  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'
7382	else
7383	  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'
7384	fi
7385	aix_use_runtimelinking=no
7386
7387	# Test if we are trying to use run time linking or normal
7388	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7389	# need to do runtime linking.
7390	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7391	  for ld_flag in $LDFLAGS; do
7392  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7393  	    aix_use_runtimelinking=yes
7394  	    break
7395  	  fi
7396	  done
7397	esac
7398
7399	exp_sym_flag='-bexport'
7400	no_entry_flag='-bnoentry'
7401      fi
7402
7403      # When large executables or shared objects are built, AIX ld can
7404      # have problems creating the table of contents.  If linking a library
7405      # or program results in "error TOC overflow" add -mminimal-toc to
7406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7408
7409      archive_cmds=''
7410      hardcode_direct=yes
7411      hardcode_libdir_separator=':'
7412      link_all_deplibs=yes
7413
7414      if test "$GCC" = yes; then
7415	case $host_os in aix4.[012]|aix4.[012].*)
7416	# We only want to do this on AIX 4.2 and lower, the check
7417	# below for broken collect2 doesn't work under 4.3+
7418	  collect2name=`${CC} -print-prog-name=collect2`
7419	  if test -f "$collect2name" && \
7420  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7421	  then
7422  	  # We have reworked collect2
7423  	  hardcode_direct=yes
7424	  else
7425  	  # We have old collect2
7426  	  hardcode_direct=unsupported
7427  	  # It fails to find uninstalled libraries when the uninstalled
7428  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7429  	  # to unsupported forces relinking
7430  	  hardcode_minus_L=yes
7431  	  hardcode_libdir_flag_spec='-L$libdir'
7432  	  hardcode_libdir_separator=
7433	  fi
7434	esac
7435	shared_flag='-shared'
7436	if test "$aix_use_runtimelinking" = yes; then
7437	  shared_flag="$shared_flag "'${wl}-G'
7438	fi
7439      else
7440	# not using gcc
7441	if test "$host_cpu" = ia64; then
7442  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7443  	# chokes on -Wl,-G. The following line is correct:
7444	  shared_flag='-G'
7445	else
7446  	if test "$aix_use_runtimelinking" = yes; then
7447	    shared_flag='${wl}-G'
7448	  else
7449	    shared_flag='${wl}-bM:SRE'
7450  	fi
7451	fi
7452      fi
7453
7454      # It seems that -bexpall does not export symbols beginning with
7455      # underscore (_), so it is better to generate a list of symbols to export.
7456      always_export_symbols=yes
7457      if test "$aix_use_runtimelinking" = yes; then
7458	# Warning - without using the other runtime loading flags (-brtl),
7459	# -berok will link without error, but may produce a broken library.
7460	allow_undefined_flag='-berok'
7461       # Determine the default libpath from the value encoded in an empty executable.
7462       cat >conftest.$ac_ext <<_ACEOF
7463/* confdefs.h.  */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h.  */
7468
7469int
7470main ()
7471{
7472
7473  ;
7474  return 0;
7475}
7476_ACEOF
7477rm -f conftest.$ac_objext conftest$ac_exeext
7478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479  (eval $ac_link) 2>conftest.er1
7480  ac_status=$?
7481  grep -v '^ *+' conftest.er1 >conftest.err
7482  rm -f conftest.er1
7483  cat conftest.err >&5
7484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485  (exit $ac_status); } &&
7486	 { ac_try='test -z "$ac_c_werror_flag"
7487			 || test ! -s conftest.err'
7488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489  (eval $ac_try) 2>&5
7490  ac_status=$?
7491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492  (exit $ac_status); }; } &&
7493	 { ac_try='test -s conftest$ac_exeext'
7494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495  (eval $ac_try) 2>&5
7496  ac_status=$?
7497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498  (exit $ac_status); }; }; then
7499
7500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7501}'`
7502# Check for a 64-bit object if we didn't find anything.
7503if 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; }
7504}'`; fi
7505else
7506  echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509fi
7510rm -f conftest.err conftest.$ac_objext \
7511      conftest$ac_exeext conftest.$ac_ext
7512if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7513
7514       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7515	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7516       else
7517	if test "$host_cpu" = ia64; then
7518	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7519	  allow_undefined_flag="-z nodefs"
7520	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7521	else
7522	 # Determine the default libpath from the value encoded in an empty executable.
7523	 cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h.  */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h.  */
7529
7530int
7531main ()
7532{
7533
7534  ;
7535  return 0;
7536}
7537_ACEOF
7538rm -f conftest.$ac_objext conftest$ac_exeext
7539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540  (eval $ac_link) 2>conftest.er1
7541  ac_status=$?
7542  grep -v '^ *+' conftest.er1 >conftest.err
7543  rm -f conftest.er1
7544  cat conftest.err >&5
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); } &&
7547	 { ac_try='test -z "$ac_c_werror_flag"
7548			 || test ! -s conftest.err'
7549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550  (eval $ac_try) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); }; } &&
7554	 { ac_try='test -s conftest$ac_exeext'
7555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556  (eval $ac_try) 2>&5
7557  ac_status=$?
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); }; }; then
7560
7561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7562}'`
7563# Check for a 64-bit object if we didn't find anything.
7564if 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; }
7565}'`; fi
7566else
7567  echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570fi
7571rm -f conftest.err conftest.$ac_objext \
7572      conftest$ac_exeext conftest.$ac_ext
7573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7574
7575	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7576	  # Warning - without using the other run time loading flags,
7577	  # -berok will link without error, but may produce a broken library.
7578	  no_undefined_flag=' ${wl}-bernotok'
7579	  allow_undefined_flag=' ${wl}-berok'
7580	  # -bexpall does not export symbols beginning with underscore (_)
7581	  always_export_symbols=yes
7582	  # Exported symbols can be pulled into shared objects from archives
7583	  whole_archive_flag_spec=' '
7584	  archive_cmds_need_lc=yes
7585	  # This is similar to how AIX traditionally builds its shared libraries.
7586	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7587	fi
7588      fi
7589      ;;
7590
7591    amigaos*)
7592      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)'
7593      hardcode_libdir_flag_spec='-L$libdir'
7594      hardcode_minus_L=yes
7595      # see comment about different semantics on the GNU ld section
7596      ld_shlibs=no
7597      ;;
7598
7599    bsdi[45]*)
7600      export_dynamic_flag_spec=-rdynamic
7601      ;;
7602
7603    cygwin* | mingw* | pw32*)
7604      # When not using gcc, we currently assume that we are using
7605      # Microsoft Visual C++.
7606      # hardcode_libdir_flag_spec is actually meaningless, as there is
7607      # no search path for DLLs.
7608      hardcode_libdir_flag_spec=' '
7609      allow_undefined_flag=unsupported
7610      # Tell ltmain to make .lib files, not .a files.
7611      libext=lib
7612      # Tell ltmain to make .dll files, not .so files.
7613      shrext_cmds=".dll"
7614      # FIXME: Setting linknames here is a bad hack.
7615      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7616      # The linker will automatically build a .lib file if we build a DLL.
7617      old_archive_From_new_cmds='true'
7618      # FIXME: Should let the user specify the lib program.
7619      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7620      fix_srcfile_path='`cygpath -w "$srcfile"`'
7621      enable_shared_with_static_runtimes=yes
7622      ;;
7623
7624    darwin* | rhapsody*)
7625      case $host_os in
7626        rhapsody* | darwin1.[012])
7627         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7628         ;;
7629       *) # Darwin 1.3 on
7630         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7631           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7632         else
7633           case ${MACOSX_DEPLOYMENT_TARGET} in
7634             10.[012])
7635               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7636               ;;
7637             10.*)
7638               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7639               ;;
7640           esac
7641         fi
7642         ;;
7643      esac
7644      archive_cmds_need_lc=no
7645      hardcode_direct=no
7646      hardcode_automatic=yes
7647      hardcode_shlibpath_var=unsupported
7648      whole_archive_flag_spec=''
7649      link_all_deplibs=yes
7650    if test "$GCC" = yes ; then
7651    	output_verbose_link_cmd='echo'
7652        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7653      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7654      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7655      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}'
7656      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}'
7657    else
7658      case $cc_basename in
7659        xlc*)
7660         output_verbose_link_cmd='echo'
7661         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7662         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7663          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7664         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}'
7665          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}'
7666          ;;
7667       *)
7668         ld_shlibs=no
7669          ;;
7670      esac
7671    fi
7672      ;;
7673
7674    dgux*)
7675      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7676      hardcode_libdir_flag_spec='-L$libdir'
7677      hardcode_shlibpath_var=no
7678      ;;
7679
7680    freebsd1*)
7681      ld_shlibs=no
7682      ;;
7683
7684    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7685    # support.  Future versions do this automatically, but an explicit c++rt0.o
7686    # does not break anything, and helps significantly (at the cost of a little
7687    # extra space).
7688    freebsd2.2*)
7689      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7690      hardcode_libdir_flag_spec='-R$libdir'
7691      hardcode_direct=yes
7692      hardcode_shlibpath_var=no
7693      ;;
7694
7695    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7696    freebsd2*)
7697      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7698      hardcode_direct=yes
7699      hardcode_minus_L=yes
7700      hardcode_shlibpath_var=no
7701      ;;
7702
7703    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7704    freebsd* | kfreebsd*-gnu | dragonfly*)
7705      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7706      hardcode_libdir_flag_spec='-R$libdir'
7707      hardcode_direct=yes
7708      hardcode_shlibpath_var=no
7709      ;;
7710
7711    hpux9*)
7712      if test "$GCC" = yes; then
7713	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'
7714      else
7715	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'
7716      fi
7717      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7718      hardcode_libdir_separator=:
7719      hardcode_direct=yes
7720
7721      # hardcode_minus_L: Not really in the search PATH,
7722      # but as the default location of the library.
7723      hardcode_minus_L=yes
7724      export_dynamic_flag_spec='${wl}-E'
7725      ;;
7726
7727    hpux10* | hpux11*)
7728      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7729	case $host_cpu in
7730	hppa*64*|ia64*)
7731	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7732	  ;;
7733	*)
7734	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7735	  ;;
7736	esac
7737      else
7738	case $host_cpu in
7739	hppa*64*|ia64*)
7740	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7741	  ;;
7742	*)
7743	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7744	  ;;
7745	esac
7746      fi
7747      if test "$with_gnu_ld" = no; then
7748	case $host_cpu in
7749	hppa*64*)
7750	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7751	  hardcode_libdir_flag_spec_ld='+b $libdir'
7752	  hardcode_libdir_separator=:
7753	  hardcode_direct=no
7754	  hardcode_shlibpath_var=no
7755	  ;;
7756	ia64*)
7757	  hardcode_libdir_flag_spec='-L$libdir'
7758	  hardcode_direct=no
7759	  hardcode_shlibpath_var=no
7760
7761	  # hardcode_minus_L: Not really in the search PATH,
7762	  # but as the default location of the library.
7763	  hardcode_minus_L=yes
7764	  ;;
7765	*)
7766	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7767	  hardcode_libdir_separator=:
7768	  hardcode_direct=yes
7769	  export_dynamic_flag_spec='${wl}-E'
7770
7771	  # hardcode_minus_L: Not really in the search PATH,
7772	  # but as the default location of the library.
7773	  hardcode_minus_L=yes
7774	  ;;
7775	esac
7776      fi
7777      ;;
7778
7779    irix5* | irix6* | nonstopux*)
7780      if test "$GCC" = yes; then
7781	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'
7782      else
7783	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'
7784	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7785      fi
7786      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787      hardcode_libdir_separator=:
7788      link_all_deplibs=yes
7789      ;;
7790
7791    netbsd*)
7792      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7793	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7794      else
7795	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7796      fi
7797      hardcode_libdir_flag_spec='-R$libdir'
7798      hardcode_direct=yes
7799      hardcode_shlibpath_var=no
7800      ;;
7801
7802    newsos6)
7803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7804      hardcode_direct=yes
7805      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7806      hardcode_libdir_separator=:
7807      hardcode_shlibpath_var=no
7808      ;;
7809
7810    openbsd*)
7811      hardcode_direct=yes
7812      hardcode_shlibpath_var=no
7813      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7814	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7815	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7816	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7817	export_dynamic_flag_spec='${wl}-E'
7818      else
7819       case $host_os in
7820	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7821	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7822	   hardcode_libdir_flag_spec='-R$libdir'
7823	   ;;
7824	 *)
7825	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7826	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7827	   ;;
7828       esac
7829      fi
7830      ;;
7831
7832    os2*)
7833      hardcode_libdir_flag_spec='-L$libdir'
7834      hardcode_minus_L=yes
7835      allow_undefined_flag=unsupported
7836      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'
7837      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7838      ;;
7839
7840    osf3*)
7841      if test "$GCC" = yes; then
7842	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7843	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'
7844      else
7845	allow_undefined_flag=' -expect_unresolved \*'
7846	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'
7847      fi
7848      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7849      hardcode_libdir_separator=:
7850      ;;
7851
7852    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7853      if test "$GCC" = yes; then
7854	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855	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'
7856	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7857      else
7858	allow_undefined_flag=' -expect_unresolved \*'
7859	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'
7860	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7861	$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'
7862
7863	# Both c and cxx compiler support -rpath directly
7864	hardcode_libdir_flag_spec='-rpath $libdir'
7865      fi
7866      hardcode_libdir_separator=:
7867      ;;
7868
7869    sco3.2v5*)
7870      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7871      hardcode_shlibpath_var=no
7872      export_dynamic_flag_spec='${wl}-Bexport'
7873      runpath_var=LD_RUN_PATH
7874      hardcode_runpath_var=yes
7875      ;;
7876
7877    solaris*)
7878      no_undefined_flag=' -z text'
7879      if test "$GCC" = yes; then
7880	wlarc='${wl}'
7881	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7882	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7883	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7884      else
7885	wlarc=''
7886	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7887	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7888  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7889      fi
7890      hardcode_libdir_flag_spec='-R$libdir'
7891      hardcode_shlibpath_var=no
7892      case $host_os in
7893      solaris2.[0-5] | solaris2.[0-5].*) ;;
7894      *)
7895 	# The compiler driver will combine linker options so we
7896 	# cannot just pass the convience library names through
7897 	# without $wl, iff we do not link with $LD.
7898 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7899 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7900 	case $wlarc in
7901 	'')
7902 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7903 	*)
7904 	  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' ;;
7905 	esac ;;
7906      esac
7907      link_all_deplibs=yes
7908      ;;
7909
7910    sunos4*)
7911      if test "x$host_vendor" = xsequent; then
7912	# Use $CC to link under sequent, because it throws in some extra .o
7913	# files that make .init and .fini sections work.
7914	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7915      else
7916	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7917      fi
7918      hardcode_libdir_flag_spec='-L$libdir'
7919      hardcode_direct=yes
7920      hardcode_minus_L=yes
7921      hardcode_shlibpath_var=no
7922      ;;
7923
7924    sysv4)
7925      case $host_vendor in
7926	sni)
7927	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928	  hardcode_direct=yes # is this really true???
7929	;;
7930	siemens)
7931	  ## LD is ld it makes a PLAMLIB
7932	  ## CC just makes a GrossModule.
7933	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7934	  reload_cmds='$CC -r -o $output$reload_objs'
7935	  hardcode_direct=no
7936        ;;
7937	motorola)
7938	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7940	;;
7941      esac
7942      runpath_var='LD_RUN_PATH'
7943      hardcode_shlibpath_var=no
7944      ;;
7945
7946    sysv4.3*)
7947      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948      hardcode_shlibpath_var=no
7949      export_dynamic_flag_spec='-Bexport'
7950      ;;
7951
7952    sysv4*MP*)
7953      if test -d /usr/nec; then
7954	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955	hardcode_shlibpath_var=no
7956	runpath_var=LD_RUN_PATH
7957	hardcode_runpath_var=yes
7958	ld_shlibs=yes
7959      fi
7960      ;;
7961
7962    sysv4.2uw2*)
7963      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7964      hardcode_direct=yes
7965      hardcode_minus_L=no
7966      hardcode_shlibpath_var=no
7967      hardcode_runpath_var=yes
7968      runpath_var=LD_RUN_PATH
7969      ;;
7970
7971   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7972      no_undefined_flag='${wl}-z ${wl}text'
7973      if test "$GCC" = yes; then
7974	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7975      else
7976	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7977      fi
7978      runpath_var='LD_RUN_PATH'
7979      hardcode_shlibpath_var=no
7980      ;;
7981
7982    sysv5*)
7983      no_undefined_flag=' -z text'
7984      # $CC -shared without GNU ld will not create a library from C++
7985      # object files and a static libstdc++, better avoid it by now
7986      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7988  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7989      hardcode_libdir_flag_spec=
7990      hardcode_shlibpath_var=no
7991      runpath_var='LD_RUN_PATH'
7992      ;;
7993
7994    uts4*)
7995      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7996      hardcode_libdir_flag_spec='-L$libdir'
7997      hardcode_shlibpath_var=no
7998      ;;
7999
8000    *)
8001      ld_shlibs=no
8002      ;;
8003    esac
8004  fi
8005
8006echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8007echo "${ECHO_T}$ld_shlibs" >&6
8008test "$ld_shlibs" = no && can_build_shared=no
8009
8010variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8011if test "$GCC" = yes; then
8012  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8013fi
8014
8015#
8016# Do we need to explicitly link libc?
8017#
8018case "x$archive_cmds_need_lc" in
8019x|xyes)
8020  # Assume -lc should be added
8021  archive_cmds_need_lc=yes
8022
8023  if test "$enable_shared" = yes && test "$GCC" = yes; then
8024    case $archive_cmds in
8025    *'~'*)
8026      # FIXME: we may have to deal with multi-command sequences.
8027      ;;
8028    '$CC '*)
8029      # Test whether the compiler implicitly links with -lc since on some
8030      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8031      # to ld, don't add -lc before -lgcc.
8032      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8033echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8034      $rm conftest*
8035      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8036
8037      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038  (eval $ac_compile) 2>&5
8039  ac_status=$?
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); } 2>conftest.err; then
8042        soname=conftest
8043        lib=conftest
8044        libobjs=conftest.$ac_objext
8045        deplibs=
8046        wl=$lt_prog_compiler_wl
8047        compiler_flags=-v
8048        linker_flags=-v
8049        verstring=
8050        output_objdir=.
8051        libname=conftest
8052        lt_save_allow_undefined_flag=$allow_undefined_flag
8053        allow_undefined_flag=
8054        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8055  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8056  ac_status=$?
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); }
8059        then
8060	  archive_cmds_need_lc=no
8061        else
8062	  archive_cmds_need_lc=yes
8063        fi
8064        allow_undefined_flag=$lt_save_allow_undefined_flag
8065      else
8066        cat conftest.err 1>&5
8067      fi
8068      $rm conftest*
8069      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8070echo "${ECHO_T}$archive_cmds_need_lc" >&6
8071      ;;
8072    esac
8073  fi
8074  ;;
8075esac
8076
8077echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8079library_names_spec=
8080libname_spec='lib$name'
8081soname_spec=
8082shrext_cmds=".so"
8083postinstall_cmds=
8084postuninstall_cmds=
8085finish_cmds=
8086finish_eval=
8087shlibpath_var=
8088shlibpath_overrides_runpath=unknown
8089version_type=none
8090dynamic_linker="$host_os ld.so"
8091sys_lib_dlsearch_path_spec="/lib /usr/lib"
8092if test "$GCC" = yes; then
8093  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8094  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8095    # if the path contains ";" then we assume it to be the separator
8096    # otherwise default to the standard path separator (i.e. ":") - it is
8097    # assumed that no part of a normal pathname contains ";" but that should
8098    # okay in the real world where ";" in dirpaths is itself problematic.
8099    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8100  else
8101    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8102  fi
8103else
8104  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8105fi
8106need_lib_prefix=unknown
8107hardcode_into_libs=no
8108
8109# when you set need_version to no, make sure it does not cause -set_version
8110# flags to be left without arguments
8111need_version=unknown
8112
8113case $host_os in
8114aix3*)
8115  version_type=linux
8116  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8117  shlibpath_var=LIBPATH
8118
8119  # AIX 3 has no versioning support, so we append a major version to the name.
8120  soname_spec='${libname}${release}${shared_ext}$major'
8121  ;;
8122
8123aix4* | aix5*)
8124  version_type=linux
8125  need_lib_prefix=no
8126  need_version=no
8127  hardcode_into_libs=yes
8128  if test "$host_cpu" = ia64; then
8129    # AIX 5 supports IA64
8130    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8131    shlibpath_var=LD_LIBRARY_PATH
8132  else
8133    # With GCC up to 2.95.x, collect2 would create an import file
8134    # for dependence libraries.  The import file would start with
8135    # the line `#! .'.  This would cause the generated library to
8136    # depend on `.', always an invalid library.  This was fixed in
8137    # development snapshots of GCC prior to 3.0.
8138    case $host_os in
8139      aix4 | aix4.[01] | aix4.[01].*)
8140      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8141	   echo ' yes '
8142	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8143	:
8144      else
8145	can_build_shared=no
8146      fi
8147      ;;
8148    esac
8149    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8150    # soname into executable. Probably we can add versioning support to
8151    # collect2, so additional links can be useful in future.
8152    if test "$aix_use_runtimelinking" = yes; then
8153      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8154      # instead of lib<name>.a to let people know that these are not
8155      # typical AIX shared libraries.
8156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157    else
8158      # We preserve .a as extension for shared libraries through AIX4.2
8159      # and later when we are not doing run time linking.
8160      library_names_spec='${libname}${release}.a $libname.a'
8161      soname_spec='${libname}${release}${shared_ext}$major'
8162    fi
8163    shlibpath_var=LIBPATH
8164  fi
8165  ;;
8166
8167amigaos*)
8168  library_names_spec='$libname.ixlibrary $libname.a'
8169  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8170  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'
8171  ;;
8172
8173beos*)
8174  library_names_spec='${libname}${shared_ext}'
8175  dynamic_linker="$host_os ld.so"
8176  shlibpath_var=LIBRARY_PATH
8177  ;;
8178
8179bsdi[45]*)
8180  version_type=linux
8181  need_version=no
8182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183  soname_spec='${libname}${release}${shared_ext}$major'
8184  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8185  shlibpath_var=LD_LIBRARY_PATH
8186  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8187  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8188  # the default ld.so.conf also contains /usr/contrib/lib and
8189  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8190  # libtool to hard-code these into programs
8191  ;;
8192
8193cygwin* | mingw* | pw32*)
8194  version_type=windows
8195  shrext_cmds=".dll"
8196  need_version=no
8197  need_lib_prefix=no
8198
8199  case $GCC,$host_os in
8200  yes,cygwin* | yes,mingw* | yes,pw32*)
8201    library_names_spec='$libname.dll.a'
8202    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8203    postinstall_cmds='base_file=`basename \${file}`~
8204      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8205      dldir=$destdir/`dirname \$dlpath`~
8206      test -d \$dldir || mkdir -p \$dldir~
8207      $install_prog $dir/$dlname \$dldir/$dlname~
8208      chmod a+x \$dldir/$dlname'
8209    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8210      dlpath=$dir/\$dldll~
8211       $rm \$dlpath'
8212    shlibpath_overrides_runpath=yes
8213
8214    case $host_os in
8215    cygwin*)
8216      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8217      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8218      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8219      ;;
8220    mingw*)
8221      # MinGW DLLs use traditional 'lib' prefix
8222      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8223      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8224      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8225        # It is most probably a Windows format PATH printed by
8226        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8227        # path with ; separators, and with drive letters. We can handle the
8228        # drive letters (cygwin fileutils understands them), so leave them,
8229        # especially as we might pass files found there to a mingw objdump,
8230        # which wouldn't understand a cygwinified path. Ahh.
8231        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8232      else
8233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8234      fi
8235      ;;
8236    pw32*)
8237      # pw32 DLLs use 'pw' prefix rather than 'lib'
8238      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8239      ;;
8240    esac
8241    ;;
8242
8243  *)
8244    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8245    ;;
8246  esac
8247  dynamic_linker='Win32 ld.exe'
8248  # FIXME: first we should search . and the directory the executable is in
8249  shlibpath_var=PATH
8250  ;;
8251
8252darwin* | rhapsody*)
8253  dynamic_linker="$host_os dyld"
8254  version_type=darwin
8255  need_lib_prefix=no
8256  need_version=no
8257  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8258  soname_spec='${libname}${release}${major}$shared_ext'
8259  shlibpath_overrides_runpath=yes
8260  shlibpath_var=DYLD_LIBRARY_PATH
8261  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8262  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8263  if test "$GCC" = yes; then
8264    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"`
8265  else
8266    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8267  fi
8268  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8269  ;;
8270
8271dgux*)
8272  version_type=linux
8273  need_lib_prefix=no
8274  need_version=no
8275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8276  soname_spec='${libname}${release}${shared_ext}$major'
8277  shlibpath_var=LD_LIBRARY_PATH
8278  ;;
8279
8280freebsd1*)
8281  dynamic_linker=no
8282  ;;
8283
8284haiku*)
8285  library_names_spec='${libname}${shared_ext}'
8286  dynamic_linker="$host_os ld.so"
8287  shlibpath_var=LIBRARY_PATH
8288  ;;
8289
8290kfreebsd*-gnu)
8291  version_type=linux
8292  need_lib_prefix=no
8293  need_version=no
8294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8295  soname_spec='${libname}${release}${shared_ext}$major'
8296  shlibpath_var=LD_LIBRARY_PATH
8297  shlibpath_overrides_runpath=no
8298  hardcode_into_libs=yes
8299  dynamic_linker='GNU ld.so'
8300  ;;
8301
8302freebsd* | dragonfly*)
8303  # DragonFly does not have aout.  When/if they implement a new
8304  # versioning mechanism, adjust this.
8305  if test -x /usr/bin/objformat; then
8306    objformat=`/usr/bin/objformat`
8307  else
8308    case $host_os in
8309    freebsd[123]*) objformat=aout ;;
8310    *) objformat=elf ;;
8311    esac
8312  fi
8313  version_type=freebsd-$objformat
8314  case $version_type in
8315    freebsd-elf*)
8316      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8317      need_version=no
8318      need_lib_prefix=no
8319      ;;
8320    freebsd-*)
8321      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8322      need_version=yes
8323      ;;
8324  esac
8325  shlibpath_var=LD_LIBRARY_PATH
8326  case $host_os in
8327  freebsd2*)
8328    shlibpath_overrides_runpath=yes
8329    ;;
8330  freebsd3.[01]* | freebsdelf3.[01]*)
8331    shlibpath_overrides_runpath=yes
8332    hardcode_into_libs=yes
8333    ;;
8334  *) # from 3.2 on
8335    shlibpath_overrides_runpath=no
8336    hardcode_into_libs=yes
8337    ;;
8338  esac
8339  ;;
8340
8341gnu*)
8342  version_type=linux
8343  need_lib_prefix=no
8344  need_version=no
8345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8346  soname_spec='${libname}${release}${shared_ext}$major'
8347  shlibpath_var=LD_LIBRARY_PATH
8348  hardcode_into_libs=yes
8349  ;;
8350
8351hpux9* | hpux10* | hpux11*)
8352  # Give a soname corresponding to the major version so that dld.sl refuses to
8353  # link against other versions.
8354  version_type=sunos
8355  need_lib_prefix=no
8356  need_version=no
8357  case $host_cpu in
8358  ia64*)
8359    shrext_cmds='.so'
8360    hardcode_into_libs=yes
8361    dynamic_linker="$host_os dld.so"
8362    shlibpath_var=LD_LIBRARY_PATH
8363    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8364    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365    soname_spec='${libname}${release}${shared_ext}$major'
8366    if test "X$HPUX_IA64_MODE" = X32; then
8367      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8368    else
8369      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8370    fi
8371    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8372    ;;
8373   hppa*64*)
8374     shrext_cmds='.sl'
8375     hardcode_into_libs=yes
8376     dynamic_linker="$host_os dld.sl"
8377     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8378     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380     soname_spec='${libname}${release}${shared_ext}$major'
8381     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8382     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8383     ;;
8384   *)
8385    shrext_cmds='.sl'
8386    dynamic_linker="$host_os dld.sl"
8387    shlibpath_var=SHLIB_PATH
8388    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8389    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8390    soname_spec='${libname}${release}${shared_ext}$major'
8391    ;;
8392  esac
8393  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8394  postinstall_cmds='chmod 555 $lib'
8395  ;;
8396
8397irix5* | irix6* | nonstopux*)
8398  case $host_os in
8399    nonstopux*) version_type=nonstopux ;;
8400    *)
8401	if test "$lt_cv_prog_gnu_ld" = yes; then
8402		version_type=linux
8403	else
8404		version_type=irix
8405	fi ;;
8406  esac
8407  need_lib_prefix=no
8408  need_version=no
8409  soname_spec='${libname}${release}${shared_ext}$major'
8410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8411  case $host_os in
8412  irix5* | nonstopux*)
8413    libsuff= shlibsuff=
8414    ;;
8415  *)
8416    case $LD in # libtool.m4 will add one of these switches to LD
8417    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8418      libsuff= shlibsuff= libmagic=32-bit;;
8419    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8420      libsuff=32 shlibsuff=N32 libmagic=N32;;
8421    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8422      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8423    *) libsuff= shlibsuff= libmagic=never-match;;
8424    esac
8425    ;;
8426  esac
8427  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8428  shlibpath_overrides_runpath=no
8429  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8430  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8431  hardcode_into_libs=yes
8432  ;;
8433
8434# No shared lib support for Linux oldld, aout, or coff.
8435linux*oldld* | linux*aout* | linux*coff*)
8436  dynamic_linker=no
8437  ;;
8438
8439# This must be Linux ELF.
8440linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8447  shlibpath_var=LD_LIBRARY_PATH
8448  shlibpath_overrides_runpath=no
8449  # This implies no fast_install, which is unacceptable.
8450  # Some rework will be needed to allow for fast_install
8451  # before this can be enabled.
8452  hardcode_into_libs=yes
8453
8454  # Append ld.so.conf contents to the search path
8455  if test -f /etc/ld.so.conf; then
8456    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' ' '`
8457    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8458  fi
8459
8460  # We used to test for /lib/ld.so.1 and disable shared libraries on
8461  # powerpc, because MkLinux only supported shared libraries with the
8462  # GNU dynamic linker.  Since this was broken with cross compilers,
8463  # most powerpc-linux boxes support dynamic linking these days and
8464  # people can always --disable-shared, the test was removed, and we
8465  # assume the GNU/Linux dynamic linker is in use.
8466  dynamic_linker='GNU/Linux ld.so'
8467  ;;
8468
8469knetbsd*-gnu)
8470  version_type=linux
8471  need_lib_prefix=no
8472  need_version=no
8473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8474  soname_spec='${libname}${release}${shared_ext}$major'
8475  shlibpath_var=LD_LIBRARY_PATH
8476  shlibpath_overrides_runpath=no
8477  hardcode_into_libs=yes
8478  dynamic_linker='GNU ld.so'
8479  ;;
8480
8481netbsd*)
8482  version_type=sunos
8483  need_lib_prefix=no
8484  need_version=no
8485  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8486    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8487    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8488    dynamic_linker='NetBSD (a.out) ld.so'
8489  else
8490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8491    soname_spec='${libname}${release}${shared_ext}$major'
8492    dynamic_linker='NetBSD ld.elf_so'
8493  fi
8494  shlibpath_var=LD_LIBRARY_PATH
8495  shlibpath_overrides_runpath=yes
8496  hardcode_into_libs=yes
8497  ;;
8498
8499newsos6)
8500  version_type=linux
8501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502  shlibpath_var=LD_LIBRARY_PATH
8503  shlibpath_overrides_runpath=yes
8504  ;;
8505
8506nto-qnx*)
8507  version_type=linux
8508  need_lib_prefix=no
8509  need_version=no
8510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511  soname_spec='${libname}${release}${shared_ext}$major'
8512  shlibpath_var=LD_LIBRARY_PATH
8513  shlibpath_overrides_runpath=yes
8514  ;;
8515
8516openbsd*)
8517  version_type=sunos
8518  need_lib_prefix=no
8519  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8520  case $host_os in
8521    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8522    *)                         need_version=no  ;;
8523  esac
8524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8526  shlibpath_var=LD_LIBRARY_PATH
8527  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8528    case $host_os in
8529      openbsd2.[89] | openbsd2.[89].*)
8530	shlibpath_overrides_runpath=no
8531	;;
8532      *)
8533	shlibpath_overrides_runpath=yes
8534	;;
8535      esac
8536  else
8537    shlibpath_overrides_runpath=yes
8538  fi
8539  ;;
8540
8541os2*)
8542  libname_spec='$name'
8543  shrext_cmds=".dll"
8544  need_lib_prefix=no
8545  library_names_spec='$libname${shared_ext} $libname.a'
8546  dynamic_linker='OS/2 ld.exe'
8547  shlibpath_var=LIBPATH
8548  ;;
8549
8550osf3* | osf4* | osf5*)
8551  version_type=osf
8552  need_lib_prefix=no
8553  need_version=no
8554  soname_spec='${libname}${release}${shared_ext}$major'
8555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556  shlibpath_var=LD_LIBRARY_PATH
8557  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8558  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8559  ;;
8560
8561sco3.2v5*)
8562  version_type=osf
8563  soname_spec='${libname}${release}${shared_ext}$major'
8564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8565  shlibpath_var=LD_LIBRARY_PATH
8566  ;;
8567
8568solaris*)
8569  version_type=linux
8570  need_lib_prefix=no
8571  need_version=no
8572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8573  soname_spec='${libname}${release}${shared_ext}$major'
8574  shlibpath_var=LD_LIBRARY_PATH
8575  shlibpath_overrides_runpath=yes
8576  hardcode_into_libs=yes
8577  # ldd complains unless libraries are executable
8578  postinstall_cmds='chmod +x $lib'
8579  ;;
8580
8581sunos4*)
8582  version_type=sunos
8583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8584  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8585  shlibpath_var=LD_LIBRARY_PATH
8586  shlibpath_overrides_runpath=yes
8587  if test "$with_gnu_ld" = yes; then
8588    need_lib_prefix=no
8589  fi
8590  need_version=yes
8591  ;;
8592
8593sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8594  version_type=linux
8595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8596  soname_spec='${libname}${release}${shared_ext}$major'
8597  shlibpath_var=LD_LIBRARY_PATH
8598  case $host_vendor in
8599    sni)
8600      shlibpath_overrides_runpath=no
8601      need_lib_prefix=no
8602      export_dynamic_flag_spec='${wl}-Blargedynsym'
8603      runpath_var=LD_RUN_PATH
8604      ;;
8605    siemens)
8606      need_lib_prefix=no
8607      ;;
8608    motorola)
8609      need_lib_prefix=no
8610      need_version=no
8611      shlibpath_overrides_runpath=no
8612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8613      ;;
8614  esac
8615  ;;
8616
8617sysv4*MP*)
8618  if test -d /usr/nec ;then
8619    version_type=linux
8620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8621    soname_spec='$libname${shared_ext}.$major'
8622    shlibpath_var=LD_LIBRARY_PATH
8623  fi
8624  ;;
8625
8626uts4*)
8627  version_type=linux
8628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629  soname_spec='${libname}${release}${shared_ext}$major'
8630  shlibpath_var=LD_LIBRARY_PATH
8631  ;;
8632
8633*)
8634  dynamic_linker=no
8635  ;;
8636esac
8637echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8638echo "${ECHO_T}$dynamic_linker" >&6
8639test "$dynamic_linker" = no && can_build_shared=no
8640
8641echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8643hardcode_action=
8644if test -n "$hardcode_libdir_flag_spec" || \
8645   test -n "$runpath_var" || \
8646   test "X$hardcode_automatic" = "Xyes" ; then
8647
8648  # We can hardcode non-existant directories.
8649  if test "$hardcode_direct" != no &&
8650     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8651     # have to relink, otherwise we might link with an installed library
8652     # when we should be linking with a yet-to-be-installed one
8653     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8654     test "$hardcode_minus_L" != no; then
8655    # Linking always hardcodes the temporary library directory.
8656    hardcode_action=relink
8657  else
8658    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8659    hardcode_action=immediate
8660  fi
8661else
8662  # We cannot hardcode anything, or else we can only hardcode existing
8663  # directories.
8664  hardcode_action=unsupported
8665fi
8666echo "$as_me:$LINENO: result: $hardcode_action" >&5
8667echo "${ECHO_T}$hardcode_action" >&6
8668
8669if test "$hardcode_action" = relink; then
8670  # Fast installation is not supported
8671  enable_fast_install=no
8672elif test "$shlibpath_overrides_runpath" = yes ||
8673     test "$enable_shared" = no; then
8674  # Fast installation is not necessary
8675  enable_fast_install=needless
8676fi
8677
8678striplib=
8679old_striplib=
8680echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8681echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8682if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8683  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8684  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8685  echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687else
8688# FIXME - insert some real tests, host_os isn't really good enough
8689  case $host_os in
8690   darwin*)
8691       if test -n "$STRIP" ; then
8692         striplib="$STRIP -x"
8693         echo "$as_me:$LINENO: result: yes" >&5
8694echo "${ECHO_T}yes" >&6
8695       else
8696  echo "$as_me:$LINENO: result: no" >&5
8697echo "${ECHO_T}no" >&6
8698fi
8699       ;;
8700   *)
8701  echo "$as_me:$LINENO: result: no" >&5
8702echo "${ECHO_T}no" >&6
8703    ;;
8704  esac
8705fi
8706
8707if test "x$enable_dlopen" != xyes; then
8708  enable_dlopen=unknown
8709  enable_dlopen_self=unknown
8710  enable_dlopen_self_static=unknown
8711else
8712  lt_cv_dlopen=no
8713  lt_cv_dlopen_libs=
8714
8715  case $host_os in
8716  beos*)
8717    lt_cv_dlopen="load_add_on"
8718    lt_cv_dlopen_libs=
8719    lt_cv_dlopen_self=yes
8720    ;;
8721
8722  mingw* | pw32*)
8723    lt_cv_dlopen="LoadLibrary"
8724    lt_cv_dlopen_libs=
8725   ;;
8726
8727  cygwin*)
8728    lt_cv_dlopen="dlopen"
8729    lt_cv_dlopen_libs=
8730   ;;
8731
8732  darwin*)
8733  # if libdl is installed we need to link against it
8734    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8735echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8736if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  ac_check_lib_save_LIBS=$LIBS
8740LIBS="-ldl  $LIBS"
8741cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h.  */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h.  */
8747
8748/* Override any gcc2 internal prototype to avoid an error.  */
8749#ifdef __cplusplus
8750extern "C"
8751#endif
8752/* We use char because int might match the return type of a gcc2
8753   builtin and then its argument prototype would still apply.  */
8754char dlopen ();
8755int
8756main ()
8757{
8758dlopen ();
8759  ;
8760  return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765  (eval $ac_link) 2>conftest.er1
8766  ac_status=$?
8767  grep -v '^ *+' conftest.er1 >conftest.err
8768  rm -f conftest.er1
8769  cat conftest.err >&5
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); } &&
8772	 { ac_try='test -z "$ac_c_werror_flag"
8773			 || test ! -s conftest.err'
8774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775  (eval $ac_try) 2>&5
8776  ac_status=$?
8777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778  (exit $ac_status); }; } &&
8779	 { ac_try='test -s conftest$ac_exeext'
8780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781  (eval $ac_try) 2>&5
8782  ac_status=$?
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); }; }; then
8785  ac_cv_lib_dl_dlopen=yes
8786else
8787  echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790ac_cv_lib_dl_dlopen=no
8791fi
8792rm -f conftest.err conftest.$ac_objext \
8793      conftest$ac_exeext conftest.$ac_ext
8794LIBS=$ac_check_lib_save_LIBS
8795fi
8796echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8797echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8798if test $ac_cv_lib_dl_dlopen = yes; then
8799  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8800else
8801
8802    lt_cv_dlopen="dyld"
8803    lt_cv_dlopen_libs=
8804    lt_cv_dlopen_self=yes
8805
8806fi
8807
8808   ;;
8809
8810  haiku*)
8811    lt_cv_dlopen="load_add_on"
8812    lt_cv_dlopen_libs=
8813    lt_cv_dlopen_self=yes
8814    ;;
8815
8816  *)
8817    echo "$as_me:$LINENO: checking for shl_load" >&5
8818echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8819if test "${ac_cv_func_shl_load+set}" = set; then
8820  echo $ECHO_N "(cached) $ECHO_C" >&6
8821else
8822  cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h.  */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h.  */
8828/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8830#define shl_load innocuous_shl_load
8831
8832/* System header to define __stub macros and hopefully few prototypes,
8833    which can conflict with char shl_load (); below.
8834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835    <limits.h> exists even on freestanding compilers.  */
8836
8837#ifdef __STDC__
8838# include <limits.h>
8839#else
8840# include <assert.h>
8841#endif
8842
8843#undef shl_load
8844
8845/* Override any gcc2 internal prototype to avoid an error.  */
8846#ifdef __cplusplus
8847extern "C"
8848{
8849#endif
8850/* We use char because int might match the return type of a gcc2
8851   builtin and then its argument prototype would still apply.  */
8852char shl_load ();
8853/* The GNU C library defines this for functions which it implements
8854    to always fail with ENOSYS.  Some functions are actually named
8855    something starting with __ and the normal name is an alias.  */
8856#if defined (__stub_shl_load) || defined (__stub___shl_load)
8857choke me
8858#else
8859char (*f) () = shl_load;
8860#endif
8861#ifdef __cplusplus
8862}
8863#endif
8864
8865int
8866main ()
8867{
8868return f != shl_load;
8869  ;
8870  return 0;
8871}
8872_ACEOF
8873rm -f conftest.$ac_objext conftest$ac_exeext
8874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875  (eval $ac_link) 2>conftest.er1
8876  ac_status=$?
8877  grep -v '^ *+' conftest.er1 >conftest.err
8878  rm -f conftest.er1
8879  cat conftest.err >&5
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); } &&
8882	 { ac_try='test -z "$ac_c_werror_flag"
8883			 || test ! -s conftest.err'
8884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885  (eval $ac_try) 2>&5
8886  ac_status=$?
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); }; } &&
8889	 { ac_try='test -s conftest$ac_exeext'
8890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891  (eval $ac_try) 2>&5
8892  ac_status=$?
8893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); }; }; then
8895  ac_cv_func_shl_load=yes
8896else
8897  echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
8900ac_cv_func_shl_load=no
8901fi
8902rm -f conftest.err conftest.$ac_objext \
8903      conftest$ac_exeext conftest.$ac_ext
8904fi
8905echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8906echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8907if test $ac_cv_func_shl_load = yes; then
8908  lt_cv_dlopen="shl_load"
8909else
8910  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8911echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8912if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  ac_check_lib_save_LIBS=$LIBS
8916LIBS="-ldld  $LIBS"
8917cat >conftest.$ac_ext <<_ACEOF
8918/* confdefs.h.  */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
8922/* end confdefs.h.  */
8923
8924/* Override any gcc2 internal prototype to avoid an error.  */
8925#ifdef __cplusplus
8926extern "C"
8927#endif
8928/* We use char because int might match the return type of a gcc2
8929   builtin and then its argument prototype would still apply.  */
8930char shl_load ();
8931int
8932main ()
8933{
8934shl_load ();
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939rm -f conftest.$ac_objext conftest$ac_exeext
8940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941  (eval $ac_link) 2>conftest.er1
8942  ac_status=$?
8943  grep -v '^ *+' conftest.er1 >conftest.err
8944  rm -f conftest.er1
8945  cat conftest.err >&5
8946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947  (exit $ac_status); } &&
8948	 { ac_try='test -z "$ac_c_werror_flag"
8949			 || test ! -s conftest.err'
8950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951  (eval $ac_try) 2>&5
8952  ac_status=$?
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); }; } &&
8955	 { ac_try='test -s conftest$ac_exeext'
8956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957  (eval $ac_try) 2>&5
8958  ac_status=$?
8959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960  (exit $ac_status); }; }; then
8961  ac_cv_lib_dld_shl_load=yes
8962else
8963  echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966ac_cv_lib_dld_shl_load=no
8967fi
8968rm -f conftest.err conftest.$ac_objext \
8969      conftest$ac_exeext conftest.$ac_ext
8970LIBS=$ac_check_lib_save_LIBS
8971fi
8972echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8973echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8974if test $ac_cv_lib_dld_shl_load = yes; then
8975  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8976else
8977  echo "$as_me:$LINENO: checking for dlopen" >&5
8978echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8979if test "${ac_cv_func_dlopen+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h.  */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h.  */
8988/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8989   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8990#define dlopen innocuous_dlopen
8991
8992/* System header to define __stub macros and hopefully few prototypes,
8993    which can conflict with char dlopen (); below.
8994    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995    <limits.h> exists even on freestanding compilers.  */
8996
8997#ifdef __STDC__
8998# include <limits.h>
8999#else
9000# include <assert.h>
9001#endif
9002
9003#undef dlopen
9004
9005/* Override any gcc2 internal prototype to avoid an error.  */
9006#ifdef __cplusplus
9007extern "C"
9008{
9009#endif
9010/* We use char because int might match the return type of a gcc2
9011   builtin and then its argument prototype would still apply.  */
9012char dlopen ();
9013/* The GNU C library defines this for functions which it implements
9014    to always fail with ENOSYS.  Some functions are actually named
9015    something starting with __ and the normal name is an alias.  */
9016#if defined (__stub_dlopen) || defined (__stub___dlopen)
9017choke me
9018#else
9019char (*f) () = dlopen;
9020#endif
9021#ifdef __cplusplus
9022}
9023#endif
9024
9025int
9026main ()
9027{
9028return f != dlopen;
9029  ;
9030  return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035  (eval $ac_link) 2>conftest.er1
9036  ac_status=$?
9037  grep -v '^ *+' conftest.er1 >conftest.err
9038  rm -f conftest.er1
9039  cat conftest.err >&5
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } &&
9042	 { ac_try='test -z "$ac_c_werror_flag"
9043			 || test ! -s conftest.err'
9044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045  (eval $ac_try) 2>&5
9046  ac_status=$?
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); }; } &&
9049	 { ac_try='test -s conftest$ac_exeext'
9050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051  (eval $ac_try) 2>&5
9052  ac_status=$?
9053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); }; }; then
9055  ac_cv_func_dlopen=yes
9056else
9057  echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
9060ac_cv_func_dlopen=no
9061fi
9062rm -f conftest.err conftest.$ac_objext \
9063      conftest$ac_exeext conftest.$ac_ext
9064fi
9065echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9066echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9067if test $ac_cv_func_dlopen = yes; then
9068  lt_cv_dlopen="dlopen"
9069else
9070  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9071echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9072if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075  ac_check_lib_save_LIBS=$LIBS
9076LIBS="-ldl  $LIBS"
9077cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h.  */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h.  */
9083
9084/* Override any gcc2 internal prototype to avoid an error.  */
9085#ifdef __cplusplus
9086extern "C"
9087#endif
9088/* We use char because int might match the return type of a gcc2
9089   builtin and then its argument prototype would still apply.  */
9090char dlopen ();
9091int
9092main ()
9093{
9094dlopen ();
9095  ;
9096  return 0;
9097}
9098_ACEOF
9099rm -f conftest.$ac_objext conftest$ac_exeext
9100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101  (eval $ac_link) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } &&
9108	 { ac_try='test -z "$ac_c_werror_flag"
9109			 || test ! -s conftest.err'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; } &&
9115	 { ac_try='test -s conftest$ac_exeext'
9116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117  (eval $ac_try) 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_cv_lib_dl_dlopen=yes
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_cv_lib_dl_dlopen=no
9127fi
9128rm -f conftest.err conftest.$ac_objext \
9129      conftest$ac_exeext conftest.$ac_ext
9130LIBS=$ac_check_lib_save_LIBS
9131fi
9132echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9133echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9134if test $ac_cv_lib_dl_dlopen = yes; then
9135  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9136else
9137  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9138echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9139if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9140  echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142  ac_check_lib_save_LIBS=$LIBS
9143LIBS="-lsvld  $LIBS"
9144cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h.  */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h.  */
9150
9151/* Override any gcc2 internal prototype to avoid an error.  */
9152#ifdef __cplusplus
9153extern "C"
9154#endif
9155/* We use char because int might match the return type of a gcc2
9156   builtin and then its argument prototype would still apply.  */
9157char dlopen ();
9158int
9159main ()
9160{
9161dlopen ();
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168  (eval $ac_link) 2>conftest.er1
9169  ac_status=$?
9170  grep -v '^ *+' conftest.er1 >conftest.err
9171  rm -f conftest.er1
9172  cat conftest.err >&5
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } &&
9175	 { ac_try='test -z "$ac_c_werror_flag"
9176			 || test ! -s conftest.err'
9177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178  (eval $ac_try) 2>&5
9179  ac_status=$?
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); }; } &&
9182	 { ac_try='test -s conftest$ac_exeext'
9183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184  (eval $ac_try) 2>&5
9185  ac_status=$?
9186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187  (exit $ac_status); }; }; then
9188  ac_cv_lib_svld_dlopen=yes
9189else
9190  echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193ac_cv_lib_svld_dlopen=no
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196      conftest$ac_exeext conftest.$ac_ext
9197LIBS=$ac_check_lib_save_LIBS
9198fi
9199echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9200echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9201if test $ac_cv_lib_svld_dlopen = yes; then
9202  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9203else
9204  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9205echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9206if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  ac_check_lib_save_LIBS=$LIBS
9210LIBS="-ldld  $LIBS"
9211cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h.  */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h.  */
9217
9218/* Override any gcc2 internal prototype to avoid an error.  */
9219#ifdef __cplusplus
9220extern "C"
9221#endif
9222/* We use char because int might match the return type of a gcc2
9223   builtin and then its argument prototype would still apply.  */
9224char dld_link ();
9225int
9226main ()
9227{
9228dld_link ();
9229  ;
9230  return 0;
9231}
9232_ACEOF
9233rm -f conftest.$ac_objext conftest$ac_exeext
9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235  (eval $ac_link) 2>conftest.er1
9236  ac_status=$?
9237  grep -v '^ *+' conftest.er1 >conftest.err
9238  rm -f conftest.er1
9239  cat conftest.err >&5
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); } &&
9242	 { ac_try='test -z "$ac_c_werror_flag"
9243			 || test ! -s conftest.err'
9244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245  (eval $ac_try) 2>&5
9246  ac_status=$?
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); }; } &&
9249	 { ac_try='test -s conftest$ac_exeext'
9250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251  (eval $ac_try) 2>&5
9252  ac_status=$?
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); }; }; then
9255  ac_cv_lib_dld_dld_link=yes
9256else
9257  echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260ac_cv_lib_dld_dld_link=no
9261fi
9262rm -f conftest.err conftest.$ac_objext \
9263      conftest$ac_exeext conftest.$ac_ext
9264LIBS=$ac_check_lib_save_LIBS
9265fi
9266echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9267echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9268if test $ac_cv_lib_dld_dld_link = yes; then
9269  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9270fi
9271
9272
9273fi
9274
9275
9276fi
9277
9278
9279fi
9280
9281
9282fi
9283
9284
9285fi
9286
9287    ;;
9288  esac
9289
9290  if test "x$lt_cv_dlopen" != xno; then
9291    enable_dlopen=yes
9292  else
9293    enable_dlopen=no
9294  fi
9295
9296  case $lt_cv_dlopen in
9297  dlopen)
9298    save_CPPFLAGS="$CPPFLAGS"
9299    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9300
9301    save_LDFLAGS="$LDFLAGS"
9302    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9303
9304    save_LIBS="$LIBS"
9305    LIBS="$lt_cv_dlopen_libs $LIBS"
9306
9307    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9308echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9309if test "${lt_cv_dlopen_self+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  	  if test "$cross_compiling" = yes; then :
9313  lt_cv_dlopen_self=cross
9314else
9315  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9316  lt_status=$lt_dlunknown
9317  cat > conftest.$ac_ext <<EOF
9318#line 9318 "configure"
9319#include "confdefs.h"
9320
9321#if HAVE_DLFCN_H
9322#include <dlfcn.h>
9323#endif
9324
9325#include <stdio.h>
9326
9327#ifdef RTLD_GLOBAL
9328#  define LT_DLGLOBAL		RTLD_GLOBAL
9329#else
9330#  ifdef DL_GLOBAL
9331#    define LT_DLGLOBAL		DL_GLOBAL
9332#  else
9333#    define LT_DLGLOBAL		0
9334#  endif
9335#endif
9336
9337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9338   find out it does not work in some platform. */
9339#ifndef LT_DLLAZY_OR_NOW
9340#  ifdef RTLD_LAZY
9341#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9342#  else
9343#    ifdef DL_LAZY
9344#      define LT_DLLAZY_OR_NOW		DL_LAZY
9345#    else
9346#      ifdef RTLD_NOW
9347#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9348#      else
9349#        ifdef DL_NOW
9350#          define LT_DLLAZY_OR_NOW	DL_NOW
9351#        else
9352#          define LT_DLLAZY_OR_NOW	0
9353#        endif
9354#      endif
9355#    endif
9356#  endif
9357#endif
9358
9359#ifdef __cplusplus
9360extern "C" void exit (int);
9361#endif
9362
9363void fnord() { int i=42;}
9364int main ()
9365{
9366  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9367  int status = $lt_dlunknown;
9368
9369  if (self)
9370    {
9371      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9372      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9373      /* dlclose (self); */
9374    }
9375
9376    exit (status);
9377}
9378EOF
9379  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380  (eval $ac_link) 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9384    (./conftest; exit; ) >&5 2>/dev/null
9385    lt_status=$?
9386    case x$lt_status in
9387      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9388      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9389      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9390    esac
9391  else :
9392    # compilation failed
9393    lt_cv_dlopen_self=no
9394  fi
9395fi
9396rm -fr conftest*
9397
9398
9399fi
9400echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9401echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9402
9403    if test "x$lt_cv_dlopen_self" = xyes; then
9404      LDFLAGS="$LDFLAGS $link_static_flag"
9405      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9406echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9407if test "${lt_cv_dlopen_self_static+set}" = set; then
9408  echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410  	  if test "$cross_compiling" = yes; then :
9411  lt_cv_dlopen_self_static=cross
9412else
9413  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9414  lt_status=$lt_dlunknown
9415  cat > conftest.$ac_ext <<EOF
9416#line 9416 "configure"
9417#include "confdefs.h"
9418
9419#if HAVE_DLFCN_H
9420#include <dlfcn.h>
9421#endif
9422
9423#include <stdio.h>
9424
9425#ifdef RTLD_GLOBAL
9426#  define LT_DLGLOBAL		RTLD_GLOBAL
9427#else
9428#  ifdef DL_GLOBAL
9429#    define LT_DLGLOBAL		DL_GLOBAL
9430#  else
9431#    define LT_DLGLOBAL		0
9432#  endif
9433#endif
9434
9435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9436   find out it does not work in some platform. */
9437#ifndef LT_DLLAZY_OR_NOW
9438#  ifdef RTLD_LAZY
9439#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9440#  else
9441#    ifdef DL_LAZY
9442#      define LT_DLLAZY_OR_NOW		DL_LAZY
9443#    else
9444#      ifdef RTLD_NOW
9445#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9446#      else
9447#        ifdef DL_NOW
9448#          define LT_DLLAZY_OR_NOW	DL_NOW
9449#        else
9450#          define LT_DLLAZY_OR_NOW	0
9451#        endif
9452#      endif
9453#    endif
9454#  endif
9455#endif
9456
9457#ifdef __cplusplus
9458extern "C" void exit (int);
9459#endif
9460
9461void fnord() { int i=42;}
9462int main ()
9463{
9464  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9465  int status = $lt_dlunknown;
9466
9467  if (self)
9468    {
9469      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9470      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9471      /* dlclose (self); */
9472    }
9473
9474    exit (status);
9475}
9476EOF
9477  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478  (eval $ac_link) 2>&5
9479  ac_status=$?
9480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9482    (./conftest; exit; ) >&5 2>/dev/null
9483    lt_status=$?
9484    case x$lt_status in
9485      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9486      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9487      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9488    esac
9489  else :
9490    # compilation failed
9491    lt_cv_dlopen_self_static=no
9492  fi
9493fi
9494rm -fr conftest*
9495
9496
9497fi
9498echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9499echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9500    fi
9501
9502    CPPFLAGS="$save_CPPFLAGS"
9503    LDFLAGS="$save_LDFLAGS"
9504    LIBS="$save_LIBS"
9505    ;;
9506  esac
9507
9508  case $lt_cv_dlopen_self in
9509  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9510  *) enable_dlopen_self=unknown ;;
9511  esac
9512
9513  case $lt_cv_dlopen_self_static in
9514  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9515  *) enable_dlopen_self_static=unknown ;;
9516  esac
9517fi
9518
9519
9520# Report which librarie types wil actually be built
9521echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9522echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9523echo "$as_me:$LINENO: result: $can_build_shared" >&5
9524echo "${ECHO_T}$can_build_shared" >&6
9525
9526echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9527echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9528test "$can_build_shared" = "no" && enable_shared=no
9529
9530# On AIX, shared libraries and static libraries use the same namespace, and
9531# are all built from PIC.
9532case $host_os in
9533aix3*)
9534  test "$enable_shared" = yes && enable_static=no
9535  if test -n "$RANLIB"; then
9536    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9537    postinstall_cmds='$RANLIB $lib'
9538  fi
9539  ;;
9540
9541aix4* | aix5*)
9542  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9543    test "$enable_shared" = yes && enable_static=no
9544  fi
9545    ;;
9546esac
9547echo "$as_me:$LINENO: result: $enable_shared" >&5
9548echo "${ECHO_T}$enable_shared" >&6
9549
9550echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9551echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9552# Make sure either enable_shared or enable_static is yes.
9553test "$enable_shared" = yes || enable_static=yes
9554echo "$as_me:$LINENO: result: $enable_static" >&5
9555echo "${ECHO_T}$enable_static" >&6
9556
9557# The else clause should only fire when bootstrapping the
9558# libtool distribution, otherwise you forgot to ship ltmain.sh
9559# with your package, and you will get complaints that there are
9560# no rules to generate ltmain.sh.
9561if test -f "$ltmain"; then
9562  # See if we are running on zsh, and set the options which allow our commands through
9563  # without removal of \ escapes.
9564  if test -n "${ZSH_VERSION+set}" ; then
9565    setopt NO_GLOB_SUBST
9566  fi
9567  # Now quote all the things that may contain metacharacters while being
9568  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9569  # variables and quote the copies for generation of the libtool script.
9570  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9571    SED SHELL STRIP \
9572    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9573    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9574    deplibs_check_method reload_flag reload_cmds need_locks \
9575    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9576    lt_cv_sys_global_symbol_to_c_name_address \
9577    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9578    old_postinstall_cmds old_postuninstall_cmds \
9579    compiler \
9580    CC \
9581    LD \
9582    lt_prog_compiler_wl \
9583    lt_prog_compiler_pic \
9584    lt_prog_compiler_static \
9585    lt_prog_compiler_no_builtin_flag \
9586    export_dynamic_flag_spec \
9587    thread_safe_flag_spec \
9588    whole_archive_flag_spec \
9589    enable_shared_with_static_runtimes \
9590    old_archive_cmds \
9591    old_archive_from_new_cmds \
9592    predep_objects \
9593    postdep_objects \
9594    predeps \
9595    postdeps \
9596    compiler_lib_search_path \
9597    archive_cmds \
9598    archive_expsym_cmds \
9599    postinstall_cmds \
9600    postuninstall_cmds \
9601    old_archive_from_expsyms_cmds \
9602    allow_undefined_flag \
9603    no_undefined_flag \
9604    export_symbols_cmds \
9605    hardcode_libdir_flag_spec \
9606    hardcode_libdir_flag_spec_ld \
9607    hardcode_libdir_separator \
9608    hardcode_automatic \
9609    module_cmds \
9610    module_expsym_cmds \
9611    lt_cv_prog_compiler_c_o \
9612    exclude_expsyms \
9613    include_expsyms; do
9614
9615    case $var in
9616    old_archive_cmds | \
9617    old_archive_from_new_cmds | \
9618    archive_cmds | \
9619    archive_expsym_cmds | \
9620    module_cmds | \
9621    module_expsym_cmds | \
9622    old_archive_from_expsyms_cmds | \
9623    export_symbols_cmds | \
9624    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9625    postinstall_cmds | postuninstall_cmds | \
9626    old_postinstall_cmds | old_postuninstall_cmds | \
9627    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9628      # Double-quote double-evaled strings.
9629      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9630      ;;
9631    *)
9632      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9633      ;;
9634    esac
9635  done
9636
9637  case $lt_echo in
9638  *'\$0 --fallback-echo"')
9639    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9640    ;;
9641  esac
9642
9643cfgfile="${ofile}T"
9644  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9645  $rm -f "$cfgfile"
9646  { echo "$as_me:$LINENO: creating $ofile" >&5
9647echo "$as_me: creating $ofile" >&6;}
9648
9649  cat <<__EOF__ >> "$cfgfile"
9650#! $SHELL
9651
9652# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9653# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9654# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9655#
9656# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9657# Free Software Foundation, Inc.
9658#
9659# This file is part of GNU Libtool:
9660# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9661#
9662# This program is free software; you can redistribute it and/or modify
9663# it under the terms of the GNU General Public License as published by
9664# the Free Software Foundation; either version 2 of the License, or
9665# (at your option) any later version.
9666#
9667# This program is distributed in the hope that it will be useful, but
9668# WITHOUT ANY WARRANTY; without even the implied warranty of
9669# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9670# General Public License for more details.
9671#
9672# You should have received a copy of the GNU General Public License
9673# along with this program; if not, write to the Free Software
9674# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9675#
9676# As a special exception to the GNU General Public License, if you
9677# distribute this file as part of a program that contains a
9678# configuration script generated by Autoconf, you may include it under
9679# the same distribution terms that you use for the rest of that program.
9680
9681# A sed program that does not truncate output.
9682SED=$lt_SED
9683
9684# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9685Xsed="$SED -e 1s/^X//"
9686
9687# The HP-UX ksh and POSIX shell print the target directory to stdout
9688# if CDPATH is set.
9689(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9690
9691# The names of the tagged configurations supported by this script.
9692available_tags=
9693
9694# ### BEGIN LIBTOOL CONFIG
9695
9696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9697
9698# Shell to use when invoking shell scripts.
9699SHELL=$lt_SHELL
9700
9701# Whether or not to build shared libraries.
9702build_libtool_libs=$enable_shared
9703
9704# Whether or not to build static libraries.
9705build_old_libs=$enable_static
9706
9707# Whether or not to add -lc for building shared libraries.
9708build_libtool_need_lc=$archive_cmds_need_lc
9709
9710# Whether or not to disallow shared libs when runtime libs are static
9711allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9712
9713# Whether or not to optimize for fast installation.
9714fast_install=$enable_fast_install
9715
9716# The host system.
9717host_alias=$host_alias
9718host=$host
9719host_os=$host_os
9720
9721# The build system.
9722build_alias=$build_alias
9723build=$build
9724build_os=$build_os
9725
9726# An echo program that does not interpret backslashes.
9727echo=$lt_echo
9728
9729# The archiver.
9730AR=$lt_AR
9731AR_FLAGS=$lt_AR_FLAGS
9732
9733# A C compiler.
9734LTCC=$lt_LTCC
9735
9736# A language-specific compiler.
9737CC=$lt_compiler
9738
9739# Is the compiler the GNU C compiler?
9740with_gcc=$GCC
9741
9742# An ERE matcher.
9743EGREP=$lt_EGREP
9744
9745# The linker used to build libraries.
9746LD=$lt_LD
9747
9748# Whether we need hard or soft links.
9749LN_S=$lt_LN_S
9750
9751# A BSD-compatible nm program.
9752NM=$lt_NM
9753
9754# A symbol stripping program
9755STRIP=$lt_STRIP
9756
9757# Used to examine libraries when file_magic_cmd begins "file"
9758MAGIC_CMD=$MAGIC_CMD
9759
9760# Used on cygwin: DLL creation program.
9761DLLTOOL="$DLLTOOL"
9762
9763# Used on cygwin: object dumper.
9764OBJDUMP="$OBJDUMP"
9765
9766# Used on cygwin: assembler.
9767AS="$AS"
9768
9769# The name of the directory that contains temporary libtool files.
9770objdir=$objdir
9771
9772# How to create reloadable object files.
9773reload_flag=$lt_reload_flag
9774reload_cmds=$lt_reload_cmds
9775
9776# How to pass a linker flag through the compiler.
9777wl=$lt_lt_prog_compiler_wl
9778
9779# Object file suffix (normally "o").
9780objext="$ac_objext"
9781
9782# Old archive suffix (normally "a").
9783libext="$libext"
9784
9785# Shared library suffix (normally ".so").
9786shrext_cmds='$shrext_cmds'
9787
9788# Executable file suffix (normally "").
9789exeext="$exeext"
9790
9791# Additional compiler flags for building library objects.
9792pic_flag=$lt_lt_prog_compiler_pic
9793pic_mode=$pic_mode
9794
9795# What is the maximum length of a command?
9796max_cmd_len=$lt_cv_sys_max_cmd_len
9797
9798# Does compiler simultaneously support -c and -o options?
9799compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9800
9801# Must we lock files when doing compilation?
9802need_locks=$lt_need_locks
9803
9804# Do we need the lib prefix for modules?
9805need_lib_prefix=$need_lib_prefix
9806
9807# Do we need a version for libraries?
9808need_version=$need_version
9809
9810# Whether dlopen is supported.
9811dlopen_support=$enable_dlopen
9812
9813# Whether dlopen of programs is supported.
9814dlopen_self=$enable_dlopen_self
9815
9816# Whether dlopen of statically linked programs is supported.
9817dlopen_self_static=$enable_dlopen_self_static
9818
9819# Compiler flag to prevent dynamic linking.
9820link_static_flag=$lt_lt_prog_compiler_static
9821
9822# Compiler flag to turn off builtin functions.
9823no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9824
9825# Compiler flag to allow reflexive dlopens.
9826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9827
9828# Compiler flag to generate shared objects directly from archives.
9829whole_archive_flag_spec=$lt_whole_archive_flag_spec
9830
9831# Compiler flag to generate thread-safe objects.
9832thread_safe_flag_spec=$lt_thread_safe_flag_spec
9833
9834# Library versioning type.
9835version_type=$version_type
9836
9837# Format of library name prefix.
9838libname_spec=$lt_libname_spec
9839
9840# List of archive names.  First name is the real one, the rest are links.
9841# The last name is the one that the linker finds with -lNAME.
9842library_names_spec=$lt_library_names_spec
9843
9844# The coded name of the library, if different from the real name.
9845soname_spec=$lt_soname_spec
9846
9847# Commands used to build and install an old-style archive.
9848RANLIB=$lt_RANLIB
9849old_archive_cmds=$lt_old_archive_cmds
9850old_postinstall_cmds=$lt_old_postinstall_cmds
9851old_postuninstall_cmds=$lt_old_postuninstall_cmds
9852
9853# Create an old-style archive from a shared archive.
9854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9855
9856# Create a temporary old-style archive to link instead of a shared archive.
9857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9858
9859# Commands used to build and install a shared archive.
9860archive_cmds=$lt_archive_cmds
9861archive_expsym_cmds=$lt_archive_expsym_cmds
9862postinstall_cmds=$lt_postinstall_cmds
9863postuninstall_cmds=$lt_postuninstall_cmds
9864
9865# Commands used to build a loadable module (assumed same as above if empty)
9866module_cmds=$lt_module_cmds
9867module_expsym_cmds=$lt_module_expsym_cmds
9868
9869# Commands to strip libraries.
9870old_striplib=$lt_old_striplib
9871striplib=$lt_striplib
9872
9873# Dependencies to place before the objects being linked to create a
9874# shared library.
9875predep_objects=$lt_predep_objects
9876
9877# Dependencies to place after the objects being linked to create a
9878# shared library.
9879postdep_objects=$lt_postdep_objects
9880
9881# Dependencies to place before the objects being linked to create a
9882# shared library.
9883predeps=$lt_predeps
9884
9885# Dependencies to place after the objects being linked to create a
9886# shared library.
9887postdeps=$lt_postdeps
9888
9889# The library search path used internally by the compiler when linking
9890# a shared library.
9891compiler_lib_search_path=$lt_compiler_lib_search_path
9892
9893# Method to check whether dependent libraries are shared objects.
9894deplibs_check_method=$lt_deplibs_check_method
9895
9896# Command to use when deplibs_check_method == file_magic.
9897file_magic_cmd=$lt_file_magic_cmd
9898
9899# Flag that allows shared libraries with undefined symbols to be built.
9900allow_undefined_flag=$lt_allow_undefined_flag
9901
9902# Flag that forces no undefined symbols.
9903no_undefined_flag=$lt_no_undefined_flag
9904
9905# Commands used to finish a libtool library installation in a directory.
9906finish_cmds=$lt_finish_cmds
9907
9908# Same as above, but a single script fragment to be evaled but not shown.
9909finish_eval=$lt_finish_eval
9910
9911# Take the output of nm and produce a listing of raw symbols and C names.
9912global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9913
9914# Transform the output of nm in a proper C declaration
9915global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9916
9917# Transform the output of nm in a C name address pair
9918global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9919
9920# This is the shared library runtime path variable.
9921runpath_var=$runpath_var
9922
9923# This is the shared library path variable.
9924shlibpath_var=$shlibpath_var
9925
9926# Is shlibpath searched before the hard-coded library search path?
9927shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9928
9929# How to hardcode a shared library path into an executable.
9930hardcode_action=$hardcode_action
9931
9932# Whether we should hardcode library paths into libraries.
9933hardcode_into_libs=$hardcode_into_libs
9934
9935# Flag to hardcode \$libdir into a binary during linking.
9936# This must work even if \$libdir does not exist.
9937hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9938
9939# If ld is used when linking, flag to hardcode \$libdir into
9940# a binary during linking. This must work even if \$libdir does
9941# not exist.
9942hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9943
9944# Whether we need a single -rpath flag with a separated argument.
9945hardcode_libdir_separator=$lt_hardcode_libdir_separator
9946
9947# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9948# resulting binary.
9949hardcode_direct=$hardcode_direct
9950
9951# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9952# resulting binary.
9953hardcode_minus_L=$hardcode_minus_L
9954
9955# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9956# the resulting binary.
9957hardcode_shlibpath_var=$hardcode_shlibpath_var
9958
9959# Set to yes if building a shared library automatically hardcodes DIR into the library
9960# and all subsequent libraries and executables linked against it.
9961hardcode_automatic=$hardcode_automatic
9962
9963# Variables whose values should be saved in libtool wrapper scripts and
9964# restored at relink time.
9965variables_saved_for_relink="$variables_saved_for_relink"
9966
9967# Whether libtool must link a program against all its dependency libraries.
9968link_all_deplibs=$link_all_deplibs
9969
9970# Compile-time system search path for libraries
9971sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9972
9973# Run-time system search path for libraries
9974sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9975
9976# Fix the shell variable \$srcfile for the compiler.
9977fix_srcfile_path="$fix_srcfile_path"
9978
9979# Set to yes if exported symbols are required.
9980always_export_symbols=$always_export_symbols
9981
9982# The commands to list exported symbols.
9983export_symbols_cmds=$lt_export_symbols_cmds
9984
9985# The commands to extract the exported symbol list from a shared archive.
9986extract_expsyms_cmds=$lt_extract_expsyms_cmds
9987
9988# Symbols that should not be listed in the preloaded symbols.
9989exclude_expsyms=$lt_exclude_expsyms
9990
9991# Symbols that must always be exported.
9992include_expsyms=$lt_include_expsyms
9993
9994# ### END LIBTOOL CONFIG
9995
9996__EOF__
9997
9998
9999  case $host_os in
10000  aix3*)
10001    cat <<\EOF >> "$cfgfile"
10002
10003# AIX sometimes has problems with the GCC collect2 program.  For some
10004# reason, if we set the COLLECT_NAMES environment variable, the problems
10005# vanish in a puff of smoke.
10006if test "X${COLLECT_NAMES+set}" != Xset; then
10007  COLLECT_NAMES=
10008  export COLLECT_NAMES
10009fi
10010EOF
10011    ;;
10012  esac
10013
10014  # We use sed instead of cat because bash on DJGPP gets confused if
10015  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10016  # text mode, it properly converts lines to CR/LF.  This bash problem
10017  # is reportedly fixed, but why not run on old versions too?
10018  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10019
10020  mv -f "$cfgfile" "$ofile" || \
10021    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10022  chmod +x "$ofile"
10023
10024else
10025  # If there is no Makefile yet, we rely on a make rule to execute
10026  # `config.status --recheck' to rerun these tests and create the
10027  # libtool script then.
10028  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10029  if test -f "$ltmain_in"; then
10030    test -f Makefile && make "$ltmain"
10031  fi
10032fi
10033
10034
10035ac_ext=c
10036ac_cpp='$CPP $CPPFLAGS'
10037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10039ac_compiler_gnu=$ac_cv_c_compiler_gnu
10040
10041CC="$lt_save_CC"
10042
10043
10044# Check whether --with-tags or --without-tags was given.
10045if test "${with_tags+set}" = set; then
10046  withval="$with_tags"
10047  tagnames="$withval"
10048fi;
10049
10050if test -f "$ltmain" && test -n "$tagnames"; then
10051  if test ! -f "${ofile}"; then
10052    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10053echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10054  fi
10055
10056  if test -z "$LTCC"; then
10057    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10058    if test -z "$LTCC"; then
10059      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10060echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10061    else
10062      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10063echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10064    fi
10065  fi
10066
10067  # Extract list of available tagged configurations in $ofile.
10068  # Note that this assumes the entire list is on one line.
10069  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10070
10071  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10072  for tagname in $tagnames; do
10073    IFS="$lt_save_ifs"
10074    # Check whether tagname contains only valid characters
10075    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10076    "") ;;
10077    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10078echo "$as_me: error: invalid tag name: $tagname" >&2;}
10079   { (exit 1); exit 1; }; }
10080	;;
10081    esac
10082
10083    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10084    then
10085      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10086echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10087   { (exit 1); exit 1; }; }
10088    fi
10089
10090    # Update the list of available tags.
10091    if test -n "$tagname"; then
10092      echo appending configuration tag \"$tagname\" to $ofile
10093
10094      case $tagname in
10095      CXX)
10096	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10097	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10098	    (test "X$CXX" != "Xg++"))) ; then
10099	  ac_ext=cc
10100ac_cpp='$CXXCPP $CPPFLAGS'
10101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10104
10105
10106
10107
10108archive_cmds_need_lc_CXX=no
10109allow_undefined_flag_CXX=
10110always_export_symbols_CXX=no
10111archive_expsym_cmds_CXX=
10112export_dynamic_flag_spec_CXX=
10113hardcode_direct_CXX=no
10114hardcode_libdir_flag_spec_CXX=
10115hardcode_libdir_flag_spec_ld_CXX=
10116hardcode_libdir_separator_CXX=
10117hardcode_minus_L_CXX=no
10118hardcode_automatic_CXX=no
10119module_cmds_CXX=
10120module_expsym_cmds_CXX=
10121link_all_deplibs_CXX=unknown
10122old_archive_cmds_CXX=$old_archive_cmds
10123no_undefined_flag_CXX=
10124whole_archive_flag_spec_CXX=
10125enable_shared_with_static_runtimes_CXX=no
10126
10127# Dependencies to place before and after the object being linked:
10128predep_objects_CXX=
10129postdep_objects_CXX=
10130predeps_CXX=
10131postdeps_CXX=
10132compiler_lib_search_path_CXX=
10133
10134# Source file extension for C++ test sources.
10135ac_ext=cpp
10136
10137# Object file extension for compiled C++ test sources.
10138objext=o
10139objext_CXX=$objext
10140
10141# Code to be used in simple compile tests
10142lt_simple_compile_test_code="int some_variable = 0;\n"
10143
10144# Code to be used in simple link tests
10145lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10146
10147# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10148
10149# If no C compiler was specified, use CC.
10150LTCC=${LTCC-"$CC"}
10151
10152# Allow CC to be a program name with arguments.
10153compiler=$CC
10154
10155
10156# save warnings/boilerplate of simple test code
10157ac_outfile=conftest.$ac_objext
10158printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10160_lt_compiler_boilerplate=`cat conftest.err`
10161$rm conftest*
10162
10163ac_outfile=conftest.$ac_objext
10164printf "$lt_simple_link_test_code" >conftest.$ac_ext
10165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10166_lt_linker_boilerplate=`cat conftest.err`
10167$rm conftest*
10168
10169
10170# Allow CC to be a program name with arguments.
10171lt_save_CC=$CC
10172lt_save_LD=$LD
10173lt_save_GCC=$GCC
10174GCC=$GXX
10175lt_save_with_gnu_ld=$with_gnu_ld
10176lt_save_path_LD=$lt_cv_path_LD
10177if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10178  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10179else
10180  unset lt_cv_prog_gnu_ld
10181fi
10182if test -n "${lt_cv_path_LDCXX+set}"; then
10183  lt_cv_path_LD=$lt_cv_path_LDCXX
10184else
10185  unset lt_cv_path_LD
10186fi
10187test -z "${LDCXX+set}" || LD=$LDCXX
10188CC=${CXX-"c++"}
10189compiler=$CC
10190compiler_CXX=$CC
10191for cc_temp in $compiler""; do
10192  case $cc_temp in
10193    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10194    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10195    \-*) ;;
10196    *) break;;
10197  esac
10198done
10199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10200
10201
10202# We don't want -fno-exception wen compiling C++ code, so set the
10203# no_builtin_flag separately
10204if test "$GXX" = yes; then
10205  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10206else
10207  lt_prog_compiler_no_builtin_flag_CXX=
10208fi
10209
10210if test "$GXX" = yes; then
10211  # Set up default GNU C++ configuration
10212
10213
10214# Check whether --with-gnu-ld or --without-gnu-ld was given.
10215if test "${with_gnu_ld+set}" = set; then
10216  withval="$with_gnu_ld"
10217  test "$withval" = no || with_gnu_ld=yes
10218else
10219  with_gnu_ld=no
10220fi;
10221ac_prog=ld
10222if test "$GCC" = yes; then
10223  # Check if gcc -print-prog-name=ld gives a path.
10224  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10225echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10226  case $host in
10227  *-*-mingw*)
10228    # gcc leaves a trailing carriage return which upsets mingw
10229    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10230  *)
10231    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10232  esac
10233  case $ac_prog in
10234    # Accept absolute paths.
10235    [\\/]* | ?:[\\/]*)
10236      re_direlt='/[^/][^/]*/\.\./'
10237      # Canonicalize the pathname of ld
10238      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10239      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10240	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10241      done
10242      test -z "$LD" && LD="$ac_prog"
10243      ;;
10244  "")
10245    # If it fails, then pretend we aren't using GCC.
10246    ac_prog=ld
10247    ;;
10248  *)
10249    # If it is relative, then search for the first ld in PATH.
10250    with_gnu_ld=unknown
10251    ;;
10252  esac
10253elif test "$with_gnu_ld" = yes; then
10254  echo "$as_me:$LINENO: checking for GNU ld" >&5
10255echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10256else
10257  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10258echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10259fi
10260if test "${lt_cv_path_LD+set}" = set; then
10261  echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263  if test -z "$LD"; then
10264  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10265  for ac_dir in $PATH; do
10266    IFS="$lt_save_ifs"
10267    test -z "$ac_dir" && ac_dir=.
10268    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10269      lt_cv_path_LD="$ac_dir/$ac_prog"
10270      # Check to see if the program is GNU ld.  I'd rather use --version,
10271      # but apparently some variants of GNU ld only accept -v.
10272      # Break only if it was the GNU/non-GNU ld that we prefer.
10273      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10274      *GNU* | *'with BFD'*)
10275	test "$with_gnu_ld" != no && break
10276	;;
10277      *)
10278	test "$with_gnu_ld" != yes && break
10279	;;
10280      esac
10281    fi
10282  done
10283  IFS="$lt_save_ifs"
10284else
10285  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10286fi
10287fi
10288
10289LD="$lt_cv_path_LD"
10290if test -n "$LD"; then
10291  echo "$as_me:$LINENO: result: $LD" >&5
10292echo "${ECHO_T}$LD" >&6
10293else
10294  echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296fi
10297test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10298echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10299   { (exit 1); exit 1; }; }
10300echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10301echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10302if test "${lt_cv_prog_gnu_ld+set}" = set; then
10303  echo $ECHO_N "(cached) $ECHO_C" >&6
10304else
10305  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10306case `$LD -v 2>&1 </dev/null` in
10307*GNU* | *'with BFD'*)
10308  lt_cv_prog_gnu_ld=yes
10309  ;;
10310*)
10311  lt_cv_prog_gnu_ld=no
10312  ;;
10313esac
10314fi
10315echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10316echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10317with_gnu_ld=$lt_cv_prog_gnu_ld
10318
10319
10320
10321  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10322  # archiving commands below assume that GNU ld is being used.
10323  if test "$with_gnu_ld" = yes; then
10324    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325    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'
10326
10327    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10328    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10329
10330    # If archive_cmds runs LD, not CC, wlarc should be empty
10331    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10332    #     investigate it a little bit more. (MM)
10333    wlarc='${wl}'
10334
10335    # ancient GNU ld didn't support --whole-archive et. al.
10336    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10337	grep 'no-whole-archive' > /dev/null; then
10338      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10339    else
10340      whole_archive_flag_spec_CXX=
10341    fi
10342  else
10343    with_gnu_ld=no
10344    wlarc=
10345
10346    # A generic and very simple default shared library creation
10347    # command for GNU C++ for the case where it uses the native
10348    # linker, instead of GNU ld.  If possible, this setting should
10349    # overridden to take advantage of the native linker features on
10350    # the platform it is being used on.
10351    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10352  fi
10353
10354  # Commands to make compiler produce verbose output that lists
10355  # what "hidden" libraries, object files and flags are used when
10356  # linking a shared library.
10357  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10358
10359else
10360  GXX=no
10361  with_gnu_ld=no
10362  wlarc=
10363fi
10364
10365# PORTME: fill in a description of your system's C++ link characteristics
10366echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10367echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10368ld_shlibs_CXX=yes
10369case $host_os in
10370  aix3*)
10371    # FIXME: insert proper C++ library support
10372    ld_shlibs_CXX=no
10373    ;;
10374  aix4* | aix5*)
10375    if test "$host_cpu" = ia64; then
10376      # On IA64, the linker does run time linking by default, so we don't
10377      # have to do anything special.
10378      aix_use_runtimelinking=no
10379      exp_sym_flag='-Bexport'
10380      no_entry_flag=""
10381    else
10382      aix_use_runtimelinking=no
10383
10384      # Test if we are trying to use run time linking or normal
10385      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10386      # need to do runtime linking.
10387      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10388	for ld_flag in $LDFLAGS; do
10389	  case $ld_flag in
10390	  *-brtl*)
10391	    aix_use_runtimelinking=yes
10392	    break
10393	    ;;
10394	  esac
10395	done
10396      esac
10397
10398      exp_sym_flag='-bexport'
10399      no_entry_flag='-bnoentry'
10400    fi
10401
10402    # When large executables or shared objects are built, AIX ld can
10403    # have problems creating the table of contents.  If linking a library
10404    # or program results in "error TOC overflow" add -mminimal-toc to
10405    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10406    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10407
10408    archive_cmds_CXX=''
10409    hardcode_direct_CXX=yes
10410    hardcode_libdir_separator_CXX=':'
10411    link_all_deplibs_CXX=yes
10412
10413    if test "$GXX" = yes; then
10414      case $host_os in aix4.[012]|aix4.[012].*)
10415      # We only want to do this on AIX 4.2 and lower, the check
10416      # below for broken collect2 doesn't work under 4.3+
10417	collect2name=`${CC} -print-prog-name=collect2`
10418	if test -f "$collect2name" && \
10419	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10420	then
10421	  # We have reworked collect2
10422	  hardcode_direct_CXX=yes
10423	else
10424	  # We have old collect2
10425	  hardcode_direct_CXX=unsupported
10426	  # It fails to find uninstalled libraries when the uninstalled
10427	  # path is not listed in the libpath.  Setting hardcode_minus_L
10428	  # to unsupported forces relinking
10429	  hardcode_minus_L_CXX=yes
10430	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10431	  hardcode_libdir_separator_CXX=
10432	fi
10433      esac
10434      shared_flag='-shared'
10435      if test "$aix_use_runtimelinking" = yes; then
10436	shared_flag="$shared_flag "'${wl}-G'
10437      fi
10438    else
10439      # not using gcc
10440      if test "$host_cpu" = ia64; then
10441	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10442	# chokes on -Wl,-G. The following line is correct:
10443	shared_flag='-G'
10444      else
10445	if test "$aix_use_runtimelinking" = yes; then
10446	  shared_flag='${wl}-G'
10447	else
10448	  shared_flag='${wl}-bM:SRE'
10449	fi
10450      fi
10451    fi
10452
10453    # It seems that -bexpall does not export symbols beginning with
10454    # underscore (_), so it is better to generate a list of symbols to export.
10455    always_export_symbols_CXX=yes
10456    if test "$aix_use_runtimelinking" = yes; then
10457      # Warning - without using the other runtime loading flags (-brtl),
10458      # -berok will link without error, but may produce a broken library.
10459      allow_undefined_flag_CXX='-berok'
10460      # Determine the default libpath from the value encoded in an empty executable.
10461      cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h.  */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h.  */
10467
10468int
10469main ()
10470{
10471
10472  ;
10473  return 0;
10474}
10475_ACEOF
10476rm -f conftest.$ac_objext conftest$ac_exeext
10477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10478  (eval $ac_link) 2>conftest.er1
10479  ac_status=$?
10480  grep -v '^ *+' conftest.er1 >conftest.err
10481  rm -f conftest.er1
10482  cat conftest.err >&5
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); } &&
10485	 { ac_try='test -z "$ac_cxx_werror_flag"
10486			 || test ! -s conftest.err'
10487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488  (eval $ac_try) 2>&5
10489  ac_status=$?
10490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491  (exit $ac_status); }; } &&
10492	 { ac_try='test -s conftest$ac_exeext'
10493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494  (eval $ac_try) 2>&5
10495  ac_status=$?
10496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497  (exit $ac_status); }; }; then
10498
10499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10500}'`
10501# Check for a 64-bit object if we didn't find anything.
10502if 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; }
10503}'`; fi
10504else
10505  echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
10507
10508fi
10509rm -f conftest.err conftest.$ac_objext \
10510      conftest$ac_exeext conftest.$ac_ext
10511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10512
10513      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10514
10515      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10516     else
10517      if test "$host_cpu" = ia64; then
10518	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10519	allow_undefined_flag_CXX="-z nodefs"
10520	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10521      else
10522	# Determine the default libpath from the value encoded in an empty executable.
10523	cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h.  */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h.  */
10529
10530int
10531main ()
10532{
10533
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext conftest$ac_exeext
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540  (eval $ac_link) 2>conftest.er1
10541  ac_status=$?
10542  grep -v '^ *+' conftest.er1 >conftest.err
10543  rm -f conftest.er1
10544  cat conftest.err >&5
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } &&
10547	 { ac_try='test -z "$ac_cxx_werror_flag"
10548			 || test ! -s conftest.err'
10549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550  (eval $ac_try) 2>&5
10551  ac_status=$?
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); }; } &&
10554	 { ac_try='test -s conftest$ac_exeext'
10555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556  (eval $ac_try) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); }; }; then
10560
10561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10562}'`
10563# Check for a 64-bit object if we didn't find anything.
10564if 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; }
10565}'`; fi
10566else
10567  echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570fi
10571rm -f conftest.err conftest.$ac_objext \
10572      conftest$ac_exeext conftest.$ac_ext
10573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10574
10575	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10576	# Warning - without using the other run time loading flags,
10577	# -berok will link without error, but may produce a broken library.
10578	no_undefined_flag_CXX=' ${wl}-bernotok'
10579	allow_undefined_flag_CXX=' ${wl}-berok'
10580	# -bexpall does not export symbols beginning with underscore (_)
10581	always_export_symbols_CXX=yes
10582	# Exported symbols can be pulled into shared objects from archives
10583	whole_archive_flag_spec_CXX=' '
10584	archive_cmds_need_lc_CXX=yes
10585	# This is similar to how AIX traditionally builds its shared libraries.
10586	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10587      fi
10588    fi
10589    ;;
10590  chorus*)
10591    case $cc_basename in
10592      *)
10593	# FIXME: insert proper C++ library support
10594	ld_shlibs_CXX=no
10595	;;
10596    esac
10597    ;;
10598
10599
10600  cygwin* | mingw* | pw32*)
10601    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10602    # as there is no search path for DLLs.
10603    hardcode_libdir_flag_spec_CXX='-L$libdir'
10604    allow_undefined_flag_CXX=unsupported
10605    always_export_symbols_CXX=no
10606    enable_shared_with_static_runtimes_CXX=yes
10607
10608    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10609      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10610      # If the export-symbols file already is a .def file (1st line
10611      # is EXPORTS), use it as is; otherwise, prepend...
10612      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10613	cp $export_symbols $output_objdir/$soname.def;
10614      else
10615	echo EXPORTS > $output_objdir/$soname.def;
10616	cat $export_symbols >> $output_objdir/$soname.def;
10617      fi~
10618      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10619    else
10620      ld_shlibs_CXX=no
10621    fi
10622  ;;
10623      darwin* | rhapsody*)
10624        case $host_os in
10625        rhapsody* | darwin1.[012])
10626         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10627         ;;
10628       *) # Darwin 1.3 on
10629         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10630           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10631         else
10632           case ${MACOSX_DEPLOYMENT_TARGET} in
10633             10.[012])
10634               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10635               ;;
10636             10.*)
10637               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10638               ;;
10639           esac
10640         fi
10641         ;;
10642        esac
10643      archive_cmds_need_lc_CXX=no
10644      hardcode_direct_CXX=no
10645      hardcode_automatic_CXX=yes
10646      hardcode_shlibpath_var_CXX=unsupported
10647      whole_archive_flag_spec_CXX=''
10648      link_all_deplibs_CXX=yes
10649
10650    if test "$GXX" = yes ; then
10651      lt_int_apple_cc_single_mod=no
10652      output_verbose_link_cmd='echo'
10653      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10654       lt_int_apple_cc_single_mod=yes
10655      fi
10656      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10657       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10658      else
10659          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'
10660        fi
10661        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10662        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10663          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10664            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}'
10665          else
10666            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}'
10667          fi
10668            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}'
10669      else
10670      case $cc_basename in
10671        xlc*)
10672         output_verbose_link_cmd='echo'
10673          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'
10674          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10675          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10676          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}'
10677          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}'
10678          ;;
10679       *)
10680         ld_shlibs_CXX=no
10681          ;;
10682      esac
10683      fi
10684        ;;
10685
10686  dgux*)
10687    case $cc_basename in
10688      ec++*)
10689	# FIXME: insert proper C++ library support
10690	ld_shlibs_CXX=no
10691	;;
10692      ghcx*)
10693	# Green Hills C++ Compiler
10694	# FIXME: insert proper C++ library support
10695	ld_shlibs_CXX=no
10696	;;
10697      *)
10698	# FIXME: insert proper C++ library support
10699	ld_shlibs_CXX=no
10700	;;
10701    esac
10702    ;;
10703  freebsd[12]*)
10704    # C++ shared libraries reported to be fairly broken before switch to ELF
10705    ld_shlibs_CXX=no
10706    ;;
10707  freebsd-elf*)
10708    archive_cmds_need_lc_CXX=no
10709    ;;
10710  freebsd* | kfreebsd*-gnu | dragonfly*)
10711    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10712    # conventions
10713    ld_shlibs_CXX=yes
10714    ;;
10715  gnu*)
10716    ;;
10717  hpux9*)
10718    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10719    hardcode_libdir_separator_CXX=:
10720    export_dynamic_flag_spec_CXX='${wl}-E'
10721    hardcode_direct_CXX=yes
10722    hardcode_minus_L_CXX=yes # Not in the search PATH,
10723				# but as the default
10724				# location of the library.
10725
10726    case $cc_basename in
10727    CC*)
10728      # FIXME: insert proper C++ library support
10729      ld_shlibs_CXX=no
10730      ;;
10731    aCC*)
10732      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'
10733      # Commands to make compiler produce verbose output that lists
10734      # what "hidden" libraries, object files and flags are used when
10735      # linking a shared library.
10736      #
10737      # There doesn't appear to be a way to prevent this compiler from
10738      # explicitly linking system object files so we need to strip them
10739      # from the output so that they don't get included in the library
10740      # dependencies.
10741      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'
10742      ;;
10743    *)
10744      if test "$GXX" = yes; then
10745        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'
10746      else
10747        # FIXME: insert proper C++ library support
10748        ld_shlibs_CXX=no
10749      fi
10750      ;;
10751    esac
10752    ;;
10753  hpux10*|hpux11*)
10754    if test $with_gnu_ld = no; then
10755      case $host_cpu in
10756      hppa*64*)
10757	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10758	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10759	hardcode_libdir_separator_CXX=:
10760        ;;
10761      ia64*)
10762	hardcode_libdir_flag_spec_CXX='-L$libdir'
10763        ;;
10764      *)
10765	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10766	hardcode_libdir_separator_CXX=:
10767	export_dynamic_flag_spec_CXX='${wl}-E'
10768        ;;
10769      esac
10770    fi
10771    case $host_cpu in
10772    hppa*64*)
10773      hardcode_direct_CXX=no
10774      hardcode_shlibpath_var_CXX=no
10775      ;;
10776    ia64*)
10777      hardcode_direct_CXX=no
10778      hardcode_shlibpath_var_CXX=no
10779      hardcode_minus_L_CXX=yes # Not in the search PATH,
10780					      # but as the default
10781					      # location of the library.
10782      ;;
10783    *)
10784      hardcode_direct_CXX=yes
10785      hardcode_minus_L_CXX=yes # Not in the search PATH,
10786					      # but as the default
10787					      # location of the library.
10788      ;;
10789    esac
10790
10791    case $cc_basename in
10792      CC*)
10793	# FIXME: insert proper C++ library support
10794	ld_shlibs_CXX=no
10795	;;
10796      aCC*)
10797	case $host_cpu in
10798	hppa*64*|ia64*)
10799	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10800	  ;;
10801	*)
10802	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10803	  ;;
10804	esac
10805	# Commands to make compiler produce verbose output that lists
10806	# what "hidden" libraries, object files and flags are used when
10807	# linking a shared library.
10808	#
10809	# There doesn't appear to be a way to prevent this compiler from
10810	# explicitly linking system object files so we need to strip them
10811	# from the output so that they don't get included in the library
10812	# dependencies.
10813	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'
10814	;;
10815      *)
10816	if test "$GXX" = yes; then
10817	  if test $with_gnu_ld = no; then
10818	    case $host_cpu in
10819	    ia64*|hppa*64*)
10820	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10821	      ;;
10822	    *)
10823	      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'
10824	      ;;
10825	    esac
10826	  fi
10827	else
10828	  # FIXME: insert proper C++ library support
10829	  ld_shlibs_CXX=no
10830	fi
10831	;;
10832    esac
10833    ;;
10834  irix5* | irix6*)
10835    case $cc_basename in
10836      CC*)
10837	# SGI C++
10838	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'
10839
10840	# Archives containing C++ object files must be created using
10841	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10842	# necessary to make sure instantiated templates are included
10843	# in the archive.
10844	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10845	;;
10846      *)
10847	if test "$GXX" = yes; then
10848	  if test "$with_gnu_ld" = no; then
10849	    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'
10850	  else
10851	    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'
10852	  fi
10853	fi
10854	link_all_deplibs_CXX=yes
10855	;;
10856    esac
10857    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10858    hardcode_libdir_separator_CXX=:
10859    ;;
10860  linux*)
10861    case $cc_basename in
10862      KCC*)
10863	# Kuck and Associates, Inc. (KAI) C++ Compiler
10864
10865	# KCC will only create a shared library if the output file
10866	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10867	# to its proper name (with version) after linking.
10868	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'
10869	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'
10870	# Commands to make compiler produce verbose output that lists
10871	# what "hidden" libraries, object files and flags are used when
10872	# linking a shared library.
10873	#
10874	# There doesn't appear to be a way to prevent this compiler from
10875	# explicitly linking system object files so we need to strip them
10876	# from the output so that they don't get included in the library
10877	# dependencies.
10878	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'
10879
10880	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10881	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10882
10883	# Archives containing C++ object files must be created using
10884	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10885	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10886	;;
10887      icpc*)
10888	# Intel C++
10889	with_gnu_ld=yes
10890	# version 8.0 and above of icpc choke on multiply defined symbols
10891	# if we add $predep_objects and $postdep_objects, however 7.1 and
10892	# earlier do not add the objects themselves.
10893	case `$CC -V 2>&1` in
10894	*"Version 7."*)
10895  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896  	  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'
10897	  ;;
10898	*)  # Version 8.0 or newer
10899	  tmp_idyn=
10900	  case $host_cpu in
10901	    ia64*) tmp_idyn=' -i_dynamic';;
10902	  esac
10903  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10904	  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'
10905	  ;;
10906	esac
10907	archive_cmds_need_lc_CXX=no
10908	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10909	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10910	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10911	;;
10912      pgCC*)
10913        # Portland Group C++ compiler
10914	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10915  	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'
10916
10917	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10918	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919	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'
10920        ;;
10921      cxx*)
10922	# Compaq C++
10923	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10924	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'
10925
10926	runpath_var=LD_RUN_PATH
10927	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10928	hardcode_libdir_separator_CXX=:
10929
10930	# Commands to make compiler produce verbose output that lists
10931	# what "hidden" libraries, object files and flags are used when
10932	# linking a shared library.
10933	#
10934	# There doesn't appear to be a way to prevent this compiler from
10935	# explicitly linking system object files so we need to strip them
10936	# from the output so that they don't get included in the library
10937	# dependencies.
10938	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'
10939	;;
10940    esac
10941    ;;
10942  lynxos*)
10943    # FIXME: insert proper C++ library support
10944    ld_shlibs_CXX=no
10945    ;;
10946  m88k*)
10947    # FIXME: insert proper C++ library support
10948    ld_shlibs_CXX=no
10949    ;;
10950  mvs*)
10951    case $cc_basename in
10952      cxx*)
10953	# FIXME: insert proper C++ library support
10954	ld_shlibs_CXX=no
10955	;;
10956      *)
10957	# FIXME: insert proper C++ library support
10958	ld_shlibs_CXX=no
10959	;;
10960    esac
10961    ;;
10962  netbsd*)
10963    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10964      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10965      wlarc=
10966      hardcode_libdir_flag_spec_CXX='-R$libdir'
10967      hardcode_direct_CXX=yes
10968      hardcode_shlibpath_var_CXX=no
10969    fi
10970    # Workaround some broken pre-1.5 toolchains
10971    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10972    ;;
10973  openbsd2*)
10974    # C++ shared libraries are fairly broken
10975    ld_shlibs_CXX=no
10976    ;;
10977  openbsd*)
10978    hardcode_direct_CXX=yes
10979    hardcode_shlibpath_var_CXX=no
10980    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10981    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10982    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10983      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10984      export_dynamic_flag_spec_CXX='${wl}-E'
10985      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10986    fi
10987    output_verbose_link_cmd='echo'
10988    ;;
10989  osf3*)
10990    case $cc_basename in
10991      KCC*)
10992	# Kuck and Associates, Inc. (KAI) C++ Compiler
10993
10994	# KCC will only create a shared library if the output file
10995	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10996	# to its proper name (with version) after linking.
10997	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'
10998
10999	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11000	hardcode_libdir_separator_CXX=:
11001
11002	# Archives containing C++ object files must be created using
11003	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11004	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11005
11006	;;
11007      RCC*)
11008	# Rational C++ 2.4.1
11009	# FIXME: insert proper C++ library support
11010	ld_shlibs_CXX=no
11011	;;
11012      cxx*)
11013	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11014	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'
11015
11016	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11017	hardcode_libdir_separator_CXX=:
11018
11019	# Commands to make compiler produce verbose output that lists
11020	# what "hidden" libraries, object files and flags are used when
11021	# linking a shared library.
11022	#
11023	# There doesn't appear to be a way to prevent this compiler from
11024	# explicitly linking system object files so we need to strip them
11025	# from the output so that they don't get included in the library
11026	# dependencies.
11027	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'
11028	;;
11029      *)
11030	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11031	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11032	  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'
11033
11034	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11035	  hardcode_libdir_separator_CXX=:
11036
11037	  # Commands to make compiler produce verbose output that lists
11038	  # what "hidden" libraries, object files and flags are used when
11039	  # linking a shared library.
11040	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11041
11042	else
11043	  # FIXME: insert proper C++ library support
11044	  ld_shlibs_CXX=no
11045	fi
11046	;;
11047    esac
11048    ;;
11049  osf4* | osf5*)
11050    case $cc_basename in
11051      KCC*)
11052	# Kuck and Associates, Inc. (KAI) C++ Compiler
11053
11054	# KCC will only create a shared library if the output file
11055	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11056	# to its proper name (with version) after linking.
11057	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'
11058
11059	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11060	hardcode_libdir_separator_CXX=:
11061
11062	# Archives containing C++ object files must be created using
11063	# the KAI C++ compiler.
11064	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11065	;;
11066      RCC*)
11067	# Rational C++ 2.4.1
11068	# FIXME: insert proper C++ library support
11069	ld_shlibs_CXX=no
11070	;;
11071      cxx*)
11072	allow_undefined_flag_CXX=' -expect_unresolved \*'
11073	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'
11074	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11075	  echo "-hidden">> $lib.exp~
11076	  $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~
11077	  $rm $lib.exp'
11078
11079	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11080	hardcode_libdir_separator_CXX=:
11081
11082	# Commands to make compiler produce verbose output that lists
11083	# what "hidden" libraries, object files and flags are used when
11084	# linking a shared library.
11085	#
11086	# There doesn't appear to be a way to prevent this compiler from
11087	# explicitly linking system object files so we need to strip them
11088	# from the output so that they don't get included in the library
11089	# dependencies.
11090	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'
11091	;;
11092      *)
11093	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11094	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11095	 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'
11096
11097	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11098	  hardcode_libdir_separator_CXX=:
11099
11100	  # Commands to make compiler produce verbose output that lists
11101	  # what "hidden" libraries, object files and flags are used when
11102	  # linking a shared library.
11103	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11104
11105	else
11106	  # FIXME: insert proper C++ library support
11107	  ld_shlibs_CXX=no
11108	fi
11109	;;
11110    esac
11111    ;;
11112  psos*)
11113    # FIXME: insert proper C++ library support
11114    ld_shlibs_CXX=no
11115    ;;
11116  sco*)
11117    archive_cmds_need_lc_CXX=no
11118    case $cc_basename in
11119      CC*)
11120	# FIXME: insert proper C++ library support
11121	ld_shlibs_CXX=no
11122	;;
11123      *)
11124	# FIXME: insert proper C++ library support
11125	ld_shlibs_CXX=no
11126	;;
11127    esac
11128    ;;
11129  sunos4*)
11130    case $cc_basename in
11131      CC*)
11132	# Sun C++ 4.x
11133	# FIXME: insert proper C++ library support
11134	ld_shlibs_CXX=no
11135	;;
11136      lcc*)
11137	# Lucid
11138	# FIXME: insert proper C++ library support
11139	ld_shlibs_CXX=no
11140	;;
11141      *)
11142	# FIXME: insert proper C++ library support
11143	ld_shlibs_CXX=no
11144	;;
11145    esac
11146    ;;
11147  solaris*)
11148    case $cc_basename in
11149      CC*)
11150	# Sun C++ 4.2, 5.x and Centerline C++
11151        archive_cmds_need_lc_CXX=yes
11152	no_undefined_flag_CXX=' -zdefs'
11153	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11154	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11155	$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'
11156
11157	hardcode_libdir_flag_spec_CXX='-R$libdir'
11158	hardcode_shlibpath_var_CXX=no
11159	case $host_os in
11160	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11161	  *)
11162	    # The C++ compiler is used as linker so we must use $wl
11163	    # flag to pass the commands to the underlying system
11164	    # linker. We must also pass each convience library through
11165	    # to the system linker between allextract/defaultextract.
11166	    # The C++ compiler will combine linker options so we
11167	    # cannot just pass the convience library names through
11168	    # without $wl.
11169	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11170	    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'
11171	    ;;
11172	esac
11173	link_all_deplibs_CXX=yes
11174
11175	output_verbose_link_cmd='echo'
11176
11177	# Archives containing C++ object files must be created using
11178	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11179	# necessary to make sure instantiated templates are included
11180	# in the archive.
11181	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11182	;;
11183      gcx*)
11184	# Green Hills C++ Compiler
11185	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11186
11187	# The C++ compiler must be used to create the archive.
11188	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11189	;;
11190      *)
11191	# GNU C++ compiler with Solaris linker
11192	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11193	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11194	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11195	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11196	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11197		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11198
11199	    # Commands to make compiler produce verbose output that lists
11200	    # what "hidden" libraries, object files and flags are used when
11201	    # linking a shared library.
11202	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11203	  else
11204	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11205	    # platform.
11206	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11207	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11208		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11209
11210	    # Commands to make compiler produce verbose output that lists
11211	    # what "hidden" libraries, object files and flags are used when
11212	    # linking a shared library.
11213	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11214	  fi
11215
11216	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11217	fi
11218	;;
11219    esac
11220    ;;
11221  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11222    archive_cmds_need_lc_CXX=no
11223    ;;
11224  tandem*)
11225    case $cc_basename in
11226      NCC*)
11227	# NonStop-UX NCC 3.20
11228	# FIXME: insert proper C++ library support
11229	ld_shlibs_CXX=no
11230	;;
11231      *)
11232	# FIXME: insert proper C++ library support
11233	ld_shlibs_CXX=no
11234	;;
11235    esac
11236    ;;
11237  vxworks*)
11238    # FIXME: insert proper C++ library support
11239    ld_shlibs_CXX=no
11240    ;;
11241  *)
11242    # FIXME: insert proper C++ library support
11243    ld_shlibs_CXX=no
11244    ;;
11245esac
11246echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11247echo "${ECHO_T}$ld_shlibs_CXX" >&6
11248test "$ld_shlibs_CXX" = no && can_build_shared=no
11249
11250GCC_CXX="$GXX"
11251LD_CXX="$LD"
11252
11253## CAVEAT EMPTOR:
11254## There is no encapsulation within the following macros, do not change
11255## the running order or otherwise move them around unless you know exactly
11256## what you are doing...
11257
11258cat > conftest.$ac_ext <<EOF
11259class Foo
11260{
11261public:
11262  Foo (void) { a = 0; }
11263private:
11264  int a;
11265};
11266EOF
11267
11268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269  (eval $ac_compile) 2>&5
11270  ac_status=$?
11271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272  (exit $ac_status); }; then
11273  # Parse the compiler output and extract the necessary
11274  # objects, libraries and library flags.
11275
11276  # Sentinel used to keep track of whether or not we are before
11277  # the conftest object file.
11278  pre_test_object_deps_done=no
11279
11280  # The `*' in the case matches for architectures that use `case' in
11281  # $output_verbose_cmd can trigger glob expansion during the loop
11282  # eval without this substitution.
11283  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11284
11285  for p in `eval $output_verbose_link_cmd`; do
11286    case $p in
11287
11288    -L* | -R* | -l*)
11289       # Some compilers place space between "-{L,R}" and the path.
11290       # Remove the space.
11291       if test $p = "-L" \
11292	  || test $p = "-R"; then
11293	 prev=$p
11294	 continue
11295       else
11296	 prev=
11297       fi
11298
11299       if test "$pre_test_object_deps_done" = no; then
11300	 case $p in
11301	 -L* | -R*)
11302	   # Internal compiler library paths should come after those
11303	   # provided the user.  The postdeps already come after the
11304	   # user supplied libs so there is no need to process them.
11305	   if test -z "$compiler_lib_search_path_CXX"; then
11306	     compiler_lib_search_path_CXX="${prev}${p}"
11307	   else
11308	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11309	   fi
11310	   ;;
11311	 # The "-l" case would never come before the object being
11312	 # linked, so don't bother handling this case.
11313	 esac
11314       else
11315	 if test -z "$postdeps_CXX"; then
11316	   postdeps_CXX="${prev}${p}"
11317	 else
11318	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11319	 fi
11320       fi
11321       ;;
11322
11323    *.$objext)
11324       # This assumes that the test object file only shows up
11325       # once in the compiler output.
11326       if test "$p" = "conftest.$objext"; then
11327	 pre_test_object_deps_done=yes
11328	 continue
11329       fi
11330
11331       if test "$pre_test_object_deps_done" = no; then
11332	 if test -z "$predep_objects_CXX"; then
11333	   predep_objects_CXX="$p"
11334	 else
11335	   predep_objects_CXX="$predep_objects_CXX $p"
11336	 fi
11337       else
11338	 if test -z "$postdep_objects_CXX"; then
11339	   postdep_objects_CXX="$p"
11340	 else
11341	   postdep_objects_CXX="$postdep_objects_CXX $p"
11342	 fi
11343       fi
11344       ;;
11345
11346    *) ;; # Ignore the rest.
11347
11348    esac
11349  done
11350
11351  # Clean up.
11352  rm -f a.out a.exe
11353else
11354  echo "libtool.m4: error: problem compiling CXX test program"
11355fi
11356
11357$rm -f confest.$objext
11358
11359# PORTME: override above test on systems where it is broken
11360case $host_os in
11361solaris*)
11362  case $cc_basename in
11363  CC*)
11364    # Adding this requires a known-good setup of shared libraries for
11365    # Sun compiler versions before 5.6, else PIC objects from an old
11366    # archive will be linked into the output, leading to subtle bugs.
11367    postdeps_CXX='-lCstd -lCrun'
11368    ;;
11369  esac
11370esac
11371
11372
11373case " $postdeps_CXX " in
11374*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11375esac
11376
11377lt_prog_compiler_wl_CXX=
11378lt_prog_compiler_pic_CXX=
11379lt_prog_compiler_static_CXX=
11380
11381echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11382echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11383
11384  # C++ specific cases for pic, static, wl, etc.
11385  if test "$GXX" = yes; then
11386    lt_prog_compiler_wl_CXX='-Wl,'
11387    lt_prog_compiler_static_CXX='-static'
11388
11389    case $host_os in
11390    aix*)
11391      # All AIX code is PIC.
11392      if test "$host_cpu" = ia64; then
11393	# AIX 5 now supports IA64 processor
11394	lt_prog_compiler_static_CXX='-Bstatic'
11395      fi
11396      ;;
11397    amigaos*)
11398      # FIXME: we need at least 68020 code to build shared libraries, but
11399      # adding the `-m68020' flag to GCC prevents building anything better,
11400      # like `-m68040'.
11401      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11402      ;;
11403    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
11404    | osf5*)
11405      # PIC is the default for these OSes.
11406      ;;
11407    mingw* | os2* | pw32*)
11408      # This hack is so that the source file can tell whether it is being
11409      # built for inclusion in a dll (and should export symbols for example).
11410      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11411      ;;
11412    darwin* | rhapsody*)
11413      # PIC is the default on this platform
11414      # Common symbols not allowed in MH_DYLIB files
11415      lt_prog_compiler_pic_CXX='-fno-common'
11416      ;;
11417    *djgpp*)
11418      # DJGPP does not support shared libraries at all
11419      lt_prog_compiler_pic_CXX=
11420      ;;
11421    sysv4*MP*)
11422      if test -d /usr/nec; then
11423	lt_prog_compiler_pic_CXX=-Kconform_pic
11424      fi
11425      ;;
11426    hpux*)
11427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11428      # not for PA HP-UX.
11429      case $host_cpu in
11430      hppa*64*|ia64*)
11431	;;
11432      *)
11433	lt_prog_compiler_pic_CXX='-fPIC'
11434	;;
11435      esac
11436      ;;
11437    *)
11438      lt_prog_compiler_pic_CXX='-fPIC'
11439      ;;
11440    esac
11441  else
11442    case $host_os in
11443      aix4* | aix5*)
11444	# All AIX code is PIC.
11445	if test "$host_cpu" = ia64; then
11446	  # AIX 5 now supports IA64 processor
11447	  lt_prog_compiler_static_CXX='-Bstatic'
11448	else
11449	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11450	fi
11451	;;
11452      chorus*)
11453	case $cc_basename in
11454	cxch68*)
11455	  # Green Hills C++ Compiler
11456	  # _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"
11457	  ;;
11458	esac
11459	;;
11460       darwin*)
11461         # PIC is the default on this platform
11462         # Common symbols not allowed in MH_DYLIB files
11463         case $cc_basename in
11464           xlc*)
11465           lt_prog_compiler_pic_CXX='-qnocommon'
11466           lt_prog_compiler_wl_CXX='-Wl,'
11467           ;;
11468         esac
11469       ;;
11470      dgux*)
11471	case $cc_basename in
11472	  ec++*)
11473	    lt_prog_compiler_pic_CXX='-KPIC'
11474	    ;;
11475	  ghcx*)
11476	    # Green Hills C++ Compiler
11477	    lt_prog_compiler_pic_CXX='-pic'
11478	    ;;
11479	  *)
11480	    ;;
11481	esac
11482	;;
11483      freebsd* | kfreebsd*-gnu | dragonfly*)
11484	# FreeBSD uses GNU C++
11485	;;
11486      hpux9* | hpux10* | hpux11*)
11487	case $cc_basename in
11488	  CC*)
11489	    lt_prog_compiler_wl_CXX='-Wl,'
11490	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11491	    if test "$host_cpu" != ia64; then
11492	      lt_prog_compiler_pic_CXX='+Z'
11493	    fi
11494	    ;;
11495	  aCC*)
11496	    lt_prog_compiler_wl_CXX='-Wl,'
11497	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11498	    case $host_cpu in
11499	    hppa*64*|ia64*)
11500	      # +Z the default
11501	      ;;
11502	    *)
11503	      lt_prog_compiler_pic_CXX='+Z'
11504	      ;;
11505	    esac
11506	    ;;
11507	  *)
11508	    ;;
11509	esac
11510	;;
11511      irix5* | irix6* | nonstopux*)
11512	case $cc_basename in
11513	  CC*)
11514	    lt_prog_compiler_wl_CXX='-Wl,'
11515	    lt_prog_compiler_static_CXX='-non_shared'
11516	    # CC pic flag -KPIC is the default.
11517	    ;;
11518	  *)
11519	    ;;
11520	esac
11521	;;
11522      linux*)
11523	case $cc_basename in
11524	  KCC*)
11525	    # KAI C++ Compiler
11526	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11527	    lt_prog_compiler_pic_CXX='-fPIC'
11528	    ;;
11529	  icpc* | ecpc*)
11530	    # Intel C++
11531	    lt_prog_compiler_wl_CXX='-Wl,'
11532	    lt_prog_compiler_pic_CXX='-KPIC'
11533	    lt_prog_compiler_static_CXX='-static'
11534	    ;;
11535	  pgCC*)
11536	    # Portland Group C++ compiler.
11537	    lt_prog_compiler_wl_CXX='-Wl,'
11538	    lt_prog_compiler_pic_CXX='-fpic'
11539	    lt_prog_compiler_static_CXX='-Bstatic'
11540	    ;;
11541	  cxx*)
11542	    # Compaq C++
11543	    # Make sure the PIC flag is empty.  It appears that all Alpha
11544	    # Linux and Compaq Tru64 Unix objects are PIC.
11545	    lt_prog_compiler_pic_CXX=
11546	    lt_prog_compiler_static_CXX='-non_shared'
11547	    ;;
11548	  *)
11549	    ;;
11550	esac
11551	;;
11552      lynxos*)
11553	;;
11554      m88k*)
11555	;;
11556      mvs*)
11557	case $cc_basename in
11558	  cxx*)
11559	    lt_prog_compiler_pic_CXX='-W c,exportall'
11560	    ;;
11561	  *)
11562	    ;;
11563	esac
11564	;;
11565      netbsd*)
11566	;;
11567      osf3* | osf4* | osf5*)
11568	case $cc_basename in
11569	  KCC*)
11570	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11571	    ;;
11572	  RCC*)
11573	    # Rational C++ 2.4.1
11574	    lt_prog_compiler_pic_CXX='-pic'
11575	    ;;
11576	  cxx*)
11577	    # Digital/Compaq C++
11578	    lt_prog_compiler_wl_CXX='-Wl,'
11579	    # Make sure the PIC flag is empty.  It appears that all Alpha
11580	    # Linux and Compaq Tru64 Unix objects are PIC.
11581	    lt_prog_compiler_pic_CXX=
11582	    lt_prog_compiler_static_CXX='-non_shared'
11583	    ;;
11584	  *)
11585	    ;;
11586	esac
11587	;;
11588      psos*)
11589	;;
11590      sco*)
11591	case $cc_basename in
11592	  CC*)
11593	    lt_prog_compiler_pic_CXX='-fPIC'
11594	    ;;
11595	  *)
11596	    ;;
11597	esac
11598	;;
11599      solaris*)
11600	case $cc_basename in
11601	  CC*)
11602	    # Sun C++ 4.2, 5.x and Centerline C++
11603	    lt_prog_compiler_pic_CXX='-KPIC'
11604	    lt_prog_compiler_static_CXX='-Bstatic'
11605	    lt_prog_compiler_wl_CXX='-Qoption ld '
11606	    ;;
11607	  gcx*)
11608	    # Green Hills C++ Compiler
11609	    lt_prog_compiler_pic_CXX='-PIC'
11610	    ;;
11611	  *)
11612	    ;;
11613	esac
11614	;;
11615      sunos4*)
11616	case $cc_basename in
11617	  CC*)
11618	    # Sun C++ 4.x
11619	    lt_prog_compiler_pic_CXX='-pic'
11620	    lt_prog_compiler_static_CXX='-Bstatic'
11621	    ;;
11622	  lcc*)
11623	    # Lucid
11624	    lt_prog_compiler_pic_CXX='-pic'
11625	    ;;
11626	  *)
11627	    ;;
11628	esac
11629	;;
11630      tandem*)
11631	case $cc_basename in
11632	  NCC*)
11633	    # NonStop-UX NCC 3.20
11634	    lt_prog_compiler_pic_CXX='-KPIC'
11635	    ;;
11636	  *)
11637	    ;;
11638	esac
11639	;;
11640      unixware*)
11641	;;
11642      vxworks*)
11643	;;
11644      *)
11645	lt_prog_compiler_can_build_shared_CXX=no
11646	;;
11647    esac
11648  fi
11649
11650echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11651echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11652
11653#
11654# Check to make sure the PIC flag actually works.
11655#
11656if test -n "$lt_prog_compiler_pic_CXX"; then
11657
11658echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11659echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11660if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11661  echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663  lt_prog_compiler_pic_works_CXX=no
11664  ac_outfile=conftest.$ac_objext
11665   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11666   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11667   # Insert the option either (1) after the last *FLAGS variable, or
11668   # (2) before a word containing "conftest.", or (3) at the end.
11669   # Note that $ac_compile itself does not contain backslashes and begins
11670   # with a dollar sign (not a hyphen), so the echo should work correctly.
11671   # The option is referenced via a variable to avoid confusing sed.
11672   lt_compile=`echo "$ac_compile" | $SED \
11673   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11674   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11675   -e 's:$: $lt_compiler_flag:'`
11676   (eval echo "\"\$as_me:11676: $lt_compile\"" >&5)
11677   (eval "$lt_compile" 2>conftest.err)
11678   ac_status=$?
11679   cat conftest.err >&5
11680   echo "$as_me:11680: \$? = $ac_status" >&5
11681   if (exit $ac_status) && test -s "$ac_outfile"; then
11682     # The compiler can only warn and ignore the option if not recognized
11683     # So say no if there are warnings other than the usual output.
11684     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11685     $SED '/^$/d' conftest.err >conftest.er2
11686     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11687       lt_prog_compiler_pic_works_CXX=yes
11688     fi
11689   fi
11690   $rm conftest*
11691
11692fi
11693echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11694echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11695
11696if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11697    case $lt_prog_compiler_pic_CXX in
11698     "" | " "*) ;;
11699     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11700     esac
11701else
11702    lt_prog_compiler_pic_CXX=
11703     lt_prog_compiler_can_build_shared_CXX=no
11704fi
11705
11706fi
11707case $host_os in
11708  # For platforms which do not support PIC, -DPIC is meaningless:
11709  *djgpp*)
11710    lt_prog_compiler_pic_CXX=
11711    ;;
11712  *)
11713    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11714    ;;
11715esac
11716
11717echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11718echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11719if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11720  echo $ECHO_N "(cached) $ECHO_C" >&6
11721else
11722  lt_cv_prog_compiler_c_o_CXX=no
11723   $rm -r conftest 2>/dev/null
11724   mkdir conftest
11725   cd conftest
11726   mkdir out
11727   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11728
11729   lt_compiler_flag="-o out/conftest2.$ac_objext"
11730   # Insert the option either (1) after the last *FLAGS variable, or
11731   # (2) before a word containing "conftest.", or (3) at the end.
11732   # Note that $ac_compile itself does not contain backslashes and begins
11733   # with a dollar sign (not a hyphen), so the echo should work correctly.
11734   lt_compile=`echo "$ac_compile" | $SED \
11735   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11736   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11737   -e 's:$: $lt_compiler_flag:'`
11738   (eval echo "\"\$as_me:11738: $lt_compile\"" >&5)
11739   (eval "$lt_compile" 2>out/conftest.err)
11740   ac_status=$?
11741   cat out/conftest.err >&5
11742   echo "$as_me:11742: \$? = $ac_status" >&5
11743   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11744   then
11745     # The compiler can only warn and ignore the option if not recognized
11746     # So say no if there are warnings
11747     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11748     $SED '/^$/d' out/conftest.err >out/conftest.er2
11749     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11750       lt_cv_prog_compiler_c_o_CXX=yes
11751     fi
11752   fi
11753   chmod u+w . 2>&5
11754   $rm conftest*
11755   # SGI C++ compiler will create directory out/ii_files/ for
11756   # template instantiation
11757   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11758   $rm out/* && rmdir out
11759   cd ..
11760   rmdir conftest
11761   $rm conftest*
11762
11763fi
11764echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11765echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11766
11767
11768hard_links="nottested"
11769if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11770  # do not overwrite the value of need_locks provided by the user
11771  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11772echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11773  hard_links=yes
11774  $rm conftest*
11775  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11776  touch conftest.a
11777  ln conftest.a conftest.b 2>&5 || hard_links=no
11778  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11779  echo "$as_me:$LINENO: result: $hard_links" >&5
11780echo "${ECHO_T}$hard_links" >&6
11781  if test "$hard_links" = no; then
11782    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11783echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11784    need_locks=warn
11785  fi
11786else
11787  need_locks=no
11788fi
11789
11790echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11791echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11792
11793  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11794  case $host_os in
11795  aix4* | aix5*)
11796    # If we're using GNU nm, then we don't want the "-C" option.
11797    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11798    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11799      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'
11800    else
11801      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'
11802    fi
11803    ;;
11804  pw32*)
11805    export_symbols_cmds_CXX="$ltdll_cmds"
11806  ;;
11807  cygwin* | mingw*)
11808    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'
11809  ;;
11810  *)
11811    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11812  ;;
11813  esac
11814
11815echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11816echo "${ECHO_T}$ld_shlibs_CXX" >&6
11817test "$ld_shlibs_CXX" = no && can_build_shared=no
11818
11819variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11820if test "$GCC" = yes; then
11821  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11822fi
11823
11824#
11825# Do we need to explicitly link libc?
11826#
11827case "x$archive_cmds_need_lc_CXX" in
11828x|xyes)
11829  # Assume -lc should be added
11830  archive_cmds_need_lc_CXX=yes
11831
11832  if test "$enable_shared" = yes && test "$GCC" = yes; then
11833    case $archive_cmds_CXX in
11834    *'~'*)
11835      # FIXME: we may have to deal with multi-command sequences.
11836      ;;
11837    '$CC '*)
11838      # Test whether the compiler implicitly links with -lc since on some
11839      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11840      # to ld, don't add -lc before -lgcc.
11841      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11842echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11843      $rm conftest*
11844      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11845
11846      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11847  (eval $ac_compile) 2>&5
11848  ac_status=$?
11849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850  (exit $ac_status); } 2>conftest.err; then
11851        soname=conftest
11852        lib=conftest
11853        libobjs=conftest.$ac_objext
11854        deplibs=
11855        wl=$lt_prog_compiler_wl_CXX
11856        compiler_flags=-v
11857        linker_flags=-v
11858        verstring=
11859        output_objdir=.
11860        libname=conftest
11861        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11862        allow_undefined_flag_CXX=
11863        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11864  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11865  ac_status=$?
11866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867  (exit $ac_status); }
11868        then
11869	  archive_cmds_need_lc_CXX=no
11870        else
11871	  archive_cmds_need_lc_CXX=yes
11872        fi
11873        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11874      else
11875        cat conftest.err 1>&5
11876      fi
11877      $rm conftest*
11878      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11879echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11880      ;;
11881    esac
11882  fi
11883  ;;
11884esac
11885
11886echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11888library_names_spec=
11889libname_spec='lib$name'
11890soname_spec=
11891shrext_cmds=".so"
11892postinstall_cmds=
11893postuninstall_cmds=
11894finish_cmds=
11895finish_eval=
11896shlibpath_var=
11897shlibpath_overrides_runpath=unknown
11898version_type=none
11899dynamic_linker="$host_os ld.so"
11900sys_lib_dlsearch_path_spec="/lib /usr/lib"
11901if test "$GCC" = yes; then
11902  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11903  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11904    # if the path contains ";" then we assume it to be the separator
11905    # otherwise default to the standard path separator (i.e. ":") - it is
11906    # assumed that no part of a normal pathname contains ";" but that should
11907    # okay in the real world where ";" in dirpaths is itself problematic.
11908    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11909  else
11910    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11911  fi
11912else
11913  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11914fi
11915need_lib_prefix=unknown
11916hardcode_into_libs=no
11917
11918# when you set need_version to no, make sure it does not cause -set_version
11919# flags to be left without arguments
11920need_version=unknown
11921
11922case $host_os in
11923aix3*)
11924  version_type=linux
11925  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11926  shlibpath_var=LIBPATH
11927
11928  # AIX 3 has no versioning support, so we append a major version to the name.
11929  soname_spec='${libname}${release}${shared_ext}$major'
11930  ;;
11931
11932aix4* | aix5*)
11933  version_type=linux
11934  need_lib_prefix=no
11935  need_version=no
11936  hardcode_into_libs=yes
11937  if test "$host_cpu" = ia64; then
11938    # AIX 5 supports IA64
11939    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11940    shlibpath_var=LD_LIBRARY_PATH
11941  else
11942    # With GCC up to 2.95.x, collect2 would create an import file
11943    # for dependence libraries.  The import file would start with
11944    # the line `#! .'.  This would cause the generated library to
11945    # depend on `.', always an invalid library.  This was fixed in
11946    # development snapshots of GCC prior to 3.0.
11947    case $host_os in
11948      aix4 | aix4.[01] | aix4.[01].*)
11949      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11950	   echo ' yes '
11951	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11952	:
11953      else
11954	can_build_shared=no
11955      fi
11956      ;;
11957    esac
11958    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11959    # soname into executable. Probably we can add versioning support to
11960    # collect2, so additional links can be useful in future.
11961    if test "$aix_use_runtimelinking" = yes; then
11962      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11963      # instead of lib<name>.a to let people know that these are not
11964      # typical AIX shared libraries.
11965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966    else
11967      # We preserve .a as extension for shared libraries through AIX4.2
11968      # and later when we are not doing run time linking.
11969      library_names_spec='${libname}${release}.a $libname.a'
11970      soname_spec='${libname}${release}${shared_ext}$major'
11971    fi
11972    shlibpath_var=LIBPATH
11973  fi
11974  ;;
11975
11976amigaos*)
11977  library_names_spec='$libname.ixlibrary $libname.a'
11978  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11979  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'
11980  ;;
11981
11982beos*)
11983  library_names_spec='${libname}${shared_ext}'
11984  dynamic_linker="$host_os ld.so"
11985  shlibpath_var=LIBRARY_PATH
11986  ;;
11987
11988bsdi[45]*)
11989  version_type=linux
11990  need_version=no
11991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992  soname_spec='${libname}${release}${shared_ext}$major'
11993  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11994  shlibpath_var=LD_LIBRARY_PATH
11995  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11996  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11997  # the default ld.so.conf also contains /usr/contrib/lib and
11998  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11999  # libtool to hard-code these into programs
12000  ;;
12001
12002cygwin* | mingw* | pw32*)
12003  version_type=windows
12004  shrext_cmds=".dll"
12005  need_version=no
12006  need_lib_prefix=no
12007
12008  case $GCC,$host_os in
12009  yes,cygwin* | yes,mingw* | yes,pw32*)
12010    library_names_spec='$libname.dll.a'
12011    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12012    postinstall_cmds='base_file=`basename \${file}`~
12013      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12014      dldir=$destdir/`dirname \$dlpath`~
12015      test -d \$dldir || mkdir -p \$dldir~
12016      $install_prog $dir/$dlname \$dldir/$dlname~
12017      chmod a+x \$dldir/$dlname'
12018    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12019      dlpath=$dir/\$dldll~
12020       $rm \$dlpath'
12021    shlibpath_overrides_runpath=yes
12022
12023    case $host_os in
12024    cygwin*)
12025      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12026      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12027      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12028      ;;
12029    mingw*)
12030      # MinGW DLLs use traditional 'lib' prefix
12031      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12032      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12033      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12034        # It is most probably a Windows format PATH printed by
12035        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12036        # path with ; separators, and with drive letters. We can handle the
12037        # drive letters (cygwin fileutils understands them), so leave them,
12038        # especially as we might pass files found there to a mingw objdump,
12039        # which wouldn't understand a cygwinified path. Ahh.
12040        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12041      else
12042        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12043      fi
12044      ;;
12045    pw32*)
12046      # pw32 DLLs use 'pw' prefix rather than 'lib'
12047      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12048      ;;
12049    esac
12050    ;;
12051
12052  *)
12053    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12054    ;;
12055  esac
12056  dynamic_linker='Win32 ld.exe'
12057  # FIXME: first we should search . and the directory the executable is in
12058  shlibpath_var=PATH
12059  ;;
12060
12061darwin* | rhapsody*)
12062  dynamic_linker="$host_os dyld"
12063  version_type=darwin
12064  need_lib_prefix=no
12065  need_version=no
12066  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12067  soname_spec='${libname}${release}${major}$shared_ext'
12068  shlibpath_overrides_runpath=yes
12069  shlibpath_var=DYLD_LIBRARY_PATH
12070  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12071  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12072  if test "$GCC" = yes; then
12073    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"`
12074  else
12075    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12076  fi
12077  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12078  ;;
12079
12080dgux*)
12081  version_type=linux
12082  need_lib_prefix=no
12083  need_version=no
12084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12085  soname_spec='${libname}${release}${shared_ext}$major'
12086  shlibpath_var=LD_LIBRARY_PATH
12087  ;;
12088
12089freebsd1*)
12090  dynamic_linker=no
12091  ;;
12092
12093haiku*)
12094  library_names_spec='${libname}${shared_ext}'
12095  dynamic_linker="$host_os ld.so"
12096  shlibpath_var=LIBRARY_PATH
12097  ;;
12098
12099kfreebsd*-gnu)
12100  version_type=linux
12101  need_lib_prefix=no
12102  need_version=no
12103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12104  soname_spec='${libname}${release}${shared_ext}$major'
12105  shlibpath_var=LD_LIBRARY_PATH
12106  shlibpath_overrides_runpath=no
12107  hardcode_into_libs=yes
12108  dynamic_linker='GNU ld.so'
12109  ;;
12110
12111freebsd* | dragonfly*)
12112  # DragonFly does not have aout.  When/if they implement a new
12113  # versioning mechanism, adjust this.
12114  if test -x /usr/bin/objformat; then
12115    objformat=`/usr/bin/objformat`
12116  else
12117    case $host_os in
12118    freebsd[123]*) objformat=aout ;;
12119    *) objformat=elf ;;
12120    esac
12121  fi
12122  version_type=freebsd-$objformat
12123  case $version_type in
12124    freebsd-elf*)
12125      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12126      need_version=no
12127      need_lib_prefix=no
12128      ;;
12129    freebsd-*)
12130      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12131      need_version=yes
12132      ;;
12133  esac
12134  shlibpath_var=LD_LIBRARY_PATH
12135  case $host_os in
12136  freebsd2*)
12137    shlibpath_overrides_runpath=yes
12138    ;;
12139  freebsd3.[01]* | freebsdelf3.[01]*)
12140    shlibpath_overrides_runpath=yes
12141    hardcode_into_libs=yes
12142    ;;
12143  *) # from 3.2 on
12144    shlibpath_overrides_runpath=no
12145    hardcode_into_libs=yes
12146    ;;
12147  esac
12148  ;;
12149
12150gnu*)
12151  version_type=linux
12152  need_lib_prefix=no
12153  need_version=no
12154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12155  soname_spec='${libname}${release}${shared_ext}$major'
12156  shlibpath_var=LD_LIBRARY_PATH
12157  hardcode_into_libs=yes
12158  ;;
12159
12160hpux9* | hpux10* | hpux11*)
12161  # Give a soname corresponding to the major version so that dld.sl refuses to
12162  # link against other versions.
12163  version_type=sunos
12164  need_lib_prefix=no
12165  need_version=no
12166  case $host_cpu in
12167  ia64*)
12168    shrext_cmds='.so'
12169    hardcode_into_libs=yes
12170    dynamic_linker="$host_os dld.so"
12171    shlibpath_var=LD_LIBRARY_PATH
12172    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174    soname_spec='${libname}${release}${shared_ext}$major'
12175    if test "X$HPUX_IA64_MODE" = X32; then
12176      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12177    else
12178      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12179    fi
12180    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12181    ;;
12182   hppa*64*)
12183     shrext_cmds='.sl'
12184     hardcode_into_libs=yes
12185     dynamic_linker="$host_os dld.sl"
12186     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189     soname_spec='${libname}${release}${shared_ext}$major'
12190     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12191     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12192     ;;
12193   *)
12194    shrext_cmds='.sl'
12195    dynamic_linker="$host_os dld.sl"
12196    shlibpath_var=SHLIB_PATH
12197    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12199    soname_spec='${libname}${release}${shared_ext}$major'
12200    ;;
12201  esac
12202  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12203  postinstall_cmds='chmod 555 $lib'
12204  ;;
12205
12206irix5* | irix6* | nonstopux*)
12207  case $host_os in
12208    nonstopux*) version_type=nonstopux ;;
12209    *)
12210	if test "$lt_cv_prog_gnu_ld" = yes; then
12211		version_type=linux
12212	else
12213		version_type=irix
12214	fi ;;
12215  esac
12216  need_lib_prefix=no
12217  need_version=no
12218  soname_spec='${libname}${release}${shared_ext}$major'
12219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12220  case $host_os in
12221  irix5* | nonstopux*)
12222    libsuff= shlibsuff=
12223    ;;
12224  *)
12225    case $LD in # libtool.m4 will add one of these switches to LD
12226    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12227      libsuff= shlibsuff= libmagic=32-bit;;
12228    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12229      libsuff=32 shlibsuff=N32 libmagic=N32;;
12230    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12231      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12232    *) libsuff= shlibsuff= libmagic=never-match;;
12233    esac
12234    ;;
12235  esac
12236  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12237  shlibpath_overrides_runpath=no
12238  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12239  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12240  hardcode_into_libs=yes
12241  ;;
12242
12243# No shared lib support for Linux oldld, aout, or coff.
12244linux*oldld* | linux*aout* | linux*coff*)
12245  dynamic_linker=no
12246  ;;
12247
12248# This must be Linux ELF.
12249linux*)
12250  version_type=linux
12251  need_lib_prefix=no
12252  need_version=no
12253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254  soname_spec='${libname}${release}${shared_ext}$major'
12255  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12256  shlibpath_var=LD_LIBRARY_PATH
12257  shlibpath_overrides_runpath=no
12258  # This implies no fast_install, which is unacceptable.
12259  # Some rework will be needed to allow for fast_install
12260  # before this can be enabled.
12261  hardcode_into_libs=yes
12262
12263  # Append ld.so.conf contents to the search path
12264  if test -f /etc/ld.so.conf; then
12265    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' ' '`
12266    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12267  fi
12268
12269  # We used to test for /lib/ld.so.1 and disable shared libraries on
12270  # powerpc, because MkLinux only supported shared libraries with the
12271  # GNU dynamic linker.  Since this was broken with cross compilers,
12272  # most powerpc-linux boxes support dynamic linking these days and
12273  # people can always --disable-shared, the test was removed, and we
12274  # assume the GNU/Linux dynamic linker is in use.
12275  dynamic_linker='GNU/Linux ld.so'
12276  ;;
12277
12278knetbsd*-gnu)
12279  version_type=linux
12280  need_lib_prefix=no
12281  need_version=no
12282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12283  soname_spec='${libname}${release}${shared_ext}$major'
12284  shlibpath_var=LD_LIBRARY_PATH
12285  shlibpath_overrides_runpath=no
12286  hardcode_into_libs=yes
12287  dynamic_linker='GNU ld.so'
12288  ;;
12289
12290netbsd*)
12291  version_type=sunos
12292  need_lib_prefix=no
12293  need_version=no
12294  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12296    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12297    dynamic_linker='NetBSD (a.out) ld.so'
12298  else
12299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12300    soname_spec='${libname}${release}${shared_ext}$major'
12301    dynamic_linker='NetBSD ld.elf_so'
12302  fi
12303  shlibpath_var=LD_LIBRARY_PATH
12304  shlibpath_overrides_runpath=yes
12305  hardcode_into_libs=yes
12306  ;;
12307
12308newsos6)
12309  version_type=linux
12310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12311  shlibpath_var=LD_LIBRARY_PATH
12312  shlibpath_overrides_runpath=yes
12313  ;;
12314
12315nto-qnx*)
12316  version_type=linux
12317  need_lib_prefix=no
12318  need_version=no
12319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320  soname_spec='${libname}${release}${shared_ext}$major'
12321  shlibpath_var=LD_LIBRARY_PATH
12322  shlibpath_overrides_runpath=yes
12323  ;;
12324
12325openbsd*)
12326  version_type=sunos
12327  need_lib_prefix=no
12328  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12329  case $host_os in
12330    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12331    *)                         need_version=no  ;;
12332  esac
12333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12334  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12335  shlibpath_var=LD_LIBRARY_PATH
12336  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12337    case $host_os in
12338      openbsd2.[89] | openbsd2.[89].*)
12339	shlibpath_overrides_runpath=no
12340	;;
12341      *)
12342	shlibpath_overrides_runpath=yes
12343	;;
12344      esac
12345  else
12346    shlibpath_overrides_runpath=yes
12347  fi
12348  ;;
12349
12350os2*)
12351  libname_spec='$name'
12352  shrext_cmds=".dll"
12353  need_lib_prefix=no
12354  library_names_spec='$libname${shared_ext} $libname.a'
12355  dynamic_linker='OS/2 ld.exe'
12356  shlibpath_var=LIBPATH
12357  ;;
12358
12359osf3* | osf4* | osf5*)
12360  version_type=osf
12361  need_lib_prefix=no
12362  need_version=no
12363  soname_spec='${libname}${release}${shared_ext}$major'
12364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12365  shlibpath_var=LD_LIBRARY_PATH
12366  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12367  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12368  ;;
12369
12370sco3.2v5*)
12371  version_type=osf
12372  soname_spec='${libname}${release}${shared_ext}$major'
12373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374  shlibpath_var=LD_LIBRARY_PATH
12375  ;;
12376
12377solaris*)
12378  version_type=linux
12379  need_lib_prefix=no
12380  need_version=no
12381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382  soname_spec='${libname}${release}${shared_ext}$major'
12383  shlibpath_var=LD_LIBRARY_PATH
12384  shlibpath_overrides_runpath=yes
12385  hardcode_into_libs=yes
12386  # ldd complains unless libraries are executable
12387  postinstall_cmds='chmod +x $lib'
12388  ;;
12389
12390sunos4*)
12391  version_type=sunos
12392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12393  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12394  shlibpath_var=LD_LIBRARY_PATH
12395  shlibpath_overrides_runpath=yes
12396  if test "$with_gnu_ld" = yes; then
12397    need_lib_prefix=no
12398  fi
12399  need_version=yes
12400  ;;
12401
12402sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12403  version_type=linux
12404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12405  soname_spec='${libname}${release}${shared_ext}$major'
12406  shlibpath_var=LD_LIBRARY_PATH
12407  case $host_vendor in
12408    sni)
12409      shlibpath_overrides_runpath=no
12410      need_lib_prefix=no
12411      export_dynamic_flag_spec='${wl}-Blargedynsym'
12412      runpath_var=LD_RUN_PATH
12413      ;;
12414    siemens)
12415      need_lib_prefix=no
12416      ;;
12417    motorola)
12418      need_lib_prefix=no
12419      need_version=no
12420      shlibpath_overrides_runpath=no
12421      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12422      ;;
12423  esac
12424  ;;
12425
12426sysv4*MP*)
12427  if test -d /usr/nec ;then
12428    version_type=linux
12429    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12430    soname_spec='$libname${shared_ext}.$major'
12431    shlibpath_var=LD_LIBRARY_PATH
12432  fi
12433  ;;
12434
12435uts4*)
12436  version_type=linux
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  ;;
12441
12442*)
12443  dynamic_linker=no
12444  ;;
12445esac
12446echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12447echo "${ECHO_T}$dynamic_linker" >&6
12448test "$dynamic_linker" = no && can_build_shared=no
12449
12450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12452hardcode_action_CXX=
12453if test -n "$hardcode_libdir_flag_spec_CXX" || \
12454   test -n "$runpath_var_CXX" || \
12455   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12456
12457  # We can hardcode non-existant directories.
12458  if test "$hardcode_direct_CXX" != no &&
12459     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12460     # have to relink, otherwise we might link with an installed library
12461     # when we should be linking with a yet-to-be-installed one
12462     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12463     test "$hardcode_minus_L_CXX" != no; then
12464    # Linking always hardcodes the temporary library directory.
12465    hardcode_action_CXX=relink
12466  else
12467    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12468    hardcode_action_CXX=immediate
12469  fi
12470else
12471  # We cannot hardcode anything, or else we can only hardcode existing
12472  # directories.
12473  hardcode_action_CXX=unsupported
12474fi
12475echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12476echo "${ECHO_T}$hardcode_action_CXX" >&6
12477
12478if test "$hardcode_action_CXX" = relink; then
12479  # Fast installation is not supported
12480  enable_fast_install=no
12481elif test "$shlibpath_overrides_runpath" = yes ||
12482     test "$enable_shared" = no; then
12483  # Fast installation is not necessary
12484  enable_fast_install=needless
12485fi
12486
12487striplib=
12488old_striplib=
12489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12492  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12493  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12494  echo "$as_me:$LINENO: result: yes" >&5
12495echo "${ECHO_T}yes" >&6
12496else
12497# FIXME - insert some real tests, host_os isn't really good enough
12498  case $host_os in
12499   darwin*)
12500       if test -n "$STRIP" ; then
12501         striplib="$STRIP -x"
12502         echo "$as_me:$LINENO: result: yes" >&5
12503echo "${ECHO_T}yes" >&6
12504       else
12505  echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6
12507fi
12508       ;;
12509   *)
12510  echo "$as_me:$LINENO: result: no" >&5
12511echo "${ECHO_T}no" >&6
12512    ;;
12513  esac
12514fi
12515
12516if test "x$enable_dlopen" != xyes; then
12517  enable_dlopen=unknown
12518  enable_dlopen_self=unknown
12519  enable_dlopen_self_static=unknown
12520else
12521  lt_cv_dlopen=no
12522  lt_cv_dlopen_libs=
12523
12524  case $host_os in
12525  beos*)
12526    lt_cv_dlopen="load_add_on"
12527    lt_cv_dlopen_libs=
12528    lt_cv_dlopen_self=yes
12529    ;;
12530
12531  mingw* | pw32*)
12532    lt_cv_dlopen="LoadLibrary"
12533    lt_cv_dlopen_libs=
12534   ;;
12535
12536  cygwin*)
12537    lt_cv_dlopen="dlopen"
12538    lt_cv_dlopen_libs=
12539   ;;
12540
12541  darwin*)
12542  # if libdl is installed we need to link against it
12543    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12545if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12546  echo $ECHO_N "(cached) $ECHO_C" >&6
12547else
12548  ac_check_lib_save_LIBS=$LIBS
12549LIBS="-ldl  $LIBS"
12550cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h.  */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h.  */
12556
12557/* Override any gcc2 internal prototype to avoid an error.  */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561/* We use char because int might match the return type of a gcc2
12562   builtin and then its argument prototype would still apply.  */
12563char dlopen ();
12564int
12565main ()
12566{
12567dlopen ();
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext conftest$ac_exeext
12573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574  (eval $ac_link) 2>conftest.er1
12575  ac_status=$?
12576  grep -v '^ *+' conftest.er1 >conftest.err
12577  rm -f conftest.er1
12578  cat conftest.err >&5
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); } &&
12581	 { ac_try='test -z "$ac_cxx_werror_flag"
12582			 || test ! -s conftest.err'
12583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584  (eval $ac_try) 2>&5
12585  ac_status=$?
12586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587  (exit $ac_status); }; } &&
12588	 { ac_try='test -s conftest$ac_exeext'
12589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590  (eval $ac_try) 2>&5
12591  ac_status=$?
12592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593  (exit $ac_status); }; }; then
12594  ac_cv_lib_dl_dlopen=yes
12595else
12596  echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599ac_cv_lib_dl_dlopen=no
12600fi
12601rm -f conftest.err conftest.$ac_objext \
12602      conftest$ac_exeext conftest.$ac_ext
12603LIBS=$ac_check_lib_save_LIBS
12604fi
12605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12607if test $ac_cv_lib_dl_dlopen = yes; then
12608  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12609else
12610
12611    lt_cv_dlopen="dyld"
12612    lt_cv_dlopen_libs=
12613    lt_cv_dlopen_self=yes
12614
12615fi
12616
12617   ;;
12618
12619  haiku*)
12620    lt_cv_dlopen="load_add_on"
12621    lt_cv_dlopen_libs=
12622    lt_cv_dlopen_self=yes
12623    ;;
12624
12625  *)
12626    echo "$as_me:$LINENO: checking for shl_load" >&5
12627echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12628if test "${ac_cv_func_shl_load+set}" = set; then
12629  echo $ECHO_N "(cached) $ECHO_C" >&6
12630else
12631  cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h.  */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h.  */
12637/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12638   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12639#define shl_load innocuous_shl_load
12640
12641/* System header to define __stub macros and hopefully few prototypes,
12642    which can conflict with char shl_load (); below.
12643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12644    <limits.h> exists even on freestanding compilers.  */
12645
12646#ifdef __STDC__
12647# include <limits.h>
12648#else
12649# include <assert.h>
12650#endif
12651
12652#undef shl_load
12653
12654/* Override any gcc2 internal prototype to avoid an error.  */
12655#ifdef __cplusplus
12656extern "C"
12657{
12658#endif
12659/* We use char because int might match the return type of a gcc2
12660   builtin and then its argument prototype would still apply.  */
12661char shl_load ();
12662/* The GNU C library defines this for functions which it implements
12663    to always fail with ENOSYS.  Some functions are actually named
12664    something starting with __ and the normal name is an alias.  */
12665#if defined (__stub_shl_load) || defined (__stub___shl_load)
12666choke me
12667#else
12668char (*f) () = shl_load;
12669#endif
12670#ifdef __cplusplus
12671}
12672#endif
12673
12674int
12675main ()
12676{
12677return f != shl_load;
12678  ;
12679  return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext conftest$ac_exeext
12683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12684  (eval $ac_link) 2>conftest.er1
12685  ac_status=$?
12686  grep -v '^ *+' conftest.er1 >conftest.err
12687  rm -f conftest.er1
12688  cat conftest.err >&5
12689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690  (exit $ac_status); } &&
12691	 { ac_try='test -z "$ac_cxx_werror_flag"
12692			 || test ! -s conftest.err'
12693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694  (eval $ac_try) 2>&5
12695  ac_status=$?
12696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697  (exit $ac_status); }; } &&
12698	 { ac_try='test -s conftest$ac_exeext'
12699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700  (eval $ac_try) 2>&5
12701  ac_status=$?
12702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703  (exit $ac_status); }; }; then
12704  ac_cv_func_shl_load=yes
12705else
12706  echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709ac_cv_func_shl_load=no
12710fi
12711rm -f conftest.err conftest.$ac_objext \
12712      conftest$ac_exeext conftest.$ac_ext
12713fi
12714echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12715echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12716if test $ac_cv_func_shl_load = yes; then
12717  lt_cv_dlopen="shl_load"
12718else
12719  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12720echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12721if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12722  echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
12724  ac_check_lib_save_LIBS=$LIBS
12725LIBS="-ldld  $LIBS"
12726cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h.  */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h.  */
12732
12733/* Override any gcc2 internal prototype to avoid an error.  */
12734#ifdef __cplusplus
12735extern "C"
12736#endif
12737/* We use char because int might match the return type of a gcc2
12738   builtin and then its argument prototype would still apply.  */
12739char shl_load ();
12740int
12741main ()
12742{
12743shl_load ();
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748rm -f conftest.$ac_objext conftest$ac_exeext
12749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750  (eval $ac_link) 2>conftest.er1
12751  ac_status=$?
12752  grep -v '^ *+' conftest.er1 >conftest.err
12753  rm -f conftest.er1
12754  cat conftest.err >&5
12755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756  (exit $ac_status); } &&
12757	 { ac_try='test -z "$ac_cxx_werror_flag"
12758			 || test ! -s conftest.err'
12759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760  (eval $ac_try) 2>&5
12761  ac_status=$?
12762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763  (exit $ac_status); }; } &&
12764	 { ac_try='test -s conftest$ac_exeext'
12765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766  (eval $ac_try) 2>&5
12767  ac_status=$?
12768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769  (exit $ac_status); }; }; then
12770  ac_cv_lib_dld_shl_load=yes
12771else
12772  echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775ac_cv_lib_dld_shl_load=no
12776fi
12777rm -f conftest.err conftest.$ac_objext \
12778      conftest$ac_exeext conftest.$ac_ext
12779LIBS=$ac_check_lib_save_LIBS
12780fi
12781echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12782echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12783if test $ac_cv_lib_dld_shl_load = yes; then
12784  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12785else
12786  echo "$as_me:$LINENO: checking for dlopen" >&5
12787echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12788if test "${ac_cv_func_dlopen+set}" = set; then
12789  echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
12791  cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h.  */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h.  */
12797/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12799#define dlopen innocuous_dlopen
12800
12801/* System header to define __stub macros and hopefully few prototypes,
12802    which can conflict with char dlopen (); below.
12803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12804    <limits.h> exists even on freestanding compilers.  */
12805
12806#ifdef __STDC__
12807# include <limits.h>
12808#else
12809# include <assert.h>
12810#endif
12811
12812#undef dlopen
12813
12814/* Override any gcc2 internal prototype to avoid an error.  */
12815#ifdef __cplusplus
12816extern "C"
12817{
12818#endif
12819/* We use char because int might match the return type of a gcc2
12820   builtin and then its argument prototype would still apply.  */
12821char dlopen ();
12822/* The GNU C library defines this for functions which it implements
12823    to always fail with ENOSYS.  Some functions are actually named
12824    something starting with __ and the normal name is an alias.  */
12825#if defined (__stub_dlopen) || defined (__stub___dlopen)
12826choke me
12827#else
12828char (*f) () = dlopen;
12829#endif
12830#ifdef __cplusplus
12831}
12832#endif
12833
12834int
12835main ()
12836{
12837return f != dlopen;
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844  (eval $ac_link) 2>conftest.er1
12845  ac_status=$?
12846  grep -v '^ *+' conftest.er1 >conftest.err
12847  rm -f conftest.er1
12848  cat conftest.err >&5
12849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850  (exit $ac_status); } &&
12851	 { ac_try='test -z "$ac_cxx_werror_flag"
12852			 || test ! -s conftest.err'
12853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854  (eval $ac_try) 2>&5
12855  ac_status=$?
12856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857  (exit $ac_status); }; } &&
12858	 { ac_try='test -s conftest$ac_exeext'
12859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860  (eval $ac_try) 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }; }; then
12864  ac_cv_func_dlopen=yes
12865else
12866  echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869ac_cv_func_dlopen=no
12870fi
12871rm -f conftest.err conftest.$ac_objext \
12872      conftest$ac_exeext conftest.$ac_ext
12873fi
12874echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12875echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12876if test $ac_cv_func_dlopen = yes; then
12877  lt_cv_dlopen="dlopen"
12878else
12879  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12880echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12881if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12882  echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884  ac_check_lib_save_LIBS=$LIBS
12885LIBS="-ldl  $LIBS"
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h.  */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h.  */
12892
12893/* Override any gcc2 internal prototype to avoid an error.  */
12894#ifdef __cplusplus
12895extern "C"
12896#endif
12897/* We use char because int might match the return type of a gcc2
12898   builtin and then its argument prototype would still apply.  */
12899char dlopen ();
12900int
12901main ()
12902{
12903dlopen ();
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908rm -f conftest.$ac_objext conftest$ac_exeext
12909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910  (eval $ac_link) 2>conftest.er1
12911  ac_status=$?
12912  grep -v '^ *+' conftest.er1 >conftest.err
12913  rm -f conftest.er1
12914  cat conftest.err >&5
12915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916  (exit $ac_status); } &&
12917	 { ac_try='test -z "$ac_cxx_werror_flag"
12918			 || test ! -s conftest.err'
12919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920  (eval $ac_try) 2>&5
12921  ac_status=$?
12922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923  (exit $ac_status); }; } &&
12924	 { ac_try='test -s conftest$ac_exeext'
12925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926  (eval $ac_try) 2>&5
12927  ac_status=$?
12928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929  (exit $ac_status); }; }; then
12930  ac_cv_lib_dl_dlopen=yes
12931else
12932  echo "$as_me: failed program was:" >&5
12933sed 's/^/| /' conftest.$ac_ext >&5
12934
12935ac_cv_lib_dl_dlopen=no
12936fi
12937rm -f conftest.err conftest.$ac_objext \
12938      conftest$ac_exeext conftest.$ac_ext
12939LIBS=$ac_check_lib_save_LIBS
12940fi
12941echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12942echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12943if test $ac_cv_lib_dl_dlopen = yes; then
12944  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12945else
12946  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12947echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12948if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12949  echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
12951  ac_check_lib_save_LIBS=$LIBS
12952LIBS="-lsvld  $LIBS"
12953cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h.  */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
12958/* end confdefs.h.  */
12959
12960/* Override any gcc2 internal prototype to avoid an error.  */
12961#ifdef __cplusplus
12962extern "C"
12963#endif
12964/* We use char because int might match the return type of a gcc2
12965   builtin and then its argument prototype would still apply.  */
12966char dlopen ();
12967int
12968main ()
12969{
12970dlopen ();
12971  ;
12972  return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext conftest$ac_exeext
12976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977  (eval $ac_link) 2>conftest.er1
12978  ac_status=$?
12979  grep -v '^ *+' conftest.er1 >conftest.err
12980  rm -f conftest.er1
12981  cat conftest.err >&5
12982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983  (exit $ac_status); } &&
12984	 { ac_try='test -z "$ac_cxx_werror_flag"
12985			 || test ! -s conftest.err'
12986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987  (eval $ac_try) 2>&5
12988  ac_status=$?
12989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990  (exit $ac_status); }; } &&
12991	 { ac_try='test -s conftest$ac_exeext'
12992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993  (eval $ac_try) 2>&5
12994  ac_status=$?
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); }; }; then
12997  ac_cv_lib_svld_dlopen=yes
12998else
12999  echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002ac_cv_lib_svld_dlopen=no
13003fi
13004rm -f conftest.err conftest.$ac_objext \
13005      conftest$ac_exeext conftest.$ac_ext
13006LIBS=$ac_check_lib_save_LIBS
13007fi
13008echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13009echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13010if test $ac_cv_lib_svld_dlopen = yes; then
13011  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13012else
13013  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13014echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13015if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13016  echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018  ac_check_lib_save_LIBS=$LIBS
13019LIBS="-ldld  $LIBS"
13020cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h.  */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h.  */
13026
13027/* Override any gcc2 internal prototype to avoid an error.  */
13028#ifdef __cplusplus
13029extern "C"
13030#endif
13031/* We use char because int might match the return type of a gcc2
13032   builtin and then its argument prototype would still apply.  */
13033char dld_link ();
13034int
13035main ()
13036{
13037dld_link ();
13038  ;
13039  return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext conftest$ac_exeext
13043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044  (eval $ac_link) 2>conftest.er1
13045  ac_status=$?
13046  grep -v '^ *+' conftest.er1 >conftest.err
13047  rm -f conftest.er1
13048  cat conftest.err >&5
13049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050  (exit $ac_status); } &&
13051	 { ac_try='test -z "$ac_cxx_werror_flag"
13052			 || test ! -s conftest.err'
13053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054  (eval $ac_try) 2>&5
13055  ac_status=$?
13056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057  (exit $ac_status); }; } &&
13058	 { ac_try='test -s conftest$ac_exeext'
13059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060  (eval $ac_try) 2>&5
13061  ac_status=$?
13062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063  (exit $ac_status); }; }; then
13064  ac_cv_lib_dld_dld_link=yes
13065else
13066  echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
13069ac_cv_lib_dld_dld_link=no
13070fi
13071rm -f conftest.err conftest.$ac_objext \
13072      conftest$ac_exeext conftest.$ac_ext
13073LIBS=$ac_check_lib_save_LIBS
13074fi
13075echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13076echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13077if test $ac_cv_lib_dld_dld_link = yes; then
13078  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13079fi
13080
13081
13082fi
13083
13084
13085fi
13086
13087
13088fi
13089
13090
13091fi
13092
13093
13094fi
13095
13096    ;;
13097  esac
13098
13099  if test "x$lt_cv_dlopen" != xno; then
13100    enable_dlopen=yes
13101  else
13102    enable_dlopen=no
13103  fi
13104
13105  case $lt_cv_dlopen in
13106  dlopen)
13107    save_CPPFLAGS="$CPPFLAGS"
13108    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13109
13110    save_LDFLAGS="$LDFLAGS"
13111    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13112
13113    save_LIBS="$LIBS"
13114    LIBS="$lt_cv_dlopen_libs $LIBS"
13115
13116    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13117echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13118if test "${lt_cv_dlopen_self+set}" = set; then
13119  echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
13121  	  if test "$cross_compiling" = yes; then :
13122  lt_cv_dlopen_self=cross
13123else
13124  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13125  lt_status=$lt_dlunknown
13126  cat > conftest.$ac_ext <<EOF
13127#line 13127 "configure"
13128#include "confdefs.h"
13129
13130#if HAVE_DLFCN_H
13131#include <dlfcn.h>
13132#endif
13133
13134#include <stdio.h>
13135
13136#ifdef RTLD_GLOBAL
13137#  define LT_DLGLOBAL		RTLD_GLOBAL
13138#else
13139#  ifdef DL_GLOBAL
13140#    define LT_DLGLOBAL		DL_GLOBAL
13141#  else
13142#    define LT_DLGLOBAL		0
13143#  endif
13144#endif
13145
13146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13147   find out it does not work in some platform. */
13148#ifndef LT_DLLAZY_OR_NOW
13149#  ifdef RTLD_LAZY
13150#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13151#  else
13152#    ifdef DL_LAZY
13153#      define LT_DLLAZY_OR_NOW		DL_LAZY
13154#    else
13155#      ifdef RTLD_NOW
13156#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13157#      else
13158#        ifdef DL_NOW
13159#          define LT_DLLAZY_OR_NOW	DL_NOW
13160#        else
13161#          define LT_DLLAZY_OR_NOW	0
13162#        endif
13163#      endif
13164#    endif
13165#  endif
13166#endif
13167
13168#ifdef __cplusplus
13169extern "C" void exit (int);
13170#endif
13171
13172void fnord() { int i=42;}
13173int main ()
13174{
13175  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13176  int status = $lt_dlunknown;
13177
13178  if (self)
13179    {
13180      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13181      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13182      /* dlclose (self); */
13183    }
13184
13185    exit (status);
13186}
13187EOF
13188  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13189  (eval $ac_link) 2>&5
13190  ac_status=$?
13191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13193    (./conftest; exit; ) >&5 2>/dev/null
13194    lt_status=$?
13195    case x$lt_status in
13196      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13197      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13198      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13199    esac
13200  else :
13201    # compilation failed
13202    lt_cv_dlopen_self=no
13203  fi
13204fi
13205rm -fr conftest*
13206
13207
13208fi
13209echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13210echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13211
13212    if test "x$lt_cv_dlopen_self" = xyes; then
13213      LDFLAGS="$LDFLAGS $link_static_flag"
13214      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13215echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13216if test "${lt_cv_dlopen_self_static+set}" = set; then
13217  echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
13219  	  if test "$cross_compiling" = yes; then :
13220  lt_cv_dlopen_self_static=cross
13221else
13222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13223  lt_status=$lt_dlunknown
13224  cat > conftest.$ac_ext <<EOF
13225#line 13225 "configure"
13226#include "confdefs.h"
13227
13228#if HAVE_DLFCN_H
13229#include <dlfcn.h>
13230#endif
13231
13232#include <stdio.h>
13233
13234#ifdef RTLD_GLOBAL
13235#  define LT_DLGLOBAL		RTLD_GLOBAL
13236#else
13237#  ifdef DL_GLOBAL
13238#    define LT_DLGLOBAL		DL_GLOBAL
13239#  else
13240#    define LT_DLGLOBAL		0
13241#  endif
13242#endif
13243
13244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13245   find out it does not work in some platform. */
13246#ifndef LT_DLLAZY_OR_NOW
13247#  ifdef RTLD_LAZY
13248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13249#  else
13250#    ifdef DL_LAZY
13251#      define LT_DLLAZY_OR_NOW		DL_LAZY
13252#    else
13253#      ifdef RTLD_NOW
13254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13255#      else
13256#        ifdef DL_NOW
13257#          define LT_DLLAZY_OR_NOW	DL_NOW
13258#        else
13259#          define LT_DLLAZY_OR_NOW	0
13260#        endif
13261#      endif
13262#    endif
13263#  endif
13264#endif
13265
13266#ifdef __cplusplus
13267extern "C" void exit (int);
13268#endif
13269
13270void fnord() { int i=42;}
13271int main ()
13272{
13273  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13274  int status = $lt_dlunknown;
13275
13276  if (self)
13277    {
13278      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13279      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13280      /* dlclose (self); */
13281    }
13282
13283    exit (status);
13284}
13285EOF
13286  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287  (eval $ac_link) 2>&5
13288  ac_status=$?
13289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13291    (./conftest; exit; ) >&5 2>/dev/null
13292    lt_status=$?
13293    case x$lt_status in
13294      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13295      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13296      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13297    esac
13298  else :
13299    # compilation failed
13300    lt_cv_dlopen_self_static=no
13301  fi
13302fi
13303rm -fr conftest*
13304
13305
13306fi
13307echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13308echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13309    fi
13310
13311    CPPFLAGS="$save_CPPFLAGS"
13312    LDFLAGS="$save_LDFLAGS"
13313    LIBS="$save_LIBS"
13314    ;;
13315  esac
13316
13317  case $lt_cv_dlopen_self in
13318  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13319  *) enable_dlopen_self=unknown ;;
13320  esac
13321
13322  case $lt_cv_dlopen_self_static in
13323  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13324  *) enable_dlopen_self_static=unknown ;;
13325  esac
13326fi
13327
13328
13329# The else clause should only fire when bootstrapping the
13330# libtool distribution, otherwise you forgot to ship ltmain.sh
13331# with your package, and you will get complaints that there are
13332# no rules to generate ltmain.sh.
13333if test -f "$ltmain"; then
13334  # See if we are running on zsh, and set the options which allow our commands through
13335  # without removal of \ escapes.
13336  if test -n "${ZSH_VERSION+set}" ; then
13337    setopt NO_GLOB_SUBST
13338  fi
13339  # Now quote all the things that may contain metacharacters while being
13340  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13341  # variables and quote the copies for generation of the libtool script.
13342  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13343    SED SHELL STRIP \
13344    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13345    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13346    deplibs_check_method reload_flag reload_cmds need_locks \
13347    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13348    lt_cv_sys_global_symbol_to_c_name_address \
13349    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13350    old_postinstall_cmds old_postuninstall_cmds \
13351    compiler_CXX \
13352    CC_CXX \
13353    LD_CXX \
13354    lt_prog_compiler_wl_CXX \
13355    lt_prog_compiler_pic_CXX \
13356    lt_prog_compiler_static_CXX \
13357    lt_prog_compiler_no_builtin_flag_CXX \
13358    export_dynamic_flag_spec_CXX \
13359    thread_safe_flag_spec_CXX \
13360    whole_archive_flag_spec_CXX \
13361    enable_shared_with_static_runtimes_CXX \
13362    old_archive_cmds_CXX \
13363    old_archive_from_new_cmds_CXX \
13364    predep_objects_CXX \
13365    postdep_objects_CXX \
13366    predeps_CXX \
13367    postdeps_CXX \
13368    compiler_lib_search_path_CXX \
13369    archive_cmds_CXX \
13370    archive_expsym_cmds_CXX \
13371    postinstall_cmds_CXX \
13372    postuninstall_cmds_CXX \
13373    old_archive_from_expsyms_cmds_CXX \
13374    allow_undefined_flag_CXX \
13375    no_undefined_flag_CXX \
13376    export_symbols_cmds_CXX \
13377    hardcode_libdir_flag_spec_CXX \
13378    hardcode_libdir_flag_spec_ld_CXX \
13379    hardcode_libdir_separator_CXX \
13380    hardcode_automatic_CXX \
13381    module_cmds_CXX \
13382    module_expsym_cmds_CXX \
13383    lt_cv_prog_compiler_c_o_CXX \
13384    exclude_expsyms_CXX \
13385    include_expsyms_CXX; do
13386
13387    case $var in
13388    old_archive_cmds_CXX | \
13389    old_archive_from_new_cmds_CXX | \
13390    archive_cmds_CXX | \
13391    archive_expsym_cmds_CXX | \
13392    module_cmds_CXX | \
13393    module_expsym_cmds_CXX | \
13394    old_archive_from_expsyms_cmds_CXX | \
13395    export_symbols_cmds_CXX | \
13396    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13397    postinstall_cmds | postuninstall_cmds | \
13398    old_postinstall_cmds | old_postuninstall_cmds | \
13399    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13400      # Double-quote double-evaled strings.
13401      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13402      ;;
13403    *)
13404      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13405      ;;
13406    esac
13407  done
13408
13409  case $lt_echo in
13410  *'\$0 --fallback-echo"')
13411    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13412    ;;
13413  esac
13414
13415cfgfile="$ofile"
13416
13417  cat <<__EOF__ >> "$cfgfile"
13418# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13419
13420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13421
13422# Shell to use when invoking shell scripts.
13423SHELL=$lt_SHELL
13424
13425# Whether or not to build shared libraries.
13426build_libtool_libs=$enable_shared
13427
13428# Whether or not to build static libraries.
13429build_old_libs=$enable_static
13430
13431# Whether or not to add -lc for building shared libraries.
13432build_libtool_need_lc=$archive_cmds_need_lc_CXX
13433
13434# Whether or not to disallow shared libs when runtime libs are static
13435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13436
13437# Whether or not to optimize for fast installation.
13438fast_install=$enable_fast_install
13439
13440# The host system.
13441host_alias=$host_alias
13442host=$host
13443host_os=$host_os
13444
13445# The build system.
13446build_alias=$build_alias
13447build=$build
13448build_os=$build_os
13449
13450# An echo program that does not interpret backslashes.
13451echo=$lt_echo
13452
13453# The archiver.
13454AR=$lt_AR
13455AR_FLAGS=$lt_AR_FLAGS
13456
13457# A C compiler.
13458LTCC=$lt_LTCC
13459
13460# A language-specific compiler.
13461CC=$lt_compiler_CXX
13462
13463# Is the compiler the GNU C compiler?
13464with_gcc=$GCC_CXX
13465
13466# An ERE matcher.
13467EGREP=$lt_EGREP
13468
13469# The linker used to build libraries.
13470LD=$lt_LD_CXX
13471
13472# Whether we need hard or soft links.
13473LN_S=$lt_LN_S
13474
13475# A BSD-compatible nm program.
13476NM=$lt_NM
13477
13478# A symbol stripping program
13479STRIP=$lt_STRIP
13480
13481# Used to examine libraries when file_magic_cmd begins "file"
13482MAGIC_CMD=$MAGIC_CMD
13483
13484# Used on cygwin: DLL creation program.
13485DLLTOOL="$DLLTOOL"
13486
13487# Used on cygwin: object dumper.
13488OBJDUMP="$OBJDUMP"
13489
13490# Used on cygwin: assembler.
13491AS="$AS"
13492
13493# The name of the directory that contains temporary libtool files.
13494objdir=$objdir
13495
13496# How to create reloadable object files.
13497reload_flag=$lt_reload_flag
13498reload_cmds=$lt_reload_cmds
13499
13500# How to pass a linker flag through the compiler.
13501wl=$lt_lt_prog_compiler_wl_CXX
13502
13503# Object file suffix (normally "o").
13504objext="$ac_objext"
13505
13506# Old archive suffix (normally "a").
13507libext="$libext"
13508
13509# Shared library suffix (normally ".so").
13510shrext_cmds='$shrext_cmds'
13511
13512# Executable file suffix (normally "").
13513exeext="$exeext"
13514
13515# Additional compiler flags for building library objects.
13516pic_flag=$lt_lt_prog_compiler_pic_CXX
13517pic_mode=$pic_mode
13518
13519# What is the maximum length of a command?
13520max_cmd_len=$lt_cv_sys_max_cmd_len
13521
13522# Does compiler simultaneously support -c and -o options?
13523compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13524
13525# Must we lock files when doing compilation?
13526need_locks=$lt_need_locks
13527
13528# Do we need the lib prefix for modules?
13529need_lib_prefix=$need_lib_prefix
13530
13531# Do we need a version for libraries?
13532need_version=$need_version
13533
13534# Whether dlopen is supported.
13535dlopen_support=$enable_dlopen
13536
13537# Whether dlopen of programs is supported.
13538dlopen_self=$enable_dlopen_self
13539
13540# Whether dlopen of statically linked programs is supported.
13541dlopen_self_static=$enable_dlopen_self_static
13542
13543# Compiler flag to prevent dynamic linking.
13544link_static_flag=$lt_lt_prog_compiler_static_CXX
13545
13546# Compiler flag to turn off builtin functions.
13547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13548
13549# Compiler flag to allow reflexive dlopens.
13550export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13551
13552# Compiler flag to generate shared objects directly from archives.
13553whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13554
13555# Compiler flag to generate thread-safe objects.
13556thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13557
13558# Library versioning type.
13559version_type=$version_type
13560
13561# Format of library name prefix.
13562libname_spec=$lt_libname_spec
13563
13564# List of archive names.  First name is the real one, the rest are links.
13565# The last name is the one that the linker finds with -lNAME.
13566library_names_spec=$lt_library_names_spec
13567
13568# The coded name of the library, if different from the real name.
13569soname_spec=$lt_soname_spec
13570
13571# Commands used to build and install an old-style archive.
13572RANLIB=$lt_RANLIB
13573old_archive_cmds=$lt_old_archive_cmds_CXX
13574old_postinstall_cmds=$lt_old_postinstall_cmds
13575old_postuninstall_cmds=$lt_old_postuninstall_cmds
13576
13577# Create an old-style archive from a shared archive.
13578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13579
13580# Create a temporary old-style archive to link instead of a shared archive.
13581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13582
13583# Commands used to build and install a shared archive.
13584archive_cmds=$lt_archive_cmds_CXX
13585archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13586postinstall_cmds=$lt_postinstall_cmds
13587postuninstall_cmds=$lt_postuninstall_cmds
13588
13589# Commands used to build a loadable module (assumed same as above if empty)
13590module_cmds=$lt_module_cmds_CXX
13591module_expsym_cmds=$lt_module_expsym_cmds_CXX
13592
13593# Commands to strip libraries.
13594old_striplib=$lt_old_striplib
13595striplib=$lt_striplib
13596
13597# Dependencies to place before the objects being linked to create a
13598# shared library.
13599predep_objects=$lt_predep_objects_CXX
13600
13601# Dependencies to place after the objects being linked to create a
13602# shared library.
13603postdep_objects=$lt_postdep_objects_CXX
13604
13605# Dependencies to place before the objects being linked to create a
13606# shared library.
13607predeps=$lt_predeps_CXX
13608
13609# Dependencies to place after the objects being linked to create a
13610# shared library.
13611postdeps=$lt_postdeps_CXX
13612
13613# The library search path used internally by the compiler when linking
13614# a shared library.
13615compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13616
13617# Method to check whether dependent libraries are shared objects.
13618deplibs_check_method=$lt_deplibs_check_method
13619
13620# Command to use when deplibs_check_method == file_magic.
13621file_magic_cmd=$lt_file_magic_cmd
13622
13623# Flag that allows shared libraries with undefined symbols to be built.
13624allow_undefined_flag=$lt_allow_undefined_flag_CXX
13625
13626# Flag that forces no undefined symbols.
13627no_undefined_flag=$lt_no_undefined_flag_CXX
13628
13629# Commands used to finish a libtool library installation in a directory.
13630finish_cmds=$lt_finish_cmds
13631
13632# Same as above, but a single script fragment to be evaled but not shown.
13633finish_eval=$lt_finish_eval
13634
13635# Take the output of nm and produce a listing of raw symbols and C names.
13636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13637
13638# Transform the output of nm in a proper C declaration
13639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13640
13641# Transform the output of nm in a C name address pair
13642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13643
13644# This is the shared library runtime path variable.
13645runpath_var=$runpath_var
13646
13647# This is the shared library path variable.
13648shlibpath_var=$shlibpath_var
13649
13650# Is shlibpath searched before the hard-coded library search path?
13651shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13652
13653# How to hardcode a shared library path into an executable.
13654hardcode_action=$hardcode_action_CXX
13655
13656# Whether we should hardcode library paths into libraries.
13657hardcode_into_libs=$hardcode_into_libs
13658
13659# Flag to hardcode \$libdir into a binary during linking.
13660# This must work even if \$libdir does not exist.
13661hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13662
13663# If ld is used when linking, flag to hardcode \$libdir into
13664# a binary during linking. This must work even if \$libdir does
13665# not exist.
13666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13667
13668# Whether we need a single -rpath flag with a separated argument.
13669hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13670
13671# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13672# resulting binary.
13673hardcode_direct=$hardcode_direct_CXX
13674
13675# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13676# resulting binary.
13677hardcode_minus_L=$hardcode_minus_L_CXX
13678
13679# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13680# the resulting binary.
13681hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13682
13683# Set to yes if building a shared library automatically hardcodes DIR into the library
13684# and all subsequent libraries and executables linked against it.
13685hardcode_automatic=$hardcode_automatic_CXX
13686
13687# Variables whose values should be saved in libtool wrapper scripts and
13688# restored at relink time.
13689variables_saved_for_relink="$variables_saved_for_relink"
13690
13691# Whether libtool must link a program against all its dependency libraries.
13692link_all_deplibs=$link_all_deplibs_CXX
13693
13694# Compile-time system search path for libraries
13695sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13696
13697# Run-time system search path for libraries
13698sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13699
13700# Fix the shell variable \$srcfile for the compiler.
13701fix_srcfile_path="$fix_srcfile_path_CXX"
13702
13703# Set to yes if exported symbols are required.
13704always_export_symbols=$always_export_symbols_CXX
13705
13706# The commands to list exported symbols.
13707export_symbols_cmds=$lt_export_symbols_cmds_CXX
13708
13709# The commands to extract the exported symbol list from a shared archive.
13710extract_expsyms_cmds=$lt_extract_expsyms_cmds
13711
13712# Symbols that should not be listed in the preloaded symbols.
13713exclude_expsyms=$lt_exclude_expsyms_CXX
13714
13715# Symbols that must always be exported.
13716include_expsyms=$lt_include_expsyms_CXX
13717
13718# ### END LIBTOOL TAG CONFIG: $tagname
13719
13720__EOF__
13721
13722
13723else
13724  # If there is no Makefile yet, we rely on a make rule to execute
13725  # `config.status --recheck' to rerun these tests and create the
13726  # libtool script then.
13727  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13728  if test -f "$ltmain_in"; then
13729    test -f Makefile && make "$ltmain"
13730  fi
13731fi
13732
13733
13734ac_ext=c
13735ac_cpp='$CPP $CPPFLAGS'
13736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13738ac_compiler_gnu=$ac_cv_c_compiler_gnu
13739
13740CC=$lt_save_CC
13741LDCXX=$LD
13742LD=$lt_save_LD
13743GCC=$lt_save_GCC
13744with_gnu_ldcxx=$with_gnu_ld
13745with_gnu_ld=$lt_save_with_gnu_ld
13746lt_cv_path_LDCXX=$lt_cv_path_LD
13747lt_cv_path_LD=$lt_save_path_LD
13748lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13749lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13750
13751	else
13752	  tagname=""
13753	fi
13754	;;
13755
13756      F77)
13757	if test -n "$F77" && test "X$F77" != "Xno"; then
13758
13759ac_ext=f
13760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13762ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13763
13764
13765archive_cmds_need_lc_F77=no
13766allow_undefined_flag_F77=
13767always_export_symbols_F77=no
13768archive_expsym_cmds_F77=
13769export_dynamic_flag_spec_F77=
13770hardcode_direct_F77=no
13771hardcode_libdir_flag_spec_F77=
13772hardcode_libdir_flag_spec_ld_F77=
13773hardcode_libdir_separator_F77=
13774hardcode_minus_L_F77=no
13775hardcode_automatic_F77=no
13776module_cmds_F77=
13777module_expsym_cmds_F77=
13778link_all_deplibs_F77=unknown
13779old_archive_cmds_F77=$old_archive_cmds
13780no_undefined_flag_F77=
13781whole_archive_flag_spec_F77=
13782enable_shared_with_static_runtimes_F77=no
13783
13784# Source file extension for f77 test sources.
13785ac_ext=f
13786
13787# Object file extension for compiled f77 test sources.
13788objext=o
13789objext_F77=$objext
13790
13791# Code to be used in simple compile tests
13792lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13793
13794# Code to be used in simple link tests
13795lt_simple_link_test_code="      program t\n      end\n"
13796
13797# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13798
13799# If no C compiler was specified, use CC.
13800LTCC=${LTCC-"$CC"}
13801
13802# Allow CC to be a program name with arguments.
13803compiler=$CC
13804
13805
13806# save warnings/boilerplate of simple test code
13807ac_outfile=conftest.$ac_objext
13808printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13810_lt_compiler_boilerplate=`cat conftest.err`
13811$rm conftest*
13812
13813ac_outfile=conftest.$ac_objext
13814printf "$lt_simple_link_test_code" >conftest.$ac_ext
13815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13816_lt_linker_boilerplate=`cat conftest.err`
13817$rm conftest*
13818
13819
13820# Allow CC to be a program name with arguments.
13821lt_save_CC="$CC"
13822CC=${F77-"f77"}
13823compiler=$CC
13824compiler_F77=$CC
13825for cc_temp in $compiler""; do
13826  case $cc_temp in
13827    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13828    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13829    \-*) ;;
13830    *) break;;
13831  esac
13832done
13833cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13834
13835
13836echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13837echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13838echo "$as_me:$LINENO: result: $can_build_shared" >&5
13839echo "${ECHO_T}$can_build_shared" >&6
13840
13841echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13842echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13843test "$can_build_shared" = "no" && enable_shared=no
13844
13845# On AIX, shared libraries and static libraries use the same namespace, and
13846# are all built from PIC.
13847case $host_os in
13848aix3*)
13849  test "$enable_shared" = yes && enable_static=no
13850  if test -n "$RANLIB"; then
13851    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13852    postinstall_cmds='$RANLIB $lib'
13853  fi
13854  ;;
13855aix4* | aix5*)
13856  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13857    test "$enable_shared" = yes && enable_static=no
13858  fi
13859  ;;
13860esac
13861echo "$as_me:$LINENO: result: $enable_shared" >&5
13862echo "${ECHO_T}$enable_shared" >&6
13863
13864echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13865echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13866# Make sure either enable_shared or enable_static is yes.
13867test "$enable_shared" = yes || enable_static=yes
13868echo "$as_me:$LINENO: result: $enable_static" >&5
13869echo "${ECHO_T}$enable_static" >&6
13870
13871test "$ld_shlibs_F77" = no && can_build_shared=no
13872
13873GCC_F77="$G77"
13874LD_F77="$LD"
13875
13876lt_prog_compiler_wl_F77=
13877lt_prog_compiler_pic_F77=
13878lt_prog_compiler_static_F77=
13879
13880echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13881echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13882
13883  if test "$GCC" = yes; then
13884    lt_prog_compiler_wl_F77='-Wl,'
13885    lt_prog_compiler_static_F77='-static'
13886
13887    case $host_os in
13888      aix*)
13889      # All AIX code is PIC.
13890      if test "$host_cpu" = ia64; then
13891	# AIX 5 now supports IA64 processor
13892	lt_prog_compiler_static_F77='-Bstatic'
13893      fi
13894      ;;
13895
13896    amigaos*)
13897      # FIXME: we need at least 68020 code to build shared libraries, but
13898      # adding the `-m68020' flag to GCC prevents building anything better,
13899      # like `-m68040'.
13900      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13901      ;;
13902
13903    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
13904    | osf5*)
13905      # PIC is the default for these OSes.
13906      ;;
13907
13908    mingw* | pw32* | os2*)
13909      # This hack is so that the source file can tell whether it is being
13910      # built for inclusion in a dll (and should export symbols for example).
13911      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13912      ;;
13913
13914    darwin* | rhapsody*)
13915      # PIC is the default on this platform
13916      # Common symbols not allowed in MH_DYLIB files
13917      lt_prog_compiler_pic_F77='-fno-common'
13918      ;;
13919
13920    msdosdjgpp*)
13921      # Just because we use GCC doesn't mean we suddenly get shared libraries
13922      # on systems that don't support them.
13923      lt_prog_compiler_can_build_shared_F77=no
13924      enable_shared=no
13925      ;;
13926
13927    sysv4*MP*)
13928      if test -d /usr/nec; then
13929	lt_prog_compiler_pic_F77=-Kconform_pic
13930      fi
13931      ;;
13932
13933    hpux*)
13934      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13935      # not for PA HP-UX.
13936      case $host_cpu in
13937      hppa*64*|ia64*)
13938	# +Z the default
13939	;;
13940      *)
13941	lt_prog_compiler_pic_F77='-fPIC'
13942	;;
13943      esac
13944      ;;
13945
13946    *)
13947      lt_prog_compiler_pic_F77='-fPIC'
13948      ;;
13949    esac
13950  else
13951    # PORTME Check for flag to pass linker flags through the system compiler.
13952    case $host_os in
13953    aix*)
13954      lt_prog_compiler_wl_F77='-Wl,'
13955      if test "$host_cpu" = ia64; then
13956	# AIX 5 now supports IA64 processor
13957	lt_prog_compiler_static_F77='-Bstatic'
13958      else
13959	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13960      fi
13961      ;;
13962      darwin*)
13963        # PIC is the default on this platform
13964        # Common symbols not allowed in MH_DYLIB files
13965       case $cc_basename in
13966         xlc*)
13967         lt_prog_compiler_pic_F77='-qnocommon'
13968         lt_prog_compiler_wl_F77='-Wl,'
13969         ;;
13970       esac
13971       ;;
13972
13973    mingw* | pw32* | os2*)
13974      # This hack is so that the source file can tell whether it is being
13975      # built for inclusion in a dll (and should export symbols for example).
13976      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13977      ;;
13978
13979    hpux9* | hpux10* | hpux11*)
13980      lt_prog_compiler_wl_F77='-Wl,'
13981      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13982      # not for PA HP-UX.
13983      case $host_cpu in
13984      hppa*64*|ia64*)
13985	# +Z the default
13986	;;
13987      *)
13988	lt_prog_compiler_pic_F77='+Z'
13989	;;
13990      esac
13991      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13992      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13993      ;;
13994
13995    irix5* | irix6* | nonstopux*)
13996      lt_prog_compiler_wl_F77='-Wl,'
13997      # PIC (with -KPIC) is the default.
13998      lt_prog_compiler_static_F77='-non_shared'
13999      ;;
14000
14001    newsos6)
14002      lt_prog_compiler_pic_F77='-KPIC'
14003      lt_prog_compiler_static_F77='-Bstatic'
14004      ;;
14005
14006    linux*)
14007      case $cc_basename in
14008      icc* | ecc*)
14009	lt_prog_compiler_wl_F77='-Wl,'
14010	lt_prog_compiler_pic_F77='-KPIC'
14011	lt_prog_compiler_static_F77='-static'
14012        ;;
14013      pgcc* | pgf77* | pgf90* | pgf95*)
14014        # Portland Group compilers (*not* the Pentium gcc compiler,
14015	# which looks to be a dead project)
14016	lt_prog_compiler_wl_F77='-Wl,'
14017	lt_prog_compiler_pic_F77='-fpic'
14018	lt_prog_compiler_static_F77='-Bstatic'
14019        ;;
14020      ccc*)
14021        lt_prog_compiler_wl_F77='-Wl,'
14022        # All Alpha code is PIC.
14023        lt_prog_compiler_static_F77='-non_shared'
14024        ;;
14025      esac
14026      ;;
14027
14028    osf3* | osf4* | osf5*)
14029      lt_prog_compiler_wl_F77='-Wl,'
14030      # All OSF/1 code is PIC.
14031      lt_prog_compiler_static_F77='-non_shared'
14032      ;;
14033
14034    sco3.2v5*)
14035      lt_prog_compiler_pic_F77='-Kpic'
14036      lt_prog_compiler_static_F77='-dn'
14037      ;;
14038
14039    solaris*)
14040      lt_prog_compiler_pic_F77='-KPIC'
14041      lt_prog_compiler_static_F77='-Bstatic'
14042      case $cc_basename in
14043      f77* | f90* | f95*)
14044	lt_prog_compiler_wl_F77='-Qoption ld ';;
14045      *)
14046	lt_prog_compiler_wl_F77='-Wl,';;
14047      esac
14048      ;;
14049
14050    sunos4*)
14051      lt_prog_compiler_wl_F77='-Qoption ld '
14052      lt_prog_compiler_pic_F77='-PIC'
14053      lt_prog_compiler_static_F77='-Bstatic'
14054      ;;
14055
14056    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14057      lt_prog_compiler_wl_F77='-Wl,'
14058      lt_prog_compiler_pic_F77='-KPIC'
14059      lt_prog_compiler_static_F77='-Bstatic'
14060      ;;
14061
14062    sysv4*MP*)
14063      if test -d /usr/nec ;then
14064	lt_prog_compiler_pic_F77='-Kconform_pic'
14065	lt_prog_compiler_static_F77='-Bstatic'
14066      fi
14067      ;;
14068
14069    unicos*)
14070      lt_prog_compiler_wl_F77='-Wl,'
14071      lt_prog_compiler_can_build_shared_F77=no
14072      ;;
14073
14074    uts4*)
14075      lt_prog_compiler_pic_F77='-pic'
14076      lt_prog_compiler_static_F77='-Bstatic'
14077      ;;
14078
14079    *)
14080      lt_prog_compiler_can_build_shared_F77=no
14081      ;;
14082    esac
14083  fi
14084
14085echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14086echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14087
14088#
14089# Check to make sure the PIC flag actually works.
14090#
14091if test -n "$lt_prog_compiler_pic_F77"; then
14092
14093echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14094echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14095if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14096  echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098  lt_prog_compiler_pic_works_F77=no
14099  ac_outfile=conftest.$ac_objext
14100   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14101   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14102   # Insert the option either (1) after the last *FLAGS variable, or
14103   # (2) before a word containing "conftest.", or (3) at the end.
14104   # Note that $ac_compile itself does not contain backslashes and begins
14105   # with a dollar sign (not a hyphen), so the echo should work correctly.
14106   # The option is referenced via a variable to avoid confusing sed.
14107   lt_compile=`echo "$ac_compile" | $SED \
14108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110   -e 's:$: $lt_compiler_flag:'`
14111   (eval echo "\"\$as_me:14111: $lt_compile\"" >&5)
14112   (eval "$lt_compile" 2>conftest.err)
14113   ac_status=$?
14114   cat conftest.err >&5
14115   echo "$as_me:14115: \$? = $ac_status" >&5
14116   if (exit $ac_status) && test -s "$ac_outfile"; then
14117     # The compiler can only warn and ignore the option if not recognized
14118     # So say no if there are warnings other than the usual output.
14119     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14120     $SED '/^$/d' conftest.err >conftest.er2
14121     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14122       lt_prog_compiler_pic_works_F77=yes
14123     fi
14124   fi
14125   $rm conftest*
14126
14127fi
14128echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14129echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14130
14131if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14132    case $lt_prog_compiler_pic_F77 in
14133     "" | " "*) ;;
14134     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14135     esac
14136else
14137    lt_prog_compiler_pic_F77=
14138     lt_prog_compiler_can_build_shared_F77=no
14139fi
14140
14141fi
14142case $host_os in
14143  # For platforms which do not support PIC, -DPIC is meaningless:
14144  *djgpp*)
14145    lt_prog_compiler_pic_F77=
14146    ;;
14147  *)
14148    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14149    ;;
14150esac
14151
14152echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14153echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14154if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14155  echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157  lt_cv_prog_compiler_c_o_F77=no
14158   $rm -r conftest 2>/dev/null
14159   mkdir conftest
14160   cd conftest
14161   mkdir out
14162   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14163
14164   lt_compiler_flag="-o out/conftest2.$ac_objext"
14165   # Insert the option either (1) after the last *FLAGS variable, or
14166   # (2) before a word containing "conftest.", or (3) at the end.
14167   # Note that $ac_compile itself does not contain backslashes and begins
14168   # with a dollar sign (not a hyphen), so the echo should work correctly.
14169   lt_compile=`echo "$ac_compile" | $SED \
14170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14172   -e 's:$: $lt_compiler_flag:'`
14173   (eval echo "\"\$as_me:14173: $lt_compile\"" >&5)
14174   (eval "$lt_compile" 2>out/conftest.err)
14175   ac_status=$?
14176   cat out/conftest.err >&5
14177   echo "$as_me:14177: \$? = $ac_status" >&5
14178   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14179   then
14180     # The compiler can only warn and ignore the option if not recognized
14181     # So say no if there are warnings
14182     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14183     $SED '/^$/d' out/conftest.err >out/conftest.er2
14184     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14185       lt_cv_prog_compiler_c_o_F77=yes
14186     fi
14187   fi
14188   chmod u+w . 2>&5
14189   $rm conftest*
14190   # SGI C++ compiler will create directory out/ii_files/ for
14191   # template instantiation
14192   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14193   $rm out/* && rmdir out
14194   cd ..
14195   rmdir conftest
14196   $rm conftest*
14197
14198fi
14199echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14200echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14201
14202
14203hard_links="nottested"
14204if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14205  # do not overwrite the value of need_locks provided by the user
14206  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14207echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14208  hard_links=yes
14209  $rm conftest*
14210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14211  touch conftest.a
14212  ln conftest.a conftest.b 2>&5 || hard_links=no
14213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14214  echo "$as_me:$LINENO: result: $hard_links" >&5
14215echo "${ECHO_T}$hard_links" >&6
14216  if test "$hard_links" = no; then
14217    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14218echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14219    need_locks=warn
14220  fi
14221else
14222  need_locks=no
14223fi
14224
14225echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14226echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14227
14228  runpath_var=
14229  allow_undefined_flag_F77=
14230  enable_shared_with_static_runtimes_F77=no
14231  archive_cmds_F77=
14232  archive_expsym_cmds_F77=
14233  old_archive_From_new_cmds_F77=
14234  old_archive_from_expsyms_cmds_F77=
14235  export_dynamic_flag_spec_F77=
14236  whole_archive_flag_spec_F77=
14237  thread_safe_flag_spec_F77=
14238  hardcode_libdir_flag_spec_F77=
14239  hardcode_libdir_flag_spec_ld_F77=
14240  hardcode_libdir_separator_F77=
14241  hardcode_direct_F77=no
14242  hardcode_minus_L_F77=no
14243  hardcode_shlibpath_var_F77=unsupported
14244  link_all_deplibs_F77=unknown
14245  hardcode_automatic_F77=no
14246  module_cmds_F77=
14247  module_expsym_cmds_F77=
14248  always_export_symbols_F77=no
14249  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14250  # include_expsyms should be a list of space-separated symbols to be *always*
14251  # included in the symbol list
14252  include_expsyms_F77=
14253  # exclude_expsyms can be an extended regexp of symbols to exclude
14254  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14255  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14256  # as well as any symbol that contains `d'.
14257  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14258  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14259  # platforms (ab)use it in PIC code, but their linkers get confused if
14260  # the symbol is explicitly referenced.  Since portable code cannot
14261  # rely on this symbol name, it's probably fine to never include it in
14262  # preloaded symbol tables.
14263  extract_expsyms_cmds=
14264  # Just being paranoid about ensuring that cc_basename is set.
14265  for cc_temp in $compiler""; do
14266  case $cc_temp in
14267    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269    \-*) ;;
14270    *) break;;
14271  esac
14272done
14273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14274
14275  case $host_os in
14276  cygwin* | mingw* | pw32*)
14277    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14278    # When not using gcc, we currently assume that we are using
14279    # Microsoft Visual C++.
14280    if test "$GCC" != yes; then
14281      with_gnu_ld=no
14282    fi
14283    ;;
14284  openbsd*)
14285    with_gnu_ld=no
14286    ;;
14287  esac
14288
14289  ld_shlibs_F77=yes
14290  if test "$with_gnu_ld" = yes; then
14291    # If archive_cmds runs LD, not CC, wlarc should be empty
14292    wlarc='${wl}'
14293
14294    # Set some defaults for GNU ld with shared library support. These
14295    # are reset later if shared libraries are not supported. Putting them
14296    # here allows them to be overridden if necessary.
14297    runpath_var=LD_RUN_PATH
14298    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14299    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14300    # ancient GNU ld didn't support --whole-archive et. al.
14301    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14302	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14303      else
14304  	whole_archive_flag_spec_F77=
14305    fi
14306    supports_anon_versioning=no
14307    case `$LD -v 2>/dev/null` in
14308      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14309      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14310      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14311      *\ 2.11.*) ;; # other 2.11 versions
14312      *) supports_anon_versioning=yes ;;
14313    esac
14314
14315    # See if GNU ld supports shared libraries.
14316    case $host_os in
14317    aix3* | aix4* | aix5*)
14318      # On AIX/PPC, the GNU linker is very broken
14319      if test "$host_cpu" != ia64; then
14320	ld_shlibs_F77=no
14321	cat <<EOF 1>&2
14322
14323*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14324*** to be unable to reliably create shared libraries on AIX.
14325*** Therefore, libtool is disabling shared libraries support.  If you
14326*** really care for shared libraries, you may want to modify your PATH
14327*** so that a non-GNU linker is found, and then restart.
14328
14329EOF
14330      fi
14331      ;;
14332
14333    amigaos*)
14334      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)'
14335      hardcode_libdir_flag_spec_F77='-L$libdir'
14336      hardcode_minus_L_F77=yes
14337
14338      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14339      # that the semantics of dynamic libraries on AmigaOS, at least up
14340      # to version 4, is to share data among multiple programs linked
14341      # with the same dynamic library.  Since this doesn't match the
14342      # behavior of shared libraries on other platforms, we can't use
14343      # them.
14344      ld_shlibs_F77=no
14345      ;;
14346
14347    beos*)
14348      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14349	allow_undefined_flag_F77=unsupported
14350	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14351	# support --undefined.  This deserves some investigation.  FIXME
14352	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353      else
14354	ld_shlibs_F77=no
14355      fi
14356      ;;
14357
14358    cygwin* | mingw* | pw32*)
14359      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14360      # as there is no search path for DLLs.
14361      hardcode_libdir_flag_spec_F77='-L$libdir'
14362      allow_undefined_flag_F77=unsupported
14363      always_export_symbols_F77=no
14364      enable_shared_with_static_runtimes_F77=yes
14365      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14366
14367      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14368        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14369	# If the export-symbols file already is a .def file (1st line
14370	# is EXPORTS), use it as is; otherwise, prepend...
14371	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14372	  cp $export_symbols $output_objdir/$soname.def;
14373	else
14374	  echo EXPORTS > $output_objdir/$soname.def;
14375	  cat $export_symbols >> $output_objdir/$soname.def;
14376	fi~
14377	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14378      else
14379	ld_shlibs_F77=no
14380      fi
14381      ;;
14382
14383    haiku*)
14384      allow_undefined_flag_F77=unsupported
14385      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14386      ;;
14387
14388    linux*)
14389      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14390	tmp_addflag=
14391	case $cc_basename,$host_cpu in
14392	pgcc*)				# Portland Group C compiler
14393	  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'
14394	  tmp_addflag=' $pic_flag'
14395	  ;;
14396	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14397	  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'
14398	  tmp_addflag=' $pic_flag -Mnomain' ;;
14399	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14400	  tmp_addflag=' -i_dynamic' ;;
14401	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14402	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14403	ifc* | ifort*)			# Intel Fortran compiler
14404	  tmp_addflag=' -nofor_main' ;;
14405	esac
14406	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14407
14408	if test $supports_anon_versioning = yes; then
14409	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14410  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14411  $echo "local: *; };" >> $output_objdir/$libname.ver~
14412	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14413	fi
14414      else
14415	ld_shlibs_F77=no
14416      fi
14417      ;;
14418
14419    netbsd*)
14420      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14421	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14422	wlarc=
14423      else
14424	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14426      fi
14427      ;;
14428
14429    solaris* | sysv5*)
14430      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14431	ld_shlibs_F77=no
14432	cat <<EOF 1>&2
14433
14434*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14435*** create shared libraries on Solaris systems.  Therefore, libtool
14436*** is disabling shared libraries support.  We urge you to upgrade GNU
14437*** binutils to release 2.9.1 or newer.  Another option is to modify
14438*** your PATH or compiler configuration so that the native linker is
14439*** used, and then restart.
14440
14441EOF
14442      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14443	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14444	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14445      else
14446	ld_shlibs_F77=no
14447      fi
14448      ;;
14449
14450    sunos4*)
14451      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14452      wlarc=
14453      hardcode_direct_F77=yes
14454      hardcode_shlibpath_var_F77=no
14455      ;;
14456
14457    *)
14458      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14461      else
14462	ld_shlibs_F77=no
14463      fi
14464      ;;
14465    esac
14466
14467    if test "$ld_shlibs_F77" = no; then
14468      runpath_var=
14469      hardcode_libdir_flag_spec_F77=
14470      export_dynamic_flag_spec_F77=
14471      whole_archive_flag_spec_F77=
14472    fi
14473  else
14474    # PORTME fill in a description of your system's linker (not GNU ld)
14475    case $host_os in
14476    aix3*)
14477      allow_undefined_flag_F77=unsupported
14478      always_export_symbols_F77=yes
14479      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'
14480      # Note: this linker hardcodes the directories in LIBPATH if there
14481      # are no directories specified by -L.
14482      hardcode_minus_L_F77=yes
14483      if test "$GCC" = yes && test -z "$link_static_flag"; then
14484	# Neither direct hardcoding nor static linking is supported with a
14485	# broken collect2.
14486	hardcode_direct_F77=unsupported
14487      fi
14488      ;;
14489
14490    aix4* | aix5*)
14491      if test "$host_cpu" = ia64; then
14492	# On IA64, the linker does run time linking by default, so we don't
14493	# have to do anything special.
14494	aix_use_runtimelinking=no
14495	exp_sym_flag='-Bexport'
14496	no_entry_flag=""
14497      else
14498	# If we're using GNU nm, then we don't want the "-C" option.
14499	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14500	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14501	  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'
14502	else
14503	  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'
14504	fi
14505	aix_use_runtimelinking=no
14506
14507	# Test if we are trying to use run time linking or normal
14508	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14509	# need to do runtime linking.
14510	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14511	  for ld_flag in $LDFLAGS; do
14512  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14513  	    aix_use_runtimelinking=yes
14514  	    break
14515  	  fi
14516	  done
14517	esac
14518
14519	exp_sym_flag='-bexport'
14520	no_entry_flag='-bnoentry'
14521      fi
14522
14523      # When large executables or shared objects are built, AIX ld can
14524      # have problems creating the table of contents.  If linking a library
14525      # or program results in "error TOC overflow" add -mminimal-toc to
14526      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14527      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14528
14529      archive_cmds_F77=''
14530      hardcode_direct_F77=yes
14531      hardcode_libdir_separator_F77=':'
14532      link_all_deplibs_F77=yes
14533
14534      if test "$GCC" = yes; then
14535	case $host_os in aix4.[012]|aix4.[012].*)
14536	# We only want to do this on AIX 4.2 and lower, the check
14537	# below for broken collect2 doesn't work under 4.3+
14538	  collect2name=`${CC} -print-prog-name=collect2`
14539	  if test -f "$collect2name" && \
14540  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14541	  then
14542  	  # We have reworked collect2
14543  	  hardcode_direct_F77=yes
14544	  else
14545  	  # We have old collect2
14546  	  hardcode_direct_F77=unsupported
14547  	  # It fails to find uninstalled libraries when the uninstalled
14548  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14549  	  # to unsupported forces relinking
14550  	  hardcode_minus_L_F77=yes
14551  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14552  	  hardcode_libdir_separator_F77=
14553	  fi
14554	esac
14555	shared_flag='-shared'
14556	if test "$aix_use_runtimelinking" = yes; then
14557	  shared_flag="$shared_flag "'${wl}-G'
14558	fi
14559      else
14560	# not using gcc
14561	if test "$host_cpu" = ia64; then
14562  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14563  	# chokes on -Wl,-G. The following line is correct:
14564	  shared_flag='-G'
14565	else
14566  	if test "$aix_use_runtimelinking" = yes; then
14567	    shared_flag='${wl}-G'
14568	  else
14569	    shared_flag='${wl}-bM:SRE'
14570  	fi
14571	fi
14572      fi
14573
14574      # It seems that -bexpall does not export symbols beginning with
14575      # underscore (_), so it is better to generate a list of symbols to export.
14576      always_export_symbols_F77=yes
14577      if test "$aix_use_runtimelinking" = yes; then
14578	# Warning - without using the other runtime loading flags (-brtl),
14579	# -berok will link without error, but may produce a broken library.
14580	allow_undefined_flag_F77='-berok'
14581       # Determine the default libpath from the value encoded in an empty executable.
14582       cat >conftest.$ac_ext <<_ACEOF
14583      program main
14584
14585      end
14586_ACEOF
14587rm -f conftest.$ac_objext conftest$ac_exeext
14588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14589  (eval $ac_link) 2>conftest.er1
14590  ac_status=$?
14591  grep -v '^ *+' conftest.er1 >conftest.err
14592  rm -f conftest.er1
14593  cat conftest.err >&5
14594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595  (exit $ac_status); } &&
14596	 { ac_try='test -z "$ac_f77_werror_flag"
14597			 || test ! -s conftest.err'
14598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599  (eval $ac_try) 2>&5
14600  ac_status=$?
14601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602  (exit $ac_status); }; } &&
14603	 { ac_try='test -s conftest$ac_exeext'
14604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605  (eval $ac_try) 2>&5
14606  ac_status=$?
14607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608  (exit $ac_status); }; }; then
14609
14610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14611}'`
14612# Check for a 64-bit object if we didn't find anything.
14613if 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; }
14614}'`; fi
14615else
14616  echo "$as_me: failed program was:" >&5
14617sed 's/^/| /' conftest.$ac_ext >&5
14618
14619fi
14620rm -f conftest.err conftest.$ac_objext \
14621      conftest$ac_exeext conftest.$ac_ext
14622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14623
14624       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14625	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14626       else
14627	if test "$host_cpu" = ia64; then
14628	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14629	  allow_undefined_flag_F77="-z nodefs"
14630	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14631	else
14632	 # Determine the default libpath from the value encoded in an empty executable.
14633	 cat >conftest.$ac_ext <<_ACEOF
14634      program main
14635
14636      end
14637_ACEOF
14638rm -f conftest.$ac_objext conftest$ac_exeext
14639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640  (eval $ac_link) 2>conftest.er1
14641  ac_status=$?
14642  grep -v '^ *+' conftest.er1 >conftest.err
14643  rm -f conftest.er1
14644  cat conftest.err >&5
14645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646  (exit $ac_status); } &&
14647	 { ac_try='test -z "$ac_f77_werror_flag"
14648			 || test ! -s conftest.err'
14649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650  (eval $ac_try) 2>&5
14651  ac_status=$?
14652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653  (exit $ac_status); }; } &&
14654	 { ac_try='test -s conftest$ac_exeext'
14655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656  (eval $ac_try) 2>&5
14657  ac_status=$?
14658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659  (exit $ac_status); }; }; then
14660
14661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14662}'`
14663# Check for a 64-bit object if we didn't find anything.
14664if 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; }
14665}'`; fi
14666else
14667  echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670fi
14671rm -f conftest.err conftest.$ac_objext \
14672      conftest$ac_exeext conftest.$ac_ext
14673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14674
14675	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14676	  # Warning - without using the other run time loading flags,
14677	  # -berok will link without error, but may produce a broken library.
14678	  no_undefined_flag_F77=' ${wl}-bernotok'
14679	  allow_undefined_flag_F77=' ${wl}-berok'
14680	  # -bexpall does not export symbols beginning with underscore (_)
14681	  always_export_symbols_F77=yes
14682	  # Exported symbols can be pulled into shared objects from archives
14683	  whole_archive_flag_spec_F77=' '
14684	  archive_cmds_need_lc_F77=yes
14685	  # This is similar to how AIX traditionally builds its shared libraries.
14686	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14687	fi
14688      fi
14689      ;;
14690
14691    amigaos*)
14692      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)'
14693      hardcode_libdir_flag_spec_F77='-L$libdir'
14694      hardcode_minus_L_F77=yes
14695      # see comment about different semantics on the GNU ld section
14696      ld_shlibs_F77=no
14697      ;;
14698
14699    bsdi[45]*)
14700      export_dynamic_flag_spec_F77=-rdynamic
14701      ;;
14702
14703    cygwin* | mingw* | pw32*)
14704      # When not using gcc, we currently assume that we are using
14705      # Microsoft Visual C++.
14706      # hardcode_libdir_flag_spec is actually meaningless, as there is
14707      # no search path for DLLs.
14708      hardcode_libdir_flag_spec_F77=' '
14709      allow_undefined_flag_F77=unsupported
14710      # Tell ltmain to make .lib files, not .a files.
14711      libext=lib
14712      # Tell ltmain to make .dll files, not .so files.
14713      shrext_cmds=".dll"
14714      # FIXME: Setting linknames here is a bad hack.
14715      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14716      # The linker will automatically build a .lib file if we build a DLL.
14717      old_archive_From_new_cmds_F77='true'
14718      # FIXME: Should let the user specify the lib program.
14719      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14720      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14721      enable_shared_with_static_runtimes_F77=yes
14722      ;;
14723
14724    darwin* | rhapsody*)
14725      case $host_os in
14726        rhapsody* | darwin1.[012])
14727         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14728         ;;
14729       *) # Darwin 1.3 on
14730         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14731           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14732         else
14733           case ${MACOSX_DEPLOYMENT_TARGET} in
14734             10.[012])
14735               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14736               ;;
14737             10.*)
14738               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14739               ;;
14740           esac
14741         fi
14742         ;;
14743      esac
14744      archive_cmds_need_lc_F77=no
14745      hardcode_direct_F77=no
14746      hardcode_automatic_F77=yes
14747      hardcode_shlibpath_var_F77=unsupported
14748      whole_archive_flag_spec_F77=''
14749      link_all_deplibs_F77=yes
14750    if test "$GCC" = yes ; then
14751    	output_verbose_link_cmd='echo'
14752        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14753      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14754      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14755      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}'
14756      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}'
14757    else
14758      case $cc_basename in
14759        xlc*)
14760         output_verbose_link_cmd='echo'
14761         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14762         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14763          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14764         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}'
14765          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}'
14766          ;;
14767       *)
14768         ld_shlibs_F77=no
14769          ;;
14770      esac
14771    fi
14772      ;;
14773
14774    dgux*)
14775      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776      hardcode_libdir_flag_spec_F77='-L$libdir'
14777      hardcode_shlibpath_var_F77=no
14778      ;;
14779
14780    freebsd1*)
14781      ld_shlibs_F77=no
14782      ;;
14783
14784    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14785    # support.  Future versions do this automatically, but an explicit c++rt0.o
14786    # does not break anything, and helps significantly (at the cost of a little
14787    # extra space).
14788    freebsd2.2*)
14789      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14790      hardcode_libdir_flag_spec_F77='-R$libdir'
14791      hardcode_direct_F77=yes
14792      hardcode_shlibpath_var_F77=no
14793      ;;
14794
14795    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14796    freebsd2*)
14797      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14798      hardcode_direct_F77=yes
14799      hardcode_minus_L_F77=yes
14800      hardcode_shlibpath_var_F77=no
14801      ;;
14802
14803    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14804    freebsd* | kfreebsd*-gnu | dragonfly*)
14805      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14806      hardcode_libdir_flag_spec_F77='-R$libdir'
14807      hardcode_direct_F77=yes
14808      hardcode_shlibpath_var_F77=no
14809      ;;
14810
14811    hpux9*)
14812      if test "$GCC" = yes; then
14813	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'
14814      else
14815	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'
14816      fi
14817      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14818      hardcode_libdir_separator_F77=:
14819      hardcode_direct_F77=yes
14820
14821      # hardcode_minus_L: Not really in the search PATH,
14822      # but as the default location of the library.
14823      hardcode_minus_L_F77=yes
14824      export_dynamic_flag_spec_F77='${wl}-E'
14825      ;;
14826
14827    hpux10* | hpux11*)
14828      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14829	case $host_cpu in
14830	hppa*64*|ia64*)
14831	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14832	  ;;
14833	*)
14834	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14835	  ;;
14836	esac
14837      else
14838	case $host_cpu in
14839	hppa*64*|ia64*)
14840	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14841	  ;;
14842	*)
14843	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14844	  ;;
14845	esac
14846      fi
14847      if test "$with_gnu_ld" = no; then
14848	case $host_cpu in
14849	hppa*64*)
14850	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14851	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14852	  hardcode_libdir_separator_F77=:
14853	  hardcode_direct_F77=no
14854	  hardcode_shlibpath_var_F77=no
14855	  ;;
14856	ia64*)
14857	  hardcode_libdir_flag_spec_F77='-L$libdir'
14858	  hardcode_direct_F77=no
14859	  hardcode_shlibpath_var_F77=no
14860
14861	  # hardcode_minus_L: Not really in the search PATH,
14862	  # but as the default location of the library.
14863	  hardcode_minus_L_F77=yes
14864	  ;;
14865	*)
14866	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14867	  hardcode_libdir_separator_F77=:
14868	  hardcode_direct_F77=yes
14869	  export_dynamic_flag_spec_F77='${wl}-E'
14870
14871	  # hardcode_minus_L: Not really in the search PATH,
14872	  # but as the default location of the library.
14873	  hardcode_minus_L_F77=yes
14874	  ;;
14875	esac
14876      fi
14877      ;;
14878
14879    irix5* | irix6* | nonstopux*)
14880      if test "$GCC" = yes; then
14881	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'
14882      else
14883	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'
14884	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14885      fi
14886      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14887      hardcode_libdir_separator_F77=:
14888      link_all_deplibs_F77=yes
14889      ;;
14890
14891    netbsd*)
14892      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14893	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14894      else
14895	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14896      fi
14897      hardcode_libdir_flag_spec_F77='-R$libdir'
14898      hardcode_direct_F77=yes
14899      hardcode_shlibpath_var_F77=no
14900      ;;
14901
14902    newsos6)
14903      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904      hardcode_direct_F77=yes
14905      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906      hardcode_libdir_separator_F77=:
14907      hardcode_shlibpath_var_F77=no
14908      ;;
14909
14910    openbsd*)
14911      hardcode_direct_F77=yes
14912      hardcode_shlibpath_var_F77=no
14913      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14914	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14915	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14916	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14917	export_dynamic_flag_spec_F77='${wl}-E'
14918      else
14919       case $host_os in
14920	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14921	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14922	   hardcode_libdir_flag_spec_F77='-R$libdir'
14923	   ;;
14924	 *)
14925	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14926	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14927	   ;;
14928       esac
14929      fi
14930      ;;
14931
14932    os2*)
14933      hardcode_libdir_flag_spec_F77='-L$libdir'
14934      hardcode_minus_L_F77=yes
14935      allow_undefined_flag_F77=unsupported
14936      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'
14937      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14938      ;;
14939
14940    osf3*)
14941      if test "$GCC" = yes; then
14942	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14943	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'
14944      else
14945	allow_undefined_flag_F77=' -expect_unresolved \*'
14946	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'
14947      fi
14948      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14949      hardcode_libdir_separator_F77=:
14950      ;;
14951
14952    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14953      if test "$GCC" = yes; then
14954	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14955	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'
14956	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14957      else
14958	allow_undefined_flag_F77=' -expect_unresolved \*'
14959	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'
14960	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~
14961	$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'
14962
14963	# Both c and cxx compiler support -rpath directly
14964	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14965      fi
14966      hardcode_libdir_separator_F77=:
14967      ;;
14968
14969    sco3.2v5*)
14970      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971      hardcode_shlibpath_var_F77=no
14972      export_dynamic_flag_spec_F77='${wl}-Bexport'
14973      runpath_var=LD_RUN_PATH
14974      hardcode_runpath_var=yes
14975      ;;
14976
14977    solaris*)
14978      no_undefined_flag_F77=' -z text'
14979      if test "$GCC" = yes; then
14980	wlarc='${wl}'
14981	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14983	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14984      else
14985	wlarc=''
14986	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14988  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14989      fi
14990      hardcode_libdir_flag_spec_F77='-R$libdir'
14991      hardcode_shlibpath_var_F77=no
14992      case $host_os in
14993      solaris2.[0-5] | solaris2.[0-5].*) ;;
14994      *)
14995 	# The compiler driver will combine linker options so we
14996 	# cannot just pass the convience library names through
14997 	# without $wl, iff we do not link with $LD.
14998 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14999 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15000 	case $wlarc in
15001 	'')
15002 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15003 	*)
15004 	  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' ;;
15005 	esac ;;
15006      esac
15007      link_all_deplibs_F77=yes
15008      ;;
15009
15010    sunos4*)
15011      if test "x$host_vendor" = xsequent; then
15012	# Use $CC to link under sequent, because it throws in some extra .o
15013	# files that make .init and .fini sections work.
15014	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15015      else
15016	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15017      fi
15018      hardcode_libdir_flag_spec_F77='-L$libdir'
15019      hardcode_direct_F77=yes
15020      hardcode_minus_L_F77=yes
15021      hardcode_shlibpath_var_F77=no
15022      ;;
15023
15024    sysv4)
15025      case $host_vendor in
15026	sni)
15027	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028	  hardcode_direct_F77=yes # is this really true???
15029	;;
15030	siemens)
15031	  ## LD is ld it makes a PLAMLIB
15032	  ## CC just makes a GrossModule.
15033	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15034	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15035	  hardcode_direct_F77=no
15036        ;;
15037	motorola)
15038	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15040	;;
15041      esac
15042      runpath_var='LD_RUN_PATH'
15043      hardcode_shlibpath_var_F77=no
15044      ;;
15045
15046    sysv4.3*)
15047      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048      hardcode_shlibpath_var_F77=no
15049      export_dynamic_flag_spec_F77='-Bexport'
15050      ;;
15051
15052    sysv4*MP*)
15053      if test -d /usr/nec; then
15054	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055	hardcode_shlibpath_var_F77=no
15056	runpath_var=LD_RUN_PATH
15057	hardcode_runpath_var=yes
15058	ld_shlibs_F77=yes
15059      fi
15060      ;;
15061
15062    sysv4.2uw2*)
15063      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15064      hardcode_direct_F77=yes
15065      hardcode_minus_L_F77=no
15066      hardcode_shlibpath_var_F77=no
15067      hardcode_runpath_var=yes
15068      runpath_var=LD_RUN_PATH
15069      ;;
15070
15071   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15072      no_undefined_flag_F77='${wl}-z ${wl}text'
15073      if test "$GCC" = yes; then
15074	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075      else
15076	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077      fi
15078      runpath_var='LD_RUN_PATH'
15079      hardcode_shlibpath_var_F77=no
15080      ;;
15081
15082    sysv5*)
15083      no_undefined_flag_F77=' -z text'
15084      # $CC -shared without GNU ld will not create a library from C++
15085      # object files and a static libstdc++, better avoid it by now
15086      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15088  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15089      hardcode_libdir_flag_spec_F77=
15090      hardcode_shlibpath_var_F77=no
15091      runpath_var='LD_RUN_PATH'
15092      ;;
15093
15094    uts4*)
15095      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15096      hardcode_libdir_flag_spec_F77='-L$libdir'
15097      hardcode_shlibpath_var_F77=no
15098      ;;
15099
15100    *)
15101      ld_shlibs_F77=no
15102      ;;
15103    esac
15104  fi
15105
15106echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15107echo "${ECHO_T}$ld_shlibs_F77" >&6
15108test "$ld_shlibs_F77" = no && can_build_shared=no
15109
15110variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15111if test "$GCC" = yes; then
15112  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15113fi
15114
15115#
15116# Do we need to explicitly link libc?
15117#
15118case "x$archive_cmds_need_lc_F77" in
15119x|xyes)
15120  # Assume -lc should be added
15121  archive_cmds_need_lc_F77=yes
15122
15123  if test "$enable_shared" = yes && test "$GCC" = yes; then
15124    case $archive_cmds_F77 in
15125    *'~'*)
15126      # FIXME: we may have to deal with multi-command sequences.
15127      ;;
15128    '$CC '*)
15129      # Test whether the compiler implicitly links with -lc since on some
15130      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15131      # to ld, don't add -lc before -lgcc.
15132      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15133echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15134      $rm conftest*
15135      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15136
15137      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138  (eval $ac_compile) 2>&5
15139  ac_status=$?
15140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141  (exit $ac_status); } 2>conftest.err; then
15142        soname=conftest
15143        lib=conftest
15144        libobjs=conftest.$ac_objext
15145        deplibs=
15146        wl=$lt_prog_compiler_wl_F77
15147        compiler_flags=-v
15148        linker_flags=-v
15149        verstring=
15150        output_objdir=.
15151        libname=conftest
15152        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15153        allow_undefined_flag_F77=
15154        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15155  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15156  ac_status=$?
15157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158  (exit $ac_status); }
15159        then
15160	  archive_cmds_need_lc_F77=no
15161        else
15162	  archive_cmds_need_lc_F77=yes
15163        fi
15164        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15165      else
15166        cat conftest.err 1>&5
15167      fi
15168      $rm conftest*
15169      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15170echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15171      ;;
15172    esac
15173  fi
15174  ;;
15175esac
15176
15177echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15178echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15179library_names_spec=
15180libname_spec='lib$name'
15181soname_spec=
15182shrext_cmds=".so"
15183postinstall_cmds=
15184postuninstall_cmds=
15185finish_cmds=
15186finish_eval=
15187shlibpath_var=
15188shlibpath_overrides_runpath=unknown
15189version_type=none
15190dynamic_linker="$host_os ld.so"
15191sys_lib_dlsearch_path_spec="/lib /usr/lib"
15192if test "$GCC" = yes; then
15193  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15194  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15195    # if the path contains ";" then we assume it to be the separator
15196    # otherwise default to the standard path separator (i.e. ":") - it is
15197    # assumed that no part of a normal pathname contains ";" but that should
15198    # okay in the real world where ";" in dirpaths is itself problematic.
15199    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15200  else
15201    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15202  fi
15203else
15204  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15205fi
15206need_lib_prefix=unknown
15207hardcode_into_libs=no
15208
15209# when you set need_version to no, make sure it does not cause -set_version
15210# flags to be left without arguments
15211need_version=unknown
15212
15213case $host_os in
15214aix3*)
15215  version_type=linux
15216  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15217  shlibpath_var=LIBPATH
15218
15219  # AIX 3 has no versioning support, so we append a major version to the name.
15220  soname_spec='${libname}${release}${shared_ext}$major'
15221  ;;
15222
15223aix4* | aix5*)
15224  version_type=linux
15225  need_lib_prefix=no
15226  need_version=no
15227  hardcode_into_libs=yes
15228  if test "$host_cpu" = ia64; then
15229    # AIX 5 supports IA64
15230    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15231    shlibpath_var=LD_LIBRARY_PATH
15232  else
15233    # With GCC up to 2.95.x, collect2 would create an import file
15234    # for dependence libraries.  The import file would start with
15235    # the line `#! .'.  This would cause the generated library to
15236    # depend on `.', always an invalid library.  This was fixed in
15237    # development snapshots of GCC prior to 3.0.
15238    case $host_os in
15239      aix4 | aix4.[01] | aix4.[01].*)
15240      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15241	   echo ' yes '
15242	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15243	:
15244      else
15245	can_build_shared=no
15246      fi
15247      ;;
15248    esac
15249    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15250    # soname into executable. Probably we can add versioning support to
15251    # collect2, so additional links can be useful in future.
15252    if test "$aix_use_runtimelinking" = yes; then
15253      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15254      # instead of lib<name>.a to let people know that these are not
15255      # typical AIX shared libraries.
15256      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257    else
15258      # We preserve .a as extension for shared libraries through AIX4.2
15259      # and later when we are not doing run time linking.
15260      library_names_spec='${libname}${release}.a $libname.a'
15261      soname_spec='${libname}${release}${shared_ext}$major'
15262    fi
15263    shlibpath_var=LIBPATH
15264  fi
15265  ;;
15266
15267amigaos*)
15268  library_names_spec='$libname.ixlibrary $libname.a'
15269  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15270  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'
15271  ;;
15272
15273beos*)
15274  library_names_spec='${libname}${shared_ext}'
15275  dynamic_linker="$host_os ld.so"
15276  shlibpath_var=LIBRARY_PATH
15277  ;;
15278
15279bsdi[45]*)
15280  version_type=linux
15281  need_version=no
15282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283  soname_spec='${libname}${release}${shared_ext}$major'
15284  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15285  shlibpath_var=LD_LIBRARY_PATH
15286  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15287  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15288  # the default ld.so.conf also contains /usr/contrib/lib and
15289  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15290  # libtool to hard-code these into programs
15291  ;;
15292
15293cygwin* | mingw* | pw32*)
15294  version_type=windows
15295  shrext_cmds=".dll"
15296  need_version=no
15297  need_lib_prefix=no
15298
15299  case $GCC,$host_os in
15300  yes,cygwin* | yes,mingw* | yes,pw32*)
15301    library_names_spec='$libname.dll.a'
15302    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15303    postinstall_cmds='base_file=`basename \${file}`~
15304      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15305      dldir=$destdir/`dirname \$dlpath`~
15306      test -d \$dldir || mkdir -p \$dldir~
15307      $install_prog $dir/$dlname \$dldir/$dlname~
15308      chmod a+x \$dldir/$dlname'
15309    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15310      dlpath=$dir/\$dldll~
15311       $rm \$dlpath'
15312    shlibpath_overrides_runpath=yes
15313
15314    case $host_os in
15315    cygwin*)
15316      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15317      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15319      ;;
15320    mingw*)
15321      # MinGW DLLs use traditional 'lib' prefix
15322      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15323      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15324      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15325        # It is most probably a Windows format PATH printed by
15326        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15327        # path with ; separators, and with drive letters. We can handle the
15328        # drive letters (cygwin fileutils understands them), so leave them,
15329        # especially as we might pass files found there to a mingw objdump,
15330        # which wouldn't understand a cygwinified path. Ahh.
15331        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15332      else
15333        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15334      fi
15335      ;;
15336    pw32*)
15337      # pw32 DLLs use 'pw' prefix rather than 'lib'
15338      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339      ;;
15340    esac
15341    ;;
15342
15343  *)
15344    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15345    ;;
15346  esac
15347  dynamic_linker='Win32 ld.exe'
15348  # FIXME: first we should search . and the directory the executable is in
15349  shlibpath_var=PATH
15350  ;;
15351
15352darwin* | rhapsody*)
15353  dynamic_linker="$host_os dyld"
15354  version_type=darwin
15355  need_lib_prefix=no
15356  need_version=no
15357  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15358  soname_spec='${libname}${release}${major}$shared_ext'
15359  shlibpath_overrides_runpath=yes
15360  shlibpath_var=DYLD_LIBRARY_PATH
15361  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15362  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15363  if test "$GCC" = yes; then
15364    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"`
15365  else
15366    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15367  fi
15368  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15369  ;;
15370
15371dgux*)
15372  version_type=linux
15373  need_lib_prefix=no
15374  need_version=no
15375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15376  soname_spec='${libname}${release}${shared_ext}$major'
15377  shlibpath_var=LD_LIBRARY_PATH
15378  ;;
15379
15380freebsd1*)
15381  dynamic_linker=no
15382  ;;
15383
15384haiku*)
15385  library_names_spec='${libname}${shared_ext}'
15386  dynamic_linker="$host_os ld.so"
15387  shlibpath_var=LIBRARY_PATH
15388  ;;
15389
15390kfreebsd*-gnu)
15391  version_type=linux
15392  need_lib_prefix=no
15393  need_version=no
15394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15395  soname_spec='${libname}${release}${shared_ext}$major'
15396  shlibpath_var=LD_LIBRARY_PATH
15397  shlibpath_overrides_runpath=no
15398  hardcode_into_libs=yes
15399  dynamic_linker='GNU ld.so'
15400  ;;
15401
15402freebsd* | dragonfly*)
15403  # DragonFly does not have aout.  When/if they implement a new
15404  # versioning mechanism, adjust this.
15405  if test -x /usr/bin/objformat; then
15406    objformat=`/usr/bin/objformat`
15407  else
15408    case $host_os in
15409    freebsd[123]*) objformat=aout ;;
15410    *) objformat=elf ;;
15411    esac
15412  fi
15413  version_type=freebsd-$objformat
15414  case $version_type in
15415    freebsd-elf*)
15416      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15417      need_version=no
15418      need_lib_prefix=no
15419      ;;
15420    freebsd-*)
15421      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15422      need_version=yes
15423      ;;
15424  esac
15425  shlibpath_var=LD_LIBRARY_PATH
15426  case $host_os in
15427  freebsd2*)
15428    shlibpath_overrides_runpath=yes
15429    ;;
15430  freebsd3.[01]* | freebsdelf3.[01]*)
15431    shlibpath_overrides_runpath=yes
15432    hardcode_into_libs=yes
15433    ;;
15434  *) # from 3.2 on
15435    shlibpath_overrides_runpath=no
15436    hardcode_into_libs=yes
15437    ;;
15438  esac
15439  ;;
15440
15441gnu*)
15442  version_type=linux
15443  need_lib_prefix=no
15444  need_version=no
15445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15446  soname_spec='${libname}${release}${shared_ext}$major'
15447  shlibpath_var=LD_LIBRARY_PATH
15448  hardcode_into_libs=yes
15449  ;;
15450
15451hpux9* | hpux10* | hpux11*)
15452  # Give a soname corresponding to the major version so that dld.sl refuses to
15453  # link against other versions.
15454  version_type=sunos
15455  need_lib_prefix=no
15456  need_version=no
15457  case $host_cpu in
15458  ia64*)
15459    shrext_cmds='.so'
15460    hardcode_into_libs=yes
15461    dynamic_linker="$host_os dld.so"
15462    shlibpath_var=LD_LIBRARY_PATH
15463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465    soname_spec='${libname}${release}${shared_ext}$major'
15466    if test "X$HPUX_IA64_MODE" = X32; then
15467      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15468    else
15469      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15470    fi
15471    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15472    ;;
15473   hppa*64*)
15474     shrext_cmds='.sl'
15475     hardcode_into_libs=yes
15476     dynamic_linker="$host_os dld.sl"
15477     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480     soname_spec='${libname}${release}${shared_ext}$major'
15481     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15483     ;;
15484   *)
15485    shrext_cmds='.sl'
15486    dynamic_linker="$host_os dld.sl"
15487    shlibpath_var=SHLIB_PATH
15488    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15490    soname_spec='${libname}${release}${shared_ext}$major'
15491    ;;
15492  esac
15493  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15494  postinstall_cmds='chmod 555 $lib'
15495  ;;
15496
15497irix5* | irix6* | nonstopux*)
15498  case $host_os in
15499    nonstopux*) version_type=nonstopux ;;
15500    *)
15501	if test "$lt_cv_prog_gnu_ld" = yes; then
15502		version_type=linux
15503	else
15504		version_type=irix
15505	fi ;;
15506  esac
15507  need_lib_prefix=no
15508  need_version=no
15509  soname_spec='${libname}${release}${shared_ext}$major'
15510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15511  case $host_os in
15512  irix5* | nonstopux*)
15513    libsuff= shlibsuff=
15514    ;;
15515  *)
15516    case $LD in # libtool.m4 will add one of these switches to LD
15517    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15518      libsuff= shlibsuff= libmagic=32-bit;;
15519    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15520      libsuff=32 shlibsuff=N32 libmagic=N32;;
15521    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15522      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15523    *) libsuff= shlibsuff= libmagic=never-match;;
15524    esac
15525    ;;
15526  esac
15527  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15528  shlibpath_overrides_runpath=no
15529  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15530  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15531  hardcode_into_libs=yes
15532  ;;
15533
15534# No shared lib support for Linux oldld, aout, or coff.
15535linux*oldld* | linux*aout* | linux*coff*)
15536  dynamic_linker=no
15537  ;;
15538
15539# This must be Linux ELF.
15540linux*)
15541  version_type=linux
15542  need_lib_prefix=no
15543  need_version=no
15544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545  soname_spec='${libname}${release}${shared_ext}$major'
15546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15547  shlibpath_var=LD_LIBRARY_PATH
15548  shlibpath_overrides_runpath=no
15549  # This implies no fast_install, which is unacceptable.
15550  # Some rework will be needed to allow for fast_install
15551  # before this can be enabled.
15552  hardcode_into_libs=yes
15553
15554  # Append ld.so.conf contents to the search path
15555  if test -f /etc/ld.so.conf; then
15556    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' ' '`
15557    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15558  fi
15559
15560  # We used to test for /lib/ld.so.1 and disable shared libraries on
15561  # powerpc, because MkLinux only supported shared libraries with the
15562  # GNU dynamic linker.  Since this was broken with cross compilers,
15563  # most powerpc-linux boxes support dynamic linking these days and
15564  # people can always --disable-shared, the test was removed, and we
15565  # assume the GNU/Linux dynamic linker is in use.
15566  dynamic_linker='GNU/Linux ld.so'
15567  ;;
15568
15569knetbsd*-gnu)
15570  version_type=linux
15571  need_lib_prefix=no
15572  need_version=no
15573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574  soname_spec='${libname}${release}${shared_ext}$major'
15575  shlibpath_var=LD_LIBRARY_PATH
15576  shlibpath_overrides_runpath=no
15577  hardcode_into_libs=yes
15578  dynamic_linker='GNU ld.so'
15579  ;;
15580
15581netbsd*)
15582  version_type=sunos
15583  need_lib_prefix=no
15584  need_version=no
15585  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15587    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15588    dynamic_linker='NetBSD (a.out) ld.so'
15589  else
15590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15591    soname_spec='${libname}${release}${shared_ext}$major'
15592    dynamic_linker='NetBSD ld.elf_so'
15593  fi
15594  shlibpath_var=LD_LIBRARY_PATH
15595  shlibpath_overrides_runpath=yes
15596  hardcode_into_libs=yes
15597  ;;
15598
15599newsos6)
15600  version_type=linux
15601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602  shlibpath_var=LD_LIBRARY_PATH
15603  shlibpath_overrides_runpath=yes
15604  ;;
15605
15606nto-qnx*)
15607  version_type=linux
15608  need_lib_prefix=no
15609  need_version=no
15610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611  soname_spec='${libname}${release}${shared_ext}$major'
15612  shlibpath_var=LD_LIBRARY_PATH
15613  shlibpath_overrides_runpath=yes
15614  ;;
15615
15616openbsd*)
15617  version_type=sunos
15618  need_lib_prefix=no
15619  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15620  case $host_os in
15621    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15622    *)                         need_version=no  ;;
15623  esac
15624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15625  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15626  shlibpath_var=LD_LIBRARY_PATH
15627  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15628    case $host_os in
15629      openbsd2.[89] | openbsd2.[89].*)
15630	shlibpath_overrides_runpath=no
15631	;;
15632      *)
15633	shlibpath_overrides_runpath=yes
15634	;;
15635      esac
15636  else
15637    shlibpath_overrides_runpath=yes
15638  fi
15639  ;;
15640
15641os2*)
15642  libname_spec='$name'
15643  shrext_cmds=".dll"
15644  need_lib_prefix=no
15645  library_names_spec='$libname${shared_ext} $libname.a'
15646  dynamic_linker='OS/2 ld.exe'
15647  shlibpath_var=LIBPATH
15648  ;;
15649
15650osf3* | osf4* | osf5*)
15651  version_type=osf
15652  need_lib_prefix=no
15653  need_version=no
15654  soname_spec='${libname}${release}${shared_ext}$major'
15655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656  shlibpath_var=LD_LIBRARY_PATH
15657  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15658  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15659  ;;
15660
15661sco3.2v5*)
15662  version_type=osf
15663  soname_spec='${libname}${release}${shared_ext}$major'
15664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665  shlibpath_var=LD_LIBRARY_PATH
15666  ;;
15667
15668solaris*)
15669  version_type=linux
15670  need_lib_prefix=no
15671  need_version=no
15672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673  soname_spec='${libname}${release}${shared_ext}$major'
15674  shlibpath_var=LD_LIBRARY_PATH
15675  shlibpath_overrides_runpath=yes
15676  hardcode_into_libs=yes
15677  # ldd complains unless libraries are executable
15678  postinstall_cmds='chmod +x $lib'
15679  ;;
15680
15681sunos4*)
15682  version_type=sunos
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15684  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  shlibpath_overrides_runpath=yes
15687  if test "$with_gnu_ld" = yes; then
15688    need_lib_prefix=no
15689  fi
15690  need_version=yes
15691  ;;
15692
15693sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15694  version_type=linux
15695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696  soname_spec='${libname}${release}${shared_ext}$major'
15697  shlibpath_var=LD_LIBRARY_PATH
15698  case $host_vendor in
15699    sni)
15700      shlibpath_overrides_runpath=no
15701      need_lib_prefix=no
15702      export_dynamic_flag_spec='${wl}-Blargedynsym'
15703      runpath_var=LD_RUN_PATH
15704      ;;
15705    siemens)
15706      need_lib_prefix=no
15707      ;;
15708    motorola)
15709      need_lib_prefix=no
15710      need_version=no
15711      shlibpath_overrides_runpath=no
15712      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15713      ;;
15714  esac
15715  ;;
15716
15717sysv4*MP*)
15718  if test -d /usr/nec ;then
15719    version_type=linux
15720    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15721    soname_spec='$libname${shared_ext}.$major'
15722    shlibpath_var=LD_LIBRARY_PATH
15723  fi
15724  ;;
15725
15726uts4*)
15727  version_type=linux
15728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729  soname_spec='${libname}${release}${shared_ext}$major'
15730  shlibpath_var=LD_LIBRARY_PATH
15731  ;;
15732
15733*)
15734  dynamic_linker=no
15735  ;;
15736esac
15737echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15738echo "${ECHO_T}$dynamic_linker" >&6
15739test "$dynamic_linker" = no && can_build_shared=no
15740
15741echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15742echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15743hardcode_action_F77=
15744if test -n "$hardcode_libdir_flag_spec_F77" || \
15745   test -n "$runpath_var_F77" || \
15746   test "X$hardcode_automatic_F77" = "Xyes" ; then
15747
15748  # We can hardcode non-existant directories.
15749  if test "$hardcode_direct_F77" != no &&
15750     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15751     # have to relink, otherwise we might link with an installed library
15752     # when we should be linking with a yet-to-be-installed one
15753     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15754     test "$hardcode_minus_L_F77" != no; then
15755    # Linking always hardcodes the temporary library directory.
15756    hardcode_action_F77=relink
15757  else
15758    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15759    hardcode_action_F77=immediate
15760  fi
15761else
15762  # We cannot hardcode anything, or else we can only hardcode existing
15763  # directories.
15764  hardcode_action_F77=unsupported
15765fi
15766echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15767echo "${ECHO_T}$hardcode_action_F77" >&6
15768
15769if test "$hardcode_action_F77" = relink; then
15770  # Fast installation is not supported
15771  enable_fast_install=no
15772elif test "$shlibpath_overrides_runpath" = yes ||
15773     test "$enable_shared" = no; then
15774  # Fast installation is not necessary
15775  enable_fast_install=needless
15776fi
15777
15778striplib=
15779old_striplib=
15780echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15781echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15782if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15783  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15784  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15785  echo "$as_me:$LINENO: result: yes" >&5
15786echo "${ECHO_T}yes" >&6
15787else
15788# FIXME - insert some real tests, host_os isn't really good enough
15789  case $host_os in
15790   darwin*)
15791       if test -n "$STRIP" ; then
15792         striplib="$STRIP -x"
15793         echo "$as_me:$LINENO: result: yes" >&5
15794echo "${ECHO_T}yes" >&6
15795       else
15796  echo "$as_me:$LINENO: result: no" >&5
15797echo "${ECHO_T}no" >&6
15798fi
15799       ;;
15800   *)
15801  echo "$as_me:$LINENO: result: no" >&5
15802echo "${ECHO_T}no" >&6
15803    ;;
15804  esac
15805fi
15806
15807
15808
15809# The else clause should only fire when bootstrapping the
15810# libtool distribution, otherwise you forgot to ship ltmain.sh
15811# with your package, and you will get complaints that there are
15812# no rules to generate ltmain.sh.
15813if test -f "$ltmain"; then
15814  # See if we are running on zsh, and set the options which allow our commands through
15815  # without removal of \ escapes.
15816  if test -n "${ZSH_VERSION+set}" ; then
15817    setopt NO_GLOB_SUBST
15818  fi
15819  # Now quote all the things that may contain metacharacters while being
15820  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15821  # variables and quote the copies for generation of the libtool script.
15822  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15823    SED SHELL STRIP \
15824    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15825    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15826    deplibs_check_method reload_flag reload_cmds need_locks \
15827    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15828    lt_cv_sys_global_symbol_to_c_name_address \
15829    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15830    old_postinstall_cmds old_postuninstall_cmds \
15831    compiler_F77 \
15832    CC_F77 \
15833    LD_F77 \
15834    lt_prog_compiler_wl_F77 \
15835    lt_prog_compiler_pic_F77 \
15836    lt_prog_compiler_static_F77 \
15837    lt_prog_compiler_no_builtin_flag_F77 \
15838    export_dynamic_flag_spec_F77 \
15839    thread_safe_flag_spec_F77 \
15840    whole_archive_flag_spec_F77 \
15841    enable_shared_with_static_runtimes_F77 \
15842    old_archive_cmds_F77 \
15843    old_archive_from_new_cmds_F77 \
15844    predep_objects_F77 \
15845    postdep_objects_F77 \
15846    predeps_F77 \
15847    postdeps_F77 \
15848    compiler_lib_search_path_F77 \
15849    archive_cmds_F77 \
15850    archive_expsym_cmds_F77 \
15851    postinstall_cmds_F77 \
15852    postuninstall_cmds_F77 \
15853    old_archive_from_expsyms_cmds_F77 \
15854    allow_undefined_flag_F77 \
15855    no_undefined_flag_F77 \
15856    export_symbols_cmds_F77 \
15857    hardcode_libdir_flag_spec_F77 \
15858    hardcode_libdir_flag_spec_ld_F77 \
15859    hardcode_libdir_separator_F77 \
15860    hardcode_automatic_F77 \
15861    module_cmds_F77 \
15862    module_expsym_cmds_F77 \
15863    lt_cv_prog_compiler_c_o_F77 \
15864    exclude_expsyms_F77 \
15865    include_expsyms_F77; do
15866
15867    case $var in
15868    old_archive_cmds_F77 | \
15869    old_archive_from_new_cmds_F77 | \
15870    archive_cmds_F77 | \
15871    archive_expsym_cmds_F77 | \
15872    module_cmds_F77 | \
15873    module_expsym_cmds_F77 | \
15874    old_archive_from_expsyms_cmds_F77 | \
15875    export_symbols_cmds_F77 | \
15876    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15877    postinstall_cmds | postuninstall_cmds | \
15878    old_postinstall_cmds | old_postuninstall_cmds | \
15879    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15880      # Double-quote double-evaled strings.
15881      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15882      ;;
15883    *)
15884      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15885      ;;
15886    esac
15887  done
15888
15889  case $lt_echo in
15890  *'\$0 --fallback-echo"')
15891    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15892    ;;
15893  esac
15894
15895cfgfile="$ofile"
15896
15897  cat <<__EOF__ >> "$cfgfile"
15898# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15899
15900# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15901
15902# Shell to use when invoking shell scripts.
15903SHELL=$lt_SHELL
15904
15905# Whether or not to build shared libraries.
15906build_libtool_libs=$enable_shared
15907
15908# Whether or not to build static libraries.
15909build_old_libs=$enable_static
15910
15911# Whether or not to add -lc for building shared libraries.
15912build_libtool_need_lc=$archive_cmds_need_lc_F77
15913
15914# Whether or not to disallow shared libs when runtime libs are static
15915allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15916
15917# Whether or not to optimize for fast installation.
15918fast_install=$enable_fast_install
15919
15920# The host system.
15921host_alias=$host_alias
15922host=$host
15923host_os=$host_os
15924
15925# The build system.
15926build_alias=$build_alias
15927build=$build
15928build_os=$build_os
15929
15930# An echo program that does not interpret backslashes.
15931echo=$lt_echo
15932
15933# The archiver.
15934AR=$lt_AR
15935AR_FLAGS=$lt_AR_FLAGS
15936
15937# A C compiler.
15938LTCC=$lt_LTCC
15939
15940# A language-specific compiler.
15941CC=$lt_compiler_F77
15942
15943# Is the compiler the GNU C compiler?
15944with_gcc=$GCC_F77
15945
15946# An ERE matcher.
15947EGREP=$lt_EGREP
15948
15949# The linker used to build libraries.
15950LD=$lt_LD_F77
15951
15952# Whether we need hard or soft links.
15953LN_S=$lt_LN_S
15954
15955# A BSD-compatible nm program.
15956NM=$lt_NM
15957
15958# A symbol stripping program
15959STRIP=$lt_STRIP
15960
15961# Used to examine libraries when file_magic_cmd begins "file"
15962MAGIC_CMD=$MAGIC_CMD
15963
15964# Used on cygwin: DLL creation program.
15965DLLTOOL="$DLLTOOL"
15966
15967# Used on cygwin: object dumper.
15968OBJDUMP="$OBJDUMP"
15969
15970# Used on cygwin: assembler.
15971AS="$AS"
15972
15973# The name of the directory that contains temporary libtool files.
15974objdir=$objdir
15975
15976# How to create reloadable object files.
15977reload_flag=$lt_reload_flag
15978reload_cmds=$lt_reload_cmds
15979
15980# How to pass a linker flag through the compiler.
15981wl=$lt_lt_prog_compiler_wl_F77
15982
15983# Object file suffix (normally "o").
15984objext="$ac_objext"
15985
15986# Old archive suffix (normally "a").
15987libext="$libext"
15988
15989# Shared library suffix (normally ".so").
15990shrext_cmds='$shrext_cmds'
15991
15992# Executable file suffix (normally "").
15993exeext="$exeext"
15994
15995# Additional compiler flags for building library objects.
15996pic_flag=$lt_lt_prog_compiler_pic_F77
15997pic_mode=$pic_mode
15998
15999# What is the maximum length of a command?
16000max_cmd_len=$lt_cv_sys_max_cmd_len
16001
16002# Does compiler simultaneously support -c and -o options?
16003compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16004
16005# Must we lock files when doing compilation?
16006need_locks=$lt_need_locks
16007
16008# Do we need the lib prefix for modules?
16009need_lib_prefix=$need_lib_prefix
16010
16011# Do we need a version for libraries?
16012need_version=$need_version
16013
16014# Whether dlopen is supported.
16015dlopen_support=$enable_dlopen
16016
16017# Whether dlopen of programs is supported.
16018dlopen_self=$enable_dlopen_self
16019
16020# Whether dlopen of statically linked programs is supported.
16021dlopen_self_static=$enable_dlopen_self_static
16022
16023# Compiler flag to prevent dynamic linking.
16024link_static_flag=$lt_lt_prog_compiler_static_F77
16025
16026# Compiler flag to turn off builtin functions.
16027no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16028
16029# Compiler flag to allow reflexive dlopens.
16030export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16031
16032# Compiler flag to generate shared objects directly from archives.
16033whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16034
16035# Compiler flag to generate thread-safe objects.
16036thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16037
16038# Library versioning type.
16039version_type=$version_type
16040
16041# Format of library name prefix.
16042libname_spec=$lt_libname_spec
16043
16044# List of archive names.  First name is the real one, the rest are links.
16045# The last name is the one that the linker finds with -lNAME.
16046library_names_spec=$lt_library_names_spec
16047
16048# The coded name of the library, if different from the real name.
16049soname_spec=$lt_soname_spec
16050
16051# Commands used to build and install an old-style archive.
16052RANLIB=$lt_RANLIB
16053old_archive_cmds=$lt_old_archive_cmds_F77
16054old_postinstall_cmds=$lt_old_postinstall_cmds
16055old_postuninstall_cmds=$lt_old_postuninstall_cmds
16056
16057# Create an old-style archive from a shared archive.
16058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16059
16060# Create a temporary old-style archive to link instead of a shared archive.
16061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16062
16063# Commands used to build and install a shared archive.
16064archive_cmds=$lt_archive_cmds_F77
16065archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16066postinstall_cmds=$lt_postinstall_cmds
16067postuninstall_cmds=$lt_postuninstall_cmds
16068
16069# Commands used to build a loadable module (assumed same as above if empty)
16070module_cmds=$lt_module_cmds_F77
16071module_expsym_cmds=$lt_module_expsym_cmds_F77
16072
16073# Commands to strip libraries.
16074old_striplib=$lt_old_striplib
16075striplib=$lt_striplib
16076
16077# Dependencies to place before the objects being linked to create a
16078# shared library.
16079predep_objects=$lt_predep_objects_F77
16080
16081# Dependencies to place after the objects being linked to create a
16082# shared library.
16083postdep_objects=$lt_postdep_objects_F77
16084
16085# Dependencies to place before the objects being linked to create a
16086# shared library.
16087predeps=$lt_predeps_F77
16088
16089# Dependencies to place after the objects being linked to create a
16090# shared library.
16091postdeps=$lt_postdeps_F77
16092
16093# The library search path used internally by the compiler when linking
16094# a shared library.
16095compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16096
16097# Method to check whether dependent libraries are shared objects.
16098deplibs_check_method=$lt_deplibs_check_method
16099
16100# Command to use when deplibs_check_method == file_magic.
16101file_magic_cmd=$lt_file_magic_cmd
16102
16103# Flag that allows shared libraries with undefined symbols to be built.
16104allow_undefined_flag=$lt_allow_undefined_flag_F77
16105
16106# Flag that forces no undefined symbols.
16107no_undefined_flag=$lt_no_undefined_flag_F77
16108
16109# Commands used to finish a libtool library installation in a directory.
16110finish_cmds=$lt_finish_cmds
16111
16112# Same as above, but a single script fragment to be evaled but not shown.
16113finish_eval=$lt_finish_eval
16114
16115# Take the output of nm and produce a listing of raw symbols and C names.
16116global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16117
16118# Transform the output of nm in a proper C declaration
16119global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16120
16121# Transform the output of nm in a C name address pair
16122global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16123
16124# This is the shared library runtime path variable.
16125runpath_var=$runpath_var
16126
16127# This is the shared library path variable.
16128shlibpath_var=$shlibpath_var
16129
16130# Is shlibpath searched before the hard-coded library search path?
16131shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16132
16133# How to hardcode a shared library path into an executable.
16134hardcode_action=$hardcode_action_F77
16135
16136# Whether we should hardcode library paths into libraries.
16137hardcode_into_libs=$hardcode_into_libs
16138
16139# Flag to hardcode \$libdir into a binary during linking.
16140# This must work even if \$libdir does not exist.
16141hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16142
16143# If ld is used when linking, flag to hardcode \$libdir into
16144# a binary during linking. This must work even if \$libdir does
16145# not exist.
16146hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16147
16148# Whether we need a single -rpath flag with a separated argument.
16149hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16150
16151# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16152# resulting binary.
16153hardcode_direct=$hardcode_direct_F77
16154
16155# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16156# resulting binary.
16157hardcode_minus_L=$hardcode_minus_L_F77
16158
16159# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16160# the resulting binary.
16161hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16162
16163# Set to yes if building a shared library automatically hardcodes DIR into the library
16164# and all subsequent libraries and executables linked against it.
16165hardcode_automatic=$hardcode_automatic_F77
16166
16167# Variables whose values should be saved in libtool wrapper scripts and
16168# restored at relink time.
16169variables_saved_for_relink="$variables_saved_for_relink"
16170
16171# Whether libtool must link a program against all its dependency libraries.
16172link_all_deplibs=$link_all_deplibs_F77
16173
16174# Compile-time system search path for libraries
16175sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16176
16177# Run-time system search path for libraries
16178sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16179
16180# Fix the shell variable \$srcfile for the compiler.
16181fix_srcfile_path="$fix_srcfile_path_F77"
16182
16183# Set to yes if exported symbols are required.
16184always_export_symbols=$always_export_symbols_F77
16185
16186# The commands to list exported symbols.
16187export_symbols_cmds=$lt_export_symbols_cmds_F77
16188
16189# The commands to extract the exported symbol list from a shared archive.
16190extract_expsyms_cmds=$lt_extract_expsyms_cmds
16191
16192# Symbols that should not be listed in the preloaded symbols.
16193exclude_expsyms=$lt_exclude_expsyms_F77
16194
16195# Symbols that must always be exported.
16196include_expsyms=$lt_include_expsyms_F77
16197
16198# ### END LIBTOOL TAG CONFIG: $tagname
16199
16200__EOF__
16201
16202
16203else
16204  # If there is no Makefile yet, we rely on a make rule to execute
16205  # `config.status --recheck' to rerun these tests and create the
16206  # libtool script then.
16207  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16208  if test -f "$ltmain_in"; then
16209    test -f Makefile && make "$ltmain"
16210  fi
16211fi
16212
16213
16214ac_ext=c
16215ac_cpp='$CPP $CPPFLAGS'
16216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16218ac_compiler_gnu=$ac_cv_c_compiler_gnu
16219
16220CC="$lt_save_CC"
16221
16222	else
16223	  tagname=""
16224	fi
16225	;;
16226
16227      GCJ)
16228	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16229
16230
16231
16232# Source file extension for Java test sources.
16233ac_ext=java
16234
16235# Object file extension for compiled Java test sources.
16236objext=o
16237objext_GCJ=$objext
16238
16239# Code to be used in simple compile tests
16240lt_simple_compile_test_code="class foo {}\n"
16241
16242# Code to be used in simple link tests
16243lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16244
16245# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16246
16247# If no C compiler was specified, use CC.
16248LTCC=${LTCC-"$CC"}
16249
16250# Allow CC to be a program name with arguments.
16251compiler=$CC
16252
16253
16254# save warnings/boilerplate of simple test code
16255ac_outfile=conftest.$ac_objext
16256printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16257eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16258_lt_compiler_boilerplate=`cat conftest.err`
16259$rm conftest*
16260
16261ac_outfile=conftest.$ac_objext
16262printf "$lt_simple_link_test_code" >conftest.$ac_ext
16263eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16264_lt_linker_boilerplate=`cat conftest.err`
16265$rm conftest*
16266
16267
16268# Allow CC to be a program name with arguments.
16269lt_save_CC="$CC"
16270CC=${GCJ-"gcj"}
16271compiler=$CC
16272compiler_GCJ=$CC
16273for cc_temp in $compiler""; do
16274  case $cc_temp in
16275    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16276    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16277    \-*) ;;
16278    *) break;;
16279  esac
16280done
16281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16282
16283
16284# GCJ did not exist at the time GCC didn't implicitly link libc in.
16285archive_cmds_need_lc_GCJ=no
16286
16287old_archive_cmds_GCJ=$old_archive_cmds
16288
16289## CAVEAT EMPTOR:
16290## There is no encapsulation within the following macros, do not change
16291## the running order or otherwise move them around unless you know exactly
16292## what you are doing...
16293
16294lt_prog_compiler_no_builtin_flag_GCJ=
16295
16296if test "$GCC" = yes; then
16297  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16298
16299
16300echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16301echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16302if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16303  echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305  lt_cv_prog_compiler_rtti_exceptions=no
16306  ac_outfile=conftest.$ac_objext
16307   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16308   lt_compiler_flag="-fno-rtti -fno-exceptions"
16309   # Insert the option either (1) after the last *FLAGS variable, or
16310   # (2) before a word containing "conftest.", or (3) at the end.
16311   # Note that $ac_compile itself does not contain backslashes and begins
16312   # with a dollar sign (not a hyphen), so the echo should work correctly.
16313   # The option is referenced via a variable to avoid confusing sed.
16314   lt_compile=`echo "$ac_compile" | $SED \
16315   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16317   -e 's:$: $lt_compiler_flag:'`
16318   (eval echo "\"\$as_me:16318: $lt_compile\"" >&5)
16319   (eval "$lt_compile" 2>conftest.err)
16320   ac_status=$?
16321   cat conftest.err >&5
16322   echo "$as_me:16322: \$? = $ac_status" >&5
16323   if (exit $ac_status) && test -s "$ac_outfile"; then
16324     # The compiler can only warn and ignore the option if not recognized
16325     # So say no if there are warnings other than the usual output.
16326     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16327     $SED '/^$/d' conftest.err >conftest.er2
16328     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16329       lt_cv_prog_compiler_rtti_exceptions=yes
16330     fi
16331   fi
16332   $rm conftest*
16333
16334fi
16335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16337
16338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16339    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16340else
16341    :
16342fi
16343
16344fi
16345
16346lt_prog_compiler_wl_GCJ=
16347lt_prog_compiler_pic_GCJ=
16348lt_prog_compiler_static_GCJ=
16349
16350echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16352
16353  if test "$GCC" = yes; then
16354    lt_prog_compiler_wl_GCJ='-Wl,'
16355    lt_prog_compiler_static_GCJ='-static'
16356
16357    case $host_os in
16358      aix*)
16359      # All AIX code is PIC.
16360      if test "$host_cpu" = ia64; then
16361	# AIX 5 now supports IA64 processor
16362	lt_prog_compiler_static_GCJ='-Bstatic'
16363      fi
16364      ;;
16365
16366    amigaos*)
16367      # FIXME: we need at least 68020 code to build shared libraries, but
16368      # adding the `-m68020' flag to GCC prevents building anything better,
16369      # like `-m68040'.
16370      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16371      ;;
16372
16373    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
16374    | osf5*)
16375      # PIC is the default for these OSes.
16376      ;;
16377
16378    mingw* | pw32* | os2*)
16379      # This hack is so that the source file can tell whether it is being
16380      # built for inclusion in a dll (and should export symbols for example).
16381      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16382      ;;
16383
16384    darwin* | rhapsody*)
16385      # PIC is the default on this platform
16386      # Common symbols not allowed in MH_DYLIB files
16387      lt_prog_compiler_pic_GCJ='-fno-common'
16388      ;;
16389
16390    msdosdjgpp*)
16391      # Just because we use GCC doesn't mean we suddenly get shared libraries
16392      # on systems that don't support them.
16393      lt_prog_compiler_can_build_shared_GCJ=no
16394      enable_shared=no
16395      ;;
16396
16397    sysv4*MP*)
16398      if test -d /usr/nec; then
16399	lt_prog_compiler_pic_GCJ=-Kconform_pic
16400      fi
16401      ;;
16402
16403    hpux*)
16404      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16405      # not for PA HP-UX.
16406      case $host_cpu in
16407      hppa*64*|ia64*)
16408	# +Z the default
16409	;;
16410      *)
16411	lt_prog_compiler_pic_GCJ='-fPIC'
16412	;;
16413      esac
16414      ;;
16415
16416    *)
16417      lt_prog_compiler_pic_GCJ='-fPIC'
16418      ;;
16419    esac
16420  else
16421    # PORTME Check for flag to pass linker flags through the system compiler.
16422    case $host_os in
16423    aix*)
16424      lt_prog_compiler_wl_GCJ='-Wl,'
16425      if test "$host_cpu" = ia64; then
16426	# AIX 5 now supports IA64 processor
16427	lt_prog_compiler_static_GCJ='-Bstatic'
16428      else
16429	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16430      fi
16431      ;;
16432      darwin*)
16433        # PIC is the default on this platform
16434        # Common symbols not allowed in MH_DYLIB files
16435       case $cc_basename in
16436         xlc*)
16437         lt_prog_compiler_pic_GCJ='-qnocommon'
16438         lt_prog_compiler_wl_GCJ='-Wl,'
16439         ;;
16440       esac
16441       ;;
16442
16443    mingw* | pw32* | os2*)
16444      # This hack is so that the source file can tell whether it is being
16445      # built for inclusion in a dll (and should export symbols for example).
16446      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16447      ;;
16448
16449    hpux9* | hpux10* | hpux11*)
16450      lt_prog_compiler_wl_GCJ='-Wl,'
16451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16452      # not for PA HP-UX.
16453      case $host_cpu in
16454      hppa*64*|ia64*)
16455	# +Z the default
16456	;;
16457      *)
16458	lt_prog_compiler_pic_GCJ='+Z'
16459	;;
16460      esac
16461      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16462      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16463      ;;
16464
16465    irix5* | irix6* | nonstopux*)
16466      lt_prog_compiler_wl_GCJ='-Wl,'
16467      # PIC (with -KPIC) is the default.
16468      lt_prog_compiler_static_GCJ='-non_shared'
16469      ;;
16470
16471    newsos6)
16472      lt_prog_compiler_pic_GCJ='-KPIC'
16473      lt_prog_compiler_static_GCJ='-Bstatic'
16474      ;;
16475
16476    linux*)
16477      case $cc_basename in
16478      icc* | ecc*)
16479	lt_prog_compiler_wl_GCJ='-Wl,'
16480	lt_prog_compiler_pic_GCJ='-KPIC'
16481	lt_prog_compiler_static_GCJ='-static'
16482        ;;
16483      pgcc* | pgf77* | pgf90* | pgf95*)
16484        # Portland Group compilers (*not* the Pentium gcc compiler,
16485	# which looks to be a dead project)
16486	lt_prog_compiler_wl_GCJ='-Wl,'
16487	lt_prog_compiler_pic_GCJ='-fpic'
16488	lt_prog_compiler_static_GCJ='-Bstatic'
16489        ;;
16490      ccc*)
16491        lt_prog_compiler_wl_GCJ='-Wl,'
16492        # All Alpha code is PIC.
16493        lt_prog_compiler_static_GCJ='-non_shared'
16494        ;;
16495      esac
16496      ;;
16497
16498    osf3* | osf4* | osf5*)
16499      lt_prog_compiler_wl_GCJ='-Wl,'
16500      # All OSF/1 code is PIC.
16501      lt_prog_compiler_static_GCJ='-non_shared'
16502      ;;
16503
16504    sco3.2v5*)
16505      lt_prog_compiler_pic_GCJ='-Kpic'
16506      lt_prog_compiler_static_GCJ='-dn'
16507      ;;
16508
16509    solaris*)
16510      lt_prog_compiler_pic_GCJ='-KPIC'
16511      lt_prog_compiler_static_GCJ='-Bstatic'
16512      case $cc_basename in
16513      f77* | f90* | f95*)
16514	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16515      *)
16516	lt_prog_compiler_wl_GCJ='-Wl,';;
16517      esac
16518      ;;
16519
16520    sunos4*)
16521      lt_prog_compiler_wl_GCJ='-Qoption ld '
16522      lt_prog_compiler_pic_GCJ='-PIC'
16523      lt_prog_compiler_static_GCJ='-Bstatic'
16524      ;;
16525
16526    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16527      lt_prog_compiler_wl_GCJ='-Wl,'
16528      lt_prog_compiler_pic_GCJ='-KPIC'
16529      lt_prog_compiler_static_GCJ='-Bstatic'
16530      ;;
16531
16532    sysv4*MP*)
16533      if test -d /usr/nec ;then
16534	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16535	lt_prog_compiler_static_GCJ='-Bstatic'
16536      fi
16537      ;;
16538
16539    unicos*)
16540      lt_prog_compiler_wl_GCJ='-Wl,'
16541      lt_prog_compiler_can_build_shared_GCJ=no
16542      ;;
16543
16544    uts4*)
16545      lt_prog_compiler_pic_GCJ='-pic'
16546      lt_prog_compiler_static_GCJ='-Bstatic'
16547      ;;
16548
16549    *)
16550      lt_prog_compiler_can_build_shared_GCJ=no
16551      ;;
16552    esac
16553  fi
16554
16555echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16556echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16557
16558#
16559# Check to make sure the PIC flag actually works.
16560#
16561if test -n "$lt_prog_compiler_pic_GCJ"; then
16562
16563echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16564echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16565if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16566  echo $ECHO_N "(cached) $ECHO_C" >&6
16567else
16568  lt_prog_compiler_pic_works_GCJ=no
16569  ac_outfile=conftest.$ac_objext
16570   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16571   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16572   # Insert the option either (1) after the last *FLAGS variable, or
16573   # (2) before a word containing "conftest.", or (3) at the end.
16574   # Note that $ac_compile itself does not contain backslashes and begins
16575   # with a dollar sign (not a hyphen), so the echo should work correctly.
16576   # The option is referenced via a variable to avoid confusing sed.
16577   lt_compile=`echo "$ac_compile" | $SED \
16578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16580   -e 's:$: $lt_compiler_flag:'`
16581   (eval echo "\"\$as_me:16581: $lt_compile\"" >&5)
16582   (eval "$lt_compile" 2>conftest.err)
16583   ac_status=$?
16584   cat conftest.err >&5
16585   echo "$as_me:16585: \$? = $ac_status" >&5
16586   if (exit $ac_status) && test -s "$ac_outfile"; then
16587     # The compiler can only warn and ignore the option if not recognized
16588     # So say no if there are warnings other than the usual output.
16589     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16590     $SED '/^$/d' conftest.err >conftest.er2
16591     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16592       lt_prog_compiler_pic_works_GCJ=yes
16593     fi
16594   fi
16595   $rm conftest*
16596
16597fi
16598echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16599echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16600
16601if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16602    case $lt_prog_compiler_pic_GCJ in
16603     "" | " "*) ;;
16604     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16605     esac
16606else
16607    lt_prog_compiler_pic_GCJ=
16608     lt_prog_compiler_can_build_shared_GCJ=no
16609fi
16610
16611fi
16612case $host_os in
16613  # For platforms which do not support PIC, -DPIC is meaningless:
16614  *djgpp*)
16615    lt_prog_compiler_pic_GCJ=
16616    ;;
16617  *)
16618    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16619    ;;
16620esac
16621
16622echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16623echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16624if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16625  echo $ECHO_N "(cached) $ECHO_C" >&6
16626else
16627  lt_cv_prog_compiler_c_o_GCJ=no
16628   $rm -r conftest 2>/dev/null
16629   mkdir conftest
16630   cd conftest
16631   mkdir out
16632   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16633
16634   lt_compiler_flag="-o out/conftest2.$ac_objext"
16635   # Insert the option either (1) after the last *FLAGS variable, or
16636   # (2) before a word containing "conftest.", or (3) at the end.
16637   # Note that $ac_compile itself does not contain backslashes and begins
16638   # with a dollar sign (not a hyphen), so the echo should work correctly.
16639   lt_compile=`echo "$ac_compile" | $SED \
16640   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16641   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16642   -e 's:$: $lt_compiler_flag:'`
16643   (eval echo "\"\$as_me:16643: $lt_compile\"" >&5)
16644   (eval "$lt_compile" 2>out/conftest.err)
16645   ac_status=$?
16646   cat out/conftest.err >&5
16647   echo "$as_me:16647: \$? = $ac_status" >&5
16648   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16649   then
16650     # The compiler can only warn and ignore the option if not recognized
16651     # So say no if there are warnings
16652     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16653     $SED '/^$/d' out/conftest.err >out/conftest.er2
16654     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16655       lt_cv_prog_compiler_c_o_GCJ=yes
16656     fi
16657   fi
16658   chmod u+w . 2>&5
16659   $rm conftest*
16660   # SGI C++ compiler will create directory out/ii_files/ for
16661   # template instantiation
16662   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16663   $rm out/* && rmdir out
16664   cd ..
16665   rmdir conftest
16666   $rm conftest*
16667
16668fi
16669echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16670echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16671
16672
16673hard_links="nottested"
16674if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16675  # do not overwrite the value of need_locks provided by the user
16676  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16677echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16678  hard_links=yes
16679  $rm conftest*
16680  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16681  touch conftest.a
16682  ln conftest.a conftest.b 2>&5 || hard_links=no
16683  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16684  echo "$as_me:$LINENO: result: $hard_links" >&5
16685echo "${ECHO_T}$hard_links" >&6
16686  if test "$hard_links" = no; then
16687    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16688echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16689    need_locks=warn
16690  fi
16691else
16692  need_locks=no
16693fi
16694
16695echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16696echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16697
16698  runpath_var=
16699  allow_undefined_flag_GCJ=
16700  enable_shared_with_static_runtimes_GCJ=no
16701  archive_cmds_GCJ=
16702  archive_expsym_cmds_GCJ=
16703  old_archive_From_new_cmds_GCJ=
16704  old_archive_from_expsyms_cmds_GCJ=
16705  export_dynamic_flag_spec_GCJ=
16706  whole_archive_flag_spec_GCJ=
16707  thread_safe_flag_spec_GCJ=
16708  hardcode_libdir_flag_spec_GCJ=
16709  hardcode_libdir_flag_spec_ld_GCJ=
16710  hardcode_libdir_separator_GCJ=
16711  hardcode_direct_GCJ=no
16712  hardcode_minus_L_GCJ=no
16713  hardcode_shlibpath_var_GCJ=unsupported
16714  link_all_deplibs_GCJ=unknown
16715  hardcode_automatic_GCJ=no
16716  module_cmds_GCJ=
16717  module_expsym_cmds_GCJ=
16718  always_export_symbols_GCJ=no
16719  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16720  # include_expsyms should be a list of space-separated symbols to be *always*
16721  # included in the symbol list
16722  include_expsyms_GCJ=
16723  # exclude_expsyms can be an extended regexp of symbols to exclude
16724  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16725  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16726  # as well as any symbol that contains `d'.
16727  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16728  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16729  # platforms (ab)use it in PIC code, but their linkers get confused if
16730  # the symbol is explicitly referenced.  Since portable code cannot
16731  # rely on this symbol name, it's probably fine to never include it in
16732  # preloaded symbol tables.
16733  extract_expsyms_cmds=
16734  # Just being paranoid about ensuring that cc_basename is set.
16735  for cc_temp in $compiler""; do
16736  case $cc_temp in
16737    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16738    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16739    \-*) ;;
16740    *) break;;
16741  esac
16742done
16743cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16744
16745  case $host_os in
16746  cygwin* | mingw* | pw32*)
16747    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16748    # When not using gcc, we currently assume that we are using
16749    # Microsoft Visual C++.
16750    if test "$GCC" != yes; then
16751      with_gnu_ld=no
16752    fi
16753    ;;
16754  openbsd*)
16755    with_gnu_ld=no
16756    ;;
16757  esac
16758
16759  ld_shlibs_GCJ=yes
16760  if test "$with_gnu_ld" = yes; then
16761    # If archive_cmds runs LD, not CC, wlarc should be empty
16762    wlarc='${wl}'
16763
16764    # Set some defaults for GNU ld with shared library support. These
16765    # are reset later if shared libraries are not supported. Putting them
16766    # here allows them to be overridden if necessary.
16767    runpath_var=LD_RUN_PATH
16768    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16769    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16770    # ancient GNU ld didn't support --whole-archive et. al.
16771    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16772	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16773      else
16774  	whole_archive_flag_spec_GCJ=
16775    fi
16776    supports_anon_versioning=no
16777    case `$LD -v 2>/dev/null` in
16778      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16779      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16780      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16781      *\ 2.11.*) ;; # other 2.11 versions
16782      *) supports_anon_versioning=yes ;;
16783    esac
16784
16785    # See if GNU ld supports shared libraries.
16786    case $host_os in
16787    aix3* | aix4* | aix5*)
16788      # On AIX/PPC, the GNU linker is very broken
16789      if test "$host_cpu" != ia64; then
16790	ld_shlibs_GCJ=no
16791	cat <<EOF 1>&2
16792
16793*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16794*** to be unable to reliably create shared libraries on AIX.
16795*** Therefore, libtool is disabling shared libraries support.  If you
16796*** really care for shared libraries, you may want to modify your PATH
16797*** so that a non-GNU linker is found, and then restart.
16798
16799EOF
16800      fi
16801      ;;
16802
16803    amigaos*)
16804      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)'
16805      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806      hardcode_minus_L_GCJ=yes
16807
16808      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16809      # that the semantics of dynamic libraries on AmigaOS, at least up
16810      # to version 4, is to share data among multiple programs linked
16811      # with the same dynamic library.  Since this doesn't match the
16812      # behavior of shared libraries on other platforms, we can't use
16813      # them.
16814      ld_shlibs_GCJ=no
16815      ;;
16816
16817    beos*)
16818      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16819	allow_undefined_flag_GCJ=unsupported
16820	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16821	# support --undefined.  This deserves some investigation.  FIXME
16822	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16823      else
16824	ld_shlibs_GCJ=no
16825      fi
16826      ;;
16827
16828    cygwin* | mingw* | pw32*)
16829      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16830      # as there is no search path for DLLs.
16831      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16832      allow_undefined_flag_GCJ=unsupported
16833      always_export_symbols_GCJ=no
16834      enable_shared_with_static_runtimes_GCJ=yes
16835      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16836
16837      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16838        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16839	# If the export-symbols file already is a .def file (1st line
16840	# is EXPORTS), use it as is; otherwise, prepend...
16841	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16842	  cp $export_symbols $output_objdir/$soname.def;
16843	else
16844	  echo EXPORTS > $output_objdir/$soname.def;
16845	  cat $export_symbols >> $output_objdir/$soname.def;
16846	fi~
16847	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16848      else
16849	ld_shlibs_GCJ=no
16850      fi
16851      ;;
16852
16853    haiku*)
16854      allow_undefined_flag_GCJ=unsupported
16855      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16856      ;;
16857
16858    linux*)
16859      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16860	tmp_addflag=
16861	case $cc_basename,$host_cpu in
16862	pgcc*)				# Portland Group C compiler
16863	  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'
16864	  tmp_addflag=' $pic_flag'
16865	  ;;
16866	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16867	  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'
16868	  tmp_addflag=' $pic_flag -Mnomain' ;;
16869	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16870	  tmp_addflag=' -i_dynamic' ;;
16871	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16872	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16873	ifc* | ifort*)			# Intel Fortran compiler
16874	  tmp_addflag=' -nofor_main' ;;
16875	esac
16876	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16877
16878	if test $supports_anon_versioning = yes; then
16879	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16880  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16881  $echo "local: *; };" >> $output_objdir/$libname.ver~
16882	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16883	fi
16884      else
16885	ld_shlibs_GCJ=no
16886      fi
16887      ;;
16888
16889    netbsd*)
16890      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16891	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16892	wlarc=
16893      else
16894	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16896      fi
16897      ;;
16898
16899    solaris* | sysv5*)
16900      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16901	ld_shlibs_GCJ=no
16902	cat <<EOF 1>&2
16903
16904*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16905*** create shared libraries on Solaris systems.  Therefore, libtool
16906*** is disabling shared libraries support.  We urge you to upgrade GNU
16907*** binutils to release 2.9.1 or newer.  Another option is to modify
16908*** your PATH or compiler configuration so that the native linker is
16909*** used, and then restart.
16910
16911EOF
16912      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16913	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16914	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16915      else
16916	ld_shlibs_GCJ=no
16917      fi
16918      ;;
16919
16920    sunos4*)
16921      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16922      wlarc=
16923      hardcode_direct_GCJ=yes
16924      hardcode_shlibpath_var_GCJ=no
16925      ;;
16926
16927    *)
16928      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16929	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16930	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16931      else
16932	ld_shlibs_GCJ=no
16933      fi
16934      ;;
16935    esac
16936
16937    if test "$ld_shlibs_GCJ" = no; then
16938      runpath_var=
16939      hardcode_libdir_flag_spec_GCJ=
16940      export_dynamic_flag_spec_GCJ=
16941      whole_archive_flag_spec_GCJ=
16942    fi
16943  else
16944    # PORTME fill in a description of your system's linker (not GNU ld)
16945    case $host_os in
16946    aix3*)
16947      allow_undefined_flag_GCJ=unsupported
16948      always_export_symbols_GCJ=yes
16949      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'
16950      # Note: this linker hardcodes the directories in LIBPATH if there
16951      # are no directories specified by -L.
16952      hardcode_minus_L_GCJ=yes
16953      if test "$GCC" = yes && test -z "$link_static_flag"; then
16954	# Neither direct hardcoding nor static linking is supported with a
16955	# broken collect2.
16956	hardcode_direct_GCJ=unsupported
16957      fi
16958      ;;
16959
16960    aix4* | aix5*)
16961      if test "$host_cpu" = ia64; then
16962	# On IA64, the linker does run time linking by default, so we don't
16963	# have to do anything special.
16964	aix_use_runtimelinking=no
16965	exp_sym_flag='-Bexport'
16966	no_entry_flag=""
16967      else
16968	# If we're using GNU nm, then we don't want the "-C" option.
16969	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16970	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16971	  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'
16972	else
16973	  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'
16974	fi
16975	aix_use_runtimelinking=no
16976
16977	# Test if we are trying to use run time linking or normal
16978	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16979	# need to do runtime linking.
16980	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16981	  for ld_flag in $LDFLAGS; do
16982  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16983  	    aix_use_runtimelinking=yes
16984  	    break
16985  	  fi
16986	  done
16987	esac
16988
16989	exp_sym_flag='-bexport'
16990	no_entry_flag='-bnoentry'
16991      fi
16992
16993      # When large executables or shared objects are built, AIX ld can
16994      # have problems creating the table of contents.  If linking a library
16995      # or program results in "error TOC overflow" add -mminimal-toc to
16996      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16997      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16998
16999      archive_cmds_GCJ=''
17000      hardcode_direct_GCJ=yes
17001      hardcode_libdir_separator_GCJ=':'
17002      link_all_deplibs_GCJ=yes
17003
17004      if test "$GCC" = yes; then
17005	case $host_os in aix4.[012]|aix4.[012].*)
17006	# We only want to do this on AIX 4.2 and lower, the check
17007	# below for broken collect2 doesn't work under 4.3+
17008	  collect2name=`${CC} -print-prog-name=collect2`
17009	  if test -f "$collect2name" && \
17010  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17011	  then
17012  	  # We have reworked collect2
17013  	  hardcode_direct_GCJ=yes
17014	  else
17015  	  # We have old collect2
17016  	  hardcode_direct_GCJ=unsupported
17017  	  # It fails to find uninstalled libraries when the uninstalled
17018  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17019  	  # to unsupported forces relinking
17020  	  hardcode_minus_L_GCJ=yes
17021  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17022  	  hardcode_libdir_separator_GCJ=
17023	  fi
17024	esac
17025	shared_flag='-shared'
17026	if test "$aix_use_runtimelinking" = yes; then
17027	  shared_flag="$shared_flag "'${wl}-G'
17028	fi
17029      else
17030	# not using gcc
17031	if test "$host_cpu" = ia64; then
17032  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17033  	# chokes on -Wl,-G. The following line is correct:
17034	  shared_flag='-G'
17035	else
17036  	if test "$aix_use_runtimelinking" = yes; then
17037	    shared_flag='${wl}-G'
17038	  else
17039	    shared_flag='${wl}-bM:SRE'
17040  	fi
17041	fi
17042      fi
17043
17044      # It seems that -bexpall does not export symbols beginning with
17045      # underscore (_), so it is better to generate a list of symbols to export.
17046      always_export_symbols_GCJ=yes
17047      if test "$aix_use_runtimelinking" = yes; then
17048	# Warning - without using the other runtime loading flags (-brtl),
17049	# -berok will link without error, but may produce a broken library.
17050	allow_undefined_flag_GCJ='-berok'
17051       # Determine the default libpath from the value encoded in an empty executable.
17052       cat >conftest.$ac_ext <<_ACEOF
17053/* confdefs.h.  */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h.  */
17058
17059int
17060main ()
17061{
17062
17063  ;
17064  return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext conftest$ac_exeext
17068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17069  (eval $ac_link) 2>conftest.er1
17070  ac_status=$?
17071  grep -v '^ *+' conftest.er1 >conftest.err
17072  rm -f conftest.er1
17073  cat conftest.err >&5
17074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075  (exit $ac_status); } &&
17076	 { ac_try='test -z "$ac_c_werror_flag"
17077			 || test ! -s conftest.err'
17078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079  (eval $ac_try) 2>&5
17080  ac_status=$?
17081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082  (exit $ac_status); }; } &&
17083	 { ac_try='test -s conftest$ac_exeext'
17084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085  (eval $ac_try) 2>&5
17086  ac_status=$?
17087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088  (exit $ac_status); }; }; then
17089
17090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17091}'`
17092# Check for a 64-bit object if we didn't find anything.
17093if 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; }
17094}'`; fi
17095else
17096  echo "$as_me: failed program was:" >&5
17097sed 's/^/| /' conftest.$ac_ext >&5
17098
17099fi
17100rm -f conftest.err conftest.$ac_objext \
17101      conftest$ac_exeext conftest.$ac_ext
17102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17103
17104       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17105	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17106       else
17107	if test "$host_cpu" = ia64; then
17108	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17109	  allow_undefined_flag_GCJ="-z nodefs"
17110	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17111	else
17112	 # Determine the default libpath from the value encoded in an empty executable.
17113	 cat >conftest.$ac_ext <<_ACEOF
17114/* confdefs.h.  */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h.  */
17119
17120int
17121main ()
17122{
17123
17124  ;
17125  return 0;
17126}
17127_ACEOF
17128rm -f conftest.$ac_objext conftest$ac_exeext
17129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130  (eval $ac_link) 2>conftest.er1
17131  ac_status=$?
17132  grep -v '^ *+' conftest.er1 >conftest.err
17133  rm -f conftest.er1
17134  cat conftest.err >&5
17135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136  (exit $ac_status); } &&
17137	 { ac_try='test -z "$ac_c_werror_flag"
17138			 || test ! -s conftest.err'
17139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140  (eval $ac_try) 2>&5
17141  ac_status=$?
17142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143  (exit $ac_status); }; } &&
17144	 { ac_try='test -s conftest$ac_exeext'
17145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146  (eval $ac_try) 2>&5
17147  ac_status=$?
17148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149  (exit $ac_status); }; }; then
17150
17151aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17152}'`
17153# Check for a 64-bit object if we didn't find anything.
17154if 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; }
17155}'`; fi
17156else
17157  echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160fi
17161rm -f conftest.err conftest.$ac_objext \
17162      conftest$ac_exeext conftest.$ac_ext
17163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17164
17165	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17166	  # Warning - without using the other run time loading flags,
17167	  # -berok will link without error, but may produce a broken library.
17168	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17169	  allow_undefined_flag_GCJ=' ${wl}-berok'
17170	  # -bexpall does not export symbols beginning with underscore (_)
17171	  always_export_symbols_GCJ=yes
17172	  # Exported symbols can be pulled into shared objects from archives
17173	  whole_archive_flag_spec_GCJ=' '
17174	  archive_cmds_need_lc_GCJ=yes
17175	  # This is similar to how AIX traditionally builds its shared libraries.
17176	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17177	fi
17178      fi
17179      ;;
17180
17181    amigaos*)
17182      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)'
17183      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17184      hardcode_minus_L_GCJ=yes
17185      # see comment about different semantics on the GNU ld section
17186      ld_shlibs_GCJ=no
17187      ;;
17188
17189    bsdi[45]*)
17190      export_dynamic_flag_spec_GCJ=-rdynamic
17191      ;;
17192
17193    cygwin* | mingw* | pw32*)
17194      # When not using gcc, we currently assume that we are using
17195      # Microsoft Visual C++.
17196      # hardcode_libdir_flag_spec is actually meaningless, as there is
17197      # no search path for DLLs.
17198      hardcode_libdir_flag_spec_GCJ=' '
17199      allow_undefined_flag_GCJ=unsupported
17200      # Tell ltmain to make .lib files, not .a files.
17201      libext=lib
17202      # Tell ltmain to make .dll files, not .so files.
17203      shrext_cmds=".dll"
17204      # FIXME: Setting linknames here is a bad hack.
17205      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17206      # The linker will automatically build a .lib file if we build a DLL.
17207      old_archive_From_new_cmds_GCJ='true'
17208      # FIXME: Should let the user specify the lib program.
17209      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17210      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17211      enable_shared_with_static_runtimes_GCJ=yes
17212      ;;
17213
17214    darwin* | rhapsody*)
17215      case $host_os in
17216        rhapsody* | darwin1.[012])
17217         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17218         ;;
17219       *) # Darwin 1.3 on
17220         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17221           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17222         else
17223           case ${MACOSX_DEPLOYMENT_TARGET} in
17224             10.[012])
17225               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17226               ;;
17227             10.*)
17228               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17229               ;;
17230           esac
17231         fi
17232         ;;
17233      esac
17234      archive_cmds_need_lc_GCJ=no
17235      hardcode_direct_GCJ=no
17236      hardcode_automatic_GCJ=yes
17237      hardcode_shlibpath_var_GCJ=unsupported
17238      whole_archive_flag_spec_GCJ=''
17239      link_all_deplibs_GCJ=yes
17240    if test "$GCC" = yes ; then
17241    	output_verbose_link_cmd='echo'
17242        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17243      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17244      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17245      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}'
17246      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}'
17247    else
17248      case $cc_basename in
17249        xlc*)
17250         output_verbose_link_cmd='echo'
17251         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17252         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17253          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17254         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}'
17255          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}'
17256          ;;
17257       *)
17258         ld_shlibs_GCJ=no
17259          ;;
17260      esac
17261    fi
17262      ;;
17263
17264    dgux*)
17265      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17267      hardcode_shlibpath_var_GCJ=no
17268      ;;
17269
17270    freebsd1*)
17271      ld_shlibs_GCJ=no
17272      ;;
17273
17274    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17275    # support.  Future versions do this automatically, but an explicit c++rt0.o
17276    # does not break anything, and helps significantly (at the cost of a little
17277    # extra space).
17278    freebsd2.2*)
17279      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17280      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17281      hardcode_direct_GCJ=yes
17282      hardcode_shlibpath_var_GCJ=no
17283      ;;
17284
17285    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17286    freebsd2*)
17287      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17288      hardcode_direct_GCJ=yes
17289      hardcode_minus_L_GCJ=yes
17290      hardcode_shlibpath_var_GCJ=no
17291      ;;
17292
17293    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17294    freebsd* | kfreebsd*-gnu | dragonfly*)
17295      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17296      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17297      hardcode_direct_GCJ=yes
17298      hardcode_shlibpath_var_GCJ=no
17299      ;;
17300
17301    hpux9*)
17302      if test "$GCC" = yes; then
17303	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'
17304      else
17305	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'
17306      fi
17307      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17308      hardcode_libdir_separator_GCJ=:
17309      hardcode_direct_GCJ=yes
17310
17311      # hardcode_minus_L: Not really in the search PATH,
17312      # but as the default location of the library.
17313      hardcode_minus_L_GCJ=yes
17314      export_dynamic_flag_spec_GCJ='${wl}-E'
17315      ;;
17316
17317    hpux10* | hpux11*)
17318      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17319	case $host_cpu in
17320	hppa*64*|ia64*)
17321	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17322	  ;;
17323	*)
17324	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17325	  ;;
17326	esac
17327      else
17328	case $host_cpu in
17329	hppa*64*|ia64*)
17330	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17331	  ;;
17332	*)
17333	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17334	  ;;
17335	esac
17336      fi
17337      if test "$with_gnu_ld" = no; then
17338	case $host_cpu in
17339	hppa*64*)
17340	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17341	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17342	  hardcode_libdir_separator_GCJ=:
17343	  hardcode_direct_GCJ=no
17344	  hardcode_shlibpath_var_GCJ=no
17345	  ;;
17346	ia64*)
17347	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348	  hardcode_direct_GCJ=no
17349	  hardcode_shlibpath_var_GCJ=no
17350
17351	  # hardcode_minus_L: Not really in the search PATH,
17352	  # but as the default location of the library.
17353	  hardcode_minus_L_GCJ=yes
17354	  ;;
17355	*)
17356	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17357	  hardcode_libdir_separator_GCJ=:
17358	  hardcode_direct_GCJ=yes
17359	  export_dynamic_flag_spec_GCJ='${wl}-E'
17360
17361	  # hardcode_minus_L: Not really in the search PATH,
17362	  # but as the default location of the library.
17363	  hardcode_minus_L_GCJ=yes
17364	  ;;
17365	esac
17366      fi
17367      ;;
17368
17369    irix5* | irix6* | nonstopux*)
17370      if test "$GCC" = yes; then
17371	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'
17372      else
17373	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'
17374	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17375      fi
17376      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17377      hardcode_libdir_separator_GCJ=:
17378      link_all_deplibs_GCJ=yes
17379      ;;
17380
17381    netbsd*)
17382      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17383	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17384      else
17385	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17386      fi
17387      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17388      hardcode_direct_GCJ=yes
17389      hardcode_shlibpath_var_GCJ=no
17390      ;;
17391
17392    newsos6)
17393      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394      hardcode_direct_GCJ=yes
17395      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17396      hardcode_libdir_separator_GCJ=:
17397      hardcode_shlibpath_var_GCJ=no
17398      ;;
17399
17400    openbsd*)
17401      hardcode_direct_GCJ=yes
17402      hardcode_shlibpath_var_GCJ=no
17403      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17404	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17405	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17406	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17407	export_dynamic_flag_spec_GCJ='${wl}-E'
17408      else
17409       case $host_os in
17410	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17411	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17412	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413	   ;;
17414	 *)
17415	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17416	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17417	   ;;
17418       esac
17419      fi
17420      ;;
17421
17422    os2*)
17423      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17424      hardcode_minus_L_GCJ=yes
17425      allow_undefined_flag_GCJ=unsupported
17426      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'
17427      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17428      ;;
17429
17430    osf3*)
17431      if test "$GCC" = yes; then
17432	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17433	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'
17434      else
17435	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17436	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'
17437      fi
17438      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17439      hardcode_libdir_separator_GCJ=:
17440      ;;
17441
17442    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17443      if test "$GCC" = yes; then
17444	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17445	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'
17446	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447      else
17448	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17449	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'
17450	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~
17451	$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'
17452
17453	# Both c and cxx compiler support -rpath directly
17454	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17455      fi
17456      hardcode_libdir_separator_GCJ=:
17457      ;;
17458
17459    sco3.2v5*)
17460      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17461      hardcode_shlibpath_var_GCJ=no
17462      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17463      runpath_var=LD_RUN_PATH
17464      hardcode_runpath_var=yes
17465      ;;
17466
17467    solaris*)
17468      no_undefined_flag_GCJ=' -z text'
17469      if test "$GCC" = yes; then
17470	wlarc='${wl}'
17471	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17474      else
17475	wlarc=''
17476	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17479      fi
17480      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481      hardcode_shlibpath_var_GCJ=no
17482      case $host_os in
17483      solaris2.[0-5] | solaris2.[0-5].*) ;;
17484      *)
17485 	# The compiler driver will combine linker options so we
17486 	# cannot just pass the convience library names through
17487 	# without $wl, iff we do not link with $LD.
17488 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17489 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17490 	case $wlarc in
17491 	'')
17492 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17493 	*)
17494 	  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' ;;
17495 	esac ;;
17496      esac
17497      link_all_deplibs_GCJ=yes
17498      ;;
17499
17500    sunos4*)
17501      if test "x$host_vendor" = xsequent; then
17502	# Use $CC to link under sequent, because it throws in some extra .o
17503	# files that make .init and .fini sections work.
17504	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17505      else
17506	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17507      fi
17508      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17509      hardcode_direct_GCJ=yes
17510      hardcode_minus_L_GCJ=yes
17511      hardcode_shlibpath_var_GCJ=no
17512      ;;
17513
17514    sysv4)
17515      case $host_vendor in
17516	sni)
17517	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518	  hardcode_direct_GCJ=yes # is this really true???
17519	;;
17520	siemens)
17521	  ## LD is ld it makes a PLAMLIB
17522	  ## CC just makes a GrossModule.
17523	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17524	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17525	  hardcode_direct_GCJ=no
17526        ;;
17527	motorola)
17528	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17529	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17530	;;
17531      esac
17532      runpath_var='LD_RUN_PATH'
17533      hardcode_shlibpath_var_GCJ=no
17534      ;;
17535
17536    sysv4.3*)
17537      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538      hardcode_shlibpath_var_GCJ=no
17539      export_dynamic_flag_spec_GCJ='-Bexport'
17540      ;;
17541
17542    sysv4*MP*)
17543      if test -d /usr/nec; then
17544	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545	hardcode_shlibpath_var_GCJ=no
17546	runpath_var=LD_RUN_PATH
17547	hardcode_runpath_var=yes
17548	ld_shlibs_GCJ=yes
17549      fi
17550      ;;
17551
17552    sysv4.2uw2*)
17553      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17554      hardcode_direct_GCJ=yes
17555      hardcode_minus_L_GCJ=no
17556      hardcode_shlibpath_var_GCJ=no
17557      hardcode_runpath_var=yes
17558      runpath_var=LD_RUN_PATH
17559      ;;
17560
17561   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17562      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17563      if test "$GCC" = yes; then
17564	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17565      else
17566	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567      fi
17568      runpath_var='LD_RUN_PATH'
17569      hardcode_shlibpath_var_GCJ=no
17570      ;;
17571
17572    sysv5*)
17573      no_undefined_flag_GCJ=' -z text'
17574      # $CC -shared without GNU ld will not create a library from C++
17575      # object files and a static libstdc++, better avoid it by now
17576      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17578  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17579      hardcode_libdir_flag_spec_GCJ=
17580      hardcode_shlibpath_var_GCJ=no
17581      runpath_var='LD_RUN_PATH'
17582      ;;
17583
17584    uts4*)
17585      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587      hardcode_shlibpath_var_GCJ=no
17588      ;;
17589
17590    *)
17591      ld_shlibs_GCJ=no
17592      ;;
17593    esac
17594  fi
17595
17596echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17597echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17598test "$ld_shlibs_GCJ" = no && can_build_shared=no
17599
17600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17601if test "$GCC" = yes; then
17602  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17603fi
17604
17605#
17606# Do we need to explicitly link libc?
17607#
17608case "x$archive_cmds_need_lc_GCJ" in
17609x|xyes)
17610  # Assume -lc should be added
17611  archive_cmds_need_lc_GCJ=yes
17612
17613  if test "$enable_shared" = yes && test "$GCC" = yes; then
17614    case $archive_cmds_GCJ in
17615    *'~'*)
17616      # FIXME: we may have to deal with multi-command sequences.
17617      ;;
17618    '$CC '*)
17619      # Test whether the compiler implicitly links with -lc since on some
17620      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17621      # to ld, don't add -lc before -lgcc.
17622      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17623echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17624      $rm conftest*
17625      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17626
17627      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628  (eval $ac_compile) 2>&5
17629  ac_status=$?
17630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631  (exit $ac_status); } 2>conftest.err; then
17632        soname=conftest
17633        lib=conftest
17634        libobjs=conftest.$ac_objext
17635        deplibs=
17636        wl=$lt_prog_compiler_wl_GCJ
17637        compiler_flags=-v
17638        linker_flags=-v
17639        verstring=
17640        output_objdir=.
17641        libname=conftest
17642        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17643        allow_undefined_flag_GCJ=
17644        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17645  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17646  ac_status=$?
17647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648  (exit $ac_status); }
17649        then
17650	  archive_cmds_need_lc_GCJ=no
17651        else
17652	  archive_cmds_need_lc_GCJ=yes
17653        fi
17654        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17655      else
17656        cat conftest.err 1>&5
17657      fi
17658      $rm conftest*
17659      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17660echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17661      ;;
17662    esac
17663  fi
17664  ;;
17665esac
17666
17667echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17668echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17669library_names_spec=
17670libname_spec='lib$name'
17671soname_spec=
17672shrext_cmds=".so"
17673postinstall_cmds=
17674postuninstall_cmds=
17675finish_cmds=
17676finish_eval=
17677shlibpath_var=
17678shlibpath_overrides_runpath=unknown
17679version_type=none
17680dynamic_linker="$host_os ld.so"
17681sys_lib_dlsearch_path_spec="/lib /usr/lib"
17682if test "$GCC" = yes; then
17683  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17684  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17685    # if the path contains ";" then we assume it to be the separator
17686    # otherwise default to the standard path separator (i.e. ":") - it is
17687    # assumed that no part of a normal pathname contains ";" but that should
17688    # okay in the real world where ";" in dirpaths is itself problematic.
17689    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17690  else
17691    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17692  fi
17693else
17694  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17695fi
17696need_lib_prefix=unknown
17697hardcode_into_libs=no
17698
17699# when you set need_version to no, make sure it does not cause -set_version
17700# flags to be left without arguments
17701need_version=unknown
17702
17703case $host_os in
17704aix3*)
17705  version_type=linux
17706  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17707  shlibpath_var=LIBPATH
17708
17709  # AIX 3 has no versioning support, so we append a major version to the name.
17710  soname_spec='${libname}${release}${shared_ext}$major'
17711  ;;
17712
17713aix4* | aix5*)
17714  version_type=linux
17715  need_lib_prefix=no
17716  need_version=no
17717  hardcode_into_libs=yes
17718  if test "$host_cpu" = ia64; then
17719    # AIX 5 supports IA64
17720    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17721    shlibpath_var=LD_LIBRARY_PATH
17722  else
17723    # With GCC up to 2.95.x, collect2 would create an import file
17724    # for dependence libraries.  The import file would start with
17725    # the line `#! .'.  This would cause the generated library to
17726    # depend on `.', always an invalid library.  This was fixed in
17727    # development snapshots of GCC prior to 3.0.
17728    case $host_os in
17729      aix4 | aix4.[01] | aix4.[01].*)
17730      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17731	   echo ' yes '
17732	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17733	:
17734      else
17735	can_build_shared=no
17736      fi
17737      ;;
17738    esac
17739    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17740    # soname into executable. Probably we can add versioning support to
17741    # collect2, so additional links can be useful in future.
17742    if test "$aix_use_runtimelinking" = yes; then
17743      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17744      # instead of lib<name>.a to let people know that these are not
17745      # typical AIX shared libraries.
17746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747    else
17748      # We preserve .a as extension for shared libraries through AIX4.2
17749      # and later when we are not doing run time linking.
17750      library_names_spec='${libname}${release}.a $libname.a'
17751      soname_spec='${libname}${release}${shared_ext}$major'
17752    fi
17753    shlibpath_var=LIBPATH
17754  fi
17755  ;;
17756
17757amigaos*)
17758  library_names_spec='$libname.ixlibrary $libname.a'
17759  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17760  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'
17761  ;;
17762
17763beos*)
17764  library_names_spec='${libname}${shared_ext}'
17765  dynamic_linker="$host_os ld.so"
17766  shlibpath_var=LIBRARY_PATH
17767  ;;
17768
17769bsdi[45]*)
17770  version_type=linux
17771  need_version=no
17772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773  soname_spec='${libname}${release}${shared_ext}$major'
17774  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17775  shlibpath_var=LD_LIBRARY_PATH
17776  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17777  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17778  # the default ld.so.conf also contains /usr/contrib/lib and
17779  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17780  # libtool to hard-code these into programs
17781  ;;
17782
17783cygwin* | mingw* | pw32*)
17784  version_type=windows
17785  shrext_cmds=".dll"
17786  need_version=no
17787  need_lib_prefix=no
17788
17789  case $GCC,$host_os in
17790  yes,cygwin* | yes,mingw* | yes,pw32*)
17791    library_names_spec='$libname.dll.a'
17792    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17793    postinstall_cmds='base_file=`basename \${file}`~
17794      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17795      dldir=$destdir/`dirname \$dlpath`~
17796      test -d \$dldir || mkdir -p \$dldir~
17797      $install_prog $dir/$dlname \$dldir/$dlname~
17798      chmod a+x \$dldir/$dlname'
17799    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17800      dlpath=$dir/\$dldll~
17801       $rm \$dlpath'
17802    shlibpath_overrides_runpath=yes
17803
17804    case $host_os in
17805    cygwin*)
17806      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17807      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17808      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17809      ;;
17810    mingw*)
17811      # MinGW DLLs use traditional 'lib' prefix
17812      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17814      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17815        # It is most probably a Windows format PATH printed by
17816        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17817        # path with ; separators, and with drive letters. We can handle the
17818        # drive letters (cygwin fileutils understands them), so leave them,
17819        # especially as we might pass files found there to a mingw objdump,
17820        # which wouldn't understand a cygwinified path. Ahh.
17821        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17822      else
17823        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17824      fi
17825      ;;
17826    pw32*)
17827      # pw32 DLLs use 'pw' prefix rather than 'lib'
17828      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17829      ;;
17830    esac
17831    ;;
17832
17833  *)
17834    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17835    ;;
17836  esac
17837  dynamic_linker='Win32 ld.exe'
17838  # FIXME: first we should search . and the directory the executable is in
17839  shlibpath_var=PATH
17840  ;;
17841
17842darwin* | rhapsody*)
17843  dynamic_linker="$host_os dyld"
17844  version_type=darwin
17845  need_lib_prefix=no
17846  need_version=no
17847  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17848  soname_spec='${libname}${release}${major}$shared_ext'
17849  shlibpath_overrides_runpath=yes
17850  shlibpath_var=DYLD_LIBRARY_PATH
17851  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17852  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17853  if test "$GCC" = yes; then
17854    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"`
17855  else
17856    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17857  fi
17858  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17859  ;;
17860
17861dgux*)
17862  version_type=linux
17863  need_lib_prefix=no
17864  need_version=no
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
17870freebsd1*)
17871  dynamic_linker=no
17872  ;;
17873
17874haiku*)
17875  library_names_spec='${libname}${shared_ext}'
17876  dynamic_linker="$host_os ld.so"
17877  shlibpath_var=LIBRARY_PATH
17878  ;;
17879
17880kfreebsd*-gnu)
17881  version_type=linux
17882  need_lib_prefix=no
17883  need_version=no
17884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17885  soname_spec='${libname}${release}${shared_ext}$major'
17886  shlibpath_var=LD_LIBRARY_PATH
17887  shlibpath_overrides_runpath=no
17888  hardcode_into_libs=yes
17889  dynamic_linker='GNU ld.so'
17890  ;;
17891
17892freebsd* | dragonfly*)
17893  # DragonFly does not have aout.  When/if they implement a new
17894  # versioning mechanism, adjust this.
17895  if test -x /usr/bin/objformat; then
17896    objformat=`/usr/bin/objformat`
17897  else
17898    case $host_os in
17899    freebsd[123]*) objformat=aout ;;
17900    *) objformat=elf ;;
17901    esac
17902  fi
17903  version_type=freebsd-$objformat
17904  case $version_type in
17905    freebsd-elf*)
17906      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17907      need_version=no
17908      need_lib_prefix=no
17909      ;;
17910    freebsd-*)
17911      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17912      need_version=yes
17913      ;;
17914  esac
17915  shlibpath_var=LD_LIBRARY_PATH
17916  case $host_os in
17917  freebsd2*)
17918    shlibpath_overrides_runpath=yes
17919    ;;
17920  freebsd3.[01]* | freebsdelf3.[01]*)
17921    shlibpath_overrides_runpath=yes
17922    hardcode_into_libs=yes
17923    ;;
17924  *) # from 3.2 on
17925    shlibpath_overrides_runpath=no
17926    hardcode_into_libs=yes
17927    ;;
17928  esac
17929  ;;
17930
17931gnu*)
17932  version_type=linux
17933  need_lib_prefix=no
17934  need_version=no
17935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17936  soname_spec='${libname}${release}${shared_ext}$major'
17937  shlibpath_var=LD_LIBRARY_PATH
17938  hardcode_into_libs=yes
17939  ;;
17940
17941hpux9* | hpux10* | hpux11*)
17942  # Give a soname corresponding to the major version so that dld.sl refuses to
17943  # link against other versions.
17944  version_type=sunos
17945  need_lib_prefix=no
17946  need_version=no
17947  case $host_cpu in
17948  ia64*)
17949    shrext_cmds='.so'
17950    hardcode_into_libs=yes
17951    dynamic_linker="$host_os dld.so"
17952    shlibpath_var=LD_LIBRARY_PATH
17953    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955    soname_spec='${libname}${release}${shared_ext}$major'
17956    if test "X$HPUX_IA64_MODE" = X32; then
17957      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17958    else
17959      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17960    fi
17961    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17962    ;;
17963   hppa*64*)
17964     shrext_cmds='.sl'
17965     hardcode_into_libs=yes
17966     dynamic_linker="$host_os dld.sl"
17967     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970     soname_spec='${libname}${release}${shared_ext}$major'
17971     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17972     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17973     ;;
17974   *)
17975    shrext_cmds='.sl'
17976    dynamic_linker="$host_os dld.sl"
17977    shlibpath_var=SHLIB_PATH
17978    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980    soname_spec='${libname}${release}${shared_ext}$major'
17981    ;;
17982  esac
17983  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17984  postinstall_cmds='chmod 555 $lib'
17985  ;;
17986
17987irix5* | irix6* | nonstopux*)
17988  case $host_os in
17989    nonstopux*) version_type=nonstopux ;;
17990    *)
17991	if test "$lt_cv_prog_gnu_ld" = yes; then
17992		version_type=linux
17993	else
17994		version_type=irix
17995	fi ;;
17996  esac
17997  need_lib_prefix=no
17998  need_version=no
17999  soname_spec='${libname}${release}${shared_ext}$major'
18000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18001  case $host_os in
18002  irix5* | nonstopux*)
18003    libsuff= shlibsuff=
18004    ;;
18005  *)
18006    case $LD in # libtool.m4 will add one of these switches to LD
18007    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18008      libsuff= shlibsuff= libmagic=32-bit;;
18009    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18010      libsuff=32 shlibsuff=N32 libmagic=N32;;
18011    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18012      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18013    *) libsuff= shlibsuff= libmagic=never-match;;
18014    esac
18015    ;;
18016  esac
18017  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18018  shlibpath_overrides_runpath=no
18019  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18020  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18021  hardcode_into_libs=yes
18022  ;;
18023
18024# No shared lib support for Linux oldld, aout, or coff.
18025linux*oldld* | linux*aout* | linux*coff*)
18026  dynamic_linker=no
18027  ;;
18028
18029# This must be Linux ELF.
18030linux*)
18031  version_type=linux
18032  need_lib_prefix=no
18033  need_version=no
18034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18035  soname_spec='${libname}${release}${shared_ext}$major'
18036  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18037  shlibpath_var=LD_LIBRARY_PATH
18038  shlibpath_overrides_runpath=no
18039  # This implies no fast_install, which is unacceptable.
18040  # Some rework will be needed to allow for fast_install
18041  # before this can be enabled.
18042  hardcode_into_libs=yes
18043
18044  # Append ld.so.conf contents to the search path
18045  if test -f /etc/ld.so.conf; then
18046    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' ' '`
18047    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18048  fi
18049
18050  # We used to test for /lib/ld.so.1 and disable shared libraries on
18051  # powerpc, because MkLinux only supported shared libraries with the
18052  # GNU dynamic linker.  Since this was broken with cross compilers,
18053  # most powerpc-linux boxes support dynamic linking these days and
18054  # people can always --disable-shared, the test was removed, and we
18055  # assume the GNU/Linux dynamic linker is in use.
18056  dynamic_linker='GNU/Linux ld.so'
18057  ;;
18058
18059knetbsd*-gnu)
18060  version_type=linux
18061  need_lib_prefix=no
18062  need_version=no
18063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18064  soname_spec='${libname}${release}${shared_ext}$major'
18065  shlibpath_var=LD_LIBRARY_PATH
18066  shlibpath_overrides_runpath=no
18067  hardcode_into_libs=yes
18068  dynamic_linker='GNU ld.so'
18069  ;;
18070
18071netbsd*)
18072  version_type=sunos
18073  need_lib_prefix=no
18074  need_version=no
18075  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18076    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18077    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18078    dynamic_linker='NetBSD (a.out) ld.so'
18079  else
18080    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081    soname_spec='${libname}${release}${shared_ext}$major'
18082    dynamic_linker='NetBSD ld.elf_so'
18083  fi
18084  shlibpath_var=LD_LIBRARY_PATH
18085  shlibpath_overrides_runpath=yes
18086  hardcode_into_libs=yes
18087  ;;
18088
18089newsos6)
18090  version_type=linux
18091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18092  shlibpath_var=LD_LIBRARY_PATH
18093  shlibpath_overrides_runpath=yes
18094  ;;
18095
18096nto-qnx*)
18097  version_type=linux
18098  need_lib_prefix=no
18099  need_version=no
18100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18101  soname_spec='${libname}${release}${shared_ext}$major'
18102  shlibpath_var=LD_LIBRARY_PATH
18103  shlibpath_overrides_runpath=yes
18104  ;;
18105
18106openbsd*)
18107  version_type=sunos
18108  need_lib_prefix=no
18109  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18110  case $host_os in
18111    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112    *)                         need_version=no  ;;
18113  esac
18114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116  shlibpath_var=LD_LIBRARY_PATH
18117  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118    case $host_os in
18119      openbsd2.[89] | openbsd2.[89].*)
18120	shlibpath_overrides_runpath=no
18121	;;
18122      *)
18123	shlibpath_overrides_runpath=yes
18124	;;
18125      esac
18126  else
18127    shlibpath_overrides_runpath=yes
18128  fi
18129  ;;
18130
18131os2*)
18132  libname_spec='$name'
18133  shrext_cmds=".dll"
18134  need_lib_prefix=no
18135  library_names_spec='$libname${shared_ext} $libname.a'
18136  dynamic_linker='OS/2 ld.exe'
18137  shlibpath_var=LIBPATH
18138  ;;
18139
18140osf3* | osf4* | osf5*)
18141  version_type=osf
18142  need_lib_prefix=no
18143  need_version=no
18144  soname_spec='${libname}${release}${shared_ext}$major'
18145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146  shlibpath_var=LD_LIBRARY_PATH
18147  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149  ;;
18150
18151sco3.2v5*)
18152  version_type=osf
18153  soname_spec='${libname}${release}${shared_ext}$major'
18154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155  shlibpath_var=LD_LIBRARY_PATH
18156  ;;
18157
18158solaris*)
18159  version_type=linux
18160  need_lib_prefix=no
18161  need_version=no
18162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163  soname_spec='${libname}${release}${shared_ext}$major'
18164  shlibpath_var=LD_LIBRARY_PATH
18165  shlibpath_overrides_runpath=yes
18166  hardcode_into_libs=yes
18167  # ldd complains unless libraries are executable
18168  postinstall_cmds='chmod +x $lib'
18169  ;;
18170
18171sunos4*)
18172  version_type=sunos
18173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18174  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18175  shlibpath_var=LD_LIBRARY_PATH
18176  shlibpath_overrides_runpath=yes
18177  if test "$with_gnu_ld" = yes; then
18178    need_lib_prefix=no
18179  fi
18180  need_version=yes
18181  ;;
18182
18183sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18184  version_type=linux
18185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186  soname_spec='${libname}${release}${shared_ext}$major'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  case $host_vendor in
18189    sni)
18190      shlibpath_overrides_runpath=no
18191      need_lib_prefix=no
18192      export_dynamic_flag_spec='${wl}-Blargedynsym'
18193      runpath_var=LD_RUN_PATH
18194      ;;
18195    siemens)
18196      need_lib_prefix=no
18197      ;;
18198    motorola)
18199      need_lib_prefix=no
18200      need_version=no
18201      shlibpath_overrides_runpath=no
18202      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18203      ;;
18204  esac
18205  ;;
18206
18207sysv4*MP*)
18208  if test -d /usr/nec ;then
18209    version_type=linux
18210    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18211    soname_spec='$libname${shared_ext}.$major'
18212    shlibpath_var=LD_LIBRARY_PATH
18213  fi
18214  ;;
18215
18216uts4*)
18217  version_type=linux
18218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219  soname_spec='${libname}${release}${shared_ext}$major'
18220  shlibpath_var=LD_LIBRARY_PATH
18221  ;;
18222
18223*)
18224  dynamic_linker=no
18225  ;;
18226esac
18227echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18228echo "${ECHO_T}$dynamic_linker" >&6
18229test "$dynamic_linker" = no && can_build_shared=no
18230
18231echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18232echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18233hardcode_action_GCJ=
18234if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18235   test -n "$runpath_var_GCJ" || \
18236   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18237
18238  # We can hardcode non-existant directories.
18239  if test "$hardcode_direct_GCJ" != no &&
18240     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18241     # have to relink, otherwise we might link with an installed library
18242     # when we should be linking with a yet-to-be-installed one
18243     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18244     test "$hardcode_minus_L_GCJ" != no; then
18245    # Linking always hardcodes the temporary library directory.
18246    hardcode_action_GCJ=relink
18247  else
18248    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18249    hardcode_action_GCJ=immediate
18250  fi
18251else
18252  # We cannot hardcode anything, or else we can only hardcode existing
18253  # directories.
18254  hardcode_action_GCJ=unsupported
18255fi
18256echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18257echo "${ECHO_T}$hardcode_action_GCJ" >&6
18258
18259if test "$hardcode_action_GCJ" = relink; then
18260  # Fast installation is not supported
18261  enable_fast_install=no
18262elif test "$shlibpath_overrides_runpath" = yes ||
18263     test "$enable_shared" = no; then
18264  # Fast installation is not necessary
18265  enable_fast_install=needless
18266fi
18267
18268striplib=
18269old_striplib=
18270echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18271echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18272if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18273  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18274  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18275  echo "$as_me:$LINENO: result: yes" >&5
18276echo "${ECHO_T}yes" >&6
18277else
18278# FIXME - insert some real tests, host_os isn't really good enough
18279  case $host_os in
18280   darwin*)
18281       if test -n "$STRIP" ; then
18282         striplib="$STRIP -x"
18283         echo "$as_me:$LINENO: result: yes" >&5
18284echo "${ECHO_T}yes" >&6
18285       else
18286  echo "$as_me:$LINENO: result: no" >&5
18287echo "${ECHO_T}no" >&6
18288fi
18289       ;;
18290   *)
18291  echo "$as_me:$LINENO: result: no" >&5
18292echo "${ECHO_T}no" >&6
18293    ;;
18294  esac
18295fi
18296
18297if test "x$enable_dlopen" != xyes; then
18298  enable_dlopen=unknown
18299  enable_dlopen_self=unknown
18300  enable_dlopen_self_static=unknown
18301else
18302  lt_cv_dlopen=no
18303  lt_cv_dlopen_libs=
18304
18305  case $host_os in
18306  beos*)
18307    lt_cv_dlopen="load_add_on"
18308    lt_cv_dlopen_libs=
18309    lt_cv_dlopen_self=yes
18310    ;;
18311
18312  mingw* | pw32*)
18313    lt_cv_dlopen="LoadLibrary"
18314    lt_cv_dlopen_libs=
18315   ;;
18316
18317  cygwin*)
18318    lt_cv_dlopen="dlopen"
18319    lt_cv_dlopen_libs=
18320   ;;
18321
18322  darwin*)
18323  # if libdl is installed we need to link against it
18324    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18325echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18326if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18327  echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329  ac_check_lib_save_LIBS=$LIBS
18330LIBS="-ldl  $LIBS"
18331cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h.  */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h.  */
18337
18338/* Override any gcc2 internal prototype to avoid an error.  */
18339#ifdef __cplusplus
18340extern "C"
18341#endif
18342/* We use char because int might match the return type of a gcc2
18343   builtin and then its argument prototype would still apply.  */
18344char dlopen ();
18345int
18346main ()
18347{
18348dlopen ();
18349  ;
18350  return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext conftest$ac_exeext
18354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18355  (eval $ac_link) 2>conftest.er1
18356  ac_status=$?
18357  grep -v '^ *+' conftest.er1 >conftest.err
18358  rm -f conftest.er1
18359  cat conftest.err >&5
18360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361  (exit $ac_status); } &&
18362	 { ac_try='test -z "$ac_c_werror_flag"
18363			 || test ! -s conftest.err'
18364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365  (eval $ac_try) 2>&5
18366  ac_status=$?
18367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368  (exit $ac_status); }; } &&
18369	 { ac_try='test -s conftest$ac_exeext'
18370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371  (eval $ac_try) 2>&5
18372  ac_status=$?
18373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374  (exit $ac_status); }; }; then
18375  ac_cv_lib_dl_dlopen=yes
18376else
18377  echo "$as_me: failed program was:" >&5
18378sed 's/^/| /' conftest.$ac_ext >&5
18379
18380ac_cv_lib_dl_dlopen=no
18381fi
18382rm -f conftest.err conftest.$ac_objext \
18383      conftest$ac_exeext conftest.$ac_ext
18384LIBS=$ac_check_lib_save_LIBS
18385fi
18386echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18387echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18388if test $ac_cv_lib_dl_dlopen = yes; then
18389  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18390else
18391
18392    lt_cv_dlopen="dyld"
18393    lt_cv_dlopen_libs=
18394    lt_cv_dlopen_self=yes
18395
18396fi
18397
18398   ;;
18399
18400  haiku*)
18401    lt_cv_dlopen="load_add_on"
18402    lt_cv_dlopen_libs=
18403    lt_cv_dlopen_self=yes
18404    ;;
18405
18406  *)
18407    echo "$as_me:$LINENO: checking for shl_load" >&5
18408echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18409if test "${ac_cv_func_shl_load+set}" = set; then
18410  echo $ECHO_N "(cached) $ECHO_C" >&6
18411else
18412  cat >conftest.$ac_ext <<_ACEOF
18413/* confdefs.h.  */
18414_ACEOF
18415cat confdefs.h >>conftest.$ac_ext
18416cat >>conftest.$ac_ext <<_ACEOF
18417/* end confdefs.h.  */
18418/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18420#define shl_load innocuous_shl_load
18421
18422/* System header to define __stub macros and hopefully few prototypes,
18423    which can conflict with char shl_load (); below.
18424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425    <limits.h> exists even on freestanding compilers.  */
18426
18427#ifdef __STDC__
18428# include <limits.h>
18429#else
18430# include <assert.h>
18431#endif
18432
18433#undef shl_load
18434
18435/* Override any gcc2 internal prototype to avoid an error.  */
18436#ifdef __cplusplus
18437extern "C"
18438{
18439#endif
18440/* We use char because int might match the return type of a gcc2
18441   builtin and then its argument prototype would still apply.  */
18442char shl_load ();
18443/* The GNU C library defines this for functions which it implements
18444    to always fail with ENOSYS.  Some functions are actually named
18445    something starting with __ and the normal name is an alias.  */
18446#if defined (__stub_shl_load) || defined (__stub___shl_load)
18447choke me
18448#else
18449char (*f) () = shl_load;
18450#endif
18451#ifdef __cplusplus
18452}
18453#endif
18454
18455int
18456main ()
18457{
18458return f != shl_load;
18459  ;
18460  return 0;
18461}
18462_ACEOF
18463rm -f conftest.$ac_objext conftest$ac_exeext
18464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465  (eval $ac_link) 2>conftest.er1
18466  ac_status=$?
18467  grep -v '^ *+' conftest.er1 >conftest.err
18468  rm -f conftest.er1
18469  cat conftest.err >&5
18470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471  (exit $ac_status); } &&
18472	 { ac_try='test -z "$ac_c_werror_flag"
18473			 || test ! -s conftest.err'
18474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475  (eval $ac_try) 2>&5
18476  ac_status=$?
18477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478  (exit $ac_status); }; } &&
18479	 { ac_try='test -s conftest$ac_exeext'
18480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481  (eval $ac_try) 2>&5
18482  ac_status=$?
18483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484  (exit $ac_status); }; }; then
18485  ac_cv_func_shl_load=yes
18486else
18487  echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490ac_cv_func_shl_load=no
18491fi
18492rm -f conftest.err conftest.$ac_objext \
18493      conftest$ac_exeext conftest.$ac_ext
18494fi
18495echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18496echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18497if test $ac_cv_func_shl_load = yes; then
18498  lt_cv_dlopen="shl_load"
18499else
18500  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18501echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18502if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18503  echo $ECHO_N "(cached) $ECHO_C" >&6
18504else
18505  ac_check_lib_save_LIBS=$LIBS
18506LIBS="-ldld  $LIBS"
18507cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h.  */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h.  */
18513
18514/* Override any gcc2 internal prototype to avoid an error.  */
18515#ifdef __cplusplus
18516extern "C"
18517#endif
18518/* We use char because int might match the return type of a gcc2
18519   builtin and then its argument prototype would still apply.  */
18520char shl_load ();
18521int
18522main ()
18523{
18524shl_load ();
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529rm -f conftest.$ac_objext conftest$ac_exeext
18530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18531  (eval $ac_link) 2>conftest.er1
18532  ac_status=$?
18533  grep -v '^ *+' conftest.er1 >conftest.err
18534  rm -f conftest.er1
18535  cat conftest.err >&5
18536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537  (exit $ac_status); } &&
18538	 { ac_try='test -z "$ac_c_werror_flag"
18539			 || test ! -s conftest.err'
18540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541  (eval $ac_try) 2>&5
18542  ac_status=$?
18543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544  (exit $ac_status); }; } &&
18545	 { ac_try='test -s conftest$ac_exeext'
18546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547  (eval $ac_try) 2>&5
18548  ac_status=$?
18549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550  (exit $ac_status); }; }; then
18551  ac_cv_lib_dld_shl_load=yes
18552else
18553  echo "$as_me: failed program was:" >&5
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
18556ac_cv_lib_dld_shl_load=no
18557fi
18558rm -f conftest.err conftest.$ac_objext \
18559      conftest$ac_exeext conftest.$ac_ext
18560LIBS=$ac_check_lib_save_LIBS
18561fi
18562echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18563echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18564if test $ac_cv_lib_dld_shl_load = yes; then
18565  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18566else
18567  echo "$as_me:$LINENO: checking for dlopen" >&5
18568echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18569if test "${ac_cv_func_dlopen+set}" = set; then
18570  echo $ECHO_N "(cached) $ECHO_C" >&6
18571else
18572  cat >conftest.$ac_ext <<_ACEOF
18573/* confdefs.h.  */
18574_ACEOF
18575cat confdefs.h >>conftest.$ac_ext
18576cat >>conftest.$ac_ext <<_ACEOF
18577/* end confdefs.h.  */
18578/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18579   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18580#define dlopen innocuous_dlopen
18581
18582/* System header to define __stub macros and hopefully few prototypes,
18583    which can conflict with char dlopen (); below.
18584    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585    <limits.h> exists even on freestanding compilers.  */
18586
18587#ifdef __STDC__
18588# include <limits.h>
18589#else
18590# include <assert.h>
18591#endif
18592
18593#undef dlopen
18594
18595/* Override any gcc2 internal prototype to avoid an error.  */
18596#ifdef __cplusplus
18597extern "C"
18598{
18599#endif
18600/* We use char because int might match the return type of a gcc2
18601   builtin and then its argument prototype would still apply.  */
18602char dlopen ();
18603/* The GNU C library defines this for functions which it implements
18604    to always fail with ENOSYS.  Some functions are actually named
18605    something starting with __ and the normal name is an alias.  */
18606#if defined (__stub_dlopen) || defined (__stub___dlopen)
18607choke me
18608#else
18609char (*f) () = dlopen;
18610#endif
18611#ifdef __cplusplus
18612}
18613#endif
18614
18615int
18616main ()
18617{
18618return f != dlopen;
18619  ;
18620  return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext conftest$ac_exeext
18624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625  (eval $ac_link) 2>conftest.er1
18626  ac_status=$?
18627  grep -v '^ *+' conftest.er1 >conftest.err
18628  rm -f conftest.er1
18629  cat conftest.err >&5
18630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631  (exit $ac_status); } &&
18632	 { ac_try='test -z "$ac_c_werror_flag"
18633			 || test ! -s conftest.err'
18634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635  (eval $ac_try) 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); }; } &&
18639	 { ac_try='test -s conftest$ac_exeext'
18640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641  (eval $ac_try) 2>&5
18642  ac_status=$?
18643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644  (exit $ac_status); }; }; then
18645  ac_cv_func_dlopen=yes
18646else
18647  echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650ac_cv_func_dlopen=no
18651fi
18652rm -f conftest.err conftest.$ac_objext \
18653      conftest$ac_exeext conftest.$ac_ext
18654fi
18655echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18656echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18657if test $ac_cv_func_dlopen = yes; then
18658  lt_cv_dlopen="dlopen"
18659else
18660  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18661echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18662if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18663  echo $ECHO_N "(cached) $ECHO_C" >&6
18664else
18665  ac_check_lib_save_LIBS=$LIBS
18666LIBS="-ldl  $LIBS"
18667cat >conftest.$ac_ext <<_ACEOF
18668/* confdefs.h.  */
18669_ACEOF
18670cat confdefs.h >>conftest.$ac_ext
18671cat >>conftest.$ac_ext <<_ACEOF
18672/* end confdefs.h.  */
18673
18674/* Override any gcc2 internal prototype to avoid an error.  */
18675#ifdef __cplusplus
18676extern "C"
18677#endif
18678/* We use char because int might match the return type of a gcc2
18679   builtin and then its argument prototype would still apply.  */
18680char dlopen ();
18681int
18682main ()
18683{
18684dlopen ();
18685  ;
18686  return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext conftest$ac_exeext
18690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18691  (eval $ac_link) 2>conftest.er1
18692  ac_status=$?
18693  grep -v '^ *+' conftest.er1 >conftest.err
18694  rm -f conftest.er1
18695  cat conftest.err >&5
18696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697  (exit $ac_status); } &&
18698	 { ac_try='test -z "$ac_c_werror_flag"
18699			 || test ! -s conftest.err'
18700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701  (eval $ac_try) 2>&5
18702  ac_status=$?
18703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704  (exit $ac_status); }; } &&
18705	 { ac_try='test -s conftest$ac_exeext'
18706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707  (eval $ac_try) 2>&5
18708  ac_status=$?
18709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710  (exit $ac_status); }; }; then
18711  ac_cv_lib_dl_dlopen=yes
18712else
18713  echo "$as_me: failed program was:" >&5
18714sed 's/^/| /' conftest.$ac_ext >&5
18715
18716ac_cv_lib_dl_dlopen=no
18717fi
18718rm -f conftest.err conftest.$ac_objext \
18719      conftest$ac_exeext conftest.$ac_ext
18720LIBS=$ac_check_lib_save_LIBS
18721fi
18722echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18723echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18724if test $ac_cv_lib_dl_dlopen = yes; then
18725  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18726else
18727  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18728echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18729if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18730  echo $ECHO_N "(cached) $ECHO_C" >&6
18731else
18732  ac_check_lib_save_LIBS=$LIBS
18733LIBS="-lsvld  $LIBS"
18734cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h.  */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h.  */
18740
18741/* Override any gcc2 internal prototype to avoid an error.  */
18742#ifdef __cplusplus
18743extern "C"
18744#endif
18745/* We use char because int might match the return type of a gcc2
18746   builtin and then its argument prototype would still apply.  */
18747char dlopen ();
18748int
18749main ()
18750{
18751dlopen ();
18752  ;
18753  return 0;
18754}
18755_ACEOF
18756rm -f conftest.$ac_objext conftest$ac_exeext
18757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18758  (eval $ac_link) 2>conftest.er1
18759  ac_status=$?
18760  grep -v '^ *+' conftest.er1 >conftest.err
18761  rm -f conftest.er1
18762  cat conftest.err >&5
18763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764  (exit $ac_status); } &&
18765	 { ac_try='test -z "$ac_c_werror_flag"
18766			 || test ! -s conftest.err'
18767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768  (eval $ac_try) 2>&5
18769  ac_status=$?
18770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771  (exit $ac_status); }; } &&
18772	 { ac_try='test -s conftest$ac_exeext'
18773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774  (eval $ac_try) 2>&5
18775  ac_status=$?
18776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777  (exit $ac_status); }; }; then
18778  ac_cv_lib_svld_dlopen=yes
18779else
18780  echo "$as_me: failed program was:" >&5
18781sed 's/^/| /' conftest.$ac_ext >&5
18782
18783ac_cv_lib_svld_dlopen=no
18784fi
18785rm -f conftest.err conftest.$ac_objext \
18786      conftest$ac_exeext conftest.$ac_ext
18787LIBS=$ac_check_lib_save_LIBS
18788fi
18789echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18790echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18791if test $ac_cv_lib_svld_dlopen = yes; then
18792  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18793else
18794  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18795echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18796if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18797  echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799  ac_check_lib_save_LIBS=$LIBS
18800LIBS="-ldld  $LIBS"
18801cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h.  */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h.  */
18807
18808/* Override any gcc2 internal prototype to avoid an error.  */
18809#ifdef __cplusplus
18810extern "C"
18811#endif
18812/* We use char because int might match the return type of a gcc2
18813   builtin and then its argument prototype would still apply.  */
18814char dld_link ();
18815int
18816main ()
18817{
18818dld_link ();
18819  ;
18820  return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext conftest$ac_exeext
18824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18825  (eval $ac_link) 2>conftest.er1
18826  ac_status=$?
18827  grep -v '^ *+' conftest.er1 >conftest.err
18828  rm -f conftest.er1
18829  cat conftest.err >&5
18830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831  (exit $ac_status); } &&
18832	 { ac_try='test -z "$ac_c_werror_flag"
18833			 || test ! -s conftest.err'
18834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835  (eval $ac_try) 2>&5
18836  ac_status=$?
18837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838  (exit $ac_status); }; } &&
18839	 { ac_try='test -s conftest$ac_exeext'
18840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841  (eval $ac_try) 2>&5
18842  ac_status=$?
18843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844  (exit $ac_status); }; }; then
18845  ac_cv_lib_dld_dld_link=yes
18846else
18847  echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850ac_cv_lib_dld_dld_link=no
18851fi
18852rm -f conftest.err conftest.$ac_objext \
18853      conftest$ac_exeext conftest.$ac_ext
18854LIBS=$ac_check_lib_save_LIBS
18855fi
18856echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18857echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18858if test $ac_cv_lib_dld_dld_link = yes; then
18859  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18860fi
18861
18862
18863fi
18864
18865
18866fi
18867
18868
18869fi
18870
18871
18872fi
18873
18874
18875fi
18876
18877    ;;
18878  esac
18879
18880  if test "x$lt_cv_dlopen" != xno; then
18881    enable_dlopen=yes
18882  else
18883    enable_dlopen=no
18884  fi
18885
18886  case $lt_cv_dlopen in
18887  dlopen)
18888    save_CPPFLAGS="$CPPFLAGS"
18889    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18890
18891    save_LDFLAGS="$LDFLAGS"
18892    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18893
18894    save_LIBS="$LIBS"
18895    LIBS="$lt_cv_dlopen_libs $LIBS"
18896
18897    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18898echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18899if test "${lt_cv_dlopen_self+set}" = set; then
18900  echo $ECHO_N "(cached) $ECHO_C" >&6
18901else
18902  	  if test "$cross_compiling" = yes; then :
18903  lt_cv_dlopen_self=cross
18904else
18905  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18906  lt_status=$lt_dlunknown
18907  cat > conftest.$ac_ext <<EOF
18908#line 18908 "configure"
18909#include "confdefs.h"
18910
18911#if HAVE_DLFCN_H
18912#include <dlfcn.h>
18913#endif
18914
18915#include <stdio.h>
18916
18917#ifdef RTLD_GLOBAL
18918#  define LT_DLGLOBAL		RTLD_GLOBAL
18919#else
18920#  ifdef DL_GLOBAL
18921#    define LT_DLGLOBAL		DL_GLOBAL
18922#  else
18923#    define LT_DLGLOBAL		0
18924#  endif
18925#endif
18926
18927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18928   find out it does not work in some platform. */
18929#ifndef LT_DLLAZY_OR_NOW
18930#  ifdef RTLD_LAZY
18931#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18932#  else
18933#    ifdef DL_LAZY
18934#      define LT_DLLAZY_OR_NOW		DL_LAZY
18935#    else
18936#      ifdef RTLD_NOW
18937#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18938#      else
18939#        ifdef DL_NOW
18940#          define LT_DLLAZY_OR_NOW	DL_NOW
18941#        else
18942#          define LT_DLLAZY_OR_NOW	0
18943#        endif
18944#      endif
18945#    endif
18946#  endif
18947#endif
18948
18949#ifdef __cplusplus
18950extern "C" void exit (int);
18951#endif
18952
18953void fnord() { int i=42;}
18954int main ()
18955{
18956  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18957  int status = $lt_dlunknown;
18958
18959  if (self)
18960    {
18961      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18962      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18963      /* dlclose (self); */
18964    }
18965
18966    exit (status);
18967}
18968EOF
18969  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970  (eval $ac_link) 2>&5
18971  ac_status=$?
18972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18974    (./conftest; exit; ) >&5 2>/dev/null
18975    lt_status=$?
18976    case x$lt_status in
18977      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18978      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18979      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18980    esac
18981  else :
18982    # compilation failed
18983    lt_cv_dlopen_self=no
18984  fi
18985fi
18986rm -fr conftest*
18987
18988
18989fi
18990echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18991echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18992
18993    if test "x$lt_cv_dlopen_self" = xyes; then
18994      LDFLAGS="$LDFLAGS $link_static_flag"
18995      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18996echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18997if test "${lt_cv_dlopen_self_static+set}" = set; then
18998  echo $ECHO_N "(cached) $ECHO_C" >&6
18999else
19000  	  if test "$cross_compiling" = yes; then :
19001  lt_cv_dlopen_self_static=cross
19002else
19003  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19004  lt_status=$lt_dlunknown
19005  cat > conftest.$ac_ext <<EOF
19006#line 19006 "configure"
19007#include "confdefs.h"
19008
19009#if HAVE_DLFCN_H
19010#include <dlfcn.h>
19011#endif
19012
19013#include <stdio.h>
19014
19015#ifdef RTLD_GLOBAL
19016#  define LT_DLGLOBAL		RTLD_GLOBAL
19017#else
19018#  ifdef DL_GLOBAL
19019#    define LT_DLGLOBAL		DL_GLOBAL
19020#  else
19021#    define LT_DLGLOBAL		0
19022#  endif
19023#endif
19024
19025/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19026   find out it does not work in some platform. */
19027#ifndef LT_DLLAZY_OR_NOW
19028#  ifdef RTLD_LAZY
19029#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19030#  else
19031#    ifdef DL_LAZY
19032#      define LT_DLLAZY_OR_NOW		DL_LAZY
19033#    else
19034#      ifdef RTLD_NOW
19035#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19036#      else
19037#        ifdef DL_NOW
19038#          define LT_DLLAZY_OR_NOW	DL_NOW
19039#        else
19040#          define LT_DLLAZY_OR_NOW	0
19041#        endif
19042#      endif
19043#    endif
19044#  endif
19045#endif
19046
19047#ifdef __cplusplus
19048extern "C" void exit (int);
19049#endif
19050
19051void fnord() { int i=42;}
19052int main ()
19053{
19054  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19055  int status = $lt_dlunknown;
19056
19057  if (self)
19058    {
19059      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19060      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19061      /* dlclose (self); */
19062    }
19063
19064    exit (status);
19065}
19066EOF
19067  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19068  (eval $ac_link) 2>&5
19069  ac_status=$?
19070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19072    (./conftest; exit; ) >&5 2>/dev/null
19073    lt_status=$?
19074    case x$lt_status in
19075      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19076      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19077      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19078    esac
19079  else :
19080    # compilation failed
19081    lt_cv_dlopen_self_static=no
19082  fi
19083fi
19084rm -fr conftest*
19085
19086
19087fi
19088echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19089echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19090    fi
19091
19092    CPPFLAGS="$save_CPPFLAGS"
19093    LDFLAGS="$save_LDFLAGS"
19094    LIBS="$save_LIBS"
19095    ;;
19096  esac
19097
19098  case $lt_cv_dlopen_self in
19099  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19100  *) enable_dlopen_self=unknown ;;
19101  esac
19102
19103  case $lt_cv_dlopen_self_static in
19104  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19105  *) enable_dlopen_self_static=unknown ;;
19106  esac
19107fi
19108
19109
19110# The else clause should only fire when bootstrapping the
19111# libtool distribution, otherwise you forgot to ship ltmain.sh
19112# with your package, and you will get complaints that there are
19113# no rules to generate ltmain.sh.
19114if test -f "$ltmain"; then
19115  # See if we are running on zsh, and set the options which allow our commands through
19116  # without removal of \ escapes.
19117  if test -n "${ZSH_VERSION+set}" ; then
19118    setopt NO_GLOB_SUBST
19119  fi
19120  # Now quote all the things that may contain metacharacters while being
19121  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19122  # variables and quote the copies for generation of the libtool script.
19123  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19124    SED SHELL STRIP \
19125    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19126    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19127    deplibs_check_method reload_flag reload_cmds need_locks \
19128    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19129    lt_cv_sys_global_symbol_to_c_name_address \
19130    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19131    old_postinstall_cmds old_postuninstall_cmds \
19132    compiler_GCJ \
19133    CC_GCJ \
19134    LD_GCJ \
19135    lt_prog_compiler_wl_GCJ \
19136    lt_prog_compiler_pic_GCJ \
19137    lt_prog_compiler_static_GCJ \
19138    lt_prog_compiler_no_builtin_flag_GCJ \
19139    export_dynamic_flag_spec_GCJ \
19140    thread_safe_flag_spec_GCJ \
19141    whole_archive_flag_spec_GCJ \
19142    enable_shared_with_static_runtimes_GCJ \
19143    old_archive_cmds_GCJ \
19144    old_archive_from_new_cmds_GCJ \
19145    predep_objects_GCJ \
19146    postdep_objects_GCJ \
19147    predeps_GCJ \
19148    postdeps_GCJ \
19149    compiler_lib_search_path_GCJ \
19150    archive_cmds_GCJ \
19151    archive_expsym_cmds_GCJ \
19152    postinstall_cmds_GCJ \
19153    postuninstall_cmds_GCJ \
19154    old_archive_from_expsyms_cmds_GCJ \
19155    allow_undefined_flag_GCJ \
19156    no_undefined_flag_GCJ \
19157    export_symbols_cmds_GCJ \
19158    hardcode_libdir_flag_spec_GCJ \
19159    hardcode_libdir_flag_spec_ld_GCJ \
19160    hardcode_libdir_separator_GCJ \
19161    hardcode_automatic_GCJ \
19162    module_cmds_GCJ \
19163    module_expsym_cmds_GCJ \
19164    lt_cv_prog_compiler_c_o_GCJ \
19165    exclude_expsyms_GCJ \
19166    include_expsyms_GCJ; do
19167
19168    case $var in
19169    old_archive_cmds_GCJ | \
19170    old_archive_from_new_cmds_GCJ | \
19171    archive_cmds_GCJ | \
19172    archive_expsym_cmds_GCJ | \
19173    module_cmds_GCJ | \
19174    module_expsym_cmds_GCJ | \
19175    old_archive_from_expsyms_cmds_GCJ | \
19176    export_symbols_cmds_GCJ | \
19177    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19178    postinstall_cmds | postuninstall_cmds | \
19179    old_postinstall_cmds | old_postuninstall_cmds | \
19180    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19181      # Double-quote double-evaled strings.
19182      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19183      ;;
19184    *)
19185      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19186      ;;
19187    esac
19188  done
19189
19190  case $lt_echo in
19191  *'\$0 --fallback-echo"')
19192    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19193    ;;
19194  esac
19195
19196cfgfile="$ofile"
19197
19198  cat <<__EOF__ >> "$cfgfile"
19199# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19200
19201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19202
19203# Shell to use when invoking shell scripts.
19204SHELL=$lt_SHELL
19205
19206# Whether or not to build shared libraries.
19207build_libtool_libs=$enable_shared
19208
19209# Whether or not to build static libraries.
19210build_old_libs=$enable_static
19211
19212# Whether or not to add -lc for building shared libraries.
19213build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19214
19215# Whether or not to disallow shared libs when runtime libs are static
19216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19217
19218# Whether or not to optimize for fast installation.
19219fast_install=$enable_fast_install
19220
19221# The host system.
19222host_alias=$host_alias
19223host=$host
19224host_os=$host_os
19225
19226# The build system.
19227build_alias=$build_alias
19228build=$build
19229build_os=$build_os
19230
19231# An echo program that does not interpret backslashes.
19232echo=$lt_echo
19233
19234# The archiver.
19235AR=$lt_AR
19236AR_FLAGS=$lt_AR_FLAGS
19237
19238# A C compiler.
19239LTCC=$lt_LTCC
19240
19241# A language-specific compiler.
19242CC=$lt_compiler_GCJ
19243
19244# Is the compiler the GNU C compiler?
19245with_gcc=$GCC_GCJ
19246
19247# An ERE matcher.
19248EGREP=$lt_EGREP
19249
19250# The linker used to build libraries.
19251LD=$lt_LD_GCJ
19252
19253# Whether we need hard or soft links.
19254LN_S=$lt_LN_S
19255
19256# A BSD-compatible nm program.
19257NM=$lt_NM
19258
19259# A symbol stripping program
19260STRIP=$lt_STRIP
19261
19262# Used to examine libraries when file_magic_cmd begins "file"
19263MAGIC_CMD=$MAGIC_CMD
19264
19265# Used on cygwin: DLL creation program.
19266DLLTOOL="$DLLTOOL"
19267
19268# Used on cygwin: object dumper.
19269OBJDUMP="$OBJDUMP"
19270
19271# Used on cygwin: assembler.
19272AS="$AS"
19273
19274# The name of the directory that contains temporary libtool files.
19275objdir=$objdir
19276
19277# How to create reloadable object files.
19278reload_flag=$lt_reload_flag
19279reload_cmds=$lt_reload_cmds
19280
19281# How to pass a linker flag through the compiler.
19282wl=$lt_lt_prog_compiler_wl_GCJ
19283
19284# Object file suffix (normally "o").
19285objext="$ac_objext"
19286
19287# Old archive suffix (normally "a").
19288libext="$libext"
19289
19290# Shared library suffix (normally ".so").
19291shrext_cmds='$shrext_cmds'
19292
19293# Executable file suffix (normally "").
19294exeext="$exeext"
19295
19296# Additional compiler flags for building library objects.
19297pic_flag=$lt_lt_prog_compiler_pic_GCJ
19298pic_mode=$pic_mode
19299
19300# What is the maximum length of a command?
19301max_cmd_len=$lt_cv_sys_max_cmd_len
19302
19303# Does compiler simultaneously support -c and -o options?
19304compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19305
19306# Must we lock files when doing compilation?
19307need_locks=$lt_need_locks
19308
19309# Do we need the lib prefix for modules?
19310need_lib_prefix=$need_lib_prefix
19311
19312# Do we need a version for libraries?
19313need_version=$need_version
19314
19315# Whether dlopen is supported.
19316dlopen_support=$enable_dlopen
19317
19318# Whether dlopen of programs is supported.
19319dlopen_self=$enable_dlopen_self
19320
19321# Whether dlopen of statically linked programs is supported.
19322dlopen_self_static=$enable_dlopen_self_static
19323
19324# Compiler flag to prevent dynamic linking.
19325link_static_flag=$lt_lt_prog_compiler_static_GCJ
19326
19327# Compiler flag to turn off builtin functions.
19328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19329
19330# Compiler flag to allow reflexive dlopens.
19331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19332
19333# Compiler flag to generate shared objects directly from archives.
19334whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19335
19336# Compiler flag to generate thread-safe objects.
19337thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19338
19339# Library versioning type.
19340version_type=$version_type
19341
19342# Format of library name prefix.
19343libname_spec=$lt_libname_spec
19344
19345# List of archive names.  First name is the real one, the rest are links.
19346# The last name is the one that the linker finds with -lNAME.
19347library_names_spec=$lt_library_names_spec
19348
19349# The coded name of the library, if different from the real name.
19350soname_spec=$lt_soname_spec
19351
19352# Commands used to build and install an old-style archive.
19353RANLIB=$lt_RANLIB
19354old_archive_cmds=$lt_old_archive_cmds_GCJ
19355old_postinstall_cmds=$lt_old_postinstall_cmds
19356old_postuninstall_cmds=$lt_old_postuninstall_cmds
19357
19358# Create an old-style archive from a shared archive.
19359old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19360
19361# Create a temporary old-style archive to link instead of a shared archive.
19362old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19363
19364# Commands used to build and install a shared archive.
19365archive_cmds=$lt_archive_cmds_GCJ
19366archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19367postinstall_cmds=$lt_postinstall_cmds
19368postuninstall_cmds=$lt_postuninstall_cmds
19369
19370# Commands used to build a loadable module (assumed same as above if empty)
19371module_cmds=$lt_module_cmds_GCJ
19372module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19373
19374# Commands to strip libraries.
19375old_striplib=$lt_old_striplib
19376striplib=$lt_striplib
19377
19378# Dependencies to place before the objects being linked to create a
19379# shared library.
19380predep_objects=$lt_predep_objects_GCJ
19381
19382# Dependencies to place after the objects being linked to create a
19383# shared library.
19384postdep_objects=$lt_postdep_objects_GCJ
19385
19386# Dependencies to place before the objects being linked to create a
19387# shared library.
19388predeps=$lt_predeps_GCJ
19389
19390# Dependencies to place after the objects being linked to create a
19391# shared library.
19392postdeps=$lt_postdeps_GCJ
19393
19394# The library search path used internally by the compiler when linking
19395# a shared library.
19396compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19397
19398# Method to check whether dependent libraries are shared objects.
19399deplibs_check_method=$lt_deplibs_check_method
19400
19401# Command to use when deplibs_check_method == file_magic.
19402file_magic_cmd=$lt_file_magic_cmd
19403
19404# Flag that allows shared libraries with undefined symbols to be built.
19405allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19406
19407# Flag that forces no undefined symbols.
19408no_undefined_flag=$lt_no_undefined_flag_GCJ
19409
19410# Commands used to finish a libtool library installation in a directory.
19411finish_cmds=$lt_finish_cmds
19412
19413# Same as above, but a single script fragment to be evaled but not shown.
19414finish_eval=$lt_finish_eval
19415
19416# Take the output of nm and produce a listing of raw symbols and C names.
19417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19418
19419# Transform the output of nm in a proper C declaration
19420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19421
19422# Transform the output of nm in a C name address pair
19423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19424
19425# This is the shared library runtime path variable.
19426runpath_var=$runpath_var
19427
19428# This is the shared library path variable.
19429shlibpath_var=$shlibpath_var
19430
19431# Is shlibpath searched before the hard-coded library search path?
19432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19433
19434# How to hardcode a shared library path into an executable.
19435hardcode_action=$hardcode_action_GCJ
19436
19437# Whether we should hardcode library paths into libraries.
19438hardcode_into_libs=$hardcode_into_libs
19439
19440# Flag to hardcode \$libdir into a binary during linking.
19441# This must work even if \$libdir does not exist.
19442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19443
19444# If ld is used when linking, flag to hardcode \$libdir into
19445# a binary during linking. This must work even if \$libdir does
19446# not exist.
19447hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19448
19449# Whether we need a single -rpath flag with a separated argument.
19450hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19451
19452# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19453# resulting binary.
19454hardcode_direct=$hardcode_direct_GCJ
19455
19456# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19457# resulting binary.
19458hardcode_minus_L=$hardcode_minus_L_GCJ
19459
19460# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19461# the resulting binary.
19462hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19463
19464# Set to yes if building a shared library automatically hardcodes DIR into the library
19465# and all subsequent libraries and executables linked against it.
19466hardcode_automatic=$hardcode_automatic_GCJ
19467
19468# Variables whose values should be saved in libtool wrapper scripts and
19469# restored at relink time.
19470variables_saved_for_relink="$variables_saved_for_relink"
19471
19472# Whether libtool must link a program against all its dependency libraries.
19473link_all_deplibs=$link_all_deplibs_GCJ
19474
19475# Compile-time system search path for libraries
19476sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19477
19478# Run-time system search path for libraries
19479sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19480
19481# Fix the shell variable \$srcfile for the compiler.
19482fix_srcfile_path="$fix_srcfile_path_GCJ"
19483
19484# Set to yes if exported symbols are required.
19485always_export_symbols=$always_export_symbols_GCJ
19486
19487# The commands to list exported symbols.
19488export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19489
19490# The commands to extract the exported symbol list from a shared archive.
19491extract_expsyms_cmds=$lt_extract_expsyms_cmds
19492
19493# Symbols that should not be listed in the preloaded symbols.
19494exclude_expsyms=$lt_exclude_expsyms_GCJ
19495
19496# Symbols that must always be exported.
19497include_expsyms=$lt_include_expsyms_GCJ
19498
19499# ### END LIBTOOL TAG CONFIG: $tagname
19500
19501__EOF__
19502
19503
19504else
19505  # If there is no Makefile yet, we rely on a make rule to execute
19506  # `config.status --recheck' to rerun these tests and create the
19507  # libtool script then.
19508  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19509  if test -f "$ltmain_in"; then
19510    test -f Makefile && make "$ltmain"
19511  fi
19512fi
19513
19514
19515ac_ext=c
19516ac_cpp='$CPP $CPPFLAGS'
19517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519ac_compiler_gnu=$ac_cv_c_compiler_gnu
19520
19521CC="$lt_save_CC"
19522
19523	else
19524	  tagname=""
19525	fi
19526	;;
19527
19528      RC)
19529
19530
19531
19532# Source file extension for RC test sources.
19533ac_ext=rc
19534
19535# Object file extension for compiled RC test sources.
19536objext=o
19537objext_RC=$objext
19538
19539# Code to be used in simple compile tests
19540lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19541
19542# Code to be used in simple link tests
19543lt_simple_link_test_code="$lt_simple_compile_test_code"
19544
19545# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19546
19547# If no C compiler was specified, use CC.
19548LTCC=${LTCC-"$CC"}
19549
19550# Allow CC to be a program name with arguments.
19551compiler=$CC
19552
19553
19554# save warnings/boilerplate of simple test code
19555ac_outfile=conftest.$ac_objext
19556printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19558_lt_compiler_boilerplate=`cat conftest.err`
19559$rm conftest*
19560
19561ac_outfile=conftest.$ac_objext
19562printf "$lt_simple_link_test_code" >conftest.$ac_ext
19563eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19564_lt_linker_boilerplate=`cat conftest.err`
19565$rm conftest*
19566
19567
19568# Allow CC to be a program name with arguments.
19569lt_save_CC="$CC"
19570CC=${RC-"windres"}
19571compiler=$CC
19572compiler_RC=$CC
19573for cc_temp in $compiler""; do
19574  case $cc_temp in
19575    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19576    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19577    \-*) ;;
19578    *) break;;
19579  esac
19580done
19581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19582
19583lt_cv_prog_compiler_c_o_RC=yes
19584
19585# The else clause should only fire when bootstrapping the
19586# libtool distribution, otherwise you forgot to ship ltmain.sh
19587# with your package, and you will get complaints that there are
19588# no rules to generate ltmain.sh.
19589if test -f "$ltmain"; then
19590  # See if we are running on zsh, and set the options which allow our commands through
19591  # without removal of \ escapes.
19592  if test -n "${ZSH_VERSION+set}" ; then
19593    setopt NO_GLOB_SUBST
19594  fi
19595  # Now quote all the things that may contain metacharacters while being
19596  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19597  # variables and quote the copies for generation of the libtool script.
19598  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19599    SED SHELL STRIP \
19600    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602    deplibs_check_method reload_flag reload_cmds need_locks \
19603    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604    lt_cv_sys_global_symbol_to_c_name_address \
19605    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606    old_postinstall_cmds old_postuninstall_cmds \
19607    compiler_RC \
19608    CC_RC \
19609    LD_RC \
19610    lt_prog_compiler_wl_RC \
19611    lt_prog_compiler_pic_RC \
19612    lt_prog_compiler_static_RC \
19613    lt_prog_compiler_no_builtin_flag_RC \
19614    export_dynamic_flag_spec_RC \
19615    thread_safe_flag_spec_RC \
19616    whole_archive_flag_spec_RC \
19617    enable_shared_with_static_runtimes_RC \
19618    old_archive_cmds_RC \
19619    old_archive_from_new_cmds_RC \
19620    predep_objects_RC \
19621    postdep_objects_RC \
19622    predeps_RC \
19623    postdeps_RC \
19624    compiler_lib_search_path_RC \
19625    archive_cmds_RC \
19626    archive_expsym_cmds_RC \
19627    postinstall_cmds_RC \
19628    postuninstall_cmds_RC \
19629    old_archive_from_expsyms_cmds_RC \
19630    allow_undefined_flag_RC \
19631    no_undefined_flag_RC \
19632    export_symbols_cmds_RC \
19633    hardcode_libdir_flag_spec_RC \
19634    hardcode_libdir_flag_spec_ld_RC \
19635    hardcode_libdir_separator_RC \
19636    hardcode_automatic_RC \
19637    module_cmds_RC \
19638    module_expsym_cmds_RC \
19639    lt_cv_prog_compiler_c_o_RC \
19640    exclude_expsyms_RC \
19641    include_expsyms_RC; do
19642
19643    case $var in
19644    old_archive_cmds_RC | \
19645    old_archive_from_new_cmds_RC | \
19646    archive_cmds_RC | \
19647    archive_expsym_cmds_RC | \
19648    module_cmds_RC | \
19649    module_expsym_cmds_RC | \
19650    old_archive_from_expsyms_cmds_RC | \
19651    export_symbols_cmds_RC | \
19652    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653    postinstall_cmds | postuninstall_cmds | \
19654    old_postinstall_cmds | old_postuninstall_cmds | \
19655    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656      # Double-quote double-evaled strings.
19657      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19658      ;;
19659    *)
19660      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661      ;;
19662    esac
19663  done
19664
19665  case $lt_echo in
19666  *'\$0 --fallback-echo"')
19667    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668    ;;
19669  esac
19670
19671cfgfile="$ofile"
19672
19673  cat <<__EOF__ >> "$cfgfile"
19674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19675
19676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19677
19678# Shell to use when invoking shell scripts.
19679SHELL=$lt_SHELL
19680
19681# Whether or not to build shared libraries.
19682build_libtool_libs=$enable_shared
19683
19684# Whether or not to build static libraries.
19685build_old_libs=$enable_static
19686
19687# Whether or not to add -lc for building shared libraries.
19688build_libtool_need_lc=$archive_cmds_need_lc_RC
19689
19690# Whether or not to disallow shared libs when runtime libs are static
19691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19692
19693# Whether or not to optimize for fast installation.
19694fast_install=$enable_fast_install
19695
19696# The host system.
19697host_alias=$host_alias
19698host=$host
19699host_os=$host_os
19700
19701# The build system.
19702build_alias=$build_alias
19703build=$build
19704build_os=$build_os
19705
19706# An echo program that does not interpret backslashes.
19707echo=$lt_echo
19708
19709# The archiver.
19710AR=$lt_AR
19711AR_FLAGS=$lt_AR_FLAGS
19712
19713# A C compiler.
19714LTCC=$lt_LTCC
19715
19716# A language-specific compiler.
19717CC=$lt_compiler_RC
19718
19719# Is the compiler the GNU C compiler?
19720with_gcc=$GCC_RC
19721
19722# An ERE matcher.
19723EGREP=$lt_EGREP
19724
19725# The linker used to build libraries.
19726LD=$lt_LD_RC
19727
19728# Whether we need hard or soft links.
19729LN_S=$lt_LN_S
19730
19731# A BSD-compatible nm program.
19732NM=$lt_NM
19733
19734# A symbol stripping program
19735STRIP=$lt_STRIP
19736
19737# Used to examine libraries when file_magic_cmd begins "file"
19738MAGIC_CMD=$MAGIC_CMD
19739
19740# Used on cygwin: DLL creation program.
19741DLLTOOL="$DLLTOOL"
19742
19743# Used on cygwin: object dumper.
19744OBJDUMP="$OBJDUMP"
19745
19746# Used on cygwin: assembler.
19747AS="$AS"
19748
19749# The name of the directory that contains temporary libtool files.
19750objdir=$objdir
19751
19752# How to create reloadable object files.
19753reload_flag=$lt_reload_flag
19754reload_cmds=$lt_reload_cmds
19755
19756# How to pass a linker flag through the compiler.
19757wl=$lt_lt_prog_compiler_wl_RC
19758
19759# Object file suffix (normally "o").
19760objext="$ac_objext"
19761
19762# Old archive suffix (normally "a").
19763libext="$libext"
19764
19765# Shared library suffix (normally ".so").
19766shrext_cmds='$shrext_cmds'
19767
19768# Executable file suffix (normally "").
19769exeext="$exeext"
19770
19771# Additional compiler flags for building library objects.
19772pic_flag=$lt_lt_prog_compiler_pic_RC
19773pic_mode=$pic_mode
19774
19775# What is the maximum length of a command?
19776max_cmd_len=$lt_cv_sys_max_cmd_len
19777
19778# Does compiler simultaneously support -c and -o options?
19779compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19780
19781# Must we lock files when doing compilation?
19782need_locks=$lt_need_locks
19783
19784# Do we need the lib prefix for modules?
19785need_lib_prefix=$need_lib_prefix
19786
19787# Do we need a version for libraries?
19788need_version=$need_version
19789
19790# Whether dlopen is supported.
19791dlopen_support=$enable_dlopen
19792
19793# Whether dlopen of programs is supported.
19794dlopen_self=$enable_dlopen_self
19795
19796# Whether dlopen of statically linked programs is supported.
19797dlopen_self_static=$enable_dlopen_self_static
19798
19799# Compiler flag to prevent dynamic linking.
19800link_static_flag=$lt_lt_prog_compiler_static_RC
19801
19802# Compiler flag to turn off builtin functions.
19803no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19804
19805# Compiler flag to allow reflexive dlopens.
19806export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19807
19808# Compiler flag to generate shared objects directly from archives.
19809whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19810
19811# Compiler flag to generate thread-safe objects.
19812thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19813
19814# Library versioning type.
19815version_type=$version_type
19816
19817# Format of library name prefix.
19818libname_spec=$lt_libname_spec
19819
19820# List of archive names.  First name is the real one, the rest are links.
19821# The last name is the one that the linker finds with -lNAME.
19822library_names_spec=$lt_library_names_spec
19823
19824# The coded name of the library, if different from the real name.
19825soname_spec=$lt_soname_spec
19826
19827# Commands used to build and install an old-style archive.
19828RANLIB=$lt_RANLIB
19829old_archive_cmds=$lt_old_archive_cmds_RC
19830old_postinstall_cmds=$lt_old_postinstall_cmds
19831old_postuninstall_cmds=$lt_old_postuninstall_cmds
19832
19833# Create an old-style archive from a shared archive.
19834old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19835
19836# Create a temporary old-style archive to link instead of a shared archive.
19837old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19838
19839# Commands used to build and install a shared archive.
19840archive_cmds=$lt_archive_cmds_RC
19841archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19842postinstall_cmds=$lt_postinstall_cmds
19843postuninstall_cmds=$lt_postuninstall_cmds
19844
19845# Commands used to build a loadable module (assumed same as above if empty)
19846module_cmds=$lt_module_cmds_RC
19847module_expsym_cmds=$lt_module_expsym_cmds_RC
19848
19849# Commands to strip libraries.
19850old_striplib=$lt_old_striplib
19851striplib=$lt_striplib
19852
19853# Dependencies to place before the objects being linked to create a
19854# shared library.
19855predep_objects=$lt_predep_objects_RC
19856
19857# Dependencies to place after the objects being linked to create a
19858# shared library.
19859postdep_objects=$lt_postdep_objects_RC
19860
19861# Dependencies to place before the objects being linked to create a
19862# shared library.
19863predeps=$lt_predeps_RC
19864
19865# Dependencies to place after the objects being linked to create a
19866# shared library.
19867postdeps=$lt_postdeps_RC
19868
19869# The library search path used internally by the compiler when linking
19870# a shared library.
19871compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19872
19873# Method to check whether dependent libraries are shared objects.
19874deplibs_check_method=$lt_deplibs_check_method
19875
19876# Command to use when deplibs_check_method == file_magic.
19877file_magic_cmd=$lt_file_magic_cmd
19878
19879# Flag that allows shared libraries with undefined symbols to be built.
19880allow_undefined_flag=$lt_allow_undefined_flag_RC
19881
19882# Flag that forces no undefined symbols.
19883no_undefined_flag=$lt_no_undefined_flag_RC
19884
19885# Commands used to finish a libtool library installation in a directory.
19886finish_cmds=$lt_finish_cmds
19887
19888# Same as above, but a single script fragment to be evaled but not shown.
19889finish_eval=$lt_finish_eval
19890
19891# Take the output of nm and produce a listing of raw symbols and C names.
19892global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19893
19894# Transform the output of nm in a proper C declaration
19895global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19896
19897# Transform the output of nm in a C name address pair
19898global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19899
19900# This is the shared library runtime path variable.
19901runpath_var=$runpath_var
19902
19903# This is the shared library path variable.
19904shlibpath_var=$shlibpath_var
19905
19906# Is shlibpath searched before the hard-coded library search path?
19907shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19908
19909# How to hardcode a shared library path into an executable.
19910hardcode_action=$hardcode_action_RC
19911
19912# Whether we should hardcode library paths into libraries.
19913hardcode_into_libs=$hardcode_into_libs
19914
19915# Flag to hardcode \$libdir into a binary during linking.
19916# This must work even if \$libdir does not exist.
19917hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19918
19919# If ld is used when linking, flag to hardcode \$libdir into
19920# a binary during linking. This must work even if \$libdir does
19921# not exist.
19922hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19923
19924# Whether we need a single -rpath flag with a separated argument.
19925hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19926
19927# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19928# resulting binary.
19929hardcode_direct=$hardcode_direct_RC
19930
19931# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19932# resulting binary.
19933hardcode_minus_L=$hardcode_minus_L_RC
19934
19935# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19936# the resulting binary.
19937hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19938
19939# Set to yes if building a shared library automatically hardcodes DIR into the library
19940# and all subsequent libraries and executables linked against it.
19941hardcode_automatic=$hardcode_automatic_RC
19942
19943# Variables whose values should be saved in libtool wrapper scripts and
19944# restored at relink time.
19945variables_saved_for_relink="$variables_saved_for_relink"
19946
19947# Whether libtool must link a program against all its dependency libraries.
19948link_all_deplibs=$link_all_deplibs_RC
19949
19950# Compile-time system search path for libraries
19951sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19952
19953# Run-time system search path for libraries
19954sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19955
19956# Fix the shell variable \$srcfile for the compiler.
19957fix_srcfile_path="$fix_srcfile_path_RC"
19958
19959# Set to yes if exported symbols are required.
19960always_export_symbols=$always_export_symbols_RC
19961
19962# The commands to list exported symbols.
19963export_symbols_cmds=$lt_export_symbols_cmds_RC
19964
19965# The commands to extract the exported symbol list from a shared archive.
19966extract_expsyms_cmds=$lt_extract_expsyms_cmds
19967
19968# Symbols that should not be listed in the preloaded symbols.
19969exclude_expsyms=$lt_exclude_expsyms_RC
19970
19971# Symbols that must always be exported.
19972include_expsyms=$lt_include_expsyms_RC
19973
19974# ### END LIBTOOL TAG CONFIG: $tagname
19975
19976__EOF__
19977
19978
19979else
19980  # If there is no Makefile yet, we rely on a make rule to execute
19981  # `config.status --recheck' to rerun these tests and create the
19982  # libtool script then.
19983  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19984  if test -f "$ltmain_in"; then
19985    test -f Makefile && make "$ltmain"
19986  fi
19987fi
19988
19989
19990ac_ext=c
19991ac_cpp='$CPP $CPPFLAGS'
19992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19994ac_compiler_gnu=$ac_cv_c_compiler_gnu
19995
19996CC="$lt_save_CC"
19997
19998	;;
19999
20000      *)
20001	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20002echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20003   { (exit 1); exit 1; }; }
20004	;;
20005      esac
20006
20007      # Append the new tag name to the list of available tags.
20008      if test -n "$tagname" ; then
20009      available_tags="$available_tags $tagname"
20010    fi
20011    fi
20012  done
20013  IFS="$lt_save_ifs"
20014
20015  # Now substitute the updated list of available tags.
20016  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20017    mv "${ofile}T" "$ofile"
20018    chmod +x "$ofile"
20019  else
20020    rm -f "${ofile}T"
20021    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20022echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20023   { (exit 1); exit 1; }; }
20024  fi
20025fi
20026
20027
20028
20029# This can be used to rebuild libtool when needed
20030LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20031
20032# Always use our own libtool.
20033LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20034
20035# Prevent multiple expansion
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
20059  STATIC=-static
20060else
20061  STATIC=
20062fi
20063
20064
20065
20066## ---------------------------- ##
20067## C headers required by mdemo. ##
20068## ---------------------------- ##
20069
20070for ac_header in math.h
20071do
20072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20073if eval "test \"\${$as_ac_Header+set}\" = set"; then
20074  echo "$as_me:$LINENO: checking for $ac_header" >&5
20075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20076if eval "test \"\${$as_ac_Header+set}\" = set"; then
20077  echo $ECHO_N "(cached) $ECHO_C" >&6
20078fi
20079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20081else
20082  # Is the header compilable?
20083echo "$as_me:$LINENO: checking $ac_header usability" >&5
20084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20085cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h.  */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h.  */
20091$ac_includes_default
20092#include <$ac_header>
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096  (eval $ac_compile) 2>conftest.er1
20097  ac_status=$?
20098  grep -v '^ *+' conftest.er1 >conftest.err
20099  rm -f conftest.er1
20100  cat conftest.err >&5
20101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102  (exit $ac_status); } &&
20103	 { ac_try='test -z "$ac_c_werror_flag"
20104			 || test ! -s conftest.err'
20105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106  (eval $ac_try) 2>&5
20107  ac_status=$?
20108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109  (exit $ac_status); }; } &&
20110	 { ac_try='test -s conftest.$ac_objext'
20111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112  (eval $ac_try) 2>&5
20113  ac_status=$?
20114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115  (exit $ac_status); }; }; then
20116  ac_header_compiler=yes
20117else
20118  echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121ac_header_compiler=no
20122fi
20123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20125echo "${ECHO_T}$ac_header_compiler" >&6
20126
20127# Is the header present?
20128echo "$as_me:$LINENO: checking $ac_header presence" >&5
20129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20130cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h.  */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h.  */
20136#include <$ac_header>
20137_ACEOF
20138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20139  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20140  ac_status=$?
20141  grep -v '^ *+' conftest.er1 >conftest.err
20142  rm -f conftest.er1
20143  cat conftest.err >&5
20144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145  (exit $ac_status); } >/dev/null; then
20146  if test -s conftest.err; then
20147    ac_cpp_err=$ac_c_preproc_warn_flag
20148    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20149  else
20150    ac_cpp_err=
20151  fi
20152else
20153  ac_cpp_err=yes
20154fi
20155if test -z "$ac_cpp_err"; then
20156  ac_header_preproc=yes
20157else
20158  echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161  ac_header_preproc=no
20162fi
20163rm -f conftest.err conftest.$ac_ext
20164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20165echo "${ECHO_T}$ac_header_preproc" >&6
20166
20167# So?  What about this header?
20168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20169  yes:no: )
20170    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20172    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20174    ac_header_preproc=yes
20175    ;;
20176  no:yes:* )
20177    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20179    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20180echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20181    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20183    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20184echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20185    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20187    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20189    (
20190      cat <<\_ASBOX
20191## ---------------------------------- ##
20192## Report this to bug-libtool@gnu.org ##
20193## ---------------------------------- ##
20194_ASBOX
20195    ) |
20196      sed "s/^/$as_me: WARNING:     /" >&2
20197    ;;
20198esac
20199echo "$as_me:$LINENO: checking for $ac_header" >&5
20200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20201if eval "test \"\${$as_ac_Header+set}\" = set"; then
20202  echo $ECHO_N "(cached) $ECHO_C" >&6
20203else
20204  eval "$as_ac_Header=\$ac_header_preproc"
20205fi
20206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20208
20209fi
20210if test `eval echo '${'$as_ac_Header'}'` = yes; then
20211  cat >>confdefs.h <<_ACEOF
20212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20213_ACEOF
20214
20215fi
20216
20217done
20218
20219
20220
20221## ---------------------------- ##
20222## Libraries required by cdemo. ##
20223## ---------------------------- ##
20224LIBM=
20225case $host in
20226*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
20227  # These system don't have libm, or don't need it
20228  ;;
20229*-ncr-sysv4.3*)
20230  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20231echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20232if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20233  echo $ECHO_N "(cached) $ECHO_C" >&6
20234else
20235  ac_check_lib_save_LIBS=$LIBS
20236LIBS="-lmw  $LIBS"
20237cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h.  */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h.  */
20243
20244/* Override any gcc2 internal prototype to avoid an error.  */
20245#ifdef __cplusplus
20246extern "C"
20247#endif
20248/* We use char because int might match the return type of a gcc2
20249   builtin and then its argument prototype would still apply.  */
20250char _mwvalidcheckl ();
20251int
20252main ()
20253{
20254_mwvalidcheckl ();
20255  ;
20256  return 0;
20257}
20258_ACEOF
20259rm -f conftest.$ac_objext conftest$ac_exeext
20260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20261  (eval $ac_link) 2>conftest.er1
20262  ac_status=$?
20263  grep -v '^ *+' conftest.er1 >conftest.err
20264  rm -f conftest.er1
20265  cat conftest.err >&5
20266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267  (exit $ac_status); } &&
20268	 { ac_try='test -z "$ac_c_werror_flag"
20269			 || test ! -s conftest.err'
20270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271  (eval $ac_try) 2>&5
20272  ac_status=$?
20273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274  (exit $ac_status); }; } &&
20275	 { ac_try='test -s conftest$ac_exeext'
20276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277  (eval $ac_try) 2>&5
20278  ac_status=$?
20279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280  (exit $ac_status); }; }; then
20281  ac_cv_lib_mw__mwvalidcheckl=yes
20282else
20283  echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286ac_cv_lib_mw__mwvalidcheckl=no
20287fi
20288rm -f conftest.err conftest.$ac_objext \
20289      conftest$ac_exeext conftest.$ac_ext
20290LIBS=$ac_check_lib_save_LIBS
20291fi
20292echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20293echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20294if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20295  LIBM="-lmw"
20296fi
20297
20298  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20299echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20300if test "${ac_cv_lib_m_cos+set}" = set; then
20301  echo $ECHO_N "(cached) $ECHO_C" >&6
20302else
20303  ac_check_lib_save_LIBS=$LIBS
20304LIBS="-lm  $LIBS"
20305cat >conftest.$ac_ext <<_ACEOF
20306/* confdefs.h.  */
20307_ACEOF
20308cat confdefs.h >>conftest.$ac_ext
20309cat >>conftest.$ac_ext <<_ACEOF
20310/* end confdefs.h.  */
20311
20312/* Override any gcc2 internal prototype to avoid an error.  */
20313#ifdef __cplusplus
20314extern "C"
20315#endif
20316/* We use char because int might match the return type of a gcc2
20317   builtin and then its argument prototype would still apply.  */
20318char cos ();
20319int
20320main ()
20321{
20322cos ();
20323  ;
20324  return 0;
20325}
20326_ACEOF
20327rm -f conftest.$ac_objext conftest$ac_exeext
20328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329  (eval $ac_link) 2>conftest.er1
20330  ac_status=$?
20331  grep -v '^ *+' conftest.er1 >conftest.err
20332  rm -f conftest.er1
20333  cat conftest.err >&5
20334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335  (exit $ac_status); } &&
20336	 { ac_try='test -z "$ac_c_werror_flag"
20337			 || test ! -s conftest.err'
20338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339  (eval $ac_try) 2>&5
20340  ac_status=$?
20341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342  (exit $ac_status); }; } &&
20343	 { ac_try='test -s conftest$ac_exeext'
20344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345  (eval $ac_try) 2>&5
20346  ac_status=$?
20347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348  (exit $ac_status); }; }; then
20349  ac_cv_lib_m_cos=yes
20350else
20351  echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354ac_cv_lib_m_cos=no
20355fi
20356rm -f conftest.err conftest.$ac_objext \
20357      conftest$ac_exeext conftest.$ac_ext
20358LIBS=$ac_check_lib_save_LIBS
20359fi
20360echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20361echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20362if test $ac_cv_lib_m_cos = yes; then
20363  LIBM="$LIBM -lm"
20364fi
20365
20366  ;;
20367*)
20368  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20369echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20370if test "${ac_cv_lib_m_cos+set}" = set; then
20371  echo $ECHO_N "(cached) $ECHO_C" >&6
20372else
20373  ac_check_lib_save_LIBS=$LIBS
20374LIBS="-lm  $LIBS"
20375cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h.  */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h.  */
20381
20382/* Override any gcc2 internal prototype to avoid an error.  */
20383#ifdef __cplusplus
20384extern "C"
20385#endif
20386/* We use char because int might match the return type of a gcc2
20387   builtin and then its argument prototype would still apply.  */
20388char cos ();
20389int
20390main ()
20391{
20392cos ();
20393  ;
20394  return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext conftest$ac_exeext
20398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20399  (eval $ac_link) 2>conftest.er1
20400  ac_status=$?
20401  grep -v '^ *+' conftest.er1 >conftest.err
20402  rm -f conftest.er1
20403  cat conftest.err >&5
20404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405  (exit $ac_status); } &&
20406	 { ac_try='test -z "$ac_c_werror_flag"
20407			 || test ! -s conftest.err'
20408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409  (eval $ac_try) 2>&5
20410  ac_status=$?
20411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412  (exit $ac_status); }; } &&
20413	 { ac_try='test -s conftest$ac_exeext'
20414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415  (eval $ac_try) 2>&5
20416  ac_status=$?
20417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418  (exit $ac_status); }; }; then
20419  ac_cv_lib_m_cos=yes
20420else
20421  echo "$as_me: failed program was:" >&5
20422sed 's/^/| /' conftest.$ac_ext >&5
20423
20424ac_cv_lib_m_cos=no
20425fi
20426rm -f conftest.err conftest.$ac_objext \
20427      conftest$ac_exeext conftest.$ac_ext
20428LIBS=$ac_check_lib_save_LIBS
20429fi
20430echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20431echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20432if test $ac_cv_lib_m_cos = yes; then
20433  LIBM="-lm"
20434fi
20435
20436  ;;
20437esac
20438
20439
20440
20441
20442## -------- ##
20443## Outputs. ##
20444## -------- ##
20445          ac_config_files="$ac_config_files Makefile"
20446
20447cat >confcache <<\_ACEOF
20448# This file is a shell script that caches the results of configure
20449# tests run on this system so they can be shared between configure
20450# scripts and configure runs, see configure's option --config-cache.
20451# It is not useful on other systems.  If it contains results you don't
20452# want to keep, you may remove or edit it.
20453#
20454# config.status only pays attention to the cache file if you give it
20455# the --recheck option to rerun configure.
20456#
20457# `ac_cv_env_foo' variables (set or unset) will be overridden when
20458# loading this file, other *unset* `ac_cv_foo' will be assigned the
20459# following values.
20460
20461_ACEOF
20462
20463# The following way of writing the cache mishandles newlines in values,
20464# but we know of no workaround that is simple, portable, and efficient.
20465# So, don't put newlines in cache variables' values.
20466# Ultrix sh set writes to stderr and can't be redirected directly,
20467# and sets the high bit in the cache file unless we assign to the vars.
20468{
20469  (set) 2>&1 |
20470    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20471    *ac_space=\ *)
20472      # `set' does not quote correctly, so add quotes (double-quote
20473      # substitution turns \\\\ into \\, and sed turns \\ into \).
20474      sed -n \
20475	"s/'/'\\\\''/g;
20476	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20477      ;;
20478    *)
20479      # `set' quotes correctly as required by POSIX, so do not add quotes.
20480      sed -n \
20481	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20482      ;;
20483    esac;
20484} |
20485  sed '
20486     t clear
20487     : clear
20488     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20489     t end
20490     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20491     : end' >>confcache
20492if diff $cache_file confcache >/dev/null 2>&1; then :; else
20493  if test -w $cache_file; then
20494    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20495    cat confcache >$cache_file
20496  else
20497    echo "not updating unwritable cache $cache_file"
20498  fi
20499fi
20500rm -f confcache
20501
20502test "x$prefix" = xNONE && prefix=$ac_default_prefix
20503# Let make expand exec_prefix.
20504test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20505
20506# VPATH may cause trouble with some makes, so we remove $(srcdir),
20507# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20508# trailing colons and then remove the whole line if VPATH becomes empty
20509# (actually we leave an empty line to preserve line numbers).
20510if test "x$srcdir" = x.; then
20511  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20512s/:*\$(srcdir):*/:/;
20513s/:*\${srcdir}:*/:/;
20514s/:*@srcdir@:*/:/;
20515s/^\([^=]*=[	 ]*\):*/\1/;
20516s/:*$//;
20517s/^[^=]*=[	 ]*$//;
20518}'
20519fi
20520
20521# Transform confdefs.h into DEFS.
20522# Protect against shell expansion while executing Makefile rules.
20523# Protect against Makefile macro expansion.
20524#
20525# If the first sed substitution is executed (which looks for macros that
20526# take arguments), then we branch to the quote section.  Otherwise,
20527# look for a macro that doesn't take arguments.
20528cat >confdef2opt.sed <<\_ACEOF
20529t clear
20530: clear
20531s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20532t quote
20533s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20534t quote
20535d
20536: quote
20537s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20538s,\[,\\&,g
20539s,\],\\&,g
20540s,\$,$$,g
20541p
20542_ACEOF
20543# We use echo to avoid assuming a particular line-breaking character.
20544# The extra dot is to prevent the shell from consuming trailing
20545# line-breaks from the sub-command output.  A line-break within
20546# single-quotes doesn't work because, if this script is created in a
20547# platform that uses two characters for line-breaks (e.g., DOS), tr
20548# would break.
20549ac_LF_and_DOT=`echo; echo .`
20550DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20551rm -f confdef2opt.sed
20552
20553
20554ac_libobjs=
20555ac_ltlibobjs=
20556for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20557  # 1. Remove the extension, and $U if already installed.
20558  ac_i=`echo "$ac_i" |
20559	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20560  # 2. Add them.
20561  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20562  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20563done
20564LIBOBJS=$ac_libobjs
20565
20566LTLIBOBJS=$ac_ltlibobjs
20567
20568
20569if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20570  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20571Usually this means the macro was only invoked conditionally." >&5
20572echo "$as_me: error: conditional \"AMDEP\" was never defined.
20573Usually this means the macro was only invoked conditionally." >&2;}
20574   { (exit 1); exit 1; }; }
20575fi
20576if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20577  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20578Usually this means the macro was only invoked conditionally." >&5
20579echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20580Usually this means the macro was only invoked conditionally." >&2;}
20581   { (exit 1); exit 1; }; }
20582fi
20583if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20584  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20585Usually this means the macro was only invoked conditionally." >&5
20586echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20587Usually this means the macro was only invoked conditionally." >&2;}
20588   { (exit 1); exit 1; }; }
20589fi
20590
20591: ${CONFIG_STATUS=./config.status}
20592ac_clean_files_save=$ac_clean_files
20593ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20594{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20595echo "$as_me: creating $CONFIG_STATUS" >&6;}
20596cat >$CONFIG_STATUS <<_ACEOF
20597#! $SHELL
20598# Generated by $as_me.
20599# Run this file to recreate the current configuration.
20600# Compiler output produced by configure, useful for debugging
20601# configure, is in config.log if it exists.
20602
20603debug=false
20604ac_cs_recheck=false
20605ac_cs_silent=false
20606SHELL=\${CONFIG_SHELL-$SHELL}
20607_ACEOF
20608
20609cat >>$CONFIG_STATUS <<\_ACEOF
20610## --------------------- ##
20611## M4sh Initialization.  ##
20612## --------------------- ##
20613
20614# Be Bourne compatible
20615if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20616  emulate sh
20617  NULLCMD=:
20618  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20619  # is contrary to our usage.  Disable this feature.
20620  alias -g '${1+"$@"}'='"$@"'
20621elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20622  set -o posix
20623fi
20624DUALCASE=1; export DUALCASE # for MKS sh
20625
20626# Support unset when possible.
20627if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20628  as_unset=unset
20629else
20630  as_unset=false
20631fi
20632
20633
20634# Work around bugs in pre-3.0 UWIN ksh.
20635$as_unset ENV MAIL MAILPATH
20636PS1='$ '
20637PS2='> '
20638PS4='+ '
20639
20640# NLS nuisances.
20641for as_var in \
20642  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20643  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20644  LC_TELEPHONE LC_TIME
20645do
20646  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20647    eval $as_var=C; export $as_var
20648  else
20649    $as_unset $as_var
20650  fi
20651done
20652
20653# Required to use basename.
20654if expr a : '\(a\)' >/dev/null 2>&1; then
20655  as_expr=expr
20656else
20657  as_expr=false
20658fi
20659
20660if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20661  as_basename=basename
20662else
20663  as_basename=false
20664fi
20665
20666
20667# Name of the executable.
20668as_me=`$as_basename "$0" ||
20669$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20670	 X"$0" : 'X\(//\)$' \| \
20671	 X"$0" : 'X\(/\)$' \| \
20672	 .     : '\(.\)' 2>/dev/null ||
20673echo X/"$0" |
20674    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20675  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20676  	  /^X\/\(\/\).*/{ s//\1/; q; }
20677  	  s/.*/./; q'`
20678
20679
20680# PATH needs CR, and LINENO needs CR and PATH.
20681# Avoid depending upon Character Ranges.
20682as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20683as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20684as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20685as_cr_digits='0123456789'
20686as_cr_alnum=$as_cr_Letters$as_cr_digits
20687
20688# The user is always right.
20689if test "${PATH_SEPARATOR+set}" != set; then
20690  echo "#! /bin/sh" >conf$$.sh
20691  echo  "exit 0"   >>conf$$.sh
20692  chmod +x conf$$.sh
20693  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20694    PATH_SEPARATOR=';'
20695  else
20696    PATH_SEPARATOR=:
20697  fi
20698  rm -f conf$$.sh
20699fi
20700
20701
20702  as_lineno_1=$LINENO
20703  as_lineno_2=$LINENO
20704  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20705  test "x$as_lineno_1" != "x$as_lineno_2" &&
20706  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20707  # Find who we are.  Look in the path if we contain no path at all
20708  # relative or not.
20709  case $0 in
20710    *[\\/]* ) as_myself=$0 ;;
20711    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20712for as_dir in $PATH
20713do
20714  IFS=$as_save_IFS
20715  test -z "$as_dir" && as_dir=.
20716  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20717done
20718
20719       ;;
20720  esac
20721  # We did not find ourselves, most probably we were run as `sh COMMAND'
20722  # in which case we are not to be found in the path.
20723  if test "x$as_myself" = x; then
20724    as_myself=$0
20725  fi
20726  if test ! -f "$as_myself"; then
20727    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20728echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20729   { (exit 1); exit 1; }; }
20730  fi
20731  case $CONFIG_SHELL in
20732  '')
20733    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20734for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20735do
20736  IFS=$as_save_IFS
20737  test -z "$as_dir" && as_dir=.
20738  for as_base in sh bash ksh sh5; do
20739	 case $as_dir in
20740	 /*)
20741	   if ("$as_dir/$as_base" -c '
20742  as_lineno_1=$LINENO
20743  as_lineno_2=$LINENO
20744  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20745  test "x$as_lineno_1" != "x$as_lineno_2" &&
20746  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20747	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20748	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20749	     CONFIG_SHELL=$as_dir/$as_base
20750	     export CONFIG_SHELL
20751	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20752	   fi;;
20753	 esac
20754       done
20755done
20756;;
20757  esac
20758
20759  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20760  # uniformly replaced by the line number.  The first 'sed' inserts a
20761  # line-number line before each line; the second 'sed' does the real
20762  # work.  The second script uses 'N' to pair each line-number line
20763  # with the numbered line, and appends trailing '-' during
20764  # substitution so that $LINENO is not a special case at line end.
20765  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20766  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20767  sed '=' <$as_myself |
20768    sed '
20769      N
20770      s,$,-,
20771      : loop
20772      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20773      t loop
20774      s,-$,,
20775      s,^['$as_cr_digits']*\n,,
20776    ' >$as_me.lineno &&
20777  chmod +x $as_me.lineno ||
20778    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20779echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20780   { (exit 1); exit 1; }; }
20781
20782  # Don't try to exec as it changes $[0], causing all sort of problems
20783  # (the dirname of $[0] is not the place where we might find the
20784  # original and so on.  Autoconf is especially sensible to this).
20785  . ./$as_me.lineno
20786  # Exit status is that of the last command.
20787  exit
20788}
20789
20790
20791case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20792  *c*,-n*) ECHO_N= ECHO_C='
20793' ECHO_T='	' ;;
20794  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20795  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20796esac
20797
20798if expr a : '\(a\)' >/dev/null 2>&1; then
20799  as_expr=expr
20800else
20801  as_expr=false
20802fi
20803
20804rm -f conf$$ conf$$.exe conf$$.file
20805echo >conf$$.file
20806if ln -s conf$$.file conf$$ 2>/dev/null; then
20807  # We could just check for DJGPP; but this test a) works b) is more generic
20808  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20809  if test -f conf$$.exe; then
20810    # Don't use ln at all; we don't have any links
20811    as_ln_s='cp -p'
20812  else
20813    as_ln_s='ln -s'
20814  fi
20815elif ln conf$$.file conf$$ 2>/dev/null; then
20816  as_ln_s=ln
20817else
20818  as_ln_s='cp -p'
20819fi
20820rm -f conf$$ conf$$.exe conf$$.file
20821
20822if mkdir -p . 2>/dev/null; then
20823  as_mkdir_p=:
20824else
20825  test -d ./-p && rmdir ./-p
20826  as_mkdir_p=false
20827fi
20828
20829as_executable_p="test -f"
20830
20831# Sed expression to map a string onto a valid CPP name.
20832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20833
20834# Sed expression to map a string onto a valid variable name.
20835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20836
20837
20838# IFS
20839# We need space, tab and new line, in precisely that order.
20840as_nl='
20841'
20842IFS=" 	$as_nl"
20843
20844# CDPATH.
20845$as_unset CDPATH
20846
20847exec 6>&1
20848
20849# Open the log real soon, to keep \$[0] and so on meaningful, and to
20850# report actual input values of CONFIG_FILES etc. instead of their
20851# values after options handling.  Logging --version etc. is OK.
20852exec 5>>config.log
20853{
20854  echo
20855  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20856## Running $as_me. ##
20857_ASBOX
20858} >&5
20859cat >&5 <<_CSEOF
20860
20861This file was extended by mdemo $as_me 0.1, which was
20862generated by GNU Autoconf 2.59.  Invocation command line was
20863
20864  CONFIG_FILES    = $CONFIG_FILES
20865  CONFIG_HEADERS  = $CONFIG_HEADERS
20866  CONFIG_LINKS    = $CONFIG_LINKS
20867  CONFIG_COMMANDS = $CONFIG_COMMANDS
20868  $ $0 $@
20869
20870_CSEOF
20871echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20872echo >&5
20873_ACEOF
20874
20875# Files that config.status was made for.
20876if test -n "$ac_config_files"; then
20877  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20878fi
20879
20880if test -n "$ac_config_headers"; then
20881  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20882fi
20883
20884if test -n "$ac_config_links"; then
20885  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20886fi
20887
20888if test -n "$ac_config_commands"; then
20889  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20890fi
20891
20892cat >>$CONFIG_STATUS <<\_ACEOF
20893
20894ac_cs_usage="\
20895\`$as_me' instantiates files from templates according to the
20896current configuration.
20897
20898Usage: $0 [OPTIONS] [FILE]...
20899
20900  -h, --help       print this help, then exit
20901  -V, --version    print version number, then exit
20902  -q, --quiet      do not print progress messages
20903  -d, --debug      don't remove temporary files
20904      --recheck    update $as_me by reconfiguring in the same conditions
20905  --file=FILE[:TEMPLATE]
20906		   instantiate the configuration file FILE
20907
20908Configuration files:
20909$config_files
20910
20911Configuration commands:
20912$config_commands
20913
20914Report bugs to <bug-autoconf@gnu.org>."
20915_ACEOF
20916
20917cat >>$CONFIG_STATUS <<_ACEOF
20918ac_cs_version="\\
20919mdemo config.status 0.1
20920configured by $0, generated by GNU Autoconf 2.59,
20921  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20922
20923Copyright (C) 2003 Free Software Foundation, Inc.
20924This config.status script is free software; the Free Software Foundation
20925gives unlimited permission to copy, distribute and modify it."
20926srcdir=$srcdir
20927INSTALL="$INSTALL"
20928_ACEOF
20929
20930cat >>$CONFIG_STATUS <<\_ACEOF
20931# If no file are specified by the user, then we need to provide default
20932# value.  By we need to know if files were specified by the user.
20933ac_need_defaults=:
20934while test $# != 0
20935do
20936  case $1 in
20937  --*=*)
20938    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20939    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20940    ac_shift=:
20941    ;;
20942  -*)
20943    ac_option=$1
20944    ac_optarg=$2
20945    ac_shift=shift
20946    ;;
20947  *) # This is not an option, so the user has probably given explicit
20948     # arguments.
20949     ac_option=$1
20950     ac_need_defaults=false;;
20951  esac
20952
20953  case $ac_option in
20954  # Handling of the options.
20955_ACEOF
20956cat >>$CONFIG_STATUS <<\_ACEOF
20957  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20958    ac_cs_recheck=: ;;
20959  --version | --vers* | -V )
20960    echo "$ac_cs_version"; exit 0 ;;
20961  --he | --h)
20962    # Conflict between --help and --header
20963    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20964Try \`$0 --help' for more information." >&5
20965echo "$as_me: error: ambiguous option: $1
20966Try \`$0 --help' for more information." >&2;}
20967   { (exit 1); exit 1; }; };;
20968  --help | --hel | -h )
20969    echo "$ac_cs_usage"; exit 0 ;;
20970  --debug | --d* | -d )
20971    debug=: ;;
20972  --file | --fil | --fi | --f )
20973    $ac_shift
20974    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20975    ac_need_defaults=false;;
20976  --header | --heade | --head | --hea )
20977    $ac_shift
20978    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20979    ac_need_defaults=false;;
20980  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20981  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20982    ac_cs_silent=: ;;
20983
20984  # This is an error.
20985  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20986Try \`$0 --help' for more information." >&5
20987echo "$as_me: error: unrecognized option: $1
20988Try \`$0 --help' for more information." >&2;}
20989   { (exit 1); exit 1; }; } ;;
20990
20991  *) ac_config_targets="$ac_config_targets $1" ;;
20992
20993  esac
20994  shift
20995done
20996
20997ac_configure_extra_args=
20998
20999if $ac_cs_silent; then
21000  exec 6>/dev/null
21001  ac_configure_extra_args="$ac_configure_extra_args --silent"
21002fi
21003
21004_ACEOF
21005cat >>$CONFIG_STATUS <<_ACEOF
21006if \$ac_cs_recheck; then
21007  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21008  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21009fi
21010
21011_ACEOF
21012
21013cat >>$CONFIG_STATUS <<_ACEOF
21014#
21015# INIT-COMMANDS section.
21016#
21017
21018AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21019
21020_ACEOF
21021
21022
21023
21024cat >>$CONFIG_STATUS <<\_ACEOF
21025for ac_config_target in $ac_config_targets
21026do
21027  case "$ac_config_target" in
21028  # Handling of arguments.
21029  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21030  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21031  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21032echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21033   { (exit 1); exit 1; }; };;
21034  esac
21035done
21036
21037# If the user did not use the arguments to specify the items to instantiate,
21038# then the envvar interface is used.  Set only those that are not.
21039# We use the long form for the default assignment because of an extremely
21040# bizarre bug on SunOS 4.1.3.
21041if $ac_need_defaults; then
21042  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21043  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21044fi
21045
21046# Have a temporary directory for convenience.  Make it in the build tree
21047# simply because there is no reason to put it here, and in addition,
21048# creating and moving files from /tmp can sometimes cause problems.
21049# Create a temporary directory, and hook for its removal unless debugging.
21050$debug ||
21051{
21052  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21053  trap '{ (exit 1); exit 1; }' 1 2 13 15
21054}
21055
21056# Create a (secure) tmp directory for tmp files.
21057
21058{
21059  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21060  test -n "$tmp" && test -d "$tmp"
21061}  ||
21062{
21063  tmp=./confstat$$-$RANDOM
21064  (umask 077 && mkdir $tmp)
21065} ||
21066{
21067   echo "$me: cannot create a temporary directory in ." >&2
21068   { (exit 1); exit 1; }
21069}
21070
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<_ACEOF
21074
21075#
21076# CONFIG_FILES section.
21077#
21078
21079# No need to generate the scripts if there are no CONFIG_FILES.
21080# This happens for instance when ./config.status config.h
21081if test -n "\$CONFIG_FILES"; then
21082  # Protect against being on the right side of a sed subst in config.status.
21083  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21084   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21085s,@SHELL@,$SHELL,;t t
21086s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21087s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21088s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21089s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21090s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21091s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21092s,@exec_prefix@,$exec_prefix,;t t
21093s,@prefix@,$prefix,;t t
21094s,@program_transform_name@,$program_transform_name,;t t
21095s,@bindir@,$bindir,;t t
21096s,@sbindir@,$sbindir,;t t
21097s,@libexecdir@,$libexecdir,;t t
21098s,@datadir@,$datadir,;t t
21099s,@sysconfdir@,$sysconfdir,;t t
21100s,@sharedstatedir@,$sharedstatedir,;t t
21101s,@localstatedir@,$localstatedir,;t t
21102s,@libdir@,$libdir,;t t
21103s,@includedir@,$includedir,;t t
21104s,@oldincludedir@,$oldincludedir,;t t
21105s,@infodir@,$infodir,;t t
21106s,@mandir@,$mandir,;t t
21107s,@build_alias@,$build_alias,;t t
21108s,@host_alias@,$host_alias,;t t
21109s,@target_alias@,$target_alias,;t t
21110s,@DEFS@,$DEFS,;t t
21111s,@ECHO_C@,$ECHO_C,;t t
21112s,@ECHO_N@,$ECHO_N,;t t
21113s,@ECHO_T@,$ECHO_T,;t t
21114s,@LIBS@,$LIBS,;t t
21115s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21116s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21117s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21118s,@CYGPATH_W@,$CYGPATH_W,;t t
21119s,@PACKAGE@,$PACKAGE,;t t
21120s,@VERSION@,$VERSION,;t t
21121s,@ACLOCAL@,$ACLOCAL,;t t
21122s,@AUTOCONF@,$AUTOCONF,;t t
21123s,@AUTOMAKE@,$AUTOMAKE,;t t
21124s,@AUTOHEADER@,$AUTOHEADER,;t t
21125s,@MAKEINFO@,$MAKEINFO,;t t
21126s,@install_sh@,$install_sh,;t t
21127s,@STRIP@,$STRIP,;t t
21128s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21129s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21130s,@mkdir_p@,$mkdir_p,;t t
21131s,@AWK@,$AWK,;t t
21132s,@SET_MAKE@,$SET_MAKE,;t t
21133s,@am__leading_dot@,$am__leading_dot,;t t
21134s,@AMTAR@,$AMTAR,;t t
21135s,@am__tar@,$am__tar,;t t
21136s,@am__untar@,$am__untar,;t t
21137s,@CC@,$CC,;t t
21138s,@CFLAGS@,$CFLAGS,;t t
21139s,@LDFLAGS@,$LDFLAGS,;t t
21140s,@CPPFLAGS@,$CPPFLAGS,;t t
21141s,@ac_ct_CC@,$ac_ct_CC,;t t
21142s,@EXEEXT@,$EXEEXT,;t t
21143s,@OBJEXT@,$OBJEXT,;t t
21144s,@DEPDIR@,$DEPDIR,;t t
21145s,@am__include@,$am__include,;t t
21146s,@am__quote@,$am__quote,;t t
21147s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21148s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21149s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21150s,@CCDEPMODE@,$CCDEPMODE,;t t
21151s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21152s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21153s,@INCLTDL@,$INCLTDL,;t t
21154s,@LIBLTDL@,$LIBLTDL,;t t
21155s,@build@,$build,;t t
21156s,@build_cpu@,$build_cpu,;t t
21157s,@build_vendor@,$build_vendor,;t t
21158s,@build_os@,$build_os,;t t
21159s,@host@,$host,;t t
21160s,@host_cpu@,$host_cpu,;t t
21161s,@host_vendor@,$host_vendor,;t t
21162s,@host_os@,$host_os,;t t
21163s,@EGREP@,$EGREP,;t t
21164s,@LN_S@,$LN_S,;t t
21165s,@ECHO@,$ECHO,;t t
21166s,@AR@,$AR,;t t
21167s,@ac_ct_AR@,$ac_ct_AR,;t t
21168s,@RANLIB@,$RANLIB,;t t
21169s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21170s,@DLLTOOL@,$DLLTOOL,;t t
21171s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21172s,@AS@,$AS,;t t
21173s,@ac_ct_AS@,$ac_ct_AS,;t t
21174s,@OBJDUMP@,$OBJDUMP,;t t
21175s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21176s,@CPP@,$CPP,;t t
21177s,@CXX@,$CXX,;t t
21178s,@CXXFLAGS@,$CXXFLAGS,;t t
21179s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21180s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21181s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21182s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21183s,@CXXCPP@,$CXXCPP,;t t
21184s,@F77@,$F77,;t t
21185s,@FFLAGS@,$FFLAGS,;t t
21186s,@ac_ct_F77@,$ac_ct_F77,;t t
21187s,@LIBTOOL@,$LIBTOOL,;t t
21188s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21189s,@STATIC@,$STATIC,;t t
21190s,@LIBM@,$LIBM,;t t
21191s,@LIBOBJS@,$LIBOBJS,;t t
21192s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21193CEOF
21194
21195_ACEOF
21196
21197  cat >>$CONFIG_STATUS <<\_ACEOF
21198  # Split the substitutions into bite-sized pieces for seds with
21199  # small command number limits, like on Digital OSF/1 and HP-UX.
21200  ac_max_sed_lines=48
21201  ac_sed_frag=1 # Number of current file.
21202  ac_beg=1 # First line for current file.
21203  ac_end=$ac_max_sed_lines # Line after last line for current file.
21204  ac_more_lines=:
21205  ac_sed_cmds=
21206  while $ac_more_lines; do
21207    if test $ac_beg -gt 1; then
21208      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21209    else
21210      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21211    fi
21212    if test ! -s $tmp/subs.frag; then
21213      ac_more_lines=false
21214    else
21215      # The purpose of the label and of the branching condition is to
21216      # speed up the sed processing (if there are no `@' at all, there
21217      # is no need to browse any of the substitutions).
21218      # These are the two extra sed commands mentioned above.
21219      (echo ':t
21220  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21221      if test -z "$ac_sed_cmds"; then
21222	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21223      else
21224	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21225      fi
21226      ac_sed_frag=`expr $ac_sed_frag + 1`
21227      ac_beg=$ac_end
21228      ac_end=`expr $ac_end + $ac_max_sed_lines`
21229    fi
21230  done
21231  if test -z "$ac_sed_cmds"; then
21232    ac_sed_cmds=cat
21233  fi
21234fi # test -n "$CONFIG_FILES"
21235
21236_ACEOF
21237cat >>$CONFIG_STATUS <<\_ACEOF
21238for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21239  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21240  case $ac_file in
21241  - | *:- | *:-:* ) # input from stdin
21242	cat >$tmp/stdin
21243	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21244	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21245  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21246	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21247  * )   ac_file_in=$ac_file.in ;;
21248  esac
21249
21250  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21251  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21252$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21253	 X"$ac_file" : 'X\(//\)[^/]' \| \
21254	 X"$ac_file" : 'X\(//\)$' \| \
21255	 X"$ac_file" : 'X\(/\)' \| \
21256	 .     : '\(.\)' 2>/dev/null ||
21257echo X"$ac_file" |
21258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21259  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21260  	  /^X\(\/\/\)$/{ s//\1/; q; }
21261  	  /^X\(\/\).*/{ s//\1/; q; }
21262  	  s/.*/./; q'`
21263  { if $as_mkdir_p; then
21264    mkdir -p "$ac_dir"
21265  else
21266    as_dir="$ac_dir"
21267    as_dirs=
21268    while test ! -d "$as_dir"; do
21269      as_dirs="$as_dir $as_dirs"
21270      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21271$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21272	 X"$as_dir" : 'X\(//\)[^/]' \| \
21273	 X"$as_dir" : 'X\(//\)$' \| \
21274	 X"$as_dir" : 'X\(/\)' \| \
21275	 .     : '\(.\)' 2>/dev/null ||
21276echo X"$as_dir" |
21277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21278  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21279  	  /^X\(\/\/\)$/{ s//\1/; q; }
21280  	  /^X\(\/\).*/{ s//\1/; q; }
21281  	  s/.*/./; q'`
21282    done
21283    test ! -n "$as_dirs" || mkdir $as_dirs
21284  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21285echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21286   { (exit 1); exit 1; }; }; }
21287
21288  ac_builddir=.
21289
21290if test "$ac_dir" != .; then
21291  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21292  # A "../" for each directory in $ac_dir_suffix.
21293  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21294else
21295  ac_dir_suffix= ac_top_builddir=
21296fi
21297
21298case $srcdir in
21299  .)  # No --srcdir option.  We are building in place.
21300    ac_srcdir=.
21301    if test -z "$ac_top_builddir"; then
21302       ac_top_srcdir=.
21303    else
21304       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21305    fi ;;
21306  [\\/]* | ?:[\\/]* )  # Absolute path.
21307    ac_srcdir=$srcdir$ac_dir_suffix;
21308    ac_top_srcdir=$srcdir ;;
21309  *) # Relative path.
21310    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21311    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21312esac
21313
21314# Do not use `cd foo && pwd` to compute absolute paths, because
21315# the directories may not exist.
21316case `pwd` in
21317.) ac_abs_builddir="$ac_dir";;
21318*)
21319  case "$ac_dir" in
21320  .) ac_abs_builddir=`pwd`;;
21321  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21322  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21323  esac;;
21324esac
21325case $ac_abs_builddir in
21326.) ac_abs_top_builddir=${ac_top_builddir}.;;
21327*)
21328  case ${ac_top_builddir}. in
21329  .) ac_abs_top_builddir=$ac_abs_builddir;;
21330  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21331  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21332  esac;;
21333esac
21334case $ac_abs_builddir in
21335.) ac_abs_srcdir=$ac_srcdir;;
21336*)
21337  case $ac_srcdir in
21338  .) ac_abs_srcdir=$ac_abs_builddir;;
21339  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21340  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21341  esac;;
21342esac
21343case $ac_abs_builddir in
21344.) ac_abs_top_srcdir=$ac_top_srcdir;;
21345*)
21346  case $ac_top_srcdir in
21347  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21348  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21349  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21350  esac;;
21351esac
21352
21353
21354  case $INSTALL in
21355  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21356  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21357  esac
21358
21359  if test x"$ac_file" != x-; then
21360    { echo "$as_me:$LINENO: creating $ac_file" >&5
21361echo "$as_me: creating $ac_file" >&6;}
21362    rm -f "$ac_file"
21363  fi
21364  # Let's still pretend it is `configure' which instantiates (i.e., don't
21365  # use $as_me), people would be surprised to read:
21366  #    /* config.h.  Generated by config.status.  */
21367  if test x"$ac_file" = x-; then
21368    configure_input=
21369  else
21370    configure_input="$ac_file.  "
21371  fi
21372  configure_input=$configure_input"Generated from `echo $ac_file_in |
21373				     sed 's,.*/,,'` by configure."
21374
21375  # First look for the input files in the build tree, otherwise in the
21376  # src tree.
21377  ac_file_inputs=`IFS=:
21378    for f in $ac_file_in; do
21379      case $f in
21380      -) echo $tmp/stdin ;;
21381      [\\/$]*)
21382	 # Absolute (can't be DOS-style, as IFS=:)
21383	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21384echo "$as_me: error: cannot find input file: $f" >&2;}
21385   { (exit 1); exit 1; }; }
21386	 echo "$f";;
21387      *) # Relative
21388	 if test -f "$f"; then
21389	   # Build tree
21390	   echo "$f"
21391	 elif test -f "$srcdir/$f"; then
21392	   # Source tree
21393	   echo "$srcdir/$f"
21394	 else
21395	   # /dev/null tree
21396	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21397echo "$as_me: error: cannot find input file: $f" >&2;}
21398   { (exit 1); exit 1; }; }
21399	 fi;;
21400      esac
21401    done` || { (exit 1); exit 1; }
21402_ACEOF
21403cat >>$CONFIG_STATUS <<_ACEOF
21404  sed "$ac_vpsub
21405$extrasub
21406_ACEOF
21407cat >>$CONFIG_STATUS <<\_ACEOF
21408:t
21409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21410s,@configure_input@,$configure_input,;t t
21411s,@srcdir@,$ac_srcdir,;t t
21412s,@abs_srcdir@,$ac_abs_srcdir,;t t
21413s,@top_srcdir@,$ac_top_srcdir,;t t
21414s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21415s,@builddir@,$ac_builddir,;t t
21416s,@abs_builddir@,$ac_abs_builddir,;t t
21417s,@top_builddir@,$ac_top_builddir,;t t
21418s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21419s,@INSTALL@,$ac_INSTALL,;t t
21420" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21421  rm -f $tmp/stdin
21422  if test x"$ac_file" != x-; then
21423    mv $tmp/out $ac_file
21424  else
21425    cat $tmp/out
21426    rm -f $tmp/out
21427  fi
21428
21429done
21430_ACEOF
21431cat >>$CONFIG_STATUS <<\_ACEOF
21432
21433#
21434# CONFIG_COMMANDS section.
21435#
21436for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21437  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21438  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21439  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21440$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21441	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21442	 X"$ac_dest" : 'X\(//\)$' \| \
21443	 X"$ac_dest" : 'X\(/\)' \| \
21444	 .     : '\(.\)' 2>/dev/null ||
21445echo X"$ac_dest" |
21446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21447  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21448  	  /^X\(\/\/\)$/{ s//\1/; q; }
21449  	  /^X\(\/\).*/{ s//\1/; q; }
21450  	  s/.*/./; q'`
21451  { if $as_mkdir_p; then
21452    mkdir -p "$ac_dir"
21453  else
21454    as_dir="$ac_dir"
21455    as_dirs=
21456    while test ! -d "$as_dir"; do
21457      as_dirs="$as_dir $as_dirs"
21458      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21460	 X"$as_dir" : 'X\(//\)[^/]' \| \
21461	 X"$as_dir" : 'X\(//\)$' \| \
21462	 X"$as_dir" : 'X\(/\)' \| \
21463	 .     : '\(.\)' 2>/dev/null ||
21464echo X"$as_dir" |
21465    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21466  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21467  	  /^X\(\/\/\)$/{ s//\1/; q; }
21468  	  /^X\(\/\).*/{ s//\1/; q; }
21469  	  s/.*/./; q'`
21470    done
21471    test ! -n "$as_dirs" || mkdir $as_dirs
21472  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21473echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21474   { (exit 1); exit 1; }; }; }
21475
21476  ac_builddir=.
21477
21478if test "$ac_dir" != .; then
21479  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21480  # A "../" for each directory in $ac_dir_suffix.
21481  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21482else
21483  ac_dir_suffix= ac_top_builddir=
21484fi
21485
21486case $srcdir in
21487  .)  # No --srcdir option.  We are building in place.
21488    ac_srcdir=.
21489    if test -z "$ac_top_builddir"; then
21490       ac_top_srcdir=.
21491    else
21492       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21493    fi ;;
21494  [\\/]* | ?:[\\/]* )  # Absolute path.
21495    ac_srcdir=$srcdir$ac_dir_suffix;
21496    ac_top_srcdir=$srcdir ;;
21497  *) # Relative path.
21498    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21499    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21500esac
21501
21502# Do not use `cd foo && pwd` to compute absolute paths, because
21503# the directories may not exist.
21504case `pwd` in
21505.) ac_abs_builddir="$ac_dir";;
21506*)
21507  case "$ac_dir" in
21508  .) ac_abs_builddir=`pwd`;;
21509  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21510  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21511  esac;;
21512esac
21513case $ac_abs_builddir in
21514.) ac_abs_top_builddir=${ac_top_builddir}.;;
21515*)
21516  case ${ac_top_builddir}. in
21517  .) ac_abs_top_builddir=$ac_abs_builddir;;
21518  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21519  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21520  esac;;
21521esac
21522case $ac_abs_builddir in
21523.) ac_abs_srcdir=$ac_srcdir;;
21524*)
21525  case $ac_srcdir in
21526  .) ac_abs_srcdir=$ac_abs_builddir;;
21527  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21528  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21529  esac;;
21530esac
21531case $ac_abs_builddir in
21532.) ac_abs_top_srcdir=$ac_top_srcdir;;
21533*)
21534  case $ac_top_srcdir in
21535  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21536  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21537  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21538  esac;;
21539esac
21540
21541
21542  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21543echo "$as_me: executing $ac_dest commands" >&6;}
21544  case $ac_dest in
21545    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21546  # Strip MF so we end up with the name of the file.
21547  mf=`echo "$mf" | sed -e 's/:.*$//'`
21548  # Check whether this is an Automake generated Makefile or not.
21549  # We used to match only the files named `Makefile.in', but
21550  # some people rename them; so instead we look at the file content.
21551  # Grep'ing the first line is not enough: some people post-process
21552  # each Makefile.in and add a new line on top of each file to say so.
21553  # So let's grep whole file.
21554  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21555    dirpart=`(dirname "$mf") 2>/dev/null ||
21556$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21557	 X"$mf" : 'X\(//\)[^/]' \| \
21558	 X"$mf" : 'X\(//\)$' \| \
21559	 X"$mf" : 'X\(/\)' \| \
21560	 .     : '\(.\)' 2>/dev/null ||
21561echo X"$mf" |
21562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21563  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21564  	  /^X\(\/\/\)$/{ s//\1/; q; }
21565  	  /^X\(\/\).*/{ s//\1/; q; }
21566  	  s/.*/./; q'`
21567  else
21568    continue
21569  fi
21570  # Extract the definition of DEPDIR, am__include, and am__quote
21571  # from the Makefile without running `make'.
21572  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21573  test -z "$DEPDIR" && continue
21574  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21575  test -z "am__include" && continue
21576  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21577  # When using ansi2knr, U may be empty or an underscore; expand it
21578  U=`sed -n 's/^U = //p' < "$mf"`
21579  # Find all dependency output files, they are included files with
21580  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21581  # simplest approach to changing $(DEPDIR) to its actual value in the
21582  # expansion.
21583  for file in `sed -n "
21584    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21585       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21586    # Make sure the directory exists.
21587    test -f "$dirpart/$file" && continue
21588    fdir=`(dirname "$file") 2>/dev/null ||
21589$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21590	 X"$file" : 'X\(//\)[^/]' \| \
21591	 X"$file" : 'X\(//\)$' \| \
21592	 X"$file" : 'X\(/\)' \| \
21593	 .     : '\(.\)' 2>/dev/null ||
21594echo X"$file" |
21595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21596  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21597  	  /^X\(\/\/\)$/{ s//\1/; q; }
21598  	  /^X\(\/\).*/{ s//\1/; q; }
21599  	  s/.*/./; q'`
21600    { if $as_mkdir_p; then
21601    mkdir -p $dirpart/$fdir
21602  else
21603    as_dir=$dirpart/$fdir
21604    as_dirs=
21605    while test ! -d "$as_dir"; do
21606      as_dirs="$as_dir $as_dirs"
21607      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21609	 X"$as_dir" : 'X\(//\)[^/]' \| \
21610	 X"$as_dir" : 'X\(//\)$' \| \
21611	 X"$as_dir" : 'X\(/\)' \| \
21612	 .     : '\(.\)' 2>/dev/null ||
21613echo X"$as_dir" |
21614    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21615  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21616  	  /^X\(\/\/\)$/{ s//\1/; q; }
21617  	  /^X\(\/\).*/{ s//\1/; q; }
21618  	  s/.*/./; q'`
21619    done
21620    test ! -n "$as_dirs" || mkdir $as_dirs
21621  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21622echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21623   { (exit 1); exit 1; }; }; }
21624
21625    # echo "creating $dirpart/$file"
21626    echo '# dummy' > "$dirpart/$file"
21627  done
21628done
21629 ;;
21630  esac
21631done
21632_ACEOF
21633
21634cat >>$CONFIG_STATUS <<\_ACEOF
21635
21636{ (exit 0); exit 0; }
21637_ACEOF
21638chmod +x $CONFIG_STATUS
21639ac_clean_files=$ac_clean_files_save
21640
21641
21642# configure is writing to config.log, and then calls config.status.
21643# config.status does its own redirection, appending to config.log.
21644# Unfortunately, on DOS this fails, as config.log is still kept open
21645# by configure, so config.status won't be able to write to it; its
21646# output is simply discarded.  So we exec the FD to /dev/null,
21647# effectively closing config.log, so it can be properly (re)opened and
21648# appended to by config.status.  When coming back to configure, we
21649# need to make the FD available again.
21650if test "$no_create" != yes; then
21651  ac_cs_success=:
21652  ac_config_status_args=
21653  test "$silent" = yes &&
21654    ac_config_status_args="$ac_config_status_args --quiet"
21655  exec 5>/dev/null
21656  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21657  exec 5>>config.log
21658  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21659  # would make configure fail if this is the last instruction.
21660  $ac_cs_success || { (exit 1); exit 1; }
21661fi
21662
21663