1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Crème 0.0trunk.
4#
5# Report bugs to <http://projects.coin-or.org/Creme>.
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# Copyright 2011 Pietro Belotti.
12# All Rights Reserved.
13# This file is part of the open source package Creme which is distributed
14# under the Eclipse Public License.
15## --------------------- ##
16## M4sh Initialization.  ##
17## --------------------- ##
18
19# Be Bourne compatible
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21  emulate sh
22  NULLCMD=:
23  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27  set -o posix
28fi
29DUALCASE=1; export DUALCASE # for MKS sh
30
31# Support unset when possible.
32if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33  as_unset=unset
34else
35  as_unset=false
36fi
37
38
39# Work around bugs in pre-3.0 UWIN ksh.
40$as_unset ENV MAIL MAILPATH
41PS1='$ '
42PS2='> '
43PS4='+ '
44
45# NLS nuisances.
46for as_var in \
47  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49  LC_TELEPHONE LC_TIME
50do
51  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52    eval $as_var=C; export $as_var
53  else
54    $as_unset $as_var
55  fi
56done
57
58# Required to use basename.
59if expr a : '\(a\)' >/dev/null 2>&1; then
60  as_expr=expr
61else
62  as_expr=false
63fi
64
65if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66  as_basename=basename
67else
68  as_basename=false
69fi
70
71
72# Name of the executable.
73as_me=`$as_basename "$0" ||
74$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75	 X"$0" : 'X\(//\)$' \| \
76	 X"$0" : 'X\(/\)$' \| \
77	 .     : '\(.\)' 2>/dev/null ||
78echo X/"$0" |
79    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
81  	  /^X\/\(\/\).*/{ s//\1/; q; }
82  	  s/.*/./; q'`
83
84
85# PATH needs CR, and LINENO needs CR and PATH.
86# Avoid depending upon Character Ranges.
87as_cr_letters='abcdefghijklmnopqrstuvwxyz'
88as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89as_cr_Letters=$as_cr_letters$as_cr_LETTERS
90as_cr_digits='0123456789'
91as_cr_alnum=$as_cr_Letters$as_cr_digits
92
93# The user is always right.
94if test "${PATH_SEPARATOR+set}" != set; then
95  echo "#! /bin/sh" >conf$$.sh
96  echo  "exit 0"   >>conf$$.sh
97  chmod +x conf$$.sh
98  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
99    PATH_SEPARATOR=';'
100  else
101    PATH_SEPARATOR=:
102  fi
103  rm -f conf$$.sh
104fi
105
106
107  as_lineno_1=$LINENO
108  as_lineno_2=$LINENO
109  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
110  test "x$as_lineno_1" != "x$as_lineno_2" &&
111  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
112  # Find who we are.  Look in the path if we contain no path at all
113  # relative or not.
114  case $0 in
115    *[\\/]* ) as_myself=$0 ;;
116    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117for as_dir in $PATH
118do
119  IFS=$as_save_IFS
120  test -z "$as_dir" && as_dir=.
121  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122done
123
124       ;;
125  esac
126  # We did not find ourselves, most probably we were run as `sh COMMAND'
127  # in which case we are not to be found in the path.
128  if test "x$as_myself" = x; then
129    as_myself=$0
130  fi
131  if test ! -f "$as_myself"; then
132    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133   { (exit 1); exit 1; }; }
134  fi
135  case $CONFIG_SHELL in
136  '')
137    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
139do
140  IFS=$as_save_IFS
141  test -z "$as_dir" && as_dir=.
142  for as_base in sh bash ksh sh5; do
143	 case $as_dir in
144	 /*)
145	   if ("$as_dir/$as_base" -c '
146  as_lineno_1=$LINENO
147  as_lineno_2=$LINENO
148  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149  test "x$as_lineno_1" != "x$as_lineno_2" &&
150  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
151	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
152	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
153	     CONFIG_SHELL=$as_dir/$as_base
154	     export CONFIG_SHELL
155	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156	   fi;;
157	 esac
158       done
159done
160;;
161  esac
162
163  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164  # uniformly replaced by the line number.  The first 'sed' inserts a
165  # line-number line before each line; the second 'sed' does the real
166  # work.  The second script uses 'N' to pair each line-number line
167  # with the numbered line, and appends trailing '-' during
168  # substitution so that $LINENO is not a special case at line end.
169  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
171  sed '=' <$as_myself |
172    sed '
173      N
174      s,$,-,
175      : loop
176      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
177      t loop
178      s,-$,,
179      s,^['$as_cr_digits']*\n,,
180    ' >$as_me.lineno &&
181  chmod +x $as_me.lineno ||
182    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183   { (exit 1); exit 1; }; }
184
185  # Don't try to exec as it changes $[0], causing all sort of problems
186  # (the dirname of $[0] is not the place where we might find the
187  # original and so on.  Autoconf is especially sensible to this).
188  . ./$as_me.lineno
189  # Exit status is that of the last command.
190  exit
191}
192
193
194case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195  *c*,-n*) ECHO_N= ECHO_C='
196' ECHO_T='	' ;;
197  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
198  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
199esac
200
201if expr a : '\(a\)' >/dev/null 2>&1; then
202  as_expr=expr
203else
204  as_expr=false
205fi
206
207rm -f conf$$ conf$$.exe conf$$.file
208echo >conf$$.file
209if ln -s conf$$.file conf$$ 2>/dev/null; then
210  # We could just check for DJGPP; but this test a) works b) is more generic
211  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212  if test -f conf$$.exe; then
213    # Don't use ln at all; we don't have any links
214    as_ln_s='cp -p'
215  else
216    as_ln_s='ln -s'
217  fi
218elif ln conf$$.file conf$$ 2>/dev/null; then
219  as_ln_s=ln
220else
221  as_ln_s='cp -p'
222fi
223rm -f conf$$ conf$$.exe conf$$.file
224
225if mkdir -p . 2>/dev/null; then
226  as_mkdir_p=:
227else
228  test -d ./-p && rmdir ./-p
229  as_mkdir_p=false
230fi
231
232as_executable_p="test -f"
233
234# Sed expression to map a string onto a valid CPP name.
235as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236
237# Sed expression to map a string onto a valid variable name.
238as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239
240
241# IFS
242# We need space, tab and new line, in precisely that order.
243as_nl='
244'
245IFS=" 	$as_nl"
246
247# CDPATH.
248$as_unset CDPATH
249
250
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257  # Remove one level of quotation (which was required for Make).
258  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259  ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264  # Discard the --no-reexec flag, and continue.
265  shift
266elif test "X$1" = X--fallback-echo; then
267  # Avoid inline document here, it may be left over
268  :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
270  # Yippee, $echo works!
271  :
272else
273  # Restart under the correct shell.
274  exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278  # used as fallback echo
279  shift
280  cat <<EOF
281$*
282EOF
283  exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
296       echo_test_string=`eval $cmd` &&
297       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298    then
299      break
300    fi
301  done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306   test "X$echo_testing_string" = "X$echo_test_string"; then
307  :
308else
309  # The Solaris, AIX, and Digital Unix default echo programs unquote
310  # backslashes.  This makes it impossible to quote backslashes using
311  #   echo "$something" | sed 's/\\/\\\\/g'
312  #
313  # So, first we look for a working echo in the user's PATH.
314
315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316  for dir in $PATH /usr/ucb; do
317    IFS="$lt_save_ifs"
318    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
319       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
320       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
321       test "X$echo_testing_string" = "X$echo_test_string"; then
322      echo="$dir/echo"
323      break
324    fi
325  done
326  IFS="$lt_save_ifs"
327
328  if test "X$echo" = Xecho; then
329    # We didn't find a better echo, so look for alternatives.
330    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
331       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
332       test "X$echo_testing_string" = "X$echo_test_string"; then
333      # This shell has a builtin print -r that does the trick.
334      echo='print -r'
335    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
336	 test "X$CONFIG_SHELL" != X/bin/ksh; then
337      # If we have ksh, try running configure again with it.
338      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
339      export ORIGINAL_CONFIG_SHELL
340      CONFIG_SHELL=/bin/ksh
341      export CONFIG_SHELL
342      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343    else
344      # Try using printf.
345      echo='printf %s\n'
346      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
347	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
348	 test "X$echo_testing_string" = "X$echo_test_string"; then
349	# Cool, printf works
350	:
351      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
352	   test "X$echo_testing_string" = 'X\t' &&
353	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
354	   test "X$echo_testing_string" = "X$echo_test_string"; then
355	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356	export CONFIG_SHELL
357	SHELL="$CONFIG_SHELL"
358	export SHELL
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
361	   test "X$echo_testing_string" = 'X\t' &&
362	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
363	   test "X$echo_testing_string" = "X$echo_test_string"; then
364	echo="$CONFIG_SHELL $0 --fallback-echo"
365      else
366	# maybe with a smaller string...
367	prev=:
368
369	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
370	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371	  then
372	    break
373	  fi
374	  prev="$cmd"
375	done
376
377	if test "$prev" != 'sed 50q "$0"'; then
378	  echo_test_string=`eval $prev`
379	  export echo_test_string
380	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381	else
382	  # Oops.  We lost completely, so just stick with echo.
383	  echo=echo
384	fi
385      fi
386    fi
387  fi
388fi
389fi
390
391# Copy echo and quote the copy suitably for passing to libtool from
392# the Makefile, instead of quoting the original, which is used later.
393ECHO=$echo
394if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
395   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396fi
397
398
399
400
401tagnames=${tagnames+${tagnames},}CXX
402
403tagnames=${tagnames+${tagnames},}F77
404
405# Name of the host.
406# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407# so uname gets run too.
408ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410exec 6>&1
411
412#
413# Initializations.
414#
415ac_default_prefix=/usr/local
416ac_config_libobj_dir=.
417cross_compiling=no
418subdirs=
419MFLAGS=
420MAKEFLAGS=
421SHELL=${CONFIG_SHELL-/bin/sh}
422
423# Maximum number of lines to put in a shell here document.
424# This variable seems obsolete.  It should probably be removed, and
425# only ac_max_sed_lines should be used.
426: ${ac_max_here_lines=38}
427
428# Identity of this package.
429PACKAGE_NAME='Crème'
430PACKAGE_TARNAME='cr--me'
431PACKAGE_VERSION='0.0trunk'
432PACKAGE_STRING='Crème 0.0trunk'
433PACKAGE_BUGREPORT='http://projects.coin-or.org/Creme'
434
435ac_unique_file="src/Base/main.c"
436ac_default_prefix=`pwd`
437# Factoring default headers for most tests.
438ac_includes_default="\
439#include <stdio.h>
440#if HAVE_SYS_TYPES_H
441# include <sys/types.h>
442#endif
443#if HAVE_SYS_STAT_H
444# include <sys/stat.h>
445#endif
446#if STDC_HEADERS
447# include <stdlib.h>
448# include <stddef.h>
449#else
450# if HAVE_STDLIB_H
451#  include <stdlib.h>
452# endif
453#endif
454#if HAVE_STRING_H
455# if !STDC_HEADERS && HAVE_MEMORY_H
456#  include <memory.h>
457# endif
458# include <string.h>
459#endif
460#if HAVE_STRINGS_H
461# include <strings.h>
462#endif
463#if HAVE_INTTYPES_H
464# include <inttypes.h>
465#else
466# if HAVE_STDINT_H
467#  include <stdint.h>
468# endif
469#endif
470#if HAVE_UNISTD_H
471# include <unistd.h>
472#endif"
473
474ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CREME_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC EGREP LN_S 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
475ac_subst_files=''
476
477# Initialize some variables set by options.
478ac_init_help=
479ac_init_version=false
480# The variables have the same names as the options, with
481# dashes changed to underlines.
482cache_file=/dev/null
483exec_prefix=NONE
484no_create=
485no_recursion=
486prefix=NONE
487program_prefix=NONE
488program_suffix=NONE
489program_transform_name=s,x,x,
490silent=
491site=
492srcdir=
493verbose=
494x_includes=NONE
495x_libraries=NONE
496
497# Installation directory options.
498# These are left unexpanded so users can "make install exec_prefix=/foo"
499# and all the variables that are supposed to be based on exec_prefix
500# by default will actually change.
501# Use braces instead of parens because sh, perl, etc. also accept them.
502bindir='${exec_prefix}/bin'
503sbindir='${exec_prefix}/sbin'
504libexecdir='${exec_prefix}/libexec'
505datadir='${prefix}/share'
506sysconfdir='${prefix}/etc'
507sharedstatedir='${prefix}/com'
508localstatedir='${prefix}/var'
509libdir='${exec_prefix}/lib'
510includedir='${prefix}/include'
511oldincludedir='/usr/include'
512infodir='${prefix}/info'
513mandir='${prefix}/man'
514
515ac_prev=
516for ac_option
517do
518  # If the previous option needs an argument, assign it.
519  if test -n "$ac_prev"; then
520    eval "$ac_prev=\$ac_option"
521    ac_prev=
522    continue
523  fi
524
525  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526
527  # Accept the important Cygnus configure options, so we can diagnose typos.
528
529  case $ac_option in
530
531  -bindir | --bindir | --bindi | --bind | --bin | --bi)
532    ac_prev=bindir ;;
533  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534    bindir=$ac_optarg ;;
535
536  -build | --build | --buil | --bui | --bu)
537    ac_prev=build_alias ;;
538  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
539    build_alias=$ac_optarg ;;
540
541  -cache-file | --cache-file | --cache-fil | --cache-fi \
542  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
543    ac_prev=cache_file ;;
544  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
545  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
546    cache_file=$ac_optarg ;;
547
548  --config-cache | -C)
549    cache_file=config.cache ;;
550
551  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552    ac_prev=datadir ;;
553  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554  | --da=*)
555    datadir=$ac_optarg ;;
556
557  -disable-* | --disable-*)
558    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
559    # Reject names that are not valid shell variable names.
560    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562   { (exit 1); exit 1; }; }
563    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564    eval "enable_$ac_feature=no" ;;
565
566  -enable-* | --enable-*)
567    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
568    # Reject names that are not valid shell variable names.
569    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571   { (exit 1); exit 1; }; }
572    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573    case $ac_option in
574      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575      *) ac_optarg=yes ;;
576    esac
577    eval "enable_$ac_feature='$ac_optarg'" ;;
578
579  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
580  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
581  | --exec | --exe | --ex)
582    ac_prev=exec_prefix ;;
583  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
584  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
585  | --exec=* | --exe=* | --ex=*)
586    exec_prefix=$ac_optarg ;;
587
588  -gas | --gas | --ga | --g)
589    # Obsolete; use --with-gas.
590    with_gas=yes ;;
591
592  -help | --help | --hel | --he | -h)
593    ac_init_help=long ;;
594  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
595    ac_init_help=recursive ;;
596  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
597    ac_init_help=short ;;
598
599  -host | --host | --hos | --ho)
600    ac_prev=host_alias ;;
601  -host=* | --host=* | --hos=* | --ho=*)
602    host_alias=$ac_optarg ;;
603
604  -includedir | --includedir | --includedi | --included | --include \
605  | --includ | --inclu | --incl | --inc)
606    ac_prev=includedir ;;
607  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
608  | --includ=* | --inclu=* | --incl=* | --inc=*)
609    includedir=$ac_optarg ;;
610
611  -infodir | --infodir | --infodi | --infod | --info | --inf)
612    ac_prev=infodir ;;
613  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
614    infodir=$ac_optarg ;;
615
616  -libdir | --libdir | --libdi | --libd)
617    ac_prev=libdir ;;
618  -libdir=* | --libdir=* | --libdi=* | --libd=*)
619    libdir=$ac_optarg ;;
620
621  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
622  | --libexe | --libex | --libe)
623    ac_prev=libexecdir ;;
624  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
625  | --libexe=* | --libex=* | --libe=*)
626    libexecdir=$ac_optarg ;;
627
628  -localstatedir | --localstatedir | --localstatedi | --localstated \
629  | --localstate | --localstat | --localsta | --localst \
630  | --locals | --local | --loca | --loc | --lo)
631    ac_prev=localstatedir ;;
632  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
633  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
634  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
635    localstatedir=$ac_optarg ;;
636
637  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638    ac_prev=mandir ;;
639  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640    mandir=$ac_optarg ;;
641
642  -nfp | --nfp | --nf)
643    # Obsolete; use --without-fp.
644    with_fp=no ;;
645
646  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
647  | --no-cr | --no-c | -n)
648    no_create=yes ;;
649
650  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
651  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652    no_recursion=yes ;;
653
654  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
655  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
656  | --oldin | --oldi | --old | --ol | --o)
657    ac_prev=oldincludedir ;;
658  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
659  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
660  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
661    oldincludedir=$ac_optarg ;;
662
663  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664    ac_prev=prefix ;;
665  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666    prefix=$ac_optarg ;;
667
668  -program-prefix | --program-prefix | --program-prefi | --program-pref \
669  | --program-pre | --program-pr | --program-p)
670    ac_prev=program_prefix ;;
671  -program-prefix=* | --program-prefix=* | --program-prefi=* \
672  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
673    program_prefix=$ac_optarg ;;
674
675  -program-suffix | --program-suffix | --program-suffi | --program-suff \
676  | --program-suf | --program-su | --program-s)
677    ac_prev=program_suffix ;;
678  -program-suffix=* | --program-suffix=* | --program-suffi=* \
679  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
680    program_suffix=$ac_optarg ;;
681
682  -program-transform-name | --program-transform-name \
683  | --program-transform-nam | --program-transform-na \
684  | --program-transform-n | --program-transform- \
685  | --program-transform | --program-transfor \
686  | --program-transfo | --program-transf \
687  | --program-trans | --program-tran \
688  | --progr-tra | --program-tr | --program-t)
689    ac_prev=program_transform_name ;;
690  -program-transform-name=* | --program-transform-name=* \
691  | --program-transform-nam=* | --program-transform-na=* \
692  | --program-transform-n=* | --program-transform-=* \
693  | --program-transform=* | --program-transfor=* \
694  | --program-transfo=* | --program-transf=* \
695  | --program-trans=* | --program-tran=* \
696  | --progr-tra=* | --program-tr=* | --program-t=*)
697    program_transform_name=$ac_optarg ;;
698
699  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
700  | -silent | --silent | --silen | --sile | --sil)
701    silent=yes ;;
702
703  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704    ac_prev=sbindir ;;
705  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706  | --sbi=* | --sb=*)
707    sbindir=$ac_optarg ;;
708
709  -sharedstatedir | --sharedstatedir | --sharedstatedi \
710  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
711  | --sharedst | --shareds | --shared | --share | --shar \
712  | --sha | --sh)
713    ac_prev=sharedstatedir ;;
714  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
715  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
716  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717  | --sha=* | --sh=*)
718    sharedstatedir=$ac_optarg ;;
719
720  -site | --site | --sit)
721    ac_prev=site ;;
722  -site=* | --site=* | --sit=*)
723    site=$ac_optarg ;;
724
725  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726    ac_prev=srcdir ;;
727  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728    srcdir=$ac_optarg ;;
729
730  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
731  | --syscon | --sysco | --sysc | --sys | --sy)
732    ac_prev=sysconfdir ;;
733  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
734  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
735    sysconfdir=$ac_optarg ;;
736
737  -target | --target | --targe | --targ | --tar | --ta | --t)
738    ac_prev=target_alias ;;
739  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
740    target_alias=$ac_optarg ;;
741
742  -v | -verbose | --verbose | --verbos | --verbo | --verb)
743    verbose=yes ;;
744
745  -version | --version | --versio | --versi | --vers | -V)
746    ac_init_version=: ;;
747
748  -with-* | --with-*)
749    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package| sed 's/-/_/g'`
755    case $ac_option in
756      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757      *) ac_optarg=yes ;;
758    esac
759    eval "with_$ac_package='$ac_optarg'" ;;
760
761  -without-* | --without-*)
762    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
763    # Reject names that are not valid shell variable names.
764    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765      { echo "$as_me: error: invalid package name: $ac_package" >&2
766   { (exit 1); exit 1; }; }
767    ac_package=`echo $ac_package | sed 's/-/_/g'`
768    eval "with_$ac_package=no" ;;
769
770  --x)
771    # Obsolete; use --with-x.
772    with_x=yes ;;
773
774  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
775  | --x-incl | --x-inc | --x-in | --x-i)
776    ac_prev=x_includes ;;
777  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
778  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
779    x_includes=$ac_optarg ;;
780
781  -x-libraries | --x-libraries | --x-librarie | --x-librari \
782  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
783    ac_prev=x_libraries ;;
784  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
785  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
786    x_libraries=$ac_optarg ;;
787
788  -*) { echo "$as_me: error: unrecognized option: $ac_option
789Try \`$0 --help' for more information." >&2
790   { (exit 1); exit 1; }; }
791    ;;
792
793  *=*)
794    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
795    # Reject names that are not valid shell variable names.
796    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
797      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
798   { (exit 1); exit 1; }; }
799    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
800    eval "$ac_envvar='$ac_optarg'"
801    export $ac_envvar ;;
802
803  *)
804    # FIXME: should be removed in autoconf 3.0.
805    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
806    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
807      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
808    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809    ;;
810
811  esac
812done
813
814if test -n "$ac_prev"; then
815  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
816  { echo "$as_me: error: missing argument to $ac_option" >&2
817   { (exit 1); exit 1; }; }
818fi
819
820# Be sure to have absolute paths.
821for ac_var in exec_prefix prefix
822do
823  eval ac_val=$`echo $ac_var`
824  case $ac_val in
825    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
826    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827   { (exit 1); exit 1; }; };;
828  esac
829done
830
831# Be sure to have absolute paths.
832for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
833	      localstatedir libdir includedir oldincludedir infodir mandir
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# There might be people who depend on the old broken behavior: `$host'
844# used to hold the argument of --host etc.
845# FIXME: To remove some day.
846build=$build_alias
847host=$host_alias
848target=$target_alias
849
850# FIXME: To remove some day.
851if test "x$host_alias" != x; then
852  if test "x$build_alias" = x; then
853    cross_compiling=maybe
854    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
855    If a cross compiler is detected then cross compile mode will be used." >&2
856  elif test "x$build_alias" != "x$host_alias"; then
857    cross_compiling=yes
858  fi
859fi
860
861ac_tool_prefix=
862test -n "$host_alias" && ac_tool_prefix=$host_alias-
863
864test "$silent" = yes && exec 6>/dev/null
865
866
867# Find the source files, if location was not specified.
868if test -z "$srcdir"; then
869  ac_srcdir_defaulted=yes
870  # Try the directory containing this script, then its parent.
871  ac_confdir=`(dirname "$0") 2>/dev/null ||
872$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
873	 X"$0" : 'X\(//\)[^/]' \| \
874	 X"$0" : 'X\(//\)$' \| \
875	 X"$0" : 'X\(/\)' \| \
876	 .     : '\(.\)' 2>/dev/null ||
877echo X"$0" |
878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
879  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
880  	  /^X\(\/\/\)$/{ s//\1/; q; }
881  	  /^X\(\/\).*/{ s//\1/; q; }
882  	  s/.*/./; q'`
883  srcdir=$ac_confdir
884  if test ! -r $srcdir/$ac_unique_file; then
885    srcdir=..
886  fi
887else
888  ac_srcdir_defaulted=no
889fi
890if test ! -r $srcdir/$ac_unique_file; then
891  if test "$ac_srcdir_defaulted" = yes; then
892    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
893   { (exit 1); exit 1; }; }
894  else
895    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
896   { (exit 1); exit 1; }; }
897  fi
898fi
899(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
900  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
901   { (exit 1); exit 1; }; }
902srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
903ac_env_build_alias_set=${build_alias+set}
904ac_env_build_alias_value=$build_alias
905ac_cv_env_build_alias_set=${build_alias+set}
906ac_cv_env_build_alias_value=$build_alias
907ac_env_host_alias_set=${host_alias+set}
908ac_env_host_alias_value=$host_alias
909ac_cv_env_host_alias_set=${host_alias+set}
910ac_cv_env_host_alias_value=$host_alias
911ac_env_target_alias_set=${target_alias+set}
912ac_env_target_alias_value=$target_alias
913ac_cv_env_target_alias_set=${target_alias+set}
914ac_cv_env_target_alias_value=$target_alias
915ac_env_CDEFS_set=${CDEFS+set}
916ac_env_CDEFS_value=$CDEFS
917ac_cv_env_CDEFS_set=${CDEFS+set}
918ac_cv_env_CDEFS_value=$CDEFS
919ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
920ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
921ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
922ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
923ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
924ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
925ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
926ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
927ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
928ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
929ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
930ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
931ac_env_CC_set=${CC+set}
932ac_env_CC_value=$CC
933ac_cv_env_CC_set=${CC+set}
934ac_cv_env_CC_value=$CC
935ac_env_CFLAGS_set=${CFLAGS+set}
936ac_env_CFLAGS_value=$CFLAGS
937ac_cv_env_CFLAGS_set=${CFLAGS+set}
938ac_cv_env_CFLAGS_value=$CFLAGS
939ac_env_LDFLAGS_set=${LDFLAGS+set}
940ac_env_LDFLAGS_value=$LDFLAGS
941ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
942ac_cv_env_LDFLAGS_value=$LDFLAGS
943ac_env_CPPFLAGS_set=${CPPFLAGS+set}
944ac_env_CPPFLAGS_value=$CPPFLAGS
945ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
946ac_cv_env_CPPFLAGS_value=$CPPFLAGS
947ac_env_MPICC_set=${MPICC+set}
948ac_env_MPICC_value=$MPICC
949ac_cv_env_MPICC_set=${MPICC+set}
950ac_cv_env_MPICC_value=$MPICC
951ac_env_CPP_set=${CPP+set}
952ac_env_CPP_value=$CPP
953ac_cv_env_CPP_set=${CPP+set}
954ac_cv_env_CPP_value=$CPP
955ac_env_CXX_set=${CXX+set}
956ac_env_CXX_value=$CXX
957ac_cv_env_CXX_set=${CXX+set}
958ac_cv_env_CXX_value=$CXX
959ac_env_CXXFLAGS_set=${CXXFLAGS+set}
960ac_env_CXXFLAGS_value=$CXXFLAGS
961ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
962ac_cv_env_CXXFLAGS_value=$CXXFLAGS
963ac_env_CXXCPP_set=${CXXCPP+set}
964ac_env_CXXCPP_value=$CXXCPP
965ac_cv_env_CXXCPP_set=${CXXCPP+set}
966ac_cv_env_CXXCPP_value=$CXXCPP
967ac_env_F77_set=${F77+set}
968ac_env_F77_value=$F77
969ac_cv_env_F77_set=${F77+set}
970ac_cv_env_F77_value=$F77
971ac_env_FFLAGS_set=${FFLAGS+set}
972ac_env_FFLAGS_value=$FFLAGS
973ac_cv_env_FFLAGS_set=${FFLAGS+set}
974ac_cv_env_FFLAGS_value=$FFLAGS
975ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
976ac_env_PKG_CONFIG_value=$PKG_CONFIG
977ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
978ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
979
980#
981# Report the --help message.
982#
983if test "$ac_init_help" = "long"; then
984  # Omit some internal or obsolete options to make the list less imposing.
985  # This message is too long to be a string in the A/UX 3.1 sh.
986  cat <<_ACEOF
987\`configure' configures Crème 0.0trunk to adapt to many kinds of systems.
988
989Usage: $0 [OPTION]... [VAR=VALUE]...
990
991To assign environment variables (e.g., CC, CFLAGS...), specify them as
992VAR=VALUE.  See below for descriptions of some of the useful variables.
993
994Defaults for the options are specified in brackets.
995
996Configuration:
997  -h, --help              display this help and exit
998      --help=short        display options specific to this package
999      --help=recursive    display the short help of all the included packages
1000  -V, --version           display version information and exit
1001  -q, --quiet, --silent   do not print \`checking...' messages
1002      --cache-file=FILE   cache test results in FILE [disabled]
1003  -C, --config-cache      alias for \`--cache-file=config.cache'
1004  -n, --no-create         do not create output files
1005      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1006
1007_ACEOF
1008
1009  cat <<_ACEOF
1010Installation directories:
1011  --prefix=PREFIX         install architecture-independent files in PREFIX
1012			  [$ac_default_prefix]
1013  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1014			  [PREFIX]
1015
1016By default, \`make install' will install all the files in
1017\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1018an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1019for instance \`--prefix=\$HOME'.
1020
1021For better control, use the options below.
1022
1023Fine tuning of the installation directories:
1024  --bindir=DIR           user executables [EPREFIX/bin]
1025  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1026  --libexecdir=DIR       program executables [EPREFIX/libexec]
1027  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1028  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1029  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1030  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1031  --libdir=DIR           object code libraries [EPREFIX/lib]
1032  --includedir=DIR       C header files [PREFIX/include]
1033  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1034  --infodir=DIR          info documentation [PREFIX/info]
1035  --mandir=DIR           man documentation [PREFIX/man]
1036_ACEOF
1037
1038  cat <<\_ACEOF
1039
1040Program names:
1041  --program-prefix=PREFIX            prepend PREFIX to installed program names
1042  --program-suffix=SUFFIX            append SUFFIX to installed program names
1043  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1044
1045System types:
1046  --build=BUILD     configure for building on BUILD [guessed]
1047  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1048_ACEOF
1049fi
1050
1051if test -n "$ac_init_help"; then
1052  case $ac_init_help in
1053     short | recursive ) echo "Configuration of Crème 0.0trunk:";;
1054   esac
1055  cat <<\_ACEOF
1056
1057Optional Features:
1058  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1059  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1060  --enable-debug          compile all projects with debug options tests
1061                          (implies --disable-shared)
1062  --enable-debug-creme compile project Creme with debug compiler flags
1063  --enable-doscompile     Under Cygwin, compile so that executables run under
1064                          DOS. Set to mingw to use gcc/g++/ld with
1065                          -mno-cygwin. Set to msvc to use cl/link (or
1066                          icl/link). Default when mentioned: mingw. Default
1067                          when not mentioned: disabled.
1068  --enable-static[=PKGS]
1069                          build static libraries [default=no]
1070  --disable-dependency-tracking  speeds up one-time build
1071  --enable-dependency-tracking   do not reject slow dependency extractors
1072  --enable-maintainer-mode  enable make rules and dependencies not useful
1073			  (and sometimes confusing) to the casual installer
1074  --enable-shared[=PKGS]
1075                          build shared libraries [default=yes]
1076  --enable-fast-install[=PKGS]
1077                          optimize for fast installation [default=yes]
1078  --disable-libtool-lock  avoid locking (might break parallel builds)
1079  --disable-pkg-config    disable use of pkg-config (if available)
1080
1081Optional Packages:
1082  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084  --with-creme-verbosity specify the debug verbosity level for project Creme
1085  --with-creme-checklevel specify the sanity check level for project Creme
1086  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1087  --with-pic              try to use only PIC/non-PIC objects [default=use
1088                          both]
1089  --with-tags[=TAGS]
1090                          include additional configurations [automatic]
1091  --with-coin-instdir     prefix of installation directory for precompiled
1092                          COIN packages
1093
1094Some influential environment variables:
1095  CDEFS       Additional -D flags to be used when compiling C code.
1096  ADD_CFLAGS  Additional C compiler options
1097  DBG_CFLAGS  Debug C compiler options
1098  OPT_CFLAGS  Optimize C compiler options
1099  CC          C compiler command
1100  CFLAGS      C compiler flags
1101  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102              nonstandard directory <lib dir>
1103  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104              headers in a nonstandard directory <include dir>
1105  MPICC       C MPI Compiler
1106  CPP         C preprocessor
1107  CXX         C++ compiler command
1108  CXXFLAGS    C++ compiler flags
1109  CXXCPP      C++ preprocessor
1110  F77         Fortran 77 compiler command
1111  FFLAGS      Fortran 77 compiler flags
1112  PKG_CONFIG  path to pkg-config utility
1113
1114Use these variables to override the choices made by `configure' or to help
1115it to find libraries and programs with nonstandard names/locations.
1116
1117Report bugs to <http://projects.coin-or.org/Creme>.
1118_ACEOF
1119fi
1120
1121if test "$ac_init_help" = "recursive"; then
1122  # If there are subdirs, report their specific --help.
1123  ac_popdir=`pwd`
1124  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1125    test -d $ac_dir || continue
1126    ac_builddir=.
1127
1128if test "$ac_dir" != .; then
1129  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1130  # A "../" for each directory in $ac_dir_suffix.
1131  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1132else
1133  ac_dir_suffix= ac_top_builddir=
1134fi
1135
1136case $srcdir in
1137  .)  # No --srcdir option.  We are building in place.
1138    ac_srcdir=.
1139    if test -z "$ac_top_builddir"; then
1140       ac_top_srcdir=.
1141    else
1142       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1143    fi ;;
1144  [\\/]* | ?:[\\/]* )  # Absolute path.
1145    ac_srcdir=$srcdir$ac_dir_suffix;
1146    ac_top_srcdir=$srcdir ;;
1147  *) # Relative path.
1148    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1149    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1150esac
1151
1152# Do not use `cd foo && pwd` to compute absolute paths, because
1153# the directories may not exist.
1154case `pwd` in
1155.) ac_abs_builddir="$ac_dir";;
1156*)
1157  case "$ac_dir" in
1158  .) ac_abs_builddir=`pwd`;;
1159  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1160  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1161  esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_builddir=${ac_top_builddir}.;;
1165*)
1166  case ${ac_top_builddir}. in
1167  .) ac_abs_top_builddir=$ac_abs_builddir;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1169  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1170  esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_srcdir=$ac_srcdir;;
1174*)
1175  case $ac_srcdir in
1176  .) ac_abs_srcdir=$ac_abs_builddir;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1178  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_srcdir=$ac_top_srcdir;;
1183*)
1184  case $ac_top_srcdir in
1185  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1187  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188  esac;;
1189esac
1190
1191    cd $ac_dir
1192    # Check for guested configure; otherwise get Cygnus style configure.
1193    if test -f $ac_srcdir/configure.gnu; then
1194      echo
1195      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1196    elif test -f $ac_srcdir/configure; then
1197      echo
1198      $SHELL $ac_srcdir/configure  --help=recursive
1199    elif test -f $ac_srcdir/configure.ac ||
1200	   test -f $ac_srcdir/configure.in; then
1201      echo
1202      $ac_configure --help
1203    else
1204      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205    fi
1206    cd $ac_popdir
1207  done
1208fi
1209
1210test -n "$ac_init_help" && exit 0
1211if $ac_init_version; then
1212  cat <<\_ACEOF
1213Crème configure 0.0trunk
1214generated by GNU Autoconf 2.59
1215
1216Copyright (C) 2003 Free Software Foundation, Inc.
1217This configure script is free software; the Free Software Foundation
1218gives unlimited permission to copy, distribute and modify it.
1219
1220Copyright 2011 Pietro Belotti.
1221All Rights Reserved.
1222This file is part of the open source package Creme which is distributed
1223under the Eclipse Public License.
1224_ACEOF
1225  exit 0
1226fi
1227exec 5>config.log
1228cat >&5 <<_ACEOF
1229This file contains any messages produced by compilers while
1230running configure, to aid debugging if configure makes a mistake.
1231
1232It was created by Crème $as_me 0.0trunk, which was
1233generated by GNU Autoconf 2.59.  Invocation command line was
1234
1235  $ $0 $@
1236
1237_ACEOF
1238{
1239cat <<_ASUNAME
1240## --------- ##
1241## Platform. ##
1242## --------- ##
1243
1244hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1245uname -m = `(uname -m) 2>/dev/null || echo unknown`
1246uname -r = `(uname -r) 2>/dev/null || echo unknown`
1247uname -s = `(uname -s) 2>/dev/null || echo unknown`
1248uname -v = `(uname -v) 2>/dev/null || echo unknown`
1249
1250/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1251/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1252
1253/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1254/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1255/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1256hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1257/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1258/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1259/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1260
1261_ASUNAME
1262
1263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1264for as_dir in $PATH
1265do
1266  IFS=$as_save_IFS
1267  test -z "$as_dir" && as_dir=.
1268  echo "PATH: $as_dir"
1269done
1270
1271} >&5
1272
1273cat >&5 <<_ACEOF
1274
1275
1276## ----------- ##
1277## Core tests. ##
1278## ----------- ##
1279
1280_ACEOF
1281
1282
1283# Keep a trace of the command line.
1284# Strip out --no-create and --no-recursion so they do not pile up.
1285# Strip out --silent because we don't want to record it for future runs.
1286# Also quote any args containing shell meta-characters.
1287# Make two passes to allow for proper duplicate-argument suppression.
1288ac_configure_args=
1289ac_configure_args0=
1290ac_configure_args1=
1291ac_sep=
1292ac_must_keep_next=false
1293for ac_pass in 1 2
1294do
1295  for ac_arg
1296  do
1297    case $ac_arg in
1298    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1299    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300    | -silent | --silent | --silen | --sile | --sil)
1301      continue ;;
1302    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1304    esac
1305    case $ac_pass in
1306    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1307    2)
1308      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1309      if test $ac_must_keep_next = true; then
1310	ac_must_keep_next=false # Got value, back to normal.
1311      else
1312	case $ac_arg in
1313	  *=* | --config-cache | -C | -disable-* | --disable-* \
1314	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1315	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1316	  | -with-* | --with-* | -without-* | --without-* | --x)
1317	    case "$ac_configure_args0 " in
1318	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1319	    esac
1320	    ;;
1321	  -* ) ac_must_keep_next=true ;;
1322	esac
1323      fi
1324      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1325      # Get rid of the leading space.
1326      ac_sep=" "
1327      ;;
1328    esac
1329  done
1330done
1331$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1332$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1333
1334# When interrupted or exit'd, cleanup temporary files, and complete
1335# config.log.  We remove comments because anyway the quotes in there
1336# would cause problems or look ugly.
1337# WARNING: Be sure not to use single quotes in there, as some shells,
1338# such as our DU 5.0 friend, will then `close' the trap.
1339trap 'exit_status=$?
1340  # Save into config.log some information that might help in debugging.
1341  {
1342    echo
1343
1344    cat <<\_ASBOX
1345## ---------------- ##
1346## Cache variables. ##
1347## ---------------- ##
1348_ASBOX
1349    echo
1350    # The following way of writing the cache mishandles newlines in values,
1351{
1352  (set) 2>&1 |
1353    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1354    *ac_space=\ *)
1355      sed -n \
1356	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1357	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358      ;;
1359    *)
1360      sed -n \
1361	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1362      ;;
1363    esac;
1364}
1365    echo
1366
1367    cat <<\_ASBOX
1368## ----------------- ##
1369## Output variables. ##
1370## ----------------- ##
1371_ASBOX
1372    echo
1373    for ac_var in $ac_subst_vars
1374    do
1375      eval ac_val=$`echo $ac_var`
1376      echo "$ac_var='"'"'$ac_val'"'"'"
1377    done | sort
1378    echo
1379
1380    if test -n "$ac_subst_files"; then
1381      cat <<\_ASBOX
1382## ------------- ##
1383## Output files. ##
1384## ------------- ##
1385_ASBOX
1386      echo
1387      for ac_var in $ac_subst_files
1388      do
1389	eval ac_val=$`echo $ac_var`
1390	echo "$ac_var='"'"'$ac_val'"'"'"
1391      done | sort
1392      echo
1393    fi
1394
1395    if test -s confdefs.h; then
1396      cat <<\_ASBOX
1397## ----------- ##
1398## confdefs.h. ##
1399## ----------- ##
1400_ASBOX
1401      echo
1402      sed "/^$/d" confdefs.h | sort
1403      echo
1404    fi
1405    test "$ac_signal" != 0 &&
1406      echo "$as_me: caught signal $ac_signal"
1407    echo "$as_me: exit $exit_status"
1408  } >&5
1409  rm -f core *.core &&
1410  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1411    exit $exit_status
1412     ' 0
1413for ac_signal in 1 2 13 15; do
1414  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1415done
1416ac_signal=0
1417
1418# confdefs.h avoids OS command line length limits that DEFS can exceed.
1419rm -rf conftest* confdefs.h
1420# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1421echo >confdefs.h
1422
1423# Predefined preprocessor variables.
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_NAME "$PACKAGE_NAME"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_VERSION "$PACKAGE_VERSION"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_STRING "$PACKAGE_STRING"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1447_ACEOF
1448
1449
1450# Let the site file select an alternate cache file if it wants to.
1451# Prefer explicitly selected file to automatically selected ones.
1452if test -z "$CONFIG_SITE"; then
1453  if test "x$prefix" != xNONE; then
1454    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1455  else
1456    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1457  fi
1458fi
1459for ac_site_file in $CONFIG_SITE; do
1460  if test -r "$ac_site_file"; then
1461    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1462echo "$as_me: loading site script $ac_site_file" >&6;}
1463    sed 's/^/| /' "$ac_site_file" >&5
1464    . "$ac_site_file"
1465  fi
1466done
1467
1468if test -r "$cache_file"; then
1469  # Some versions of bash will fail to source /dev/null (special
1470  # files actually), so we avoid doing that.
1471  if test -f "$cache_file"; then
1472    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1473echo "$as_me: loading cache $cache_file" >&6;}
1474    case $cache_file in
1475      [\\/]* | ?:[\\/]* ) . $cache_file;;
1476      *)                      . ./$cache_file;;
1477    esac
1478  fi
1479else
1480  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1481echo "$as_me: creating cache $cache_file" >&6;}
1482  >$cache_file
1483fi
1484
1485# Check that the precious variables saved in the cache have kept the same
1486# value.
1487ac_cache_corrupted=false
1488for ac_var in `(set) 2>&1 |
1489	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1490  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1491  eval ac_new_set=\$ac_env_${ac_var}_set
1492  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1493  eval ac_new_val="\$ac_env_${ac_var}_value"
1494  case $ac_old_set,$ac_new_set in
1495    set,)
1496      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1497echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1498      ac_cache_corrupted=: ;;
1499    ,set)
1500      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1501echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1502      ac_cache_corrupted=: ;;
1503    ,);;
1504    *)
1505      if test "x$ac_old_val" != "x$ac_new_val"; then
1506	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1507echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1508	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1509echo "$as_me:   former value:  $ac_old_val" >&2;}
1510	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1511echo "$as_me:   current value: $ac_new_val" >&2;}
1512	ac_cache_corrupted=:
1513      fi;;
1514  esac
1515  # Pass precious variables to config.status.
1516  if test "$ac_new_set" = set; then
1517    case $ac_new_val in
1518    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1519      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1520    *) ac_arg=$ac_var=$ac_new_val ;;
1521    esac
1522    case " $ac_configure_args " in
1523      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1524      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1525    esac
1526  fi
1527done
1528if $ac_cache_corrupted; then
1529  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533   { (exit 1); exit 1; }; }
1534fi
1535
1536ac_ext=c
1537ac_cpp='$CPP $CPPFLAGS'
1538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540ac_compiler_gnu=$ac_cv_c_compiler_gnu
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571# List one file in the package so that the configure script can test
1572# whether the package is actually there
1573
1574
1575# Where should everything be installed by default?  Here, we want it
1576# to be installed directly in 'bin', 'lib', 'include' subdirectories
1577# of the directory where configure is run.  The default would be
1578# /usr/local.
1579
1580
1581#############################################################################
1582#                         Standard build tool stuff                         #
1583#############################################################################
1584
1585# Get the system type
1586ac_aux_dir=
1587for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1588  if test -f $ac_dir/install-sh; then
1589    ac_aux_dir=$ac_dir
1590    ac_install_sh="$ac_aux_dir/install-sh -c"
1591    break
1592  elif test -f $ac_dir/install.sh; then
1593    ac_aux_dir=$ac_dir
1594    ac_install_sh="$ac_aux_dir/install.sh -c"
1595    break
1596  elif test -f $ac_dir/shtool; then
1597    ac_aux_dir=$ac_dir
1598    ac_install_sh="$ac_aux_dir/shtool install -c"
1599    break
1600  fi
1601done
1602if test -z "$ac_aux_dir"; then
1603  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1604echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1605   { (exit 1); exit 1; }; }
1606fi
1607ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610
1611# Make sure we can run config.sub.
1612$ac_config_sub sun4 >/dev/null 2>&1 ||
1613  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615   { (exit 1); exit 1; }; }
1616
1617echo "$as_me:$LINENO: checking build system type" >&5
1618echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619if test "${ac_cv_build+set}" = set; then
1620  echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622  ac_cv_build_alias=$build_alias
1623test -z "$ac_cv_build_alias" &&
1624  ac_cv_build_alias=`$ac_config_guess`
1625test -z "$ac_cv_build_alias" &&
1626  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628   { (exit 1); exit 1; }; }
1629ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632   { (exit 1); exit 1; }; }
1633
1634fi
1635echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636echo "${ECHO_T}$ac_cv_build" >&6
1637build=$ac_cv_build
1638build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641
1642
1643
1644# If this project depends on external projects, the Externals file in
1645# the source root directory contains definition of where to find those
1646# externals.  The following macro ensures that those externals are
1647# retrieved by svn if they are not there yet.
1648
1649# As backup, we make sure we don't loose an FLIBS if it has been set
1650# by the user
1651save_FLIBS="$FLIBS"
1652
1653# A useful makefile conditional that is always false
1654
1655
1656if false; then
1657  ALWAYS_FALSE_TRUE=
1658  ALWAYS_FALSE_FALSE='#'
1659else
1660  ALWAYS_FALSE_TRUE='#'
1661  ALWAYS_FALSE_FALSE=
1662fi
1663
1664
1665# We set the following variable so that we know later in AC_COIN_FINALIZE
1666# that we are in a project main directory
1667coin_projectdir=yes
1668
1669# Set the project's version numbers
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define CREME_VERSION "$PACKAGE_VERSION"
1674_ACEOF
1675
1676
1677  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1678  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1679  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1680  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1681  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1682  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1683
1684cat >>confdefs.h <<_ACEOF
1685#define CREME_VERSION_MAJOR $coin_majorver
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define CREME_VERSION_MINOR $coin_minorver
1691_ACEOF
1692
1693
1694cat >>confdefs.h <<_ACEOF
1695#define CREME_VERSION_RELEASE $coin_releasever
1696_ACEOF
1697
1698
1699  # We use the following variable to have a string with the upper case
1700  # version of the project name
1701  COIN_PRJCT=CREME
1702
1703  # Set the project's SVN revision number. The complicated sed expression
1704  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1705  # as a single number.
1706  # Extract the first word of "svnversion", so it can be a program name with args.
1707set dummy svnversion; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_have_svnversion+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  if test -n "$have_svnversion"; then
1714  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719  IFS=$as_save_IFS
1720  test -z "$as_dir" && as_dir=.
1721  for ac_exec_ext in '' $ac_executable_extensions; do
1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723    ac_cv_prog_have_svnversion="yes"
1724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725    break 2
1726  fi
1727done
1728done
1729
1730  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1731fi
1732fi
1733have_svnversion=$ac_cv_prog_have_svnversion
1734if test -n "$have_svnversion"; then
1735  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1736echo "${ECHO_T}$have_svnversion" >&6
1737else
1738  echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742  if test "x$have_svnversion" = xyes; then
1743
1744    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1745    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1746      CREME_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1747
1748cat >>confdefs.h <<_ACEOF
1749#define CREME_SVN_REV $CREME_SVN_REV
1750_ACEOF
1751
1752    fi
1753  fi
1754
1755
1756
1757# Capture libtool library version, if given.
1758
1759
1760
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787# Check whether --enable-debug-creme or --disable-debug-creme was given.
1788if test "${enable_debug_creme+set}" = set; then
1789  enableval="$enable_debug_creme"
1790  case "${enableval}" in
1791    yes) coin_debug_compile=true
1792         ;;
1793    no)  coin_debug_compile=false
1794         ;;
1795    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-creme" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug-creme" >&2;}
1797   { (exit 1); exit 1; }; }
1798         ;;
1799 esac
1800else
1801  :
1802fi;
1803
1804 # m4_ifvaln([Creme],
1805
1806if test $coin_debug_compile = true; then
1807  echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812fi
1813
1814
1815# Check whether --with-creme-verbosity or --without-creme-verbosity was given.
1816if test "${with_creme_verbosity+set}" = set; then
1817  withval="$with_creme_verbosity"
1818  if test "$withval" = yes; then
1819                withval=1
1820              fi
1821              coin_creme_verbosity=$withval
1822else
1823  coin_creme_verbosity=0
1824fi;
1825
1826cat >>confdefs.h <<_ACEOF
1827#define COIN_CREME_VERBOSITY $coin_creme_verbosity
1828_ACEOF
1829
1830
1831
1832# Check whether --with-creme-checklevel or --without-creme-checklevel was given.
1833if test "${with_creme_checklevel+set}" = set; then
1834  withval="$with_creme_checklevel"
1835  if test "$withval" = yes; then
1836                withval=1
1837              fi
1838              coin_creme_checklevel=$withval
1839else
1840  coin_creme_checklevel=0
1841fi;
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COIN_CREME_CHECKLEVEL $coin_creme_checklevel
1845_ACEOF
1846
1847
1848 # m4_ifvaln([Creme],
1849
1850
1851
1852# Get the name of the C compiler and appropriate compiler options
1853case $build in
1854  *-mingw*)
1855    if test "${LD+set}" = set; then :; else
1856      LD=link
1857    fi
1858    ;;
1859 esac
1860 case $enable_doscompile in
1861   msvc)
1862     if test "x${LD+set}" = xset; then :; else
1863       LD=link
1864     fi
1865     ;;
1866 esac
1867
1868
1869 # Check whether --enable-doscompile or --disable-doscompile was given.
1870if test "${enable_doscompile+set}" = set; then
1871  enableval="$enable_doscompile"
1872  if test "$enable_doscompile" != no; then
1873     case $build in
1874       *-cygwin* | *-mingw*) ;;
1875       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1876echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1877   { (exit 1); exit 1; }; } ;;
1878     esac
1879   fi
1880else
1881  enable_doscompile=no
1882fi;
1883 case "$enable_doscompile" in
1884   mingw)
1885     case $build in
1886       *-mingw*) enable_doscompile=no ;;
1887     esac
1888     ;;
1889   msvc|no) ;;
1890   yes) enable_doscompile=mingw ;;
1891   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1892		    Try configure --help=recursive." >&5
1893echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1894		    Try configure --help=recursive." >&2;}
1895   { (exit 1); exit 1; }; }
1896      ;;
1897  esac
1898  if test "$enable_doscompile" != no ; then
1899    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1900echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1901  fi
1902
1903
1904
1905
1906ac_ext=c
1907ac_cpp='$CPP $CPPFLAGS'
1908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911
1912
1913# For consistency, we set the C compiler to the same value of the C++
1914# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1915if test x"$CXX" != x; then
1916  case "$CXX" in
1917    clang* ) ;;
1918    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1919      if test x"$CC" = x; then
1920        CC="$CXX"
1921        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1922echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1923      fi
1924      ;;
1925  esac
1926fi
1927
1928
1929
1930
1931
1932
1933coin_has_cc=yes
1934
1935save_cflags="$CFLAGS"
1936
1937# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1938# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1939# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1940# compiler. In this case, put cc after gcc.
1941
1942case $build in
1943  *-cygwin* | *-mingw*)
1944  	     if test "$enable_doscompile" = msvc ; then
1945	       comps="icl cl"
1946	     else
1947	       comps="gcc cl"
1948	     fi ;;
1949  *-*-solaris*)
1950	     # Extract the first word of "cc", so it can be a program name with args.
1951set dummy cc; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1955  echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957  if test -n "$sol_cc_compiler"; then
1958  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1959else
1960  ac_prog_rejected=no
1961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962for as_dir in $PATH
1963do
1964  IFS=$as_save_IFS
1965  test -z "$as_dir" && as_dir=.
1966  for ac_exec_ext in '' $ac_executable_extensions; do
1967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1969       ac_prog_rejected=yes
1970       continue
1971     fi
1972    ac_cv_prog_sol_cc_compiler="cc"
1973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974    break 2
1975  fi
1976done
1977done
1978
1979if test $ac_prog_rejected = yes; then
1980  # We found a bogon in the path, so make sure we never use it.
1981  set dummy $ac_cv_prog_sol_cc_compiler
1982  shift
1983  if test $# != 0; then
1984    # We chose a different compiler from the bogus one.
1985    # However, it has the same basename, so the bogon will be chosen
1986    # first if we set sol_cc_compiler to just the basename; use the full file name.
1987    shift
1988    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1989  fi
1990fi
1991fi
1992fi
1993sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1994if test -n "$sol_cc_compiler"; then
1995  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1996echo "${ECHO_T}$sol_cc_compiler" >&6
1997else
1998  echo "$as_me:$LINENO: result: no" >&5
1999echo "${ECHO_T}no" >&6
2000fi
2001
2002	     if test "$sol_cc_compiler" = "cc" ; then
2003	       comps="cc xlc gcc pgcc icc"
2004	     else
2005	       comps="xlc gcc pgcc icc cc"
2006	     fi
2007	     ;;
2008  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2009  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2010  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2011esac
2012
2013# We delete the cached value, since the test might not have been
2014# performed with our choice of compilers earlier
2015$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2016# AC_MSG_NOTICE([C compiler candidates: $comps])
2017ac_ext=c
2018ac_cpp='$CPP $CPPFLAGS'
2019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022if test -n "$ac_tool_prefix"; then
2023  for ac_prog in $comps
2024  do
2025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029if test "${ac_cv_prog_CC+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test -n "$CC"; then
2033  ac_cv_prog_CC="$CC" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040  for ac_exec_ext in '' $ac_executable_extensions; do
2041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044    break 2
2045  fi
2046done
2047done
2048
2049fi
2050fi
2051CC=$ac_cv_prog_CC
2052if test -n "$CC"; then
2053  echo "$as_me:$LINENO: result: $CC" >&5
2054echo "${ECHO_T}$CC" >&6
2055else
2056  echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060    test -n "$CC" && break
2061  done
2062fi
2063if test -z "$CC"; then
2064  ac_ct_CC=$CC
2065  for ac_prog in $comps
2066do
2067  # Extract the first word of "$ac_prog", so it can be a program name with args.
2068set dummy $ac_prog; ac_word=$2
2069echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072  echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074  if test -n "$ac_ct_CC"; then
2075  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082  for ac_exec_ext in '' $ac_executable_extensions; do
2083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084    ac_cv_prog_ac_ct_CC="$ac_prog"
2085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086    break 2
2087  fi
2088done
2089done
2090
2091fi
2092fi
2093ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094if test -n "$ac_ct_CC"; then
2095  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096echo "${ECHO_T}$ac_ct_CC" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102  test -n "$ac_ct_CC" && break
2103done
2104
2105  CC=$ac_ct_CC
2106fi
2107
2108
2109test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: no acceptable C compiler found in \$PATH
2112See \`config.log' for more details." >&2;}
2113   { (exit 1); exit 1; }; }
2114
2115# Provide some information about the compiler.
2116echo "$as_me:$LINENO:" \
2117     "checking for C compiler version" >&5
2118ac_compiler=`set X $ac_compile; echo $2`
2119{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120  (eval $ac_compiler --version </dev/null >&5) 2>&5
2121  ac_status=$?
2122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123  (exit $ac_status); }
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125  (eval $ac_compiler -v </dev/null >&5) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130  (eval $ac_compiler -V </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134
2135cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h.  */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h.  */
2141
2142int
2143main ()
2144{
2145
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150ac_clean_files_save=$ac_clean_files
2151ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152# Try to create an executable without -o first, disregard a.out.
2153# It will help us diagnose broken compilers, and finding out an intuition
2154# of exeext.
2155echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159  (eval $ac_link_default) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; then
2163  # Find the output, starting from the most likely.  This scheme is
2164# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165# resort.
2166
2167# Be careful to initialize this variable, since it used to be cached.
2168# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169ac_cv_exeext=
2170# b.out is created by i960 compilers.
2171for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172do
2173  test -f "$ac_file" || continue
2174  case $ac_file in
2175    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176	;;
2177    conftest.$ac_ext )
2178	# This is the source file.
2179	;;
2180    [ab].out )
2181	# We found the default executable, but exeext='' is most
2182	# certainly right.
2183	break;;
2184    *.* )
2185	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186	# FIXME: I believe we export ac_cv_exeext for Libtool,
2187	# but it would be cool to find out if it's true.  Does anybody
2188	# maintain Libtool? --akim.
2189	export ac_cv_exeext
2190	break;;
2191    * )
2192	break;;
2193  esac
2194done
2195else
2196  echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: C compiler cannot create executables
2202See \`config.log' for more details." >&2;}
2203   { (exit 77); exit 77; }; }
2204fi
2205
2206ac_exeext=$ac_cv_exeext
2207echo "$as_me:$LINENO: result: $ac_file" >&5
2208echo "${ECHO_T}$ac_file" >&6
2209
2210# Check the compiler produces executables we can run.  If not, either
2211# the compiler is broken, or we cross compile.
2212echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215# If not cross compiling, check that we can run a simple program.
2216if test "$cross_compiling" != yes; then
2217  if { ac_try='./$ac_file'
2218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219  (eval $ac_try) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }; }; then
2223    cross_compiling=no
2224  else
2225    if test "$cross_compiling" = maybe; then
2226	cross_compiling=yes
2227    else
2228	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&2;}
2234   { (exit 1); exit 1; }; }
2235    fi
2236  fi
2237fi
2238echo "$as_me:$LINENO: result: yes" >&5
2239echo "${ECHO_T}yes" >&6
2240
2241rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242ac_clean_files=$ac_clean_files_save
2243# Check the compiler produces executables we can run.  If not, either
2244# the compiler is broken, or we cross compile.
2245echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248echo "${ECHO_T}$cross_compiling" >&6
2249
2250echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253  (eval $ac_link) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; then
2257  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2259# work properly (i.e., refer to `conftest.exe'), while it won't with
2260# `rm'.
2261for ac_file in conftest.exe conftest conftest.*; do
2262  test -f "$ac_file" || continue
2263  case $ac_file in
2264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266	  export ac_cv_exeext
2267	  break;;
2268    * ) break;;
2269  esac
2270done
2271else
2272  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&5
2274echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&2;}
2276   { (exit 1); exit 1; }; }
2277fi
2278
2279rm -f conftest$ac_cv_exeext
2280echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281echo "${ECHO_T}$ac_cv_exeext" >&6
2282
2283rm -f conftest.$ac_ext
2284EXEEXT=$ac_cv_exeext
2285ac_exeext=$EXEEXT
2286echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288if test "${ac_cv_objext+set}" = set; then
2289  echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291  cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297
2298int
2299main ()
2300{
2301
2302  ;
2303  return 0;
2304}
2305_ACEOF
2306rm -f conftest.o conftest.obj
2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308  (eval $ac_compile) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; then
2312  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313  case $ac_file in
2314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2316       break;;
2317  esac
2318done
2319else
2320  echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
2323{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324See \`config.log' for more details." >&5
2325echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&2;}
2327   { (exit 1); exit 1; }; }
2328fi
2329
2330rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331fi
2332echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333echo "${ECHO_T}$ac_cv_objext" >&6
2334OBJEXT=$ac_cv_objext
2335ac_objext=$OBJEXT
2336echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341  cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347
2348int
2349main ()
2350{
2351#ifndef __GNUC__
2352       choke me
2353#endif
2354
2355  ;
2356  return 0;
2357}
2358_ACEOF
2359rm -f conftest.$ac_objext
2360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361  (eval $ac_compile) 2>conftest.er1
2362  ac_status=$?
2363  grep -v '^ *+' conftest.er1 >conftest.err
2364  rm -f conftest.er1
2365  cat conftest.err >&5
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); } &&
2368	 { ac_try='test -z "$ac_c_werror_flag"
2369			 || test ! -s conftest.err'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; } &&
2375	 { ac_try='test -s conftest.$ac_objext'
2376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377  (eval $ac_try) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }; }; then
2381  ac_compiler_gnu=yes
2382else
2383  echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386ac_compiler_gnu=no
2387fi
2388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389ac_cv_c_compiler_gnu=$ac_compiler_gnu
2390
2391fi
2392echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394GCC=`test $ac_compiler_gnu = yes && echo yes`
2395ac_test_CFLAGS=${CFLAGS+set}
2396ac_save_CFLAGS=$CFLAGS
2397CFLAGS="-g"
2398echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400if test "${ac_cv_prog_cc_g+set}" = set; then
2401  echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403  cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h.  */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h.  */
2409
2410int
2411main ()
2412{
2413
2414  ;
2415  return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420  (eval $ac_compile) 2>conftest.er1
2421  ac_status=$?
2422  grep -v '^ *+' conftest.er1 >conftest.err
2423  rm -f conftest.er1
2424  cat conftest.err >&5
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); } &&
2427	 { ac_try='test -z "$ac_c_werror_flag"
2428			 || test ! -s conftest.err'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; } &&
2434	 { ac_try='test -s conftest.$ac_objext'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; }; then
2440  ac_cv_prog_cc_g=yes
2441else
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445ac_cv_prog_cc_g=no
2446fi
2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448fi
2449echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451if test "$ac_test_CFLAGS" = set; then
2452  CFLAGS=$ac_save_CFLAGS
2453elif test $ac_cv_prog_cc_g = yes; then
2454  if test "$GCC" = yes; then
2455    CFLAGS="-g -O2"
2456  else
2457    CFLAGS="-g"
2458  fi
2459else
2460  if test "$GCC" = yes; then
2461    CFLAGS="-O2"
2462  else
2463    CFLAGS=
2464  fi
2465fi
2466echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469  echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471  ac_cv_prog_cc_stdc=no
2472ac_save_CC=$CC
2473cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479#include <stdarg.h>
2480#include <stdio.h>
2481#include <sys/types.h>
2482#include <sys/stat.h>
2483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2484struct buf { int x; };
2485FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486static char *e (p, i)
2487     char **p;
2488     int i;
2489{
2490  return p[i];
2491}
2492static char *f (char * (*g) (char **, int), char **p, ...)
2493{
2494  char *s;
2495  va_list v;
2496  va_start (v,p);
2497  s = g (p, va_arg (v,int));
2498  va_end (v);
2499  return s;
2500}
2501
2502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2503   function prototypes and stuff, but not '\xHH' hex character constants.
2504   These don't provoke an error unfortunately, instead are silently treated
2505   as 'x'.  The following induces an error, until -std1 is added to get
2506   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2507   array size at least.  It's necessary to write '\x00'==0 to get something
2508   that's true only with -std1.  */
2509int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2510
2511int test (int i, double x);
2512struct s1 {int (*f) (int a);};
2513struct s2 {int (*f) (double a);};
2514int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2515int argc;
2516char **argv;
2517int
2518main ()
2519{
2520return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525# Don't try gcc -ansi; that turns off useful extensions and
2526# breaks some systems' header files.
2527# AIX			-qlanglvl=ansi
2528# Ultrix and OSF/1	-std1
2529# HP-UX 10.20 and later	-Ae
2530# HP-UX older versions	-Aa -D_HPUX_SOURCE
2531# SVR4			-Xc -D__EXTENSIONS__
2532for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2533do
2534  CC="$ac_save_CC $ac_arg"
2535  rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544	 { ac_try='test -z "$ac_c_werror_flag"
2545			 || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551	 { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  ac_cv_prog_cc_stdc=$ac_arg
2558break
2559else
2560  echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563fi
2564rm -f conftest.err conftest.$ac_objext
2565done
2566rm -f conftest.$ac_ext conftest.$ac_objext
2567CC=$ac_save_CC
2568
2569fi
2570
2571case "x$ac_cv_prog_cc_stdc" in
2572  x|xno)
2573    echo "$as_me:$LINENO: result: none needed" >&5
2574echo "${ECHO_T}none needed" >&6 ;;
2575  *)
2576    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578    CC="$CC $ac_cv_prog_cc_stdc" ;;
2579esac
2580
2581# Some people use a C++ compiler to compile C.  Since we use `exit',
2582# in C++ we need to declare it.  In case someone uses the same compiler
2583# for both compiling C and C++ we need to have the C++ compiler decide
2584# the declaration of exit, since it's the most demanding environment.
2585cat >conftest.$ac_ext <<_ACEOF
2586#ifndef __cplusplus
2587  choke me
2588#endif
2589_ACEOF
2590rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } &&
2599	 { ac_try='test -z "$ac_c_werror_flag"
2600			 || test ! -s conftest.err'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; } &&
2606	 { ac_try='test -s conftest.$ac_objext'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; }; then
2612  for ac_declaration in \
2613   '' \
2614   'extern "C" void std::exit (int) throw (); using std::exit;' \
2615   'extern "C" void std::exit (int); using std::exit;' \
2616   'extern "C" void exit (int) throw ();' \
2617   'extern "C" void exit (int);' \
2618   'void exit (int);'
2619do
2620  cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h.  */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h.  */
2626$ac_declaration
2627#include <stdlib.h>
2628int
2629main ()
2630{
2631exit (42);
2632  ;
2633  return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638  (eval $ac_compile) 2>conftest.er1
2639  ac_status=$?
2640  grep -v '^ *+' conftest.er1 >conftest.err
2641  rm -f conftest.er1
2642  cat conftest.err >&5
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); } &&
2645	 { ac_try='test -z "$ac_c_werror_flag"
2646			 || test ! -s conftest.err'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; } &&
2652	 { ac_try='test -s conftest.$ac_objext'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; }; then
2658  :
2659else
2660  echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663continue
2664fi
2665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666  cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672$ac_declaration
2673int
2674main ()
2675{
2676exit (42);
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683  (eval $ac_compile) 2>conftest.er1
2684  ac_status=$?
2685  grep -v '^ *+' conftest.er1 >conftest.err
2686  rm -f conftest.er1
2687  cat conftest.err >&5
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); } &&
2690	 { ac_try='test -z "$ac_c_werror_flag"
2691			 || test ! -s conftest.err'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; } &&
2697	 { ac_try='test -s conftest.$ac_objext'
2698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); }; }; then
2703  break
2704else
2705  echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708fi
2709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710done
2711rm -f conftest*
2712if test -n "$ac_declaration"; then
2713  echo '#ifdef __cplusplus' >>confdefs.h
2714  echo $ac_declaration      >>confdefs.h
2715  echo '#endif'             >>confdefs.h
2716fi
2717
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730if test -z "$CC" ; then
2731  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2732echo "$as_me: error: Failed to find a C compiler!" >&2;}
2733   { (exit 1); exit 1; }; }
2734fi
2735# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2736case "$CC" in
2737  clang* ) ;;
2738  cl* | */cl* | CL* | */CL* )
2739    if test "$ac_cv_prog_cc_g" = yes ; then
2740      ac_cv_prog_cc_g=no
2741      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2742echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2743    fi ;;
2744esac
2745CFLAGS="$save_cflags"
2746
2747# add automake conditional so we can recognize cl compiler in makefile
2748coin_cc_is_cl=false
2749case "$CC" in
2750  clang* ) ;;
2751  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2752    coin_cc_is_cl=true
2753    ;;
2754esac
2755
2756
2757if test $coin_cc_is_cl = true; then
2758  COIN_CC_IS_CL_TRUE=
2759  COIN_CC_IS_CL_FALSE='#'
2760else
2761  COIN_CC_IS_CL_TRUE='#'
2762  COIN_CC_IS_CL_FALSE=
2763fi
2764
2765
2766# Check if a project specific CFLAGS variable has been set
2767if test x$COIN_PRJCT != x; then
2768  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2769  if test x$coin_tmp = xset; then
2770    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2771  fi
2772fi
2773
2774if test x"$CFLAGS" = x; then
2775
2776  coin_add_cflags=
2777  coin_opt_cflags=
2778  coin_dbg_cflags=
2779  coin_warn_cflags=
2780
2781  if test "$GCC" = "yes"; then
2782    case "$CC" in
2783      icc* | */icc*)
2784        ;;
2785      *)
2786        coin_opt_cflags="-O3"
2787        coin_add_cflags="-pipe"
2788        coin_dbg_cflags="-g -O0"
2789        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2790        case $build in
2791          *-darwin*)
2792            ;;
2793          *)
2794            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2795            ;;
2796        esac
2797	case $enable_doscompile in
2798	  mingw)
2799	    CFLAGS="-mno-cygwin"
2800	    cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810int i=0; i++;
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815rm -f conftest.$ac_objext conftest$ac_exeext
2816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2817  (eval $ac_link) 2>conftest.er1
2818  ac_status=$?
2819  grep -v '^ *+' conftest.er1 >conftest.err
2820  rm -f conftest.er1
2821  cat conftest.err >&5
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } &&
2824	 { ac_try='test -z "$ac_c_werror_flag"
2825			 || test ! -s conftest.err'
2826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827  (eval $ac_try) 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; } &&
2831	 { ac_try='test -s conftest$ac_exeext'
2832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833  (eval $ac_try) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }; }; then
2837  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2838else
2839  echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842fi
2843rm -f conftest.err conftest.$ac_objext \
2844      conftest$ac_exeext conftest.$ac_ext
2845	    CFLAGS=
2846	  ;;
2847	esac
2848    esac
2849  fi
2850  if test -z "$coin_opt_cflags"; then
2851    case $build in
2852      *-cygwin* | *-mingw*)
2853        case "$CC" in
2854          clang* ) ;;
2855          cl* | */cl* | CL* | */CL*)
2856            coin_opt_cflags='-MT -O2'
2857            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2858            coin_dbg_cflags='-MTd'
2859            ;;
2860          icl* | */icl* | ICL* | */ICL*)
2861            coin_opt_cflags='-MT -Ox'
2862            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2863            coin_dbg_cflags='-MTd -debug'
2864            ;;
2865        esac
2866        ;;
2867      *-linux-*)
2868        case "$CC" in
2869          icc* | */icc*)
2870            coin_opt_cflags="-O3 -ip -mp1"
2871            coin_add_cflags=""
2872            coin_dbg_cflags="-g"
2873            # Check if -i_dynamic is necessary (for new glibc library)
2874            CFLAGS=
2875            cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h.  */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885int i=0; i++;
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext conftest$ac_exeext
2891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2892  (eval $ac_link) 2>conftest.er1
2893  ac_status=$?
2894  grep -v '^ *+' conftest.er1 >conftest.err
2895  rm -f conftest.er1
2896  cat conftest.err >&5
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); } &&
2899	 { ac_try='test -z "$ac_c_werror_flag"
2900			 || test ! -s conftest.err'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; } &&
2906	 { ac_try='test -s conftest$ac_exeext'
2907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; }; then
2912  :
2913else
2914  echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917coin_add_cflags="-i_dynamic $coin_add_cflags"
2918fi
2919rm -f conftest.err conftest.$ac_objext \
2920      conftest$ac_exeext conftest.$ac_ext
2921            ;;
2922          pgcc* | */pgcc*)
2923            coin_opt_cflags="-fast"
2924            coin_add_cflags="-Kieee -pc 64"
2925            coin_dbg_cflags="-g"
2926            ;;
2927        esac
2928        ;;
2929      *-ibm-*)
2930        case "$CC" in
2931          xlc* | */xlc* | mpxlc* | */mpxlc*)
2932            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2933            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2934            coin_dbg_cflags="-g"
2935          ;;
2936        esac
2937        ;;
2938      *-hp-*)
2939        coin_opt_cflags="-O"
2940        coin_add_cflags="-Ae"
2941        coin_dbg_cflags="-g"
2942        ;;
2943      *-*-solaris*)
2944        coin_opt_cflags="-xO4"
2945        coin_dbg_cflags="-g"
2946        ;;
2947      *-sgi-*)
2948        coin_opt_cflags="-O -OPT:Olimit=0"
2949        coin_dbg_cflags="-g"
2950        ;;
2951    esac
2952  fi
2953
2954  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2955    coin_dbg_cflags="-g"
2956  fi
2957
2958  if test -z "$coin_opt_cflags"; then
2959    # Try if -O option works if nothing else is set
2960    CFLAGS="-O"
2961    cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971int i=0; i++;
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext conftest$ac_exeext
2977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978  (eval $ac_link) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985	 { ac_try='test -z "$ac_c_werror_flag"
2986			 || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992	 { ac_try='test -s conftest$ac_exeext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  coin_opt_cflags="-O"
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003fi
3004rm -f conftest.err conftest.$ac_objext \
3005      conftest$ac_exeext conftest.$ac_ext
3006  fi
3007
3008  # if PM doesn't want the warning messages, take them out
3009  if test x"$coin_skip_warn_cflags" = xyes; then
3010    coin_warn_cflags=
3011  fi
3012
3013  if test x${DBG_CFLAGS+set} != xset; then
3014    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3015  fi
3016  if test x${OPT_CFLAGS+set} != xset; then
3017    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3018  fi
3019
3020  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3021  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3022
3023  if test "$coin_debug_compile" = "true"; then
3024    CFLAGS="$DBG_CFLAGS"
3025  else
3026    CFLAGS="$OPT_CFLAGS"
3027  fi
3028else
3029  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3030  if test x${DBG_CFLAGS+set} != xset; then
3031    DBG_CFLAGS="$CFLAGS"
3032  fi
3033  if test x${OPT_CFLAGS+set} != xset; then
3034    OPT_CFLAGS="$CFLAGS"
3035  fi
3036fi
3037
3038# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3039
3040case "$CFLAGS" in
3041  *-mno-cygwin*)
3042    if test x${CPPFLAGS+set} != xset ; then
3043      CPPFLAGS="-mno-cygwin"
3044    else
3045      case "$CPPFLAGS" in
3046        *-mno-cygwin*)
3047	  ;;
3048	*)
3049	  CPPFLAGS="$CPPFLAGS -mno-cygwin"
3050	  ;;
3051      esac
3052    fi ;;
3053esac
3054
3055# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3056if test x$COIN_PRJCT != x; then
3057  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3058fi
3059
3060# Try if CFLAGS works
3061save_CFLAGS="$CFLAGS"
3062cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h.  */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072int i=0; i++;
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext conftest$ac_exeext
3078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079  (eval $ac_link) 2>conftest.er1
3080  ac_status=$?
3081  grep -v '^ *+' conftest.er1 >conftest.err
3082  rm -f conftest.er1
3083  cat conftest.err >&5
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); } &&
3086	 { ac_try='test -z "$ac_c_werror_flag"
3087			 || test ! -s conftest.err'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; } &&
3093	 { ac_try='test -s conftest$ac_exeext'
3094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095  (eval $ac_try) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; }; then
3099  :
3100else
3101  echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104CFLAGS=
3105fi
3106rm -f conftest.err conftest.$ac_objext \
3107      conftest$ac_exeext conftest.$ac_ext
3108if test -z "$CFLAGS"; then
3109  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3110echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3111  CFLAGS='-O'
3112  cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h.  */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h.  */
3118
3119int
3120main ()
3121{
3122int i=0; i++;
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext conftest$ac_exeext
3128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3129  (eval $ac_link) 2>conftest.er1
3130  ac_status=$?
3131  grep -v '^ *+' conftest.er1 >conftest.err
3132  rm -f conftest.er1
3133  cat conftest.err >&5
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); } &&
3136	 { ac_try='test -z "$ac_c_werror_flag"
3137			 || test ! -s conftest.err'
3138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139  (eval $ac_try) 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; } &&
3143	 { ac_try='test -s conftest$ac_exeext'
3144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145  (eval $ac_try) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; }; then
3149  :
3150else
3151  echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154CFLAGS=
3155fi
3156rm -f conftest.err conftest.$ac_objext \
3157      conftest$ac_exeext conftest.$ac_ext
3158  if test -z "$CFLAGS"; then
3159    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3160echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3161  fi
3162fi
3163
3164{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3165echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3166
3167
3168if test x"$MPICC" = x; then :; else
3169  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3170echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3171  CC="$MPICC"
3172fi
3173
3174# Correct the LD variable if we are using the MS or Intel-windows compiler
3175case "$CC" in
3176  clang* ) ;;
3177  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3178    case $build in
3179  *-mingw*)
3180    if test "${LD+set}" = set; then :; else
3181      LD=link
3182    fi
3183    ;;
3184 esac
3185 case $enable_doscompile in
3186   msvc)
3187     if test "x${LD+set}" = xset; then :; else
3188       LD=link
3189     fi
3190     ;;
3191 esac
3192
3193    ;;
3194esac
3195
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202
3203
3204# Initialize automake and libtool
3205{
3206
3207
3208
3209# START
3210
3211# Test if force_shared has been set
3212if test "x" = xforce_shared; then
3213  if test x$enable_shared = xno; then
3214    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3215echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3216   { (exit 1); exit 1; }; }
3217  fi
3218  enable_shared=yes;
3219else
3220  # On Cygwin and AIX, building DLLs doesn't work
3221  case $build in
3222    *-cygwin*)
3223      coin_disable_shared=yes
3224      platform=Cygwin
3225    ;;
3226    *-aix*)
3227      coin_disable_shared=yes
3228      platform=AIX
3229    ;;
3230    *-mingw*)
3231      coin_disable_shared=yes
3232      platform="Msys"
3233#      case "$CXX" in
3234#        cl*)
3235#          coin_disable_shared=yes
3236#          platform="Msys with cl"
3237#      ;;
3238#      esac
3239    ;;
3240  esac
3241fi
3242if test x"$coin_disable_shared" = xyes; then
3243  if test x"$enable_shared" = xyes; then
3244    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3245echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3246  fi
3247  enable_shared=no
3248fi
3249# By default, we only want the shared objects to be compiled
3250# Check whether --enable-static or --disable-static was given.
3251if test "${enable_static+set}" = set; then
3252  enableval="$enable_static"
3253  p=${PACKAGE-default}
3254    case $enableval in
3255    yes) enable_static=yes ;;
3256    no) enable_static=no ;;
3257    *)
3258     enable_static=no
3259      # Look at the argument we got.  We use all the common list separators.
3260      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3261      for pkg in $enableval; do
3262	IFS="$lt_save_ifs"
3263	if test "X$pkg" = "X$p"; then
3264	  enable_static=yes
3265	fi
3266      done
3267      IFS="$lt_save_ifs"
3268      ;;
3269    esac
3270else
3271  enable_static=no
3272fi;
3273
3274
3275
3276
3277# Initialize automake
3278echo "$as_me:$LINENO: checking for egrep" >&5
3279echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3280if test "${ac_cv_prog_egrep+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3284    then ac_cv_prog_egrep='grep -E'
3285    else ac_cv_prog_egrep='egrep'
3286    fi
3287fi
3288echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3289echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3290 EGREP=$ac_cv_prog_egrep
3291
3292
3293echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295LN_S=$as_ln_s
3296if test "$LN_S" = "ln -s"; then
3297  echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6
3299else
3300  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301echo "${ECHO_T}no, using $LN_S" >&6
3302fi
3303
3304am__api_version="1.9"
3305# Find a good install program.  We prefer a C program (faster),
3306# so one script is as good as another.  But avoid the broken or
3307# incompatible versions:
3308# SysV /etc/install, /usr/sbin/install
3309# SunOS /usr/etc/install
3310# IRIX /sbin/install
3311# AIX /bin/install
3312# AmigaOS /C/install, which installs bootblocks on floppy discs
3313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3316# OS/2's system install, which has a completely different semantic
3317# ./install, which can be erroneously created by make from ./install.sh.
3318echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3319echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3320if test -z "$INSTALL"; then
3321if test "${ac_cv_path_install+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  # Account for people who put trailing slashes in PATH elements.
3330case $as_dir/ in
3331  ./ | .// | /cC/* | \
3332  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3333  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3334  /usr/ucb/* ) ;;
3335  *)
3336    # OSF1 and SCO ODT 3.0 have their own names for install.
3337    # Don't use installbsd from OSF since it installs stuff as root
3338    # by default.
3339    for ac_prog in ginstall scoinst install; do
3340      for ac_exec_ext in '' $ac_executable_extensions; do
3341	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3342	  if test $ac_prog = install &&
3343	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3344	    # AIX install.  It has an incompatible calling convention.
3345	    :
3346	  elif test $ac_prog = install &&
3347	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3348	    # program-specific install script used by HP pwplus--don't use.
3349	    :
3350	  else
3351	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3352	    break 3
3353	  fi
3354	fi
3355      done
3356    done
3357    ;;
3358esac
3359done
3360
3361
3362fi
3363  if test "${ac_cv_path_install+set}" = set; then
3364    INSTALL=$ac_cv_path_install
3365  else
3366    # As a last resort, use the slow shell script.  We don't cache a
3367    # path for INSTALL within a source directory, because that will
3368    # break other packages using the cache if that directory is
3369    # removed, or if the path is relative.
3370    INSTALL=$ac_install_sh
3371  fi
3372fi
3373echo "$as_me:$LINENO: result: $INSTALL" >&5
3374echo "${ECHO_T}$INSTALL" >&6
3375
3376# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3377# It thinks the first close brace ends the variable substitution.
3378test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3379
3380test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3381
3382test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3383
3384echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3385echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3386# Just in case
3387sleep 1
3388echo timestamp > conftest.file
3389# Do `set' in a subshell so we don't clobber the current shell's
3390# arguments.  Must try -L first in case configure is actually a
3391# symlink; some systems play weird games with the mod time of symlinks
3392# (eg FreeBSD returns the mod time of the symlink's containing
3393# directory).
3394if (
3395   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3396   if test "$*" = "X"; then
3397      # -L didn't work.
3398      set X `ls -t $srcdir/configure conftest.file`
3399   fi
3400   rm -f conftest.file
3401   if test "$*" != "X $srcdir/configure conftest.file" \
3402      && test "$*" != "X conftest.file $srcdir/configure"; then
3403
3404      # If neither matched, then we have a broken ls.  This can happen
3405      # if, for instance, CONFIG_SHELL is bash and it inherits a
3406      # broken ls alias from the environment.  This has actually
3407      # happened.  Such a system could not be considered "sane".
3408      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3409alias in your environment" >&5
3410echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3411alias in your environment" >&2;}
3412   { (exit 1); exit 1; }; }
3413   fi
3414
3415   test "$2" = conftest.file
3416   )
3417then
3418   # Ok.
3419   :
3420else
3421   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3422Check your system clock" >&5
3423echo "$as_me: error: newly created file is older than distributed files!
3424Check your system clock" >&2;}
3425   { (exit 1); exit 1; }; }
3426fi
3427echo "$as_me:$LINENO: result: yes" >&5
3428echo "${ECHO_T}yes" >&6
3429test "$program_prefix" != NONE &&
3430  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3431# Use a double $ so make ignores it.
3432test "$program_suffix" != NONE &&
3433  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3434# Double any \ or $.  echo might interpret backslashes.
3435# By default was `s,x,x', remove it if useless.
3436cat <<\_ACEOF >conftest.sed
3437s/[\\$]/&&/g;s/;s,x,x,$//
3438_ACEOF
3439program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3440rm conftest.sed
3441
3442# expand $ac_aux_dir to an absolute path
3443am_aux_dir=`cd $ac_aux_dir && pwd`
3444
3445test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3446# Use eval to expand $SHELL
3447if eval "$MISSING --run true"; then
3448  am_missing_run="$MISSING --run "
3449else
3450  am_missing_run=
3451  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3452echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3453fi
3454
3455if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3456  # We used to keeping the `.' as first argument, in order to
3457  # allow $(mkdir_p) to be used without argument.  As in
3458  #   $(mkdir_p) $(somedir)
3459  # where $(somedir) is conditionally defined.  However this is wrong
3460  # for two reasons:
3461  #  1. if the package is installed by a user who cannot write `.'
3462  #     make install will fail,
3463  #  2. the above comment should most certainly read
3464  #     $(mkdir_p) $(DESTDIR)$(somedir)
3465  #     so it does not work when $(somedir) is undefined and
3466  #     $(DESTDIR) is not.
3467  #  To support the latter case, we have to write
3468  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3469  #  so the `.' trick is pointless.
3470  mkdir_p='mkdir -p --'
3471else
3472  # On NextStep and OpenStep, the `mkdir' command does not
3473  # recognize any option.  It will interpret all options as
3474  # directories to create, and then abort because `.' already
3475  # exists.
3476  for d in ./-p ./--version;
3477  do
3478    test -d $d && rmdir $d
3479  done
3480  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3481  if test -f "$ac_aux_dir/mkinstalldirs"; then
3482    mkdir_p='$(mkinstalldirs)'
3483  else
3484    mkdir_p='$(install_sh) -d'
3485  fi
3486fi
3487
3488for ac_prog in gawk mawk nawk awk
3489do
3490  # Extract the first word of "$ac_prog", so it can be a program name with args.
3491set dummy $ac_prog; ac_word=$2
3492echo "$as_me:$LINENO: checking for $ac_word" >&5
3493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494if test "${ac_cv_prog_AWK+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  if test -n "$AWK"; then
3498  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  test -z "$as_dir" && as_dir=.
3505  for ac_exec_ext in '' $ac_executable_extensions; do
3506  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507    ac_cv_prog_AWK="$ac_prog"
3508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509    break 2
3510  fi
3511done
3512done
3513
3514fi
3515fi
3516AWK=$ac_cv_prog_AWK
3517if test -n "$AWK"; then
3518  echo "$as_me:$LINENO: result: $AWK" >&5
3519echo "${ECHO_T}$AWK" >&6
3520else
3521  echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523fi
3524
3525  test -n "$AWK" && break
3526done
3527
3528echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3529echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3530set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3531if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3532  echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534  cat >conftest.make <<\_ACEOF
3535all:
3536	@echo 'ac_maketemp="$(MAKE)"'
3537_ACEOF
3538# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3539eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3540if test -n "$ac_maketemp"; then
3541  eval ac_cv_prog_make_${ac_make}_set=yes
3542else
3543  eval ac_cv_prog_make_${ac_make}_set=no
3544fi
3545rm -f conftest.make
3546fi
3547if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3548  echo "$as_me:$LINENO: result: yes" >&5
3549echo "${ECHO_T}yes" >&6
3550  SET_MAKE=
3551else
3552  echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554  SET_MAKE="MAKE=${MAKE-make}"
3555fi
3556
3557rm -rf .tst 2>/dev/null
3558mkdir .tst 2>/dev/null
3559if test -d .tst; then
3560  am__leading_dot=.
3561else
3562  am__leading_dot=_
3563fi
3564rmdir .tst 2>/dev/null
3565
3566DEPDIR="${am__leading_dot}deps"
3567
3568          ac_config_commands="$ac_config_commands depfiles"
3569
3570
3571am_make=${MAKE-make}
3572cat > confinc << 'END'
3573am__doit:
3574	@echo done
3575.PHONY: am__doit
3576END
3577# If we don't find an include directive, just comment out the code.
3578echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3579echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3580am__include="#"
3581am__quote=
3582_am_result=none
3583# First try GNU make style include.
3584echo "include confinc" > confmf
3585# We grep out `Entering directory' and `Leaving directory'
3586# messages which can occur if `w' ends up in MAKEFLAGS.
3587# In particular we don't look at `^make:' because GNU make might
3588# be invoked under some other name (usually "gmake"), in which
3589# case it prints its new name instead of `make'.
3590if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3591   am__include=include
3592   am__quote=
3593   _am_result=GNU
3594fi
3595# Now try BSD make style include.
3596if test "$am__include" = "#"; then
3597   echo '.include "confinc"' > confmf
3598   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3599      am__include=.include
3600      am__quote="\""
3601      _am_result=BSD
3602   fi
3603fi
3604
3605
3606echo "$as_me:$LINENO: result: $_am_result" >&5
3607echo "${ECHO_T}$_am_result" >&6
3608rm -f confinc confmf
3609
3610# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3611if test "${enable_dependency_tracking+set}" = set; then
3612  enableval="$enable_dependency_tracking"
3613
3614fi;
3615if test "x$enable_dependency_tracking" != xno; then
3616  am_depcomp="$ac_aux_dir/depcomp"
3617  AMDEPBACKSLASH='\'
3618fi
3619
3620
3621if test "x$enable_dependency_tracking" != xno; then
3622  AMDEP_TRUE=
3623  AMDEP_FALSE='#'
3624else
3625  AMDEP_TRUE='#'
3626  AMDEP_FALSE=
3627fi
3628
3629
3630
3631
3632
3633
3634# AC_MSG_NOTICE([Beginning automake initialisation.])
3635# Stuff for automake
3636# test to see if srcdir already configured
3637if test "`cd $srcdir && pwd`" != "`pwd`" &&
3638   test -f $srcdir/config.status; then
3639  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3640echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3641   { (exit 1); exit 1; }; }
3642fi
3643
3644# test whether we have cygpath
3645if test -z "$CYGPATH_W"; then
3646  if (cygpath --version) >/dev/null 2>/dev/null; then
3647    CYGPATH_W='cygpath -w'
3648  else
3649    CYGPATH_W=echo
3650  fi
3651fi
3652
3653
3654# Define the identity of the package.
3655 PACKAGE='cr--me'
3656 VERSION='0.0trunk'
3657
3658
3659cat >>confdefs.h <<_ACEOF
3660#define PACKAGE "$PACKAGE"
3661_ACEOF
3662
3663
3664cat >>confdefs.h <<_ACEOF
3665#define VERSION "$VERSION"
3666_ACEOF
3667
3668# Some tools Automake needs.
3669
3670ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3671
3672
3673AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3674
3675
3676AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3677
3678
3679AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3680
3681
3682MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3683
3684install_sh=${install_sh-"$am_aux_dir/install-sh"}
3685
3686# Installed binaries are usually stripped using `strip' when the user
3687# run `make install-strip'.  However `strip' might not be the right
3688# tool to use in cross-compilation environments, therefore Automake
3689# will honor the `STRIP' environment variable to overrule this program.
3690if test "$cross_compiling" != no; then
3691  if test -n "$ac_tool_prefix"; then
3692  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3693set dummy ${ac_tool_prefix}strip; ac_word=$2
3694echo "$as_me:$LINENO: checking for $ac_word" >&5
3695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3696if test "${ac_cv_prog_STRIP+set}" = set; then
3697  echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699  if test -n "$STRIP"; then
3700  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705  IFS=$as_save_IFS
3706  test -z "$as_dir" && as_dir=.
3707  for ac_exec_ext in '' $ac_executable_extensions; do
3708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711    break 2
3712  fi
3713done
3714done
3715
3716fi
3717fi
3718STRIP=$ac_cv_prog_STRIP
3719if test -n "$STRIP"; then
3720  echo "$as_me:$LINENO: result: $STRIP" >&5
3721echo "${ECHO_T}$STRIP" >&6
3722else
3723  echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725fi
3726
3727fi
3728if test -z "$ac_cv_prog_STRIP"; then
3729  ac_ct_STRIP=$STRIP
3730  # Extract the first word of "strip", so it can be a program name with args.
3731set dummy strip; ac_word=$2
3732echo "$as_me:$LINENO: checking for $ac_word" >&5
3733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3735  echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
3737  if test -n "$ac_ct_STRIP"; then
3738  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745  for ac_exec_ext in '' $ac_executable_extensions; do
3746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747    ac_cv_prog_ac_ct_STRIP="strip"
3748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749    break 2
3750  fi
3751done
3752done
3753
3754  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3755fi
3756fi
3757ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3758if test -n "$ac_ct_STRIP"; then
3759  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3760echo "${ECHO_T}$ac_ct_STRIP" >&6
3761else
3762  echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764fi
3765
3766  STRIP=$ac_ct_STRIP
3767else
3768  STRIP="$ac_cv_prog_STRIP"
3769fi
3770
3771fi
3772INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3773
3774# We need awk for the "check" target.  The system "awk" is bad on
3775# some platforms.
3776# Always define AMTAR for backward compatibility.
3777
3778AMTAR=${AMTAR-"${am_missing_run}tar"}
3779
3780am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3781
3782
3783
3784
3785depcc="$CC"   am_compiler_list=
3786
3787echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3789if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793  # We make a subdir and do the tests there.  Otherwise we can end up
3794  # making bogus files that we don't know about and never remove.  For
3795  # instance it was reported that on HP-UX the gcc test will end up
3796  # making a dummy file named `D' -- because `-MD' means `put the output
3797  # in D'.
3798  mkdir conftest.dir
3799  # Copy depcomp to subdir because otherwise we won't find it if we're
3800  # using a relative directory.
3801  cp "$am_depcomp" conftest.dir
3802  cd conftest.dir
3803  # We will build objects and dependencies in a subdirectory because
3804  # it helps to detect inapplicable dependency modes.  For instance
3805  # both Tru64's cc and ICC support -MD to output dependencies as a
3806  # side effect of compilation, but ICC will put the dependencies in
3807  # the current directory while Tru64 will put them in the object
3808  # directory.
3809  mkdir sub
3810
3811  am_cv_CC_dependencies_compiler_type=none
3812  if test "$am_compiler_list" = ""; then
3813     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814  fi
3815  for depmode in $am_compiler_list; do
3816    # Setup a source with many dependencies, because some compilers
3817    # like to wrap large dependency lists on column 80 (with \), and
3818    # we should not choose a depcomp mode which is confused by this.
3819    #
3820    # We need to recreate these files for each test, as the compiler may
3821    # overwrite some of them when testing with obscure command lines.
3822    # This happens at least with the AIX C compiler.
3823    : > sub/conftest.c
3824    for i in 1 2 3 4 5 6; do
3825      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827      # Solaris 8's {/usr,}/bin/sh.
3828      touch sub/conftst$i.h
3829    done
3830    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832    case $depmode in
3833    nosideeffect)
3834      # after this tag, mechanisms are not by side-effect, so they'll
3835      # only be used when explicitly requested
3836      if test "x$enable_dependency_tracking" = xyes; then
3837	continue
3838      else
3839	break
3840      fi
3841      ;;
3842    none) break ;;
3843    esac
3844    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845    # mode.  It turns out that the SunPro C++ compiler does not properly
3846    # handle `-M -o', and we need to detect this.
3847    if depmode=$depmode \
3848       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851         >/dev/null 2>conftest.err &&
3852       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855      # icc doesn't choke on unknown options, it will just issue warnings
3856      # or remarks (even with -Werror).  So we grep stderr for any message
3857      # that says an option was ignored or not supported.
3858      # When given -MP, icc 7.0 and 7.1 complain thusly:
3859      #   icc: Command line warning: ignoring option '-M'; no argument required
3860      # The diagnosis changed in icc 8.0:
3861      #   icc: Command line remark: option '-MP' not supported
3862      if (grep 'ignoring option' conftest.err ||
3863          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864        am_cv_CC_dependencies_compiler_type=$depmode
3865        break
3866      fi
3867    fi
3868  done
3869
3870  cd ..
3871  rm -rf conftest.dir
3872else
3873  am_cv_CC_dependencies_compiler_type=none
3874fi
3875
3876fi
3877echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3879CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3880
3881
3882
3883if
3884  test "x$enable_dependency_tracking" != xno \
3885  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886  am__fastdepCC_TRUE=
3887  am__fastdepCC_FALSE='#'
3888else
3889  am__fastdepCC_TRUE='#'
3890  am__fastdepCC_FALSE=
3891fi
3892
3893
3894
3895echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3896echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3897    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3898if test "${enable_maintainer_mode+set}" = set; then
3899  enableval="$enable_maintainer_mode"
3900  USE_MAINTAINER_MODE=$enableval
3901else
3902  USE_MAINTAINER_MODE=no
3903fi;
3904  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3905echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3906
3907
3908if test $USE_MAINTAINER_MODE = yes; then
3909  MAINTAINER_MODE_TRUE=
3910  MAINTAINER_MODE_FALSE='#'
3911else
3912  MAINTAINER_MODE_TRUE='#'
3913  MAINTAINER_MODE_FALSE=
3914fi
3915
3916  MAINT=$MAINTAINER_MODE_TRUE
3917
3918
3919
3920coin_have_externals=no
3921if test "$enable_maintainer_mode" = yes; then
3922
3923  # If maintainer mode is chosen, we make sure that the correct versions
3924  # of the tools are used, and that we know where libtool.m4 is (to
3925  # recreate acinclude.m4)
3926
3927
3928  LIBTOOLM4=
3929  # Normally, $HOME
3930  AUTOTOOLS_DFLT=$HOME
3931
3932  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3933echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3934if test "${ac_cv_use_correct_autotools+set}" = set; then
3935  echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937  ac_cv_use_correct_autotools=check
3938fi
3939echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3940echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3941
3942  if test $ac_cv_use_correct_autotools = check; then
3943    ac_cv_use_correct_autotools=yes
3944    # Check if we have autoconf
3945    # Extract the first word of "autoconf", so it can be a program name with args.
3946set dummy autoconf; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_have_autoconf+set}" = set; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  if test -n "$have_autoconf"; then
3953  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960  for ac_exec_ext in '' $ac_executable_extensions; do
3961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962    ac_cv_prog_have_autoconf="yes"
3963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967done
3968
3969  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3970fi
3971fi
3972have_autoconf=$ac_cv_prog_have_autoconf
3973if test -n "$have_autoconf"; then
3974  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3975echo "${ECHO_T}$have_autoconf" >&6
3976else
3977  echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
3979fi
3980
3981    if test $have_autoconf = no; then
3982      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3983echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3984   { (exit 1); exit 1; }; }
3985    fi
3986
3987    # Check whether autoconf is the correct version
3988    correct_version='2.59'
3989    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3990    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3991echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3992    autoconf --version > confauto.out 2>&1
3993    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3994      echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996    else
3997      rm -f confauto.out
3998      echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
4000      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4001echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4002   { (exit 1); exit 1; }; }
4003    fi
4004    rm -f confauto.out
4005
4006    # Check if the executable autoconf is picked up from the correct location
4007    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4008echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4009    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4010    autoconf_dir=`cd $autoconf_dir; pwd`
4011    if test x$AUTOTOOLS_DIR = x; then
4012      want_dir=$AUTOTOOLS_DFLT/bin
4013    else
4014      want_dir=$AUTOTOOLS_DIR/bin
4015    fi
4016    if test $autoconf_dir = `cd $want_dir; pwd`; then
4017      echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6
4019    else
4020      rm -f confauto.out
4021      echo "$as_me:$LINENO: result: no" >&5
4022echo "${ECHO_T}no" >&6
4023      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4024echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4025   { (exit 1); exit 1; }; }
4026    fi
4027
4028    # Check if we have automake
4029    # Extract the first word of "automake", so it can be a program name with args.
4030set dummy automake; ac_word=$2
4031echo "$as_me:$LINENO: checking for $ac_word" >&5
4032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033if test "${ac_cv_prog_have_automake+set}" = set; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  if test -n "$have_automake"; then
4037  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4038else
4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042  IFS=$as_save_IFS
4043  test -z "$as_dir" && as_dir=.
4044  for ac_exec_ext in '' $ac_executable_extensions; do
4045  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046    ac_cv_prog_have_automake="yes"
4047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048    break 2
4049  fi
4050done
4051done
4052
4053  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4054fi
4055fi
4056have_automake=$ac_cv_prog_have_automake
4057if test -n "$have_automake"; then
4058  echo "$as_me:$LINENO: result: $have_automake" >&5
4059echo "${ECHO_T}$have_automake" >&6
4060else
4061  echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063fi
4064
4065    if test $have_automake = no; then
4066      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4067echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4068   { (exit 1); exit 1; }; }
4069    fi
4070
4071    # Check whether automake is the correct version
4072    correct_version='1.9.6'
4073    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4074    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4075echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4076    automake --version > confauto.out 2>&1
4077    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4078      echo "$as_me:$LINENO: result: yes" >&5
4079echo "${ECHO_T}yes" >&6
4080    else
4081      rm -f confauto.out
4082      echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4085echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4086   { (exit 1); exit 1; }; }
4087    fi
4088    rm -f confauto.out
4089
4090    # Check if the executable automake is picked up from the correct location
4091    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4092echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4093    automake_dir=`which automake | sed -e 's=/automake=='`
4094    automake_dir=`cd $automake_dir; pwd`
4095    if test x$AUTOTOOLS_DIR = x; then
4096      want_dir=$AUTOTOOLS_DFLT/bin
4097    else
4098      want_dir=$AUTOTOOLS_DIR/bin
4099    fi
4100    if test $automake_dir = `cd $want_dir; pwd`; then
4101      echo "$as_me:$LINENO: result: yes" >&5
4102echo "${ECHO_T}yes" >&6
4103    else
4104      rm -f confauto.out
4105      echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4108echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4109   { (exit 1); exit 1; }; }
4110    fi
4111
4112    # Check if this is the correct version of libtool (with escaped dots)
4113    if test x$AUTOTOOLS_DIR = x; then
4114      want_dir=$AUTOTOOLS_DFLT/share
4115    else
4116      want_dir=$AUTOTOOLS_DIR/share
4117    fi
4118    correct_version='1.5.22'
4119    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4120    if test -r $want_dir/libtool/ltmain.sh; then
4121  have_ltmain=yes
4122  :
4123else
4124  have_ltmain=no
4125  :
4126fi
4127
4128    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4129echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4130    if test $have_ltmain = yes; then
4131    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4132        echo "$as_me:$LINENO: result: yes" >&5
4133echo "${ECHO_T}yes" >&6
4134      else
4135        echo "$as_me:$LINENO: result: no" >&5
4136echo "${ECHO_T}no" >&6
4137        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4138echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4139   { (exit 1); exit 1; }; }
4140      fi
4141    else
4142      echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
4144      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4145echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4146   { (exit 1); exit 1; }; }
4147    fi
4148  fi
4149
4150  # Check if we can find the libtool file
4151  if test x$AUTOTOOLS_DIR = x; then
4152    want_dir=$AUTOTOOLS_DFLT/share
4153  else
4154    want_dir=$AUTOTOOLS_DIR/share
4155  fi
4156  if test -r $want_dir/aclocal/libtool.m4; then
4157  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4158  :
4159else
4160  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4161echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4162   { (exit 1); exit 1; }; }
4163  :
4164fi
4165
4166
4167  # Check if we have an Dependencies file
4168  if test -r $srcdir/Dependencies; then
4169    coin_have_externals=yes
4170  fi
4171  # Check if subversion is installed and understands https
4172  # Extract the first word of "svn", so it can be a program name with args.
4173set dummy svn; ac_word=$2
4174echo "$as_me:$LINENO: checking for $ac_word" >&5
4175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176if test "${ac_cv_prog_have_svn+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if test -n "$have_svn"; then
4180  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189    ac_cv_prog_have_svn="yes"
4190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194done
4195
4196  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4197fi
4198fi
4199have_svn=$ac_cv_prog_have_svn
4200if test -n "$have_svn"; then
4201  echo "$as_me:$LINENO: result: $have_svn" >&5
4202echo "${ECHO_T}$have_svn" >&6
4203else
4204  echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6
4206fi
4207
4208  if test x$have_svn = xyes; then
4209    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4210echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4211if test "${ac_cv_svn_understands_https+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  svn --version > confauto.out 2>&1
4215                    if $EGREP https confauto.out >/dev/null 2>&1; then
4216                      ac_cv_svn_understands_https=yes
4217                    else
4218                      ac_cv_svn_understands_https=no
4219                      have_svn=no
4220                      ac_cv_prog_have_svn=no
4221                    fi
4222                    rm -f confauto.out
4223fi
4224echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4225echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4226  fi
4227
4228  # Find the location of the BuildTools directory
4229  BUILDTOOLSDIR=
4230  if test -r $srcdir/BuildTools/coin.m4; then
4231    BUILDTOOLSDIR=$srcdir/BuildTools
4232  else
4233    if test -r $srcdir/../BuildTools/coin.m4; then
4234      BUILDTOOLSDIR=$srcdir/../BuildTools
4235    else
4236      if test -r $srcdir/../../BuildTools/coin.m4; then
4237        BUILDTOOLSDIR=$srcdir/../../BuildTools
4238      else
4239        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4240echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4241   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4242      fi
4243    fi
4244  fi
4245
4246
4247  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4248  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4249    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4250  fi
4251
4252  # The following variable is set to the name of the directory where
4253  # the autotool scripts are located
4254
4255  AUX_DIR=$ac_aux_dir
4256fi
4257
4258# helpful variable for the base directory of this package
4259abs_source_dir=`cd $srcdir; pwd`
4260
4261
4262# Stuff for example Makefiles
4263if test x$prefix = xNONE; then
4264  full_prefix=$ac_default_prefix
4265else
4266  full_prefix=$prefix
4267fi
4268full_prefix=`cd $full_prefix ; pwd`
4269
4270abs_lib_dir=$full_prefix/lib
4271
4272abs_include_dir=$full_prefix/include
4273
4274abs_bin_dir=$full_prefix/bin
4275
4276
4277
4278if test $coin_have_externals = yes && test x$have_svn = xyes; then
4279  HAVE_EXTERNALS_TRUE=
4280  HAVE_EXTERNALS_FALSE='#'
4281else
4282  HAVE_EXTERNALS_TRUE='#'
4283  HAVE_EXTERNALS_FALSE=
4284fi
4285
4286
4287# AC_MSG_NOTICE([End automake initialisation.])
4288
4289
4290
4291LIBTOOL=
4292if test -r ../libtool; then
4293  coin_config_dir=..
4294  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4295fi
4296if test "x$LIBTOOL" = x; then
4297  if test -r ../../libtool; then
4298    coin_config_dir=../..
4299    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4300  fi
4301fi
4302
4303if test "x$LIBTOOL" = x; then
4304# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4305  # Stuff for libtool
4306  # Check whether --enable-shared or --disable-shared was given.
4307if test "${enable_shared+set}" = set; then
4308  enableval="$enable_shared"
4309  p=${PACKAGE-default}
4310    case $enableval in
4311    yes) enable_shared=yes ;;
4312    no) enable_shared=no ;;
4313    *)
4314      enable_shared=no
4315      # Look at the argument we got.  We use all the common list separators.
4316      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317      for pkg in $enableval; do
4318	IFS="$lt_save_ifs"
4319	if test "X$pkg" = "X$p"; then
4320	  enable_shared=yes
4321	fi
4322      done
4323      IFS="$lt_save_ifs"
4324      ;;
4325    esac
4326else
4327  enable_shared=yes
4328fi;
4329
4330# Check whether --enable-fast-install or --disable-fast-install was given.
4331if test "${enable_fast_install+set}" = set; then
4332  enableval="$enable_fast_install"
4333  p=${PACKAGE-default}
4334    case $enableval in
4335    yes) enable_fast_install=yes ;;
4336    no) enable_fast_install=no ;;
4337    *)
4338      enable_fast_install=no
4339      # Look at the argument we got.  We use all the common list separators.
4340      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4341      for pkg in $enableval; do
4342	IFS="$lt_save_ifs"
4343	if test "X$pkg" = "X$p"; then
4344	  enable_fast_install=yes
4345	fi
4346      done
4347      IFS="$lt_save_ifs"
4348      ;;
4349    esac
4350else
4351  enable_fast_install=yes
4352fi;
4353
4354echo "$as_me:$LINENO: checking host system type" >&5
4355echo $ECHO_N "checking host system type... $ECHO_C" >&6
4356if test "${ac_cv_host+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  ac_cv_host_alias=$host_alias
4360test -z "$ac_cv_host_alias" &&
4361  ac_cv_host_alias=$ac_cv_build_alias
4362ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4363  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4364echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4365   { (exit 1); exit 1; }; }
4366
4367fi
4368echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4369echo "${ECHO_T}$ac_cv_host" >&6
4370host=$ac_cv_host
4371host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4374
4375
4376echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4377echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4378if test "${lt_cv_path_SED+set}" = set; then
4379  echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381  # Loop through the user's path and test for sed and gsed.
4382# Then use that list of sed's as ones to test for truncation.
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386  IFS=$as_save_IFS
4387  test -z "$as_dir" && as_dir=.
4388  for lt_ac_prog in sed gsed; do
4389    for ac_exec_ext in '' $ac_executable_extensions; do
4390      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4391        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4392      fi
4393    done
4394  done
4395done
4396lt_ac_max=0
4397lt_ac_count=0
4398# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4399# along with /bin/sed that truncates output.
4400for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4401  test ! -f $lt_ac_sed && continue
4402  cat /dev/null > conftest.in
4403  lt_ac_count=0
4404  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4405  # Check for GNU sed and select it if it is found.
4406  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4407    lt_cv_path_SED=$lt_ac_sed
4408    break
4409  fi
4410  while true; do
4411    cat conftest.in conftest.in >conftest.tmp
4412    mv conftest.tmp conftest.in
4413    cp conftest.in conftest.nl
4414    echo >>conftest.nl
4415    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4416    cmp -s conftest.out conftest.nl || break
4417    # 10000 chars as input seems more than enough
4418    test $lt_ac_count -gt 10 && break
4419    lt_ac_count=`expr $lt_ac_count + 1`
4420    if test $lt_ac_count -gt $lt_ac_max; then
4421      lt_ac_max=$lt_ac_count
4422      lt_cv_path_SED=$lt_ac_sed
4423    fi
4424  done
4425done
4426
4427fi
4428
4429SED=$lt_cv_path_SED
4430echo "$as_me:$LINENO: result: $SED" >&5
4431echo "${ECHO_T}$SED" >&6
4432
4433
4434# Check whether --with-gnu-ld or --without-gnu-ld was given.
4435if test "${with_gnu_ld+set}" = set; then
4436  withval="$with_gnu_ld"
4437  test "$withval" = no || with_gnu_ld=yes
4438else
4439  with_gnu_ld=no
4440fi;
4441ac_prog=ld
4442if test "$GCC" = yes; then
4443  # Check if gcc -print-prog-name=ld gives a path.
4444  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4445echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4446  case $host in
4447  *-*-mingw*)
4448    # gcc leaves a trailing carriage return which upsets mingw
4449    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4450  *)
4451    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4452  esac
4453  case $ac_prog in
4454    # Accept absolute paths.
4455    [\\/]* | ?:[\\/]*)
4456      re_direlt='/[^/][^/]*/\.\./'
4457      # Canonicalize the pathname of ld
4458      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4459      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4460	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4461      done
4462      test -z "$LD" && LD="$ac_prog"
4463      ;;
4464  "")
4465    # If it fails, then pretend we aren't using GCC.
4466    ac_prog=ld
4467    ;;
4468  *)
4469    # If it is relative, then search for the first ld in PATH.
4470    with_gnu_ld=unknown
4471    ;;
4472  esac
4473elif test "$with_gnu_ld" = yes; then
4474  echo "$as_me:$LINENO: checking for GNU ld" >&5
4475echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4476else
4477  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4478echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4479fi
4480if test "${lt_cv_path_LD+set}" = set; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483  if test -z "$LD"; then
4484  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4485  for ac_dir in $PATH; do
4486    IFS="$lt_save_ifs"
4487    test -z "$ac_dir" && ac_dir=.
4488    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4489      lt_cv_path_LD="$ac_dir/$ac_prog"
4490      # Check to see if the program is GNU ld.  I'd rather use --version,
4491      # but apparently some variants of GNU ld only accept -v.
4492      # Break only if it was the GNU/non-GNU ld that we prefer.
4493      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4494      *GNU* | *'with BFD'*)
4495	test "$with_gnu_ld" != no && break
4496	;;
4497      *)
4498	test "$with_gnu_ld" != yes && break
4499	;;
4500      esac
4501    fi
4502  done
4503  IFS="$lt_save_ifs"
4504else
4505  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4506fi
4507fi
4508
4509LD="$lt_cv_path_LD"
4510if test -n "$LD"; then
4511  echo "$as_me:$LINENO: result: $LD" >&5
4512echo "${ECHO_T}$LD" >&6
4513else
4514  echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
4516fi
4517test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4518echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4519   { (exit 1); exit 1; }; }
4520echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4521echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4522if test "${lt_cv_prog_gnu_ld+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4526case `$LD -v 2>&1 </dev/null` in
4527*GNU* | *'with BFD'*)
4528  lt_cv_prog_gnu_ld=yes
4529  ;;
4530*)
4531  lt_cv_prog_gnu_ld=no
4532  ;;
4533esac
4534fi
4535echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4536echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4537with_gnu_ld=$lt_cv_prog_gnu_ld
4538
4539
4540echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4541echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4542if test "${lt_cv_ld_reload_flag+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  lt_cv_ld_reload_flag='-r'
4546fi
4547echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4548echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4549reload_flag=$lt_cv_ld_reload_flag
4550case $reload_flag in
4551"" | " "*) ;;
4552*) reload_flag=" $reload_flag" ;;
4553esac
4554reload_cmds='$LD$reload_flag -o $output$reload_objs'
4555case $host_os in
4556  darwin*)
4557    if test "$GCC" = yes; then
4558      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4559    else
4560      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4561    fi
4562    ;;
4563esac
4564
4565echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4566echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4567if test "${lt_cv_path_NM+set}" = set; then
4568  echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570  if test -n "$NM"; then
4571  # Let the user override the test.
4572  lt_cv_path_NM="$NM"
4573else
4574  lt_nm_to_check="${ac_tool_prefix}nm"
4575  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4576    lt_nm_to_check="$lt_nm_to_check nm"
4577  fi
4578  for lt_tmp_nm in $lt_nm_to_check; do
4579    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4580    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4581      IFS="$lt_save_ifs"
4582      test -z "$ac_dir" && ac_dir=.
4583      tmp_nm="$ac_dir/$lt_tmp_nm"
4584      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4585	# Check to see if the nm accepts a BSD-compat flag.
4586	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4587	#   nm: unknown option "B" ignored
4588	# Tru64's nm complains that /dev/null is an invalid object file
4589	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4590	*/dev/null* | *'Invalid file or object type'*)
4591	  lt_cv_path_NM="$tmp_nm -B"
4592	  break
4593	  ;;
4594	*)
4595	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4596	  */dev/null*)
4597	    lt_cv_path_NM="$tmp_nm -p"
4598	    break
4599	    ;;
4600	  *)
4601	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4602	    continue # so that we can try to find one that supports BSD flags
4603	    ;;
4604	  esac
4605	  ;;
4606	esac
4607      fi
4608    done
4609    IFS="$lt_save_ifs"
4610  done
4611  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4612fi
4613fi
4614echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4615echo "${ECHO_T}$lt_cv_path_NM" >&6
4616NM="$lt_cv_path_NM"
4617
4618echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4619echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4620if test "${lt_cv_deplibs_check_method+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  lt_cv_file_magic_cmd='$MAGIC_CMD'
4624lt_cv_file_magic_test_file=
4625lt_cv_deplibs_check_method='unknown'
4626# Need to set the preceding variable on all platforms that support
4627# interlibrary dependencies.
4628# 'none' -- dependencies not supported.
4629# `unknown' -- same as none, but documents that we really don't know.
4630# 'pass_all' -- all dependencies passed with no checks.
4631# 'test_compile' -- check by making test program.
4632# 'file_magic [[regex]]' -- check by looking for files in library path
4633# which responds to the $file_magic_cmd with a given extended regex.
4634# If you have `file' or equivalent on your system and you're not sure
4635# whether `pass_all' will *always* work, you probably want this one.
4636
4637case $host_os in
4638aix4* | aix5*)
4639  lt_cv_deplibs_check_method=pass_all
4640  ;;
4641
4642beos*)
4643  lt_cv_deplibs_check_method=pass_all
4644  ;;
4645
4646bsdi[45]*)
4647  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4648  lt_cv_file_magic_cmd='/usr/bin/file -L'
4649  lt_cv_file_magic_test_file=/shlib/libc.so
4650  ;;
4651
4652cygwin*)
4653  # func_win32_libid is a shell function defined in ltmain.sh
4654  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4655  lt_cv_file_magic_cmd='func_win32_libid'
4656  ;;
4657
4658mingw* | pw32*)
4659  # Base MSYS/MinGW do not provide the 'file' command needed by
4660  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4661  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4662  lt_cv_file_magic_cmd='$OBJDUMP -f'
4663  ;;
4664
4665darwin* | rhapsody*)
4666  lt_cv_deplibs_check_method=pass_all
4667  ;;
4668
4669freebsd* | kfreebsd*-gnu | dragonfly*)
4670  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4671    case $host_cpu in
4672    i*86 )
4673      # Not sure whether the presence of OpenBSD here was a mistake.
4674      # Let's accept both of them until this is cleared up.
4675      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4676      lt_cv_file_magic_cmd=/usr/bin/file
4677      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4678      ;;
4679    esac
4680  else
4681    lt_cv_deplibs_check_method=pass_all
4682  fi
4683  ;;
4684
4685gnu*)
4686  lt_cv_deplibs_check_method=pass_all
4687  ;;
4688
4689hpux10.20* | hpux11*)
4690  lt_cv_file_magic_cmd=/usr/bin/file
4691  case $host_cpu in
4692  ia64*)
4693    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4694    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4695    ;;
4696  hppa*64*)
4697    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]'
4698    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4699    ;;
4700  *)
4701    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4702    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4703    ;;
4704  esac
4705  ;;
4706
4707interix3*)
4708  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4709  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4710  ;;
4711
4712irix5* | irix6* | nonstopux*)
4713  case $LD in
4714  *-32|*"-32 ") libmagic=32-bit;;
4715  *-n32|*"-n32 ") libmagic=N32;;
4716  *-64|*"-64 ") libmagic=64-bit;;
4717  *) libmagic=never-match;;
4718  esac
4719  lt_cv_deplibs_check_method=pass_all
4720  ;;
4721
4722# This must be Linux ELF.
4723linux*)
4724  lt_cv_deplibs_check_method=pass_all
4725  ;;
4726
4727netbsd*)
4728  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4729    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4730  else
4731    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4732  fi
4733  ;;
4734
4735newos6*)
4736  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4737  lt_cv_file_magic_cmd=/usr/bin/file
4738  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4739  ;;
4740
4741nto-qnx*)
4742  lt_cv_deplibs_check_method=unknown
4743  ;;
4744
4745openbsd*)
4746  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4747    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4748  else
4749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4750  fi
4751  ;;
4752
4753osf3* | osf4* | osf5*)
4754  lt_cv_deplibs_check_method=pass_all
4755  ;;
4756
4757solaris*)
4758  lt_cv_deplibs_check_method=pass_all
4759  ;;
4760
4761sysv4 | sysv4.3*)
4762  case $host_vendor in
4763  motorola)
4764    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]'
4765    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4766    ;;
4767  ncr)
4768    lt_cv_deplibs_check_method=pass_all
4769    ;;
4770  sequent)
4771    lt_cv_file_magic_cmd='/bin/file'
4772    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4773    ;;
4774  sni)
4775    lt_cv_file_magic_cmd='/bin/file'
4776    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4777    lt_cv_file_magic_test_file=/lib/libc.so
4778    ;;
4779  siemens)
4780    lt_cv_deplibs_check_method=pass_all
4781    ;;
4782  pc)
4783    lt_cv_deplibs_check_method=pass_all
4784    ;;
4785  esac
4786  ;;
4787
4788sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4789  lt_cv_deplibs_check_method=pass_all
4790  ;;
4791esac
4792
4793fi
4794echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4795echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4796file_magic_cmd=$lt_cv_file_magic_cmd
4797deplibs_check_method=$lt_cv_deplibs_check_method
4798test -z "$deplibs_check_method" && deplibs_check_method=unknown
4799
4800
4801
4802
4803# If no C compiler was specified, use CC.
4804LTCC=${LTCC-"$CC"}
4805
4806# If no C compiler flags were specified, use CFLAGS.
4807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4808
4809# Allow CC to be a program name with arguments.
4810compiler=$CC
4811
4812# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4813if test "${enable_libtool_lock+set}" = set; then
4814  enableval="$enable_libtool_lock"
4815
4816fi;
4817test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4818
4819# Some flags need to be propagated to the compiler or linker for good
4820# libtool support.
4821case $host in
4822ia64-*-hpux*)
4823  # Find out which ABI we are using.
4824  echo 'int i;' > conftest.$ac_ext
4825  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826  (eval $ac_compile) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; then
4830    case `/usr/bin/file conftest.$ac_objext` in
4831    *ELF-32*)
4832      HPUX_IA64_MODE="32"
4833      ;;
4834    *ELF-64*)
4835      HPUX_IA64_MODE="64"
4836      ;;
4837    esac
4838  fi
4839  rm -rf conftest*
4840  ;;
4841*-*-irix6*)
4842  # Find out which ABI we are using.
4843  echo '#line 4843 "configure"' > conftest.$ac_ext
4844  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845  (eval $ac_compile) 2>&5
4846  ac_status=$?
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); }; then
4849   if test "$lt_cv_prog_gnu_ld" = yes; then
4850    case `/usr/bin/file conftest.$ac_objext` in
4851    *32-bit*)
4852      LD="${LD-ld} -melf32bsmip"
4853      ;;
4854    *N32*)
4855      LD="${LD-ld} -melf32bmipn32"
4856      ;;
4857    *64-bit*)
4858      LD="${LD-ld} -melf64bmip"
4859      ;;
4860    esac
4861   else
4862    case `/usr/bin/file conftest.$ac_objext` in
4863    *32-bit*)
4864      LD="${LD-ld} -32"
4865      ;;
4866    *N32*)
4867      LD="${LD-ld} -n32"
4868      ;;
4869    *64-bit*)
4870      LD="${LD-ld} -64"
4871      ;;
4872    esac
4873   fi
4874  fi
4875  rm -rf conftest*
4876  ;;
4877
4878x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4879  # Find out which ABI we are using.
4880  echo 'int i;' > conftest.$ac_ext
4881  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882  (eval $ac_compile) 2>&5
4883  ac_status=$?
4884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885  (exit $ac_status); }; then
4886    case `/usr/bin/file conftest.o` in
4887    *32-bit*)
4888      case $host in
4889        x86_64-*linux*)
4890          LD="${LD-ld} -m elf_i386"
4891          ;;
4892        ppc64-*linux*|powerpc64-*linux*)
4893          LD="${LD-ld} -m elf32ppclinux"
4894          ;;
4895        s390x-*linux*)
4896          LD="${LD-ld} -m elf_s390"
4897          ;;
4898        sparc64-*linux*)
4899          LD="${LD-ld} -m elf32_sparc"
4900          ;;
4901      esac
4902      ;;
4903    *64-bit*)
4904      case $host in
4905        x86_64-*linux*)
4906          LD="${LD-ld} -m elf_x86_64"
4907          ;;
4908        ppc*-*linux*|powerpc*-*linux*)
4909          LD="${LD-ld} -m elf64ppc"
4910          ;;
4911        s390*-*linux*)
4912          LD="${LD-ld} -m elf64_s390"
4913          ;;
4914        sparc*-*linux*)
4915          LD="${LD-ld} -m elf64_sparc"
4916          ;;
4917      esac
4918      ;;
4919    esac
4920  fi
4921  rm -rf conftest*
4922  ;;
4923
4924*-*-sco3.2v5*)
4925  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4926  SAVE_CFLAGS="$CFLAGS"
4927  CFLAGS="$CFLAGS -belf"
4928  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4929echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4930if test "${lt_cv_cc_needs_belf+set}" = set; then
4931  echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933  ac_ext=c
4934ac_cpp='$CPP $CPPFLAGS'
4935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938
4939     cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h.  */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h.  */
4945
4946int
4947main ()
4948{
4949
4950  ;
4951  return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext conftest$ac_exeext
4955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956  (eval $ac_link) 2>conftest.er1
4957  ac_status=$?
4958  grep -v '^ *+' conftest.er1 >conftest.err
4959  rm -f conftest.er1
4960  cat conftest.err >&5
4961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962  (exit $ac_status); } &&
4963	 { ac_try='test -z "$ac_c_werror_flag"
4964			 || test ! -s conftest.err'
4965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966  (eval $ac_try) 2>&5
4967  ac_status=$?
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); }; } &&
4970	 { ac_try='test -s conftest$ac_exeext'
4971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972  (eval $ac_try) 2>&5
4973  ac_status=$?
4974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975  (exit $ac_status); }; }; then
4976  lt_cv_cc_needs_belf=yes
4977else
4978  echo "$as_me: failed program was:" >&5
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
4981lt_cv_cc_needs_belf=no
4982fi
4983rm -f conftest.err conftest.$ac_objext \
4984      conftest$ac_exeext conftest.$ac_ext
4985     ac_ext=c
4986ac_cpp='$CPP $CPPFLAGS'
4987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990
4991fi
4992echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4993echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4994  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4995    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4996    CFLAGS="$SAVE_CFLAGS"
4997  fi
4998  ;;
4999sparc*-*solaris*)
5000  # Find out which ABI we are using.
5001  echo 'int i;' > conftest.$ac_ext
5002  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003  (eval $ac_compile) 2>&5
5004  ac_status=$?
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); }; then
5007    case `/usr/bin/file conftest.o` in
5008    *64-bit*)
5009      case $lt_cv_prog_gnu_ld in
5010      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5011      *)    LD="${LD-ld} -64" ;;
5012      esac
5013      ;;
5014    esac
5015  fi
5016  rm -rf conftest*
5017  ;;
5018
5019
5020esac
5021
5022need_locks="$enable_libtool_lock"
5023
5024
5025ac_ext=c
5026ac_cpp='$CPP $CPPFLAGS'
5027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5031echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5032# On Suns, sometimes $CPP names a directory.
5033if test -n "$CPP" && test -d "$CPP"; then
5034  CPP=
5035fi
5036if test -z "$CPP"; then
5037  if test "${ac_cv_prog_CPP+set}" = set; then
5038  echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040      # Double quotes because CPP needs to be expanded
5041    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5042    do
5043      ac_preproc_ok=false
5044for ac_c_preproc_warn_flag in '' yes
5045do
5046  # Use a header file that comes with gcc, so configuring glibc
5047  # with a fresh cross-compiler works.
5048  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049  # <limits.h> exists even on freestanding compilers.
5050  # On the NeXT, cc -E runs the code through the compiler's parser,
5051  # not just through cpp. "Syntax error" is here to catch this case.
5052  cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058#ifdef __STDC__
5059# include <limits.h>
5060#else
5061# include <assert.h>
5062#endif
5063		     Syntax error
5064_ACEOF
5065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5066  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5067  ac_status=$?
5068  grep -v '^ *+' conftest.er1 >conftest.err
5069  rm -f conftest.er1
5070  cat conftest.err >&5
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); } >/dev/null; then
5073  if test -s conftest.err; then
5074    ac_cpp_err=$ac_c_preproc_warn_flag
5075    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5076  else
5077    ac_cpp_err=
5078  fi
5079else
5080  ac_cpp_err=yes
5081fi
5082if test -z "$ac_cpp_err"; then
5083  :
5084else
5085  echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088  # Broken: fails on valid input.
5089continue
5090fi
5091rm -f conftest.err conftest.$ac_ext
5092
5093  # OK, works on sane cases.  Now check whether non-existent headers
5094  # can be detected and how.
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101#include <ac_nonexistent.h>
5102_ACEOF
5103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105  ac_status=$?
5106  grep -v '^ *+' conftest.er1 >conftest.err
5107  rm -f conftest.er1
5108  cat conftest.err >&5
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); } >/dev/null; then
5111  if test -s conftest.err; then
5112    ac_cpp_err=$ac_c_preproc_warn_flag
5113    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5114  else
5115    ac_cpp_err=
5116  fi
5117else
5118  ac_cpp_err=yes
5119fi
5120if test -z "$ac_cpp_err"; then
5121  # Broken: success on invalid input.
5122continue
5123else
5124  echo "$as_me: failed program was:" >&5
5125sed 's/^/| /' conftest.$ac_ext >&5
5126
5127  # Passes both tests.
5128ac_preproc_ok=:
5129break
5130fi
5131rm -f conftest.err conftest.$ac_ext
5132
5133done
5134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135rm -f conftest.err conftest.$ac_ext
5136if $ac_preproc_ok; then
5137  break
5138fi
5139
5140    done
5141    ac_cv_prog_CPP=$CPP
5142
5143fi
5144  CPP=$ac_cv_prog_CPP
5145else
5146  ac_cv_prog_CPP=$CPP
5147fi
5148echo "$as_me:$LINENO: result: $CPP" >&5
5149echo "${ECHO_T}$CPP" >&6
5150ac_preproc_ok=false
5151for ac_c_preproc_warn_flag in '' yes
5152do
5153  # Use a header file that comes with gcc, so configuring glibc
5154  # with a fresh cross-compiler works.
5155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156  # <limits.h> exists even on freestanding compilers.
5157  # On the NeXT, cc -E runs the code through the compiler's parser,
5158  # not just through cpp. "Syntax error" is here to catch this case.
5159  cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165#ifdef __STDC__
5166# include <limits.h>
5167#else
5168# include <assert.h>
5169#endif
5170		     Syntax error
5171_ACEOF
5172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5173  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5174  ac_status=$?
5175  grep -v '^ *+' conftest.er1 >conftest.err
5176  rm -f conftest.er1
5177  cat conftest.err >&5
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); } >/dev/null; then
5180  if test -s conftest.err; then
5181    ac_cpp_err=$ac_c_preproc_warn_flag
5182    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5183  else
5184    ac_cpp_err=
5185  fi
5186else
5187  ac_cpp_err=yes
5188fi
5189if test -z "$ac_cpp_err"; then
5190  :
5191else
5192  echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195  # Broken: fails on valid input.
5196continue
5197fi
5198rm -f conftest.err conftest.$ac_ext
5199
5200  # OK, works on sane cases.  Now check whether non-existent headers
5201  # can be detected and how.
5202  cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h.  */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h.  */
5208#include <ac_nonexistent.h>
5209_ACEOF
5210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } >/dev/null; then
5218  if test -s conftest.err; then
5219    ac_cpp_err=$ac_c_preproc_warn_flag
5220    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5221  else
5222    ac_cpp_err=
5223  fi
5224else
5225  ac_cpp_err=yes
5226fi
5227if test -z "$ac_cpp_err"; then
5228  # Broken: success on invalid input.
5229continue
5230else
5231  echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234  # Passes both tests.
5235ac_preproc_ok=:
5236break
5237fi
5238rm -f conftest.err conftest.$ac_ext
5239
5240done
5241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242rm -f conftest.err conftest.$ac_ext
5243if $ac_preproc_ok; then
5244  :
5245else
5246  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5247See \`config.log' for more details." >&5
5248echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5249See \`config.log' for more details." >&2;}
5250   { (exit 1); exit 1; }; }
5251fi
5252
5253ac_ext=c
5254ac_cpp='$CPP $CPPFLAGS'
5255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5261echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5262if test "${ac_cv_header_stdc+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265  cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h.  */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h.  */
5271#include <stdlib.h>
5272#include <stdarg.h>
5273#include <string.h>
5274#include <float.h>
5275
5276int
5277main ()
5278{
5279
5280  ;
5281  return 0;
5282}
5283_ACEOF
5284rm -f conftest.$ac_objext
5285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286  (eval $ac_compile) 2>conftest.er1
5287  ac_status=$?
5288  grep -v '^ *+' conftest.er1 >conftest.err
5289  rm -f conftest.er1
5290  cat conftest.err >&5
5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); } &&
5293	 { ac_try='test -z "$ac_c_werror_flag"
5294			 || test ! -s conftest.err'
5295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296  (eval $ac_try) 2>&5
5297  ac_status=$?
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); }; } &&
5300	 { ac_try='test -s conftest.$ac_objext'
5301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302  (eval $ac_try) 2>&5
5303  ac_status=$?
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); }; }; then
5306  ac_cv_header_stdc=yes
5307else
5308  echo "$as_me: failed program was:" >&5
5309sed 's/^/| /' conftest.$ac_ext >&5
5310
5311ac_cv_header_stdc=no
5312fi
5313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314
5315if test $ac_cv_header_stdc = yes; then
5316  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5317  cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323#include <string.h>
5324
5325_ACEOF
5326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5327  $EGREP "memchr" >/dev/null 2>&1; then
5328  :
5329else
5330  ac_cv_header_stdc=no
5331fi
5332rm -f conftest*
5333
5334fi
5335
5336if test $ac_cv_header_stdc = yes; then
5337  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5338  cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344#include <stdlib.h>
5345
5346_ACEOF
5347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348  $EGREP "free" >/dev/null 2>&1; then
5349  :
5350else
5351  ac_cv_header_stdc=no
5352fi
5353rm -f conftest*
5354
5355fi
5356
5357if test $ac_cv_header_stdc = yes; then
5358  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5359  if test "$cross_compiling" = yes; then
5360  :
5361else
5362  cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368#include <ctype.h>
5369#if ((' ' & 0x0FF) == 0x020)
5370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5372#else
5373# define ISLOWER(c) \
5374		   (('a' <= (c) && (c) <= 'i') \
5375		     || ('j' <= (c) && (c) <= 'r') \
5376		     || ('s' <= (c) && (c) <= 'z'))
5377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5378#endif
5379
5380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5381int
5382main ()
5383{
5384  int i;
5385  for (i = 0; i < 256; i++)
5386    if (XOR (islower (i), ISLOWER (i))
5387	|| toupper (i) != TOUPPER (i))
5388      exit(2);
5389  exit (0);
5390}
5391_ACEOF
5392rm -f conftest$ac_exeext
5393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394  (eval $ac_link) 2>&5
5395  ac_status=$?
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; }; then
5403  :
5404else
5405  echo "$as_me: program exited with status $ac_status" >&5
5406echo "$as_me: failed program was:" >&5
5407sed 's/^/| /' conftest.$ac_ext >&5
5408
5409( exit $ac_status )
5410ac_cv_header_stdc=no
5411fi
5412rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5413fi
5414fi
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5417echo "${ECHO_T}$ac_cv_header_stdc" >&6
5418if test $ac_cv_header_stdc = yes; then
5419
5420cat >>confdefs.h <<\_ACEOF
5421#define STDC_HEADERS 1
5422_ACEOF
5423
5424fi
5425
5426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5437		  inttypes.h stdint.h unistd.h
5438do
5439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5440echo "$as_me:$LINENO: checking for $ac_header" >&5
5441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5442if eval "test \"\${$as_ac_Header+set}\" = set"; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451$ac_includes_default
5452
5453#include <$ac_header>
5454_ACEOF
5455rm -f conftest.$ac_objext
5456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457  (eval $ac_compile) 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } &&
5464	 { ac_try='test -z "$ac_c_werror_flag"
5465			 || test ! -s conftest.err'
5466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467  (eval $ac_try) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; } &&
5471	 { ac_try='test -s conftest.$ac_objext'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; }; then
5477  eval "$as_ac_Header=yes"
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482eval "$as_ac_Header=no"
5483fi
5484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485fi
5486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489  cat >>confdefs.h <<_ACEOF
5490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491_ACEOF
5492
5493fi
5494
5495done
5496
5497
5498
5499for ac_header in dlfcn.h
5500do
5501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502if eval "test \"\${$as_ac_Header+set}\" = set"; then
5503  echo "$as_me:$LINENO: checking for $ac_header" >&5
5504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5505if eval "test \"\${$as_ac_Header+set}\" = set"; then
5506  echo $ECHO_N "(cached) $ECHO_C" >&6
5507fi
5508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5510else
5511  # Is the header compilable?
5512echo "$as_me:$LINENO: checking $ac_header usability" >&5
5513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5514cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h.  */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h.  */
5520$ac_includes_default
5521#include <$ac_header>
5522_ACEOF
5523rm -f conftest.$ac_objext
5524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525  (eval $ac_compile) 2>conftest.er1
5526  ac_status=$?
5527  grep -v '^ *+' conftest.er1 >conftest.err
5528  rm -f conftest.er1
5529  cat conftest.err >&5
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); } &&
5532	 { ac_try='test -z "$ac_c_werror_flag"
5533			 || test ! -s conftest.err'
5534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535  (eval $ac_try) 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; } &&
5539	 { ac_try='test -s conftest.$ac_objext'
5540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541  (eval $ac_try) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; }; then
5545  ac_header_compiler=yes
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550ac_header_compiler=no
5551fi
5552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554echo "${ECHO_T}$ac_header_compiler" >&6
5555
5556# Is the header present?
5557echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5559cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h.  */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h.  */
5565#include <$ac_header>
5566_ACEOF
5567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5568  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5569  ac_status=$?
5570  grep -v '^ *+' conftest.er1 >conftest.err
5571  rm -f conftest.er1
5572  cat conftest.err >&5
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); } >/dev/null; then
5575  if test -s conftest.err; then
5576    ac_cpp_err=$ac_c_preproc_warn_flag
5577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5578  else
5579    ac_cpp_err=
5580  fi
5581else
5582  ac_cpp_err=yes
5583fi
5584if test -z "$ac_cpp_err"; then
5585  ac_header_preproc=yes
5586else
5587  echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590  ac_header_preproc=no
5591fi
5592rm -f conftest.err conftest.$ac_ext
5593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594echo "${ECHO_T}$ac_header_preproc" >&6
5595
5596# So?  What about this header?
5597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598  yes:no: )
5599    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603    ac_header_preproc=yes
5604    ;;
5605  no:yes:* )
5606    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5608    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5609echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5610    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5613echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5616    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5618    (
5619      cat <<\_ASBOX
5620## ------------------------------------------------ ##
5621## Report this to http://projects.coin-or.org/Creme ##
5622## ------------------------------------------------ ##
5623_ASBOX
5624    ) |
5625      sed "s/^/$as_me: WARNING:     /" >&2
5626    ;;
5627esac
5628echo "$as_me:$LINENO: checking for $ac_header" >&5
5629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5630if eval "test \"\${$as_ac_Header+set}\" = set"; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  eval "$as_ac_Header=\$ac_header_preproc"
5634fi
5635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5637
5638fi
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640  cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
5647
5648ac_ext=cc
5649ac_cpp='$CXXCPP $CPPFLAGS'
5650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653if test -n "$ac_tool_prefix"; then
5654  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5655  do
5656    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_prog_CXX+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  if test -n "$CXX"; then
5664  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671  for ac_exec_ext in '' $ac_executable_extensions; do
5672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678done
5679
5680fi
5681fi
5682CXX=$ac_cv_prog_CXX
5683if test -n "$CXX"; then
5684  echo "$as_me:$LINENO: result: $CXX" >&5
5685echo "${ECHO_T}$CXX" >&6
5686else
5687  echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689fi
5690
5691    test -n "$CXX" && break
5692  done
5693fi
5694if test -z "$CXX"; then
5695  ac_ct_CXX=$CXX
5696  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5697do
5698  # Extract the first word of "$ac_prog", so it can be a program name with args.
5699set dummy $ac_prog; ac_word=$2
5700echo "$as_me:$LINENO: checking for $ac_word" >&5
5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  if test -n "$ac_ct_CXX"; then
5706  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711  IFS=$as_save_IFS
5712  test -z "$as_dir" && as_dir=.
5713  for ac_exec_ext in '' $ac_executable_extensions; do
5714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715    ac_cv_prog_ac_ct_CXX="$ac_prog"
5716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717    break 2
5718  fi
5719done
5720done
5721
5722fi
5723fi
5724ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5725if test -n "$ac_ct_CXX"; then
5726  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5727echo "${ECHO_T}$ac_ct_CXX" >&6
5728else
5729  echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731fi
5732
5733  test -n "$ac_ct_CXX" && break
5734done
5735test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5736
5737  CXX=$ac_ct_CXX
5738fi
5739
5740
5741# Provide some information about the compiler.
5742echo "$as_me:$LINENO:" \
5743     "checking for C++ compiler version" >&5
5744ac_compiler=`set X $ac_compile; echo $2`
5745{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5746  (eval $ac_compiler --version </dev/null >&5) 2>&5
5747  ac_status=$?
5748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749  (exit $ac_status); }
5750{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5751  (eval $ac_compiler -v </dev/null >&5) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }
5755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5756  (eval $ac_compiler -V </dev/null >&5) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); }
5760
5761echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5762echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5763if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772
5773int
5774main ()
5775{
5776#ifndef __GNUC__
5777       choke me
5778#endif
5779
5780  ;
5781  return 0;
5782}
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786  (eval $ac_compile) 2>conftest.er1
5787  ac_status=$?
5788  grep -v '^ *+' conftest.er1 >conftest.err
5789  rm -f conftest.er1
5790  cat conftest.err >&5
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); } &&
5793	 { ac_try='test -z "$ac_cxx_werror_flag"
5794			 || test ! -s conftest.err'
5795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796  (eval $ac_try) 2>&5
5797  ac_status=$?
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); }; } &&
5800	 { ac_try='test -s conftest.$ac_objext'
5801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802  (eval $ac_try) 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; }; then
5806  ac_compiler_gnu=yes
5807else
5808  echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811ac_compiler_gnu=no
5812fi
5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5815
5816fi
5817echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5818echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5819GXX=`test $ac_compiler_gnu = yes && echo yes`
5820ac_test_CXXFLAGS=${CXXFLAGS+set}
5821ac_save_CXXFLAGS=$CXXFLAGS
5822CXXFLAGS="-g"
5823echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5824echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5825if test "${ac_cv_prog_cxx_g+set}" = set; then
5826  echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828  cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834
5835int
5836main ()
5837{
5838
5839  ;
5840  return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
5844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5845  (eval $ac_compile) 2>conftest.er1
5846  ac_status=$?
5847  grep -v '^ *+' conftest.er1 >conftest.err
5848  rm -f conftest.er1
5849  cat conftest.err >&5
5850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851  (exit $ac_status); } &&
5852	 { ac_try='test -z "$ac_cxx_werror_flag"
5853			 || test ! -s conftest.err'
5854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855  (eval $ac_try) 2>&5
5856  ac_status=$?
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); }; } &&
5859	 { ac_try='test -s conftest.$ac_objext'
5860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861  (eval $ac_try) 2>&5
5862  ac_status=$?
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); }; }; then
5865  ac_cv_prog_cxx_g=yes
5866else
5867  echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870ac_cv_prog_cxx_g=no
5871fi
5872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5873fi
5874echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5875echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5876if test "$ac_test_CXXFLAGS" = set; then
5877  CXXFLAGS=$ac_save_CXXFLAGS
5878elif test $ac_cv_prog_cxx_g = yes; then
5879  if test "$GXX" = yes; then
5880    CXXFLAGS="-g -O2"
5881  else
5882    CXXFLAGS="-g"
5883  fi
5884else
5885  if test "$GXX" = yes; then
5886    CXXFLAGS="-O2"
5887  else
5888    CXXFLAGS=
5889  fi
5890fi
5891for ac_declaration in \
5892   '' \
5893   'extern "C" void std::exit (int) throw (); using std::exit;' \
5894   'extern "C" void std::exit (int); using std::exit;' \
5895   'extern "C" void exit (int) throw ();' \
5896   'extern "C" void exit (int);' \
5897   'void exit (int);'
5898do
5899  cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905$ac_declaration
5906#include <stdlib.h>
5907int
5908main ()
5909{
5910exit (42);
5911  ;
5912  return 0;
5913}
5914_ACEOF
5915rm -f conftest.$ac_objext
5916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917  (eval $ac_compile) 2>conftest.er1
5918  ac_status=$?
5919  grep -v '^ *+' conftest.er1 >conftest.err
5920  rm -f conftest.er1
5921  cat conftest.err >&5
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); } &&
5924	 { ac_try='test -z "$ac_cxx_werror_flag"
5925			 || test ! -s conftest.err'
5926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927  (eval $ac_try) 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }; } &&
5931	 { ac_try='test -s conftest.$ac_objext'
5932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933  (eval $ac_try) 2>&5
5934  ac_status=$?
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); }; }; then
5937  :
5938else
5939  echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942continue
5943fi
5944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5945  cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h.  */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h.  */
5951$ac_declaration
5952int
5953main ()
5954{
5955exit (42);
5956  ;
5957  return 0;
5958}
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962  (eval $ac_compile) 2>conftest.er1
5963  ac_status=$?
5964  grep -v '^ *+' conftest.er1 >conftest.err
5965  rm -f conftest.er1
5966  cat conftest.err >&5
5967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968  (exit $ac_status); } &&
5969	 { ac_try='test -z "$ac_cxx_werror_flag"
5970			 || test ! -s conftest.err'
5971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972  (eval $ac_try) 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; } &&
5976	 { ac_try='test -s conftest.$ac_objext'
5977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978  (eval $ac_try) 2>&5
5979  ac_status=$?
5980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981  (exit $ac_status); }; }; then
5982  break
5983else
5984  echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987fi
5988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5989done
5990rm -f conftest*
5991if test -n "$ac_declaration"; then
5992  echo '#ifdef __cplusplus' >>confdefs.h
5993  echo $ac_declaration      >>confdefs.h
5994  echo '#endif'             >>confdefs.h
5995fi
5996
5997ac_ext=cc
5998ac_cpp='$CXXCPP $CPPFLAGS'
5999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6002
6003depcc="$CXX"  am_compiler_list=
6004
6005echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6006echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6007if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6011  # We make a subdir and do the tests there.  Otherwise we can end up
6012  # making bogus files that we don't know about and never remove.  For
6013  # instance it was reported that on HP-UX the gcc test will end up
6014  # making a dummy file named `D' -- because `-MD' means `put the output
6015  # in D'.
6016  mkdir conftest.dir
6017  # Copy depcomp to subdir because otherwise we won't find it if we're
6018  # using a relative directory.
6019  cp "$am_depcomp" conftest.dir
6020  cd conftest.dir
6021  # We will build objects and dependencies in a subdirectory because
6022  # it helps to detect inapplicable dependency modes.  For instance
6023  # both Tru64's cc and ICC support -MD to output dependencies as a
6024  # side effect of compilation, but ICC will put the dependencies in
6025  # the current directory while Tru64 will put them in the object
6026  # directory.
6027  mkdir sub
6028
6029  am_cv_CXX_dependencies_compiler_type=none
6030  if test "$am_compiler_list" = ""; then
6031     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6032  fi
6033  for depmode in $am_compiler_list; do
6034    # Setup a source with many dependencies, because some compilers
6035    # like to wrap large dependency lists on column 80 (with \), and
6036    # we should not choose a depcomp mode which is confused by this.
6037    #
6038    # We need to recreate these files for each test, as the compiler may
6039    # overwrite some of them when testing with obscure command lines.
6040    # This happens at least with the AIX C compiler.
6041    : > sub/conftest.c
6042    for i in 1 2 3 4 5 6; do
6043      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6044      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6045      # Solaris 8's {/usr,}/bin/sh.
6046      touch sub/conftst$i.h
6047    done
6048    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6049
6050    case $depmode in
6051    nosideeffect)
6052      # after this tag, mechanisms are not by side-effect, so they'll
6053      # only be used when explicitly requested
6054      if test "x$enable_dependency_tracking" = xyes; then
6055	continue
6056      else
6057	break
6058      fi
6059      ;;
6060    none) break ;;
6061    esac
6062    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6063    # mode.  It turns out that the SunPro C++ compiler does not properly
6064    # handle `-M -o', and we need to detect this.
6065    if depmode=$depmode \
6066       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6067       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6068       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6069         >/dev/null 2>conftest.err &&
6070       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6071       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6072       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6073      # icc doesn't choke on unknown options, it will just issue warnings
6074      # or remarks (even with -Werror).  So we grep stderr for any message
6075      # that says an option was ignored or not supported.
6076      # When given -MP, icc 7.0 and 7.1 complain thusly:
6077      #   icc: Command line warning: ignoring option '-M'; no argument required
6078      # The diagnosis changed in icc 8.0:
6079      #   icc: Command line remark: option '-MP' not supported
6080      if (grep 'ignoring option' conftest.err ||
6081          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6082        am_cv_CXX_dependencies_compiler_type=$depmode
6083        break
6084      fi
6085    fi
6086  done
6087
6088  cd ..
6089  rm -rf conftest.dir
6090else
6091  am_cv_CXX_dependencies_compiler_type=none
6092fi
6093
6094fi
6095echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6096echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6097CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6098
6099
6100
6101if
6102  test "x$enable_dependency_tracking" != xno \
6103  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6104  am__fastdepCXX_TRUE=
6105  am__fastdepCXX_FALSE='#'
6106else
6107  am__fastdepCXX_TRUE='#'
6108  am__fastdepCXX_FALSE=
6109fi
6110
6111
6112
6113
6114if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6115    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6116    (test "X$CXX" != "Xg++"))) ; then
6117  ac_ext=cc
6118ac_cpp='$CXXCPP $CPPFLAGS'
6119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6122echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6123echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6124if test -z "$CXXCPP"; then
6125  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128      # Double quotes because CXXCPP needs to be expanded
6129    for CXXCPP in "$CXX -E" "/lib/cpp"
6130    do
6131      ac_preproc_ok=false
6132for ac_cxx_preproc_warn_flag in '' yes
6133do
6134  # Use a header file that comes with gcc, so configuring glibc
6135  # with a fresh cross-compiler works.
6136  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6137  # <limits.h> exists even on freestanding compilers.
6138  # On the NeXT, cc -E runs the code through the compiler's parser,
6139  # not just through cpp. "Syntax error" is here to catch this case.
6140  cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h.  */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h.  */
6146#ifdef __STDC__
6147# include <limits.h>
6148#else
6149# include <assert.h>
6150#endif
6151		     Syntax error
6152_ACEOF
6153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155  ac_status=$?
6156  grep -v '^ *+' conftest.er1 >conftest.err
6157  rm -f conftest.er1
6158  cat conftest.err >&5
6159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160  (exit $ac_status); } >/dev/null; then
6161  if test -s conftest.err; then
6162    ac_cpp_err=$ac_cxx_preproc_warn_flag
6163    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6164  else
6165    ac_cpp_err=
6166  fi
6167else
6168  ac_cpp_err=yes
6169fi
6170if test -z "$ac_cpp_err"; then
6171  :
6172else
6173  echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176  # Broken: fails on valid input.
6177continue
6178fi
6179rm -f conftest.err conftest.$ac_ext
6180
6181  # OK, works on sane cases.  Now check whether non-existent headers
6182  # can be detected and how.
6183  cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h.  */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h.  */
6189#include <ac_nonexistent.h>
6190_ACEOF
6191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193  ac_status=$?
6194  grep -v '^ *+' conftest.er1 >conftest.err
6195  rm -f conftest.er1
6196  cat conftest.err >&5
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); } >/dev/null; then
6199  if test -s conftest.err; then
6200    ac_cpp_err=$ac_cxx_preproc_warn_flag
6201    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6202  else
6203    ac_cpp_err=
6204  fi
6205else
6206  ac_cpp_err=yes
6207fi
6208if test -z "$ac_cpp_err"; then
6209  # Broken: success on invalid input.
6210continue
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215  # Passes both tests.
6216ac_preproc_ok=:
6217break
6218fi
6219rm -f conftest.err conftest.$ac_ext
6220
6221done
6222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6223rm -f conftest.err conftest.$ac_ext
6224if $ac_preproc_ok; then
6225  break
6226fi
6227
6228    done
6229    ac_cv_prog_CXXCPP=$CXXCPP
6230
6231fi
6232  CXXCPP=$ac_cv_prog_CXXCPP
6233else
6234  ac_cv_prog_CXXCPP=$CXXCPP
6235fi
6236echo "$as_me:$LINENO: result: $CXXCPP" >&5
6237echo "${ECHO_T}$CXXCPP" >&6
6238ac_preproc_ok=false
6239for ac_cxx_preproc_warn_flag in '' yes
6240do
6241  # Use a header file that comes with gcc, so configuring glibc
6242  # with a fresh cross-compiler works.
6243  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244  # <limits.h> exists even on freestanding compilers.
6245  # On the NeXT, cc -E runs the code through the compiler's parser,
6246  # not just through cpp. "Syntax error" is here to catch this case.
6247  cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h.  */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h.  */
6253#ifdef __STDC__
6254# include <limits.h>
6255#else
6256# include <assert.h>
6257#endif
6258		     Syntax error
6259_ACEOF
6260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } >/dev/null; then
6268  if test -s conftest.err; then
6269    ac_cpp_err=$ac_cxx_preproc_warn_flag
6270    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6271  else
6272    ac_cpp_err=
6273  fi
6274else
6275  ac_cpp_err=yes
6276fi
6277if test -z "$ac_cpp_err"; then
6278  :
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283  # Broken: fails on valid input.
6284continue
6285fi
6286rm -f conftest.err conftest.$ac_ext
6287
6288  # OK, works on sane cases.  Now check whether non-existent headers
6289  # can be detected and how.
6290  cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296#include <ac_nonexistent.h>
6297_ACEOF
6298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300  ac_status=$?
6301  grep -v '^ *+' conftest.er1 >conftest.err
6302  rm -f conftest.er1
6303  cat conftest.err >&5
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); } >/dev/null; then
6306  if test -s conftest.err; then
6307    ac_cpp_err=$ac_cxx_preproc_warn_flag
6308    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6309  else
6310    ac_cpp_err=
6311  fi
6312else
6313  ac_cpp_err=yes
6314fi
6315if test -z "$ac_cpp_err"; then
6316  # Broken: success on invalid input.
6317continue
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322  # Passes both tests.
6323ac_preproc_ok=:
6324break
6325fi
6326rm -f conftest.err conftest.$ac_ext
6327
6328done
6329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6330rm -f conftest.err conftest.$ac_ext
6331if $ac_preproc_ok; then
6332  :
6333else
6334  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6335See \`config.log' for more details." >&5
6336echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6337See \`config.log' for more details." >&2;}
6338   { (exit 1); exit 1; }; }
6339fi
6340
6341ac_ext=cc
6342ac_cpp='$CXXCPP $CPPFLAGS'
6343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6346
6347fi
6348
6349
6350ac_ext=f
6351ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6352ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6354if test -n "$ac_tool_prefix"; then
6355  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6356  do
6357    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361if test "${ac_cv_prog_F77+set}" = set; then
6362  echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364  if test -n "$F77"; then
6365  ac_cv_prog_F77="$F77" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370  IFS=$as_save_IFS
6371  test -z "$as_dir" && as_dir=.
6372  for ac_exec_ext in '' $ac_executable_extensions; do
6373  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376    break 2
6377  fi
6378done
6379done
6380
6381fi
6382fi
6383F77=$ac_cv_prog_F77
6384if test -n "$F77"; then
6385  echo "$as_me:$LINENO: result: $F77" >&5
6386echo "${ECHO_T}$F77" >&6
6387else
6388  echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
6390fi
6391
6392    test -n "$F77" && break
6393  done
6394fi
6395if test -z "$F77"; then
6396  ac_ct_F77=$F77
6397  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6398do
6399  # Extract the first word of "$ac_prog", so it can be a program name with args.
6400set dummy $ac_prog; ac_word=$2
6401echo "$as_me:$LINENO: checking for $ac_word" >&5
6402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6404  echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406  if test -n "$ac_ct_F77"; then
6407  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6408else
6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412  IFS=$as_save_IFS
6413  test -z "$as_dir" && as_dir=.
6414  for ac_exec_ext in '' $ac_executable_extensions; do
6415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416    ac_cv_prog_ac_ct_F77="$ac_prog"
6417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418    break 2
6419  fi
6420done
6421done
6422
6423fi
6424fi
6425ac_ct_F77=$ac_cv_prog_ac_ct_F77
6426if test -n "$ac_ct_F77"; then
6427  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6428echo "${ECHO_T}$ac_ct_F77" >&6
6429else
6430  echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6
6432fi
6433
6434  test -n "$ac_ct_F77" && break
6435done
6436
6437  F77=$ac_ct_F77
6438fi
6439
6440
6441# Provide some information about the compiler.
6442echo "$as_me:6442:" \
6443     "checking for Fortran 77 compiler version" >&5
6444ac_compiler=`set X $ac_compile; echo $2`
6445{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6446  (eval $ac_compiler --version </dev/null >&5) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }
6450{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6451  (eval $ac_compiler -v </dev/null >&5) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }
6455{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6456  (eval $ac_compiler -V </dev/null >&5) 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); }
6460rm -f a.out
6461
6462# If we don't use `.F' as extension, the preprocessor is not run on the
6463# input file.  (Note that this only needs to work for GNU compilers.)
6464ac_save_ext=$ac_ext
6465ac_ext=F
6466echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6467echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6468if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6469  echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471  cat >conftest.$ac_ext <<_ACEOF
6472      program main
6473#ifndef __GNUC__
6474       choke me
6475#endif
6476
6477      end
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481  (eval $ac_compile) 2>conftest.er1
6482  ac_status=$?
6483  grep -v '^ *+' conftest.er1 >conftest.err
6484  rm -f conftest.er1
6485  cat conftest.err >&5
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } &&
6488	 { ac_try='test -z "$ac_f77_werror_flag"
6489			 || test ! -s conftest.err'
6490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491  (eval $ac_try) 2>&5
6492  ac_status=$?
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); }; } &&
6495	 { ac_try='test -s conftest.$ac_objext'
6496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497  (eval $ac_try) 2>&5
6498  ac_status=$?
6499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500  (exit $ac_status); }; }; then
6501  ac_compiler_gnu=yes
6502else
6503  echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506ac_compiler_gnu=no
6507fi
6508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6510
6511fi
6512echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6513echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6514ac_ext=$ac_save_ext
6515ac_test_FFLAGS=${FFLAGS+set}
6516ac_save_FFLAGS=$FFLAGS
6517FFLAGS=
6518echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6519echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6520if test "${ac_cv_prog_f77_g+set}" = set; then
6521  echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523  FFLAGS=-g
6524cat >conftest.$ac_ext <<_ACEOF
6525      program main
6526
6527      end
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531  (eval $ac_compile) 2>conftest.er1
6532  ac_status=$?
6533  grep -v '^ *+' conftest.er1 >conftest.err
6534  rm -f conftest.er1
6535  cat conftest.err >&5
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); } &&
6538	 { ac_try='test -z "$ac_f77_werror_flag"
6539			 || test ! -s conftest.err'
6540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  (eval $ac_try) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); }; } &&
6545	 { ac_try='test -s conftest.$ac_objext'
6546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547  (eval $ac_try) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); }; }; then
6551  ac_cv_prog_f77_g=yes
6552else
6553  echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556ac_cv_prog_f77_g=no
6557fi
6558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559
6560fi
6561echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6562echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6563if test "$ac_test_FFLAGS" = set; then
6564  FFLAGS=$ac_save_FFLAGS
6565elif test $ac_cv_prog_f77_g = yes; then
6566  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6567    FFLAGS="-g -O2"
6568  else
6569    FFLAGS="-g"
6570  fi
6571else
6572  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6573    FFLAGS="-O2"
6574  else
6575    FFLAGS=
6576  fi
6577fi
6578
6579G77=`test $ac_compiler_gnu = yes && echo yes`
6580ac_ext=c
6581ac_cpp='$CPP $CPPFLAGS'
6582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585
6586
6587
6588# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6589
6590# find the maximum length of command line arguments
6591echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6592echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6593if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6594  echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596    i=0
6597  teststring="ABCD"
6598
6599  case $build_os in
6600  msdosdjgpp*)
6601    # On DJGPP, this test can blow up pretty badly due to problems in libc
6602    # (any single argument exceeding 2000 bytes causes a buffer overrun
6603    # during glob expansion).  Even if it were fixed, the result of this
6604    # check would be larger than it should be.
6605    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6606    ;;
6607
6608  gnu*)
6609    # Under GNU Hurd, this test is not required because there is
6610    # no limit to the length of command line arguments.
6611    # Libtool will interpret -1 as no limit whatsoever
6612    lt_cv_sys_max_cmd_len=-1;
6613    ;;
6614
6615  cygwin* | mingw*)
6616    # On Win9x/ME, this test blows up -- it succeeds, but takes
6617    # about 5 minutes as the teststring grows exponentially.
6618    # Worse, since 9x/ME are not pre-emptively multitasking,
6619    # you end up with a "frozen" computer, even though with patience
6620    # the test eventually succeeds (with a max line length of 256k).
6621    # Instead, let's just punt: use the minimum linelength reported by
6622    # all of the supported platforms: 8192 (on NT/2K/XP).
6623    lt_cv_sys_max_cmd_len=8192;
6624    ;;
6625
6626  amigaos*)
6627    # On AmigaOS with pdksh, this test takes hours, literally.
6628    # So we just punt and use a minimum line length of 8192.
6629    lt_cv_sys_max_cmd_len=8192;
6630    ;;
6631
6632  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6633    # This has been around since 386BSD, at least.  Likely further.
6634    if test -x /sbin/sysctl; then
6635      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6636    elif test -x /usr/sbin/sysctl; then
6637      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6638    else
6639      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6640    fi
6641    # And add a safety zone
6642    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6643    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644    ;;
6645
6646  interix*)
6647    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6648    lt_cv_sys_max_cmd_len=196608
6649    ;;
6650
6651  osf*)
6652    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6653    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6654    # nice to cause kernel panics so lets avoid the loop below.
6655    # First set a reasonable default.
6656    lt_cv_sys_max_cmd_len=16384
6657    #
6658    if test -x /sbin/sysconfig; then
6659      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6660        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6661      esac
6662    fi
6663    ;;
6664  sco3.2v5*)
6665    lt_cv_sys_max_cmd_len=102400
6666    ;;
6667  sysv5* | sco5v6* | sysv4.2uw2*)
6668    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6669    if test -n "$kargmax"; then
6670      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6671    else
6672      lt_cv_sys_max_cmd_len=32768
6673    fi
6674    ;;
6675  *)
6676    # If test is not a shell built-in, we'll probably end up computing a
6677    # maximum length that is only half of the actual maximum length, but
6678    # we can't tell.
6679    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6680    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6681	       = "XX$teststring") >/dev/null 2>&1 &&
6682	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6683	    lt_cv_sys_max_cmd_len=$new_result &&
6684	    test $i != 17 # 1/2 MB should be enough
6685    do
6686      i=`expr $i + 1`
6687      teststring=$teststring$teststring
6688    done
6689    teststring=
6690    # Add a significant safety factor because C++ compilers can tack on massive
6691    # amounts of additional arguments before passing them to the linker.
6692    # It appears as though 1/2 is a usable value.
6693    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6694    ;;
6695  esac
6696
6697fi
6698
6699if test -n $lt_cv_sys_max_cmd_len ; then
6700  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6701echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6702else
6703  echo "$as_me:$LINENO: result: none" >&5
6704echo "${ECHO_T}none" >&6
6705fi
6706
6707
6708
6709
6710# Check for command to grab the raw symbol name followed by C symbol from nm.
6711echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6712echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6713if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6714  echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716
6717# These are sane defaults that work on at least a few old systems.
6718# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6719
6720# Character class describing NM global symbol codes.
6721symcode='[BCDEGRST]'
6722
6723# Regexp to match symbols that can be accessed directly from C.
6724sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6725
6726# Transform an extracted symbol line into a proper C declaration
6727lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6728
6729# Transform an extracted symbol line into symbol name and symbol address
6730lt_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'"
6731
6732# Define system-specific variables.
6733case $host_os in
6734aix*)
6735  symcode='[BCDT]'
6736  ;;
6737cygwin* | mingw* | pw32*)
6738  symcode='[ABCDGISTW]'
6739  ;;
6740hpux*) # Its linker distinguishes data from code symbols
6741  if test "$host_cpu" = ia64; then
6742    symcode='[ABCDEGRST]'
6743  fi
6744  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6745  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'"
6746  ;;
6747linux*)
6748  if test "$host_cpu" = ia64; then
6749    symcode='[ABCDGIRSTW]'
6750    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6751    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'"
6752  fi
6753  ;;
6754irix* | nonstopux*)
6755  symcode='[BCDEGRST]'
6756  ;;
6757osf*)
6758  symcode='[BCDEGQRST]'
6759  ;;
6760solaris*)
6761  symcode='[BDRT]'
6762  ;;
6763sco3.2v5*)
6764  symcode='[DT]'
6765  ;;
6766sysv4.2uw2*)
6767  symcode='[DT]'
6768  ;;
6769sysv5* | sco5v6* | unixware* | OpenUNIX*)
6770  symcode='[ABDT]'
6771  ;;
6772sysv4)
6773  symcode='[DFNSTU]'
6774  ;;
6775esac
6776
6777# Handle CRLF in mingw tool chain
6778opt_cr=
6779case $build_os in
6780mingw*)
6781  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6782  ;;
6783esac
6784
6785# If we're using GNU nm, then use its standard symbol codes.
6786case `$NM -V 2>&1` in
6787*GNU* | *'with BFD'*)
6788  symcode='[ABCDGIRSTW]' ;;
6789esac
6790
6791# Try without a prefix undercore, then with it.
6792for ac_symprfx in "" "_"; do
6793
6794  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6795  symxfrm="\\1 $ac_symprfx\\2 \\2"
6796
6797  # Write the raw and C identifiers.
6798  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6799
6800  # Check to see that the pipe works correctly.
6801  pipe_works=no
6802
6803  rm -f conftest*
6804  cat > conftest.$ac_ext <<EOF
6805#ifdef __cplusplus
6806extern "C" {
6807#endif
6808char nm_test_var;
6809void nm_test_func(){}
6810#ifdef __cplusplus
6811}
6812#endif
6813int main(){nm_test_var='a';nm_test_func();return(0);}
6814EOF
6815
6816  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817  (eval $ac_compile) 2>&5
6818  ac_status=$?
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); }; then
6821    # Now try to grab the symbols.
6822    nlist=conftest.nm
6823    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6824  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6825  ac_status=$?
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); } && test -s "$nlist"; then
6828      # Try sorting and uniquifying the output.
6829      if sort "$nlist" | uniq > "$nlist"T; then
6830	mv -f "$nlist"T "$nlist"
6831      else
6832	rm -f "$nlist"T
6833      fi
6834
6835      # Make sure that we snagged all the symbols we need.
6836      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6837	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6838	  cat <<EOF > conftest.$ac_ext
6839#ifdef __cplusplus
6840extern "C" {
6841#endif
6842
6843EOF
6844	  # Now generate the symbol file.
6845	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6846
6847	  cat <<EOF >> conftest.$ac_ext
6848#if defined (__STDC__) && __STDC__
6849# define lt_ptr_t void *
6850#else
6851# define lt_ptr_t char *
6852# define const
6853#endif
6854
6855/* The mapping between symbol names and symbols. */
6856const struct {
6857  const char *name;
6858  lt_ptr_t address;
6859}
6860lt_preloaded_symbols[] =
6861{
6862EOF
6863	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6864	  cat <<\EOF >> conftest.$ac_ext
6865  {0, (lt_ptr_t) 0}
6866};
6867
6868#ifdef __cplusplus
6869}
6870#endif
6871EOF
6872	  # Now try linking the two files.
6873	  mv conftest.$ac_objext conftstm.$ac_objext
6874	  lt_save_LIBS="$LIBS"
6875	  lt_save_CFLAGS="$CFLAGS"
6876	  LIBS="conftstm.$ac_objext"
6877	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6878	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6879  (eval $ac_link) 2>&5
6880  ac_status=$?
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6883	    pipe_works=yes
6884	  fi
6885	  LIBS="$lt_save_LIBS"
6886	  CFLAGS="$lt_save_CFLAGS"
6887	else
6888	  echo "cannot find nm_test_func in $nlist" >&5
6889	fi
6890      else
6891	echo "cannot find nm_test_var in $nlist" >&5
6892      fi
6893    else
6894      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6895    fi
6896  else
6897    echo "$progname: failed program was:" >&5
6898    cat conftest.$ac_ext >&5
6899  fi
6900  rm -f conftest* conftst*
6901
6902  # Do not use the global_symbol_pipe unless it works.
6903  if test "$pipe_works" = yes; then
6904    break
6905  else
6906    lt_cv_sys_global_symbol_pipe=
6907  fi
6908done
6909
6910fi
6911
6912if test -z "$lt_cv_sys_global_symbol_pipe"; then
6913  lt_cv_sys_global_symbol_to_cdecl=
6914fi
6915if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6916  echo "$as_me:$LINENO: result: failed" >&5
6917echo "${ECHO_T}failed" >&6
6918else
6919  echo "$as_me:$LINENO: result: ok" >&5
6920echo "${ECHO_T}ok" >&6
6921fi
6922
6923echo "$as_me:$LINENO: checking for objdir" >&5
6924echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6925if test "${lt_cv_objdir+set}" = set; then
6926  echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928  rm -f .libs 2>/dev/null
6929mkdir .libs 2>/dev/null
6930if test -d .libs; then
6931  lt_cv_objdir=.libs
6932else
6933  # MS-DOS does not allow filenames that begin with a dot.
6934  lt_cv_objdir=_libs
6935fi
6936rmdir .libs 2>/dev/null
6937fi
6938echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6939echo "${ECHO_T}$lt_cv_objdir" >&6
6940objdir=$lt_cv_objdir
6941
6942
6943
6944
6945
6946case $host_os in
6947aix3*)
6948  # AIX sometimes has problems with the GCC collect2 program.  For some
6949  # reason, if we set the COLLECT_NAMES environment variable, the problems
6950  # vanish in a puff of smoke.
6951  if test "X${COLLECT_NAMES+set}" != Xset; then
6952    COLLECT_NAMES=
6953    export COLLECT_NAMES
6954  fi
6955  ;;
6956esac
6957
6958# Sed substitution that helps us do robust quoting.  It backslashifies
6959# metacharacters that are still active within double-quoted strings.
6960Xsed='sed -e 1s/^X//'
6961sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6962
6963# Same as above, but do not quote variable references.
6964double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6965
6966# Sed substitution to delay expansion of an escaped shell variable in a
6967# double_quote_subst'ed string.
6968delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6969
6970# Sed substitution to avoid accidental globbing in evaled expressions
6971no_glob_subst='s/\*/\\\*/g'
6972
6973# Constants:
6974rm="rm -f"
6975
6976# Global variables:
6977default_ofile=libtool
6978can_build_shared=yes
6979
6980# All known linkers require a `.a' archive for static linking (except MSVC,
6981# which needs '.lib').
6982libext=a
6983ltmain="$ac_aux_dir/ltmain.sh"
6984ofile="$default_ofile"
6985with_gnu_ld="$lt_cv_prog_gnu_ld"
6986
6987if test -n "$ac_tool_prefix"; then
6988  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}ar; ac_word=$2
6990echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992if test "${ac_cv_prog_AR+set}" = set; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995  if test -n "$AR"; then
6996  ac_cv_prog_AR="$AR" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003  for ac_exec_ext in '' $ac_executable_extensions; do
7004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005    ac_cv_prog_AR="${ac_tool_prefix}ar"
7006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010done
7011
7012fi
7013fi
7014AR=$ac_cv_prog_AR
7015if test -n "$AR"; then
7016  echo "$as_me:$LINENO: result: $AR" >&5
7017echo "${ECHO_T}$AR" >&6
7018else
7019  echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6
7021fi
7022
7023fi
7024if test -z "$ac_cv_prog_AR"; then
7025  ac_ct_AR=$AR
7026  # Extract the first word of "ar", so it can be a program name with args.
7027set dummy ar; ac_word=$2
7028echo "$as_me:$LINENO: checking for $ac_word" >&5
7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7030if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  if test -n "$ac_ct_AR"; then
7034  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041  for ac_exec_ext in '' $ac_executable_extensions; do
7042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_ac_ct_AR="ar"
7044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048done
7049
7050  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7051fi
7052fi
7053ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054if test -n "$ac_ct_AR"; then
7055  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7056echo "${ECHO_T}$ac_ct_AR" >&6
7057else
7058  echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
7060fi
7061
7062  AR=$ac_ct_AR
7063else
7064  AR="$ac_cv_prog_AR"
7065fi
7066
7067if test -n "$ac_tool_prefix"; then
7068  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7070echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7072if test "${ac_cv_prog_RANLIB+set}" = set; then
7073  echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075  if test -n "$RANLIB"; then
7076  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083  for ac_exec_ext in '' $ac_executable_extensions; do
7084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090done
7091
7092fi
7093fi
7094RANLIB=$ac_cv_prog_RANLIB
7095if test -n "$RANLIB"; then
7096  echo "$as_me:$LINENO: result: $RANLIB" >&5
7097echo "${ECHO_T}$RANLIB" >&6
7098else
7099  echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101fi
7102
7103fi
7104if test -z "$ac_cv_prog_RANLIB"; then
7105  ac_ct_RANLIB=$RANLIB
7106  # Extract the first word of "ranlib", so it can be a program name with args.
7107set dummy ranlib; ac_word=$2
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  if test -n "$ac_ct_RANLIB"; then
7114  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121  for ac_exec_ext in '' $ac_executable_extensions; do
7122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123    ac_cv_prog_ac_ct_RANLIB="ranlib"
7124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128done
7129
7130  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7131fi
7132fi
7133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7134if test -n "$ac_ct_RANLIB"; then
7135  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7136echo "${ECHO_T}$ac_ct_RANLIB" >&6
7137else
7138  echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140fi
7141
7142  RANLIB=$ac_ct_RANLIB
7143else
7144  RANLIB="$ac_cv_prog_RANLIB"
7145fi
7146
7147if test -n "$ac_tool_prefix"; then
7148  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}strip; ac_word=$2
7150echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7152if test "${ac_cv_prog_STRIP+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  if test -n "$STRIP"; then
7156  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163  for ac_exec_ext in '' $ac_executable_extensions; do
7164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170done
7171
7172fi
7173fi
7174STRIP=$ac_cv_prog_STRIP
7175if test -n "$STRIP"; then
7176  echo "$as_me:$LINENO: result: $STRIP" >&5
7177echo "${ECHO_T}$STRIP" >&6
7178else
7179  echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181fi
7182
7183fi
7184if test -z "$ac_cv_prog_STRIP"; then
7185  ac_ct_STRIP=$STRIP
7186  # Extract the first word of "strip", so it can be a program name with args.
7187set dummy strip; ac_word=$2
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  if test -n "$ac_ct_STRIP"; then
7194  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_ac_ct_STRIP="strip"
7204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209
7210  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7211fi
7212fi
7213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7214if test -n "$ac_ct_STRIP"; then
7215  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7216echo "${ECHO_T}$ac_ct_STRIP" >&6
7217else
7218  echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6
7220fi
7221
7222  STRIP=$ac_ct_STRIP
7223else
7224  STRIP="$ac_cv_prog_STRIP"
7225fi
7226
7227
7228old_CC="$CC"
7229old_CFLAGS="$CFLAGS"
7230
7231# Set sane defaults for various variables
7232test -z "$AR" && AR=ar
7233test -z "$AR_FLAGS" && AR_FLAGS=cru
7234test -z "$AS" && AS=as
7235test -z "$CC" && CC=cc
7236test -z "$LTCC" && LTCC=$CC
7237test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7238test -z "$DLLTOOL" && DLLTOOL=dlltool
7239test -z "$LD" && LD=ld
7240test -z "$LN_S" && LN_S="ln -s"
7241test -z "$MAGIC_CMD" && MAGIC_CMD=file
7242test -z "$NM" && NM=nm
7243test -z "$SED" && SED=sed
7244test -z "$OBJDUMP" && OBJDUMP=objdump
7245test -z "$RANLIB" && RANLIB=:
7246test -z "$STRIP" && STRIP=:
7247test -z "$ac_objext" && ac_objext=o
7248
7249# Determine commands to create old-style static archives.
7250old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7251old_postinstall_cmds='chmod 644 $oldlib'
7252old_postuninstall_cmds=
7253
7254if test -n "$RANLIB"; then
7255  case $host_os in
7256  openbsd*)
7257    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7258    ;;
7259  *)
7260    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7261    ;;
7262  esac
7263  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7264fi
7265
7266for cc_temp in $compiler""; do
7267  case $cc_temp in
7268    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7269    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7270    \-*) ;;
7271    *) break;;
7272  esac
7273done
7274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7275
7276
7277# Only perform the check for file, if the check method requires it
7278case $deplibs_check_method in
7279file_magic*)
7280  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7281    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7282echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7283if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286  case $MAGIC_CMD in
7287[\\/*] |  ?:[\\/]*)
7288  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7289  ;;
7290*)
7291  lt_save_MAGIC_CMD="$MAGIC_CMD"
7292  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7293  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7294  for ac_dir in $ac_dummy; do
7295    IFS="$lt_save_ifs"
7296    test -z "$ac_dir" && ac_dir=.
7297    if test -f $ac_dir/${ac_tool_prefix}file; then
7298      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7299      if test -n "$file_magic_test_file"; then
7300	case $deplibs_check_method in
7301	"file_magic "*)
7302	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7303	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7304	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7305	    $EGREP "$file_magic_regex" > /dev/null; then
7306	    :
7307	  else
7308	    cat <<EOF 1>&2
7309
7310*** Warning: the command libtool uses to detect shared libraries,
7311*** $file_magic_cmd, produces output that libtool cannot recognize.
7312*** The result is that libtool may fail to recognize shared libraries
7313*** as such.  This will affect the creation of libtool libraries that
7314*** depend on shared libraries, but programs linked with such libtool
7315*** libraries will work regardless of this problem.  Nevertheless, you
7316*** may want to report the problem to your system manager and/or to
7317*** bug-libtool@gnu.org
7318
7319EOF
7320	  fi ;;
7321	esac
7322      fi
7323      break
7324    fi
7325  done
7326  IFS="$lt_save_ifs"
7327  MAGIC_CMD="$lt_save_MAGIC_CMD"
7328  ;;
7329esac
7330fi
7331
7332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333if test -n "$MAGIC_CMD"; then
7334  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7335echo "${ECHO_T}$MAGIC_CMD" >&6
7336else
7337  echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339fi
7340
7341if test -z "$lt_cv_path_MAGIC_CMD"; then
7342  if test -n "$ac_tool_prefix"; then
7343    echo "$as_me:$LINENO: checking for file" >&5
7344echo $ECHO_N "checking for file... $ECHO_C" >&6
7345if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7346  echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348  case $MAGIC_CMD in
7349[\\/*] |  ?:[\\/]*)
7350  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7351  ;;
7352*)
7353  lt_save_MAGIC_CMD="$MAGIC_CMD"
7354  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7355  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7356  for ac_dir in $ac_dummy; do
7357    IFS="$lt_save_ifs"
7358    test -z "$ac_dir" && ac_dir=.
7359    if test -f $ac_dir/file; then
7360      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7361      if test -n "$file_magic_test_file"; then
7362	case $deplibs_check_method in
7363	"file_magic "*)
7364	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7365	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7366	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7367	    $EGREP "$file_magic_regex" > /dev/null; then
7368	    :
7369	  else
7370	    cat <<EOF 1>&2
7371
7372*** Warning: the command libtool uses to detect shared libraries,
7373*** $file_magic_cmd, produces output that libtool cannot recognize.
7374*** The result is that libtool may fail to recognize shared libraries
7375*** as such.  This will affect the creation of libtool libraries that
7376*** depend on shared libraries, but programs linked with such libtool
7377*** libraries will work regardless of this problem.  Nevertheless, you
7378*** may want to report the problem to your system manager and/or to
7379*** bug-libtool@gnu.org
7380
7381EOF
7382	  fi ;;
7383	esac
7384      fi
7385      break
7386    fi
7387  done
7388  IFS="$lt_save_ifs"
7389  MAGIC_CMD="$lt_save_MAGIC_CMD"
7390  ;;
7391esac
7392fi
7393
7394MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395if test -n "$MAGIC_CMD"; then
7396  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7397echo "${ECHO_T}$MAGIC_CMD" >&6
7398else
7399  echo "$as_me:$LINENO: result: no" >&5
7400echo "${ECHO_T}no" >&6
7401fi
7402
7403  else
7404    MAGIC_CMD=:
7405  fi
7406fi
7407
7408  fi
7409  ;;
7410esac
7411
7412enable_dlopen=no
7413enable_win32_dll=no
7414
7415# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7416if test "${enable_libtool_lock+set}" = set; then
7417  enableval="$enable_libtool_lock"
7418
7419fi;
7420test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7421
7422
7423# Check whether --with-pic or --without-pic was given.
7424if test "${with_pic+set}" = set; then
7425  withval="$with_pic"
7426  pic_mode="$withval"
7427else
7428  pic_mode=default
7429fi;
7430test -z "$pic_mode" && pic_mode=default
7431
7432# Use C for the default configuration in the libtool script
7433tagname=
7434lt_save_CC="$CC"
7435ac_ext=c
7436ac_cpp='$CPP $CPPFLAGS'
7437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439ac_compiler_gnu=$ac_cv_c_compiler_gnu
7440
7441
7442# Source file extension for C test sources.
7443ac_ext=c
7444
7445# Object file extension for compiled C test sources.
7446objext=o
7447objext=$objext
7448
7449# Code to be used in simple compile tests
7450lt_simple_compile_test_code="int some_variable = 0;\n"
7451
7452# Code to be used in simple link tests
7453lt_simple_link_test_code='int main(){return(0);}\n'
7454
7455
7456# If no C compiler was specified, use CC.
7457LTCC=${LTCC-"$CC"}
7458
7459# If no C compiler flags were specified, use CFLAGS.
7460LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7461
7462# Allow CC to be a program name with arguments.
7463compiler=$CC
7464
7465
7466# save warnings/boilerplate of simple test code
7467ac_outfile=conftest.$ac_objext
7468printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7469eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7470_lt_compiler_boilerplate=`cat conftest.err`
7471$rm conftest*
7472
7473ac_outfile=conftest.$ac_objext
7474printf "$lt_simple_link_test_code" >conftest.$ac_ext
7475eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7476_lt_linker_boilerplate=`cat conftest.err`
7477$rm conftest*
7478
7479
7480## CAVEAT EMPTOR:
7481## There is no encapsulation within the following macros, do not change
7482## the running order or otherwise move them around unless you know exactly
7483## what you are doing...
7484
7485lt_prog_compiler_no_builtin_flag=
7486
7487if test "$GCC" = yes; then
7488  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7489
7490
7491echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7492echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7493if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  lt_cv_prog_compiler_rtti_exceptions=no
7497  ac_outfile=conftest.$ac_objext
7498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7499   lt_compiler_flag="-fno-rtti -fno-exceptions"
7500   # Insert the option either (1) after the last *FLAGS variable, or
7501   # (2) before a word containing "conftest.", or (3) at the end.
7502   # Note that $ac_compile itself does not contain backslashes and begins
7503   # with a dollar sign (not a hyphen), so the echo should work correctly.
7504   # The option is referenced via a variable to avoid confusing sed.
7505   lt_compile=`echo "$ac_compile" | $SED \
7506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7508   -e 's:$: $lt_compiler_flag:'`
7509   (eval echo "\"\$as_me:7509: $lt_compile\"" >&5)
7510   (eval "$lt_compile" 2>conftest.err)
7511   ac_status=$?
7512   cat conftest.err >&5
7513   echo "$as_me:7513: \$? = $ac_status" >&5
7514   if (exit $ac_status) && test -s "$ac_outfile"; then
7515     # The compiler can only warn and ignore the option if not recognized
7516     # So say no if there are warnings other than the usual output.
7517     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7518     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7519     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7520       lt_cv_prog_compiler_rtti_exceptions=yes
7521     fi
7522   fi
7523   $rm conftest*
7524
7525fi
7526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7527echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7528
7529if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7530    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7531else
7532    :
7533fi
7534
7535fi
7536
7537lt_prog_compiler_wl=
7538lt_prog_compiler_pic=
7539lt_prog_compiler_static=
7540
7541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7543
7544  if test "$GCC" = yes; then
7545    lt_prog_compiler_wl='-Wl,'
7546    lt_prog_compiler_static='-static'
7547
7548    case $host_os in
7549      aix*)
7550      # All AIX code is PIC.
7551      if test "$host_cpu" = ia64; then
7552	# AIX 5 now supports IA64 processor
7553	lt_prog_compiler_static='-Bstatic'
7554      fi
7555      ;;
7556
7557    amigaos*)
7558      # FIXME: we need at least 68020 code to build shared libraries, but
7559      # adding the `-m68020' flag to GCC prevents building anything better,
7560      # like `-m68040'.
7561      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7562      ;;
7563
7564    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7565      # PIC is the default for these OSes.
7566      ;;
7567
7568    mingw* | pw32* | os2*)
7569      # This hack is so that the source file can tell whether it is being
7570      # built for inclusion in a dll (and should export symbols for example).
7571      lt_prog_compiler_pic='-DDLL_EXPORT'
7572      ;;
7573
7574    darwin* | rhapsody*)
7575      # PIC is the default on this platform
7576      # Common symbols not allowed in MH_DYLIB files
7577      lt_prog_compiler_pic='-fno-common'
7578      ;;
7579
7580    interix3*)
7581      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7582      # Instead, we relocate shared libraries at runtime.
7583      ;;
7584
7585    msdosdjgpp*)
7586      # Just because we use GCC doesn't mean we suddenly get shared libraries
7587      # on systems that don't support them.
7588      lt_prog_compiler_can_build_shared=no
7589      enable_shared=no
7590      ;;
7591
7592    sysv4*MP*)
7593      if test -d /usr/nec; then
7594	lt_prog_compiler_pic=-Kconform_pic
7595      fi
7596      ;;
7597
7598    hpux*)
7599      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7600      # not for PA HP-UX.
7601      case $host_cpu in
7602      hppa*64*|ia64*)
7603	# +Z the default
7604	;;
7605      *)
7606	lt_prog_compiler_pic='-fPIC'
7607	;;
7608      esac
7609      ;;
7610
7611    *)
7612      lt_prog_compiler_pic='-fPIC'
7613      ;;
7614    esac
7615  else
7616    # PORTME Check for flag to pass linker flags through the system compiler.
7617    case $host_os in
7618    aix*)
7619      lt_prog_compiler_wl='-Wl,'
7620      if test "$host_cpu" = ia64; then
7621	# AIX 5 now supports IA64 processor
7622	lt_prog_compiler_static='-Bstatic'
7623      else
7624	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7625      fi
7626      ;;
7627      darwin*)
7628        # PIC is the default on this platform
7629        # Common symbols not allowed in MH_DYLIB files
7630       case $cc_basename in
7631         xlc*)
7632         lt_prog_compiler_pic='-qnocommon'
7633         lt_prog_compiler_wl='-Wl,'
7634         ;;
7635       esac
7636       ;;
7637
7638    mingw* | pw32* | os2*)
7639      # This hack is so that the source file can tell whether it is being
7640      # built for inclusion in a dll (and should export symbols for example).
7641      lt_prog_compiler_pic='-DDLL_EXPORT'
7642      ;;
7643
7644    hpux9* | hpux10* | hpux11*)
7645      lt_prog_compiler_wl='-Wl,'
7646      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7647      # not for PA HP-UX.
7648      case $host_cpu in
7649      hppa*64*|ia64*)
7650	# +Z the default
7651	;;
7652      *)
7653	lt_prog_compiler_pic='+Z'
7654	;;
7655      esac
7656      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7657      lt_prog_compiler_static='${wl}-a ${wl}archive'
7658      ;;
7659
7660    irix5* | irix6* | nonstopux*)
7661      lt_prog_compiler_wl='-Wl,'
7662      # PIC (with -KPIC) is the default.
7663      lt_prog_compiler_static='-non_shared'
7664      ;;
7665
7666    newsos6)
7667      lt_prog_compiler_pic='-KPIC'
7668      lt_prog_compiler_static='-Bstatic'
7669      ;;
7670
7671    linux*)
7672      case $cc_basename in
7673      icc* | ecc*)
7674	lt_prog_compiler_wl='-Wl,'
7675	lt_prog_compiler_pic='-KPIC'
7676	lt_prog_compiler_static='-static'
7677        ;;
7678      pgcc* | pgf77* | pgf90* | pgf95*)
7679        # Portland Group compilers (*not* the Pentium gcc compiler,
7680	# which looks to be a dead project)
7681	lt_prog_compiler_wl='-Wl,'
7682	lt_prog_compiler_pic='-fpic'
7683	lt_prog_compiler_static='-Bstatic'
7684        ;;
7685      ccc*)
7686        lt_prog_compiler_wl='-Wl,'
7687        # All Alpha code is PIC.
7688        lt_prog_compiler_static='-non_shared'
7689        ;;
7690      esac
7691      ;;
7692
7693    osf3* | osf4* | osf5*)
7694      lt_prog_compiler_wl='-Wl,'
7695      # All OSF/1 code is PIC.
7696      lt_prog_compiler_static='-non_shared'
7697      ;;
7698
7699    solaris*)
7700      lt_prog_compiler_pic='-KPIC'
7701      lt_prog_compiler_static='-Bstatic'
7702      case $cc_basename in
7703      f77* | f90* | f95*)
7704	lt_prog_compiler_wl='-Qoption ld ';;
7705      *)
7706	lt_prog_compiler_wl='-Wl,';;
7707      esac
7708      ;;
7709
7710    sunos4*)
7711      lt_prog_compiler_wl='-Qoption ld '
7712      lt_prog_compiler_pic='-PIC'
7713      lt_prog_compiler_static='-Bstatic'
7714      ;;
7715
7716    sysv4 | sysv4.2uw2* | sysv4.3*)
7717      lt_prog_compiler_wl='-Wl,'
7718      lt_prog_compiler_pic='-KPIC'
7719      lt_prog_compiler_static='-Bstatic'
7720      ;;
7721
7722    sysv4*MP*)
7723      if test -d /usr/nec ;then
7724	lt_prog_compiler_pic='-Kconform_pic'
7725	lt_prog_compiler_static='-Bstatic'
7726      fi
7727      ;;
7728
7729    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7730      lt_prog_compiler_wl='-Wl,'
7731      lt_prog_compiler_pic='-KPIC'
7732      lt_prog_compiler_static='-Bstatic'
7733      ;;
7734
7735    unicos*)
7736      lt_prog_compiler_wl='-Wl,'
7737      lt_prog_compiler_can_build_shared=no
7738      ;;
7739
7740    uts4*)
7741      lt_prog_compiler_pic='-pic'
7742      lt_prog_compiler_static='-Bstatic'
7743      ;;
7744
7745    *)
7746      lt_prog_compiler_can_build_shared=no
7747      ;;
7748    esac
7749  fi
7750
7751echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7752echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7753
7754#
7755# Check to make sure the PIC flag actually works.
7756#
7757if test -n "$lt_prog_compiler_pic"; then
7758
7759echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7760echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7761if test "${lt_prog_compiler_pic_works+set}" = set; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764  lt_prog_compiler_pic_works=no
7765  ac_outfile=conftest.$ac_objext
7766   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7768   # Insert the option either (1) after the last *FLAGS variable, or
7769   # (2) before a word containing "conftest.", or (3) at the end.
7770   # Note that $ac_compile itself does not contain backslashes and begins
7771   # with a dollar sign (not a hyphen), so the echo should work correctly.
7772   # The option is referenced via a variable to avoid confusing sed.
7773   lt_compile=`echo "$ac_compile" | $SED \
7774   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7775   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7776   -e 's:$: $lt_compiler_flag:'`
7777   (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
7778   (eval "$lt_compile" 2>conftest.err)
7779   ac_status=$?
7780   cat conftest.err >&5
7781   echo "$as_me:7781: \$? = $ac_status" >&5
7782   if (exit $ac_status) && test -s "$ac_outfile"; then
7783     # The compiler can only warn and ignore the option if not recognized
7784     # So say no if there are warnings other than the usual output.
7785     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7786     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7787     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7788       lt_prog_compiler_pic_works=yes
7789     fi
7790   fi
7791   $rm conftest*
7792
7793fi
7794echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7795echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7796
7797if test x"$lt_prog_compiler_pic_works" = xyes; then
7798    case $lt_prog_compiler_pic in
7799     "" | " "*) ;;
7800     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7801     esac
7802else
7803    lt_prog_compiler_pic=
7804     lt_prog_compiler_can_build_shared=no
7805fi
7806
7807fi
7808case $host_os in
7809  # For platforms which do not support PIC, -DPIC is meaningless:
7810  *djgpp*)
7811    lt_prog_compiler_pic=
7812    ;;
7813  *)
7814    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7815    ;;
7816esac
7817
7818#
7819# Check to make sure the static flag actually works.
7820#
7821wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7822echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7823echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7824if test "${lt_prog_compiler_static_works+set}" = set; then
7825  echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827  lt_prog_compiler_static_works=no
7828   save_LDFLAGS="$LDFLAGS"
7829   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7830   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7831   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7832     # The linker can only warn and ignore the option if not recognized
7833     # So say no if there are warnings
7834     if test -s conftest.err; then
7835       # Append any errors to the config.log.
7836       cat conftest.err 1>&5
7837       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7838       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839       if diff conftest.exp conftest.er2 >/dev/null; then
7840         lt_prog_compiler_static_works=yes
7841       fi
7842     else
7843       lt_prog_compiler_static_works=yes
7844     fi
7845   fi
7846   $rm conftest*
7847   LDFLAGS="$save_LDFLAGS"
7848
7849fi
7850echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7851echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7852
7853if test x"$lt_prog_compiler_static_works" = xyes; then
7854    :
7855else
7856    lt_prog_compiler_static=
7857fi
7858
7859
7860echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7861echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7862if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7863  echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865  lt_cv_prog_compiler_c_o=no
7866   $rm -r conftest 2>/dev/null
7867   mkdir conftest
7868   cd conftest
7869   mkdir out
7870   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7871
7872   lt_compiler_flag="-o out/conftest2.$ac_objext"
7873   # Insert the option either (1) after the last *FLAGS variable, or
7874   # (2) before a word containing "conftest.", or (3) at the end.
7875   # Note that $ac_compile itself does not contain backslashes and begins
7876   # with a dollar sign (not a hyphen), so the echo should work correctly.
7877   lt_compile=`echo "$ac_compile" | $SED \
7878   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7879   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7880   -e 's:$: $lt_compiler_flag:'`
7881   (eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
7882   (eval "$lt_compile" 2>out/conftest.err)
7883   ac_status=$?
7884   cat out/conftest.err >&5
7885   echo "$as_me:7885: \$? = $ac_status" >&5
7886   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7887   then
7888     # The compiler can only warn and ignore the option if not recognized
7889     # So say no if there are warnings
7890     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7891     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7892     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7893       lt_cv_prog_compiler_c_o=yes
7894     fi
7895   fi
7896   chmod u+w . 2>&5
7897   $rm conftest*
7898   # SGI C++ compiler will create directory out/ii_files/ for
7899   # template instantiation
7900   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7901   $rm out/* && rmdir out
7902   cd ..
7903   rmdir conftest
7904   $rm conftest*
7905
7906fi
7907echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7908echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7909
7910
7911hard_links="nottested"
7912if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7913  # do not overwrite the value of need_locks provided by the user
7914  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7915echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7916  hard_links=yes
7917  $rm conftest*
7918  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7919  touch conftest.a
7920  ln conftest.a conftest.b 2>&5 || hard_links=no
7921  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7922  echo "$as_me:$LINENO: result: $hard_links" >&5
7923echo "${ECHO_T}$hard_links" >&6
7924  if test "$hard_links" = no; then
7925    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7926echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7927    need_locks=warn
7928  fi
7929else
7930  need_locks=no
7931fi
7932
7933echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7934echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7935
7936  runpath_var=
7937  allow_undefined_flag=
7938  enable_shared_with_static_runtimes=no
7939  archive_cmds=
7940  archive_expsym_cmds=
7941  old_archive_From_new_cmds=
7942  old_archive_from_expsyms_cmds=
7943  export_dynamic_flag_spec=
7944  whole_archive_flag_spec=
7945  thread_safe_flag_spec=
7946  hardcode_libdir_flag_spec=
7947  hardcode_libdir_flag_spec_ld=
7948  hardcode_libdir_separator=
7949  hardcode_direct=no
7950  hardcode_minus_L=no
7951  hardcode_shlibpath_var=unsupported
7952  link_all_deplibs=unknown
7953  hardcode_automatic=no
7954  module_cmds=
7955  module_expsym_cmds=
7956  always_export_symbols=no
7957  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7958  # include_expsyms should be a list of space-separated symbols to be *always*
7959  # included in the symbol list
7960  include_expsyms=
7961  # exclude_expsyms can be an extended regexp of symbols to exclude
7962  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7963  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7964  # as well as any symbol that contains `d'.
7965  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7966  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7967  # platforms (ab)use it in PIC code, but their linkers get confused if
7968  # the symbol is explicitly referenced.  Since portable code cannot
7969  # rely on this symbol name, it's probably fine to never include it in
7970  # preloaded symbol tables.
7971  extract_expsyms_cmds=
7972  # Just being paranoid about ensuring that cc_basename is set.
7973  for cc_temp in $compiler""; do
7974  case $cc_temp in
7975    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7976    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7977    \-*) ;;
7978    *) break;;
7979  esac
7980done
7981cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7982
7983  case $host_os in
7984  cygwin* | mingw* | pw32*)
7985    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7986    # When not using gcc, we currently assume that we are using
7987    # Microsoft Visual C++.
7988    if test "$GCC" != yes; then
7989      with_gnu_ld=no
7990    fi
7991    ;;
7992  interix*)
7993    # we just hope/assume this is gcc and not c89 (= MSVC++)
7994    with_gnu_ld=yes
7995    ;;
7996  openbsd*)
7997    with_gnu_ld=no
7998    ;;
7999  esac
8000
8001  ld_shlibs=yes
8002  if test "$with_gnu_ld" = yes; then
8003    # If archive_cmds runs LD, not CC, wlarc should be empty
8004    wlarc='${wl}'
8005
8006    # Set some defaults for GNU ld with shared library support. These
8007    # are reset later if shared libraries are not supported. Putting them
8008    # here allows them to be overridden if necessary.
8009    runpath_var=LD_RUN_PATH
8010    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8011    export_dynamic_flag_spec='${wl}--export-dynamic'
8012    # ancient GNU ld didn't support --whole-archive et. al.
8013    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8014	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8015      else
8016  	whole_archive_flag_spec=
8017    fi
8018    supports_anon_versioning=no
8019    case `$LD -v 2>/dev/null` in
8020      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8021      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8022      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8023      *\ 2.11.*) ;; # other 2.11 versions
8024      *) supports_anon_versioning=yes ;;
8025    esac
8026
8027    # See if GNU ld supports shared libraries.
8028    case $host_os in
8029    aix3* | aix4* | aix5*)
8030      # On AIX/PPC, the GNU linker is very broken
8031      if test "$host_cpu" != ia64; then
8032	ld_shlibs=no
8033	cat <<EOF 1>&2
8034
8035*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8036*** to be unable to reliably create shared libraries on AIX.
8037*** Therefore, libtool is disabling shared libraries support.  If you
8038*** really care for shared libraries, you may want to modify your PATH
8039*** so that a non-GNU linker is found, and then restart.
8040
8041EOF
8042      fi
8043      ;;
8044
8045    amigaos*)
8046      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)'
8047      hardcode_libdir_flag_spec='-L$libdir'
8048      hardcode_minus_L=yes
8049
8050      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8051      # that the semantics of dynamic libraries on AmigaOS, at least up
8052      # to version 4, is to share data among multiple programs linked
8053      # with the same dynamic library.  Since this doesn't match the
8054      # behavior of shared libraries on other platforms, we can't use
8055      # them.
8056      ld_shlibs=no
8057      ;;
8058
8059    beos*)
8060      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061	allow_undefined_flag=unsupported
8062	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8063	# support --undefined.  This deserves some investigation.  FIXME
8064	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8065      else
8066	ld_shlibs=no
8067      fi
8068      ;;
8069
8070    cygwin* | mingw* | pw32*)
8071      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8072      # as there is no search path for DLLs.
8073      hardcode_libdir_flag_spec='-L$libdir'
8074      allow_undefined_flag=unsupported
8075      always_export_symbols=no
8076      enable_shared_with_static_runtimes=yes
8077      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8078
8079      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8080        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8081	# If the export-symbols file already is a .def file (1st line
8082	# is EXPORTS), use it as is; otherwise, prepend...
8083	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8084	  cp $export_symbols $output_objdir/$soname.def;
8085	else
8086	  echo EXPORTS > $output_objdir/$soname.def;
8087	  cat $export_symbols >> $output_objdir/$soname.def;
8088	fi~
8089	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8090      else
8091	ld_shlibs=no
8092      fi
8093      ;;
8094
8095    interix3*)
8096      hardcode_direct=no
8097      hardcode_shlibpath_var=no
8098      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8099      export_dynamic_flag_spec='${wl}-E'
8100      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8101      # Instead, shared libraries are loaded at an image base (0x10000000 by
8102      # default) and relocated if they conflict, which is a slow very memory
8103      # consuming and fragmenting process.  To avoid this, we pick a random,
8104      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8105      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8106      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8107      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8108      ;;
8109
8110    linux*)
8111      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8112	tmp_addflag=
8113	case $cc_basename,$host_cpu in
8114	pgcc*)				# Portland Group C compiler
8115	  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'
8116	  tmp_addflag=' $pic_flag'
8117	  ;;
8118	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8119	  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'
8120	  tmp_addflag=' $pic_flag -Mnomain' ;;
8121	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8122	  tmp_addflag=' -i_dynamic' ;;
8123	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8124	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8125	ifc* | ifort*)			# Intel Fortran compiler
8126	  tmp_addflag=' -nofor_main' ;;
8127	esac
8128	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129
8130	if test $supports_anon_versioning = yes; then
8131	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8132  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8133  $echo "local: *; };" >> $output_objdir/$libname.ver~
8134	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8135	fi
8136      else
8137	ld_shlibs=no
8138      fi
8139      ;;
8140
8141    netbsd*)
8142      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8143	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8144	wlarc=
8145      else
8146	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8148      fi
8149      ;;
8150
8151    solaris*)
8152      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8153	ld_shlibs=no
8154	cat <<EOF 1>&2
8155
8156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8157*** create shared libraries on Solaris systems.  Therefore, libtool
8158*** is disabling shared libraries support.  We urge you to upgrade GNU
8159*** binutils to release 2.9.1 or newer.  Another option is to modify
8160*** your PATH or compiler configuration so that the native linker is
8161*** used, and then restart.
8162
8163EOF
8164      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8167      else
8168	ld_shlibs=no
8169      fi
8170      ;;
8171
8172    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8173      case `$LD -v 2>&1` in
8174        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8175	ld_shlibs=no
8176	cat <<_LT_EOF 1>&2
8177
8178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8179*** reliably create shared libraries on SCO systems.  Therefore, libtool
8180*** is disabling shared libraries support.  We urge you to upgrade GNU
8181*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8182*** your PATH or compiler configuration so that the native linker is
8183*** used, and then restart.
8184
8185_LT_EOF
8186	;;
8187	*)
8188	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8189	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8190	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8191	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8192	  else
8193	    ld_shlibs=no
8194	  fi
8195	;;
8196      esac
8197      ;;
8198
8199    sunos4*)
8200      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8201      wlarc=
8202      hardcode_direct=yes
8203      hardcode_shlibpath_var=no
8204      ;;
8205
8206    *)
8207      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8210      else
8211	ld_shlibs=no
8212      fi
8213      ;;
8214    esac
8215
8216    if test "$ld_shlibs" = no; then
8217      runpath_var=
8218      hardcode_libdir_flag_spec=
8219      export_dynamic_flag_spec=
8220      whole_archive_flag_spec=
8221    fi
8222  else
8223    # PORTME fill in a description of your system's linker (not GNU ld)
8224    case $host_os in
8225    aix3*)
8226      allow_undefined_flag=unsupported
8227      always_export_symbols=yes
8228      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'
8229      # Note: this linker hardcodes the directories in LIBPATH if there
8230      # are no directories specified by -L.
8231      hardcode_minus_L=yes
8232      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8233	# Neither direct hardcoding nor static linking is supported with a
8234	# broken collect2.
8235	hardcode_direct=unsupported
8236      fi
8237      ;;
8238
8239    aix4* | aix5*)
8240      if test "$host_cpu" = ia64; then
8241	# On IA64, the linker does run time linking by default, so we don't
8242	# have to do anything special.
8243	aix_use_runtimelinking=no
8244	exp_sym_flag='-Bexport'
8245	no_entry_flag=""
8246      else
8247	# If we're using GNU nm, then we don't want the "-C" option.
8248	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8249	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8250	  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'
8251	else
8252	  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'
8253	fi
8254	aix_use_runtimelinking=no
8255
8256	# Test if we are trying to use run time linking or normal
8257	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8258	# need to do runtime linking.
8259	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8260	  for ld_flag in $LDFLAGS; do
8261  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8262  	    aix_use_runtimelinking=yes
8263  	    break
8264  	  fi
8265	  done
8266	  ;;
8267	esac
8268
8269	exp_sym_flag='-bexport'
8270	no_entry_flag='-bnoentry'
8271      fi
8272
8273      # When large executables or shared objects are built, AIX ld can
8274      # have problems creating the table of contents.  If linking a library
8275      # or program results in "error TOC overflow" add -mminimal-toc to
8276      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8277      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8278
8279      archive_cmds=''
8280      hardcode_direct=yes
8281      hardcode_libdir_separator=':'
8282      link_all_deplibs=yes
8283
8284      if test "$GCC" = yes; then
8285	case $host_os in aix4.[012]|aix4.[012].*)
8286	# We only want to do this on AIX 4.2 and lower, the check
8287	# below for broken collect2 doesn't work under 4.3+
8288	  collect2name=`${CC} -print-prog-name=collect2`
8289	  if test -f "$collect2name" && \
8290  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8291	  then
8292  	  # We have reworked collect2
8293  	  hardcode_direct=yes
8294	  else
8295  	  # We have old collect2
8296  	  hardcode_direct=unsupported
8297  	  # It fails to find uninstalled libraries when the uninstalled
8298  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8299  	  # to unsupported forces relinking
8300  	  hardcode_minus_L=yes
8301  	  hardcode_libdir_flag_spec='-L$libdir'
8302  	  hardcode_libdir_separator=
8303	  fi
8304	  ;;
8305	esac
8306	shared_flag='-shared'
8307	if test "$aix_use_runtimelinking" = yes; then
8308	  shared_flag="$shared_flag "'${wl}-G'
8309	fi
8310      else
8311	# not using gcc
8312	if test "$host_cpu" = ia64; then
8313  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8314  	# chokes on -Wl,-G. The following line is correct:
8315	  shared_flag='-G'
8316	else
8317	  if test "$aix_use_runtimelinking" = yes; then
8318	    shared_flag='${wl}-G'
8319	  else
8320	    shared_flag='${wl}-bM:SRE'
8321	  fi
8322	fi
8323      fi
8324
8325      # It seems that -bexpall does not export symbols beginning with
8326      # underscore (_), so it is better to generate a list of symbols to export.
8327      always_export_symbols=yes
8328      if test "$aix_use_runtimelinking" = yes; then
8329	# Warning - without using the other runtime loading flags (-brtl),
8330	# -berok will link without error, but may produce a broken library.
8331	allow_undefined_flag='-berok'
8332       # Determine the default libpath from the value encoded in an empty executable.
8333       cat >conftest.$ac_ext <<_ACEOF
8334/* confdefs.h.  */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h.  */
8339
8340int
8341main ()
8342{
8343
8344  ;
8345  return 0;
8346}
8347_ACEOF
8348rm -f conftest.$ac_objext conftest$ac_exeext
8349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350  (eval $ac_link) 2>conftest.er1
8351  ac_status=$?
8352  grep -v '^ *+' conftest.er1 >conftest.err
8353  rm -f conftest.er1
8354  cat conftest.err >&5
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); } &&
8357	 { ac_try='test -z "$ac_c_werror_flag"
8358			 || test ! -s conftest.err'
8359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360  (eval $ac_try) 2>&5
8361  ac_status=$?
8362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363  (exit $ac_status); }; } &&
8364	 { ac_try='test -s conftest$ac_exeext'
8365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366  (eval $ac_try) 2>&5
8367  ac_status=$?
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); }; }; then
8370
8371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8372}'`
8373# Check for a 64-bit object if we didn't find anything.
8374if 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; }
8375}'`; fi
8376else
8377  echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380fi
8381rm -f conftest.err conftest.$ac_objext \
8382      conftest$ac_exeext conftest.$ac_ext
8383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8384
8385       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8386	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8387       else
8388	if test "$host_cpu" = ia64; then
8389	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8390	  allow_undefined_flag="-z nodefs"
8391	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8392	else
8393	 # Determine the default libpath from the value encoded in an empty executable.
8394	 cat >conftest.$ac_ext <<_ACEOF
8395/* confdefs.h.  */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h.  */
8400
8401int
8402main ()
8403{
8404
8405  ;
8406  return 0;
8407}
8408_ACEOF
8409rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411  (eval $ac_link) 2>conftest.er1
8412  ac_status=$?
8413  grep -v '^ *+' conftest.er1 >conftest.err
8414  rm -f conftest.er1
8415  cat conftest.err >&5
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); } &&
8418	 { ac_try='test -z "$ac_c_werror_flag"
8419			 || test ! -s conftest.err'
8420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421  (eval $ac_try) 2>&5
8422  ac_status=$?
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); }; } &&
8425	 { ac_try='test -s conftest$ac_exeext'
8426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427  (eval $ac_try) 2>&5
8428  ac_status=$?
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); }; }; then
8431
8432aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8433}'`
8434# Check for a 64-bit object if we didn't find anything.
8435if 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; }
8436}'`; fi
8437else
8438  echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441fi
8442rm -f conftest.err conftest.$ac_objext \
8443      conftest$ac_exeext conftest.$ac_ext
8444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8445
8446	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8447	  # Warning - without using the other run time loading flags,
8448	  # -berok will link without error, but may produce a broken library.
8449	  no_undefined_flag=' ${wl}-bernotok'
8450	  allow_undefined_flag=' ${wl}-berok'
8451	  # Exported symbols can be pulled into shared objects from archives
8452	  whole_archive_flag_spec='$convenience'
8453	  archive_cmds_need_lc=yes
8454	  # This is similar to how AIX traditionally builds its shared libraries.
8455	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8456	fi
8457      fi
8458      ;;
8459
8460    amigaos*)
8461      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)'
8462      hardcode_libdir_flag_spec='-L$libdir'
8463      hardcode_minus_L=yes
8464      # see comment about different semantics on the GNU ld section
8465      ld_shlibs=no
8466      ;;
8467
8468    bsdi[45]*)
8469      export_dynamic_flag_spec=-rdynamic
8470      ;;
8471
8472    cygwin* | mingw* | pw32*)
8473      # When not using gcc, we currently assume that we are using
8474      # Microsoft Visual C++.
8475      # hardcode_libdir_flag_spec is actually meaningless, as there is
8476      # no search path for DLLs.
8477      hardcode_libdir_flag_spec=' '
8478      allow_undefined_flag=unsupported
8479      # Tell ltmain to make .lib files, not .a files.
8480      libext=lib
8481      # Tell ltmain to make .dll files, not .so files.
8482      shrext_cmds=".dll"
8483      # FIXME: Setting linknames here is a bad hack.
8484      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8485      # The linker will automatically build a .lib file if we build a DLL.
8486      old_archive_From_new_cmds='true'
8487      # FIXME: Should let the user specify the lib program.
8488      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8489      fix_srcfile_path='`cygpath -w "$srcfile"`'
8490      enable_shared_with_static_runtimes=yes
8491      ;;
8492
8493    darwin* | rhapsody*)
8494      case $host_os in
8495        rhapsody* | darwin1.[012])
8496         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8497         ;;
8498       *) # Darwin 1.3 on
8499         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8500           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8501         else
8502           case ${MACOSX_DEPLOYMENT_TARGET} in
8503             10.[012])
8504               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8505               ;;
8506             10.*)
8507               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8508               ;;
8509           esac
8510         fi
8511         ;;
8512      esac
8513      archive_cmds_need_lc=no
8514      hardcode_direct=no
8515      hardcode_automatic=yes
8516      hardcode_shlibpath_var=unsupported
8517      whole_archive_flag_spec=''
8518      link_all_deplibs=yes
8519    if test "$GCC" = yes ; then
8520    	output_verbose_link_cmd='echo'
8521        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8522      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8523      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8524      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}'
8525      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}'
8526    else
8527      case $cc_basename in
8528        xlc*)
8529         output_verbose_link_cmd='echo'
8530         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8531         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8532          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8533         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}'
8534          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}'
8535          ;;
8536       *)
8537         ld_shlibs=no
8538          ;;
8539      esac
8540    fi
8541      ;;
8542
8543    dgux*)
8544      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545      hardcode_libdir_flag_spec='-L$libdir'
8546      hardcode_shlibpath_var=no
8547      ;;
8548
8549    freebsd1*)
8550      ld_shlibs=no
8551      ;;
8552
8553    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8554    # support.  Future versions do this automatically, but an explicit c++rt0.o
8555    # does not break anything, and helps significantly (at the cost of a little
8556    # extra space).
8557    freebsd2.2*)
8558      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8559      hardcode_libdir_flag_spec='-R$libdir'
8560      hardcode_direct=yes
8561      hardcode_shlibpath_var=no
8562      ;;
8563
8564    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8565    freebsd2*)
8566      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8567      hardcode_direct=yes
8568      hardcode_minus_L=yes
8569      hardcode_shlibpath_var=no
8570      ;;
8571
8572    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8573    freebsd* | kfreebsd*-gnu | dragonfly*)
8574      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8575      hardcode_libdir_flag_spec='-R$libdir'
8576      hardcode_direct=yes
8577      hardcode_shlibpath_var=no
8578      ;;
8579
8580    hpux9*)
8581      if test "$GCC" = yes; then
8582	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'
8583      else
8584	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'
8585      fi
8586      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8587      hardcode_libdir_separator=:
8588      hardcode_direct=yes
8589
8590      # hardcode_minus_L: Not really in the search PATH,
8591      # but as the default location of the library.
8592      hardcode_minus_L=yes
8593      export_dynamic_flag_spec='${wl}-E'
8594      ;;
8595
8596    hpux10*)
8597      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8598	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8599      else
8600	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8601      fi
8602      if test "$with_gnu_ld" = no; then
8603	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604	hardcode_libdir_separator=:
8605
8606	hardcode_direct=yes
8607	export_dynamic_flag_spec='${wl}-E'
8608
8609	# hardcode_minus_L: Not really in the search PATH,
8610	# but as the default location of the library.
8611	hardcode_minus_L=yes
8612      fi
8613      ;;
8614
8615    hpux11*)
8616      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8617	case $host_cpu in
8618	hppa*64*)
8619	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620	  ;;
8621	ia64*)
8622	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8623	  ;;
8624	*)
8625	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8626	  ;;
8627	esac
8628      else
8629	case $host_cpu in
8630	hppa*64*)
8631	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632	  ;;
8633	ia64*)
8634	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8635	  ;;
8636	*)
8637	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8638	  ;;
8639	esac
8640      fi
8641      if test "$with_gnu_ld" = no; then
8642	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8643	hardcode_libdir_separator=:
8644
8645	case $host_cpu in
8646	hppa*64*|ia64*)
8647	  hardcode_libdir_flag_spec_ld='+b $libdir'
8648	  hardcode_direct=no
8649	  hardcode_shlibpath_var=no
8650	  ;;
8651	*)
8652	  hardcode_direct=yes
8653	  export_dynamic_flag_spec='${wl}-E'
8654
8655	  # hardcode_minus_L: Not really in the search PATH,
8656	  # but as the default location of the library.
8657	  hardcode_minus_L=yes
8658	  ;;
8659	esac
8660      fi
8661      ;;
8662
8663    irix5* | irix6* | nonstopux*)
8664      if test "$GCC" = yes; then
8665	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'
8666      else
8667	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'
8668	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8669      fi
8670      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671      hardcode_libdir_separator=:
8672      link_all_deplibs=yes
8673      ;;
8674
8675    netbsd*)
8676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8678      else
8679	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8680      fi
8681      hardcode_libdir_flag_spec='-R$libdir'
8682      hardcode_direct=yes
8683      hardcode_shlibpath_var=no
8684      ;;
8685
8686    newsos6)
8687      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688      hardcode_direct=yes
8689      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690      hardcode_libdir_separator=:
8691      hardcode_shlibpath_var=no
8692      ;;
8693
8694    openbsd*)
8695      hardcode_direct=yes
8696      hardcode_shlibpath_var=no
8697      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8698	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8699	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8700	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8701	export_dynamic_flag_spec='${wl}-E'
8702      else
8703       case $host_os in
8704	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8705	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8706	   hardcode_libdir_flag_spec='-R$libdir'
8707	   ;;
8708	 *)
8709	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8710	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8711	   ;;
8712       esac
8713      fi
8714      ;;
8715
8716    os2*)
8717      hardcode_libdir_flag_spec='-L$libdir'
8718      hardcode_minus_L=yes
8719      allow_undefined_flag=unsupported
8720      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'
8721      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8722      ;;
8723
8724    osf3*)
8725      if test "$GCC" = yes; then
8726	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8727	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'
8728      else
8729	allow_undefined_flag=' -expect_unresolved \*'
8730	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'
8731      fi
8732      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733      hardcode_libdir_separator=:
8734      ;;
8735
8736    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8737      if test "$GCC" = yes; then
8738	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8739	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'
8740	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741      else
8742	allow_undefined_flag=' -expect_unresolved \*'
8743	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'
8744	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8745	$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'
8746
8747	# Both c and cxx compiler support -rpath directly
8748	hardcode_libdir_flag_spec='-rpath $libdir'
8749      fi
8750      hardcode_libdir_separator=:
8751      ;;
8752
8753    solaris*)
8754      no_undefined_flag=' -z text'
8755      if test "$GCC" = yes; then
8756	wlarc='${wl}'
8757	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8759	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8760      else
8761	wlarc=''
8762	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8764  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8765      fi
8766      hardcode_libdir_flag_spec='-R$libdir'
8767      hardcode_shlibpath_var=no
8768      case $host_os in
8769      solaris2.[0-5] | solaris2.[0-5].*) ;;
8770      *)
8771 	# The compiler driver will combine linker options so we
8772 	# cannot just pass the convience library names through
8773 	# without $wl, iff we do not link with $LD.
8774 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8775 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8776 	case $wlarc in
8777 	'')
8778 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8779 	*)
8780 	  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' ;;
8781 	esac ;;
8782      esac
8783      link_all_deplibs=yes
8784      ;;
8785
8786    sunos4*)
8787      if test "x$host_vendor" = xsequent; then
8788	# Use $CC to link under sequent, because it throws in some extra .o
8789	# files that make .init and .fini sections work.
8790	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8791      else
8792	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8793      fi
8794      hardcode_libdir_flag_spec='-L$libdir'
8795      hardcode_direct=yes
8796      hardcode_minus_L=yes
8797      hardcode_shlibpath_var=no
8798      ;;
8799
8800    sysv4)
8801      case $host_vendor in
8802	sni)
8803	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804	  hardcode_direct=yes # is this really true???
8805	;;
8806	siemens)
8807	  ## LD is ld it makes a PLAMLIB
8808	  ## CC just makes a GrossModule.
8809	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8810	  reload_cmds='$CC -r -o $output$reload_objs'
8811	  hardcode_direct=no
8812        ;;
8813	motorola)
8814	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8816	;;
8817      esac
8818      runpath_var='LD_RUN_PATH'
8819      hardcode_shlibpath_var=no
8820      ;;
8821
8822    sysv4.3*)
8823      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824      hardcode_shlibpath_var=no
8825      export_dynamic_flag_spec='-Bexport'
8826      ;;
8827
8828    sysv4*MP*)
8829      if test -d /usr/nec; then
8830	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8831	hardcode_shlibpath_var=no
8832	runpath_var=LD_RUN_PATH
8833	hardcode_runpath_var=yes
8834	ld_shlibs=yes
8835      fi
8836      ;;
8837
8838    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8839      no_undefined_flag='${wl}-z,text'
8840      archive_cmds_need_lc=no
8841      hardcode_shlibpath_var=no
8842      runpath_var='LD_RUN_PATH'
8843
8844      if test "$GCC" = yes; then
8845	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847      else
8848	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850      fi
8851      ;;
8852
8853    sysv5* | sco3.2v5* | sco5v6*)
8854      # Note: We can NOT use -z defs as we might desire, because we do not
8855      # link with -lc, and that would cause any symbols used from libc to
8856      # always be unresolved, which means just about no library would
8857      # ever link correctly.  If we're not using GNU ld we use -z text
8858      # though, which does catch some bad symbols but isn't as heavy-handed
8859      # as -z defs.
8860      no_undefined_flag='${wl}-z,text'
8861      allow_undefined_flag='${wl}-z,nodefs'
8862      archive_cmds_need_lc=no
8863      hardcode_shlibpath_var=no
8864      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8865      hardcode_libdir_separator=':'
8866      link_all_deplibs=yes
8867      export_dynamic_flag_spec='${wl}-Bexport'
8868      runpath_var='LD_RUN_PATH'
8869
8870      if test "$GCC" = yes; then
8871	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873      else
8874	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876      fi
8877      ;;
8878
8879    uts4*)
8880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881      hardcode_libdir_flag_spec='-L$libdir'
8882      hardcode_shlibpath_var=no
8883      ;;
8884
8885    *)
8886      ld_shlibs=no
8887      ;;
8888    esac
8889  fi
8890
8891echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8892echo "${ECHO_T}$ld_shlibs" >&6
8893test "$ld_shlibs" = no && can_build_shared=no
8894
8895#
8896# Do we need to explicitly link libc?
8897#
8898case "x$archive_cmds_need_lc" in
8899x|xyes)
8900  # Assume -lc should be added
8901  archive_cmds_need_lc=yes
8902
8903  if test "$enable_shared" = yes && test "$GCC" = yes; then
8904    case $archive_cmds in
8905    *'~'*)
8906      # FIXME: we may have to deal with multi-command sequences.
8907      ;;
8908    '$CC '*)
8909      # Test whether the compiler implicitly links with -lc since on some
8910      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8911      # to ld, don't add -lc before -lgcc.
8912      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8913echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8914      $rm conftest*
8915      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918  (eval $ac_compile) 2>&5
8919  ac_status=$?
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); } 2>conftest.err; then
8922        soname=conftest
8923        lib=conftest
8924        libobjs=conftest.$ac_objext
8925        deplibs=
8926        wl=$lt_prog_compiler_wl
8927	pic_flag=$lt_prog_compiler_pic
8928        compiler_flags=-v
8929        linker_flags=-v
8930        verstring=
8931        output_objdir=.
8932        libname=conftest
8933        lt_save_allow_undefined_flag=$allow_undefined_flag
8934        allow_undefined_flag=
8935        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8936  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8937  ac_status=$?
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); }
8940        then
8941	  archive_cmds_need_lc=no
8942        else
8943	  archive_cmds_need_lc=yes
8944        fi
8945        allow_undefined_flag=$lt_save_allow_undefined_flag
8946      else
8947        cat conftest.err 1>&5
8948      fi
8949      $rm conftest*
8950      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8951echo "${ECHO_T}$archive_cmds_need_lc" >&6
8952      ;;
8953    esac
8954  fi
8955  ;;
8956esac
8957
8958echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8959echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8960library_names_spec=
8961libname_spec='lib$name'
8962soname_spec=
8963shrext_cmds=".so"
8964postinstall_cmds=
8965postuninstall_cmds=
8966finish_cmds=
8967finish_eval=
8968shlibpath_var=
8969shlibpath_overrides_runpath=unknown
8970version_type=none
8971dynamic_linker="$host_os ld.so"
8972sys_lib_dlsearch_path_spec="/lib /usr/lib"
8973if test "$GCC" = yes; then
8974  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8976    # if the path contains ";" then we assume it to be the separator
8977    # otherwise default to the standard path separator (i.e. ":") - it is
8978    # assumed that no part of a normal pathname contains ";" but that should
8979    # okay in the real world where ";" in dirpaths is itself problematic.
8980    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8981  else
8982    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8983  fi
8984else
8985  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8986fi
8987need_lib_prefix=unknown
8988hardcode_into_libs=no
8989
8990# when you set need_version to no, make sure it does not cause -set_version
8991# flags to be left without arguments
8992need_version=unknown
8993
8994case $host_os in
8995aix3*)
8996  version_type=linux
8997  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8998  shlibpath_var=LIBPATH
8999
9000  # AIX 3 has no versioning support, so we append a major version to the name.
9001  soname_spec='${libname}${release}${shared_ext}$major'
9002  ;;
9003
9004aix4* | aix5*)
9005  version_type=linux
9006  need_lib_prefix=no
9007  need_version=no
9008  hardcode_into_libs=yes
9009  if test "$host_cpu" = ia64; then
9010    # AIX 5 supports IA64
9011    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9012    shlibpath_var=LD_LIBRARY_PATH
9013  else
9014    # With GCC up to 2.95.x, collect2 would create an import file
9015    # for dependence libraries.  The import file would start with
9016    # the line `#! .'.  This would cause the generated library to
9017    # depend on `.', always an invalid library.  This was fixed in
9018    # development snapshots of GCC prior to 3.0.
9019    case $host_os in
9020      aix4 | aix4.[01] | aix4.[01].*)
9021      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9022	   echo ' yes '
9023	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9024	:
9025      else
9026	can_build_shared=no
9027      fi
9028      ;;
9029    esac
9030    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9031    # soname into executable. Probably we can add versioning support to
9032    # collect2, so additional links can be useful in future.
9033    if test "$aix_use_runtimelinking" = yes; then
9034      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9035      # instead of lib<name>.a to let people know that these are not
9036      # typical AIX shared libraries.
9037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038    else
9039      # We preserve .a as extension for shared libraries through AIX4.2
9040      # and later when we are not doing run time linking.
9041      library_names_spec='${libname}${release}.a $libname.a'
9042      soname_spec='${libname}${release}${shared_ext}$major'
9043    fi
9044    shlibpath_var=LIBPATH
9045  fi
9046  ;;
9047
9048amigaos*)
9049  library_names_spec='$libname.ixlibrary $libname.a'
9050  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9051  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'
9052  ;;
9053
9054beos*)
9055  library_names_spec='${libname}${shared_ext}'
9056  dynamic_linker="$host_os ld.so"
9057  shlibpath_var=LIBRARY_PATH
9058  ;;
9059
9060bsdi[45]*)
9061  version_type=linux
9062  need_version=no
9063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064  soname_spec='${libname}${release}${shared_ext}$major'
9065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9066  shlibpath_var=LD_LIBRARY_PATH
9067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9069  # the default ld.so.conf also contains /usr/contrib/lib and
9070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9071  # libtool to hard-code these into programs
9072  ;;
9073
9074cygwin* | mingw* | pw32*)
9075  version_type=windows
9076  shrext_cmds=".dll"
9077  need_version=no
9078  need_lib_prefix=no
9079
9080  case $GCC,$host_os in
9081  yes,cygwin* | yes,mingw* | yes,pw32*)
9082    library_names_spec='$libname.dll.a'
9083    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9084    postinstall_cmds='base_file=`basename \${file}`~
9085      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9086      dldir=$destdir/`dirname \$dlpath`~
9087      test -d \$dldir || mkdir -p \$dldir~
9088      $install_prog $dir/$dlname \$dldir/$dlname~
9089      chmod a+x \$dldir/$dlname'
9090    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9091      dlpath=$dir/\$dldll~
9092       $rm \$dlpath'
9093    shlibpath_overrides_runpath=yes
9094
9095    case $host_os in
9096    cygwin*)
9097      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9098      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9099      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9100      ;;
9101    mingw*)
9102      # MinGW DLLs use traditional 'lib' prefix
9103      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9104      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9105      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9106        # It is most probably a Windows format PATH printed by
9107        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9108        # path with ; separators, and with drive letters. We can handle the
9109        # drive letters (cygwin fileutils understands them), so leave them,
9110        # especially as we might pass files found there to a mingw objdump,
9111        # which wouldn't understand a cygwinified path. Ahh.
9112        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9113      else
9114        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9115      fi
9116      ;;
9117    pw32*)
9118      # pw32 DLLs use 'pw' prefix rather than 'lib'
9119      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9120      ;;
9121    esac
9122    ;;
9123
9124  *)
9125    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9126    ;;
9127  esac
9128  dynamic_linker='Win32 ld.exe'
9129  # FIXME: first we should search . and the directory the executable is in
9130  shlibpath_var=PATH
9131  ;;
9132
9133darwin* | rhapsody*)
9134  dynamic_linker="$host_os dyld"
9135  version_type=darwin
9136  need_lib_prefix=no
9137  need_version=no
9138  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9139  soname_spec='${libname}${release}${major}$shared_ext'
9140  shlibpath_overrides_runpath=yes
9141  shlibpath_var=DYLD_LIBRARY_PATH
9142  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9143  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9144  if test "$GCC" = yes; then
9145    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"`
9146  else
9147    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9148  fi
9149  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9150  ;;
9151
9152dgux*)
9153  version_type=linux
9154  need_lib_prefix=no
9155  need_version=no
9156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9157  soname_spec='${libname}${release}${shared_ext}$major'
9158  shlibpath_var=LD_LIBRARY_PATH
9159  ;;
9160
9161freebsd1*)
9162  dynamic_linker=no
9163  ;;
9164
9165kfreebsd*-gnu)
9166  version_type=linux
9167  need_lib_prefix=no
9168  need_version=no
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170  soname_spec='${libname}${release}${shared_ext}$major'
9171  shlibpath_var=LD_LIBRARY_PATH
9172  shlibpath_overrides_runpath=no
9173  hardcode_into_libs=yes
9174  dynamic_linker='GNU ld.so'
9175  ;;
9176
9177freebsd* | dragonfly*)
9178  # DragonFly does not have aout.  When/if they implement a new
9179  # versioning mechanism, adjust this.
9180  if test -x /usr/bin/objformat; then
9181    objformat=`/usr/bin/objformat`
9182  else
9183    case $host_os in
9184    freebsd[123]*) objformat=aout ;;
9185    *) objformat=elf ;;
9186    esac
9187  fi
9188  version_type=freebsd-$objformat
9189  case $version_type in
9190    freebsd-elf*)
9191      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9192      need_version=no
9193      need_lib_prefix=no
9194      ;;
9195    freebsd-*)
9196      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9197      need_version=yes
9198      ;;
9199  esac
9200  shlibpath_var=LD_LIBRARY_PATH
9201  case $host_os in
9202  freebsd2*)
9203    shlibpath_overrides_runpath=yes
9204    ;;
9205  freebsd3.[01]* | freebsdelf3.[01]*)
9206    shlibpath_overrides_runpath=yes
9207    hardcode_into_libs=yes
9208    ;;
9209  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9210  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9211    shlibpath_overrides_runpath=no
9212    hardcode_into_libs=yes
9213    ;;
9214  freebsd*) # from 4.6 on
9215    shlibpath_overrides_runpath=yes
9216    hardcode_into_libs=yes
9217    ;;
9218  esac
9219  ;;
9220
9221gnu*)
9222  version_type=linux
9223  need_lib_prefix=no
9224  need_version=no
9225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9226  soname_spec='${libname}${release}${shared_ext}$major'
9227  shlibpath_var=LD_LIBRARY_PATH
9228  hardcode_into_libs=yes
9229  ;;
9230
9231hpux9* | hpux10* | hpux11*)
9232  # Give a soname corresponding to the major version so that dld.sl refuses to
9233  # link against other versions.
9234  version_type=sunos
9235  need_lib_prefix=no
9236  need_version=no
9237  case $host_cpu in
9238  ia64*)
9239    shrext_cmds='.so'
9240    hardcode_into_libs=yes
9241    dynamic_linker="$host_os dld.so"
9242    shlibpath_var=LD_LIBRARY_PATH
9243    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245    soname_spec='${libname}${release}${shared_ext}$major'
9246    if test "X$HPUX_IA64_MODE" = X32; then
9247      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9248    else
9249      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9250    fi
9251    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9252    ;;
9253   hppa*64*)
9254     shrext_cmds='.sl'
9255     hardcode_into_libs=yes
9256     dynamic_linker="$host_os dld.sl"
9257     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260     soname_spec='${libname}${release}${shared_ext}$major'
9261     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9262     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9263     ;;
9264   *)
9265    shrext_cmds='.sl'
9266    dynamic_linker="$host_os dld.sl"
9267    shlibpath_var=SHLIB_PATH
9268    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270    soname_spec='${libname}${release}${shared_ext}$major'
9271    ;;
9272  esac
9273  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9274  postinstall_cmds='chmod 555 $lib'
9275  ;;
9276
9277interix3*)
9278  version_type=linux
9279  need_lib_prefix=no
9280  need_version=no
9281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282  soname_spec='${libname}${release}${shared_ext}$major'
9283  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9284  shlibpath_var=LD_LIBRARY_PATH
9285  shlibpath_overrides_runpath=no
9286  hardcode_into_libs=yes
9287  ;;
9288
9289irix5* | irix6* | nonstopux*)
9290  case $host_os in
9291    nonstopux*) version_type=nonstopux ;;
9292    *)
9293	if test "$lt_cv_prog_gnu_ld" = yes; then
9294		version_type=linux
9295	else
9296		version_type=irix
9297	fi ;;
9298  esac
9299  need_lib_prefix=no
9300  need_version=no
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9303  case $host_os in
9304  irix5* | nonstopux*)
9305    libsuff= shlibsuff=
9306    ;;
9307  *)
9308    case $LD in # libtool.m4 will add one of these switches to LD
9309    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9310      libsuff= shlibsuff= libmagic=32-bit;;
9311    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9312      libsuff=32 shlibsuff=N32 libmagic=N32;;
9313    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9314      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9315    *) libsuff= shlibsuff= libmagic=never-match;;
9316    esac
9317    ;;
9318  esac
9319  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9320  shlibpath_overrides_runpath=no
9321  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9322  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9323  hardcode_into_libs=yes
9324  ;;
9325
9326# No shared lib support for Linux oldld, aout, or coff.
9327linux*oldld* | linux*aout* | linux*coff*)
9328  dynamic_linker=no
9329  ;;
9330
9331# This must be Linux ELF.
9332linux*)
9333  version_type=linux
9334  need_lib_prefix=no
9335  need_version=no
9336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337  soname_spec='${libname}${release}${shared_ext}$major'
9338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9339  shlibpath_var=LD_LIBRARY_PATH
9340  shlibpath_overrides_runpath=no
9341  # This implies no fast_install, which is unacceptable.
9342  # Some rework will be needed to allow for fast_install
9343  # before this can be enabled.
9344  hardcode_into_libs=yes
9345
9346  # Append ld.so.conf contents to the search path
9347  if test -f /etc/ld.so.conf; then
9348    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' ' '`
9349    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9350  fi
9351
9352  # We used to test for /lib/ld.so.1 and disable shared libraries on
9353  # powerpc, because MkLinux only supported shared libraries with the
9354  # GNU dynamic linker.  Since this was broken with cross compilers,
9355  # most powerpc-linux boxes support dynamic linking these days and
9356  # people can always --disable-shared, the test was removed, and we
9357  # assume the GNU/Linux dynamic linker is in use.
9358  dynamic_linker='GNU/Linux ld.so'
9359  ;;
9360
9361knetbsd*-gnu)
9362  version_type=linux
9363  need_lib_prefix=no
9364  need_version=no
9365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366  soname_spec='${libname}${release}${shared_ext}$major'
9367  shlibpath_var=LD_LIBRARY_PATH
9368  shlibpath_overrides_runpath=no
9369  hardcode_into_libs=yes
9370  dynamic_linker='GNU ld.so'
9371  ;;
9372
9373netbsd*)
9374  version_type=sunos
9375  need_lib_prefix=no
9376  need_version=no
9377  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9379    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9380    dynamic_linker='NetBSD (a.out) ld.so'
9381  else
9382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9383    soname_spec='${libname}${release}${shared_ext}$major'
9384    dynamic_linker='NetBSD ld.elf_so'
9385  fi
9386  shlibpath_var=LD_LIBRARY_PATH
9387  shlibpath_overrides_runpath=yes
9388  hardcode_into_libs=yes
9389  ;;
9390
9391newsos6)
9392  version_type=linux
9393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  shlibpath_overrides_runpath=yes
9396  ;;
9397
9398nto-qnx*)
9399  version_type=linux
9400  need_lib_prefix=no
9401  need_version=no
9402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403  soname_spec='${libname}${release}${shared_ext}$major'
9404  shlibpath_var=LD_LIBRARY_PATH
9405  shlibpath_overrides_runpath=yes
9406  ;;
9407
9408openbsd*)
9409  version_type=sunos
9410  sys_lib_dlsearch_path_spec="/usr/lib"
9411  need_lib_prefix=no
9412  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9413  case $host_os in
9414    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9415    *)                         need_version=no  ;;
9416  esac
9417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9419  shlibpath_var=LD_LIBRARY_PATH
9420  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9421    case $host_os in
9422      openbsd2.[89] | openbsd2.[89].*)
9423	shlibpath_overrides_runpath=no
9424	;;
9425      *)
9426	shlibpath_overrides_runpath=yes
9427	;;
9428      esac
9429  else
9430    shlibpath_overrides_runpath=yes
9431  fi
9432  ;;
9433
9434os2*)
9435  libname_spec='$name'
9436  shrext_cmds=".dll"
9437  need_lib_prefix=no
9438  library_names_spec='$libname${shared_ext} $libname.a'
9439  dynamic_linker='OS/2 ld.exe'
9440  shlibpath_var=LIBPATH
9441  ;;
9442
9443osf3* | osf4* | osf5*)
9444  version_type=osf
9445  need_lib_prefix=no
9446  need_version=no
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449  shlibpath_var=LD_LIBRARY_PATH
9450  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9451  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9452  ;;
9453
9454solaris*)
9455  version_type=linux
9456  need_lib_prefix=no
9457  need_version=no
9458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459  soname_spec='${libname}${release}${shared_ext}$major'
9460  shlibpath_var=LD_LIBRARY_PATH
9461  shlibpath_overrides_runpath=yes
9462  hardcode_into_libs=yes
9463  # ldd complains unless libraries are executable
9464  postinstall_cmds='chmod +x $lib'
9465  ;;
9466
9467sunos4*)
9468  version_type=sunos
9469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9471  shlibpath_var=LD_LIBRARY_PATH
9472  shlibpath_overrides_runpath=yes
9473  if test "$with_gnu_ld" = yes; then
9474    need_lib_prefix=no
9475  fi
9476  need_version=yes
9477  ;;
9478
9479sysv4 | sysv4.3*)
9480  version_type=linux
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482  soname_spec='${libname}${release}${shared_ext}$major'
9483  shlibpath_var=LD_LIBRARY_PATH
9484  case $host_vendor in
9485    sni)
9486      shlibpath_overrides_runpath=no
9487      need_lib_prefix=no
9488      export_dynamic_flag_spec='${wl}-Blargedynsym'
9489      runpath_var=LD_RUN_PATH
9490      ;;
9491    siemens)
9492      need_lib_prefix=no
9493      ;;
9494    motorola)
9495      need_lib_prefix=no
9496      need_version=no
9497      shlibpath_overrides_runpath=no
9498      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9499      ;;
9500  esac
9501  ;;
9502
9503sysv4*MP*)
9504  if test -d /usr/nec ;then
9505    version_type=linux
9506    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9507    soname_spec='$libname${shared_ext}.$major'
9508    shlibpath_var=LD_LIBRARY_PATH
9509  fi
9510  ;;
9511
9512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9513  version_type=freebsd-elf
9514  need_lib_prefix=no
9515  need_version=no
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  hardcode_into_libs=yes
9520  if test "$with_gnu_ld" = yes; then
9521    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9522    shlibpath_overrides_runpath=no
9523  else
9524    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9525    shlibpath_overrides_runpath=yes
9526    case $host_os in
9527      sco3.2v5*)
9528        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9529	;;
9530    esac
9531  fi
9532  sys_lib_dlsearch_path_spec='/usr/lib'
9533  ;;
9534
9535uts4*)
9536  version_type=linux
9537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538  soname_spec='${libname}${release}${shared_ext}$major'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  ;;
9541
9542*)
9543  dynamic_linker=no
9544  ;;
9545esac
9546echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9547echo "${ECHO_T}$dynamic_linker" >&6
9548test "$dynamic_linker" = no && can_build_shared=no
9549
9550variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9551if test "$GCC" = yes; then
9552  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9553fi
9554
9555echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9556echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9557hardcode_action=
9558if test -n "$hardcode_libdir_flag_spec" || \
9559   test -n "$runpath_var" || \
9560   test "X$hardcode_automatic" = "Xyes" ; then
9561
9562  # We can hardcode non-existant directories.
9563  if test "$hardcode_direct" != no &&
9564     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9565     # have to relink, otherwise we might link with an installed library
9566     # when we should be linking with a yet-to-be-installed one
9567     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9568     test "$hardcode_minus_L" != no; then
9569    # Linking always hardcodes the temporary library directory.
9570    hardcode_action=relink
9571  else
9572    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9573    hardcode_action=immediate
9574  fi
9575else
9576  # We cannot hardcode anything, or else we can only hardcode existing
9577  # directories.
9578  hardcode_action=unsupported
9579fi
9580echo "$as_me:$LINENO: result: $hardcode_action" >&5
9581echo "${ECHO_T}$hardcode_action" >&6
9582
9583if test "$hardcode_action" = relink; then
9584  # Fast installation is not supported
9585  enable_fast_install=no
9586elif test "$shlibpath_overrides_runpath" = yes ||
9587     test "$enable_shared" = no; then
9588  # Fast installation is not necessary
9589  enable_fast_install=needless
9590fi
9591
9592striplib=
9593old_striplib=
9594echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9595echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9596if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9597  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9598  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9599  echo "$as_me:$LINENO: result: yes" >&5
9600echo "${ECHO_T}yes" >&6
9601else
9602# FIXME - insert some real tests, host_os isn't really good enough
9603  case $host_os in
9604   darwin*)
9605       if test -n "$STRIP" ; then
9606         striplib="$STRIP -x"
9607         echo "$as_me:$LINENO: result: yes" >&5
9608echo "${ECHO_T}yes" >&6
9609       else
9610  echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612fi
9613       ;;
9614   *)
9615  echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
9617    ;;
9618  esac
9619fi
9620
9621if test "x$enable_dlopen" != xyes; then
9622  enable_dlopen=unknown
9623  enable_dlopen_self=unknown
9624  enable_dlopen_self_static=unknown
9625else
9626  lt_cv_dlopen=no
9627  lt_cv_dlopen_libs=
9628
9629  case $host_os in
9630  beos*)
9631    lt_cv_dlopen="load_add_on"
9632    lt_cv_dlopen_libs=
9633    lt_cv_dlopen_self=yes
9634    ;;
9635
9636  mingw* | pw32*)
9637    lt_cv_dlopen="LoadLibrary"
9638    lt_cv_dlopen_libs=
9639   ;;
9640
9641  cygwin*)
9642    lt_cv_dlopen="dlopen"
9643    lt_cv_dlopen_libs=
9644   ;;
9645
9646  darwin*)
9647  # if libdl is installed we need to link against it
9648    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9651  echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653  ac_check_lib_save_LIBS=$LIBS
9654LIBS="-ldl  $LIBS"
9655cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h.  */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h.  */
9661
9662/* Override any gcc2 internal prototype to avoid an error.  */
9663#ifdef __cplusplus
9664extern "C"
9665#endif
9666/* We use char because int might match the return type of a gcc2
9667   builtin and then its argument prototype would still apply.  */
9668char dlopen ();
9669int
9670main ()
9671{
9672dlopen ();
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext conftest$ac_exeext
9678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679  (eval $ac_link) 2>conftest.er1
9680  ac_status=$?
9681  grep -v '^ *+' conftest.er1 >conftest.err
9682  rm -f conftest.er1
9683  cat conftest.err >&5
9684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685  (exit $ac_status); } &&
9686	 { ac_try='test -z "$ac_c_werror_flag"
9687			 || test ! -s conftest.err'
9688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689  (eval $ac_try) 2>&5
9690  ac_status=$?
9691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692  (exit $ac_status); }; } &&
9693	 { ac_try='test -s conftest$ac_exeext'
9694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695  (eval $ac_try) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); }; }; then
9699  ac_cv_lib_dl_dlopen=yes
9700else
9701  echo "$as_me: failed program was:" >&5
9702sed 's/^/| /' conftest.$ac_ext >&5
9703
9704ac_cv_lib_dl_dlopen=no
9705fi
9706rm -f conftest.err conftest.$ac_objext \
9707      conftest$ac_exeext conftest.$ac_ext
9708LIBS=$ac_check_lib_save_LIBS
9709fi
9710echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9711echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9712if test $ac_cv_lib_dl_dlopen = yes; then
9713  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9714else
9715
9716    lt_cv_dlopen="dyld"
9717    lt_cv_dlopen_libs=
9718    lt_cv_dlopen_self=yes
9719
9720fi
9721
9722   ;;
9723
9724  *)
9725    echo "$as_me:$LINENO: checking for shl_load" >&5
9726echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9727if test "${ac_cv_func_shl_load+set}" = set; then
9728  echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730  cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h.  */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h.  */
9736/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9738#define shl_load innocuous_shl_load
9739
9740/* System header to define __stub macros and hopefully few prototypes,
9741    which can conflict with char shl_load (); below.
9742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9743    <limits.h> exists even on freestanding compilers.  */
9744
9745#ifdef __STDC__
9746# include <limits.h>
9747#else
9748# include <assert.h>
9749#endif
9750
9751#undef shl_load
9752
9753/* Override any gcc2 internal prototype to avoid an error.  */
9754#ifdef __cplusplus
9755extern "C"
9756{
9757#endif
9758/* We use char because int might match the return type of a gcc2
9759   builtin and then its argument prototype would still apply.  */
9760char shl_load ();
9761/* The GNU C library defines this for functions which it implements
9762    to always fail with ENOSYS.  Some functions are actually named
9763    something starting with __ and the normal name is an alias.  */
9764#if defined (__stub_shl_load) || defined (__stub___shl_load)
9765choke me
9766#else
9767char (*f) () = shl_load;
9768#endif
9769#ifdef __cplusplus
9770}
9771#endif
9772
9773int
9774main ()
9775{
9776return f != shl_load;
9777  ;
9778  return 0;
9779}
9780_ACEOF
9781rm -f conftest.$ac_objext conftest$ac_exeext
9782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783  (eval $ac_link) 2>conftest.er1
9784  ac_status=$?
9785  grep -v '^ *+' conftest.er1 >conftest.err
9786  rm -f conftest.er1
9787  cat conftest.err >&5
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); } &&
9790	 { ac_try='test -z "$ac_c_werror_flag"
9791			 || test ! -s conftest.err'
9792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793  (eval $ac_try) 2>&5
9794  ac_status=$?
9795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796  (exit $ac_status); }; } &&
9797	 { ac_try='test -s conftest$ac_exeext'
9798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799  (eval $ac_try) 2>&5
9800  ac_status=$?
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); }; }; then
9803  ac_cv_func_shl_load=yes
9804else
9805  echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808ac_cv_func_shl_load=no
9809fi
9810rm -f conftest.err conftest.$ac_objext \
9811      conftest$ac_exeext conftest.$ac_ext
9812fi
9813echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9814echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9815if test $ac_cv_func_shl_load = yes; then
9816  lt_cv_dlopen="shl_load"
9817else
9818  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9819echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9820if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9821  echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823  ac_check_lib_save_LIBS=$LIBS
9824LIBS="-ldld  $LIBS"
9825cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h.  */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h.  */
9831
9832/* Override any gcc2 internal prototype to avoid an error.  */
9833#ifdef __cplusplus
9834extern "C"
9835#endif
9836/* We use char because int might match the return type of a gcc2
9837   builtin and then its argument prototype would still apply.  */
9838char shl_load ();
9839int
9840main ()
9841{
9842shl_load ();
9843  ;
9844  return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext conftest$ac_exeext
9848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849  (eval $ac_link) 2>conftest.er1
9850  ac_status=$?
9851  grep -v '^ *+' conftest.er1 >conftest.err
9852  rm -f conftest.er1
9853  cat conftest.err >&5
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); } &&
9856	 { ac_try='test -z "$ac_c_werror_flag"
9857			 || test ! -s conftest.err'
9858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859  (eval $ac_try) 2>&5
9860  ac_status=$?
9861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862  (exit $ac_status); }; } &&
9863	 { ac_try='test -s conftest$ac_exeext'
9864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865  (eval $ac_try) 2>&5
9866  ac_status=$?
9867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868  (exit $ac_status); }; }; then
9869  ac_cv_lib_dld_shl_load=yes
9870else
9871  echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874ac_cv_lib_dld_shl_load=no
9875fi
9876rm -f conftest.err conftest.$ac_objext \
9877      conftest$ac_exeext conftest.$ac_ext
9878LIBS=$ac_check_lib_save_LIBS
9879fi
9880echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9881echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9882if test $ac_cv_lib_dld_shl_load = yes; then
9883  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9884else
9885  echo "$as_me:$LINENO: checking for dlopen" >&5
9886echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9887if test "${ac_cv_func_dlopen+set}" = set; then
9888  echo $ECHO_N "(cached) $ECHO_C" >&6
9889else
9890  cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9898#define dlopen innocuous_dlopen
9899
9900/* System header to define __stub macros and hopefully few prototypes,
9901    which can conflict with char dlopen (); below.
9902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903    <limits.h> exists even on freestanding compilers.  */
9904
9905#ifdef __STDC__
9906# include <limits.h>
9907#else
9908# include <assert.h>
9909#endif
9910
9911#undef dlopen
9912
9913/* Override any gcc2 internal prototype to avoid an error.  */
9914#ifdef __cplusplus
9915extern "C"
9916{
9917#endif
9918/* We use char because int might match the return type of a gcc2
9919   builtin and then its argument prototype would still apply.  */
9920char dlopen ();
9921/* The GNU C library defines this for functions which it implements
9922    to always fail with ENOSYS.  Some functions are actually named
9923    something starting with __ and the normal name is an alias.  */
9924#if defined (__stub_dlopen) || defined (__stub___dlopen)
9925choke me
9926#else
9927char (*f) () = dlopen;
9928#endif
9929#ifdef __cplusplus
9930}
9931#endif
9932
9933int
9934main ()
9935{
9936return f != dlopen;
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943  (eval $ac_link) 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } &&
9950	 { ac_try='test -z "$ac_c_werror_flag"
9951			 || test ! -s conftest.err'
9952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953  (eval $ac_try) 2>&5
9954  ac_status=$?
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); }; } &&
9957	 { ac_try='test -s conftest$ac_exeext'
9958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959  (eval $ac_try) 2>&5
9960  ac_status=$?
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); }; }; then
9963  ac_cv_func_dlopen=yes
9964else
9965  echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968ac_cv_func_dlopen=no
9969fi
9970rm -f conftest.err conftest.$ac_objext \
9971      conftest$ac_exeext conftest.$ac_ext
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9974echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9975if test $ac_cv_func_dlopen = yes; then
9976  lt_cv_dlopen="dlopen"
9977else
9978  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9979echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9980if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9981  echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983  ac_check_lib_save_LIBS=$LIBS
9984LIBS="-ldl  $LIBS"
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991
9992/* Override any gcc2 internal prototype to avoid an error.  */
9993#ifdef __cplusplus
9994extern "C"
9995#endif
9996/* We use char because int might match the return type of a gcc2
9997   builtin and then its argument prototype would still apply.  */
9998char dlopen ();
9999int
10000main ()
10001{
10002dlopen ();
10003  ;
10004  return 0;
10005}
10006_ACEOF
10007rm -f conftest.$ac_objext conftest$ac_exeext
10008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009  (eval $ac_link) 2>conftest.er1
10010  ac_status=$?
10011  grep -v '^ *+' conftest.er1 >conftest.err
10012  rm -f conftest.er1
10013  cat conftest.err >&5
10014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015  (exit $ac_status); } &&
10016	 { ac_try='test -z "$ac_c_werror_flag"
10017			 || test ! -s conftest.err'
10018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019  (eval $ac_try) 2>&5
10020  ac_status=$?
10021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); }; } &&
10023	 { ac_try='test -s conftest$ac_exeext'
10024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025  (eval $ac_try) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; }; then
10029  ac_cv_lib_dl_dlopen=yes
10030else
10031  echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034ac_cv_lib_dl_dlopen=no
10035fi
10036rm -f conftest.err conftest.$ac_objext \
10037      conftest$ac_exeext conftest.$ac_ext
10038LIBS=$ac_check_lib_save_LIBS
10039fi
10040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10042if test $ac_cv_lib_dl_dlopen = yes; then
10043  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10044else
10045  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10046echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10047if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10048  echo $ECHO_N "(cached) $ECHO_C" >&6
10049else
10050  ac_check_lib_save_LIBS=$LIBS
10051LIBS="-lsvld  $LIBS"
10052cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h.  */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h.  */
10058
10059/* Override any gcc2 internal prototype to avoid an error.  */
10060#ifdef __cplusplus
10061extern "C"
10062#endif
10063/* We use char because int might match the return type of a gcc2
10064   builtin and then its argument prototype would still apply.  */
10065char dlopen ();
10066int
10067main ()
10068{
10069dlopen ();
10070  ;
10071  return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext conftest$ac_exeext
10075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076  (eval $ac_link) 2>conftest.er1
10077  ac_status=$?
10078  grep -v '^ *+' conftest.er1 >conftest.err
10079  rm -f conftest.er1
10080  cat conftest.err >&5
10081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082  (exit $ac_status); } &&
10083	 { ac_try='test -z "$ac_c_werror_flag"
10084			 || test ! -s conftest.err'
10085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086  (eval $ac_try) 2>&5
10087  ac_status=$?
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); }; } &&
10090	 { ac_try='test -s conftest$ac_exeext'
10091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092  (eval $ac_try) 2>&5
10093  ac_status=$?
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); }; }; then
10096  ac_cv_lib_svld_dlopen=yes
10097else
10098  echo "$as_me: failed program was:" >&5
10099sed 's/^/| /' conftest.$ac_ext >&5
10100
10101ac_cv_lib_svld_dlopen=no
10102fi
10103rm -f conftest.err conftest.$ac_objext \
10104      conftest$ac_exeext conftest.$ac_ext
10105LIBS=$ac_check_lib_save_LIBS
10106fi
10107echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10108echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10109if test $ac_cv_lib_svld_dlopen = yes; then
10110  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10111else
10112  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10113echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10114if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10115  echo $ECHO_N "(cached) $ECHO_C" >&6
10116else
10117  ac_check_lib_save_LIBS=$LIBS
10118LIBS="-ldld  $LIBS"
10119cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h.  */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h.  */
10125
10126/* Override any gcc2 internal prototype to avoid an error.  */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130/* We use char because int might match the return type of a gcc2
10131   builtin and then its argument prototype would still apply.  */
10132char dld_link ();
10133int
10134main ()
10135{
10136dld_link ();
10137  ;
10138  return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext conftest$ac_exeext
10142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143  (eval $ac_link) 2>conftest.er1
10144  ac_status=$?
10145  grep -v '^ *+' conftest.er1 >conftest.err
10146  rm -f conftest.er1
10147  cat conftest.err >&5
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); } &&
10150	 { ac_try='test -z "$ac_c_werror_flag"
10151			 || test ! -s conftest.err'
10152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153  (eval $ac_try) 2>&5
10154  ac_status=$?
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); }; } &&
10157	 { ac_try='test -s conftest$ac_exeext'
10158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159  (eval $ac_try) 2>&5
10160  ac_status=$?
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); }; }; then
10163  ac_cv_lib_dld_dld_link=yes
10164else
10165  echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168ac_cv_lib_dld_dld_link=no
10169fi
10170rm -f conftest.err conftest.$ac_objext \
10171      conftest$ac_exeext conftest.$ac_ext
10172LIBS=$ac_check_lib_save_LIBS
10173fi
10174echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10175echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10176if test $ac_cv_lib_dld_dld_link = yes; then
10177  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10178fi
10179
10180
10181fi
10182
10183
10184fi
10185
10186
10187fi
10188
10189
10190fi
10191
10192
10193fi
10194
10195    ;;
10196  esac
10197
10198  if test "x$lt_cv_dlopen" != xno; then
10199    enable_dlopen=yes
10200  else
10201    enable_dlopen=no
10202  fi
10203
10204  case $lt_cv_dlopen in
10205  dlopen)
10206    save_CPPFLAGS="$CPPFLAGS"
10207    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10208
10209    save_LDFLAGS="$LDFLAGS"
10210    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10211
10212    save_LIBS="$LIBS"
10213    LIBS="$lt_cv_dlopen_libs $LIBS"
10214
10215    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10216echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10217if test "${lt_cv_dlopen_self+set}" = set; then
10218  echo $ECHO_N "(cached) $ECHO_C" >&6
10219else
10220  	  if test "$cross_compiling" = yes; then :
10221  lt_cv_dlopen_self=cross
10222else
10223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224  lt_status=$lt_dlunknown
10225  cat > conftest.$ac_ext <<EOF
10226#line 10226 "configure"
10227#include "confdefs.h"
10228
10229#if HAVE_DLFCN_H
10230#include <dlfcn.h>
10231#endif
10232
10233#include <stdio.h>
10234
10235#ifdef RTLD_GLOBAL
10236#  define LT_DLGLOBAL		RTLD_GLOBAL
10237#else
10238#  ifdef DL_GLOBAL
10239#    define LT_DLGLOBAL		DL_GLOBAL
10240#  else
10241#    define LT_DLGLOBAL		0
10242#  endif
10243#endif
10244
10245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246   find out it does not work in some platform. */
10247#ifndef LT_DLLAZY_OR_NOW
10248#  ifdef RTLD_LAZY
10249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10250#  else
10251#    ifdef DL_LAZY
10252#      define LT_DLLAZY_OR_NOW		DL_LAZY
10253#    else
10254#      ifdef RTLD_NOW
10255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10256#      else
10257#        ifdef DL_NOW
10258#          define LT_DLLAZY_OR_NOW	DL_NOW
10259#        else
10260#          define LT_DLLAZY_OR_NOW	0
10261#        endif
10262#      endif
10263#    endif
10264#  endif
10265#endif
10266
10267#ifdef __cplusplus
10268extern "C" void exit (int);
10269#endif
10270
10271void fnord() { int i=42;}
10272int main ()
10273{
10274  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10275  int status = $lt_dlunknown;
10276
10277  if (self)
10278    {
10279      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10280      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10281      /* dlclose (self); */
10282    }
10283  else
10284    puts (dlerror ());
10285
10286    exit (status);
10287}
10288EOF
10289  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290  (eval $ac_link) 2>&5
10291  ac_status=$?
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10294    (./conftest; exit; ) >&5 2>/dev/null
10295    lt_status=$?
10296    case x$lt_status in
10297      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10298      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10299      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10300    esac
10301  else :
10302    # compilation failed
10303    lt_cv_dlopen_self=no
10304  fi
10305fi
10306rm -fr conftest*
10307
10308
10309fi
10310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10311echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10312
10313    if test "x$lt_cv_dlopen_self" = xyes; then
10314      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10315      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10316echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10317if test "${lt_cv_dlopen_self_static+set}" = set; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  	  if test "$cross_compiling" = yes; then :
10321  lt_cv_dlopen_self_static=cross
10322else
10323  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10324  lt_status=$lt_dlunknown
10325  cat > conftest.$ac_ext <<EOF
10326#line 10326 "configure"
10327#include "confdefs.h"
10328
10329#if HAVE_DLFCN_H
10330#include <dlfcn.h>
10331#endif
10332
10333#include <stdio.h>
10334
10335#ifdef RTLD_GLOBAL
10336#  define LT_DLGLOBAL		RTLD_GLOBAL
10337#else
10338#  ifdef DL_GLOBAL
10339#    define LT_DLGLOBAL		DL_GLOBAL
10340#  else
10341#    define LT_DLGLOBAL		0
10342#  endif
10343#endif
10344
10345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10346   find out it does not work in some platform. */
10347#ifndef LT_DLLAZY_OR_NOW
10348#  ifdef RTLD_LAZY
10349#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10350#  else
10351#    ifdef DL_LAZY
10352#      define LT_DLLAZY_OR_NOW		DL_LAZY
10353#    else
10354#      ifdef RTLD_NOW
10355#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10356#      else
10357#        ifdef DL_NOW
10358#          define LT_DLLAZY_OR_NOW	DL_NOW
10359#        else
10360#          define LT_DLLAZY_OR_NOW	0
10361#        endif
10362#      endif
10363#    endif
10364#  endif
10365#endif
10366
10367#ifdef __cplusplus
10368extern "C" void exit (int);
10369#endif
10370
10371void fnord() { int i=42;}
10372int main ()
10373{
10374  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10375  int status = $lt_dlunknown;
10376
10377  if (self)
10378    {
10379      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10380      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10381      /* dlclose (self); */
10382    }
10383  else
10384    puts (dlerror ());
10385
10386    exit (status);
10387}
10388EOF
10389  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390  (eval $ac_link) 2>&5
10391  ac_status=$?
10392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10394    (./conftest; exit; ) >&5 2>/dev/null
10395    lt_status=$?
10396    case x$lt_status in
10397      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10398      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10399      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10400    esac
10401  else :
10402    # compilation failed
10403    lt_cv_dlopen_self_static=no
10404  fi
10405fi
10406rm -fr conftest*
10407
10408
10409fi
10410echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10411echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10412    fi
10413
10414    CPPFLAGS="$save_CPPFLAGS"
10415    LDFLAGS="$save_LDFLAGS"
10416    LIBS="$save_LIBS"
10417    ;;
10418  esac
10419
10420  case $lt_cv_dlopen_self in
10421  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10422  *) enable_dlopen_self=unknown ;;
10423  esac
10424
10425  case $lt_cv_dlopen_self_static in
10426  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10427  *) enable_dlopen_self_static=unknown ;;
10428  esac
10429fi
10430
10431
10432# Report which library types will actually be built
10433echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10434echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10435echo "$as_me:$LINENO: result: $can_build_shared" >&5
10436echo "${ECHO_T}$can_build_shared" >&6
10437
10438echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10439echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10440test "$can_build_shared" = "no" && enable_shared=no
10441
10442# On AIX, shared libraries and static libraries use the same namespace, and
10443# are all built from PIC.
10444case $host_os in
10445aix3*)
10446  test "$enable_shared" = yes && enable_static=no
10447  if test -n "$RANLIB"; then
10448    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10449    postinstall_cmds='$RANLIB $lib'
10450  fi
10451  ;;
10452
10453aix4* | aix5*)
10454  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10455    test "$enable_shared" = yes && enable_static=no
10456  fi
10457    ;;
10458esac
10459echo "$as_me:$LINENO: result: $enable_shared" >&5
10460echo "${ECHO_T}$enable_shared" >&6
10461
10462echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10463echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10464# Make sure either enable_shared or enable_static is yes.
10465test "$enable_shared" = yes || enable_static=yes
10466echo "$as_me:$LINENO: result: $enable_static" >&5
10467echo "${ECHO_T}$enable_static" >&6
10468
10469# The else clause should only fire when bootstrapping the
10470# libtool distribution, otherwise you forgot to ship ltmain.sh
10471# with your package, and you will get complaints that there are
10472# no rules to generate ltmain.sh.
10473if test -f "$ltmain"; then
10474  # See if we are running on zsh, and set the options which allow our commands through
10475  # without removal of \ escapes.
10476  if test -n "${ZSH_VERSION+set}" ; then
10477    setopt NO_GLOB_SUBST
10478  fi
10479  # Now quote all the things that may contain metacharacters while being
10480  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10481  # variables and quote the copies for generation of the libtool script.
10482  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10483    SED SHELL STRIP \
10484    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10485    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10486    deplibs_check_method reload_flag reload_cmds need_locks \
10487    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10488    lt_cv_sys_global_symbol_to_c_name_address \
10489    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10490    old_postinstall_cmds old_postuninstall_cmds \
10491    compiler \
10492    CC \
10493    LD \
10494    lt_prog_compiler_wl \
10495    lt_prog_compiler_pic \
10496    lt_prog_compiler_static \
10497    lt_prog_compiler_no_builtin_flag \
10498    export_dynamic_flag_spec \
10499    thread_safe_flag_spec \
10500    whole_archive_flag_spec \
10501    enable_shared_with_static_runtimes \
10502    old_archive_cmds \
10503    old_archive_from_new_cmds \
10504    predep_objects \
10505    postdep_objects \
10506    predeps \
10507    postdeps \
10508    compiler_lib_search_path \
10509    archive_cmds \
10510    archive_expsym_cmds \
10511    postinstall_cmds \
10512    postuninstall_cmds \
10513    old_archive_from_expsyms_cmds \
10514    allow_undefined_flag \
10515    no_undefined_flag \
10516    export_symbols_cmds \
10517    hardcode_libdir_flag_spec \
10518    hardcode_libdir_flag_spec_ld \
10519    hardcode_libdir_separator \
10520    hardcode_automatic \
10521    module_cmds \
10522    module_expsym_cmds \
10523    lt_cv_prog_compiler_c_o \
10524    exclude_expsyms \
10525    include_expsyms; do
10526
10527    case $var in
10528    old_archive_cmds | \
10529    old_archive_from_new_cmds | \
10530    archive_cmds | \
10531    archive_expsym_cmds | \
10532    module_cmds | \
10533    module_expsym_cmds | \
10534    old_archive_from_expsyms_cmds | \
10535    export_symbols_cmds | \
10536    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10537    postinstall_cmds | postuninstall_cmds | \
10538    old_postinstall_cmds | old_postuninstall_cmds | \
10539    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10540      # Double-quote double-evaled strings.
10541      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10542      ;;
10543    *)
10544      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10545      ;;
10546    esac
10547  done
10548
10549  case $lt_echo in
10550  *'\$0 --fallback-echo"')
10551    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10552    ;;
10553  esac
10554
10555cfgfile="${ofile}T"
10556  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10557  $rm -f "$cfgfile"
10558  { echo "$as_me:$LINENO: creating $ofile" >&5
10559echo "$as_me: creating $ofile" >&6;}
10560
10561  cat <<__EOF__ >> "$cfgfile"
10562#! $SHELL
10563
10564# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10565# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10566# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10567#
10568# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10569# Free Software Foundation, Inc.
10570#
10571# This file is part of GNU Libtool:
10572# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10573#
10574# This program is free software; you can redistribute it and/or modify
10575# it under the terms of the GNU General Public License as published by
10576# the Free Software Foundation; either version 2 of the License, or
10577# (at your option) any later version.
10578#
10579# This program is distributed in the hope that it will be useful, but
10580# WITHOUT ANY WARRANTY; without even the implied warranty of
10581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10582# General Public License for more details.
10583#
10584# You should have received a copy of the GNU General Public License
10585# along with this program; if not, write to the Free Software
10586# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10587#
10588# As a special exception to the GNU General Public License, if you
10589# distribute this file as part of a program that contains a
10590# configuration script generated by Autoconf, you may include it under
10591# the same distribution terms that you use for the rest of that program.
10592
10593# A sed program that does not truncate output.
10594SED=$lt_SED
10595
10596# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10597Xsed="$SED -e 1s/^X//"
10598
10599# The HP-UX ksh and POSIX shell print the target directory to stdout
10600# if CDPATH is set.
10601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10602
10603# The names of the tagged configurations supported by this script.
10604available_tags=
10605
10606# ### BEGIN LIBTOOL CONFIG
10607
10608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10609
10610# Shell to use when invoking shell scripts.
10611SHELL=$lt_SHELL
10612
10613# Whether or not to build shared libraries.
10614build_libtool_libs=$enable_shared
10615
10616# Whether or not to build static libraries.
10617build_old_libs=$enable_static
10618
10619# Whether or not to add -lc for building shared libraries.
10620build_libtool_need_lc=$archive_cmds_need_lc
10621
10622# Whether or not to disallow shared libs when runtime libs are static
10623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10624
10625# Whether or not to optimize for fast installation.
10626fast_install=$enable_fast_install
10627
10628# The host system.
10629host_alias=$host_alias
10630host=$host
10631host_os=$host_os
10632
10633# The build system.
10634build_alias=$build_alias
10635build=$build
10636build_os=$build_os
10637
10638# An echo program that does not interpret backslashes.
10639echo=$lt_echo
10640
10641# The archiver.
10642AR=$lt_AR
10643AR_FLAGS=$lt_AR_FLAGS
10644
10645# A C compiler.
10646LTCC=$lt_LTCC
10647
10648# LTCC compiler flags.
10649LTCFLAGS=$lt_LTCFLAGS
10650
10651# A language-specific compiler.
10652CC=$lt_compiler
10653
10654# Is the compiler the GNU C compiler?
10655with_gcc=$GCC
10656
10657# An ERE matcher.
10658EGREP=$lt_EGREP
10659
10660# The linker used to build libraries.
10661LD=$lt_LD
10662
10663# Whether we need hard or soft links.
10664LN_S=$lt_LN_S
10665
10666# A BSD-compatible nm program.
10667NM=$lt_NM
10668
10669# A symbol stripping program
10670STRIP=$lt_STRIP
10671
10672# Used to examine libraries when file_magic_cmd begins "file"
10673MAGIC_CMD=$MAGIC_CMD
10674
10675# Used on cygwin: DLL creation program.
10676DLLTOOL="$DLLTOOL"
10677
10678# Used on cygwin: object dumper.
10679OBJDUMP="$OBJDUMP"
10680
10681# Used on cygwin: assembler.
10682AS="$AS"
10683
10684# The name of the directory that contains temporary libtool files.
10685objdir=$objdir
10686
10687# How to create reloadable object files.
10688reload_flag=$lt_reload_flag
10689reload_cmds=$lt_reload_cmds
10690
10691# How to pass a linker flag through the compiler.
10692wl=$lt_lt_prog_compiler_wl
10693
10694# Object file suffix (normally "o").
10695objext="$ac_objext"
10696
10697# Old archive suffix (normally "a").
10698libext="$libext"
10699
10700# Shared library suffix (normally ".so").
10701shrext_cmds='$shrext_cmds'
10702
10703# Executable file suffix (normally "").
10704exeext="$exeext"
10705
10706# Additional compiler flags for building library objects.
10707pic_flag=$lt_lt_prog_compiler_pic
10708pic_mode=$pic_mode
10709
10710# What is the maximum length of a command?
10711max_cmd_len=$lt_cv_sys_max_cmd_len
10712
10713# Does compiler simultaneously support -c and -o options?
10714compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10715
10716# Must we lock files when doing compilation?
10717need_locks=$lt_need_locks
10718
10719# Do we need the lib prefix for modules?
10720need_lib_prefix=$need_lib_prefix
10721
10722# Do we need a version for libraries?
10723need_version=$need_version
10724
10725# Whether dlopen is supported.
10726dlopen_support=$enable_dlopen
10727
10728# Whether dlopen of programs is supported.
10729dlopen_self=$enable_dlopen_self
10730
10731# Whether dlopen of statically linked programs is supported.
10732dlopen_self_static=$enable_dlopen_self_static
10733
10734# Compiler flag to prevent dynamic linking.
10735link_static_flag=$lt_lt_prog_compiler_static
10736
10737# Compiler flag to turn off builtin functions.
10738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10739
10740# Compiler flag to allow reflexive dlopens.
10741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10742
10743# Compiler flag to generate shared objects directly from archives.
10744whole_archive_flag_spec=$lt_whole_archive_flag_spec
10745
10746# Compiler flag to generate thread-safe objects.
10747thread_safe_flag_spec=$lt_thread_safe_flag_spec
10748
10749# Library versioning type.
10750version_type=$version_type
10751
10752# Format of library name prefix.
10753libname_spec=$lt_libname_spec
10754
10755# List of archive names.  First name is the real one, the rest are links.
10756# The last name is the one that the linker finds with -lNAME.
10757library_names_spec=$lt_library_names_spec
10758
10759# The coded name of the library, if different from the real name.
10760soname_spec=$lt_soname_spec
10761
10762# Commands used to build and install an old-style archive.
10763RANLIB=$lt_RANLIB
10764old_archive_cmds=$lt_old_archive_cmds
10765old_postinstall_cmds=$lt_old_postinstall_cmds
10766old_postuninstall_cmds=$lt_old_postuninstall_cmds
10767
10768# Create an old-style archive from a shared archive.
10769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10770
10771# Create a temporary old-style archive to link instead of a shared archive.
10772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10773
10774# Commands used to build and install a shared archive.
10775archive_cmds=$lt_archive_cmds
10776archive_expsym_cmds=$lt_archive_expsym_cmds
10777postinstall_cmds=$lt_postinstall_cmds
10778postuninstall_cmds=$lt_postuninstall_cmds
10779
10780# Commands used to build a loadable module (assumed same as above if empty)
10781module_cmds=$lt_module_cmds
10782module_expsym_cmds=$lt_module_expsym_cmds
10783
10784# Commands to strip libraries.
10785old_striplib=$lt_old_striplib
10786striplib=$lt_striplib
10787
10788# Dependencies to place before the objects being linked to create a
10789# shared library.
10790predep_objects=$lt_predep_objects
10791
10792# Dependencies to place after the objects being linked to create a
10793# shared library.
10794postdep_objects=$lt_postdep_objects
10795
10796# Dependencies to place before the objects being linked to create a
10797# shared library.
10798predeps=$lt_predeps
10799
10800# Dependencies to place after the objects being linked to create a
10801# shared library.
10802postdeps=$lt_postdeps
10803
10804# The library search path used internally by the compiler when linking
10805# a shared library.
10806compiler_lib_search_path=$lt_compiler_lib_search_path
10807
10808# Method to check whether dependent libraries are shared objects.
10809deplibs_check_method=$lt_deplibs_check_method
10810
10811# Command to use when deplibs_check_method == file_magic.
10812file_magic_cmd=$lt_file_magic_cmd
10813
10814# Flag that allows shared libraries with undefined symbols to be built.
10815allow_undefined_flag=$lt_allow_undefined_flag
10816
10817# Flag that forces no undefined symbols.
10818no_undefined_flag=$lt_no_undefined_flag
10819
10820# Commands used to finish a libtool library installation in a directory.
10821finish_cmds=$lt_finish_cmds
10822
10823# Same as above, but a single script fragment to be evaled but not shown.
10824finish_eval=$lt_finish_eval
10825
10826# Take the output of nm and produce a listing of raw symbols and C names.
10827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10828
10829# Transform the output of nm in a proper C declaration
10830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10831
10832# Transform the output of nm in a C name address pair
10833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10834
10835# This is the shared library runtime path variable.
10836runpath_var=$runpath_var
10837
10838# This is the shared library path variable.
10839shlibpath_var=$shlibpath_var
10840
10841# Is shlibpath searched before the hard-coded library search path?
10842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10843
10844# How to hardcode a shared library path into an executable.
10845hardcode_action=$hardcode_action
10846
10847# Whether we should hardcode library paths into libraries.
10848hardcode_into_libs=$hardcode_into_libs
10849
10850# Flag to hardcode \$libdir into a binary during linking.
10851# This must work even if \$libdir does not exist.
10852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10853
10854# If ld is used when linking, flag to hardcode \$libdir into
10855# a binary during linking. This must work even if \$libdir does
10856# not exist.
10857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10858
10859# Whether we need a single -rpath flag with a separated argument.
10860hardcode_libdir_separator=$lt_hardcode_libdir_separator
10861
10862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10863# resulting binary.
10864hardcode_direct=$hardcode_direct
10865
10866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10867# resulting binary.
10868hardcode_minus_L=$hardcode_minus_L
10869
10870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10871# the resulting binary.
10872hardcode_shlibpath_var=$hardcode_shlibpath_var
10873
10874# Set to yes if building a shared library automatically hardcodes DIR into the library
10875# and all subsequent libraries and executables linked against it.
10876hardcode_automatic=$hardcode_automatic
10877
10878# Variables whose values should be saved in libtool wrapper scripts and
10879# restored at relink time.
10880variables_saved_for_relink="$variables_saved_for_relink"
10881
10882# Whether libtool must link a program against all its dependency libraries.
10883link_all_deplibs=$link_all_deplibs
10884
10885# Compile-time system search path for libraries
10886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10887
10888# Run-time system search path for libraries
10889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10890
10891# Fix the shell variable \$srcfile for the compiler.
10892fix_srcfile_path="$fix_srcfile_path"
10893
10894# Set to yes if exported symbols are required.
10895always_export_symbols=$always_export_symbols
10896
10897# The commands to list exported symbols.
10898export_symbols_cmds=$lt_export_symbols_cmds
10899
10900# The commands to extract the exported symbol list from a shared archive.
10901extract_expsyms_cmds=$lt_extract_expsyms_cmds
10902
10903# Symbols that should not be listed in the preloaded symbols.
10904exclude_expsyms=$lt_exclude_expsyms
10905
10906# Symbols that must always be exported.
10907include_expsyms=$lt_include_expsyms
10908
10909# ### END LIBTOOL CONFIG
10910
10911__EOF__
10912
10913
10914  case $host_os in
10915  aix3*)
10916    cat <<\EOF >> "$cfgfile"
10917
10918# AIX sometimes has problems with the GCC collect2 program.  For some
10919# reason, if we set the COLLECT_NAMES environment variable, the problems
10920# vanish in a puff of smoke.
10921if test "X${COLLECT_NAMES+set}" != Xset; then
10922  COLLECT_NAMES=
10923  export COLLECT_NAMES
10924fi
10925EOF
10926    ;;
10927  esac
10928
10929  # We use sed instead of cat because bash on DJGPP gets confused if
10930  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10931  # text mode, it properly converts lines to CR/LF.  This bash problem
10932  # is reportedly fixed, but why not run on old versions too?
10933  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10934
10935  mv -f "$cfgfile" "$ofile" || \
10936    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10937  chmod +x "$ofile"
10938
10939else
10940  # If there is no Makefile yet, we rely on a make rule to execute
10941  # `config.status --recheck' to rerun these tests and create the
10942  # libtool script then.
10943  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10944  if test -f "$ltmain_in"; then
10945    test -f Makefile && make "$ltmain"
10946  fi
10947fi
10948
10949
10950ac_ext=c
10951ac_cpp='$CPP $CPPFLAGS'
10952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955
10956CC="$lt_save_CC"
10957
10958
10959# Check whether --with-tags or --without-tags was given.
10960if test "${with_tags+set}" = set; then
10961  withval="$with_tags"
10962  tagnames="$withval"
10963fi;
10964
10965if test -f "$ltmain" && test -n "$tagnames"; then
10966  if test ! -f "${ofile}"; then
10967    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10968echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10969  fi
10970
10971  if test -z "$LTCC"; then
10972    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10973    if test -z "$LTCC"; then
10974      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10975echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10976    else
10977      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10978echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10979    fi
10980  fi
10981  if test -z "$LTCFLAGS"; then
10982    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10983  fi
10984
10985  # Extract list of available tagged configurations in $ofile.
10986  # Note that this assumes the entire list is on one line.
10987  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10988
10989  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10990  for tagname in $tagnames; do
10991    IFS="$lt_save_ifs"
10992    # Check whether tagname contains only valid characters
10993    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10994    "") ;;
10995    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10996echo "$as_me: error: invalid tag name: $tagname" >&2;}
10997   { (exit 1); exit 1; }; }
10998	;;
10999    esac
11000
11001    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11002    then
11003      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11004echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11005   { (exit 1); exit 1; }; }
11006    fi
11007
11008    # Update the list of available tags.
11009    if test -n "$tagname"; then
11010      echo appending configuration tag \"$tagname\" to $ofile
11011
11012      case $tagname in
11013      CXX)
11014	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11015	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11016	    (test "X$CXX" != "Xg++"))) ; then
11017	  ac_ext=cc
11018ac_cpp='$CXXCPP $CPPFLAGS'
11019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11022
11023
11024
11025
11026archive_cmds_need_lc_CXX=no
11027allow_undefined_flag_CXX=
11028always_export_symbols_CXX=no
11029archive_expsym_cmds_CXX=
11030export_dynamic_flag_spec_CXX=
11031hardcode_direct_CXX=no
11032hardcode_libdir_flag_spec_CXX=
11033hardcode_libdir_flag_spec_ld_CXX=
11034hardcode_libdir_separator_CXX=
11035hardcode_minus_L_CXX=no
11036hardcode_shlibpath_var_CXX=unsupported
11037hardcode_automatic_CXX=no
11038module_cmds_CXX=
11039module_expsym_cmds_CXX=
11040link_all_deplibs_CXX=unknown
11041old_archive_cmds_CXX=$old_archive_cmds
11042no_undefined_flag_CXX=
11043whole_archive_flag_spec_CXX=
11044enable_shared_with_static_runtimes_CXX=no
11045
11046# Dependencies to place before and after the object being linked:
11047predep_objects_CXX=
11048postdep_objects_CXX=
11049predeps_CXX=
11050postdeps_CXX=
11051compiler_lib_search_path_CXX=
11052
11053# Source file extension for C++ test sources.
11054ac_ext=cpp
11055
11056# Object file extension for compiled C++ test sources.
11057objext=o
11058objext_CXX=$objext
11059
11060# Code to be used in simple compile tests
11061lt_simple_compile_test_code="int some_variable = 0;\n"
11062
11063# Code to be used in simple link tests
11064lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11065
11066# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11067
11068# If no C compiler was specified, use CC.
11069LTCC=${LTCC-"$CC"}
11070
11071# If no C compiler flags were specified, use CFLAGS.
11072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11073
11074# Allow CC to be a program name with arguments.
11075compiler=$CC
11076
11077
11078# save warnings/boilerplate of simple test code
11079ac_outfile=conftest.$ac_objext
11080printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11081eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11082_lt_compiler_boilerplate=`cat conftest.err`
11083$rm conftest*
11084
11085ac_outfile=conftest.$ac_objext
11086printf "$lt_simple_link_test_code" >conftest.$ac_ext
11087eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11088_lt_linker_boilerplate=`cat conftest.err`
11089$rm conftest*
11090
11091
11092# Allow CC to be a program name with arguments.
11093lt_save_CC=$CC
11094lt_save_LD=$LD
11095lt_save_GCC=$GCC
11096GCC=$GXX
11097lt_save_with_gnu_ld=$with_gnu_ld
11098lt_save_path_LD=$lt_cv_path_LD
11099if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11100  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11101else
11102  $as_unset lt_cv_prog_gnu_ld
11103fi
11104if test -n "${lt_cv_path_LDCXX+set}"; then
11105  lt_cv_path_LD=$lt_cv_path_LDCXX
11106else
11107  $as_unset lt_cv_path_LD
11108fi
11109test -z "${LDCXX+set}" || LD=$LDCXX
11110CC=${CXX-"c++"}
11111compiler=$CC
11112compiler_CXX=$CC
11113for cc_temp in $compiler""; do
11114  case $cc_temp in
11115    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11116    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11117    \-*) ;;
11118    *) break;;
11119  esac
11120done
11121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11122
11123
11124# We don't want -fno-exception wen compiling C++ code, so set the
11125# no_builtin_flag separately
11126if test "$GXX" = yes; then
11127  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11128else
11129  lt_prog_compiler_no_builtin_flag_CXX=
11130fi
11131
11132if test "$GXX" = yes; then
11133  # Set up default GNU C++ configuration
11134
11135
11136# Check whether --with-gnu-ld or --without-gnu-ld was given.
11137if test "${with_gnu_ld+set}" = set; then
11138  withval="$with_gnu_ld"
11139  test "$withval" = no || with_gnu_ld=yes
11140else
11141  with_gnu_ld=no
11142fi;
11143ac_prog=ld
11144if test "$GCC" = yes; then
11145  # Check if gcc -print-prog-name=ld gives a path.
11146  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11147echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11148  case $host in
11149  *-*-mingw*)
11150    # gcc leaves a trailing carriage return which upsets mingw
11151    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11152  *)
11153    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11154  esac
11155  case $ac_prog in
11156    # Accept absolute paths.
11157    [\\/]* | ?:[\\/]*)
11158      re_direlt='/[^/][^/]*/\.\./'
11159      # Canonicalize the pathname of ld
11160      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11161      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11162	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11163      done
11164      test -z "$LD" && LD="$ac_prog"
11165      ;;
11166  "")
11167    # If it fails, then pretend we aren't using GCC.
11168    ac_prog=ld
11169    ;;
11170  *)
11171    # If it is relative, then search for the first ld in PATH.
11172    with_gnu_ld=unknown
11173    ;;
11174  esac
11175elif test "$with_gnu_ld" = yes; then
11176  echo "$as_me:$LINENO: checking for GNU ld" >&5
11177echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11178else
11179  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11180echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11181fi
11182if test "${lt_cv_path_LD+set}" = set; then
11183  echo $ECHO_N "(cached) $ECHO_C" >&6
11184else
11185  if test -z "$LD"; then
11186  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11187  for ac_dir in $PATH; do
11188    IFS="$lt_save_ifs"
11189    test -z "$ac_dir" && ac_dir=.
11190    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11191      lt_cv_path_LD="$ac_dir/$ac_prog"
11192      # Check to see if the program is GNU ld.  I'd rather use --version,
11193      # but apparently some variants of GNU ld only accept -v.
11194      # Break only if it was the GNU/non-GNU ld that we prefer.
11195      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11196      *GNU* | *'with BFD'*)
11197	test "$with_gnu_ld" != no && break
11198	;;
11199      *)
11200	test "$with_gnu_ld" != yes && break
11201	;;
11202      esac
11203    fi
11204  done
11205  IFS="$lt_save_ifs"
11206else
11207  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11208fi
11209fi
11210
11211LD="$lt_cv_path_LD"
11212if test -n "$LD"; then
11213  echo "$as_me:$LINENO: result: $LD" >&5
11214echo "${ECHO_T}$LD" >&6
11215else
11216  echo "$as_me:$LINENO: result: no" >&5
11217echo "${ECHO_T}no" >&6
11218fi
11219test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11220echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11221   { (exit 1); exit 1; }; }
11222echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11223echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11224if test "${lt_cv_prog_gnu_ld+set}" = set; then
11225  echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11228case `$LD -v 2>&1 </dev/null` in
11229*GNU* | *'with BFD'*)
11230  lt_cv_prog_gnu_ld=yes
11231  ;;
11232*)
11233  lt_cv_prog_gnu_ld=no
11234  ;;
11235esac
11236fi
11237echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11238echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11239with_gnu_ld=$lt_cv_prog_gnu_ld
11240
11241
11242
11243  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11244  # archiving commands below assume that GNU ld is being used.
11245  if test "$with_gnu_ld" = yes; then
11246    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11247    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'
11248
11249    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11250    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11251
11252    # If archive_cmds runs LD, not CC, wlarc should be empty
11253    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11254    #     investigate it a little bit more. (MM)
11255    wlarc='${wl}'
11256
11257    # ancient GNU ld didn't support --whole-archive et. al.
11258    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11259	grep 'no-whole-archive' > /dev/null; then
11260      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11261    else
11262      whole_archive_flag_spec_CXX=
11263    fi
11264  else
11265    with_gnu_ld=no
11266    wlarc=
11267
11268    # A generic and very simple default shared library creation
11269    # command for GNU C++ for the case where it uses the native
11270    # linker, instead of GNU ld.  If possible, this setting should
11271    # overridden to take advantage of the native linker features on
11272    # the platform it is being used on.
11273    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11274  fi
11275
11276  # Commands to make compiler produce verbose output that lists
11277  # what "hidden" libraries, object files and flags are used when
11278  # linking a shared library.
11279  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11280
11281else
11282  GXX=no
11283  with_gnu_ld=no
11284  wlarc=
11285fi
11286
11287# PORTME: fill in a description of your system's C++ link characteristics
11288echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11289echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11290ld_shlibs_CXX=yes
11291case $host_os in
11292  aix3*)
11293    # FIXME: insert proper C++ library support
11294    ld_shlibs_CXX=no
11295    ;;
11296  aix4* | aix5*)
11297    if test "$host_cpu" = ia64; then
11298      # On IA64, the linker does run time linking by default, so we don't
11299      # have to do anything special.
11300      aix_use_runtimelinking=no
11301      exp_sym_flag='-Bexport'
11302      no_entry_flag=""
11303    else
11304      aix_use_runtimelinking=no
11305
11306      # Test if we are trying to use run time linking or normal
11307      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11308      # need to do runtime linking.
11309      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11310	for ld_flag in $LDFLAGS; do
11311	  case $ld_flag in
11312	  *-brtl*)
11313	    aix_use_runtimelinking=yes
11314	    break
11315	    ;;
11316	  esac
11317	done
11318	;;
11319      esac
11320
11321      exp_sym_flag='-bexport'
11322      no_entry_flag='-bnoentry'
11323    fi
11324
11325    # When large executables or shared objects are built, AIX ld can
11326    # have problems creating the table of contents.  If linking a library
11327    # or program results in "error TOC overflow" add -mminimal-toc to
11328    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11329    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11330
11331    archive_cmds_CXX=''
11332    hardcode_direct_CXX=yes
11333    hardcode_libdir_separator_CXX=':'
11334    link_all_deplibs_CXX=yes
11335
11336    if test "$GXX" = yes; then
11337      case $host_os in aix4.[012]|aix4.[012].*)
11338      # We only want to do this on AIX 4.2 and lower, the check
11339      # below for broken collect2 doesn't work under 4.3+
11340	collect2name=`${CC} -print-prog-name=collect2`
11341	if test -f "$collect2name" && \
11342	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11343	then
11344	  # We have reworked collect2
11345	  hardcode_direct_CXX=yes
11346	else
11347	  # We have old collect2
11348	  hardcode_direct_CXX=unsupported
11349	  # It fails to find uninstalled libraries when the uninstalled
11350	  # path is not listed in the libpath.  Setting hardcode_minus_L
11351	  # to unsupported forces relinking
11352	  hardcode_minus_L_CXX=yes
11353	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11354	  hardcode_libdir_separator_CXX=
11355	fi
11356	;;
11357      esac
11358      shared_flag='-shared'
11359      if test "$aix_use_runtimelinking" = yes; then
11360	shared_flag="$shared_flag "'${wl}-G'
11361      fi
11362    else
11363      # not using gcc
11364      if test "$host_cpu" = ia64; then
11365	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11366	# chokes on -Wl,-G. The following line is correct:
11367	shared_flag='-G'
11368      else
11369	if test "$aix_use_runtimelinking" = yes; then
11370	  shared_flag='${wl}-G'
11371	else
11372	  shared_flag='${wl}-bM:SRE'
11373	fi
11374      fi
11375    fi
11376
11377    # It seems that -bexpall does not export symbols beginning with
11378    # underscore (_), so it is better to generate a list of symbols to export.
11379    always_export_symbols_CXX=yes
11380    if test "$aix_use_runtimelinking" = yes; then
11381      # Warning - without using the other runtime loading flags (-brtl),
11382      # -berok will link without error, but may produce a broken library.
11383      allow_undefined_flag_CXX='-berok'
11384      # Determine the default libpath from the value encoded in an empty executable.
11385      cat >conftest.$ac_ext <<_ACEOF
11386/* confdefs.h.  */
11387_ACEOF
11388cat confdefs.h >>conftest.$ac_ext
11389cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h.  */
11391
11392int
11393main ()
11394{
11395
11396  ;
11397  return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext conftest$ac_exeext
11401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402  (eval $ac_link) 2>conftest.er1
11403  ac_status=$?
11404  grep -v '^ *+' conftest.er1 >conftest.err
11405  rm -f conftest.er1
11406  cat conftest.err >&5
11407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408  (exit $ac_status); } &&
11409	 { ac_try='test -z "$ac_cxx_werror_flag"
11410			 || test ! -s conftest.err'
11411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412  (eval $ac_try) 2>&5
11413  ac_status=$?
11414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); }; } &&
11416	 { ac_try='test -s conftest$ac_exeext'
11417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418  (eval $ac_try) 2>&5
11419  ac_status=$?
11420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421  (exit $ac_status); }; }; then
11422
11423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11424}'`
11425# Check for a 64-bit object if we didn't find anything.
11426if 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; }
11427}'`; fi
11428else
11429  echo "$as_me: failed program was:" >&5
11430sed 's/^/| /' conftest.$ac_ext >&5
11431
11432fi
11433rm -f conftest.err conftest.$ac_objext \
11434      conftest$ac_exeext conftest.$ac_ext
11435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11436
11437      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11438
11439      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11440     else
11441      if test "$host_cpu" = ia64; then
11442	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11443	allow_undefined_flag_CXX="-z nodefs"
11444	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11445      else
11446	# Determine the default libpath from the value encoded in an empty executable.
11447	cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h.  */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h.  */
11453
11454int
11455main ()
11456{
11457
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462rm -f conftest.$ac_objext conftest$ac_exeext
11463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464  (eval $ac_link) 2>conftest.er1
11465  ac_status=$?
11466  grep -v '^ *+' conftest.er1 >conftest.err
11467  rm -f conftest.er1
11468  cat conftest.err >&5
11469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470  (exit $ac_status); } &&
11471	 { ac_try='test -z "$ac_cxx_werror_flag"
11472			 || test ! -s conftest.err'
11473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474  (eval $ac_try) 2>&5
11475  ac_status=$?
11476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477  (exit $ac_status); }; } &&
11478	 { ac_try='test -s conftest$ac_exeext'
11479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480  (eval $ac_try) 2>&5
11481  ac_status=$?
11482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483  (exit $ac_status); }; }; then
11484
11485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11486}'`
11487# Check for a 64-bit object if we didn't find anything.
11488if 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; }
11489}'`; fi
11490else
11491  echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494fi
11495rm -f conftest.err conftest.$ac_objext \
11496      conftest$ac_exeext conftest.$ac_ext
11497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11498
11499	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11500	# Warning - without using the other run time loading flags,
11501	# -berok will link without error, but may produce a broken library.
11502	no_undefined_flag_CXX=' ${wl}-bernotok'
11503	allow_undefined_flag_CXX=' ${wl}-berok'
11504	# Exported symbols can be pulled into shared objects from archives
11505	whole_archive_flag_spec_CXX='$convenience'
11506	archive_cmds_need_lc_CXX=yes
11507	# This is similar to how AIX traditionally builds its shared libraries.
11508	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11509      fi
11510    fi
11511    ;;
11512
11513  beos*)
11514    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11515      allow_undefined_flag_CXX=unsupported
11516      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11517      # support --undefined.  This deserves some investigation.  FIXME
11518      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519    else
11520      ld_shlibs_CXX=no
11521    fi
11522    ;;
11523
11524  chorus*)
11525    case $cc_basename in
11526      *)
11527	# FIXME: insert proper C++ library support
11528	ld_shlibs_CXX=no
11529	;;
11530    esac
11531    ;;
11532
11533  cygwin* | mingw* | pw32*)
11534    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11535    # as there is no search path for DLLs.
11536    hardcode_libdir_flag_spec_CXX='-L$libdir'
11537    allow_undefined_flag_CXX=unsupported
11538    always_export_symbols_CXX=no
11539    enable_shared_with_static_runtimes_CXX=yes
11540
11541    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11542      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11543      # If the export-symbols file already is a .def file (1st line
11544      # is EXPORTS), use it as is; otherwise, prepend...
11545      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11546	cp $export_symbols $output_objdir/$soname.def;
11547      else
11548	echo EXPORTS > $output_objdir/$soname.def;
11549	cat $export_symbols >> $output_objdir/$soname.def;
11550      fi~
11551      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11552    else
11553      ld_shlibs_CXX=no
11554    fi
11555  ;;
11556      darwin* | rhapsody*)
11557        case $host_os in
11558        rhapsody* | darwin1.[012])
11559         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11560         ;;
11561       *) # Darwin 1.3 on
11562         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11563           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11564         else
11565           case ${MACOSX_DEPLOYMENT_TARGET} in
11566             10.[012])
11567               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11568               ;;
11569             10.*)
11570               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11571               ;;
11572           esac
11573         fi
11574         ;;
11575        esac
11576      archive_cmds_need_lc_CXX=no
11577      hardcode_direct_CXX=no
11578      hardcode_automatic_CXX=yes
11579      hardcode_shlibpath_var_CXX=unsupported
11580      whole_archive_flag_spec_CXX=''
11581      link_all_deplibs_CXX=yes
11582
11583    if test "$GXX" = yes ; then
11584      lt_int_apple_cc_single_mod=no
11585      output_verbose_link_cmd='echo'
11586      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11587       lt_int_apple_cc_single_mod=yes
11588      fi
11589      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11590       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11591      else
11592          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'
11593        fi
11594        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11595        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11596          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11597            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}'
11598          else
11599            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}'
11600          fi
11601            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}'
11602      else
11603      case $cc_basename in
11604        xlc*)
11605         output_verbose_link_cmd='echo'
11606          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'
11607          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11608          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11609          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}'
11610          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}'
11611          ;;
11612       *)
11613         ld_shlibs_CXX=no
11614          ;;
11615      esac
11616      fi
11617        ;;
11618
11619  dgux*)
11620    case $cc_basename in
11621      ec++*)
11622	# FIXME: insert proper C++ library support
11623	ld_shlibs_CXX=no
11624	;;
11625      ghcx*)
11626	# Green Hills C++ Compiler
11627	# FIXME: insert proper C++ library support
11628	ld_shlibs_CXX=no
11629	;;
11630      *)
11631	# FIXME: insert proper C++ library support
11632	ld_shlibs_CXX=no
11633	;;
11634    esac
11635    ;;
11636  freebsd[12]*)
11637    # C++ shared libraries reported to be fairly broken before switch to ELF
11638    ld_shlibs_CXX=no
11639    ;;
11640  freebsd-elf*)
11641    archive_cmds_need_lc_CXX=no
11642    ;;
11643  freebsd* | kfreebsd*-gnu | dragonfly*)
11644    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11645    # conventions
11646    ld_shlibs_CXX=yes
11647    ;;
11648  gnu*)
11649    ;;
11650  hpux9*)
11651    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11652    hardcode_libdir_separator_CXX=:
11653    export_dynamic_flag_spec_CXX='${wl}-E'
11654    hardcode_direct_CXX=yes
11655    hardcode_minus_L_CXX=yes # Not in the search PATH,
11656				# but as the default
11657				# location of the library.
11658
11659    case $cc_basename in
11660    CC*)
11661      # FIXME: insert proper C++ library support
11662      ld_shlibs_CXX=no
11663      ;;
11664    aCC*)
11665      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'
11666      # Commands to make compiler produce verbose output that lists
11667      # what "hidden" libraries, object files and flags are used when
11668      # linking a shared library.
11669      #
11670      # There doesn't appear to be a way to prevent this compiler from
11671      # explicitly linking system object files so we need to strip them
11672      # from the output so that they don't get included in the library
11673      # dependencies.
11674      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'
11675      ;;
11676    *)
11677      if test "$GXX" = yes; then
11678        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'
11679      else
11680        # FIXME: insert proper C++ library support
11681        ld_shlibs_CXX=no
11682      fi
11683      ;;
11684    esac
11685    ;;
11686  hpux10*|hpux11*)
11687    if test $with_gnu_ld = no; then
11688      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11689      hardcode_libdir_separator_CXX=:
11690
11691      case $host_cpu in
11692      hppa*64*|ia64*)
11693	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11694        ;;
11695      *)
11696	export_dynamic_flag_spec_CXX='${wl}-E'
11697        ;;
11698      esac
11699    fi
11700    case $host_cpu in
11701    hppa*64*|ia64*)
11702      hardcode_direct_CXX=no
11703      hardcode_shlibpath_var_CXX=no
11704      ;;
11705    *)
11706      hardcode_direct_CXX=yes
11707      hardcode_minus_L_CXX=yes # Not in the search PATH,
11708					      # but as the default
11709					      # location of the library.
11710      ;;
11711    esac
11712
11713    case $cc_basename in
11714      CC*)
11715	# FIXME: insert proper C++ library support
11716	ld_shlibs_CXX=no
11717	;;
11718      aCC*)
11719	case $host_cpu in
11720	hppa*64*)
11721	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722	  ;;
11723	ia64*)
11724	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725	  ;;
11726	*)
11727	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11728	  ;;
11729	esac
11730	# Commands to make compiler produce verbose output that lists
11731	# what "hidden" libraries, object files and flags are used when
11732	# linking a shared library.
11733	#
11734	# There doesn't appear to be a way to prevent this compiler from
11735	# explicitly linking system object files so we need to strip them
11736	# from the output so that they don't get included in the library
11737	# dependencies.
11738	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'
11739	;;
11740      *)
11741	if test "$GXX" = yes; then
11742	  if test $with_gnu_ld = no; then
11743	    case $host_cpu in
11744	    hppa*64*)
11745	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11746	      ;;
11747	    ia64*)
11748	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11749	      ;;
11750	    *)
11751	      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'
11752	      ;;
11753	    esac
11754	  fi
11755	else
11756	  # FIXME: insert proper C++ library support
11757	  ld_shlibs_CXX=no
11758	fi
11759	;;
11760    esac
11761    ;;
11762  interix3*)
11763    hardcode_direct_CXX=no
11764    hardcode_shlibpath_var_CXX=no
11765    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11766    export_dynamic_flag_spec_CXX='${wl}-E'
11767    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11768    # Instead, shared libraries are loaded at an image base (0x10000000 by
11769    # default) and relocated if they conflict, which is a slow very memory
11770    # consuming and fragmenting process.  To avoid this, we pick a random,
11771    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11772    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11773    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11774    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11775    ;;
11776  irix5* | irix6*)
11777    case $cc_basename in
11778      CC*)
11779	# SGI C++
11780	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'
11781
11782	# Archives containing C++ object files must be created using
11783	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11784	# necessary to make sure instantiated templates are included
11785	# in the archive.
11786	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11787	;;
11788      *)
11789	if test "$GXX" = yes; then
11790	  if test "$with_gnu_ld" = no; then
11791	    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'
11792	  else
11793	    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'
11794	  fi
11795	fi
11796	link_all_deplibs_CXX=yes
11797	;;
11798    esac
11799    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11800    hardcode_libdir_separator_CXX=:
11801    ;;
11802  linux*)
11803    case $cc_basename in
11804      KCC*)
11805	# Kuck and Associates, Inc. (KAI) C++ Compiler
11806
11807	# KCC will only create a shared library if the output file
11808	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11809	# to its proper name (with version) after linking.
11810	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'
11811	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'
11812	# Commands to make compiler produce verbose output that lists
11813	# what "hidden" libraries, object files and flags are used when
11814	# linking a shared library.
11815	#
11816	# There doesn't appear to be a way to prevent this compiler from
11817	# explicitly linking system object files so we need to strip them
11818	# from the output so that they don't get included in the library
11819	# dependencies.
11820	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'
11821
11822	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11823	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824
11825	# Archives containing C++ object files must be created using
11826	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11827	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11828	;;
11829      icpc*)
11830	# Intel C++
11831	with_gnu_ld=yes
11832	# version 8.0 and above of icpc choke on multiply defined symbols
11833	# if we add $predep_objects and $postdep_objects, however 7.1 and
11834	# earlier do not add the objects themselves.
11835	case `$CC -V 2>&1` in
11836	*"Version 7."*)
11837  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838  	  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'
11839	  ;;
11840	*)  # Version 8.0 or newer
11841	  tmp_idyn=
11842	  case $host_cpu in
11843	    ia64*) tmp_idyn=' -i_dynamic';;
11844	  esac
11845  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11846	  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'
11847	  ;;
11848	esac
11849	archive_cmds_need_lc_CXX=no
11850	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11851	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11852	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11853	;;
11854      pgCC*)
11855        # Portland Group C++ compiler
11856	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11857  	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'
11858
11859	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11860	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11861	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'
11862        ;;
11863      cxx*)
11864	# Compaq C++
11865	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11866	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'
11867
11868	runpath_var=LD_RUN_PATH
11869	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11870	hardcode_libdir_separator_CXX=:
11871
11872	# Commands to make compiler produce verbose output that lists
11873	# what "hidden" libraries, object files and flags are used when
11874	# linking a shared library.
11875	#
11876	# There doesn't appear to be a way to prevent this compiler from
11877	# explicitly linking system object files so we need to strip them
11878	# from the output so that they don't get included in the library
11879	# dependencies.
11880	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'
11881	;;
11882    esac
11883    ;;
11884  lynxos*)
11885    # FIXME: insert proper C++ library support
11886    ld_shlibs_CXX=no
11887    ;;
11888  m88k*)
11889    # FIXME: insert proper C++ library support
11890    ld_shlibs_CXX=no
11891    ;;
11892  mvs*)
11893    case $cc_basename in
11894      cxx*)
11895	# FIXME: insert proper C++ library support
11896	ld_shlibs_CXX=no
11897	;;
11898      *)
11899	# FIXME: insert proper C++ library support
11900	ld_shlibs_CXX=no
11901	;;
11902    esac
11903    ;;
11904  netbsd*)
11905    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11906      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11907      wlarc=
11908      hardcode_libdir_flag_spec_CXX='-R$libdir'
11909      hardcode_direct_CXX=yes
11910      hardcode_shlibpath_var_CXX=no
11911    fi
11912    # Workaround some broken pre-1.5 toolchains
11913    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11914    ;;
11915  openbsd2*)
11916    # C++ shared libraries are fairly broken
11917    ld_shlibs_CXX=no
11918    ;;
11919  openbsd*)
11920    hardcode_direct_CXX=yes
11921    hardcode_shlibpath_var_CXX=no
11922    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11923    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11924    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11925      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11926      export_dynamic_flag_spec_CXX='${wl}-E'
11927      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11928    fi
11929    output_verbose_link_cmd='echo'
11930    ;;
11931  osf3*)
11932    case $cc_basename in
11933      KCC*)
11934	# Kuck and Associates, Inc. (KAI) C++ Compiler
11935
11936	# KCC will only create a shared library if the output file
11937	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11938	# to its proper name (with version) after linking.
11939	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'
11940
11941	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11942	hardcode_libdir_separator_CXX=:
11943
11944	# Archives containing C++ object files must be created using
11945	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11946	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11947
11948	;;
11949      RCC*)
11950	# Rational C++ 2.4.1
11951	# FIXME: insert proper C++ library support
11952	ld_shlibs_CXX=no
11953	;;
11954      cxx*)
11955	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11956	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'
11957
11958	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11959	hardcode_libdir_separator_CXX=:
11960
11961	# Commands to make compiler produce verbose output that lists
11962	# what "hidden" libraries, object files and flags are used when
11963	# linking a shared library.
11964	#
11965	# There doesn't appear to be a way to prevent this compiler from
11966	# explicitly linking system object files so we need to strip them
11967	# from the output so that they don't get included in the library
11968	# dependencies.
11969	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'
11970	;;
11971      *)
11972	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11973	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11974	  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'
11975
11976	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11977	  hardcode_libdir_separator_CXX=:
11978
11979	  # Commands to make compiler produce verbose output that lists
11980	  # what "hidden" libraries, object files and flags are used when
11981	  # linking a shared library.
11982	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11983
11984	else
11985	  # FIXME: insert proper C++ library support
11986	  ld_shlibs_CXX=no
11987	fi
11988	;;
11989    esac
11990    ;;
11991  osf4* | osf5*)
11992    case $cc_basename in
11993      KCC*)
11994	# Kuck and Associates, Inc. (KAI) C++ Compiler
11995
11996	# KCC will only create a shared library if the output file
11997	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11998	# to its proper name (with version) after linking.
11999	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'
12000
12001	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002	hardcode_libdir_separator_CXX=:
12003
12004	# Archives containing C++ object files must be created using
12005	# the KAI C++ compiler.
12006	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12007	;;
12008      RCC*)
12009	# Rational C++ 2.4.1
12010	# FIXME: insert proper C++ library support
12011	ld_shlibs_CXX=no
12012	;;
12013      cxx*)
12014	allow_undefined_flag_CXX=' -expect_unresolved \*'
12015	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'
12016	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12017	  echo "-hidden">> $lib.exp~
12018	  $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~
12019	  $rm $lib.exp'
12020
12021	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12022	hardcode_libdir_separator_CXX=:
12023
12024	# Commands to make compiler produce verbose output that lists
12025	# what "hidden" libraries, object files and flags are used when
12026	# linking a shared library.
12027	#
12028	# There doesn't appear to be a way to prevent this compiler from
12029	# explicitly linking system object files so we need to strip them
12030	# from the output so that they don't get included in the library
12031	# dependencies.
12032	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'
12033	;;
12034      *)
12035	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12036	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12037	 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'
12038
12039	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12040	  hardcode_libdir_separator_CXX=:
12041
12042	  # Commands to make compiler produce verbose output that lists
12043	  # what "hidden" libraries, object files and flags are used when
12044	  # linking a shared library.
12045	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12046
12047	else
12048	  # FIXME: insert proper C++ library support
12049	  ld_shlibs_CXX=no
12050	fi
12051	;;
12052    esac
12053    ;;
12054  psos*)
12055    # FIXME: insert proper C++ library support
12056    ld_shlibs_CXX=no
12057    ;;
12058  sunos4*)
12059    case $cc_basename in
12060      CC*)
12061	# Sun C++ 4.x
12062	# FIXME: insert proper C++ library support
12063	ld_shlibs_CXX=no
12064	;;
12065      lcc*)
12066	# Lucid
12067	# FIXME: insert proper C++ library support
12068	ld_shlibs_CXX=no
12069	;;
12070      *)
12071	# FIXME: insert proper C++ library support
12072	ld_shlibs_CXX=no
12073	;;
12074    esac
12075    ;;
12076  solaris*)
12077    case $cc_basename in
12078      CC*)
12079	# Sun C++ 4.2, 5.x and Centerline C++
12080        archive_cmds_need_lc_CXX=yes
12081	no_undefined_flag_CXX=' -zdefs'
12082	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12083	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12084	$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'
12085
12086	hardcode_libdir_flag_spec_CXX='-R$libdir'
12087	hardcode_shlibpath_var_CXX=no
12088	case $host_os in
12089	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12090	  *)
12091	    # The C++ compiler is used as linker so we must use $wl
12092	    # flag to pass the commands to the underlying system
12093	    # linker. We must also pass each convience library through
12094	    # to the system linker between allextract/defaultextract.
12095	    # The C++ compiler will combine linker options so we
12096	    # cannot just pass the convience library names through
12097	    # without $wl.
12098	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12099	    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'
12100	    ;;
12101	esac
12102	link_all_deplibs_CXX=yes
12103
12104	output_verbose_link_cmd='echo'
12105
12106	# Archives containing C++ object files must be created using
12107	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12108	# necessary to make sure instantiated templates are included
12109	# in the archive.
12110	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12111	;;
12112      gcx*)
12113	# Green Hills C++ Compiler
12114	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12115
12116	# The C++ compiler must be used to create the archive.
12117	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12118	;;
12119      *)
12120	# GNU C++ compiler with Solaris linker
12121	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12122	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12123	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12124	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12125	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12126		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12127
12128	    # Commands to make compiler produce verbose output that lists
12129	    # what "hidden" libraries, object files and flags are used when
12130	    # linking a shared library.
12131	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12132	  else
12133	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12134	    # platform.
12135	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12136	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12137		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12138
12139	    # Commands to make compiler produce verbose output that lists
12140	    # what "hidden" libraries, object files and flags are used when
12141	    # linking a shared library.
12142	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12143	  fi
12144
12145	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12146	fi
12147	;;
12148    esac
12149    ;;
12150  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12151    no_undefined_flag_CXX='${wl}-z,text'
12152    archive_cmds_need_lc_CXX=no
12153    hardcode_shlibpath_var_CXX=no
12154    runpath_var='LD_RUN_PATH'
12155
12156    case $cc_basename in
12157      CC*)
12158	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12160	;;
12161      *)
12162	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164	;;
12165    esac
12166    ;;
12167  sysv5* | sco3.2v5* | sco5v6*)
12168    # Note: We can NOT use -z defs as we might desire, because we do not
12169    # link with -lc, and that would cause any symbols used from libc to
12170    # always be unresolved, which means just about no library would
12171    # ever link correctly.  If we're not using GNU ld we use -z text
12172    # though, which does catch some bad symbols but isn't as heavy-handed
12173    # as -z defs.
12174    # For security reasons, it is highly recommended that you always
12175    # use absolute paths for naming shared libraries, and exclude the
12176    # DT_RUNPATH tag from executables and libraries.  But doing so
12177    # requires that you compile everything twice, which is a pain.
12178    # So that behaviour is only enabled if SCOABSPATH is set to a
12179    # non-empty value in the environment.  Most likely only useful for
12180    # creating official distributions of packages.
12181    # This is a hack until libtool officially supports absolute path
12182    # names for shared libraries.
12183    no_undefined_flag_CXX='${wl}-z,text'
12184    allow_undefined_flag_CXX='${wl}-z,nodefs'
12185    archive_cmds_need_lc_CXX=no
12186    hardcode_shlibpath_var_CXX=no
12187    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12188    hardcode_libdir_separator_CXX=':'
12189    link_all_deplibs_CXX=yes
12190    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12191    runpath_var='LD_RUN_PATH'
12192
12193    case $cc_basename in
12194      CC*)
12195	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197	;;
12198      *)
12199	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12201	;;
12202    esac
12203    ;;
12204  tandem*)
12205    case $cc_basename in
12206      NCC*)
12207	# NonStop-UX NCC 3.20
12208	# FIXME: insert proper C++ library support
12209	ld_shlibs_CXX=no
12210	;;
12211      *)
12212	# FIXME: insert proper C++ library support
12213	ld_shlibs_CXX=no
12214	;;
12215    esac
12216    ;;
12217  vxworks*)
12218    # FIXME: insert proper C++ library support
12219    ld_shlibs_CXX=no
12220    ;;
12221  *)
12222    # FIXME: insert proper C++ library support
12223    ld_shlibs_CXX=no
12224    ;;
12225esac
12226echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12227echo "${ECHO_T}$ld_shlibs_CXX" >&6
12228test "$ld_shlibs_CXX" = no && can_build_shared=no
12229
12230GCC_CXX="$GXX"
12231LD_CXX="$LD"
12232
12233## CAVEAT EMPTOR:
12234## There is no encapsulation within the following macros, do not change
12235## the running order or otherwise move them around unless you know exactly
12236## what you are doing...
12237
12238cat > conftest.$ac_ext <<EOF
12239class Foo
12240{
12241public:
12242  Foo (void) { a = 0; }
12243private:
12244  int a;
12245};
12246EOF
12247
12248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249  (eval $ac_compile) 2>&5
12250  ac_status=$?
12251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252  (exit $ac_status); }; then
12253  # Parse the compiler output and extract the necessary
12254  # objects, libraries and library flags.
12255
12256  # Sentinel used to keep track of whether or not we are before
12257  # the conftest object file.
12258  pre_test_object_deps_done=no
12259
12260  # The `*' in the case matches for architectures that use `case' in
12261  # $output_verbose_cmd can trigger glob expansion during the loop
12262  # eval without this substitution.
12263  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12264
12265  for p in `eval $output_verbose_link_cmd`; do
12266    case $p in
12267
12268    -L* | -R* | -l*)
12269       # Some compilers place space between "-{L,R}" and the path.
12270       # Remove the space.
12271       if test $p = "-L" \
12272	  || test $p = "-R"; then
12273	 prev=$p
12274	 continue
12275       else
12276	 prev=
12277       fi
12278
12279       if test "$pre_test_object_deps_done" = no; then
12280	 case $p in
12281	 -L* | -R*)
12282	   # Internal compiler library paths should come after those
12283	   # provided the user.  The postdeps already come after the
12284	   # user supplied libs so there is no need to process them.
12285	   if test -z "$compiler_lib_search_path_CXX"; then
12286	     compiler_lib_search_path_CXX="${prev}${p}"
12287	   else
12288	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12289	   fi
12290	   ;;
12291	 # The "-l" case would never come before the object being
12292	 # linked, so don't bother handling this case.
12293	 esac
12294       else
12295	 if test -z "$postdeps_CXX"; then
12296	   postdeps_CXX="${prev}${p}"
12297	 else
12298	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12299	 fi
12300       fi
12301       ;;
12302
12303    *.$objext)
12304       # This assumes that the test object file only shows up
12305       # once in the compiler output.
12306       if test "$p" = "conftest.$objext"; then
12307	 pre_test_object_deps_done=yes
12308	 continue
12309       fi
12310
12311       if test "$pre_test_object_deps_done" = no; then
12312	 if test -z "$predep_objects_CXX"; then
12313	   predep_objects_CXX="$p"
12314	 else
12315	   predep_objects_CXX="$predep_objects_CXX $p"
12316	 fi
12317       else
12318	 if test -z "$postdep_objects_CXX"; then
12319	   postdep_objects_CXX="$p"
12320	 else
12321	   postdep_objects_CXX="$postdep_objects_CXX $p"
12322	 fi
12323       fi
12324       ;;
12325
12326    *) ;; # Ignore the rest.
12327
12328    esac
12329  done
12330
12331  # Clean up.
12332  rm -f a.out a.exe
12333else
12334  echo "libtool.m4: error: problem compiling CXX test program"
12335fi
12336
12337$rm -f confest.$objext
12338
12339# PORTME: override above test on systems where it is broken
12340case $host_os in
12341interix3*)
12342  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12343  # hack all around it, let's just trust "g++" to DTRT.
12344  predep_objects_CXX=
12345  postdep_objects_CXX=
12346  postdeps_CXX=
12347  ;;
12348
12349solaris*)
12350  case $cc_basename in
12351  CC*)
12352    # Adding this requires a known-good setup of shared libraries for
12353    # Sun compiler versions before 5.6, else PIC objects from an old
12354    # archive will be linked into the output, leading to subtle bugs.
12355    postdeps_CXX='-lCstd -lCrun'
12356    ;;
12357  esac
12358  ;;
12359esac
12360
12361
12362case " $postdeps_CXX " in
12363*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12364esac
12365
12366lt_prog_compiler_wl_CXX=
12367lt_prog_compiler_pic_CXX=
12368lt_prog_compiler_static_CXX=
12369
12370echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12371echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12372
12373  # C++ specific cases for pic, static, wl, etc.
12374  if test "$GXX" = yes; then
12375    lt_prog_compiler_wl_CXX='-Wl,'
12376    lt_prog_compiler_static_CXX='-static'
12377
12378    case $host_os in
12379    aix*)
12380      # All AIX code is PIC.
12381      if test "$host_cpu" = ia64; then
12382	# AIX 5 now supports IA64 processor
12383	lt_prog_compiler_static_CXX='-Bstatic'
12384      fi
12385      ;;
12386    amigaos*)
12387      # FIXME: we need at least 68020 code to build shared libraries, but
12388      # adding the `-m68020' flag to GCC prevents building anything better,
12389      # like `-m68040'.
12390      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12391      ;;
12392    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12393      # PIC is the default for these OSes.
12394      ;;
12395    mingw* | os2* | pw32*)
12396      # This hack is so that the source file can tell whether it is being
12397      # built for inclusion in a dll (and should export symbols for example).
12398      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12399      ;;
12400    darwin* | rhapsody*)
12401      # PIC is the default on this platform
12402      # Common symbols not allowed in MH_DYLIB files
12403      lt_prog_compiler_pic_CXX='-fno-common'
12404      ;;
12405    *djgpp*)
12406      # DJGPP does not support shared libraries at all
12407      lt_prog_compiler_pic_CXX=
12408      ;;
12409    interix3*)
12410      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12411      # Instead, we relocate shared libraries at runtime.
12412      ;;
12413    sysv4*MP*)
12414      if test -d /usr/nec; then
12415	lt_prog_compiler_pic_CXX=-Kconform_pic
12416      fi
12417      ;;
12418    hpux*)
12419      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12420      # not for PA HP-UX.
12421      case $host_cpu in
12422      hppa*64*|ia64*)
12423	;;
12424      *)
12425	lt_prog_compiler_pic_CXX='-fPIC'
12426	;;
12427      esac
12428      ;;
12429    *)
12430      lt_prog_compiler_pic_CXX='-fPIC'
12431      ;;
12432    esac
12433  else
12434    case $host_os in
12435      aix4* | aix5*)
12436	# All AIX code is PIC.
12437	if test "$host_cpu" = ia64; then
12438	  # AIX 5 now supports IA64 processor
12439	  lt_prog_compiler_static_CXX='-Bstatic'
12440	else
12441	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12442	fi
12443	;;
12444      chorus*)
12445	case $cc_basename in
12446	cxch68*)
12447	  # Green Hills C++ Compiler
12448	  # _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"
12449	  ;;
12450	esac
12451	;;
12452       darwin*)
12453         # PIC is the default on this platform
12454         # Common symbols not allowed in MH_DYLIB files
12455         case $cc_basename in
12456           xlc*)
12457           lt_prog_compiler_pic_CXX='-qnocommon'
12458           lt_prog_compiler_wl_CXX='-Wl,'
12459           ;;
12460         esac
12461       ;;
12462      dgux*)
12463	case $cc_basename in
12464	  ec++*)
12465	    lt_prog_compiler_pic_CXX='-KPIC'
12466	    ;;
12467	  ghcx*)
12468	    # Green Hills C++ Compiler
12469	    lt_prog_compiler_pic_CXX='-pic'
12470	    ;;
12471	  *)
12472	    ;;
12473	esac
12474	;;
12475      freebsd* | kfreebsd*-gnu | dragonfly*)
12476	# FreeBSD uses GNU C++
12477	;;
12478      hpux9* | hpux10* | hpux11*)
12479	case $cc_basename in
12480	  CC*)
12481	    lt_prog_compiler_wl_CXX='-Wl,'
12482	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12483	    if test "$host_cpu" != ia64; then
12484	      lt_prog_compiler_pic_CXX='+Z'
12485	    fi
12486	    ;;
12487	  aCC*)
12488	    lt_prog_compiler_wl_CXX='-Wl,'
12489	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12490	    case $host_cpu in
12491	    hppa*64*|ia64*)
12492	      # +Z the default
12493	      ;;
12494	    *)
12495	      lt_prog_compiler_pic_CXX='+Z'
12496	      ;;
12497	    esac
12498	    ;;
12499	  *)
12500	    ;;
12501	esac
12502	;;
12503      interix*)
12504	# This is c89, which is MS Visual C++ (no shared libs)
12505	# Anyone wants to do a port?
12506	;;
12507      irix5* | irix6* | nonstopux*)
12508	case $cc_basename in
12509	  CC*)
12510	    lt_prog_compiler_wl_CXX='-Wl,'
12511	    lt_prog_compiler_static_CXX='-non_shared'
12512	    # CC pic flag -KPIC is the default.
12513	    ;;
12514	  *)
12515	    ;;
12516	esac
12517	;;
12518      linux*)
12519	case $cc_basename in
12520	  KCC*)
12521	    # KAI C++ Compiler
12522	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12523	    lt_prog_compiler_pic_CXX='-fPIC'
12524	    ;;
12525	  icpc* | ecpc*)
12526	    # Intel C++
12527	    lt_prog_compiler_wl_CXX='-Wl,'
12528	    lt_prog_compiler_pic_CXX='-KPIC'
12529	    lt_prog_compiler_static_CXX='-static'
12530	    ;;
12531	  pgCC*)
12532	    # Portland Group C++ compiler.
12533	    lt_prog_compiler_wl_CXX='-Wl,'
12534	    lt_prog_compiler_pic_CXX='-fpic'
12535	    lt_prog_compiler_static_CXX='-Bstatic'
12536	    ;;
12537	  cxx*)
12538	    # Compaq C++
12539	    # Make sure the PIC flag is empty.  It appears that all Alpha
12540	    # Linux and Compaq Tru64 Unix objects are PIC.
12541	    lt_prog_compiler_pic_CXX=
12542	    lt_prog_compiler_static_CXX='-non_shared'
12543	    ;;
12544	  *)
12545	    ;;
12546	esac
12547	;;
12548      lynxos*)
12549	;;
12550      m88k*)
12551	;;
12552      mvs*)
12553	case $cc_basename in
12554	  cxx*)
12555	    lt_prog_compiler_pic_CXX='-W c,exportall'
12556	    ;;
12557	  *)
12558	    ;;
12559	esac
12560	;;
12561      netbsd*)
12562	;;
12563      osf3* | osf4* | osf5*)
12564	case $cc_basename in
12565	  KCC*)
12566	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12567	    ;;
12568	  RCC*)
12569	    # Rational C++ 2.4.1
12570	    lt_prog_compiler_pic_CXX='-pic'
12571	    ;;
12572	  cxx*)
12573	    # Digital/Compaq C++
12574	    lt_prog_compiler_wl_CXX='-Wl,'
12575	    # Make sure the PIC flag is empty.  It appears that all Alpha
12576	    # Linux and Compaq Tru64 Unix objects are PIC.
12577	    lt_prog_compiler_pic_CXX=
12578	    lt_prog_compiler_static_CXX='-non_shared'
12579	    ;;
12580	  *)
12581	    ;;
12582	esac
12583	;;
12584      psos*)
12585	;;
12586      solaris*)
12587	case $cc_basename in
12588	  CC*)
12589	    # Sun C++ 4.2, 5.x and Centerline C++
12590	    lt_prog_compiler_pic_CXX='-KPIC'
12591	    lt_prog_compiler_static_CXX='-Bstatic'
12592	    lt_prog_compiler_wl_CXX='-Qoption ld '
12593	    ;;
12594	  gcx*)
12595	    # Green Hills C++ Compiler
12596	    lt_prog_compiler_pic_CXX='-PIC'
12597	    ;;
12598	  *)
12599	    ;;
12600	esac
12601	;;
12602      sunos4*)
12603	case $cc_basename in
12604	  CC*)
12605	    # Sun C++ 4.x
12606	    lt_prog_compiler_pic_CXX='-pic'
12607	    lt_prog_compiler_static_CXX='-Bstatic'
12608	    ;;
12609	  lcc*)
12610	    # Lucid
12611	    lt_prog_compiler_pic_CXX='-pic'
12612	    ;;
12613	  *)
12614	    ;;
12615	esac
12616	;;
12617      tandem*)
12618	case $cc_basename in
12619	  NCC*)
12620	    # NonStop-UX NCC 3.20
12621	    lt_prog_compiler_pic_CXX='-KPIC'
12622	    ;;
12623	  *)
12624	    ;;
12625	esac
12626	;;
12627      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12628	case $cc_basename in
12629	  CC*)
12630	    lt_prog_compiler_wl_CXX='-Wl,'
12631	    lt_prog_compiler_pic_CXX='-KPIC'
12632	    lt_prog_compiler_static_CXX='-Bstatic'
12633	    ;;
12634	esac
12635	;;
12636      vxworks*)
12637	;;
12638      *)
12639	lt_prog_compiler_can_build_shared_CXX=no
12640	;;
12641    esac
12642  fi
12643
12644echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12645echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12646
12647#
12648# Check to make sure the PIC flag actually works.
12649#
12650if test -n "$lt_prog_compiler_pic_CXX"; then
12651
12652echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12653echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12654if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12655  echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
12657  lt_prog_compiler_pic_works_CXX=no
12658  ac_outfile=conftest.$ac_objext
12659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12660   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12661   # Insert the option either (1) after the last *FLAGS variable, or
12662   # (2) before a word containing "conftest.", or (3) at the end.
12663   # Note that $ac_compile itself does not contain backslashes and begins
12664   # with a dollar sign (not a hyphen), so the echo should work correctly.
12665   # The option is referenced via a variable to avoid confusing sed.
12666   lt_compile=`echo "$ac_compile" | $SED \
12667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12669   -e 's:$: $lt_compiler_flag:'`
12670   (eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
12671   (eval "$lt_compile" 2>conftest.err)
12672   ac_status=$?
12673   cat conftest.err >&5
12674   echo "$as_me:12674: \$? = $ac_status" >&5
12675   if (exit $ac_status) && test -s "$ac_outfile"; then
12676     # The compiler can only warn and ignore the option if not recognized
12677     # So say no if there are warnings other than the usual output.
12678     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12679     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12680     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12681       lt_prog_compiler_pic_works_CXX=yes
12682     fi
12683   fi
12684   $rm conftest*
12685
12686fi
12687echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12688echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12689
12690if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12691    case $lt_prog_compiler_pic_CXX in
12692     "" | " "*) ;;
12693     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12694     esac
12695else
12696    lt_prog_compiler_pic_CXX=
12697     lt_prog_compiler_can_build_shared_CXX=no
12698fi
12699
12700fi
12701case $host_os in
12702  # For platforms which do not support PIC, -DPIC is meaningless:
12703  *djgpp*)
12704    lt_prog_compiler_pic_CXX=
12705    ;;
12706  *)
12707    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12708    ;;
12709esac
12710
12711#
12712# Check to make sure the static flag actually works.
12713#
12714wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12715echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12716echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12717if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12718  echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720  lt_prog_compiler_static_works_CXX=no
12721   save_LDFLAGS="$LDFLAGS"
12722   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12723   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12724   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12725     # The linker can only warn and ignore the option if not recognized
12726     # So say no if there are warnings
12727     if test -s conftest.err; then
12728       # Append any errors to the config.log.
12729       cat conftest.err 1>&5
12730       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12731       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12732       if diff conftest.exp conftest.er2 >/dev/null; then
12733         lt_prog_compiler_static_works_CXX=yes
12734       fi
12735     else
12736       lt_prog_compiler_static_works_CXX=yes
12737     fi
12738   fi
12739   $rm conftest*
12740   LDFLAGS="$save_LDFLAGS"
12741
12742fi
12743echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12744echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12745
12746if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12747    :
12748else
12749    lt_prog_compiler_static_CXX=
12750fi
12751
12752
12753echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12754echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12755if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12756  echo $ECHO_N "(cached) $ECHO_C" >&6
12757else
12758  lt_cv_prog_compiler_c_o_CXX=no
12759   $rm -r conftest 2>/dev/null
12760   mkdir conftest
12761   cd conftest
12762   mkdir out
12763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12764
12765   lt_compiler_flag="-o out/conftest2.$ac_objext"
12766   # Insert the option either (1) after the last *FLAGS variable, or
12767   # (2) before a word containing "conftest.", or (3) at the end.
12768   # Note that $ac_compile itself does not contain backslashes and begins
12769   # with a dollar sign (not a hyphen), so the echo should work correctly.
12770   lt_compile=`echo "$ac_compile" | $SED \
12771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12773   -e 's:$: $lt_compiler_flag:'`
12774   (eval echo "\"\$as_me:12774: $lt_compile\"" >&5)
12775   (eval "$lt_compile" 2>out/conftest.err)
12776   ac_status=$?
12777   cat out/conftest.err >&5
12778   echo "$as_me:12778: \$? = $ac_status" >&5
12779   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12780   then
12781     # The compiler can only warn and ignore the option if not recognized
12782     # So say no if there are warnings
12783     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12784     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12785     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12786       lt_cv_prog_compiler_c_o_CXX=yes
12787     fi
12788   fi
12789   chmod u+w . 2>&5
12790   $rm conftest*
12791   # SGI C++ compiler will create directory out/ii_files/ for
12792   # template instantiation
12793   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12794   $rm out/* && rmdir out
12795   cd ..
12796   rmdir conftest
12797   $rm conftest*
12798
12799fi
12800echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12801echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12802
12803
12804hard_links="nottested"
12805if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12806  # do not overwrite the value of need_locks provided by the user
12807  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12808echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12809  hard_links=yes
12810  $rm conftest*
12811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12812  touch conftest.a
12813  ln conftest.a conftest.b 2>&5 || hard_links=no
12814  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12815  echo "$as_me:$LINENO: result: $hard_links" >&5
12816echo "${ECHO_T}$hard_links" >&6
12817  if test "$hard_links" = no; then
12818    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12819echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12820    need_locks=warn
12821  fi
12822else
12823  need_locks=no
12824fi
12825
12826echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12827echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12828
12829  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12830  case $host_os in
12831  aix4* | aix5*)
12832    # If we're using GNU nm, then we don't want the "-C" option.
12833    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12834    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12835      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'
12836    else
12837      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'
12838    fi
12839    ;;
12840  pw32*)
12841    export_symbols_cmds_CXX="$ltdll_cmds"
12842  ;;
12843  cygwin* | mingw*)
12844    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'
12845  ;;
12846  *)
12847    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12848  ;;
12849  esac
12850
12851echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12852echo "${ECHO_T}$ld_shlibs_CXX" >&6
12853test "$ld_shlibs_CXX" = no && can_build_shared=no
12854
12855#
12856# Do we need to explicitly link libc?
12857#
12858case "x$archive_cmds_need_lc_CXX" in
12859x|xyes)
12860  # Assume -lc should be added
12861  archive_cmds_need_lc_CXX=yes
12862
12863  if test "$enable_shared" = yes && test "$GCC" = yes; then
12864    case $archive_cmds_CXX in
12865    *'~'*)
12866      # FIXME: we may have to deal with multi-command sequences.
12867      ;;
12868    '$CC '*)
12869      # Test whether the compiler implicitly links with -lc since on some
12870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12871      # to ld, don't add -lc before -lgcc.
12872      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12873echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12874      $rm conftest*
12875      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12876
12877      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878  (eval $ac_compile) 2>&5
12879  ac_status=$?
12880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881  (exit $ac_status); } 2>conftest.err; then
12882        soname=conftest
12883        lib=conftest
12884        libobjs=conftest.$ac_objext
12885        deplibs=
12886        wl=$lt_prog_compiler_wl_CXX
12887	pic_flag=$lt_prog_compiler_pic_CXX
12888        compiler_flags=-v
12889        linker_flags=-v
12890        verstring=
12891        output_objdir=.
12892        libname=conftest
12893        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12894        allow_undefined_flag_CXX=
12895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12896  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12897  ac_status=$?
12898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899  (exit $ac_status); }
12900        then
12901	  archive_cmds_need_lc_CXX=no
12902        else
12903	  archive_cmds_need_lc_CXX=yes
12904        fi
12905        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12906      else
12907        cat conftest.err 1>&5
12908      fi
12909      $rm conftest*
12910      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12911echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12912      ;;
12913    esac
12914  fi
12915  ;;
12916esac
12917
12918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12920library_names_spec=
12921libname_spec='lib$name'
12922soname_spec=
12923shrext_cmds=".so"
12924postinstall_cmds=
12925postuninstall_cmds=
12926finish_cmds=
12927finish_eval=
12928shlibpath_var=
12929shlibpath_overrides_runpath=unknown
12930version_type=none
12931dynamic_linker="$host_os ld.so"
12932sys_lib_dlsearch_path_spec="/lib /usr/lib"
12933if test "$GCC" = yes; then
12934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12936    # if the path contains ";" then we assume it to be the separator
12937    # otherwise default to the standard path separator (i.e. ":") - it is
12938    # assumed that no part of a normal pathname contains ";" but that should
12939    # okay in the real world where ";" in dirpaths is itself problematic.
12940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12941  else
12942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12943  fi
12944else
12945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12946fi
12947need_lib_prefix=unknown
12948hardcode_into_libs=no
12949
12950# when you set need_version to no, make sure it does not cause -set_version
12951# flags to be left without arguments
12952need_version=unknown
12953
12954case $host_os in
12955aix3*)
12956  version_type=linux
12957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12958  shlibpath_var=LIBPATH
12959
12960  # AIX 3 has no versioning support, so we append a major version to the name.
12961  soname_spec='${libname}${release}${shared_ext}$major'
12962  ;;
12963
12964aix4* | aix5*)
12965  version_type=linux
12966  need_lib_prefix=no
12967  need_version=no
12968  hardcode_into_libs=yes
12969  if test "$host_cpu" = ia64; then
12970    # AIX 5 supports IA64
12971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12972    shlibpath_var=LD_LIBRARY_PATH
12973  else
12974    # With GCC up to 2.95.x, collect2 would create an import file
12975    # for dependence libraries.  The import file would start with
12976    # the line `#! .'.  This would cause the generated library to
12977    # depend on `.', always an invalid library.  This was fixed in
12978    # development snapshots of GCC prior to 3.0.
12979    case $host_os in
12980      aix4 | aix4.[01] | aix4.[01].*)
12981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12982	   echo ' yes '
12983	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12984	:
12985      else
12986	can_build_shared=no
12987      fi
12988      ;;
12989    esac
12990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12991    # soname into executable. Probably we can add versioning support to
12992    # collect2, so additional links can be useful in future.
12993    if test "$aix_use_runtimelinking" = yes; then
12994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12995      # instead of lib<name>.a to let people know that these are not
12996      # typical AIX shared libraries.
12997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998    else
12999      # We preserve .a as extension for shared libraries through AIX4.2
13000      # and later when we are not doing run time linking.
13001      library_names_spec='${libname}${release}.a $libname.a'
13002      soname_spec='${libname}${release}${shared_ext}$major'
13003    fi
13004    shlibpath_var=LIBPATH
13005  fi
13006  ;;
13007
13008amigaos*)
13009  library_names_spec='$libname.ixlibrary $libname.a'
13010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13011  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'
13012  ;;
13013
13014beos*)
13015  library_names_spec='${libname}${shared_ext}'
13016  dynamic_linker="$host_os ld.so"
13017  shlibpath_var=LIBRARY_PATH
13018  ;;
13019
13020bsdi[45]*)
13021  version_type=linux
13022  need_version=no
13023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024  soname_spec='${libname}${release}${shared_ext}$major'
13025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13026  shlibpath_var=LD_LIBRARY_PATH
13027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13029  # the default ld.so.conf also contains /usr/contrib/lib and
13030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13031  # libtool to hard-code these into programs
13032  ;;
13033
13034cygwin* | mingw* | pw32*)
13035  version_type=windows
13036  shrext_cmds=".dll"
13037  need_version=no
13038  need_lib_prefix=no
13039
13040  case $GCC,$host_os in
13041  yes,cygwin* | yes,mingw* | yes,pw32*)
13042    library_names_spec='$libname.dll.a'
13043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13044    postinstall_cmds='base_file=`basename \${file}`~
13045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13046      dldir=$destdir/`dirname \$dlpath`~
13047      test -d \$dldir || mkdir -p \$dldir~
13048      $install_prog $dir/$dlname \$dldir/$dlname~
13049      chmod a+x \$dldir/$dlname'
13050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13051      dlpath=$dir/\$dldll~
13052       $rm \$dlpath'
13053    shlibpath_overrides_runpath=yes
13054
13055    case $host_os in
13056    cygwin*)
13057      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13058      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13059      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13060      ;;
13061    mingw*)
13062      # MinGW DLLs use traditional 'lib' prefix
13063      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13064      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13065      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13066        # It is most probably a Windows format PATH printed by
13067        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13068        # path with ; separators, and with drive letters. We can handle the
13069        # drive letters (cygwin fileutils understands them), so leave them,
13070        # especially as we might pass files found there to a mingw objdump,
13071        # which wouldn't understand a cygwinified path. Ahh.
13072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13073      else
13074        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13075      fi
13076      ;;
13077    pw32*)
13078      # pw32 DLLs use 'pw' prefix rather than 'lib'
13079      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13080      ;;
13081    esac
13082    ;;
13083
13084  *)
13085    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13086    ;;
13087  esac
13088  dynamic_linker='Win32 ld.exe'
13089  # FIXME: first we should search . and the directory the executable is in
13090  shlibpath_var=PATH
13091  ;;
13092
13093darwin* | rhapsody*)
13094  dynamic_linker="$host_os dyld"
13095  version_type=darwin
13096  need_lib_prefix=no
13097  need_version=no
13098  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13099  soname_spec='${libname}${release}${major}$shared_ext'
13100  shlibpath_overrides_runpath=yes
13101  shlibpath_var=DYLD_LIBRARY_PATH
13102  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13103  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13104  if test "$GCC" = yes; then
13105    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"`
13106  else
13107    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13108  fi
13109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13110  ;;
13111
13112dgux*)
13113  version_type=linux
13114  need_lib_prefix=no
13115  need_version=no
13116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13117  soname_spec='${libname}${release}${shared_ext}$major'
13118  shlibpath_var=LD_LIBRARY_PATH
13119  ;;
13120
13121freebsd1*)
13122  dynamic_linker=no
13123  ;;
13124
13125kfreebsd*-gnu)
13126  version_type=linux
13127  need_lib_prefix=no
13128  need_version=no
13129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130  soname_spec='${libname}${release}${shared_ext}$major'
13131  shlibpath_var=LD_LIBRARY_PATH
13132  shlibpath_overrides_runpath=no
13133  hardcode_into_libs=yes
13134  dynamic_linker='GNU ld.so'
13135  ;;
13136
13137freebsd* | dragonfly*)
13138  # DragonFly does not have aout.  When/if they implement a new
13139  # versioning mechanism, adjust this.
13140  if test -x /usr/bin/objformat; then
13141    objformat=`/usr/bin/objformat`
13142  else
13143    case $host_os in
13144    freebsd[123]*) objformat=aout ;;
13145    *) objformat=elf ;;
13146    esac
13147  fi
13148  version_type=freebsd-$objformat
13149  case $version_type in
13150    freebsd-elf*)
13151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13152      need_version=no
13153      need_lib_prefix=no
13154      ;;
13155    freebsd-*)
13156      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13157      need_version=yes
13158      ;;
13159  esac
13160  shlibpath_var=LD_LIBRARY_PATH
13161  case $host_os in
13162  freebsd2*)
13163    shlibpath_overrides_runpath=yes
13164    ;;
13165  freebsd3.[01]* | freebsdelf3.[01]*)
13166    shlibpath_overrides_runpath=yes
13167    hardcode_into_libs=yes
13168    ;;
13169  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13170  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13171    shlibpath_overrides_runpath=no
13172    hardcode_into_libs=yes
13173    ;;
13174  freebsd*) # from 4.6 on
13175    shlibpath_overrides_runpath=yes
13176    hardcode_into_libs=yes
13177    ;;
13178  esac
13179  ;;
13180
13181gnu*)
13182  version_type=linux
13183  need_lib_prefix=no
13184  need_version=no
13185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13186  soname_spec='${libname}${release}${shared_ext}$major'
13187  shlibpath_var=LD_LIBRARY_PATH
13188  hardcode_into_libs=yes
13189  ;;
13190
13191hpux9* | hpux10* | hpux11*)
13192  # Give a soname corresponding to the major version so that dld.sl refuses to
13193  # link against other versions.
13194  version_type=sunos
13195  need_lib_prefix=no
13196  need_version=no
13197  case $host_cpu in
13198  ia64*)
13199    shrext_cmds='.so'
13200    hardcode_into_libs=yes
13201    dynamic_linker="$host_os dld.so"
13202    shlibpath_var=LD_LIBRARY_PATH
13203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205    soname_spec='${libname}${release}${shared_ext}$major'
13206    if test "X$HPUX_IA64_MODE" = X32; then
13207      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13208    else
13209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13210    fi
13211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212    ;;
13213   hppa*64*)
13214     shrext_cmds='.sl'
13215     hardcode_into_libs=yes
13216     dynamic_linker="$host_os dld.sl"
13217     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220     soname_spec='${libname}${release}${shared_ext}$major'
13221     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223     ;;
13224   *)
13225    shrext_cmds='.sl'
13226    dynamic_linker="$host_os dld.sl"
13227    shlibpath_var=SHLIB_PATH
13228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230    soname_spec='${libname}${release}${shared_ext}$major'
13231    ;;
13232  esac
13233  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13234  postinstall_cmds='chmod 555 $lib'
13235  ;;
13236
13237interix3*)
13238  version_type=linux
13239  need_lib_prefix=no
13240  need_version=no
13241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13242  soname_spec='${libname}${release}${shared_ext}$major'
13243  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13244  shlibpath_var=LD_LIBRARY_PATH
13245  shlibpath_overrides_runpath=no
13246  hardcode_into_libs=yes
13247  ;;
13248
13249irix5* | irix6* | nonstopux*)
13250  case $host_os in
13251    nonstopux*) version_type=nonstopux ;;
13252    *)
13253	if test "$lt_cv_prog_gnu_ld" = yes; then
13254		version_type=linux
13255	else
13256		version_type=irix
13257	fi ;;
13258  esac
13259  need_lib_prefix=no
13260  need_version=no
13261  soname_spec='${libname}${release}${shared_ext}$major'
13262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13263  case $host_os in
13264  irix5* | nonstopux*)
13265    libsuff= shlibsuff=
13266    ;;
13267  *)
13268    case $LD in # libtool.m4 will add one of these switches to LD
13269    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13270      libsuff= shlibsuff= libmagic=32-bit;;
13271    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13272      libsuff=32 shlibsuff=N32 libmagic=N32;;
13273    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13274      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13275    *) libsuff= shlibsuff= libmagic=never-match;;
13276    esac
13277    ;;
13278  esac
13279  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13280  shlibpath_overrides_runpath=no
13281  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13282  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13283  hardcode_into_libs=yes
13284  ;;
13285
13286# No shared lib support for Linux oldld, aout, or coff.
13287linux*oldld* | linux*aout* | linux*coff*)
13288  dynamic_linker=no
13289  ;;
13290
13291# This must be Linux ELF.
13292linux*)
13293  version_type=linux
13294  need_lib_prefix=no
13295  need_version=no
13296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297  soname_spec='${libname}${release}${shared_ext}$major'
13298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13299  shlibpath_var=LD_LIBRARY_PATH
13300  shlibpath_overrides_runpath=no
13301  # This implies no fast_install, which is unacceptable.
13302  # Some rework will be needed to allow for fast_install
13303  # before this can be enabled.
13304  hardcode_into_libs=yes
13305
13306  # Append ld.so.conf contents to the search path
13307  if test -f /etc/ld.so.conf; then
13308    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' ' '`
13309    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13310  fi
13311
13312  # We used to test for /lib/ld.so.1 and disable shared libraries on
13313  # powerpc, because MkLinux only supported shared libraries with the
13314  # GNU dynamic linker.  Since this was broken with cross compilers,
13315  # most powerpc-linux boxes support dynamic linking these days and
13316  # people can always --disable-shared, the test was removed, and we
13317  # assume the GNU/Linux dynamic linker is in use.
13318  dynamic_linker='GNU/Linux ld.so'
13319  ;;
13320
13321knetbsd*-gnu)
13322  version_type=linux
13323  need_lib_prefix=no
13324  need_version=no
13325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13326  soname_spec='${libname}${release}${shared_ext}$major'
13327  shlibpath_var=LD_LIBRARY_PATH
13328  shlibpath_overrides_runpath=no
13329  hardcode_into_libs=yes
13330  dynamic_linker='GNU ld.so'
13331  ;;
13332
13333netbsd*)
13334  version_type=sunos
13335  need_lib_prefix=no
13336  need_version=no
13337  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13339    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13340    dynamic_linker='NetBSD (a.out) ld.so'
13341  else
13342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13343    soname_spec='${libname}${release}${shared_ext}$major'
13344    dynamic_linker='NetBSD ld.elf_so'
13345  fi
13346  shlibpath_var=LD_LIBRARY_PATH
13347  shlibpath_overrides_runpath=yes
13348  hardcode_into_libs=yes
13349  ;;
13350
13351newsos6)
13352  version_type=linux
13353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354  shlibpath_var=LD_LIBRARY_PATH
13355  shlibpath_overrides_runpath=yes
13356  ;;
13357
13358nto-qnx*)
13359  version_type=linux
13360  need_lib_prefix=no
13361  need_version=no
13362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363  soname_spec='${libname}${release}${shared_ext}$major'
13364  shlibpath_var=LD_LIBRARY_PATH
13365  shlibpath_overrides_runpath=yes
13366  ;;
13367
13368openbsd*)
13369  version_type=sunos
13370  sys_lib_dlsearch_path_spec="/usr/lib"
13371  need_lib_prefix=no
13372  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13373  case $host_os in
13374    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13375    *)                         need_version=no  ;;
13376  esac
13377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13379  shlibpath_var=LD_LIBRARY_PATH
13380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13381    case $host_os in
13382      openbsd2.[89] | openbsd2.[89].*)
13383	shlibpath_overrides_runpath=no
13384	;;
13385      *)
13386	shlibpath_overrides_runpath=yes
13387	;;
13388      esac
13389  else
13390    shlibpath_overrides_runpath=yes
13391  fi
13392  ;;
13393
13394os2*)
13395  libname_spec='$name'
13396  shrext_cmds=".dll"
13397  need_lib_prefix=no
13398  library_names_spec='$libname${shared_ext} $libname.a'
13399  dynamic_linker='OS/2 ld.exe'
13400  shlibpath_var=LIBPATH
13401  ;;
13402
13403osf3* | osf4* | osf5*)
13404  version_type=osf
13405  need_lib_prefix=no
13406  need_version=no
13407  soname_spec='${libname}${release}${shared_ext}$major'
13408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409  shlibpath_var=LD_LIBRARY_PATH
13410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13412  ;;
13413
13414solaris*)
13415  version_type=linux
13416  need_lib_prefix=no
13417  need_version=no
13418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419  soname_spec='${libname}${release}${shared_ext}$major'
13420  shlibpath_var=LD_LIBRARY_PATH
13421  shlibpath_overrides_runpath=yes
13422  hardcode_into_libs=yes
13423  # ldd complains unless libraries are executable
13424  postinstall_cmds='chmod +x $lib'
13425  ;;
13426
13427sunos4*)
13428  version_type=sunos
13429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13431  shlibpath_var=LD_LIBRARY_PATH
13432  shlibpath_overrides_runpath=yes
13433  if test "$with_gnu_ld" = yes; then
13434    need_lib_prefix=no
13435  fi
13436  need_version=yes
13437  ;;
13438
13439sysv4 | sysv4.3*)
13440  version_type=linux
13441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442  soname_spec='${libname}${release}${shared_ext}$major'
13443  shlibpath_var=LD_LIBRARY_PATH
13444  case $host_vendor in
13445    sni)
13446      shlibpath_overrides_runpath=no
13447      need_lib_prefix=no
13448      export_dynamic_flag_spec='${wl}-Blargedynsym'
13449      runpath_var=LD_RUN_PATH
13450      ;;
13451    siemens)
13452      need_lib_prefix=no
13453      ;;
13454    motorola)
13455      need_lib_prefix=no
13456      need_version=no
13457      shlibpath_overrides_runpath=no
13458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13459      ;;
13460  esac
13461  ;;
13462
13463sysv4*MP*)
13464  if test -d /usr/nec ;then
13465    version_type=linux
13466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13467    soname_spec='$libname${shared_ext}.$major'
13468    shlibpath_var=LD_LIBRARY_PATH
13469  fi
13470  ;;
13471
13472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13473  version_type=freebsd-elf
13474  need_lib_prefix=no
13475  need_version=no
13476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13477  soname_spec='${libname}${release}${shared_ext}$major'
13478  shlibpath_var=LD_LIBRARY_PATH
13479  hardcode_into_libs=yes
13480  if test "$with_gnu_ld" = yes; then
13481    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13482    shlibpath_overrides_runpath=no
13483  else
13484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13485    shlibpath_overrides_runpath=yes
13486    case $host_os in
13487      sco3.2v5*)
13488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13489	;;
13490    esac
13491  fi
13492  sys_lib_dlsearch_path_spec='/usr/lib'
13493  ;;
13494
13495uts4*)
13496  version_type=linux
13497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498  soname_spec='${libname}${release}${shared_ext}$major'
13499  shlibpath_var=LD_LIBRARY_PATH
13500  ;;
13501
13502*)
13503  dynamic_linker=no
13504  ;;
13505esac
13506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13507echo "${ECHO_T}$dynamic_linker" >&6
13508test "$dynamic_linker" = no && can_build_shared=no
13509
13510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13511if test "$GCC" = yes; then
13512  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13513fi
13514
13515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13517hardcode_action_CXX=
13518if test -n "$hardcode_libdir_flag_spec_CXX" || \
13519   test -n "$runpath_var_CXX" || \
13520   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13521
13522  # We can hardcode non-existant directories.
13523  if test "$hardcode_direct_CXX" != no &&
13524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13525     # have to relink, otherwise we might link with an installed library
13526     # when we should be linking with a yet-to-be-installed one
13527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13528     test "$hardcode_minus_L_CXX" != no; then
13529    # Linking always hardcodes the temporary library directory.
13530    hardcode_action_CXX=relink
13531  else
13532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13533    hardcode_action_CXX=immediate
13534  fi
13535else
13536  # We cannot hardcode anything, or else we can only hardcode existing
13537  # directories.
13538  hardcode_action_CXX=unsupported
13539fi
13540echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13541echo "${ECHO_T}$hardcode_action_CXX" >&6
13542
13543if test "$hardcode_action_CXX" = relink; then
13544  # Fast installation is not supported
13545  enable_fast_install=no
13546elif test "$shlibpath_overrides_runpath" = yes ||
13547     test "$enable_shared" = no; then
13548  # Fast installation is not necessary
13549  enable_fast_install=needless
13550fi
13551
13552
13553# The else clause should only fire when bootstrapping the
13554# libtool distribution, otherwise you forgot to ship ltmain.sh
13555# with your package, and you will get complaints that there are
13556# no rules to generate ltmain.sh.
13557if test -f "$ltmain"; then
13558  # See if we are running on zsh, and set the options which allow our commands through
13559  # without removal of \ escapes.
13560  if test -n "${ZSH_VERSION+set}" ; then
13561    setopt NO_GLOB_SUBST
13562  fi
13563  # Now quote all the things that may contain metacharacters while being
13564  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13565  # variables and quote the copies for generation of the libtool script.
13566  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13567    SED SHELL STRIP \
13568    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13569    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13570    deplibs_check_method reload_flag reload_cmds need_locks \
13571    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13572    lt_cv_sys_global_symbol_to_c_name_address \
13573    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13574    old_postinstall_cmds old_postuninstall_cmds \
13575    compiler_CXX \
13576    CC_CXX \
13577    LD_CXX \
13578    lt_prog_compiler_wl_CXX \
13579    lt_prog_compiler_pic_CXX \
13580    lt_prog_compiler_static_CXX \
13581    lt_prog_compiler_no_builtin_flag_CXX \
13582    export_dynamic_flag_spec_CXX \
13583    thread_safe_flag_spec_CXX \
13584    whole_archive_flag_spec_CXX \
13585    enable_shared_with_static_runtimes_CXX \
13586    old_archive_cmds_CXX \
13587    old_archive_from_new_cmds_CXX \
13588    predep_objects_CXX \
13589    postdep_objects_CXX \
13590    predeps_CXX \
13591    postdeps_CXX \
13592    compiler_lib_search_path_CXX \
13593    archive_cmds_CXX \
13594    archive_expsym_cmds_CXX \
13595    postinstall_cmds_CXX \
13596    postuninstall_cmds_CXX \
13597    old_archive_from_expsyms_cmds_CXX \
13598    allow_undefined_flag_CXX \
13599    no_undefined_flag_CXX \
13600    export_symbols_cmds_CXX \
13601    hardcode_libdir_flag_spec_CXX \
13602    hardcode_libdir_flag_spec_ld_CXX \
13603    hardcode_libdir_separator_CXX \
13604    hardcode_automatic_CXX \
13605    module_cmds_CXX \
13606    module_expsym_cmds_CXX \
13607    lt_cv_prog_compiler_c_o_CXX \
13608    exclude_expsyms_CXX \
13609    include_expsyms_CXX; do
13610
13611    case $var in
13612    old_archive_cmds_CXX | \
13613    old_archive_from_new_cmds_CXX | \
13614    archive_cmds_CXX | \
13615    archive_expsym_cmds_CXX | \
13616    module_cmds_CXX | \
13617    module_expsym_cmds_CXX | \
13618    old_archive_from_expsyms_cmds_CXX | \
13619    export_symbols_cmds_CXX | \
13620    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13621    postinstall_cmds | postuninstall_cmds | \
13622    old_postinstall_cmds | old_postuninstall_cmds | \
13623    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13624      # Double-quote double-evaled strings.
13625      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13626      ;;
13627    *)
13628      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13629      ;;
13630    esac
13631  done
13632
13633  case $lt_echo in
13634  *'\$0 --fallback-echo"')
13635    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13636    ;;
13637  esac
13638
13639cfgfile="$ofile"
13640
13641  cat <<__EOF__ >> "$cfgfile"
13642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13643
13644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13645
13646# Shell to use when invoking shell scripts.
13647SHELL=$lt_SHELL
13648
13649# Whether or not to build shared libraries.
13650build_libtool_libs=$enable_shared
13651
13652# Whether or not to build static libraries.
13653build_old_libs=$enable_static
13654
13655# Whether or not to add -lc for building shared libraries.
13656build_libtool_need_lc=$archive_cmds_need_lc_CXX
13657
13658# Whether or not to disallow shared libs when runtime libs are static
13659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13660
13661# Whether or not to optimize for fast installation.
13662fast_install=$enable_fast_install
13663
13664# The host system.
13665host_alias=$host_alias
13666host=$host
13667host_os=$host_os
13668
13669# The build system.
13670build_alias=$build_alias
13671build=$build
13672build_os=$build_os
13673
13674# An echo program that does not interpret backslashes.
13675echo=$lt_echo
13676
13677# The archiver.
13678AR=$lt_AR
13679AR_FLAGS=$lt_AR_FLAGS
13680
13681# A C compiler.
13682LTCC=$lt_LTCC
13683
13684# LTCC compiler flags.
13685LTCFLAGS=$lt_LTCFLAGS
13686
13687# A language-specific compiler.
13688CC=$lt_compiler_CXX
13689
13690# Is the compiler the GNU C compiler?
13691with_gcc=$GCC_CXX
13692
13693# An ERE matcher.
13694EGREP=$lt_EGREP
13695
13696# The linker used to build libraries.
13697LD=$lt_LD_CXX
13698
13699# Whether we need hard or soft links.
13700LN_S=$lt_LN_S
13701
13702# A BSD-compatible nm program.
13703NM=$lt_NM
13704
13705# A symbol stripping program
13706STRIP=$lt_STRIP
13707
13708# Used to examine libraries when file_magic_cmd begins "file"
13709MAGIC_CMD=$MAGIC_CMD
13710
13711# Used on cygwin: DLL creation program.
13712DLLTOOL="$DLLTOOL"
13713
13714# Used on cygwin: object dumper.
13715OBJDUMP="$OBJDUMP"
13716
13717# Used on cygwin: assembler.
13718AS="$AS"
13719
13720# The name of the directory that contains temporary libtool files.
13721objdir=$objdir
13722
13723# How to create reloadable object files.
13724reload_flag=$lt_reload_flag
13725reload_cmds=$lt_reload_cmds
13726
13727# How to pass a linker flag through the compiler.
13728wl=$lt_lt_prog_compiler_wl_CXX
13729
13730# Object file suffix (normally "o").
13731objext="$ac_objext"
13732
13733# Old archive suffix (normally "a").
13734libext="$libext"
13735
13736# Shared library suffix (normally ".so").
13737shrext_cmds='$shrext_cmds'
13738
13739# Executable file suffix (normally "").
13740exeext="$exeext"
13741
13742# Additional compiler flags for building library objects.
13743pic_flag=$lt_lt_prog_compiler_pic_CXX
13744pic_mode=$pic_mode
13745
13746# What is the maximum length of a command?
13747max_cmd_len=$lt_cv_sys_max_cmd_len
13748
13749# Does compiler simultaneously support -c and -o options?
13750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13751
13752# Must we lock files when doing compilation?
13753need_locks=$lt_need_locks
13754
13755# Do we need the lib prefix for modules?
13756need_lib_prefix=$need_lib_prefix
13757
13758# Do we need a version for libraries?
13759need_version=$need_version
13760
13761# Whether dlopen is supported.
13762dlopen_support=$enable_dlopen
13763
13764# Whether dlopen of programs is supported.
13765dlopen_self=$enable_dlopen_self
13766
13767# Whether dlopen of statically linked programs is supported.
13768dlopen_self_static=$enable_dlopen_self_static
13769
13770# Compiler flag to prevent dynamic linking.
13771link_static_flag=$lt_lt_prog_compiler_static_CXX
13772
13773# Compiler flag to turn off builtin functions.
13774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13775
13776# Compiler flag to allow reflexive dlopens.
13777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13778
13779# Compiler flag to generate shared objects directly from archives.
13780whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13781
13782# Compiler flag to generate thread-safe objects.
13783thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13784
13785# Library versioning type.
13786version_type=$version_type
13787
13788# Format of library name prefix.
13789libname_spec=$lt_libname_spec
13790
13791# List of archive names.  First name is the real one, the rest are links.
13792# The last name is the one that the linker finds with -lNAME.
13793library_names_spec=$lt_library_names_spec
13794
13795# The coded name of the library, if different from the real name.
13796soname_spec=$lt_soname_spec
13797
13798# Commands used to build and install an old-style archive.
13799RANLIB=$lt_RANLIB
13800old_archive_cmds=$lt_old_archive_cmds_CXX
13801old_postinstall_cmds=$lt_old_postinstall_cmds
13802old_postuninstall_cmds=$lt_old_postuninstall_cmds
13803
13804# Create an old-style archive from a shared archive.
13805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13806
13807# Create a temporary old-style archive to link instead of a shared archive.
13808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13809
13810# Commands used to build and install a shared archive.
13811archive_cmds=$lt_archive_cmds_CXX
13812archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13813postinstall_cmds=$lt_postinstall_cmds
13814postuninstall_cmds=$lt_postuninstall_cmds
13815
13816# Commands used to build a loadable module (assumed same as above if empty)
13817module_cmds=$lt_module_cmds_CXX
13818module_expsym_cmds=$lt_module_expsym_cmds_CXX
13819
13820# Commands to strip libraries.
13821old_striplib=$lt_old_striplib
13822striplib=$lt_striplib
13823
13824# Dependencies to place before the objects being linked to create a
13825# shared library.
13826predep_objects=$lt_predep_objects_CXX
13827
13828# Dependencies to place after the objects being linked to create a
13829# shared library.
13830postdep_objects=$lt_postdep_objects_CXX
13831
13832# Dependencies to place before the objects being linked to create a
13833# shared library.
13834predeps=$lt_predeps_CXX
13835
13836# Dependencies to place after the objects being linked to create a
13837# shared library.
13838postdeps=$lt_postdeps_CXX
13839
13840# The library search path used internally by the compiler when linking
13841# a shared library.
13842compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13843
13844# Method to check whether dependent libraries are shared objects.
13845deplibs_check_method=$lt_deplibs_check_method
13846
13847# Command to use when deplibs_check_method == file_magic.
13848file_magic_cmd=$lt_file_magic_cmd
13849
13850# Flag that allows shared libraries with undefined symbols to be built.
13851allow_undefined_flag=$lt_allow_undefined_flag_CXX
13852
13853# Flag that forces no undefined symbols.
13854no_undefined_flag=$lt_no_undefined_flag_CXX
13855
13856# Commands used to finish a libtool library installation in a directory.
13857finish_cmds=$lt_finish_cmds
13858
13859# Same as above, but a single script fragment to be evaled but not shown.
13860finish_eval=$lt_finish_eval
13861
13862# Take the output of nm and produce a listing of raw symbols and C names.
13863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13864
13865# Transform the output of nm in a proper C declaration
13866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13867
13868# Transform the output of nm in a C name address pair
13869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13870
13871# This is the shared library runtime path variable.
13872runpath_var=$runpath_var
13873
13874# This is the shared library path variable.
13875shlibpath_var=$shlibpath_var
13876
13877# Is shlibpath searched before the hard-coded library search path?
13878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13879
13880# How to hardcode a shared library path into an executable.
13881hardcode_action=$hardcode_action_CXX
13882
13883# Whether we should hardcode library paths into libraries.
13884hardcode_into_libs=$hardcode_into_libs
13885
13886# Flag to hardcode \$libdir into a binary during linking.
13887# This must work even if \$libdir does not exist.
13888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13889
13890# If ld is used when linking, flag to hardcode \$libdir into
13891# a binary during linking. This must work even if \$libdir does
13892# not exist.
13893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13894
13895# Whether we need a single -rpath flag with a separated argument.
13896hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13897
13898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13899# resulting binary.
13900hardcode_direct=$hardcode_direct_CXX
13901
13902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13903# resulting binary.
13904hardcode_minus_L=$hardcode_minus_L_CXX
13905
13906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13907# the resulting binary.
13908hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13909
13910# Set to yes if building a shared library automatically hardcodes DIR into the library
13911# and all subsequent libraries and executables linked against it.
13912hardcode_automatic=$hardcode_automatic_CXX
13913
13914# Variables whose values should be saved in libtool wrapper scripts and
13915# restored at relink time.
13916variables_saved_for_relink="$variables_saved_for_relink"
13917
13918# Whether libtool must link a program against all its dependency libraries.
13919link_all_deplibs=$link_all_deplibs_CXX
13920
13921# Compile-time system search path for libraries
13922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13923
13924# Run-time system search path for libraries
13925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13926
13927# Fix the shell variable \$srcfile for the compiler.
13928fix_srcfile_path="$fix_srcfile_path_CXX"
13929
13930# Set to yes if exported symbols are required.
13931always_export_symbols=$always_export_symbols_CXX
13932
13933# The commands to list exported symbols.
13934export_symbols_cmds=$lt_export_symbols_cmds_CXX
13935
13936# The commands to extract the exported symbol list from a shared archive.
13937extract_expsyms_cmds=$lt_extract_expsyms_cmds
13938
13939# Symbols that should not be listed in the preloaded symbols.
13940exclude_expsyms=$lt_exclude_expsyms_CXX
13941
13942# Symbols that must always be exported.
13943include_expsyms=$lt_include_expsyms_CXX
13944
13945# ### END LIBTOOL TAG CONFIG: $tagname
13946
13947__EOF__
13948
13949
13950else
13951  # If there is no Makefile yet, we rely on a make rule to execute
13952  # `config.status --recheck' to rerun these tests and create the
13953  # libtool script then.
13954  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13955  if test -f "$ltmain_in"; then
13956    test -f Makefile && make "$ltmain"
13957  fi
13958fi
13959
13960
13961ac_ext=c
13962ac_cpp='$CPP $CPPFLAGS'
13963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966
13967CC=$lt_save_CC
13968LDCXX=$LD
13969LD=$lt_save_LD
13970GCC=$lt_save_GCC
13971with_gnu_ldcxx=$with_gnu_ld
13972with_gnu_ld=$lt_save_with_gnu_ld
13973lt_cv_path_LDCXX=$lt_cv_path_LD
13974lt_cv_path_LD=$lt_save_path_LD
13975lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13976lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13977
13978	else
13979	  tagname=""
13980	fi
13981	;;
13982
13983      F77)
13984	if test -n "$F77" && test "X$F77" != "Xno"; then
13985
13986ac_ext=f
13987ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13988ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13990
13991
13992archive_cmds_need_lc_F77=no
13993allow_undefined_flag_F77=
13994always_export_symbols_F77=no
13995archive_expsym_cmds_F77=
13996export_dynamic_flag_spec_F77=
13997hardcode_direct_F77=no
13998hardcode_libdir_flag_spec_F77=
13999hardcode_libdir_flag_spec_ld_F77=
14000hardcode_libdir_separator_F77=
14001hardcode_minus_L_F77=no
14002hardcode_automatic_F77=no
14003module_cmds_F77=
14004module_expsym_cmds_F77=
14005link_all_deplibs_F77=unknown
14006old_archive_cmds_F77=$old_archive_cmds
14007no_undefined_flag_F77=
14008whole_archive_flag_spec_F77=
14009enable_shared_with_static_runtimes_F77=no
14010
14011# Source file extension for f77 test sources.
14012ac_ext=f
14013
14014# Object file extension for compiled f77 test sources.
14015objext=o
14016objext_F77=$objext
14017
14018# Code to be used in simple compile tests
14019lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14020
14021# Code to be used in simple link tests
14022lt_simple_link_test_code="      program t\n      end\n"
14023
14024# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14025
14026# If no C compiler was specified, use CC.
14027LTCC=${LTCC-"$CC"}
14028
14029# If no C compiler flags were specified, use CFLAGS.
14030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14031
14032# Allow CC to be a program name with arguments.
14033compiler=$CC
14034
14035
14036# save warnings/boilerplate of simple test code
14037ac_outfile=conftest.$ac_objext
14038printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14039eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14040_lt_compiler_boilerplate=`cat conftest.err`
14041$rm conftest*
14042
14043ac_outfile=conftest.$ac_objext
14044printf "$lt_simple_link_test_code" >conftest.$ac_ext
14045eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14046_lt_linker_boilerplate=`cat conftest.err`
14047$rm conftest*
14048
14049
14050# Allow CC to be a program name with arguments.
14051lt_save_CC="$CC"
14052CC=${F77-"f77"}
14053compiler=$CC
14054compiler_F77=$CC
14055for cc_temp in $compiler""; do
14056  case $cc_temp in
14057    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14058    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14059    \-*) ;;
14060    *) break;;
14061  esac
14062done
14063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14064
14065
14066echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14067echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14068echo "$as_me:$LINENO: result: $can_build_shared" >&5
14069echo "${ECHO_T}$can_build_shared" >&6
14070
14071echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14072echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14073test "$can_build_shared" = "no" && enable_shared=no
14074
14075# On AIX, shared libraries and static libraries use the same namespace, and
14076# are all built from PIC.
14077case $host_os in
14078aix3*)
14079  test "$enable_shared" = yes && enable_static=no
14080  if test -n "$RANLIB"; then
14081    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14082    postinstall_cmds='$RANLIB $lib'
14083  fi
14084  ;;
14085aix4* | aix5*)
14086  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14087    test "$enable_shared" = yes && enable_static=no
14088  fi
14089  ;;
14090esac
14091echo "$as_me:$LINENO: result: $enable_shared" >&5
14092echo "${ECHO_T}$enable_shared" >&6
14093
14094echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14095echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14096# Make sure either enable_shared or enable_static is yes.
14097test "$enable_shared" = yes || enable_static=yes
14098echo "$as_me:$LINENO: result: $enable_static" >&5
14099echo "${ECHO_T}$enable_static" >&6
14100
14101GCC_F77="$G77"
14102LD_F77="$LD"
14103
14104lt_prog_compiler_wl_F77=
14105lt_prog_compiler_pic_F77=
14106lt_prog_compiler_static_F77=
14107
14108echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14109echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14110
14111  if test "$GCC" = yes; then
14112    lt_prog_compiler_wl_F77='-Wl,'
14113    lt_prog_compiler_static_F77='-static'
14114
14115    case $host_os in
14116      aix*)
14117      # All AIX code is PIC.
14118      if test "$host_cpu" = ia64; then
14119	# AIX 5 now supports IA64 processor
14120	lt_prog_compiler_static_F77='-Bstatic'
14121      fi
14122      ;;
14123
14124    amigaos*)
14125      # FIXME: we need at least 68020 code to build shared libraries, but
14126      # adding the `-m68020' flag to GCC prevents building anything better,
14127      # like `-m68040'.
14128      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14129      ;;
14130
14131    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14132      # PIC is the default for these OSes.
14133      ;;
14134
14135    mingw* | pw32* | os2*)
14136      # This hack is so that the source file can tell whether it is being
14137      # built for inclusion in a dll (and should export symbols for example).
14138      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14139      ;;
14140
14141    darwin* | rhapsody*)
14142      # PIC is the default on this platform
14143      # Common symbols not allowed in MH_DYLIB files
14144      lt_prog_compiler_pic_F77='-fno-common'
14145      ;;
14146
14147    interix3*)
14148      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14149      # Instead, we relocate shared libraries at runtime.
14150      ;;
14151
14152    msdosdjgpp*)
14153      # Just because we use GCC doesn't mean we suddenly get shared libraries
14154      # on systems that don't support them.
14155      lt_prog_compiler_can_build_shared_F77=no
14156      enable_shared=no
14157      ;;
14158
14159    sysv4*MP*)
14160      if test -d /usr/nec; then
14161	lt_prog_compiler_pic_F77=-Kconform_pic
14162      fi
14163      ;;
14164
14165    hpux*)
14166      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14167      # not for PA HP-UX.
14168      case $host_cpu in
14169      hppa*64*|ia64*)
14170	# +Z the default
14171	;;
14172      *)
14173	lt_prog_compiler_pic_F77='-fPIC'
14174	;;
14175      esac
14176      ;;
14177
14178    *)
14179      lt_prog_compiler_pic_F77='-fPIC'
14180      ;;
14181    esac
14182  else
14183    # PORTME Check for flag to pass linker flags through the system compiler.
14184    case $host_os in
14185    aix*)
14186      lt_prog_compiler_wl_F77='-Wl,'
14187      if test "$host_cpu" = ia64; then
14188	# AIX 5 now supports IA64 processor
14189	lt_prog_compiler_static_F77='-Bstatic'
14190      else
14191	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14192      fi
14193      ;;
14194      darwin*)
14195        # PIC is the default on this platform
14196        # Common symbols not allowed in MH_DYLIB files
14197       case $cc_basename in
14198         xlc*)
14199         lt_prog_compiler_pic_F77='-qnocommon'
14200         lt_prog_compiler_wl_F77='-Wl,'
14201         ;;
14202       esac
14203       ;;
14204
14205    mingw* | pw32* | os2*)
14206      # This hack is so that the source file can tell whether it is being
14207      # built for inclusion in a dll (and should export symbols for example).
14208      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14209      ;;
14210
14211    hpux9* | hpux10* | hpux11*)
14212      lt_prog_compiler_wl_F77='-Wl,'
14213      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14214      # not for PA HP-UX.
14215      case $host_cpu in
14216      hppa*64*|ia64*)
14217	# +Z the default
14218	;;
14219      *)
14220	lt_prog_compiler_pic_F77='+Z'
14221	;;
14222      esac
14223      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14224      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14225      ;;
14226
14227    irix5* | irix6* | nonstopux*)
14228      lt_prog_compiler_wl_F77='-Wl,'
14229      # PIC (with -KPIC) is the default.
14230      lt_prog_compiler_static_F77='-non_shared'
14231      ;;
14232
14233    newsos6)
14234      lt_prog_compiler_pic_F77='-KPIC'
14235      lt_prog_compiler_static_F77='-Bstatic'
14236      ;;
14237
14238    linux*)
14239      case $cc_basename in
14240      icc* | ecc*)
14241	lt_prog_compiler_wl_F77='-Wl,'
14242	lt_prog_compiler_pic_F77='-KPIC'
14243	lt_prog_compiler_static_F77='-static'
14244        ;;
14245      pgcc* | pgf77* | pgf90* | pgf95*)
14246        # Portland Group compilers (*not* the Pentium gcc compiler,
14247	# which looks to be a dead project)
14248	lt_prog_compiler_wl_F77='-Wl,'
14249	lt_prog_compiler_pic_F77='-fpic'
14250	lt_prog_compiler_static_F77='-Bstatic'
14251        ;;
14252      ccc*)
14253        lt_prog_compiler_wl_F77='-Wl,'
14254        # All Alpha code is PIC.
14255        lt_prog_compiler_static_F77='-non_shared'
14256        ;;
14257      esac
14258      ;;
14259
14260    osf3* | osf4* | osf5*)
14261      lt_prog_compiler_wl_F77='-Wl,'
14262      # All OSF/1 code is PIC.
14263      lt_prog_compiler_static_F77='-non_shared'
14264      ;;
14265
14266    solaris*)
14267      lt_prog_compiler_pic_F77='-KPIC'
14268      lt_prog_compiler_static_F77='-Bstatic'
14269      case $cc_basename in
14270      f77* | f90* | f95*)
14271	lt_prog_compiler_wl_F77='-Qoption ld ';;
14272      *)
14273	lt_prog_compiler_wl_F77='-Wl,';;
14274      esac
14275      ;;
14276
14277    sunos4*)
14278      lt_prog_compiler_wl_F77='-Qoption ld '
14279      lt_prog_compiler_pic_F77='-PIC'
14280      lt_prog_compiler_static_F77='-Bstatic'
14281      ;;
14282
14283    sysv4 | sysv4.2uw2* | sysv4.3*)
14284      lt_prog_compiler_wl_F77='-Wl,'
14285      lt_prog_compiler_pic_F77='-KPIC'
14286      lt_prog_compiler_static_F77='-Bstatic'
14287      ;;
14288
14289    sysv4*MP*)
14290      if test -d /usr/nec ;then
14291	lt_prog_compiler_pic_F77='-Kconform_pic'
14292	lt_prog_compiler_static_F77='-Bstatic'
14293      fi
14294      ;;
14295
14296    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14297      lt_prog_compiler_wl_F77='-Wl,'
14298      lt_prog_compiler_pic_F77='-KPIC'
14299      lt_prog_compiler_static_F77='-Bstatic'
14300      ;;
14301
14302    unicos*)
14303      lt_prog_compiler_wl_F77='-Wl,'
14304      lt_prog_compiler_can_build_shared_F77=no
14305      ;;
14306
14307    uts4*)
14308      lt_prog_compiler_pic_F77='-pic'
14309      lt_prog_compiler_static_F77='-Bstatic'
14310      ;;
14311
14312    *)
14313      lt_prog_compiler_can_build_shared_F77=no
14314      ;;
14315    esac
14316  fi
14317
14318echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14319echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14320
14321#
14322# Check to make sure the PIC flag actually works.
14323#
14324if test -n "$lt_prog_compiler_pic_F77"; then
14325
14326echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14327echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14328if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14329  echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331  lt_prog_compiler_pic_works_F77=no
14332  ac_outfile=conftest.$ac_objext
14333   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14334   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14335   # Insert the option either (1) after the last *FLAGS variable, or
14336   # (2) before a word containing "conftest.", or (3) at the end.
14337   # Note that $ac_compile itself does not contain backslashes and begins
14338   # with a dollar sign (not a hyphen), so the echo should work correctly.
14339   # The option is referenced via a variable to avoid confusing sed.
14340   lt_compile=`echo "$ac_compile" | $SED \
14341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14343   -e 's:$: $lt_compiler_flag:'`
14344   (eval echo "\"\$as_me:14344: $lt_compile\"" >&5)
14345   (eval "$lt_compile" 2>conftest.err)
14346   ac_status=$?
14347   cat conftest.err >&5
14348   echo "$as_me:14348: \$? = $ac_status" >&5
14349   if (exit $ac_status) && test -s "$ac_outfile"; then
14350     # The compiler can only warn and ignore the option if not recognized
14351     # So say no if there are warnings other than the usual output.
14352     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14353     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14354     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14355       lt_prog_compiler_pic_works_F77=yes
14356     fi
14357   fi
14358   $rm conftest*
14359
14360fi
14361echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14362echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14363
14364if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14365    case $lt_prog_compiler_pic_F77 in
14366     "" | " "*) ;;
14367     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14368     esac
14369else
14370    lt_prog_compiler_pic_F77=
14371     lt_prog_compiler_can_build_shared_F77=no
14372fi
14373
14374fi
14375case $host_os in
14376  # For platforms which do not support PIC, -DPIC is meaningless:
14377  *djgpp*)
14378    lt_prog_compiler_pic_F77=
14379    ;;
14380  *)
14381    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14382    ;;
14383esac
14384
14385#
14386# Check to make sure the static flag actually works.
14387#
14388wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14389echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14390echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14391if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14392  echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394  lt_prog_compiler_static_works_F77=no
14395   save_LDFLAGS="$LDFLAGS"
14396   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14397   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14398   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14399     # The linker can only warn and ignore the option if not recognized
14400     # So say no if there are warnings
14401     if test -s conftest.err; then
14402       # Append any errors to the config.log.
14403       cat conftest.err 1>&5
14404       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14405       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406       if diff conftest.exp conftest.er2 >/dev/null; then
14407         lt_prog_compiler_static_works_F77=yes
14408       fi
14409     else
14410       lt_prog_compiler_static_works_F77=yes
14411     fi
14412   fi
14413   $rm conftest*
14414   LDFLAGS="$save_LDFLAGS"
14415
14416fi
14417echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14418echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14419
14420if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14421    :
14422else
14423    lt_prog_compiler_static_F77=
14424fi
14425
14426
14427echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14428echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14429if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14430  echo $ECHO_N "(cached) $ECHO_C" >&6
14431else
14432  lt_cv_prog_compiler_c_o_F77=no
14433   $rm -r conftest 2>/dev/null
14434   mkdir conftest
14435   cd conftest
14436   mkdir out
14437   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14438
14439   lt_compiler_flag="-o out/conftest2.$ac_objext"
14440   # Insert the option either (1) after the last *FLAGS variable, or
14441   # (2) before a word containing "conftest.", or (3) at the end.
14442   # Note that $ac_compile itself does not contain backslashes and begins
14443   # with a dollar sign (not a hyphen), so the echo should work correctly.
14444   lt_compile=`echo "$ac_compile" | $SED \
14445   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447   -e 's:$: $lt_compiler_flag:'`
14448   (eval echo "\"\$as_me:14448: $lt_compile\"" >&5)
14449   (eval "$lt_compile" 2>out/conftest.err)
14450   ac_status=$?
14451   cat out/conftest.err >&5
14452   echo "$as_me:14452: \$? = $ac_status" >&5
14453   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14454   then
14455     # The compiler can only warn and ignore the option if not recognized
14456     # So say no if there are warnings
14457     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14458     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14459     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14460       lt_cv_prog_compiler_c_o_F77=yes
14461     fi
14462   fi
14463   chmod u+w . 2>&5
14464   $rm conftest*
14465   # SGI C++ compiler will create directory out/ii_files/ for
14466   # template instantiation
14467   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14468   $rm out/* && rmdir out
14469   cd ..
14470   rmdir conftest
14471   $rm conftest*
14472
14473fi
14474echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14475echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14476
14477
14478hard_links="nottested"
14479if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14480  # do not overwrite the value of need_locks provided by the user
14481  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14482echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14483  hard_links=yes
14484  $rm conftest*
14485  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14486  touch conftest.a
14487  ln conftest.a conftest.b 2>&5 || hard_links=no
14488  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14489  echo "$as_me:$LINENO: result: $hard_links" >&5
14490echo "${ECHO_T}$hard_links" >&6
14491  if test "$hard_links" = no; then
14492    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14493echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14494    need_locks=warn
14495  fi
14496else
14497  need_locks=no
14498fi
14499
14500echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14501echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14502
14503  runpath_var=
14504  allow_undefined_flag_F77=
14505  enable_shared_with_static_runtimes_F77=no
14506  archive_cmds_F77=
14507  archive_expsym_cmds_F77=
14508  old_archive_From_new_cmds_F77=
14509  old_archive_from_expsyms_cmds_F77=
14510  export_dynamic_flag_spec_F77=
14511  whole_archive_flag_spec_F77=
14512  thread_safe_flag_spec_F77=
14513  hardcode_libdir_flag_spec_F77=
14514  hardcode_libdir_flag_spec_ld_F77=
14515  hardcode_libdir_separator_F77=
14516  hardcode_direct_F77=no
14517  hardcode_minus_L_F77=no
14518  hardcode_shlibpath_var_F77=unsupported
14519  link_all_deplibs_F77=unknown
14520  hardcode_automatic_F77=no
14521  module_cmds_F77=
14522  module_expsym_cmds_F77=
14523  always_export_symbols_F77=no
14524  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14525  # include_expsyms should be a list of space-separated symbols to be *always*
14526  # included in the symbol list
14527  include_expsyms_F77=
14528  # exclude_expsyms can be an extended regexp of symbols to exclude
14529  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14530  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14531  # as well as any symbol that contains `d'.
14532  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14533  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14534  # platforms (ab)use it in PIC code, but their linkers get confused if
14535  # the symbol is explicitly referenced.  Since portable code cannot
14536  # rely on this symbol name, it's probably fine to never include it in
14537  # preloaded symbol tables.
14538  extract_expsyms_cmds=
14539  # Just being paranoid about ensuring that cc_basename is set.
14540  for cc_temp in $compiler""; do
14541  case $cc_temp in
14542    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14543    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14544    \-*) ;;
14545    *) break;;
14546  esac
14547done
14548cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14549
14550  case $host_os in
14551  cygwin* | mingw* | pw32*)
14552    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14553    # When not using gcc, we currently assume that we are using
14554    # Microsoft Visual C++.
14555    if test "$GCC" != yes; then
14556      with_gnu_ld=no
14557    fi
14558    ;;
14559  interix*)
14560    # we just hope/assume this is gcc and not c89 (= MSVC++)
14561    with_gnu_ld=yes
14562    ;;
14563  openbsd*)
14564    with_gnu_ld=no
14565    ;;
14566  esac
14567
14568  ld_shlibs_F77=yes
14569  if test "$with_gnu_ld" = yes; then
14570    # If archive_cmds runs LD, not CC, wlarc should be empty
14571    wlarc='${wl}'
14572
14573    # Set some defaults for GNU ld with shared library support. These
14574    # are reset later if shared libraries are not supported. Putting them
14575    # here allows them to be overridden if necessary.
14576    runpath_var=LD_RUN_PATH
14577    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14578    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14579    # ancient GNU ld didn't support --whole-archive et. al.
14580    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14581	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14582      else
14583  	whole_archive_flag_spec_F77=
14584    fi
14585    supports_anon_versioning=no
14586    case `$LD -v 2>/dev/null` in
14587      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14588      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14589      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14590      *\ 2.11.*) ;; # other 2.11 versions
14591      *) supports_anon_versioning=yes ;;
14592    esac
14593
14594    # See if GNU ld supports shared libraries.
14595    case $host_os in
14596    aix3* | aix4* | aix5*)
14597      # On AIX/PPC, the GNU linker is very broken
14598      if test "$host_cpu" != ia64; then
14599	ld_shlibs_F77=no
14600	cat <<EOF 1>&2
14601
14602*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14603*** to be unable to reliably create shared libraries on AIX.
14604*** Therefore, libtool is disabling shared libraries support.  If you
14605*** really care for shared libraries, you may want to modify your PATH
14606*** so that a non-GNU linker is found, and then restart.
14607
14608EOF
14609      fi
14610      ;;
14611
14612    amigaos*)
14613      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)'
14614      hardcode_libdir_flag_spec_F77='-L$libdir'
14615      hardcode_minus_L_F77=yes
14616
14617      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14618      # that the semantics of dynamic libraries on AmigaOS, at least up
14619      # to version 4, is to share data among multiple programs linked
14620      # with the same dynamic library.  Since this doesn't match the
14621      # behavior of shared libraries on other platforms, we can't use
14622      # them.
14623      ld_shlibs_F77=no
14624      ;;
14625
14626    beos*)
14627      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14628	allow_undefined_flag_F77=unsupported
14629	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14630	# support --undefined.  This deserves some investigation.  FIXME
14631	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14632      else
14633	ld_shlibs_F77=no
14634      fi
14635      ;;
14636
14637    cygwin* | mingw* | pw32*)
14638      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14639      # as there is no search path for DLLs.
14640      hardcode_libdir_flag_spec_F77='-L$libdir'
14641      allow_undefined_flag_F77=unsupported
14642      always_export_symbols_F77=no
14643      enable_shared_with_static_runtimes_F77=yes
14644      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14645
14646      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14647        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14648	# If the export-symbols file already is a .def file (1st line
14649	# is EXPORTS), use it as is; otherwise, prepend...
14650	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14651	  cp $export_symbols $output_objdir/$soname.def;
14652	else
14653	  echo EXPORTS > $output_objdir/$soname.def;
14654	  cat $export_symbols >> $output_objdir/$soname.def;
14655	fi~
14656	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14657      else
14658	ld_shlibs_F77=no
14659      fi
14660      ;;
14661
14662    interix3*)
14663      hardcode_direct_F77=no
14664      hardcode_shlibpath_var_F77=no
14665      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14666      export_dynamic_flag_spec_F77='${wl}-E'
14667      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14668      # Instead, shared libraries are loaded at an image base (0x10000000 by
14669      # default) and relocated if they conflict, which is a slow very memory
14670      # consuming and fragmenting process.  To avoid this, we pick a random,
14671      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14672      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14673      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14674      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14675      ;;
14676
14677    linux*)
14678      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679	tmp_addflag=
14680	case $cc_basename,$host_cpu in
14681	pgcc*)				# Portland Group C compiler
14682	  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'
14683	  tmp_addflag=' $pic_flag'
14684	  ;;
14685	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14686	  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'
14687	  tmp_addflag=' $pic_flag -Mnomain' ;;
14688	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14689	  tmp_addflag=' -i_dynamic' ;;
14690	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14691	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14692	ifc* | ifort*)			# Intel Fortran compiler
14693	  tmp_addflag=' -nofor_main' ;;
14694	esac
14695	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14696
14697	if test $supports_anon_versioning = yes; then
14698	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14699  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14700  $echo "local: *; };" >> $output_objdir/$libname.ver~
14701	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14702	fi
14703      else
14704	ld_shlibs_F77=no
14705      fi
14706      ;;
14707
14708    netbsd*)
14709      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14710	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14711	wlarc=
14712      else
14713	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14714	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14715      fi
14716      ;;
14717
14718    solaris*)
14719      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14720	ld_shlibs_F77=no
14721	cat <<EOF 1>&2
14722
14723*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14724*** create shared libraries on Solaris systems.  Therefore, libtool
14725*** is disabling shared libraries support.  We urge you to upgrade GNU
14726*** binutils to release 2.9.1 or newer.  Another option is to modify
14727*** your PATH or compiler configuration so that the native linker is
14728*** used, and then restart.
14729
14730EOF
14731      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14732	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14734      else
14735	ld_shlibs_F77=no
14736      fi
14737      ;;
14738
14739    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14740      case `$LD -v 2>&1` in
14741        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14742	ld_shlibs_F77=no
14743	cat <<_LT_EOF 1>&2
14744
14745*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14746*** reliably create shared libraries on SCO systems.  Therefore, libtool
14747*** is disabling shared libraries support.  We urge you to upgrade GNU
14748*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14749*** your PATH or compiler configuration so that the native linker is
14750*** used, and then restart.
14751
14752_LT_EOF
14753	;;
14754	*)
14755	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14756	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14757	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14758	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14759	  else
14760	    ld_shlibs_F77=no
14761	  fi
14762	;;
14763      esac
14764      ;;
14765
14766    sunos4*)
14767      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14768      wlarc=
14769      hardcode_direct_F77=yes
14770      hardcode_shlibpath_var_F77=no
14771      ;;
14772
14773    *)
14774      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14777      else
14778	ld_shlibs_F77=no
14779      fi
14780      ;;
14781    esac
14782
14783    if test "$ld_shlibs_F77" = no; then
14784      runpath_var=
14785      hardcode_libdir_flag_spec_F77=
14786      export_dynamic_flag_spec_F77=
14787      whole_archive_flag_spec_F77=
14788    fi
14789  else
14790    # PORTME fill in a description of your system's linker (not GNU ld)
14791    case $host_os in
14792    aix3*)
14793      allow_undefined_flag_F77=unsupported
14794      always_export_symbols_F77=yes
14795      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'
14796      # Note: this linker hardcodes the directories in LIBPATH if there
14797      # are no directories specified by -L.
14798      hardcode_minus_L_F77=yes
14799      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14800	# Neither direct hardcoding nor static linking is supported with a
14801	# broken collect2.
14802	hardcode_direct_F77=unsupported
14803      fi
14804      ;;
14805
14806    aix4* | aix5*)
14807      if test "$host_cpu" = ia64; then
14808	# On IA64, the linker does run time linking by default, so we don't
14809	# have to do anything special.
14810	aix_use_runtimelinking=no
14811	exp_sym_flag='-Bexport'
14812	no_entry_flag=""
14813      else
14814	# If we're using GNU nm, then we don't want the "-C" option.
14815	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14816	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14817	  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'
14818	else
14819	  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'
14820	fi
14821	aix_use_runtimelinking=no
14822
14823	# Test if we are trying to use run time linking or normal
14824	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14825	# need to do runtime linking.
14826	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14827	  for ld_flag in $LDFLAGS; do
14828  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14829  	    aix_use_runtimelinking=yes
14830  	    break
14831  	  fi
14832	  done
14833	  ;;
14834	esac
14835
14836	exp_sym_flag='-bexport'
14837	no_entry_flag='-bnoentry'
14838      fi
14839
14840      # When large executables or shared objects are built, AIX ld can
14841      # have problems creating the table of contents.  If linking a library
14842      # or program results in "error TOC overflow" add -mminimal-toc to
14843      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14844      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14845
14846      archive_cmds_F77=''
14847      hardcode_direct_F77=yes
14848      hardcode_libdir_separator_F77=':'
14849      link_all_deplibs_F77=yes
14850
14851      if test "$GCC" = yes; then
14852	case $host_os in aix4.[012]|aix4.[012].*)
14853	# We only want to do this on AIX 4.2 and lower, the check
14854	# below for broken collect2 doesn't work under 4.3+
14855	  collect2name=`${CC} -print-prog-name=collect2`
14856	  if test -f "$collect2name" && \
14857  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14858	  then
14859  	  # We have reworked collect2
14860  	  hardcode_direct_F77=yes
14861	  else
14862  	  # We have old collect2
14863  	  hardcode_direct_F77=unsupported
14864  	  # It fails to find uninstalled libraries when the uninstalled
14865  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14866  	  # to unsupported forces relinking
14867  	  hardcode_minus_L_F77=yes
14868  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14869  	  hardcode_libdir_separator_F77=
14870	  fi
14871	  ;;
14872	esac
14873	shared_flag='-shared'
14874	if test "$aix_use_runtimelinking" = yes; then
14875	  shared_flag="$shared_flag "'${wl}-G'
14876	fi
14877      else
14878	# not using gcc
14879	if test "$host_cpu" = ia64; then
14880  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14881  	# chokes on -Wl,-G. The following line is correct:
14882	  shared_flag='-G'
14883	else
14884	  if test "$aix_use_runtimelinking" = yes; then
14885	    shared_flag='${wl}-G'
14886	  else
14887	    shared_flag='${wl}-bM:SRE'
14888	  fi
14889	fi
14890      fi
14891
14892      # It seems that -bexpall does not export symbols beginning with
14893      # underscore (_), so it is better to generate a list of symbols to export.
14894      always_export_symbols_F77=yes
14895      if test "$aix_use_runtimelinking" = yes; then
14896	# Warning - without using the other runtime loading flags (-brtl),
14897	# -berok will link without error, but may produce a broken library.
14898	allow_undefined_flag_F77='-berok'
14899       # Determine the default libpath from the value encoded in an empty executable.
14900       cat >conftest.$ac_ext <<_ACEOF
14901      program main
14902
14903      end
14904_ACEOF
14905rm -f conftest.$ac_objext conftest$ac_exeext
14906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907  (eval $ac_link) 2>conftest.er1
14908  ac_status=$?
14909  grep -v '^ *+' conftest.er1 >conftest.err
14910  rm -f conftest.er1
14911  cat conftest.err >&5
14912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913  (exit $ac_status); } &&
14914	 { ac_try='test -z "$ac_f77_werror_flag"
14915			 || test ! -s conftest.err'
14916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917  (eval $ac_try) 2>&5
14918  ac_status=$?
14919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920  (exit $ac_status); }; } &&
14921	 { ac_try='test -s conftest$ac_exeext'
14922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923  (eval $ac_try) 2>&5
14924  ac_status=$?
14925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926  (exit $ac_status); }; }; then
14927
14928aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14929}'`
14930# Check for a 64-bit object if we didn't find anything.
14931if 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; }
14932}'`; fi
14933else
14934  echo "$as_me: failed program was:" >&5
14935sed 's/^/| /' conftest.$ac_ext >&5
14936
14937fi
14938rm -f conftest.err conftest.$ac_objext \
14939      conftest$ac_exeext conftest.$ac_ext
14940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14941
14942       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14943	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14944       else
14945	if test "$host_cpu" = ia64; then
14946	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14947	  allow_undefined_flag_F77="-z nodefs"
14948	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14949	else
14950	 # Determine the default libpath from the value encoded in an empty executable.
14951	 cat >conftest.$ac_ext <<_ACEOF
14952      program main
14953
14954      end
14955_ACEOF
14956rm -f conftest.$ac_objext conftest$ac_exeext
14957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958  (eval $ac_link) 2>conftest.er1
14959  ac_status=$?
14960  grep -v '^ *+' conftest.er1 >conftest.err
14961  rm -f conftest.er1
14962  cat conftest.err >&5
14963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964  (exit $ac_status); } &&
14965	 { ac_try='test -z "$ac_f77_werror_flag"
14966			 || test ! -s conftest.err'
14967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968  (eval $ac_try) 2>&5
14969  ac_status=$?
14970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971  (exit $ac_status); }; } &&
14972	 { ac_try='test -s conftest$ac_exeext'
14973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974  (eval $ac_try) 2>&5
14975  ac_status=$?
14976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977  (exit $ac_status); }; }; then
14978
14979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14980}'`
14981# Check for a 64-bit object if we didn't find anything.
14982if 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; }
14983}'`; fi
14984else
14985  echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988fi
14989rm -f conftest.err conftest.$ac_objext \
14990      conftest$ac_exeext conftest.$ac_ext
14991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14992
14993	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14994	  # Warning - without using the other run time loading flags,
14995	  # -berok will link without error, but may produce a broken library.
14996	  no_undefined_flag_F77=' ${wl}-bernotok'
14997	  allow_undefined_flag_F77=' ${wl}-berok'
14998	  # Exported symbols can be pulled into shared objects from archives
14999	  whole_archive_flag_spec_F77='$convenience'
15000	  archive_cmds_need_lc_F77=yes
15001	  # This is similar to how AIX traditionally builds its shared libraries.
15002	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15003	fi
15004      fi
15005      ;;
15006
15007    amigaos*)
15008      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)'
15009      hardcode_libdir_flag_spec_F77='-L$libdir'
15010      hardcode_minus_L_F77=yes
15011      # see comment about different semantics on the GNU ld section
15012      ld_shlibs_F77=no
15013      ;;
15014
15015    bsdi[45]*)
15016      export_dynamic_flag_spec_F77=-rdynamic
15017      ;;
15018
15019    cygwin* | mingw* | pw32*)
15020      # When not using gcc, we currently assume that we are using
15021      # Microsoft Visual C++.
15022      # hardcode_libdir_flag_spec is actually meaningless, as there is
15023      # no search path for DLLs.
15024      hardcode_libdir_flag_spec_F77=' '
15025      allow_undefined_flag_F77=unsupported
15026      # Tell ltmain to make .lib files, not .a files.
15027      libext=lib
15028      # Tell ltmain to make .dll files, not .so files.
15029      shrext_cmds=".dll"
15030      # FIXME: Setting linknames here is a bad hack.
15031      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15032      # The linker will automatically build a .lib file if we build a DLL.
15033      old_archive_From_new_cmds_F77='true'
15034      # FIXME: Should let the user specify the lib program.
15035      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15036      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15037      enable_shared_with_static_runtimes_F77=yes
15038      ;;
15039
15040    darwin* | rhapsody*)
15041      case $host_os in
15042        rhapsody* | darwin1.[012])
15043         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15044         ;;
15045       *) # Darwin 1.3 on
15046         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15047           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15048         else
15049           case ${MACOSX_DEPLOYMENT_TARGET} in
15050             10.[012])
15051               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15052               ;;
15053             10.*)
15054               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15055               ;;
15056           esac
15057         fi
15058         ;;
15059      esac
15060      archive_cmds_need_lc_F77=no
15061      hardcode_direct_F77=no
15062      hardcode_automatic_F77=yes
15063      hardcode_shlibpath_var_F77=unsupported
15064      whole_archive_flag_spec_F77=''
15065      link_all_deplibs_F77=yes
15066    if test "$GCC" = yes ; then
15067    	output_verbose_link_cmd='echo'
15068        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15069      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15070      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15071      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}'
15072      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}'
15073    else
15074      case $cc_basename in
15075        xlc*)
15076         output_verbose_link_cmd='echo'
15077         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15078         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15079          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15080         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}'
15081          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}'
15082          ;;
15083       *)
15084         ld_shlibs_F77=no
15085          ;;
15086      esac
15087    fi
15088      ;;
15089
15090    dgux*)
15091      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15092      hardcode_libdir_flag_spec_F77='-L$libdir'
15093      hardcode_shlibpath_var_F77=no
15094      ;;
15095
15096    freebsd1*)
15097      ld_shlibs_F77=no
15098      ;;
15099
15100    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15101    # support.  Future versions do this automatically, but an explicit c++rt0.o
15102    # does not break anything, and helps significantly (at the cost of a little
15103    # extra space).
15104    freebsd2.2*)
15105      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15106      hardcode_libdir_flag_spec_F77='-R$libdir'
15107      hardcode_direct_F77=yes
15108      hardcode_shlibpath_var_F77=no
15109      ;;
15110
15111    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15112    freebsd2*)
15113      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15114      hardcode_direct_F77=yes
15115      hardcode_minus_L_F77=yes
15116      hardcode_shlibpath_var_F77=no
15117      ;;
15118
15119    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15120    freebsd* | kfreebsd*-gnu | dragonfly*)
15121      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15122      hardcode_libdir_flag_spec_F77='-R$libdir'
15123      hardcode_direct_F77=yes
15124      hardcode_shlibpath_var_F77=no
15125      ;;
15126
15127    hpux9*)
15128      if test "$GCC" = yes; then
15129	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'
15130      else
15131	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'
15132      fi
15133      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15134      hardcode_libdir_separator_F77=:
15135      hardcode_direct_F77=yes
15136
15137      # hardcode_minus_L: Not really in the search PATH,
15138      # but as the default location of the library.
15139      hardcode_minus_L_F77=yes
15140      export_dynamic_flag_spec_F77='${wl}-E'
15141      ;;
15142
15143    hpux10*)
15144      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15145	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15146      else
15147	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15148      fi
15149      if test "$with_gnu_ld" = no; then
15150	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151	hardcode_libdir_separator_F77=:
15152
15153	hardcode_direct_F77=yes
15154	export_dynamic_flag_spec_F77='${wl}-E'
15155
15156	# hardcode_minus_L: Not really in the search PATH,
15157	# but as the default location of the library.
15158	hardcode_minus_L_F77=yes
15159      fi
15160      ;;
15161
15162    hpux11*)
15163      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15164	case $host_cpu in
15165	hppa*64*)
15166	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15167	  ;;
15168	ia64*)
15169	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15170	  ;;
15171	*)
15172	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15173	  ;;
15174	esac
15175      else
15176	case $host_cpu in
15177	hppa*64*)
15178	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15179	  ;;
15180	ia64*)
15181	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15182	  ;;
15183	*)
15184	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15185	  ;;
15186	esac
15187      fi
15188      if test "$with_gnu_ld" = no; then
15189	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15190	hardcode_libdir_separator_F77=:
15191
15192	case $host_cpu in
15193	hppa*64*|ia64*)
15194	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15195	  hardcode_direct_F77=no
15196	  hardcode_shlibpath_var_F77=no
15197	  ;;
15198	*)
15199	  hardcode_direct_F77=yes
15200	  export_dynamic_flag_spec_F77='${wl}-E'
15201
15202	  # hardcode_minus_L: Not really in the search PATH,
15203	  # but as the default location of the library.
15204	  hardcode_minus_L_F77=yes
15205	  ;;
15206	esac
15207      fi
15208      ;;
15209
15210    irix5* | irix6* | nonstopux*)
15211      if test "$GCC" = yes; then
15212	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'
15213      else
15214	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'
15215	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15216      fi
15217      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15218      hardcode_libdir_separator_F77=:
15219      link_all_deplibs_F77=yes
15220      ;;
15221
15222    netbsd*)
15223      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15224	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15225      else
15226	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15227      fi
15228      hardcode_libdir_flag_spec_F77='-R$libdir'
15229      hardcode_direct_F77=yes
15230      hardcode_shlibpath_var_F77=no
15231      ;;
15232
15233    newsos6)
15234      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235      hardcode_direct_F77=yes
15236      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15237      hardcode_libdir_separator_F77=:
15238      hardcode_shlibpath_var_F77=no
15239      ;;
15240
15241    openbsd*)
15242      hardcode_direct_F77=yes
15243      hardcode_shlibpath_var_F77=no
15244      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15245	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15246	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15247	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15248	export_dynamic_flag_spec_F77='${wl}-E'
15249      else
15250       case $host_os in
15251	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15252	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15253	   hardcode_libdir_flag_spec_F77='-R$libdir'
15254	   ;;
15255	 *)
15256	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15257	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15258	   ;;
15259       esac
15260      fi
15261      ;;
15262
15263    os2*)
15264      hardcode_libdir_flag_spec_F77='-L$libdir'
15265      hardcode_minus_L_F77=yes
15266      allow_undefined_flag_F77=unsupported
15267      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'
15268      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15269      ;;
15270
15271    osf3*)
15272      if test "$GCC" = yes; then
15273	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15274	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'
15275      else
15276	allow_undefined_flag_F77=' -expect_unresolved \*'
15277	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'
15278      fi
15279      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15280      hardcode_libdir_separator_F77=:
15281      ;;
15282
15283    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15284      if test "$GCC" = yes; then
15285	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15286	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'
15287	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288      else
15289	allow_undefined_flag_F77=' -expect_unresolved \*'
15290	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'
15291	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~
15292	$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'
15293
15294	# Both c and cxx compiler support -rpath directly
15295	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15296      fi
15297      hardcode_libdir_separator_F77=:
15298      ;;
15299
15300    solaris*)
15301      no_undefined_flag_F77=' -z text'
15302      if test "$GCC" = yes; then
15303	wlarc='${wl}'
15304	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15305	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15307      else
15308	wlarc=''
15309	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15310	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15311  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15312      fi
15313      hardcode_libdir_flag_spec_F77='-R$libdir'
15314      hardcode_shlibpath_var_F77=no
15315      case $host_os in
15316      solaris2.[0-5] | solaris2.[0-5].*) ;;
15317      *)
15318 	# The compiler driver will combine linker options so we
15319 	# cannot just pass the convience library names through
15320 	# without $wl, iff we do not link with $LD.
15321 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15322 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15323 	case $wlarc in
15324 	'')
15325 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15326 	*)
15327 	  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' ;;
15328 	esac ;;
15329      esac
15330      link_all_deplibs_F77=yes
15331      ;;
15332
15333    sunos4*)
15334      if test "x$host_vendor" = xsequent; then
15335	# Use $CC to link under sequent, because it throws in some extra .o
15336	# files that make .init and .fini sections work.
15337	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15338      else
15339	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15340      fi
15341      hardcode_libdir_flag_spec_F77='-L$libdir'
15342      hardcode_direct_F77=yes
15343      hardcode_minus_L_F77=yes
15344      hardcode_shlibpath_var_F77=no
15345      ;;
15346
15347    sysv4)
15348      case $host_vendor in
15349	sni)
15350	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15351	  hardcode_direct_F77=yes # is this really true???
15352	;;
15353	siemens)
15354	  ## LD is ld it makes a PLAMLIB
15355	  ## CC just makes a GrossModule.
15356	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15357	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15358	  hardcode_direct_F77=no
15359        ;;
15360	motorola)
15361	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15363	;;
15364      esac
15365      runpath_var='LD_RUN_PATH'
15366      hardcode_shlibpath_var_F77=no
15367      ;;
15368
15369    sysv4.3*)
15370      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371      hardcode_shlibpath_var_F77=no
15372      export_dynamic_flag_spec_F77='-Bexport'
15373      ;;
15374
15375    sysv4*MP*)
15376      if test -d /usr/nec; then
15377	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15378	hardcode_shlibpath_var_F77=no
15379	runpath_var=LD_RUN_PATH
15380	hardcode_runpath_var=yes
15381	ld_shlibs_F77=yes
15382      fi
15383      ;;
15384
15385    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15386      no_undefined_flag_F77='${wl}-z,text'
15387      archive_cmds_need_lc_F77=no
15388      hardcode_shlibpath_var_F77=no
15389      runpath_var='LD_RUN_PATH'
15390
15391      if test "$GCC" = yes; then
15392	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15393	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15394      else
15395	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15396	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15397      fi
15398      ;;
15399
15400    sysv5* | sco3.2v5* | sco5v6*)
15401      # Note: We can NOT use -z defs as we might desire, because we do not
15402      # link with -lc, and that would cause any symbols used from libc to
15403      # always be unresolved, which means just about no library would
15404      # ever link correctly.  If we're not using GNU ld we use -z text
15405      # though, which does catch some bad symbols but isn't as heavy-handed
15406      # as -z defs.
15407      no_undefined_flag_F77='${wl}-z,text'
15408      allow_undefined_flag_F77='${wl}-z,nodefs'
15409      archive_cmds_need_lc_F77=no
15410      hardcode_shlibpath_var_F77=no
15411      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15412      hardcode_libdir_separator_F77=':'
15413      link_all_deplibs_F77=yes
15414      export_dynamic_flag_spec_F77='${wl}-Bexport'
15415      runpath_var='LD_RUN_PATH'
15416
15417      if test "$GCC" = yes; then
15418	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15419	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15420      else
15421	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15423      fi
15424      ;;
15425
15426    uts4*)
15427      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428      hardcode_libdir_flag_spec_F77='-L$libdir'
15429      hardcode_shlibpath_var_F77=no
15430      ;;
15431
15432    *)
15433      ld_shlibs_F77=no
15434      ;;
15435    esac
15436  fi
15437
15438echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15439echo "${ECHO_T}$ld_shlibs_F77" >&6
15440test "$ld_shlibs_F77" = no && can_build_shared=no
15441
15442#
15443# Do we need to explicitly link libc?
15444#
15445case "x$archive_cmds_need_lc_F77" in
15446x|xyes)
15447  # Assume -lc should be added
15448  archive_cmds_need_lc_F77=yes
15449
15450  if test "$enable_shared" = yes && test "$GCC" = yes; then
15451    case $archive_cmds_F77 in
15452    *'~'*)
15453      # FIXME: we may have to deal with multi-command sequences.
15454      ;;
15455    '$CC '*)
15456      # Test whether the compiler implicitly links with -lc since on some
15457      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15458      # to ld, don't add -lc before -lgcc.
15459      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15460echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15461      $rm conftest*
15462      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15463
15464      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465  (eval $ac_compile) 2>&5
15466  ac_status=$?
15467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468  (exit $ac_status); } 2>conftest.err; then
15469        soname=conftest
15470        lib=conftest
15471        libobjs=conftest.$ac_objext
15472        deplibs=
15473        wl=$lt_prog_compiler_wl_F77
15474	pic_flag=$lt_prog_compiler_pic_F77
15475        compiler_flags=-v
15476        linker_flags=-v
15477        verstring=
15478        output_objdir=.
15479        libname=conftest
15480        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15481        allow_undefined_flag_F77=
15482        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15483  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15484  ac_status=$?
15485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486  (exit $ac_status); }
15487        then
15488	  archive_cmds_need_lc_F77=no
15489        else
15490	  archive_cmds_need_lc_F77=yes
15491        fi
15492        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15493      else
15494        cat conftest.err 1>&5
15495      fi
15496      $rm conftest*
15497      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15498echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15499      ;;
15500    esac
15501  fi
15502  ;;
15503esac
15504
15505echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15506echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15507library_names_spec=
15508libname_spec='lib$name'
15509soname_spec=
15510shrext_cmds=".so"
15511postinstall_cmds=
15512postuninstall_cmds=
15513finish_cmds=
15514finish_eval=
15515shlibpath_var=
15516shlibpath_overrides_runpath=unknown
15517version_type=none
15518dynamic_linker="$host_os ld.so"
15519sys_lib_dlsearch_path_spec="/lib /usr/lib"
15520if test "$GCC" = yes; then
15521  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15522  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15523    # if the path contains ";" then we assume it to be the separator
15524    # otherwise default to the standard path separator (i.e. ":") - it is
15525    # assumed that no part of a normal pathname contains ";" but that should
15526    # okay in the real world where ";" in dirpaths is itself problematic.
15527    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15528  else
15529    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15530  fi
15531else
15532  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15533fi
15534need_lib_prefix=unknown
15535hardcode_into_libs=no
15536
15537# when you set need_version to no, make sure it does not cause -set_version
15538# flags to be left without arguments
15539need_version=unknown
15540
15541case $host_os in
15542aix3*)
15543  version_type=linux
15544  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15545  shlibpath_var=LIBPATH
15546
15547  # AIX 3 has no versioning support, so we append a major version to the name.
15548  soname_spec='${libname}${release}${shared_ext}$major'
15549  ;;
15550
15551aix4* | aix5*)
15552  version_type=linux
15553  need_lib_prefix=no
15554  need_version=no
15555  hardcode_into_libs=yes
15556  if test "$host_cpu" = ia64; then
15557    # AIX 5 supports IA64
15558    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15559    shlibpath_var=LD_LIBRARY_PATH
15560  else
15561    # With GCC up to 2.95.x, collect2 would create an import file
15562    # for dependence libraries.  The import file would start with
15563    # the line `#! .'.  This would cause the generated library to
15564    # depend on `.', always an invalid library.  This was fixed in
15565    # development snapshots of GCC prior to 3.0.
15566    case $host_os in
15567      aix4 | aix4.[01] | aix4.[01].*)
15568      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15569	   echo ' yes '
15570	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15571	:
15572      else
15573	can_build_shared=no
15574      fi
15575      ;;
15576    esac
15577    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15578    # soname into executable. Probably we can add versioning support to
15579    # collect2, so additional links can be useful in future.
15580    if test "$aix_use_runtimelinking" = yes; then
15581      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15582      # instead of lib<name>.a to let people know that these are not
15583      # typical AIX shared libraries.
15584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585    else
15586      # We preserve .a as extension for shared libraries through AIX4.2
15587      # and later when we are not doing run time linking.
15588      library_names_spec='${libname}${release}.a $libname.a'
15589      soname_spec='${libname}${release}${shared_ext}$major'
15590    fi
15591    shlibpath_var=LIBPATH
15592  fi
15593  ;;
15594
15595amigaos*)
15596  library_names_spec='$libname.ixlibrary $libname.a'
15597  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15598  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'
15599  ;;
15600
15601beos*)
15602  library_names_spec='${libname}${shared_ext}'
15603  dynamic_linker="$host_os ld.so"
15604  shlibpath_var=LIBRARY_PATH
15605  ;;
15606
15607bsdi[45]*)
15608  version_type=linux
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15613  shlibpath_var=LD_LIBRARY_PATH
15614  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15615  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15616  # the default ld.so.conf also contains /usr/contrib/lib and
15617  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15618  # libtool to hard-code these into programs
15619  ;;
15620
15621cygwin* | mingw* | pw32*)
15622  version_type=windows
15623  shrext_cmds=".dll"
15624  need_version=no
15625  need_lib_prefix=no
15626
15627  case $GCC,$host_os in
15628  yes,cygwin* | yes,mingw* | yes,pw32*)
15629    library_names_spec='$libname.dll.a'
15630    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15631    postinstall_cmds='base_file=`basename \${file}`~
15632      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15633      dldir=$destdir/`dirname \$dlpath`~
15634      test -d \$dldir || mkdir -p \$dldir~
15635      $install_prog $dir/$dlname \$dldir/$dlname~
15636      chmod a+x \$dldir/$dlname'
15637    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15638      dlpath=$dir/\$dldll~
15639       $rm \$dlpath'
15640    shlibpath_overrides_runpath=yes
15641
15642    case $host_os in
15643    cygwin*)
15644      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15645      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15646      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15647      ;;
15648    mingw*)
15649      # MinGW DLLs use traditional 'lib' prefix
15650      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15652      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15653        # It is most probably a Windows format PATH printed by
15654        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15655        # path with ; separators, and with drive letters. We can handle the
15656        # drive letters (cygwin fileutils understands them), so leave them,
15657        # especially as we might pass files found there to a mingw objdump,
15658        # which wouldn't understand a cygwinified path. Ahh.
15659        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15660      else
15661        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15662      fi
15663      ;;
15664    pw32*)
15665      # pw32 DLLs use 'pw' prefix rather than 'lib'
15666      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15667      ;;
15668    esac
15669    ;;
15670
15671  *)
15672    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15673    ;;
15674  esac
15675  dynamic_linker='Win32 ld.exe'
15676  # FIXME: first we should search . and the directory the executable is in
15677  shlibpath_var=PATH
15678  ;;
15679
15680darwin* | rhapsody*)
15681  dynamic_linker="$host_os dyld"
15682  version_type=darwin
15683  need_lib_prefix=no
15684  need_version=no
15685  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15686  soname_spec='${libname}${release}${major}$shared_ext'
15687  shlibpath_overrides_runpath=yes
15688  shlibpath_var=DYLD_LIBRARY_PATH
15689  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15690  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15691  if test "$GCC" = yes; then
15692    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"`
15693  else
15694    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15695  fi
15696  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15697  ;;
15698
15699dgux*)
15700  version_type=linux
15701  need_lib_prefix=no
15702  need_version=no
15703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15704  soname_spec='${libname}${release}${shared_ext}$major'
15705  shlibpath_var=LD_LIBRARY_PATH
15706  ;;
15707
15708freebsd1*)
15709  dynamic_linker=no
15710  ;;
15711
15712kfreebsd*-gnu)
15713  version_type=linux
15714  need_lib_prefix=no
15715  need_version=no
15716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717  soname_spec='${libname}${release}${shared_ext}$major'
15718  shlibpath_var=LD_LIBRARY_PATH
15719  shlibpath_overrides_runpath=no
15720  hardcode_into_libs=yes
15721  dynamic_linker='GNU ld.so'
15722  ;;
15723
15724freebsd* | dragonfly*)
15725  # DragonFly does not have aout.  When/if they implement a new
15726  # versioning mechanism, adjust this.
15727  if test -x /usr/bin/objformat; then
15728    objformat=`/usr/bin/objformat`
15729  else
15730    case $host_os in
15731    freebsd[123]*) objformat=aout ;;
15732    *) objformat=elf ;;
15733    esac
15734  fi
15735  version_type=freebsd-$objformat
15736  case $version_type in
15737    freebsd-elf*)
15738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15739      need_version=no
15740      need_lib_prefix=no
15741      ;;
15742    freebsd-*)
15743      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15744      need_version=yes
15745      ;;
15746  esac
15747  shlibpath_var=LD_LIBRARY_PATH
15748  case $host_os in
15749  freebsd2*)
15750    shlibpath_overrides_runpath=yes
15751    ;;
15752  freebsd3.[01]* | freebsdelf3.[01]*)
15753    shlibpath_overrides_runpath=yes
15754    hardcode_into_libs=yes
15755    ;;
15756  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15757  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15758    shlibpath_overrides_runpath=no
15759    hardcode_into_libs=yes
15760    ;;
15761  freebsd*) # from 4.6 on
15762    shlibpath_overrides_runpath=yes
15763    hardcode_into_libs=yes
15764    ;;
15765  esac
15766  ;;
15767
15768gnu*)
15769  version_type=linux
15770  need_lib_prefix=no
15771  need_version=no
15772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15773  soname_spec='${libname}${release}${shared_ext}$major'
15774  shlibpath_var=LD_LIBRARY_PATH
15775  hardcode_into_libs=yes
15776  ;;
15777
15778hpux9* | hpux10* | hpux11*)
15779  # Give a soname corresponding to the major version so that dld.sl refuses to
15780  # link against other versions.
15781  version_type=sunos
15782  need_lib_prefix=no
15783  need_version=no
15784  case $host_cpu in
15785  ia64*)
15786    shrext_cmds='.so'
15787    hardcode_into_libs=yes
15788    dynamic_linker="$host_os dld.so"
15789    shlibpath_var=LD_LIBRARY_PATH
15790    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792    soname_spec='${libname}${release}${shared_ext}$major'
15793    if test "X$HPUX_IA64_MODE" = X32; then
15794      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15795    else
15796      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15797    fi
15798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15799    ;;
15800   hppa*64*)
15801     shrext_cmds='.sl'
15802     hardcode_into_libs=yes
15803     dynamic_linker="$host_os dld.sl"
15804     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807     soname_spec='${libname}${release}${shared_ext}$major'
15808     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15809     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15810     ;;
15811   *)
15812    shrext_cmds='.sl'
15813    dynamic_linker="$host_os dld.sl"
15814    shlibpath_var=SHLIB_PATH
15815    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817    soname_spec='${libname}${release}${shared_ext}$major'
15818    ;;
15819  esac
15820  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15821  postinstall_cmds='chmod 555 $lib'
15822  ;;
15823
15824interix3*)
15825  version_type=linux
15826  need_lib_prefix=no
15827  need_version=no
15828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15829  soname_spec='${libname}${release}${shared_ext}$major'
15830  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15831  shlibpath_var=LD_LIBRARY_PATH
15832  shlibpath_overrides_runpath=no
15833  hardcode_into_libs=yes
15834  ;;
15835
15836irix5* | irix6* | nonstopux*)
15837  case $host_os in
15838    nonstopux*) version_type=nonstopux ;;
15839    *)
15840	if test "$lt_cv_prog_gnu_ld" = yes; then
15841		version_type=linux
15842	else
15843		version_type=irix
15844	fi ;;
15845  esac
15846  need_lib_prefix=no
15847  need_version=no
15848  soname_spec='${libname}${release}${shared_ext}$major'
15849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15850  case $host_os in
15851  irix5* | nonstopux*)
15852    libsuff= shlibsuff=
15853    ;;
15854  *)
15855    case $LD in # libtool.m4 will add one of these switches to LD
15856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15857      libsuff= shlibsuff= libmagic=32-bit;;
15858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15859      libsuff=32 shlibsuff=N32 libmagic=N32;;
15860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15862    *) libsuff= shlibsuff= libmagic=never-match;;
15863    esac
15864    ;;
15865  esac
15866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15867  shlibpath_overrides_runpath=no
15868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15870  hardcode_into_libs=yes
15871  ;;
15872
15873# No shared lib support for Linux oldld, aout, or coff.
15874linux*oldld* | linux*aout* | linux*coff*)
15875  dynamic_linker=no
15876  ;;
15877
15878# This must be Linux ELF.
15879linux*)
15880  version_type=linux
15881  need_lib_prefix=no
15882  need_version=no
15883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884  soname_spec='${libname}${release}${shared_ext}$major'
15885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15886  shlibpath_var=LD_LIBRARY_PATH
15887  shlibpath_overrides_runpath=no
15888  # This implies no fast_install, which is unacceptable.
15889  # Some rework will be needed to allow for fast_install
15890  # before this can be enabled.
15891  hardcode_into_libs=yes
15892
15893  # Append ld.so.conf contents to the search path
15894  if test -f /etc/ld.so.conf; then
15895    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' ' '`
15896    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15897  fi
15898
15899  # We used to test for /lib/ld.so.1 and disable shared libraries on
15900  # powerpc, because MkLinux only supported shared libraries with the
15901  # GNU dynamic linker.  Since this was broken with cross compilers,
15902  # most powerpc-linux boxes support dynamic linking these days and
15903  # people can always --disable-shared, the test was removed, and we
15904  # assume the GNU/Linux dynamic linker is in use.
15905  dynamic_linker='GNU/Linux ld.so'
15906  ;;
15907
15908knetbsd*-gnu)
15909  version_type=linux
15910  need_lib_prefix=no
15911  need_version=no
15912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15913  soname_spec='${libname}${release}${shared_ext}$major'
15914  shlibpath_var=LD_LIBRARY_PATH
15915  shlibpath_overrides_runpath=no
15916  hardcode_into_libs=yes
15917  dynamic_linker='GNU ld.so'
15918  ;;
15919
15920netbsd*)
15921  version_type=sunos
15922  need_lib_prefix=no
15923  need_version=no
15924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15927    dynamic_linker='NetBSD (a.out) ld.so'
15928  else
15929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15930    soname_spec='${libname}${release}${shared_ext}$major'
15931    dynamic_linker='NetBSD ld.elf_so'
15932  fi
15933  shlibpath_var=LD_LIBRARY_PATH
15934  shlibpath_overrides_runpath=yes
15935  hardcode_into_libs=yes
15936  ;;
15937
15938newsos6)
15939  version_type=linux
15940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941  shlibpath_var=LD_LIBRARY_PATH
15942  shlibpath_overrides_runpath=yes
15943  ;;
15944
15945nto-qnx*)
15946  version_type=linux
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950  soname_spec='${libname}${release}${shared_ext}$major'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  shlibpath_overrides_runpath=yes
15953  ;;
15954
15955openbsd*)
15956  version_type=sunos
15957  sys_lib_dlsearch_path_spec="/usr/lib"
15958  need_lib_prefix=no
15959  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15960  case $host_os in
15961    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15962    *)                         need_version=no  ;;
15963  esac
15964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966  shlibpath_var=LD_LIBRARY_PATH
15967  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968    case $host_os in
15969      openbsd2.[89] | openbsd2.[89].*)
15970	shlibpath_overrides_runpath=no
15971	;;
15972      *)
15973	shlibpath_overrides_runpath=yes
15974	;;
15975      esac
15976  else
15977    shlibpath_overrides_runpath=yes
15978  fi
15979  ;;
15980
15981os2*)
15982  libname_spec='$name'
15983  shrext_cmds=".dll"
15984  need_lib_prefix=no
15985  library_names_spec='$libname${shared_ext} $libname.a'
15986  dynamic_linker='OS/2 ld.exe'
15987  shlibpath_var=LIBPATH
15988  ;;
15989
15990osf3* | osf4* | osf5*)
15991  version_type=osf
15992  need_lib_prefix=no
15993  need_version=no
15994  soname_spec='${libname}${release}${shared_ext}$major'
15995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996  shlibpath_var=LD_LIBRARY_PATH
15997  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15998  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15999  ;;
16000
16001solaris*)
16002  version_type=linux
16003  need_lib_prefix=no
16004  need_version=no
16005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006  soname_spec='${libname}${release}${shared_ext}$major'
16007  shlibpath_var=LD_LIBRARY_PATH
16008  shlibpath_overrides_runpath=yes
16009  hardcode_into_libs=yes
16010  # ldd complains unless libraries are executable
16011  postinstall_cmds='chmod +x $lib'
16012  ;;
16013
16014sunos4*)
16015  version_type=sunos
16016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16017  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16018  shlibpath_var=LD_LIBRARY_PATH
16019  shlibpath_overrides_runpath=yes
16020  if test "$with_gnu_ld" = yes; then
16021    need_lib_prefix=no
16022  fi
16023  need_version=yes
16024  ;;
16025
16026sysv4 | sysv4.3*)
16027  version_type=linux
16028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029  soname_spec='${libname}${release}${shared_ext}$major'
16030  shlibpath_var=LD_LIBRARY_PATH
16031  case $host_vendor in
16032    sni)
16033      shlibpath_overrides_runpath=no
16034      need_lib_prefix=no
16035      export_dynamic_flag_spec='${wl}-Blargedynsym'
16036      runpath_var=LD_RUN_PATH
16037      ;;
16038    siemens)
16039      need_lib_prefix=no
16040      ;;
16041    motorola)
16042      need_lib_prefix=no
16043      need_version=no
16044      shlibpath_overrides_runpath=no
16045      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16046      ;;
16047  esac
16048  ;;
16049
16050sysv4*MP*)
16051  if test -d /usr/nec ;then
16052    version_type=linux
16053    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16054    soname_spec='$libname${shared_ext}.$major'
16055    shlibpath_var=LD_LIBRARY_PATH
16056  fi
16057  ;;
16058
16059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16060  version_type=freebsd-elf
16061  need_lib_prefix=no
16062  need_version=no
16063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16064  soname_spec='${libname}${release}${shared_ext}$major'
16065  shlibpath_var=LD_LIBRARY_PATH
16066  hardcode_into_libs=yes
16067  if test "$with_gnu_ld" = yes; then
16068    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16069    shlibpath_overrides_runpath=no
16070  else
16071    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16072    shlibpath_overrides_runpath=yes
16073    case $host_os in
16074      sco3.2v5*)
16075        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16076	;;
16077    esac
16078  fi
16079  sys_lib_dlsearch_path_spec='/usr/lib'
16080  ;;
16081
16082uts4*)
16083  version_type=linux
16084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085  soname_spec='${libname}${release}${shared_ext}$major'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  ;;
16088
16089*)
16090  dynamic_linker=no
16091  ;;
16092esac
16093echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16094echo "${ECHO_T}$dynamic_linker" >&6
16095test "$dynamic_linker" = no && can_build_shared=no
16096
16097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098if test "$GCC" = yes; then
16099  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100fi
16101
16102echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16104hardcode_action_F77=
16105if test -n "$hardcode_libdir_flag_spec_F77" || \
16106   test -n "$runpath_var_F77" || \
16107   test "X$hardcode_automatic_F77" = "Xyes" ; then
16108
16109  # We can hardcode non-existant directories.
16110  if test "$hardcode_direct_F77" != no &&
16111     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16112     # have to relink, otherwise we might link with an installed library
16113     # when we should be linking with a yet-to-be-installed one
16114     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16115     test "$hardcode_minus_L_F77" != no; then
16116    # Linking always hardcodes the temporary library directory.
16117    hardcode_action_F77=relink
16118  else
16119    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16120    hardcode_action_F77=immediate
16121  fi
16122else
16123  # We cannot hardcode anything, or else we can only hardcode existing
16124  # directories.
16125  hardcode_action_F77=unsupported
16126fi
16127echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16128echo "${ECHO_T}$hardcode_action_F77" >&6
16129
16130if test "$hardcode_action_F77" = relink; then
16131  # Fast installation is not supported
16132  enable_fast_install=no
16133elif test "$shlibpath_overrides_runpath" = yes ||
16134     test "$enable_shared" = no; then
16135  # Fast installation is not necessary
16136  enable_fast_install=needless
16137fi
16138
16139
16140# The else clause should only fire when bootstrapping the
16141# libtool distribution, otherwise you forgot to ship ltmain.sh
16142# with your package, and you will get complaints that there are
16143# no rules to generate ltmain.sh.
16144if test -f "$ltmain"; then
16145  # See if we are running on zsh, and set the options which allow our commands through
16146  # without removal of \ escapes.
16147  if test -n "${ZSH_VERSION+set}" ; then
16148    setopt NO_GLOB_SUBST
16149  fi
16150  # Now quote all the things that may contain metacharacters while being
16151  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16152  # variables and quote the copies for generation of the libtool script.
16153  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16154    SED SHELL STRIP \
16155    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16156    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16157    deplibs_check_method reload_flag reload_cmds need_locks \
16158    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16159    lt_cv_sys_global_symbol_to_c_name_address \
16160    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16161    old_postinstall_cmds old_postuninstall_cmds \
16162    compiler_F77 \
16163    CC_F77 \
16164    LD_F77 \
16165    lt_prog_compiler_wl_F77 \
16166    lt_prog_compiler_pic_F77 \
16167    lt_prog_compiler_static_F77 \
16168    lt_prog_compiler_no_builtin_flag_F77 \
16169    export_dynamic_flag_spec_F77 \
16170    thread_safe_flag_spec_F77 \
16171    whole_archive_flag_spec_F77 \
16172    enable_shared_with_static_runtimes_F77 \
16173    old_archive_cmds_F77 \
16174    old_archive_from_new_cmds_F77 \
16175    predep_objects_F77 \
16176    postdep_objects_F77 \
16177    predeps_F77 \
16178    postdeps_F77 \
16179    compiler_lib_search_path_F77 \
16180    archive_cmds_F77 \
16181    archive_expsym_cmds_F77 \
16182    postinstall_cmds_F77 \
16183    postuninstall_cmds_F77 \
16184    old_archive_from_expsyms_cmds_F77 \
16185    allow_undefined_flag_F77 \
16186    no_undefined_flag_F77 \
16187    export_symbols_cmds_F77 \
16188    hardcode_libdir_flag_spec_F77 \
16189    hardcode_libdir_flag_spec_ld_F77 \
16190    hardcode_libdir_separator_F77 \
16191    hardcode_automatic_F77 \
16192    module_cmds_F77 \
16193    module_expsym_cmds_F77 \
16194    lt_cv_prog_compiler_c_o_F77 \
16195    exclude_expsyms_F77 \
16196    include_expsyms_F77; do
16197
16198    case $var in
16199    old_archive_cmds_F77 | \
16200    old_archive_from_new_cmds_F77 | \
16201    archive_cmds_F77 | \
16202    archive_expsym_cmds_F77 | \
16203    module_cmds_F77 | \
16204    module_expsym_cmds_F77 | \
16205    old_archive_from_expsyms_cmds_F77 | \
16206    export_symbols_cmds_F77 | \
16207    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16208    postinstall_cmds | postuninstall_cmds | \
16209    old_postinstall_cmds | old_postuninstall_cmds | \
16210    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16211      # Double-quote double-evaled strings.
16212      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16213      ;;
16214    *)
16215      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16216      ;;
16217    esac
16218  done
16219
16220  case $lt_echo in
16221  *'\$0 --fallback-echo"')
16222    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16223    ;;
16224  esac
16225
16226cfgfile="$ofile"
16227
16228  cat <<__EOF__ >> "$cfgfile"
16229# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16230
16231# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16232
16233# Shell to use when invoking shell scripts.
16234SHELL=$lt_SHELL
16235
16236# Whether or not to build shared libraries.
16237build_libtool_libs=$enable_shared
16238
16239# Whether or not to build static libraries.
16240build_old_libs=$enable_static
16241
16242# Whether or not to add -lc for building shared libraries.
16243build_libtool_need_lc=$archive_cmds_need_lc_F77
16244
16245# Whether or not to disallow shared libs when runtime libs are static
16246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16247
16248# Whether or not to optimize for fast installation.
16249fast_install=$enable_fast_install
16250
16251# The host system.
16252host_alias=$host_alias
16253host=$host
16254host_os=$host_os
16255
16256# The build system.
16257build_alias=$build_alias
16258build=$build
16259build_os=$build_os
16260
16261# An echo program that does not interpret backslashes.
16262echo=$lt_echo
16263
16264# The archiver.
16265AR=$lt_AR
16266AR_FLAGS=$lt_AR_FLAGS
16267
16268# A C compiler.
16269LTCC=$lt_LTCC
16270
16271# LTCC compiler flags.
16272LTCFLAGS=$lt_LTCFLAGS
16273
16274# A language-specific compiler.
16275CC=$lt_compiler_F77
16276
16277# Is the compiler the GNU C compiler?
16278with_gcc=$GCC_F77
16279
16280# An ERE matcher.
16281EGREP=$lt_EGREP
16282
16283# The linker used to build libraries.
16284LD=$lt_LD_F77
16285
16286# Whether we need hard or soft links.
16287LN_S=$lt_LN_S
16288
16289# A BSD-compatible nm program.
16290NM=$lt_NM
16291
16292# A symbol stripping program
16293STRIP=$lt_STRIP
16294
16295# Used to examine libraries when file_magic_cmd begins "file"
16296MAGIC_CMD=$MAGIC_CMD
16297
16298# Used on cygwin: DLL creation program.
16299DLLTOOL="$DLLTOOL"
16300
16301# Used on cygwin: object dumper.
16302OBJDUMP="$OBJDUMP"
16303
16304# Used on cygwin: assembler.
16305AS="$AS"
16306
16307# The name of the directory that contains temporary libtool files.
16308objdir=$objdir
16309
16310# How to create reloadable object files.
16311reload_flag=$lt_reload_flag
16312reload_cmds=$lt_reload_cmds
16313
16314# How to pass a linker flag through the compiler.
16315wl=$lt_lt_prog_compiler_wl_F77
16316
16317# Object file suffix (normally "o").
16318objext="$ac_objext"
16319
16320# Old archive suffix (normally "a").
16321libext="$libext"
16322
16323# Shared library suffix (normally ".so").
16324shrext_cmds='$shrext_cmds'
16325
16326# Executable file suffix (normally "").
16327exeext="$exeext"
16328
16329# Additional compiler flags for building library objects.
16330pic_flag=$lt_lt_prog_compiler_pic_F77
16331pic_mode=$pic_mode
16332
16333# What is the maximum length of a command?
16334max_cmd_len=$lt_cv_sys_max_cmd_len
16335
16336# Does compiler simultaneously support -c and -o options?
16337compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16338
16339# Must we lock files when doing compilation?
16340need_locks=$lt_need_locks
16341
16342# Do we need the lib prefix for modules?
16343need_lib_prefix=$need_lib_prefix
16344
16345# Do we need a version for libraries?
16346need_version=$need_version
16347
16348# Whether dlopen is supported.
16349dlopen_support=$enable_dlopen
16350
16351# Whether dlopen of programs is supported.
16352dlopen_self=$enable_dlopen_self
16353
16354# Whether dlopen of statically linked programs is supported.
16355dlopen_self_static=$enable_dlopen_self_static
16356
16357# Compiler flag to prevent dynamic linking.
16358link_static_flag=$lt_lt_prog_compiler_static_F77
16359
16360# Compiler flag to turn off builtin functions.
16361no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16362
16363# Compiler flag to allow reflexive dlopens.
16364export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16365
16366# Compiler flag to generate shared objects directly from archives.
16367whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16368
16369# Compiler flag to generate thread-safe objects.
16370thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16371
16372# Library versioning type.
16373version_type=$version_type
16374
16375# Format of library name prefix.
16376libname_spec=$lt_libname_spec
16377
16378# List of archive names.  First name is the real one, the rest are links.
16379# The last name is the one that the linker finds with -lNAME.
16380library_names_spec=$lt_library_names_spec
16381
16382# The coded name of the library, if different from the real name.
16383soname_spec=$lt_soname_spec
16384
16385# Commands used to build and install an old-style archive.
16386RANLIB=$lt_RANLIB
16387old_archive_cmds=$lt_old_archive_cmds_F77
16388old_postinstall_cmds=$lt_old_postinstall_cmds
16389old_postuninstall_cmds=$lt_old_postuninstall_cmds
16390
16391# Create an old-style archive from a shared archive.
16392old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16393
16394# Create a temporary old-style archive to link instead of a shared archive.
16395old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16396
16397# Commands used to build and install a shared archive.
16398archive_cmds=$lt_archive_cmds_F77
16399archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16400postinstall_cmds=$lt_postinstall_cmds
16401postuninstall_cmds=$lt_postuninstall_cmds
16402
16403# Commands used to build a loadable module (assumed same as above if empty)
16404module_cmds=$lt_module_cmds_F77
16405module_expsym_cmds=$lt_module_expsym_cmds_F77
16406
16407# Commands to strip libraries.
16408old_striplib=$lt_old_striplib
16409striplib=$lt_striplib
16410
16411# Dependencies to place before the objects being linked to create a
16412# shared library.
16413predep_objects=$lt_predep_objects_F77
16414
16415# Dependencies to place after the objects being linked to create a
16416# shared library.
16417postdep_objects=$lt_postdep_objects_F77
16418
16419# Dependencies to place before the objects being linked to create a
16420# shared library.
16421predeps=$lt_predeps_F77
16422
16423# Dependencies to place after the objects being linked to create a
16424# shared library.
16425postdeps=$lt_postdeps_F77
16426
16427# The library search path used internally by the compiler when linking
16428# a shared library.
16429compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16430
16431# Method to check whether dependent libraries are shared objects.
16432deplibs_check_method=$lt_deplibs_check_method
16433
16434# Command to use when deplibs_check_method == file_magic.
16435file_magic_cmd=$lt_file_magic_cmd
16436
16437# Flag that allows shared libraries with undefined symbols to be built.
16438allow_undefined_flag=$lt_allow_undefined_flag_F77
16439
16440# Flag that forces no undefined symbols.
16441no_undefined_flag=$lt_no_undefined_flag_F77
16442
16443# Commands used to finish a libtool library installation in a directory.
16444finish_cmds=$lt_finish_cmds
16445
16446# Same as above, but a single script fragment to be evaled but not shown.
16447finish_eval=$lt_finish_eval
16448
16449# Take the output of nm and produce a listing of raw symbols and C names.
16450global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16451
16452# Transform the output of nm in a proper C declaration
16453global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16454
16455# Transform the output of nm in a C name address pair
16456global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16457
16458# This is the shared library runtime path variable.
16459runpath_var=$runpath_var
16460
16461# This is the shared library path variable.
16462shlibpath_var=$shlibpath_var
16463
16464# Is shlibpath searched before the hard-coded library search path?
16465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16466
16467# How to hardcode a shared library path into an executable.
16468hardcode_action=$hardcode_action_F77
16469
16470# Whether we should hardcode library paths into libraries.
16471hardcode_into_libs=$hardcode_into_libs
16472
16473# Flag to hardcode \$libdir into a binary during linking.
16474# This must work even if \$libdir does not exist.
16475hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16476
16477# If ld is used when linking, flag to hardcode \$libdir into
16478# a binary during linking. This must work even if \$libdir does
16479# not exist.
16480hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16481
16482# Whether we need a single -rpath flag with a separated argument.
16483hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16484
16485# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16486# resulting binary.
16487hardcode_direct=$hardcode_direct_F77
16488
16489# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16490# resulting binary.
16491hardcode_minus_L=$hardcode_minus_L_F77
16492
16493# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16494# the resulting binary.
16495hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16496
16497# Set to yes if building a shared library automatically hardcodes DIR into the library
16498# and all subsequent libraries and executables linked against it.
16499hardcode_automatic=$hardcode_automatic_F77
16500
16501# Variables whose values should be saved in libtool wrapper scripts and
16502# restored at relink time.
16503variables_saved_for_relink="$variables_saved_for_relink"
16504
16505# Whether libtool must link a program against all its dependency libraries.
16506link_all_deplibs=$link_all_deplibs_F77
16507
16508# Compile-time system search path for libraries
16509sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16510
16511# Run-time system search path for libraries
16512sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16513
16514# Fix the shell variable \$srcfile for the compiler.
16515fix_srcfile_path="$fix_srcfile_path_F77"
16516
16517# Set to yes if exported symbols are required.
16518always_export_symbols=$always_export_symbols_F77
16519
16520# The commands to list exported symbols.
16521export_symbols_cmds=$lt_export_symbols_cmds_F77
16522
16523# The commands to extract the exported symbol list from a shared archive.
16524extract_expsyms_cmds=$lt_extract_expsyms_cmds
16525
16526# Symbols that should not be listed in the preloaded symbols.
16527exclude_expsyms=$lt_exclude_expsyms_F77
16528
16529# Symbols that must always be exported.
16530include_expsyms=$lt_include_expsyms_F77
16531
16532# ### END LIBTOOL TAG CONFIG: $tagname
16533
16534__EOF__
16535
16536
16537else
16538  # If there is no Makefile yet, we rely on a make rule to execute
16539  # `config.status --recheck' to rerun these tests and create the
16540  # libtool script then.
16541  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16542  if test -f "$ltmain_in"; then
16543    test -f Makefile && make "$ltmain"
16544  fi
16545fi
16546
16547
16548ac_ext=c
16549ac_cpp='$CPP $CPPFLAGS'
16550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552ac_compiler_gnu=$ac_cv_c_compiler_gnu
16553
16554CC="$lt_save_CC"
16555
16556	else
16557	  tagname=""
16558	fi
16559	;;
16560
16561      GCJ)
16562	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16563
16564
16565
16566# Source file extension for Java test sources.
16567ac_ext=java
16568
16569# Object file extension for compiled Java test sources.
16570objext=o
16571objext_GCJ=$objext
16572
16573# Code to be used in simple compile tests
16574lt_simple_compile_test_code="class foo {}\n"
16575
16576# Code to be used in simple link tests
16577lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16578
16579# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16580
16581# If no C compiler was specified, use CC.
16582LTCC=${LTCC-"$CC"}
16583
16584# If no C compiler flags were specified, use CFLAGS.
16585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16586
16587# Allow CC to be a program name with arguments.
16588compiler=$CC
16589
16590
16591# save warnings/boilerplate of simple test code
16592ac_outfile=conftest.$ac_objext
16593printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16594eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16595_lt_compiler_boilerplate=`cat conftest.err`
16596$rm conftest*
16597
16598ac_outfile=conftest.$ac_objext
16599printf "$lt_simple_link_test_code" >conftest.$ac_ext
16600eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16601_lt_linker_boilerplate=`cat conftest.err`
16602$rm conftest*
16603
16604
16605# Allow CC to be a program name with arguments.
16606lt_save_CC="$CC"
16607CC=${GCJ-"gcj"}
16608compiler=$CC
16609compiler_GCJ=$CC
16610for cc_temp in $compiler""; do
16611  case $cc_temp in
16612    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16613    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16614    \-*) ;;
16615    *) break;;
16616  esac
16617done
16618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16619
16620
16621# GCJ did not exist at the time GCC didn't implicitly link libc in.
16622archive_cmds_need_lc_GCJ=no
16623
16624old_archive_cmds_GCJ=$old_archive_cmds
16625
16626## CAVEAT EMPTOR:
16627## There is no encapsulation within the following macros, do not change
16628## the running order or otherwise move them around unless you know exactly
16629## what you are doing...
16630
16631lt_prog_compiler_no_builtin_flag_GCJ=
16632
16633if test "$GCC" = yes; then
16634  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16635
16636
16637echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16638echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16639if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16640  echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642  lt_cv_prog_compiler_rtti_exceptions=no
16643  ac_outfile=conftest.$ac_objext
16644   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16645   lt_compiler_flag="-fno-rtti -fno-exceptions"
16646   # Insert the option either (1) after the last *FLAGS variable, or
16647   # (2) before a word containing "conftest.", or (3) at the end.
16648   # Note that $ac_compile itself does not contain backslashes and begins
16649   # with a dollar sign (not a hyphen), so the echo should work correctly.
16650   # The option is referenced via a variable to avoid confusing sed.
16651   lt_compile=`echo "$ac_compile" | $SED \
16652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16654   -e 's:$: $lt_compiler_flag:'`
16655   (eval echo "\"\$as_me:16655: $lt_compile\"" >&5)
16656   (eval "$lt_compile" 2>conftest.err)
16657   ac_status=$?
16658   cat conftest.err >&5
16659   echo "$as_me:16659: \$? = $ac_status" >&5
16660   if (exit $ac_status) && test -s "$ac_outfile"; then
16661     # The compiler can only warn and ignore the option if not recognized
16662     # So say no if there are warnings other than the usual output.
16663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16666       lt_cv_prog_compiler_rtti_exceptions=yes
16667     fi
16668   fi
16669   $rm conftest*
16670
16671fi
16672echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16673echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16674
16675if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16676    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16677else
16678    :
16679fi
16680
16681fi
16682
16683lt_prog_compiler_wl_GCJ=
16684lt_prog_compiler_pic_GCJ=
16685lt_prog_compiler_static_GCJ=
16686
16687echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16688echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16689
16690  if test "$GCC" = yes; then
16691    lt_prog_compiler_wl_GCJ='-Wl,'
16692    lt_prog_compiler_static_GCJ='-static'
16693
16694    case $host_os in
16695      aix*)
16696      # All AIX code is PIC.
16697      if test "$host_cpu" = ia64; then
16698	# AIX 5 now supports IA64 processor
16699	lt_prog_compiler_static_GCJ='-Bstatic'
16700      fi
16701      ;;
16702
16703    amigaos*)
16704      # FIXME: we need at least 68020 code to build shared libraries, but
16705      # adding the `-m68020' flag to GCC prevents building anything better,
16706      # like `-m68040'.
16707      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16708      ;;
16709
16710    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16711      # PIC is the default for these OSes.
16712      ;;
16713
16714    mingw* | pw32* | os2*)
16715      # This hack is so that the source file can tell whether it is being
16716      # built for inclusion in a dll (and should export symbols for example).
16717      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16718      ;;
16719
16720    darwin* | rhapsody*)
16721      # PIC is the default on this platform
16722      # Common symbols not allowed in MH_DYLIB files
16723      lt_prog_compiler_pic_GCJ='-fno-common'
16724      ;;
16725
16726    interix3*)
16727      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16728      # Instead, we relocate shared libraries at runtime.
16729      ;;
16730
16731    msdosdjgpp*)
16732      # Just because we use GCC doesn't mean we suddenly get shared libraries
16733      # on systems that don't support them.
16734      lt_prog_compiler_can_build_shared_GCJ=no
16735      enable_shared=no
16736      ;;
16737
16738    sysv4*MP*)
16739      if test -d /usr/nec; then
16740	lt_prog_compiler_pic_GCJ=-Kconform_pic
16741      fi
16742      ;;
16743
16744    hpux*)
16745      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16746      # not for PA HP-UX.
16747      case $host_cpu in
16748      hppa*64*|ia64*)
16749	# +Z the default
16750	;;
16751      *)
16752	lt_prog_compiler_pic_GCJ='-fPIC'
16753	;;
16754      esac
16755      ;;
16756
16757    *)
16758      lt_prog_compiler_pic_GCJ='-fPIC'
16759      ;;
16760    esac
16761  else
16762    # PORTME Check for flag to pass linker flags through the system compiler.
16763    case $host_os in
16764    aix*)
16765      lt_prog_compiler_wl_GCJ='-Wl,'
16766      if test "$host_cpu" = ia64; then
16767	# AIX 5 now supports IA64 processor
16768	lt_prog_compiler_static_GCJ='-Bstatic'
16769      else
16770	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16771      fi
16772      ;;
16773      darwin*)
16774        # PIC is the default on this platform
16775        # Common symbols not allowed in MH_DYLIB files
16776       case $cc_basename in
16777         xlc*)
16778         lt_prog_compiler_pic_GCJ='-qnocommon'
16779         lt_prog_compiler_wl_GCJ='-Wl,'
16780         ;;
16781       esac
16782       ;;
16783
16784    mingw* | pw32* | os2*)
16785      # This hack is so that the source file can tell whether it is being
16786      # built for inclusion in a dll (and should export symbols for example).
16787      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16788      ;;
16789
16790    hpux9* | hpux10* | hpux11*)
16791      lt_prog_compiler_wl_GCJ='-Wl,'
16792      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16793      # not for PA HP-UX.
16794      case $host_cpu in
16795      hppa*64*|ia64*)
16796	# +Z the default
16797	;;
16798      *)
16799	lt_prog_compiler_pic_GCJ='+Z'
16800	;;
16801      esac
16802      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16803      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16804      ;;
16805
16806    irix5* | irix6* | nonstopux*)
16807      lt_prog_compiler_wl_GCJ='-Wl,'
16808      # PIC (with -KPIC) is the default.
16809      lt_prog_compiler_static_GCJ='-non_shared'
16810      ;;
16811
16812    newsos6)
16813      lt_prog_compiler_pic_GCJ='-KPIC'
16814      lt_prog_compiler_static_GCJ='-Bstatic'
16815      ;;
16816
16817    linux*)
16818      case $cc_basename in
16819      icc* | ecc*)
16820	lt_prog_compiler_wl_GCJ='-Wl,'
16821	lt_prog_compiler_pic_GCJ='-KPIC'
16822	lt_prog_compiler_static_GCJ='-static'
16823        ;;
16824      pgcc* | pgf77* | pgf90* | pgf95*)
16825        # Portland Group compilers (*not* the Pentium gcc compiler,
16826	# which looks to be a dead project)
16827	lt_prog_compiler_wl_GCJ='-Wl,'
16828	lt_prog_compiler_pic_GCJ='-fpic'
16829	lt_prog_compiler_static_GCJ='-Bstatic'
16830        ;;
16831      ccc*)
16832        lt_prog_compiler_wl_GCJ='-Wl,'
16833        # All Alpha code is PIC.
16834        lt_prog_compiler_static_GCJ='-non_shared'
16835        ;;
16836      esac
16837      ;;
16838
16839    osf3* | osf4* | osf5*)
16840      lt_prog_compiler_wl_GCJ='-Wl,'
16841      # All OSF/1 code is PIC.
16842      lt_prog_compiler_static_GCJ='-non_shared'
16843      ;;
16844
16845    solaris*)
16846      lt_prog_compiler_pic_GCJ='-KPIC'
16847      lt_prog_compiler_static_GCJ='-Bstatic'
16848      case $cc_basename in
16849      f77* | f90* | f95*)
16850	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16851      *)
16852	lt_prog_compiler_wl_GCJ='-Wl,';;
16853      esac
16854      ;;
16855
16856    sunos4*)
16857      lt_prog_compiler_wl_GCJ='-Qoption ld '
16858      lt_prog_compiler_pic_GCJ='-PIC'
16859      lt_prog_compiler_static_GCJ='-Bstatic'
16860      ;;
16861
16862    sysv4 | sysv4.2uw2* | sysv4.3*)
16863      lt_prog_compiler_wl_GCJ='-Wl,'
16864      lt_prog_compiler_pic_GCJ='-KPIC'
16865      lt_prog_compiler_static_GCJ='-Bstatic'
16866      ;;
16867
16868    sysv4*MP*)
16869      if test -d /usr/nec ;then
16870	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16871	lt_prog_compiler_static_GCJ='-Bstatic'
16872      fi
16873      ;;
16874
16875    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16876      lt_prog_compiler_wl_GCJ='-Wl,'
16877      lt_prog_compiler_pic_GCJ='-KPIC'
16878      lt_prog_compiler_static_GCJ='-Bstatic'
16879      ;;
16880
16881    unicos*)
16882      lt_prog_compiler_wl_GCJ='-Wl,'
16883      lt_prog_compiler_can_build_shared_GCJ=no
16884      ;;
16885
16886    uts4*)
16887      lt_prog_compiler_pic_GCJ='-pic'
16888      lt_prog_compiler_static_GCJ='-Bstatic'
16889      ;;
16890
16891    *)
16892      lt_prog_compiler_can_build_shared_GCJ=no
16893      ;;
16894    esac
16895  fi
16896
16897echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16898echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16899
16900#
16901# Check to make sure the PIC flag actually works.
16902#
16903if test -n "$lt_prog_compiler_pic_GCJ"; then
16904
16905echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16906echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16907if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16908  echo $ECHO_N "(cached) $ECHO_C" >&6
16909else
16910  lt_prog_compiler_pic_works_GCJ=no
16911  ac_outfile=conftest.$ac_objext
16912   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16913   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16914   # Insert the option either (1) after the last *FLAGS variable, or
16915   # (2) before a word containing "conftest.", or (3) at the end.
16916   # Note that $ac_compile itself does not contain backslashes and begins
16917   # with a dollar sign (not a hyphen), so the echo should work correctly.
16918   # The option is referenced via a variable to avoid confusing sed.
16919   lt_compile=`echo "$ac_compile" | $SED \
16920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16922   -e 's:$: $lt_compiler_flag:'`
16923   (eval echo "\"\$as_me:16923: $lt_compile\"" >&5)
16924   (eval "$lt_compile" 2>conftest.err)
16925   ac_status=$?
16926   cat conftest.err >&5
16927   echo "$as_me:16927: \$? = $ac_status" >&5
16928   if (exit $ac_status) && test -s "$ac_outfile"; then
16929     # The compiler can only warn and ignore the option if not recognized
16930     # So say no if there are warnings other than the usual output.
16931     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16934       lt_prog_compiler_pic_works_GCJ=yes
16935     fi
16936   fi
16937   $rm conftest*
16938
16939fi
16940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16941echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16942
16943if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16944    case $lt_prog_compiler_pic_GCJ in
16945     "" | " "*) ;;
16946     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16947     esac
16948else
16949    lt_prog_compiler_pic_GCJ=
16950     lt_prog_compiler_can_build_shared_GCJ=no
16951fi
16952
16953fi
16954case $host_os in
16955  # For platforms which do not support PIC, -DPIC is meaningless:
16956  *djgpp*)
16957    lt_prog_compiler_pic_GCJ=
16958    ;;
16959  *)
16960    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16961    ;;
16962esac
16963
16964#
16965# Check to make sure the static flag actually works.
16966#
16967wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16968echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16969echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16970if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16971  echo $ECHO_N "(cached) $ECHO_C" >&6
16972else
16973  lt_prog_compiler_static_works_GCJ=no
16974   save_LDFLAGS="$LDFLAGS"
16975   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16976   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16977   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16978     # The linker can only warn and ignore the option if not recognized
16979     # So say no if there are warnings
16980     if test -s conftest.err; then
16981       # Append any errors to the config.log.
16982       cat conftest.err 1>&5
16983       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16984       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985       if diff conftest.exp conftest.er2 >/dev/null; then
16986         lt_prog_compiler_static_works_GCJ=yes
16987       fi
16988     else
16989       lt_prog_compiler_static_works_GCJ=yes
16990     fi
16991   fi
16992   $rm conftest*
16993   LDFLAGS="$save_LDFLAGS"
16994
16995fi
16996echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16997echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16998
16999if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17000    :
17001else
17002    lt_prog_compiler_static_GCJ=
17003fi
17004
17005
17006echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17007echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17008if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17009  echo $ECHO_N "(cached) $ECHO_C" >&6
17010else
17011  lt_cv_prog_compiler_c_o_GCJ=no
17012   $rm -r conftest 2>/dev/null
17013   mkdir conftest
17014   cd conftest
17015   mkdir out
17016   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17017
17018   lt_compiler_flag="-o out/conftest2.$ac_objext"
17019   # Insert the option either (1) after the last *FLAGS variable, or
17020   # (2) before a word containing "conftest.", or (3) at the end.
17021   # Note that $ac_compile itself does not contain backslashes and begins
17022   # with a dollar sign (not a hyphen), so the echo should work correctly.
17023   lt_compile=`echo "$ac_compile" | $SED \
17024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17026   -e 's:$: $lt_compiler_flag:'`
17027   (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
17028   (eval "$lt_compile" 2>out/conftest.err)
17029   ac_status=$?
17030   cat out/conftest.err >&5
17031   echo "$as_me:17031: \$? = $ac_status" >&5
17032   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17033   then
17034     # The compiler can only warn and ignore the option if not recognized
17035     # So say no if there are warnings
17036     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17037     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17038     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17039       lt_cv_prog_compiler_c_o_GCJ=yes
17040     fi
17041   fi
17042   chmod u+w . 2>&5
17043   $rm conftest*
17044   # SGI C++ compiler will create directory out/ii_files/ for
17045   # template instantiation
17046   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17047   $rm out/* && rmdir out
17048   cd ..
17049   rmdir conftest
17050   $rm conftest*
17051
17052fi
17053echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17054echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17055
17056
17057hard_links="nottested"
17058if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17059  # do not overwrite the value of need_locks provided by the user
17060  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17061echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17062  hard_links=yes
17063  $rm conftest*
17064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17065  touch conftest.a
17066  ln conftest.a conftest.b 2>&5 || hard_links=no
17067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17068  echo "$as_me:$LINENO: result: $hard_links" >&5
17069echo "${ECHO_T}$hard_links" >&6
17070  if test "$hard_links" = no; then
17071    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17072echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17073    need_locks=warn
17074  fi
17075else
17076  need_locks=no
17077fi
17078
17079echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17080echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17081
17082  runpath_var=
17083  allow_undefined_flag_GCJ=
17084  enable_shared_with_static_runtimes_GCJ=no
17085  archive_cmds_GCJ=
17086  archive_expsym_cmds_GCJ=
17087  old_archive_From_new_cmds_GCJ=
17088  old_archive_from_expsyms_cmds_GCJ=
17089  export_dynamic_flag_spec_GCJ=
17090  whole_archive_flag_spec_GCJ=
17091  thread_safe_flag_spec_GCJ=
17092  hardcode_libdir_flag_spec_GCJ=
17093  hardcode_libdir_flag_spec_ld_GCJ=
17094  hardcode_libdir_separator_GCJ=
17095  hardcode_direct_GCJ=no
17096  hardcode_minus_L_GCJ=no
17097  hardcode_shlibpath_var_GCJ=unsupported
17098  link_all_deplibs_GCJ=unknown
17099  hardcode_automatic_GCJ=no
17100  module_cmds_GCJ=
17101  module_expsym_cmds_GCJ=
17102  always_export_symbols_GCJ=no
17103  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17104  # include_expsyms should be a list of space-separated symbols to be *always*
17105  # included in the symbol list
17106  include_expsyms_GCJ=
17107  # exclude_expsyms can be an extended regexp of symbols to exclude
17108  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17109  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17110  # as well as any symbol that contains `d'.
17111  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17112  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17113  # platforms (ab)use it in PIC code, but their linkers get confused if
17114  # the symbol is explicitly referenced.  Since portable code cannot
17115  # rely on this symbol name, it's probably fine to never include it in
17116  # preloaded symbol tables.
17117  extract_expsyms_cmds=
17118  # Just being paranoid about ensuring that cc_basename is set.
17119  for cc_temp in $compiler""; do
17120  case $cc_temp in
17121    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17122    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17123    \-*) ;;
17124    *) break;;
17125  esac
17126done
17127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17128
17129  case $host_os in
17130  cygwin* | mingw* | pw32*)
17131    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17132    # When not using gcc, we currently assume that we are using
17133    # Microsoft Visual C++.
17134    if test "$GCC" != yes; then
17135      with_gnu_ld=no
17136    fi
17137    ;;
17138  interix*)
17139    # we just hope/assume this is gcc and not c89 (= MSVC++)
17140    with_gnu_ld=yes
17141    ;;
17142  openbsd*)
17143    with_gnu_ld=no
17144    ;;
17145  esac
17146
17147  ld_shlibs_GCJ=yes
17148  if test "$with_gnu_ld" = yes; then
17149    # If archive_cmds runs LD, not CC, wlarc should be empty
17150    wlarc='${wl}'
17151
17152    # Set some defaults for GNU ld with shared library support. These
17153    # are reset later if shared libraries are not supported. Putting them
17154    # here allows them to be overridden if necessary.
17155    runpath_var=LD_RUN_PATH
17156    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17157    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17158    # ancient GNU ld didn't support --whole-archive et. al.
17159    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17160	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17161      else
17162  	whole_archive_flag_spec_GCJ=
17163    fi
17164    supports_anon_versioning=no
17165    case `$LD -v 2>/dev/null` in
17166      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17167      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17168      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17169      *\ 2.11.*) ;; # other 2.11 versions
17170      *) supports_anon_versioning=yes ;;
17171    esac
17172
17173    # See if GNU ld supports shared libraries.
17174    case $host_os in
17175    aix3* | aix4* | aix5*)
17176      # On AIX/PPC, the GNU linker is very broken
17177      if test "$host_cpu" != ia64; then
17178	ld_shlibs_GCJ=no
17179	cat <<EOF 1>&2
17180
17181*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17182*** to be unable to reliably create shared libraries on AIX.
17183*** Therefore, libtool is disabling shared libraries support.  If you
17184*** really care for shared libraries, you may want to modify your PATH
17185*** so that a non-GNU linker is found, and then restart.
17186
17187EOF
17188      fi
17189      ;;
17190
17191    amigaos*)
17192      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)'
17193      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17194      hardcode_minus_L_GCJ=yes
17195
17196      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17197      # that the semantics of dynamic libraries on AmigaOS, at least up
17198      # to version 4, is to share data among multiple programs linked
17199      # with the same dynamic library.  Since this doesn't match the
17200      # behavior of shared libraries on other platforms, we can't use
17201      # them.
17202      ld_shlibs_GCJ=no
17203      ;;
17204
17205    beos*)
17206      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17207	allow_undefined_flag_GCJ=unsupported
17208	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17209	# support --undefined.  This deserves some investigation.  FIXME
17210	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17211      else
17212	ld_shlibs_GCJ=no
17213      fi
17214      ;;
17215
17216    cygwin* | mingw* | pw32*)
17217      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17218      # as there is no search path for DLLs.
17219      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220      allow_undefined_flag_GCJ=unsupported
17221      always_export_symbols_GCJ=no
17222      enable_shared_with_static_runtimes_GCJ=yes
17223      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17224
17225      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17226        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17227	# If the export-symbols file already is a .def file (1st line
17228	# is EXPORTS), use it as is; otherwise, prepend...
17229	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17230	  cp $export_symbols $output_objdir/$soname.def;
17231	else
17232	  echo EXPORTS > $output_objdir/$soname.def;
17233	  cat $export_symbols >> $output_objdir/$soname.def;
17234	fi~
17235	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17236      else
17237	ld_shlibs_GCJ=no
17238      fi
17239      ;;
17240
17241    interix3*)
17242      hardcode_direct_GCJ=no
17243      hardcode_shlibpath_var_GCJ=no
17244      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17245      export_dynamic_flag_spec_GCJ='${wl}-E'
17246      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17247      # Instead, shared libraries are loaded at an image base (0x10000000 by
17248      # default) and relocated if they conflict, which is a slow very memory
17249      # consuming and fragmenting process.  To avoid this, we pick a random,
17250      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17251      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17252      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17253      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17254      ;;
17255
17256    linux*)
17257      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17258	tmp_addflag=
17259	case $cc_basename,$host_cpu in
17260	pgcc*)				# Portland Group C compiler
17261	  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'
17262	  tmp_addflag=' $pic_flag'
17263	  ;;
17264	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17265	  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'
17266	  tmp_addflag=' $pic_flag -Mnomain' ;;
17267	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17268	  tmp_addflag=' -i_dynamic' ;;
17269	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17270	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17271	ifc* | ifort*)			# Intel Fortran compiler
17272	  tmp_addflag=' -nofor_main' ;;
17273	esac
17274	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275
17276	if test $supports_anon_versioning = yes; then
17277	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17278  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17279  $echo "local: *; };" >> $output_objdir/$libname.ver~
17280	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17281	fi
17282      else
17283	ld_shlibs_GCJ=no
17284      fi
17285      ;;
17286
17287    netbsd*)
17288      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17289	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17290	wlarc=
17291      else
17292	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17293	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17294      fi
17295      ;;
17296
17297    solaris*)
17298      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17299	ld_shlibs_GCJ=no
17300	cat <<EOF 1>&2
17301
17302*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17303*** create shared libraries on Solaris systems.  Therefore, libtool
17304*** is disabling shared libraries support.  We urge you to upgrade GNU
17305*** binutils to release 2.9.1 or newer.  Another option is to modify
17306*** your PATH or compiler configuration so that the native linker is
17307*** used, and then restart.
17308
17309EOF
17310      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17311	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17313      else
17314	ld_shlibs_GCJ=no
17315      fi
17316      ;;
17317
17318    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17319      case `$LD -v 2>&1` in
17320        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17321	ld_shlibs_GCJ=no
17322	cat <<_LT_EOF 1>&2
17323
17324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17325*** reliably create shared libraries on SCO systems.  Therefore, libtool
17326*** is disabling shared libraries support.  We urge you to upgrade GNU
17327*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17328*** your PATH or compiler configuration so that the native linker is
17329*** used, and then restart.
17330
17331_LT_EOF
17332	;;
17333	*)
17334	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17335	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17336	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17337	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17338	  else
17339	    ld_shlibs_GCJ=no
17340	  fi
17341	;;
17342      esac
17343      ;;
17344
17345    sunos4*)
17346      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17347      wlarc=
17348      hardcode_direct_GCJ=yes
17349      hardcode_shlibpath_var_GCJ=no
17350      ;;
17351
17352    *)
17353      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17354	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17355	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17356      else
17357	ld_shlibs_GCJ=no
17358      fi
17359      ;;
17360    esac
17361
17362    if test "$ld_shlibs_GCJ" = no; then
17363      runpath_var=
17364      hardcode_libdir_flag_spec_GCJ=
17365      export_dynamic_flag_spec_GCJ=
17366      whole_archive_flag_spec_GCJ=
17367    fi
17368  else
17369    # PORTME fill in a description of your system's linker (not GNU ld)
17370    case $host_os in
17371    aix3*)
17372      allow_undefined_flag_GCJ=unsupported
17373      always_export_symbols_GCJ=yes
17374      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'
17375      # Note: this linker hardcodes the directories in LIBPATH if there
17376      # are no directories specified by -L.
17377      hardcode_minus_L_GCJ=yes
17378      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17379	# Neither direct hardcoding nor static linking is supported with a
17380	# broken collect2.
17381	hardcode_direct_GCJ=unsupported
17382      fi
17383      ;;
17384
17385    aix4* | aix5*)
17386      if test "$host_cpu" = ia64; then
17387	# On IA64, the linker does run time linking by default, so we don't
17388	# have to do anything special.
17389	aix_use_runtimelinking=no
17390	exp_sym_flag='-Bexport'
17391	no_entry_flag=""
17392      else
17393	# If we're using GNU nm, then we don't want the "-C" option.
17394	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17395	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17396	  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'
17397	else
17398	  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'
17399	fi
17400	aix_use_runtimelinking=no
17401
17402	# Test if we are trying to use run time linking or normal
17403	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17404	# need to do runtime linking.
17405	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17406	  for ld_flag in $LDFLAGS; do
17407  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17408  	    aix_use_runtimelinking=yes
17409  	    break
17410  	  fi
17411	  done
17412	  ;;
17413	esac
17414
17415	exp_sym_flag='-bexport'
17416	no_entry_flag='-bnoentry'
17417      fi
17418
17419      # When large executables or shared objects are built, AIX ld can
17420      # have problems creating the table of contents.  If linking a library
17421      # or program results in "error TOC overflow" add -mminimal-toc to
17422      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17423      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17424
17425      archive_cmds_GCJ=''
17426      hardcode_direct_GCJ=yes
17427      hardcode_libdir_separator_GCJ=':'
17428      link_all_deplibs_GCJ=yes
17429
17430      if test "$GCC" = yes; then
17431	case $host_os in aix4.[012]|aix4.[012].*)
17432	# We only want to do this on AIX 4.2 and lower, the check
17433	# below for broken collect2 doesn't work under 4.3+
17434	  collect2name=`${CC} -print-prog-name=collect2`
17435	  if test -f "$collect2name" && \
17436  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17437	  then
17438  	  # We have reworked collect2
17439  	  hardcode_direct_GCJ=yes
17440	  else
17441  	  # We have old collect2
17442  	  hardcode_direct_GCJ=unsupported
17443  	  # It fails to find uninstalled libraries when the uninstalled
17444  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17445  	  # to unsupported forces relinking
17446  	  hardcode_minus_L_GCJ=yes
17447  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17448  	  hardcode_libdir_separator_GCJ=
17449	  fi
17450	  ;;
17451	esac
17452	shared_flag='-shared'
17453	if test "$aix_use_runtimelinking" = yes; then
17454	  shared_flag="$shared_flag "'${wl}-G'
17455	fi
17456      else
17457	# not using gcc
17458	if test "$host_cpu" = ia64; then
17459  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17460  	# chokes on -Wl,-G. The following line is correct:
17461	  shared_flag='-G'
17462	else
17463	  if test "$aix_use_runtimelinking" = yes; then
17464	    shared_flag='${wl}-G'
17465	  else
17466	    shared_flag='${wl}-bM:SRE'
17467	  fi
17468	fi
17469      fi
17470
17471      # It seems that -bexpall does not export symbols beginning with
17472      # underscore (_), so it is better to generate a list of symbols to export.
17473      always_export_symbols_GCJ=yes
17474      if test "$aix_use_runtimelinking" = yes; then
17475	# Warning - without using the other runtime loading flags (-brtl),
17476	# -berok will link without error, but may produce a broken library.
17477	allow_undefined_flag_GCJ='-berok'
17478       # Determine the default libpath from the value encoded in an empty executable.
17479       cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h.  */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h.  */
17485
17486int
17487main ()
17488{
17489
17490  ;
17491  return 0;
17492}
17493_ACEOF
17494rm -f conftest.$ac_objext conftest$ac_exeext
17495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496  (eval $ac_link) 2>conftest.er1
17497  ac_status=$?
17498  grep -v '^ *+' conftest.er1 >conftest.err
17499  rm -f conftest.er1
17500  cat conftest.err >&5
17501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502  (exit $ac_status); } &&
17503	 { ac_try='test -z "$ac_c_werror_flag"
17504			 || test ! -s conftest.err'
17505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506  (eval $ac_try) 2>&5
17507  ac_status=$?
17508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509  (exit $ac_status); }; } &&
17510	 { ac_try='test -s conftest$ac_exeext'
17511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512  (eval $ac_try) 2>&5
17513  ac_status=$?
17514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515  (exit $ac_status); }; }; then
17516
17517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17518}'`
17519# Check for a 64-bit object if we didn't find anything.
17520if 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; }
17521}'`; fi
17522else
17523  echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526fi
17527rm -f conftest.err conftest.$ac_objext \
17528      conftest$ac_exeext conftest.$ac_ext
17529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17530
17531       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17532	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17533       else
17534	if test "$host_cpu" = ia64; then
17535	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17536	  allow_undefined_flag_GCJ="-z nodefs"
17537	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17538	else
17539	 # Determine the default libpath from the value encoded in an empty executable.
17540	 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h.  */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h.  */
17546
17547int
17548main ()
17549{
17550
17551  ;
17552  return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext conftest$ac_exeext
17556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557  (eval $ac_link) 2>conftest.er1
17558  ac_status=$?
17559  grep -v '^ *+' conftest.er1 >conftest.err
17560  rm -f conftest.er1
17561  cat conftest.err >&5
17562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563  (exit $ac_status); } &&
17564	 { ac_try='test -z "$ac_c_werror_flag"
17565			 || test ! -s conftest.err'
17566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567  (eval $ac_try) 2>&5
17568  ac_status=$?
17569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570  (exit $ac_status); }; } &&
17571	 { ac_try='test -s conftest$ac_exeext'
17572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573  (eval $ac_try) 2>&5
17574  ac_status=$?
17575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576  (exit $ac_status); }; }; then
17577
17578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17579}'`
17580# Check for a 64-bit object if we didn't find anything.
17581if 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; }
17582}'`; fi
17583else
17584  echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
17587fi
17588rm -f conftest.err conftest.$ac_objext \
17589      conftest$ac_exeext conftest.$ac_ext
17590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17591
17592	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17593	  # Warning - without using the other run time loading flags,
17594	  # -berok will link without error, but may produce a broken library.
17595	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17596	  allow_undefined_flag_GCJ=' ${wl}-berok'
17597	  # Exported symbols can be pulled into shared objects from archives
17598	  whole_archive_flag_spec_GCJ='$convenience'
17599	  archive_cmds_need_lc_GCJ=yes
17600	  # This is similar to how AIX traditionally builds its shared libraries.
17601	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17602	fi
17603      fi
17604      ;;
17605
17606    amigaos*)
17607      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)'
17608      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17609      hardcode_minus_L_GCJ=yes
17610      # see comment about different semantics on the GNU ld section
17611      ld_shlibs_GCJ=no
17612      ;;
17613
17614    bsdi[45]*)
17615      export_dynamic_flag_spec_GCJ=-rdynamic
17616      ;;
17617
17618    cygwin* | mingw* | pw32*)
17619      # When not using gcc, we currently assume that we are using
17620      # Microsoft Visual C++.
17621      # hardcode_libdir_flag_spec is actually meaningless, as there is
17622      # no search path for DLLs.
17623      hardcode_libdir_flag_spec_GCJ=' '
17624      allow_undefined_flag_GCJ=unsupported
17625      # Tell ltmain to make .lib files, not .a files.
17626      libext=lib
17627      # Tell ltmain to make .dll files, not .so files.
17628      shrext_cmds=".dll"
17629      # FIXME: Setting linknames here is a bad hack.
17630      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17631      # The linker will automatically build a .lib file if we build a DLL.
17632      old_archive_From_new_cmds_GCJ='true'
17633      # FIXME: Should let the user specify the lib program.
17634      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17635      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17636      enable_shared_with_static_runtimes_GCJ=yes
17637      ;;
17638
17639    darwin* | rhapsody*)
17640      case $host_os in
17641        rhapsody* | darwin1.[012])
17642         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17643         ;;
17644       *) # Darwin 1.3 on
17645         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17646           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17647         else
17648           case ${MACOSX_DEPLOYMENT_TARGET} in
17649             10.[012])
17650               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17651               ;;
17652             10.*)
17653               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17654               ;;
17655           esac
17656         fi
17657         ;;
17658      esac
17659      archive_cmds_need_lc_GCJ=no
17660      hardcode_direct_GCJ=no
17661      hardcode_automatic_GCJ=yes
17662      hardcode_shlibpath_var_GCJ=unsupported
17663      whole_archive_flag_spec_GCJ=''
17664      link_all_deplibs_GCJ=yes
17665    if test "$GCC" = yes ; then
17666    	output_verbose_link_cmd='echo'
17667        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17668      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17669      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17670      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}'
17671      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}'
17672    else
17673      case $cc_basename in
17674        xlc*)
17675         output_verbose_link_cmd='echo'
17676         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17677         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17678          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17679         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}'
17680          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}'
17681          ;;
17682       *)
17683         ld_shlibs_GCJ=no
17684          ;;
17685      esac
17686    fi
17687      ;;
17688
17689    dgux*)
17690      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692      hardcode_shlibpath_var_GCJ=no
17693      ;;
17694
17695    freebsd1*)
17696      ld_shlibs_GCJ=no
17697      ;;
17698
17699    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17700    # support.  Future versions do this automatically, but an explicit c++rt0.o
17701    # does not break anything, and helps significantly (at the cost of a little
17702    # extra space).
17703    freebsd2.2*)
17704      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17705      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706      hardcode_direct_GCJ=yes
17707      hardcode_shlibpath_var_GCJ=no
17708      ;;
17709
17710    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17711    freebsd2*)
17712      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17713      hardcode_direct_GCJ=yes
17714      hardcode_minus_L_GCJ=yes
17715      hardcode_shlibpath_var_GCJ=no
17716      ;;
17717
17718    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17719    freebsd* | kfreebsd*-gnu | dragonfly*)
17720      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17721      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17722      hardcode_direct_GCJ=yes
17723      hardcode_shlibpath_var_GCJ=no
17724      ;;
17725
17726    hpux9*)
17727      if test "$GCC" = yes; then
17728	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'
17729      else
17730	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'
17731      fi
17732      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17733      hardcode_libdir_separator_GCJ=:
17734      hardcode_direct_GCJ=yes
17735
17736      # hardcode_minus_L: Not really in the search PATH,
17737      # but as the default location of the library.
17738      hardcode_minus_L_GCJ=yes
17739      export_dynamic_flag_spec_GCJ='${wl}-E'
17740      ;;
17741
17742    hpux10*)
17743      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17744	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17745      else
17746	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17747      fi
17748      if test "$with_gnu_ld" = no; then
17749	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750	hardcode_libdir_separator_GCJ=:
17751
17752	hardcode_direct_GCJ=yes
17753	export_dynamic_flag_spec_GCJ='${wl}-E'
17754
17755	# hardcode_minus_L: Not really in the search PATH,
17756	# but as the default location of the library.
17757	hardcode_minus_L_GCJ=yes
17758      fi
17759      ;;
17760
17761    hpux11*)
17762      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17763	case $host_cpu in
17764	hppa*64*)
17765	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766	  ;;
17767	ia64*)
17768	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17769	  ;;
17770	*)
17771	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17772	  ;;
17773	esac
17774      else
17775	case $host_cpu in
17776	hppa*64*)
17777	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778	  ;;
17779	ia64*)
17780	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17781	  ;;
17782	*)
17783	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17784	  ;;
17785	esac
17786      fi
17787      if test "$with_gnu_ld" = no; then
17788	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17789	hardcode_libdir_separator_GCJ=:
17790
17791	case $host_cpu in
17792	hppa*64*|ia64*)
17793	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17794	  hardcode_direct_GCJ=no
17795	  hardcode_shlibpath_var_GCJ=no
17796	  ;;
17797	*)
17798	  hardcode_direct_GCJ=yes
17799	  export_dynamic_flag_spec_GCJ='${wl}-E'
17800
17801	  # hardcode_minus_L: Not really in the search PATH,
17802	  # but as the default location of the library.
17803	  hardcode_minus_L_GCJ=yes
17804	  ;;
17805	esac
17806      fi
17807      ;;
17808
17809    irix5* | irix6* | nonstopux*)
17810      if test "$GCC" = yes; then
17811	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'
17812      else
17813	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'
17814	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17815      fi
17816      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17817      hardcode_libdir_separator_GCJ=:
17818      link_all_deplibs_GCJ=yes
17819      ;;
17820
17821    netbsd*)
17822      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17824      else
17825	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17826      fi
17827      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828      hardcode_direct_GCJ=yes
17829      hardcode_shlibpath_var_GCJ=no
17830      ;;
17831
17832    newsos6)
17833      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17834      hardcode_direct_GCJ=yes
17835      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17836      hardcode_libdir_separator_GCJ=:
17837      hardcode_shlibpath_var_GCJ=no
17838      ;;
17839
17840    openbsd*)
17841      hardcode_direct_GCJ=yes
17842      hardcode_shlibpath_var_GCJ=no
17843      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17845	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17846	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17847	export_dynamic_flag_spec_GCJ='${wl}-E'
17848      else
17849       case $host_os in
17850	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17851	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17852	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17853	   ;;
17854	 *)
17855	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17856	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17857	   ;;
17858       esac
17859      fi
17860      ;;
17861
17862    os2*)
17863      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17864      hardcode_minus_L_GCJ=yes
17865      allow_undefined_flag_GCJ=unsupported
17866      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'
17867      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17868      ;;
17869
17870    osf3*)
17871      if test "$GCC" = yes; then
17872	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873	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'
17874      else
17875	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17876	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'
17877      fi
17878      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879      hardcode_libdir_separator_GCJ=:
17880      ;;
17881
17882    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17883      if test "$GCC" = yes; then
17884	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17885	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'
17886	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17887      else
17888	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889	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'
17890	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~
17891	$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'
17892
17893	# Both c and cxx compiler support -rpath directly
17894	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17895      fi
17896      hardcode_libdir_separator_GCJ=:
17897      ;;
17898
17899    solaris*)
17900      no_undefined_flag_GCJ=' -z text'
17901      if test "$GCC" = yes; then
17902	wlarc='${wl}'
17903	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17905	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17906      else
17907	wlarc=''
17908	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17910  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17911      fi
17912      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913      hardcode_shlibpath_var_GCJ=no
17914      case $host_os in
17915      solaris2.[0-5] | solaris2.[0-5].*) ;;
17916      *)
17917 	# The compiler driver will combine linker options so we
17918 	# cannot just pass the convience library names through
17919 	# without $wl, iff we do not link with $LD.
17920 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17921 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17922 	case $wlarc in
17923 	'')
17924 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17925 	*)
17926 	  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' ;;
17927 	esac ;;
17928      esac
17929      link_all_deplibs_GCJ=yes
17930      ;;
17931
17932    sunos4*)
17933      if test "x$host_vendor" = xsequent; then
17934	# Use $CC to link under sequent, because it throws in some extra .o
17935	# files that make .init and .fini sections work.
17936	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17937      else
17938	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17939      fi
17940      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17941      hardcode_direct_GCJ=yes
17942      hardcode_minus_L_GCJ=yes
17943      hardcode_shlibpath_var_GCJ=no
17944      ;;
17945
17946    sysv4)
17947      case $host_vendor in
17948	sni)
17949	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950	  hardcode_direct_GCJ=yes # is this really true???
17951	;;
17952	siemens)
17953	  ## LD is ld it makes a PLAMLIB
17954	  ## CC just makes a GrossModule.
17955	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17956	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17957	  hardcode_direct_GCJ=no
17958        ;;
17959	motorola)
17960	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17962	;;
17963      esac
17964      runpath_var='LD_RUN_PATH'
17965      hardcode_shlibpath_var_GCJ=no
17966      ;;
17967
17968    sysv4.3*)
17969      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970      hardcode_shlibpath_var_GCJ=no
17971      export_dynamic_flag_spec_GCJ='-Bexport'
17972      ;;
17973
17974    sysv4*MP*)
17975      if test -d /usr/nec; then
17976	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977	hardcode_shlibpath_var_GCJ=no
17978	runpath_var=LD_RUN_PATH
17979	hardcode_runpath_var=yes
17980	ld_shlibs_GCJ=yes
17981      fi
17982      ;;
17983
17984    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17985      no_undefined_flag_GCJ='${wl}-z,text'
17986      archive_cmds_need_lc_GCJ=no
17987      hardcode_shlibpath_var_GCJ=no
17988      runpath_var='LD_RUN_PATH'
17989
17990      if test "$GCC" = yes; then
17991	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17992	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17993      else
17994	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17995	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17996      fi
17997      ;;
17998
17999    sysv5* | sco3.2v5* | sco5v6*)
18000      # Note: We can NOT use -z defs as we might desire, because we do not
18001      # link with -lc, and that would cause any symbols used from libc to
18002      # always be unresolved, which means just about no library would
18003      # ever link correctly.  If we're not using GNU ld we use -z text
18004      # though, which does catch some bad symbols but isn't as heavy-handed
18005      # as -z defs.
18006      no_undefined_flag_GCJ='${wl}-z,text'
18007      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18008      archive_cmds_need_lc_GCJ=no
18009      hardcode_shlibpath_var_GCJ=no
18010      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18011      hardcode_libdir_separator_GCJ=':'
18012      link_all_deplibs_GCJ=yes
18013      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18014      runpath_var='LD_RUN_PATH'
18015
18016      if test "$GCC" = yes; then
18017	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18019      else
18020	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18022      fi
18023      ;;
18024
18025    uts4*)
18026      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028      hardcode_shlibpath_var_GCJ=no
18029      ;;
18030
18031    *)
18032      ld_shlibs_GCJ=no
18033      ;;
18034    esac
18035  fi
18036
18037echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18038echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18039test "$ld_shlibs_GCJ" = no && can_build_shared=no
18040
18041#
18042# Do we need to explicitly link libc?
18043#
18044case "x$archive_cmds_need_lc_GCJ" in
18045x|xyes)
18046  # Assume -lc should be added
18047  archive_cmds_need_lc_GCJ=yes
18048
18049  if test "$enable_shared" = yes && test "$GCC" = yes; then
18050    case $archive_cmds_GCJ in
18051    *'~'*)
18052      # FIXME: we may have to deal with multi-command sequences.
18053      ;;
18054    '$CC '*)
18055      # Test whether the compiler implicitly links with -lc since on some
18056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18057      # to ld, don't add -lc before -lgcc.
18058      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18059echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18060      $rm conftest*
18061      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18062
18063      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064  (eval $ac_compile) 2>&5
18065  ac_status=$?
18066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067  (exit $ac_status); } 2>conftest.err; then
18068        soname=conftest
18069        lib=conftest
18070        libobjs=conftest.$ac_objext
18071        deplibs=
18072        wl=$lt_prog_compiler_wl_GCJ
18073	pic_flag=$lt_prog_compiler_pic_GCJ
18074        compiler_flags=-v
18075        linker_flags=-v
18076        verstring=
18077        output_objdir=.
18078        libname=conftest
18079        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18080        allow_undefined_flag_GCJ=
18081        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18082  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18083  ac_status=$?
18084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085  (exit $ac_status); }
18086        then
18087	  archive_cmds_need_lc_GCJ=no
18088        else
18089	  archive_cmds_need_lc_GCJ=yes
18090        fi
18091        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18092      else
18093        cat conftest.err 1>&5
18094      fi
18095      $rm conftest*
18096      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18097echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18098      ;;
18099    esac
18100  fi
18101  ;;
18102esac
18103
18104echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18105echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18106library_names_spec=
18107libname_spec='lib$name'
18108soname_spec=
18109shrext_cmds=".so"
18110postinstall_cmds=
18111postuninstall_cmds=
18112finish_cmds=
18113finish_eval=
18114shlibpath_var=
18115shlibpath_overrides_runpath=unknown
18116version_type=none
18117dynamic_linker="$host_os ld.so"
18118sys_lib_dlsearch_path_spec="/lib /usr/lib"
18119if test "$GCC" = yes; then
18120  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18121  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18122    # if the path contains ";" then we assume it to be the separator
18123    # otherwise default to the standard path separator (i.e. ":") - it is
18124    # assumed that no part of a normal pathname contains ";" but that should
18125    # okay in the real world where ";" in dirpaths is itself problematic.
18126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18127  else
18128    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18129  fi
18130else
18131  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18132fi
18133need_lib_prefix=unknown
18134hardcode_into_libs=no
18135
18136# when you set need_version to no, make sure it does not cause -set_version
18137# flags to be left without arguments
18138need_version=unknown
18139
18140case $host_os in
18141aix3*)
18142  version_type=linux
18143  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18144  shlibpath_var=LIBPATH
18145
18146  # AIX 3 has no versioning support, so we append a major version to the name.
18147  soname_spec='${libname}${release}${shared_ext}$major'
18148  ;;
18149
18150aix4* | aix5*)
18151  version_type=linux
18152  need_lib_prefix=no
18153  need_version=no
18154  hardcode_into_libs=yes
18155  if test "$host_cpu" = ia64; then
18156    # AIX 5 supports IA64
18157    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18158    shlibpath_var=LD_LIBRARY_PATH
18159  else
18160    # With GCC up to 2.95.x, collect2 would create an import file
18161    # for dependence libraries.  The import file would start with
18162    # the line `#! .'.  This would cause the generated library to
18163    # depend on `.', always an invalid library.  This was fixed in
18164    # development snapshots of GCC prior to 3.0.
18165    case $host_os in
18166      aix4 | aix4.[01] | aix4.[01].*)
18167      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18168	   echo ' yes '
18169	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18170	:
18171      else
18172	can_build_shared=no
18173      fi
18174      ;;
18175    esac
18176    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18177    # soname into executable. Probably we can add versioning support to
18178    # collect2, so additional links can be useful in future.
18179    if test "$aix_use_runtimelinking" = yes; then
18180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18181      # instead of lib<name>.a to let people know that these are not
18182      # typical AIX shared libraries.
18183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184    else
18185      # We preserve .a as extension for shared libraries through AIX4.2
18186      # and later when we are not doing run time linking.
18187      library_names_spec='${libname}${release}.a $libname.a'
18188      soname_spec='${libname}${release}${shared_ext}$major'
18189    fi
18190    shlibpath_var=LIBPATH
18191  fi
18192  ;;
18193
18194amigaos*)
18195  library_names_spec='$libname.ixlibrary $libname.a'
18196  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18197  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'
18198  ;;
18199
18200beos*)
18201  library_names_spec='${libname}${shared_ext}'
18202  dynamic_linker="$host_os ld.so"
18203  shlibpath_var=LIBRARY_PATH
18204  ;;
18205
18206bsdi[45]*)
18207  version_type=linux
18208  need_version=no
18209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210  soname_spec='${libname}${release}${shared_ext}$major'
18211  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18212  shlibpath_var=LD_LIBRARY_PATH
18213  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18214  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18215  # the default ld.so.conf also contains /usr/contrib/lib and
18216  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18217  # libtool to hard-code these into programs
18218  ;;
18219
18220cygwin* | mingw* | pw32*)
18221  version_type=windows
18222  shrext_cmds=".dll"
18223  need_version=no
18224  need_lib_prefix=no
18225
18226  case $GCC,$host_os in
18227  yes,cygwin* | yes,mingw* | yes,pw32*)
18228    library_names_spec='$libname.dll.a'
18229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18230    postinstall_cmds='base_file=`basename \${file}`~
18231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18232      dldir=$destdir/`dirname \$dlpath`~
18233      test -d \$dldir || mkdir -p \$dldir~
18234      $install_prog $dir/$dlname \$dldir/$dlname~
18235      chmod a+x \$dldir/$dlname'
18236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18237      dlpath=$dir/\$dldll~
18238       $rm \$dlpath'
18239    shlibpath_overrides_runpath=yes
18240
18241    case $host_os in
18242    cygwin*)
18243      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18244      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18245      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18246      ;;
18247    mingw*)
18248      # MinGW DLLs use traditional 'lib' prefix
18249      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18250      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18251      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18252        # It is most probably a Windows format PATH printed by
18253        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18254        # path with ; separators, and with drive letters. We can handle the
18255        # drive letters (cygwin fileutils understands them), so leave them,
18256        # especially as we might pass files found there to a mingw objdump,
18257        # which wouldn't understand a cygwinified path. Ahh.
18258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18259      else
18260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18261      fi
18262      ;;
18263    pw32*)
18264      # pw32 DLLs use 'pw' prefix rather than 'lib'
18265      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18266      ;;
18267    esac
18268    ;;
18269
18270  *)
18271    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18272    ;;
18273  esac
18274  dynamic_linker='Win32 ld.exe'
18275  # FIXME: first we should search . and the directory the executable is in
18276  shlibpath_var=PATH
18277  ;;
18278
18279darwin* | rhapsody*)
18280  dynamic_linker="$host_os dyld"
18281  version_type=darwin
18282  need_lib_prefix=no
18283  need_version=no
18284  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18285  soname_spec='${libname}${release}${major}$shared_ext'
18286  shlibpath_overrides_runpath=yes
18287  shlibpath_var=DYLD_LIBRARY_PATH
18288  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18289  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18290  if test "$GCC" = yes; then
18291    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"`
18292  else
18293    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18294  fi
18295  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18296  ;;
18297
18298dgux*)
18299  version_type=linux
18300  need_lib_prefix=no
18301  need_version=no
18302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18303  soname_spec='${libname}${release}${shared_ext}$major'
18304  shlibpath_var=LD_LIBRARY_PATH
18305  ;;
18306
18307freebsd1*)
18308  dynamic_linker=no
18309  ;;
18310
18311kfreebsd*-gnu)
18312  version_type=linux
18313  need_lib_prefix=no
18314  need_version=no
18315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18316  soname_spec='${libname}${release}${shared_ext}$major'
18317  shlibpath_var=LD_LIBRARY_PATH
18318  shlibpath_overrides_runpath=no
18319  hardcode_into_libs=yes
18320  dynamic_linker='GNU ld.so'
18321  ;;
18322
18323freebsd* | dragonfly*)
18324  # DragonFly does not have aout.  When/if they implement a new
18325  # versioning mechanism, adjust this.
18326  if test -x /usr/bin/objformat; then
18327    objformat=`/usr/bin/objformat`
18328  else
18329    case $host_os in
18330    freebsd[123]*) objformat=aout ;;
18331    *) objformat=elf ;;
18332    esac
18333  fi
18334  version_type=freebsd-$objformat
18335  case $version_type in
18336    freebsd-elf*)
18337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18338      need_version=no
18339      need_lib_prefix=no
18340      ;;
18341    freebsd-*)
18342      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18343      need_version=yes
18344      ;;
18345  esac
18346  shlibpath_var=LD_LIBRARY_PATH
18347  case $host_os in
18348  freebsd2*)
18349    shlibpath_overrides_runpath=yes
18350    ;;
18351  freebsd3.[01]* | freebsdelf3.[01]*)
18352    shlibpath_overrides_runpath=yes
18353    hardcode_into_libs=yes
18354    ;;
18355  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18356  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18357    shlibpath_overrides_runpath=no
18358    hardcode_into_libs=yes
18359    ;;
18360  freebsd*) # from 4.6 on
18361    shlibpath_overrides_runpath=yes
18362    hardcode_into_libs=yes
18363    ;;
18364  esac
18365  ;;
18366
18367gnu*)
18368  version_type=linux
18369  need_lib_prefix=no
18370  need_version=no
18371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18372  soname_spec='${libname}${release}${shared_ext}$major'
18373  shlibpath_var=LD_LIBRARY_PATH
18374  hardcode_into_libs=yes
18375  ;;
18376
18377hpux9* | hpux10* | hpux11*)
18378  # Give a soname corresponding to the major version so that dld.sl refuses to
18379  # link against other versions.
18380  version_type=sunos
18381  need_lib_prefix=no
18382  need_version=no
18383  case $host_cpu in
18384  ia64*)
18385    shrext_cmds='.so'
18386    hardcode_into_libs=yes
18387    dynamic_linker="$host_os dld.so"
18388    shlibpath_var=LD_LIBRARY_PATH
18389    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391    soname_spec='${libname}${release}${shared_ext}$major'
18392    if test "X$HPUX_IA64_MODE" = X32; then
18393      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18394    else
18395      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18396    fi
18397    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18398    ;;
18399   hppa*64*)
18400     shrext_cmds='.sl'
18401     hardcode_into_libs=yes
18402     dynamic_linker="$host_os dld.sl"
18403     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406     soname_spec='${libname}${release}${shared_ext}$major'
18407     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18409     ;;
18410   *)
18411    shrext_cmds='.sl'
18412    dynamic_linker="$host_os dld.sl"
18413    shlibpath_var=SHLIB_PATH
18414    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416    soname_spec='${libname}${release}${shared_ext}$major'
18417    ;;
18418  esac
18419  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18420  postinstall_cmds='chmod 555 $lib'
18421  ;;
18422
18423interix3*)
18424  version_type=linux
18425  need_lib_prefix=no
18426  need_version=no
18427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18428  soname_spec='${libname}${release}${shared_ext}$major'
18429  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18430  shlibpath_var=LD_LIBRARY_PATH
18431  shlibpath_overrides_runpath=no
18432  hardcode_into_libs=yes
18433  ;;
18434
18435irix5* | irix6* | nonstopux*)
18436  case $host_os in
18437    nonstopux*) version_type=nonstopux ;;
18438    *)
18439	if test "$lt_cv_prog_gnu_ld" = yes; then
18440		version_type=linux
18441	else
18442		version_type=irix
18443	fi ;;
18444  esac
18445  need_lib_prefix=no
18446  need_version=no
18447  soname_spec='${libname}${release}${shared_ext}$major'
18448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18449  case $host_os in
18450  irix5* | nonstopux*)
18451    libsuff= shlibsuff=
18452    ;;
18453  *)
18454    case $LD in # libtool.m4 will add one of these switches to LD
18455    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18456      libsuff= shlibsuff= libmagic=32-bit;;
18457    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18458      libsuff=32 shlibsuff=N32 libmagic=N32;;
18459    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18460      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18461    *) libsuff= shlibsuff= libmagic=never-match;;
18462    esac
18463    ;;
18464  esac
18465  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18466  shlibpath_overrides_runpath=no
18467  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18468  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18469  hardcode_into_libs=yes
18470  ;;
18471
18472# No shared lib support for Linux oldld, aout, or coff.
18473linux*oldld* | linux*aout* | linux*coff*)
18474  dynamic_linker=no
18475  ;;
18476
18477# This must be Linux ELF.
18478linux*)
18479  version_type=linux
18480  need_lib_prefix=no
18481  need_version=no
18482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483  soname_spec='${libname}${release}${shared_ext}$major'
18484  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18485  shlibpath_var=LD_LIBRARY_PATH
18486  shlibpath_overrides_runpath=no
18487  # This implies no fast_install, which is unacceptable.
18488  # Some rework will be needed to allow for fast_install
18489  # before this can be enabled.
18490  hardcode_into_libs=yes
18491
18492  # Append ld.so.conf contents to the search path
18493  if test -f /etc/ld.so.conf; then
18494    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' ' '`
18495    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18496  fi
18497
18498  # We used to test for /lib/ld.so.1 and disable shared libraries on
18499  # powerpc, because MkLinux only supported shared libraries with the
18500  # GNU dynamic linker.  Since this was broken with cross compilers,
18501  # most powerpc-linux boxes support dynamic linking these days and
18502  # people can always --disable-shared, the test was removed, and we
18503  # assume the GNU/Linux dynamic linker is in use.
18504  dynamic_linker='GNU/Linux ld.so'
18505  ;;
18506
18507knetbsd*-gnu)
18508  version_type=linux
18509  need_lib_prefix=no
18510  need_version=no
18511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18512  soname_spec='${libname}${release}${shared_ext}$major'
18513  shlibpath_var=LD_LIBRARY_PATH
18514  shlibpath_overrides_runpath=no
18515  hardcode_into_libs=yes
18516  dynamic_linker='GNU ld.so'
18517  ;;
18518
18519netbsd*)
18520  version_type=sunos
18521  need_lib_prefix=no
18522  need_version=no
18523  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18526    dynamic_linker='NetBSD (a.out) ld.so'
18527  else
18528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529    soname_spec='${libname}${release}${shared_ext}$major'
18530    dynamic_linker='NetBSD ld.elf_so'
18531  fi
18532  shlibpath_var=LD_LIBRARY_PATH
18533  shlibpath_overrides_runpath=yes
18534  hardcode_into_libs=yes
18535  ;;
18536
18537newsos6)
18538  version_type=linux
18539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540  shlibpath_var=LD_LIBRARY_PATH
18541  shlibpath_overrides_runpath=yes
18542  ;;
18543
18544nto-qnx*)
18545  version_type=linux
18546  need_lib_prefix=no
18547  need_version=no
18548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549  soname_spec='${libname}${release}${shared_ext}$major'
18550  shlibpath_var=LD_LIBRARY_PATH
18551  shlibpath_overrides_runpath=yes
18552  ;;
18553
18554openbsd*)
18555  version_type=sunos
18556  sys_lib_dlsearch_path_spec="/usr/lib"
18557  need_lib_prefix=no
18558  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18559  case $host_os in
18560    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18561    *)                         need_version=no  ;;
18562  esac
18563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18565  shlibpath_var=LD_LIBRARY_PATH
18566  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18567    case $host_os in
18568      openbsd2.[89] | openbsd2.[89].*)
18569	shlibpath_overrides_runpath=no
18570	;;
18571      *)
18572	shlibpath_overrides_runpath=yes
18573	;;
18574      esac
18575  else
18576    shlibpath_overrides_runpath=yes
18577  fi
18578  ;;
18579
18580os2*)
18581  libname_spec='$name'
18582  shrext_cmds=".dll"
18583  need_lib_prefix=no
18584  library_names_spec='$libname${shared_ext} $libname.a'
18585  dynamic_linker='OS/2 ld.exe'
18586  shlibpath_var=LIBPATH
18587  ;;
18588
18589osf3* | osf4* | osf5*)
18590  version_type=osf
18591  need_lib_prefix=no
18592  need_version=no
18593  soname_spec='${libname}${release}${shared_ext}$major'
18594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18595  shlibpath_var=LD_LIBRARY_PATH
18596  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18597  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18598  ;;
18599
18600solaris*)
18601  version_type=linux
18602  need_lib_prefix=no
18603  need_version=no
18604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605  soname_spec='${libname}${release}${shared_ext}$major'
18606  shlibpath_var=LD_LIBRARY_PATH
18607  shlibpath_overrides_runpath=yes
18608  hardcode_into_libs=yes
18609  # ldd complains unless libraries are executable
18610  postinstall_cmds='chmod +x $lib'
18611  ;;
18612
18613sunos4*)
18614  version_type=sunos
18615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18616  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18617  shlibpath_var=LD_LIBRARY_PATH
18618  shlibpath_overrides_runpath=yes
18619  if test "$with_gnu_ld" = yes; then
18620    need_lib_prefix=no
18621  fi
18622  need_version=yes
18623  ;;
18624
18625sysv4 | sysv4.3*)
18626  version_type=linux
18627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628  soname_spec='${libname}${release}${shared_ext}$major'
18629  shlibpath_var=LD_LIBRARY_PATH
18630  case $host_vendor in
18631    sni)
18632      shlibpath_overrides_runpath=no
18633      need_lib_prefix=no
18634      export_dynamic_flag_spec='${wl}-Blargedynsym'
18635      runpath_var=LD_RUN_PATH
18636      ;;
18637    siemens)
18638      need_lib_prefix=no
18639      ;;
18640    motorola)
18641      need_lib_prefix=no
18642      need_version=no
18643      shlibpath_overrides_runpath=no
18644      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18645      ;;
18646  esac
18647  ;;
18648
18649sysv4*MP*)
18650  if test -d /usr/nec ;then
18651    version_type=linux
18652    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18653    soname_spec='$libname${shared_ext}.$major'
18654    shlibpath_var=LD_LIBRARY_PATH
18655  fi
18656  ;;
18657
18658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18659  version_type=freebsd-elf
18660  need_lib_prefix=no
18661  need_version=no
18662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18663  soname_spec='${libname}${release}${shared_ext}$major'
18664  shlibpath_var=LD_LIBRARY_PATH
18665  hardcode_into_libs=yes
18666  if test "$with_gnu_ld" = yes; then
18667    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18668    shlibpath_overrides_runpath=no
18669  else
18670    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18671    shlibpath_overrides_runpath=yes
18672    case $host_os in
18673      sco3.2v5*)
18674        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18675	;;
18676    esac
18677  fi
18678  sys_lib_dlsearch_path_spec='/usr/lib'
18679  ;;
18680
18681uts4*)
18682  version_type=linux
18683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684  soname_spec='${libname}${release}${shared_ext}$major'
18685  shlibpath_var=LD_LIBRARY_PATH
18686  ;;
18687
18688*)
18689  dynamic_linker=no
18690  ;;
18691esac
18692echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18693echo "${ECHO_T}$dynamic_linker" >&6
18694test "$dynamic_linker" = no && can_build_shared=no
18695
18696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18697if test "$GCC" = yes; then
18698  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18699fi
18700
18701echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18702echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18703hardcode_action_GCJ=
18704if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18705   test -n "$runpath_var_GCJ" || \
18706   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18707
18708  # We can hardcode non-existant directories.
18709  if test "$hardcode_direct_GCJ" != no &&
18710     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18711     # have to relink, otherwise we might link with an installed library
18712     # when we should be linking with a yet-to-be-installed one
18713     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18714     test "$hardcode_minus_L_GCJ" != no; then
18715    # Linking always hardcodes the temporary library directory.
18716    hardcode_action_GCJ=relink
18717  else
18718    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18719    hardcode_action_GCJ=immediate
18720  fi
18721else
18722  # We cannot hardcode anything, or else we can only hardcode existing
18723  # directories.
18724  hardcode_action_GCJ=unsupported
18725fi
18726echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18727echo "${ECHO_T}$hardcode_action_GCJ" >&6
18728
18729if test "$hardcode_action_GCJ" = relink; then
18730  # Fast installation is not supported
18731  enable_fast_install=no
18732elif test "$shlibpath_overrides_runpath" = yes ||
18733     test "$enable_shared" = no; then
18734  # Fast installation is not necessary
18735  enable_fast_install=needless
18736fi
18737
18738
18739# The else clause should only fire when bootstrapping the
18740# libtool distribution, otherwise you forgot to ship ltmain.sh
18741# with your package, and you will get complaints that there are
18742# no rules to generate ltmain.sh.
18743if test -f "$ltmain"; then
18744  # See if we are running on zsh, and set the options which allow our commands through
18745  # without removal of \ escapes.
18746  if test -n "${ZSH_VERSION+set}" ; then
18747    setopt NO_GLOB_SUBST
18748  fi
18749  # Now quote all the things that may contain metacharacters while being
18750  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18751  # variables and quote the copies for generation of the libtool script.
18752  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18753    SED SHELL STRIP \
18754    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18755    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18756    deplibs_check_method reload_flag reload_cmds need_locks \
18757    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18758    lt_cv_sys_global_symbol_to_c_name_address \
18759    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18760    old_postinstall_cmds old_postuninstall_cmds \
18761    compiler_GCJ \
18762    CC_GCJ \
18763    LD_GCJ \
18764    lt_prog_compiler_wl_GCJ \
18765    lt_prog_compiler_pic_GCJ \
18766    lt_prog_compiler_static_GCJ \
18767    lt_prog_compiler_no_builtin_flag_GCJ \
18768    export_dynamic_flag_spec_GCJ \
18769    thread_safe_flag_spec_GCJ \
18770    whole_archive_flag_spec_GCJ \
18771    enable_shared_with_static_runtimes_GCJ \
18772    old_archive_cmds_GCJ \
18773    old_archive_from_new_cmds_GCJ \
18774    predep_objects_GCJ \
18775    postdep_objects_GCJ \
18776    predeps_GCJ \
18777    postdeps_GCJ \
18778    compiler_lib_search_path_GCJ \
18779    archive_cmds_GCJ \
18780    archive_expsym_cmds_GCJ \
18781    postinstall_cmds_GCJ \
18782    postuninstall_cmds_GCJ \
18783    old_archive_from_expsyms_cmds_GCJ \
18784    allow_undefined_flag_GCJ \
18785    no_undefined_flag_GCJ \
18786    export_symbols_cmds_GCJ \
18787    hardcode_libdir_flag_spec_GCJ \
18788    hardcode_libdir_flag_spec_ld_GCJ \
18789    hardcode_libdir_separator_GCJ \
18790    hardcode_automatic_GCJ \
18791    module_cmds_GCJ \
18792    module_expsym_cmds_GCJ \
18793    lt_cv_prog_compiler_c_o_GCJ \
18794    exclude_expsyms_GCJ \
18795    include_expsyms_GCJ; do
18796
18797    case $var in
18798    old_archive_cmds_GCJ | \
18799    old_archive_from_new_cmds_GCJ | \
18800    archive_cmds_GCJ | \
18801    archive_expsym_cmds_GCJ | \
18802    module_cmds_GCJ | \
18803    module_expsym_cmds_GCJ | \
18804    old_archive_from_expsyms_cmds_GCJ | \
18805    export_symbols_cmds_GCJ | \
18806    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18807    postinstall_cmds | postuninstall_cmds | \
18808    old_postinstall_cmds | old_postuninstall_cmds | \
18809    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18810      # Double-quote double-evaled strings.
18811      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18812      ;;
18813    *)
18814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18815      ;;
18816    esac
18817  done
18818
18819  case $lt_echo in
18820  *'\$0 --fallback-echo"')
18821    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18822    ;;
18823  esac
18824
18825cfgfile="$ofile"
18826
18827  cat <<__EOF__ >> "$cfgfile"
18828# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18829
18830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18831
18832# Shell to use when invoking shell scripts.
18833SHELL=$lt_SHELL
18834
18835# Whether or not to build shared libraries.
18836build_libtool_libs=$enable_shared
18837
18838# Whether or not to build static libraries.
18839build_old_libs=$enable_static
18840
18841# Whether or not to add -lc for building shared libraries.
18842build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18843
18844# Whether or not to disallow shared libs when runtime libs are static
18845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18846
18847# Whether or not to optimize for fast installation.
18848fast_install=$enable_fast_install
18849
18850# The host system.
18851host_alias=$host_alias
18852host=$host
18853host_os=$host_os
18854
18855# The build system.
18856build_alias=$build_alias
18857build=$build
18858build_os=$build_os
18859
18860# An echo program that does not interpret backslashes.
18861echo=$lt_echo
18862
18863# The archiver.
18864AR=$lt_AR
18865AR_FLAGS=$lt_AR_FLAGS
18866
18867# A C compiler.
18868LTCC=$lt_LTCC
18869
18870# LTCC compiler flags.
18871LTCFLAGS=$lt_LTCFLAGS
18872
18873# A language-specific compiler.
18874CC=$lt_compiler_GCJ
18875
18876# Is the compiler the GNU C compiler?
18877with_gcc=$GCC_GCJ
18878
18879# An ERE matcher.
18880EGREP=$lt_EGREP
18881
18882# The linker used to build libraries.
18883LD=$lt_LD_GCJ
18884
18885# Whether we need hard or soft links.
18886LN_S=$lt_LN_S
18887
18888# A BSD-compatible nm program.
18889NM=$lt_NM
18890
18891# A symbol stripping program
18892STRIP=$lt_STRIP
18893
18894# Used to examine libraries when file_magic_cmd begins "file"
18895MAGIC_CMD=$MAGIC_CMD
18896
18897# Used on cygwin: DLL creation program.
18898DLLTOOL="$DLLTOOL"
18899
18900# Used on cygwin: object dumper.
18901OBJDUMP="$OBJDUMP"
18902
18903# Used on cygwin: assembler.
18904AS="$AS"
18905
18906# The name of the directory that contains temporary libtool files.
18907objdir=$objdir
18908
18909# How to create reloadable object files.
18910reload_flag=$lt_reload_flag
18911reload_cmds=$lt_reload_cmds
18912
18913# How to pass a linker flag through the compiler.
18914wl=$lt_lt_prog_compiler_wl_GCJ
18915
18916# Object file suffix (normally "o").
18917objext="$ac_objext"
18918
18919# Old archive suffix (normally "a").
18920libext="$libext"
18921
18922# Shared library suffix (normally ".so").
18923shrext_cmds='$shrext_cmds'
18924
18925# Executable file suffix (normally "").
18926exeext="$exeext"
18927
18928# Additional compiler flags for building library objects.
18929pic_flag=$lt_lt_prog_compiler_pic_GCJ
18930pic_mode=$pic_mode
18931
18932# What is the maximum length of a command?
18933max_cmd_len=$lt_cv_sys_max_cmd_len
18934
18935# Does compiler simultaneously support -c and -o options?
18936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18937
18938# Must we lock files when doing compilation?
18939need_locks=$lt_need_locks
18940
18941# Do we need the lib prefix for modules?
18942need_lib_prefix=$need_lib_prefix
18943
18944# Do we need a version for libraries?
18945need_version=$need_version
18946
18947# Whether dlopen is supported.
18948dlopen_support=$enable_dlopen
18949
18950# Whether dlopen of programs is supported.
18951dlopen_self=$enable_dlopen_self
18952
18953# Whether dlopen of statically linked programs is supported.
18954dlopen_self_static=$enable_dlopen_self_static
18955
18956# Compiler flag to prevent dynamic linking.
18957link_static_flag=$lt_lt_prog_compiler_static_GCJ
18958
18959# Compiler flag to turn off builtin functions.
18960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18961
18962# Compiler flag to allow reflexive dlopens.
18963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18964
18965# Compiler flag to generate shared objects directly from archives.
18966whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18967
18968# Compiler flag to generate thread-safe objects.
18969thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18970
18971# Library versioning type.
18972version_type=$version_type
18973
18974# Format of library name prefix.
18975libname_spec=$lt_libname_spec
18976
18977# List of archive names.  First name is the real one, the rest are links.
18978# The last name is the one that the linker finds with -lNAME.
18979library_names_spec=$lt_library_names_spec
18980
18981# The coded name of the library, if different from the real name.
18982soname_spec=$lt_soname_spec
18983
18984# Commands used to build and install an old-style archive.
18985RANLIB=$lt_RANLIB
18986old_archive_cmds=$lt_old_archive_cmds_GCJ
18987old_postinstall_cmds=$lt_old_postinstall_cmds
18988old_postuninstall_cmds=$lt_old_postuninstall_cmds
18989
18990# Create an old-style archive from a shared archive.
18991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18992
18993# Create a temporary old-style archive to link instead of a shared archive.
18994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18995
18996# Commands used to build and install a shared archive.
18997archive_cmds=$lt_archive_cmds_GCJ
18998archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18999postinstall_cmds=$lt_postinstall_cmds
19000postuninstall_cmds=$lt_postuninstall_cmds
19001
19002# Commands used to build a loadable module (assumed same as above if empty)
19003module_cmds=$lt_module_cmds_GCJ
19004module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19005
19006# Commands to strip libraries.
19007old_striplib=$lt_old_striplib
19008striplib=$lt_striplib
19009
19010# Dependencies to place before the objects being linked to create a
19011# shared library.
19012predep_objects=$lt_predep_objects_GCJ
19013
19014# Dependencies to place after the objects being linked to create a
19015# shared library.
19016postdep_objects=$lt_postdep_objects_GCJ
19017
19018# Dependencies to place before the objects being linked to create a
19019# shared library.
19020predeps=$lt_predeps_GCJ
19021
19022# Dependencies to place after the objects being linked to create a
19023# shared library.
19024postdeps=$lt_postdeps_GCJ
19025
19026# The library search path used internally by the compiler when linking
19027# a shared library.
19028compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19029
19030# Method to check whether dependent libraries are shared objects.
19031deplibs_check_method=$lt_deplibs_check_method
19032
19033# Command to use when deplibs_check_method == file_magic.
19034file_magic_cmd=$lt_file_magic_cmd
19035
19036# Flag that allows shared libraries with undefined symbols to be built.
19037allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19038
19039# Flag that forces no undefined symbols.
19040no_undefined_flag=$lt_no_undefined_flag_GCJ
19041
19042# Commands used to finish a libtool library installation in a directory.
19043finish_cmds=$lt_finish_cmds
19044
19045# Same as above, but a single script fragment to be evaled but not shown.
19046finish_eval=$lt_finish_eval
19047
19048# Take the output of nm and produce a listing of raw symbols and C names.
19049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19050
19051# Transform the output of nm in a proper C declaration
19052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19053
19054# Transform the output of nm in a C name address pair
19055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19056
19057# This is the shared library runtime path variable.
19058runpath_var=$runpath_var
19059
19060# This is the shared library path variable.
19061shlibpath_var=$shlibpath_var
19062
19063# Is shlibpath searched before the hard-coded library search path?
19064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19065
19066# How to hardcode a shared library path into an executable.
19067hardcode_action=$hardcode_action_GCJ
19068
19069# Whether we should hardcode library paths into libraries.
19070hardcode_into_libs=$hardcode_into_libs
19071
19072# Flag to hardcode \$libdir into a binary during linking.
19073# This must work even if \$libdir does not exist.
19074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19075
19076# If ld is used when linking, flag to hardcode \$libdir into
19077# a binary during linking. This must work even if \$libdir does
19078# not exist.
19079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19080
19081# Whether we need a single -rpath flag with a separated argument.
19082hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19083
19084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19085# resulting binary.
19086hardcode_direct=$hardcode_direct_GCJ
19087
19088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19089# resulting binary.
19090hardcode_minus_L=$hardcode_minus_L_GCJ
19091
19092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19093# the resulting binary.
19094hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19095
19096# Set to yes if building a shared library automatically hardcodes DIR into the library
19097# and all subsequent libraries and executables linked against it.
19098hardcode_automatic=$hardcode_automatic_GCJ
19099
19100# Variables whose values should be saved in libtool wrapper scripts and
19101# restored at relink time.
19102variables_saved_for_relink="$variables_saved_for_relink"
19103
19104# Whether libtool must link a program against all its dependency libraries.
19105link_all_deplibs=$link_all_deplibs_GCJ
19106
19107# Compile-time system search path for libraries
19108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19109
19110# Run-time system search path for libraries
19111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19112
19113# Fix the shell variable \$srcfile for the compiler.
19114fix_srcfile_path="$fix_srcfile_path_GCJ"
19115
19116# Set to yes if exported symbols are required.
19117always_export_symbols=$always_export_symbols_GCJ
19118
19119# The commands to list exported symbols.
19120export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19121
19122# The commands to extract the exported symbol list from a shared archive.
19123extract_expsyms_cmds=$lt_extract_expsyms_cmds
19124
19125# Symbols that should not be listed in the preloaded symbols.
19126exclude_expsyms=$lt_exclude_expsyms_GCJ
19127
19128# Symbols that must always be exported.
19129include_expsyms=$lt_include_expsyms_GCJ
19130
19131# ### END LIBTOOL TAG CONFIG: $tagname
19132
19133__EOF__
19134
19135
19136else
19137  # If there is no Makefile yet, we rely on a make rule to execute
19138  # `config.status --recheck' to rerun these tests and create the
19139  # libtool script then.
19140  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19141  if test -f "$ltmain_in"; then
19142    test -f Makefile && make "$ltmain"
19143  fi
19144fi
19145
19146
19147ac_ext=c
19148ac_cpp='$CPP $CPPFLAGS'
19149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152
19153CC="$lt_save_CC"
19154
19155	else
19156	  tagname=""
19157	fi
19158	;;
19159
19160      RC)
19161
19162
19163
19164# Source file extension for RC test sources.
19165ac_ext=rc
19166
19167# Object file extension for compiled RC test sources.
19168objext=o
19169objext_RC=$objext
19170
19171# Code to be used in simple compile tests
19172lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19173
19174# Code to be used in simple link tests
19175lt_simple_link_test_code="$lt_simple_compile_test_code"
19176
19177# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19178
19179# If no C compiler was specified, use CC.
19180LTCC=${LTCC-"$CC"}
19181
19182# If no C compiler flags were specified, use CFLAGS.
19183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19184
19185# Allow CC to be a program name with arguments.
19186compiler=$CC
19187
19188
19189# save warnings/boilerplate of simple test code
19190ac_outfile=conftest.$ac_objext
19191printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19193_lt_compiler_boilerplate=`cat conftest.err`
19194$rm conftest*
19195
19196ac_outfile=conftest.$ac_objext
19197printf "$lt_simple_link_test_code" >conftest.$ac_ext
19198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19199_lt_linker_boilerplate=`cat conftest.err`
19200$rm conftest*
19201
19202
19203# Allow CC to be a program name with arguments.
19204lt_save_CC="$CC"
19205CC=${RC-"windres"}
19206compiler=$CC
19207compiler_RC=$CC
19208for cc_temp in $compiler""; do
19209  case $cc_temp in
19210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19212    \-*) ;;
19213    *) break;;
19214  esac
19215done
19216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19217
19218lt_cv_prog_compiler_c_o_RC=yes
19219
19220# The else clause should only fire when bootstrapping the
19221# libtool distribution, otherwise you forgot to ship ltmain.sh
19222# with your package, and you will get complaints that there are
19223# no rules to generate ltmain.sh.
19224if test -f "$ltmain"; then
19225  # See if we are running on zsh, and set the options which allow our commands through
19226  # without removal of \ escapes.
19227  if test -n "${ZSH_VERSION+set}" ; then
19228    setopt NO_GLOB_SUBST
19229  fi
19230  # Now quote all the things that may contain metacharacters while being
19231  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19232  # variables and quote the copies for generation of the libtool script.
19233  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19234    SED SHELL STRIP \
19235    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19236    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19237    deplibs_check_method reload_flag reload_cmds need_locks \
19238    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19239    lt_cv_sys_global_symbol_to_c_name_address \
19240    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19241    old_postinstall_cmds old_postuninstall_cmds \
19242    compiler_RC \
19243    CC_RC \
19244    LD_RC \
19245    lt_prog_compiler_wl_RC \
19246    lt_prog_compiler_pic_RC \
19247    lt_prog_compiler_static_RC \
19248    lt_prog_compiler_no_builtin_flag_RC \
19249    export_dynamic_flag_spec_RC \
19250    thread_safe_flag_spec_RC \
19251    whole_archive_flag_spec_RC \
19252    enable_shared_with_static_runtimes_RC \
19253    old_archive_cmds_RC \
19254    old_archive_from_new_cmds_RC \
19255    predep_objects_RC \
19256    postdep_objects_RC \
19257    predeps_RC \
19258    postdeps_RC \
19259    compiler_lib_search_path_RC \
19260    archive_cmds_RC \
19261    archive_expsym_cmds_RC \
19262    postinstall_cmds_RC \
19263    postuninstall_cmds_RC \
19264    old_archive_from_expsyms_cmds_RC \
19265    allow_undefined_flag_RC \
19266    no_undefined_flag_RC \
19267    export_symbols_cmds_RC \
19268    hardcode_libdir_flag_spec_RC \
19269    hardcode_libdir_flag_spec_ld_RC \
19270    hardcode_libdir_separator_RC \
19271    hardcode_automatic_RC \
19272    module_cmds_RC \
19273    module_expsym_cmds_RC \
19274    lt_cv_prog_compiler_c_o_RC \
19275    exclude_expsyms_RC \
19276    include_expsyms_RC; do
19277
19278    case $var in
19279    old_archive_cmds_RC | \
19280    old_archive_from_new_cmds_RC | \
19281    archive_cmds_RC | \
19282    archive_expsym_cmds_RC | \
19283    module_cmds_RC | \
19284    module_expsym_cmds_RC | \
19285    old_archive_from_expsyms_cmds_RC | \
19286    export_symbols_cmds_RC | \
19287    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19288    postinstall_cmds | postuninstall_cmds | \
19289    old_postinstall_cmds | old_postuninstall_cmds | \
19290    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19291      # Double-quote double-evaled strings.
19292      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19293      ;;
19294    *)
19295      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19296      ;;
19297    esac
19298  done
19299
19300  case $lt_echo in
19301  *'\$0 --fallback-echo"')
19302    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19303    ;;
19304  esac
19305
19306cfgfile="$ofile"
19307
19308  cat <<__EOF__ >> "$cfgfile"
19309# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19310
19311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19312
19313# Shell to use when invoking shell scripts.
19314SHELL=$lt_SHELL
19315
19316# Whether or not to build shared libraries.
19317build_libtool_libs=$enable_shared
19318
19319# Whether or not to build static libraries.
19320build_old_libs=$enable_static
19321
19322# Whether or not to add -lc for building shared libraries.
19323build_libtool_need_lc=$archive_cmds_need_lc_RC
19324
19325# Whether or not to disallow shared libs when runtime libs are static
19326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19327
19328# Whether or not to optimize for fast installation.
19329fast_install=$enable_fast_install
19330
19331# The host system.
19332host_alias=$host_alias
19333host=$host
19334host_os=$host_os
19335
19336# The build system.
19337build_alias=$build_alias
19338build=$build
19339build_os=$build_os
19340
19341# An echo program that does not interpret backslashes.
19342echo=$lt_echo
19343
19344# The archiver.
19345AR=$lt_AR
19346AR_FLAGS=$lt_AR_FLAGS
19347
19348# A C compiler.
19349LTCC=$lt_LTCC
19350
19351# LTCC compiler flags.
19352LTCFLAGS=$lt_LTCFLAGS
19353
19354# A language-specific compiler.
19355CC=$lt_compiler_RC
19356
19357# Is the compiler the GNU C compiler?
19358with_gcc=$GCC_RC
19359
19360# An ERE matcher.
19361EGREP=$lt_EGREP
19362
19363# The linker used to build libraries.
19364LD=$lt_LD_RC
19365
19366# Whether we need hard or soft links.
19367LN_S=$lt_LN_S
19368
19369# A BSD-compatible nm program.
19370NM=$lt_NM
19371
19372# A symbol stripping program
19373STRIP=$lt_STRIP
19374
19375# Used to examine libraries when file_magic_cmd begins "file"
19376MAGIC_CMD=$MAGIC_CMD
19377
19378# Used on cygwin: DLL creation program.
19379DLLTOOL="$DLLTOOL"
19380
19381# Used on cygwin: object dumper.
19382OBJDUMP="$OBJDUMP"
19383
19384# Used on cygwin: assembler.
19385AS="$AS"
19386
19387# The name of the directory that contains temporary libtool files.
19388objdir=$objdir
19389
19390# How to create reloadable object files.
19391reload_flag=$lt_reload_flag
19392reload_cmds=$lt_reload_cmds
19393
19394# How to pass a linker flag through the compiler.
19395wl=$lt_lt_prog_compiler_wl_RC
19396
19397# Object file suffix (normally "o").
19398objext="$ac_objext"
19399
19400# Old archive suffix (normally "a").
19401libext="$libext"
19402
19403# Shared library suffix (normally ".so").
19404shrext_cmds='$shrext_cmds'
19405
19406# Executable file suffix (normally "").
19407exeext="$exeext"
19408
19409# Additional compiler flags for building library objects.
19410pic_flag=$lt_lt_prog_compiler_pic_RC
19411pic_mode=$pic_mode
19412
19413# What is the maximum length of a command?
19414max_cmd_len=$lt_cv_sys_max_cmd_len
19415
19416# Does compiler simultaneously support -c and -o options?
19417compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19418
19419# Must we lock files when doing compilation?
19420need_locks=$lt_need_locks
19421
19422# Do we need the lib prefix for modules?
19423need_lib_prefix=$need_lib_prefix
19424
19425# Do we need a version for libraries?
19426need_version=$need_version
19427
19428# Whether dlopen is supported.
19429dlopen_support=$enable_dlopen
19430
19431# Whether dlopen of programs is supported.
19432dlopen_self=$enable_dlopen_self
19433
19434# Whether dlopen of statically linked programs is supported.
19435dlopen_self_static=$enable_dlopen_self_static
19436
19437# Compiler flag to prevent dynamic linking.
19438link_static_flag=$lt_lt_prog_compiler_static_RC
19439
19440# Compiler flag to turn off builtin functions.
19441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19442
19443# Compiler flag to allow reflexive dlopens.
19444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19445
19446# Compiler flag to generate shared objects directly from archives.
19447whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19448
19449# Compiler flag to generate thread-safe objects.
19450thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19451
19452# Library versioning type.
19453version_type=$version_type
19454
19455# Format of library name prefix.
19456libname_spec=$lt_libname_spec
19457
19458# List of archive names.  First name is the real one, the rest are links.
19459# The last name is the one that the linker finds with -lNAME.
19460library_names_spec=$lt_library_names_spec
19461
19462# The coded name of the library, if different from the real name.
19463soname_spec=$lt_soname_spec
19464
19465# Commands used to build and install an old-style archive.
19466RANLIB=$lt_RANLIB
19467old_archive_cmds=$lt_old_archive_cmds_RC
19468old_postinstall_cmds=$lt_old_postinstall_cmds
19469old_postuninstall_cmds=$lt_old_postuninstall_cmds
19470
19471# Create an old-style archive from a shared archive.
19472old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19473
19474# Create a temporary old-style archive to link instead of a shared archive.
19475old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19476
19477# Commands used to build and install a shared archive.
19478archive_cmds=$lt_archive_cmds_RC
19479archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19480postinstall_cmds=$lt_postinstall_cmds
19481postuninstall_cmds=$lt_postuninstall_cmds
19482
19483# Commands used to build a loadable module (assumed same as above if empty)
19484module_cmds=$lt_module_cmds_RC
19485module_expsym_cmds=$lt_module_expsym_cmds_RC
19486
19487# Commands to strip libraries.
19488old_striplib=$lt_old_striplib
19489striplib=$lt_striplib
19490
19491# Dependencies to place before the objects being linked to create a
19492# shared library.
19493predep_objects=$lt_predep_objects_RC
19494
19495# Dependencies to place after the objects being linked to create a
19496# shared library.
19497postdep_objects=$lt_postdep_objects_RC
19498
19499# Dependencies to place before the objects being linked to create a
19500# shared library.
19501predeps=$lt_predeps_RC
19502
19503# Dependencies to place after the objects being linked to create a
19504# shared library.
19505postdeps=$lt_postdeps_RC
19506
19507# The library search path used internally by the compiler when linking
19508# a shared library.
19509compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19510
19511# Method to check whether dependent libraries are shared objects.
19512deplibs_check_method=$lt_deplibs_check_method
19513
19514# Command to use when deplibs_check_method == file_magic.
19515file_magic_cmd=$lt_file_magic_cmd
19516
19517# Flag that allows shared libraries with undefined symbols to be built.
19518allow_undefined_flag=$lt_allow_undefined_flag_RC
19519
19520# Flag that forces no undefined symbols.
19521no_undefined_flag=$lt_no_undefined_flag_RC
19522
19523# Commands used to finish a libtool library installation in a directory.
19524finish_cmds=$lt_finish_cmds
19525
19526# Same as above, but a single script fragment to be evaled but not shown.
19527finish_eval=$lt_finish_eval
19528
19529# Take the output of nm and produce a listing of raw symbols and C names.
19530global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19531
19532# Transform the output of nm in a proper C declaration
19533global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19534
19535# Transform the output of nm in a C name address pair
19536global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19537
19538# This is the shared library runtime path variable.
19539runpath_var=$runpath_var
19540
19541# This is the shared library path variable.
19542shlibpath_var=$shlibpath_var
19543
19544# Is shlibpath searched before the hard-coded library search path?
19545shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19546
19547# How to hardcode a shared library path into an executable.
19548hardcode_action=$hardcode_action_RC
19549
19550# Whether we should hardcode library paths into libraries.
19551hardcode_into_libs=$hardcode_into_libs
19552
19553# Flag to hardcode \$libdir into a binary during linking.
19554# This must work even if \$libdir does not exist.
19555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19556
19557# If ld is used when linking, flag to hardcode \$libdir into
19558# a binary during linking. This must work even if \$libdir does
19559# not exist.
19560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19561
19562# Whether we need a single -rpath flag with a separated argument.
19563hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19564
19565# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19566# resulting binary.
19567hardcode_direct=$hardcode_direct_RC
19568
19569# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19570# resulting binary.
19571hardcode_minus_L=$hardcode_minus_L_RC
19572
19573# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19574# the resulting binary.
19575hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19576
19577# Set to yes if building a shared library automatically hardcodes DIR into the library
19578# and all subsequent libraries and executables linked against it.
19579hardcode_automatic=$hardcode_automatic_RC
19580
19581# Variables whose values should be saved in libtool wrapper scripts and
19582# restored at relink time.
19583variables_saved_for_relink="$variables_saved_for_relink"
19584
19585# Whether libtool must link a program against all its dependency libraries.
19586link_all_deplibs=$link_all_deplibs_RC
19587
19588# Compile-time system search path for libraries
19589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19590
19591# Run-time system search path for libraries
19592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19593
19594# Fix the shell variable \$srcfile for the compiler.
19595fix_srcfile_path="$fix_srcfile_path_RC"
19596
19597# Set to yes if exported symbols are required.
19598always_export_symbols=$always_export_symbols_RC
19599
19600# The commands to list exported symbols.
19601export_symbols_cmds=$lt_export_symbols_cmds_RC
19602
19603# The commands to extract the exported symbol list from a shared archive.
19604extract_expsyms_cmds=$lt_extract_expsyms_cmds
19605
19606# Symbols that should not be listed in the preloaded symbols.
19607exclude_expsyms=$lt_exclude_expsyms_RC
19608
19609# Symbols that must always be exported.
19610include_expsyms=$lt_include_expsyms_RC
19611
19612# ### END LIBTOOL TAG CONFIG: $tagname
19613
19614__EOF__
19615
19616
19617else
19618  # If there is no Makefile yet, we rely on a make rule to execute
19619  # `config.status --recheck' to rerun these tests and create the
19620  # libtool script then.
19621  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19622  if test -f "$ltmain_in"; then
19623    test -f Makefile && make "$ltmain"
19624  fi
19625fi
19626
19627
19628ac_ext=c
19629ac_cpp='$CPP $CPPFLAGS'
19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634CC="$lt_save_CC"
19635
19636	;;
19637
19638      *)
19639	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19640echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19641   { (exit 1); exit 1; }; }
19642	;;
19643      esac
19644
19645      # Append the new tag name to the list of available tags.
19646      if test -n "$tagname" ; then
19647      available_tags="$available_tags $tagname"
19648    fi
19649    fi
19650  done
19651  IFS="$lt_save_ifs"
19652
19653  # Now substitute the updated list of available tags.
19654  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19655    mv "${ofile}T" "$ofile"
19656    chmod +x "$ofile"
19657  else
19658    rm -f "${ofile}T"
19659    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19660echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19661   { (exit 1); exit 1; }; }
19662  fi
19663fi
19664
19665
19666
19667# This can be used to rebuild libtool when needed
19668LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19669
19670# Always use our own libtool.
19671LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19672
19673# Prevent multiple expansion
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
19686 # AC_REQUIRE([AC_COIN_DLFCN_H])
19687
19688# NEW: If libtool exists in the directory higher up, we use that one
19689#      instead of creating a new one
19690
19691# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
19692# out in front of this macro body. You'll notice that LIBTOOL is already
19693# defined here.  We'll have to count on this macro not being called if libtool
19694# already exists, or at least move the libtool fixes outside the conditional.
19695# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
19696# This test is therefore removed.  -- lh, 061214 --
19697# if test "x$LIBTOOL" = x; then
19698
19699# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
19710
19711
19712
19713  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
19714echo "$as_me: Build is \"$build\"." >&6;}
19715  mydos2unix='| dos2unix'
19716  case $build in
19717    *-mingw*)
19718      CYGPATH_W=echo
19719      mydos2unix=
19720      ;;
19721  esac
19722
19723  case $build in
19724    # Here we need to check if -m32 is specified.  If so, we need to correct
19725    # sys_lib_search_path_spec
19726    *x86_64-*)
19727      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
19728        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
19729echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
19730        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
19731        mv conftest.bla libtool
19732        chmod 755 libtool
19733      fi
19734      ;;
19735
19736    *-solaris*)
19737       if test "$GCC" = yes && \
19738     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
19739    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
19740    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
19741      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
19742echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
19743      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
19744      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
19745      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
19746	# AC_MSG_NOTICE(Compensating for broken gcc)
19747	for lib in $fixlibtmp ; do
19748	  if test -d "${lib}${hdwisa}" ; then
19749	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
19750	  fi
19751	done
19752	syslibpath64="${syslibpath64} ${fixlibtmp}"
19753      else
19754	syslibpath64="$fixlibtmp"
19755      fi
19756      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
19757      mv conftest.bla libtool
19758      chmod 755 libtool
19759    fi
19760    # AC_MSG_NOTICE(Result is )
19761    # $EGREP 'sys_lib_search_path_spec=' libtool
19762  fi
19763      ;;
19764    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
19765    *-cygwin* | *-mingw*)
19766       case "$CXX" in
19767    clang* )
19768      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
19769      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
19770echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
19771      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19772	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19773	  -e 's|libext="lib"|libext="a"|' \
19774      libtool > conftest.bla
19775      ;;
19776    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
19777      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
19778echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
19779      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19780	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19781	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19782	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
19783	  -e 's%lib /OUT:%lib -OUT:%' \
19784	  -e "s%cygpath -w%$CYGPATH_W%" \
19785	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
19786	  -e 's/$AR t/lib -nologo -list/' \
19787	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
19788	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
19789	  -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
19790      libtool > conftest.bla
19791      ;;
19792    *)
19793      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
19794echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
19795      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
19796	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
19797	  -e 's|libext="lib"|libext="a"|' \
19798      libtool > conftest.bla
19799      ;;
19800  esac
19801  mv conftest.bla libtool
19802  chmod 755 libtool
19803
19804      ;;
19805    *-darwin*)
19806      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
19807echo "$as_me: Applying patches to libtool for Darwin" >&6;}
19808      sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
19809        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
19810      libtool > conftest.bla
19811
19812      mv conftest.bla libtool
19813      chmod 755 libtool
19814      ;;
19815  esac
19816# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
19817# the macro. -- lh, 061214 --
19818# fi
19819
19820# AC_MSG_NOTICE([End libtool initialisation.])
19821
19822# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
19823  # set RPATH_FLAGS to the compiler link flags required to hardcode location
19824  # of the shared objects
19825  RPATH_FLAGS=
19826
19827if test $enable_shared = yes; then
19828  case $build in
19829    *-linux-*)
19830      if test "$GXX" = "yes"; then
19831        RPATH_FLAGS=
19832        for dir in $abs_lib_dir; do
19833          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
19834        done
19835      fi ;;
19836    *-darwin*)
19837        RPATH_FLAGS=nothing ;;
19838    *-ibm-*)
19839      case "$CXX" in
19840      xlC* | */xlC* | mpxlC* | */mpxlC*)
19841        RPATH_FLAGS=nothing ;;
19842      esac ;;
19843    *-hp-*)
19844        RPATH_FLAGS=nothing ;;
19845    *-mingw32)
19846        RPATH_FLAGS=nothing ;;
19847    *-*-solaris*)
19848        RPATH_FLAGS=
19849        for dir in $abs_lib_dir; do
19850          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
19851        done
19852  esac
19853
19854  if test "$RPATH_FLAGS" = ""; then
19855    { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
19856echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
19857  fi
19858  if test "$RPATH_FLAGS" = "nothing"; then
19859    RPATH_FLAGS=
19860  fi
19861fi
19862
19863
19864
19865
19866else
19867
19868  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
19869echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
19870  # get all missing information from the config.log file
19871
19872  # output variables and defines
19873  as_save_IFS=$IFS
19874  IFS='
19875'
19876  for oneline in `cat $coin_config_dir/config.status`; do
19877    case "$oneline" in
19878         # First some automake conditionals
19879      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
19880      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
19881      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
19882      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
19883        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
19884#        echo "$command"
19885        eval "$command"
19886        ;;
19887      s,@DEFS@* )
19888        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
19889#        echo "$command"
19890        eval "$command"
19891        ;;
19892    esac
19893  done
19894  IFS=$as_save_IFS
19895
19896  # And some defines (assuming here that the packages base dir
19897  # doesn't have a config.h file
19898  for word in $defsline; do
19899#    echo word $word
19900    case $word in
19901      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
19902        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
19903#        echo dd $i
19904        echo $i >>confdefs.h
19905        ;;
19906    esac
19907  done
19908fi
19909
19910# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
19911
19912# ToDo
19913# For now, don't use the -no-undefined flag, since the Makefiles are
19914# not yet set up that way.  But we need to fix this, when we want
19915# to comile DLLs under Windows.
19916LT_LDFLAGS=
19917
19918# Check if we want to set the library version
19919echo "$as_me:$LINENO: checking if library version is set" >&5
19920echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
19921if test x"$coin_libversion" != x; then
19922  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
19923  echo "$as_me:$LINENO: result: $coin_libversion" >&5
19924echo "${ECHO_T}$coin_libversion" >&6
19925else
19926  echo "$as_me:$LINENO: result: no" >&5
19927echo "${ECHO_T}no" >&6
19928fi
19929
19930
19931
19932#END
19933}
19934
19935
19936
19937# Check whether --enable-pkg-config or --disable-pkg-config was given.
19938if test "${enable_pkg_config+set}" = set; then
19939  enableval="$enable_pkg_config"
19940  use_pkgconfig="$enableval"
19941else
19942  use_pkgconfig=yes
19943fi;
19944
19945if test $use_pkgconfig = yes ; then
19946  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19947    if test -n "$ac_tool_prefix"; then
19948  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19949set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19950echo "$as_me:$LINENO: checking for $ac_word" >&5
19951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19952if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19953  echo $ECHO_N "(cached) $ECHO_C" >&6
19954else
19955  case $PKG_CONFIG in
19956  [\\/]* | ?:[\\/]*)
19957  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19958  ;;
19959  *)
19960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961for as_dir in $PATH
19962do
19963  IFS=$as_save_IFS
19964  test -z "$as_dir" && as_dir=.
19965  for ac_exec_ext in '' $ac_executable_extensions; do
19966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19967    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19969    break 2
19970  fi
19971done
19972done
19973
19974  ;;
19975esac
19976fi
19977PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19978
19979if test -n "$PKG_CONFIG"; then
19980  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19981echo "${ECHO_T}$PKG_CONFIG" >&6
19982else
19983  echo "$as_me:$LINENO: result: no" >&5
19984echo "${ECHO_T}no" >&6
19985fi
19986
19987fi
19988if test -z "$ac_cv_path_PKG_CONFIG"; then
19989  ac_pt_PKG_CONFIG=$PKG_CONFIG
19990  # Extract the first word of "pkg-config", so it can be a program name with args.
19991set dummy pkg-config; ac_word=$2
19992echo "$as_me:$LINENO: checking for $ac_word" >&5
19993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19994if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19995  echo $ECHO_N "(cached) $ECHO_C" >&6
19996else
19997  case $ac_pt_PKG_CONFIG in
19998  [\\/]* | ?:[\\/]*)
19999  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20000  ;;
20001  *)
20002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003for as_dir in $PATH
20004do
20005  IFS=$as_save_IFS
20006  test -z "$as_dir" && as_dir=.
20007  for ac_exec_ext in '' $ac_executable_extensions; do
20008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20009    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20011    break 2
20012  fi
20013done
20014done
20015
20016  ;;
20017esac
20018fi
20019ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20020
20021if test -n "$ac_pt_PKG_CONFIG"; then
20022  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20023echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20024else
20025  echo "$as_me:$LINENO: result: no" >&5
20026echo "${ECHO_T}no" >&6
20027fi
20028
20029  PKG_CONFIG=$ac_pt_PKG_CONFIG
20030else
20031  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20032fi
20033
20034  fi
20035  if test -n "$PKG_CONFIG"; then
20036    _pkg_min_version=0.16.0
20037    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20038echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20039    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20040      echo "$as_me:$LINENO: result: yes" >&5
20041echo "${ECHO_T}yes" >&6
20042    else
20043      echo "$as_me:$LINENO: result: no" >&5
20044echo "${ECHO_T}no" >&6
20045      PKG_CONFIG=""
20046    fi
20047  fi
20048
20049  # check if pkg-config supports the short-errors flag
20050  if test -n "$PKG_CONFIG" && \
20051    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20052    pkg_short_errors=" --short-errors "
20053  else
20054    pkg_short_errors=""
20055  fi
20056fi
20057
20058
20059
20060if test -n "$PKG_CONFIG"; then
20061  COIN_HAS_PKGCONFIG_TRUE=
20062  COIN_HAS_PKGCONFIG_FALSE='#'
20063else
20064  COIN_HAS_PKGCONFIG_TRUE='#'
20065  COIN_HAS_PKGCONFIG_FALSE=
20066fi
20067
20068
20069
20070# assemble pkg-config search path for installed projects
20071COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20072
20073# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20074# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20075# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20076if test "x${prefix}" = xNONE ; then
20077  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20078else
20079  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20080fi
20081
20082
20083# Check whether --with-coin-instdir or --without-coin-instdir was given.
20084if test "${with_coin_instdir+set}" = set; then
20085  withval="$with_coin_instdir"
20086  if test -d "$withval"; then : ; else
20087     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20088echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20089   { (exit 1); exit 1; }; }
20090   fi
20091   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20092
20093fi;
20094
20095
20096
20097# assemble additional pkg-config search paths for uninstalled projects
20098if test x$coin_projectdir = xyes ; then
20099  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20100  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20101  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20102  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20103  COIN_PKG_CONFIG_PATH_UNINSTALLED=
20104  if test -e ../coin_subdirs.txt ; then
20105    for i in `cat ../coin_subdirs.txt` ; do
20106      if test -d ../$i ; then
20107        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20108      fi
20109      if test -d ../$i/pkgconfig ; then
20110        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20111      fi
20112    done
20113  fi
20114
20115  if test -e ../../coin_subdirs.txt ; then
20116    for i in `cat ../../coin_subdirs.txt` ; do
20117      if test -d ../../$i ; then
20118        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20119      fi
20120      if test -d ../../$i/pkgconfig ; then
20121        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20122      fi
20123    done
20124  fi
20125
20126
20127fi
20128
20129if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20130  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20131echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20132fi
20133
20134
20135
20136#############################################################################
20137#                              COIN components                              #
20138#############################################################################
20139
20140
20141
20142if test $coin_cc_is_cl != true ; then
20143
20144    CREMELIB_LIBS="-lm $CREMELIB_LIBS"
20145    CREMELIB_PCLIBS="-lm $CREMELIB_PCLIBS"
20146    CREMELIB_LIBS_INSTALLED="-lm $CREMELIB_LIBS_INSTALLED"
20147
20148fi
20149
20150
20151
20152#AC_SUBST(CREMELIBS)
20153#CREMELIBS=
20154
20155########################################################################
20156##          Create Makefiles and other stuff                          ##
20157########################################################################
20158
20159                                                            ac_config_files="$ac_config_files Makefile src/Base/Makefile test/Makefile test/grandTest.sh creme.pc creme-uninstalled.pc"
20160
20161
20162          ac_config_headers="$ac_config_headers inc/config_creme.h"
20163
20164
20165
20166
20167
20168
20169echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
20170echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
20171coin_link_input_cmd="$LN_S"
20172if test "$enable_doscompile" = mingw; then
20173  coin_link_input_cmd=cp
20174fi
20175case "$CC" in
20176  clang* ) ;;
20177  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20178    coin_link_input_cmd=cp ;;
20179esac
20180echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
20181echo "${ECHO_T}$coin_link_input_cmd" >&6
20182
20183
20184
20185if test x$coin_skip_ac_output != xyes; then
20186
20187  # library extension
20188
20189  case "$CC" in
20190    clang* )
20191         LIBEXT=a ;;
20192    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20193         LIBEXT=lib ;;
20194      *) LIBEXT=a ;;
20195  esac
20196
20197  # Define VPATH_DISTCLEANFILES to be everything that needs to be
20198  # cleaned for distclean in a vpath configuration
20199
20200  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
20201
20202  # Take out subdirectories if their configuration concluded that they
20203  # don't need to be compiled
20204  if test x"$coin_ac_skip_subdirs" != x; then
20205    new_subdirs=
20206    for i in $subdirs; do
20207      skipme=no
20208      for j in $coin_ac_skip_subdirs; do
20209        if test $i = $j; then
20210          skipme=yes;
20211        fi
20212      done
20213      if test $skipme = no; then
20214        new_subdirs="$new_subdirs $i"
20215      fi
20216    done
20217    subdirs="$new_subdirs"
20218  fi
20219
20220  # need to come before AC_OUTPUT
20221  if test x$coin_projectdir != xyes; then
20222    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
20223    echo $coin_subdirs > coin_subdirs.txt
20224  else
20225    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
20226    ABSBUILDDIR="`pwd`"
20227
20228  fi
20229
20230  cat >confcache <<\_ACEOF
20231# This file is a shell script that caches the results of configure
20232# tests run on this system so they can be shared between configure
20233# scripts and configure runs, see configure's option --config-cache.
20234# It is not useful on other systems.  If it contains results you don't
20235# want to keep, you may remove or edit it.
20236#
20237# config.status only pays attention to the cache file if you give it
20238# the --recheck option to rerun configure.
20239#
20240# `ac_cv_env_foo' variables (set or unset) will be overridden when
20241# loading this file, other *unset* `ac_cv_foo' will be assigned the
20242# following values.
20243
20244_ACEOF
20245
20246# The following way of writing the cache mishandles newlines in values,
20247# but we know of no workaround that is simple, portable, and efficient.
20248# So, don't put newlines in cache variables' values.
20249# Ultrix sh set writes to stderr and can't be redirected directly,
20250# and sets the high bit in the cache file unless we assign to the vars.
20251{
20252  (set) 2>&1 |
20253    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20254    *ac_space=\ *)
20255      # `set' does not quote correctly, so add quotes (double-quote
20256      # substitution turns \\\\ into \\, and sed turns \\ into \).
20257      sed -n \
20258	"s/'/'\\\\''/g;
20259	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20260      ;;
20261    *)
20262      # `set' quotes correctly as required by POSIX, so do not add quotes.
20263      sed -n \
20264	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20265      ;;
20266    esac;
20267} |
20268  sed '
20269     t clear
20270     : clear
20271     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20272     t end
20273     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20274     : end' >>confcache
20275if diff $cache_file confcache >/dev/null 2>&1; then :; else
20276  if test -w $cache_file; then
20277    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20278    cat confcache >$cache_file
20279  else
20280    echo "not updating unwritable cache $cache_file"
20281  fi
20282fi
20283rm -f confcache
20284
20285test "x$prefix" = xNONE && prefix=$ac_default_prefix
20286# Let make expand exec_prefix.
20287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20288
20289# VPATH may cause trouble with some makes, so we remove $(srcdir),
20290# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20291# trailing colons and then remove the whole line if VPATH becomes empty
20292# (actually we leave an empty line to preserve line numbers).
20293if test "x$srcdir" = x.; then
20294  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20295s/:*\$(srcdir):*/:/;
20296s/:*\${srcdir}:*/:/;
20297s/:*@srcdir@:*/:/;
20298s/^\([^=]*=[	 ]*\):*/\1/;
20299s/:*$//;
20300s/^[^=]*=[	 ]*$//;
20301}'
20302fi
20303
20304DEFS=-DHAVE_CONFIG_H
20305
20306ac_libobjs=
20307ac_ltlibobjs=
20308for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20309  # 1. Remove the extension, and $U if already installed.
20310  ac_i=`echo "$ac_i" |
20311	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20312  # 2. Add them.
20313  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20314  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20315done
20316LIBOBJS=$ac_libobjs
20317
20318LTLIBOBJS=$ac_ltlibobjs
20319
20320
20321if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
20322  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
20323Usually this means the macro was only invoked conditionally." >&5
20324echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
20325Usually this means the macro was only invoked conditionally." >&2;}
20326   { (exit 1); exit 1; }; }
20327fi
20328if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
20329  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
20330Usually this means the macro was only invoked conditionally." >&5
20331echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
20332Usually this means the macro was only invoked conditionally." >&2;}
20333   { (exit 1); exit 1; }; }
20334fi
20335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20336  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20337Usually this means the macro was only invoked conditionally." >&5
20338echo "$as_me: error: conditional \"AMDEP\" was never defined.
20339Usually this means the macro was only invoked conditionally." >&2;}
20340   { (exit 1); exit 1; }; }
20341fi
20342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20343  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20344Usually this means the macro was only invoked conditionally." >&5
20345echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20346Usually this means the macro was only invoked conditionally." >&2;}
20347   { (exit 1); exit 1; }; }
20348fi
20349if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20350  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20351Usually this means the macro was only invoked conditionally." >&5
20352echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20353Usually this means the macro was only invoked conditionally." >&2;}
20354   { (exit 1); exit 1; }; }
20355fi
20356if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
20357  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
20358Usually this means the macro was only invoked conditionally." >&5
20359echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
20360Usually this means the macro was only invoked conditionally." >&2;}
20361   { (exit 1); exit 1; }; }
20362fi
20363if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20364  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20365Usually this means the macro was only invoked conditionally." >&5
20366echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20367Usually this means the macro was only invoked conditionally." >&2;}
20368   { (exit 1); exit 1; }; }
20369fi
20370if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
20371  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
20372Usually this means the macro was only invoked conditionally." >&5
20373echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
20374Usually this means the macro was only invoked conditionally." >&2;}
20375   { (exit 1); exit 1; }; }
20376fi
20377
20378: ${CONFIG_STATUS=./config.status}
20379ac_clean_files_save=$ac_clean_files
20380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20382echo "$as_me: creating $CONFIG_STATUS" >&6;}
20383cat >$CONFIG_STATUS <<_ACEOF
20384#! $SHELL
20385# Generated by $as_me.
20386# Run this file to recreate the current configuration.
20387# Compiler output produced by configure, useful for debugging
20388# configure, is in config.log if it exists.
20389
20390debug=false
20391ac_cs_recheck=false
20392ac_cs_silent=false
20393SHELL=\${CONFIG_SHELL-$SHELL}
20394_ACEOF
20395
20396cat >>$CONFIG_STATUS <<\_ACEOF
20397## --------------------- ##
20398## M4sh Initialization.  ##
20399## --------------------- ##
20400
20401# Be Bourne compatible
20402if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20403  emulate sh
20404  NULLCMD=:
20405  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20406  # is contrary to our usage.  Disable this feature.
20407  alias -g '${1+"$@"}'='"$@"'
20408elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20409  set -o posix
20410fi
20411DUALCASE=1; export DUALCASE # for MKS sh
20412
20413# Support unset when possible.
20414if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20415  as_unset=unset
20416else
20417  as_unset=false
20418fi
20419
20420
20421# Work around bugs in pre-3.0 UWIN ksh.
20422$as_unset ENV MAIL MAILPATH
20423PS1='$ '
20424PS2='> '
20425PS4='+ '
20426
20427# NLS nuisances.
20428for as_var in \
20429  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20430  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20431  LC_TELEPHONE LC_TIME
20432do
20433  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20434    eval $as_var=C; export $as_var
20435  else
20436    $as_unset $as_var
20437  fi
20438done
20439
20440# Required to use basename.
20441if expr a : '\(a\)' >/dev/null 2>&1; then
20442  as_expr=expr
20443else
20444  as_expr=false
20445fi
20446
20447if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20448  as_basename=basename
20449else
20450  as_basename=false
20451fi
20452
20453
20454# Name of the executable.
20455as_me=`$as_basename "$0" ||
20456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20457	 X"$0" : 'X\(//\)$' \| \
20458	 X"$0" : 'X\(/\)$' \| \
20459	 .     : '\(.\)' 2>/dev/null ||
20460echo X/"$0" |
20461    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20462  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20463  	  /^X\/\(\/\).*/{ s//\1/; q; }
20464  	  s/.*/./; q'`
20465
20466
20467# PATH needs CR, and LINENO needs CR and PATH.
20468# Avoid depending upon Character Ranges.
20469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20472as_cr_digits='0123456789'
20473as_cr_alnum=$as_cr_Letters$as_cr_digits
20474
20475# The user is always right.
20476if test "${PATH_SEPARATOR+set}" != set; then
20477  echo "#! /bin/sh" >conf$$.sh
20478  echo  "exit 0"   >>conf$$.sh
20479  chmod +x conf$$.sh
20480  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20481    PATH_SEPARATOR=';'
20482  else
20483    PATH_SEPARATOR=:
20484  fi
20485  rm -f conf$$.sh
20486fi
20487
20488
20489  as_lineno_1=$LINENO
20490  as_lineno_2=$LINENO
20491  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20492  test "x$as_lineno_1" != "x$as_lineno_2" &&
20493  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20494  # Find who we are.  Look in the path if we contain no path at all
20495  # relative or not.
20496  case $0 in
20497    *[\\/]* ) as_myself=$0 ;;
20498    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20499for as_dir in $PATH
20500do
20501  IFS=$as_save_IFS
20502  test -z "$as_dir" && as_dir=.
20503  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20504done
20505
20506       ;;
20507  esac
20508  # We did not find ourselves, most probably we were run as `sh COMMAND'
20509  # in which case we are not to be found in the path.
20510  if test "x$as_myself" = x; then
20511    as_myself=$0
20512  fi
20513  if test ! -f "$as_myself"; then
20514    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20515echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20516   { (exit 1); exit 1; }; }
20517  fi
20518  case $CONFIG_SHELL in
20519  '')
20520    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20521for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20522do
20523  IFS=$as_save_IFS
20524  test -z "$as_dir" && as_dir=.
20525  for as_base in sh bash ksh sh5; do
20526	 case $as_dir in
20527	 /*)
20528	   if ("$as_dir/$as_base" -c '
20529  as_lineno_1=$LINENO
20530  as_lineno_2=$LINENO
20531  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20532  test "x$as_lineno_1" != "x$as_lineno_2" &&
20533  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20534	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20535	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20536	     CONFIG_SHELL=$as_dir/$as_base
20537	     export CONFIG_SHELL
20538	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20539	   fi;;
20540	 esac
20541       done
20542done
20543;;
20544  esac
20545
20546  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20547  # uniformly replaced by the line number.  The first 'sed' inserts a
20548  # line-number line before each line; the second 'sed' does the real
20549  # work.  The second script uses 'N' to pair each line-number line
20550  # with the numbered line, and appends trailing '-' during
20551  # substitution so that $LINENO is not a special case at line end.
20552  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20553  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20554  sed '=' <$as_myself |
20555    sed '
20556      N
20557      s,$,-,
20558      : loop
20559      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20560      t loop
20561      s,-$,,
20562      s,^['$as_cr_digits']*\n,,
20563    ' >$as_me.lineno &&
20564  chmod +x $as_me.lineno ||
20565    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20566echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20567   { (exit 1); exit 1; }; }
20568
20569  # Don't try to exec as it changes $[0], causing all sort of problems
20570  # (the dirname of $[0] is not the place where we might find the
20571  # original and so on.  Autoconf is especially sensible to this).
20572  . ./$as_me.lineno
20573  # Exit status is that of the last command.
20574  exit
20575}
20576
20577
20578case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20579  *c*,-n*) ECHO_N= ECHO_C='
20580' ECHO_T='	' ;;
20581  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20582  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20583esac
20584
20585if expr a : '\(a\)' >/dev/null 2>&1; then
20586  as_expr=expr
20587else
20588  as_expr=false
20589fi
20590
20591rm -f conf$$ conf$$.exe conf$$.file
20592echo >conf$$.file
20593if ln -s conf$$.file conf$$ 2>/dev/null; then
20594  # We could just check for DJGPP; but this test a) works b) is more generic
20595  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20596  if test -f conf$$.exe; then
20597    # Don't use ln at all; we don't have any links
20598    as_ln_s='cp -p'
20599  else
20600    as_ln_s='ln -s'
20601  fi
20602elif ln conf$$.file conf$$ 2>/dev/null; then
20603  as_ln_s=ln
20604else
20605  as_ln_s='cp -p'
20606fi
20607rm -f conf$$ conf$$.exe conf$$.file
20608
20609if mkdir -p . 2>/dev/null; then
20610  as_mkdir_p=:
20611else
20612  test -d ./-p && rmdir ./-p
20613  as_mkdir_p=false
20614fi
20615
20616as_executable_p="test -f"
20617
20618# Sed expression to map a string onto a valid CPP name.
20619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20620
20621# Sed expression to map a string onto a valid variable name.
20622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20623
20624
20625# IFS
20626# We need space, tab and new line, in precisely that order.
20627as_nl='
20628'
20629IFS=" 	$as_nl"
20630
20631# CDPATH.
20632$as_unset CDPATH
20633
20634exec 6>&1
20635
20636# Open the log real soon, to keep \$[0] and so on meaningful, and to
20637# report actual input values of CONFIG_FILES etc. instead of their
20638# values after options handling.  Logging --version etc. is OK.
20639exec 5>>config.log
20640{
20641  echo
20642  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20643## Running $as_me. ##
20644_ASBOX
20645} >&5
20646cat >&5 <<_CSEOF
20647
20648This file was extended by Crème $as_me 0.0trunk, which was
20649generated by GNU Autoconf 2.59.  Invocation command line was
20650
20651  CONFIG_FILES    = $CONFIG_FILES
20652  CONFIG_HEADERS  = $CONFIG_HEADERS
20653  CONFIG_LINKS    = $CONFIG_LINKS
20654  CONFIG_COMMANDS = $CONFIG_COMMANDS
20655  $ $0 $@
20656
20657_CSEOF
20658echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20659echo >&5
20660_ACEOF
20661
20662# Files that config.status was made for.
20663if test -n "$ac_config_files"; then
20664  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20665fi
20666
20667if test -n "$ac_config_headers"; then
20668  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20669fi
20670
20671if test -n "$ac_config_links"; then
20672  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20673fi
20674
20675if test -n "$ac_config_commands"; then
20676  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20677fi
20678
20679cat >>$CONFIG_STATUS <<\_ACEOF
20680
20681ac_cs_usage="\
20682\`$as_me' instantiates files from templates according to the
20683current configuration.
20684
20685Usage: $0 [OPTIONS] [FILE]...
20686
20687  -h, --help       print this help, then exit
20688  -V, --version    print version number, then exit
20689  -q, --quiet      do not print progress messages
20690  -d, --debug      don't remove temporary files
20691      --recheck    update $as_me by reconfiguring in the same conditions
20692  --file=FILE[:TEMPLATE]
20693		   instantiate the configuration file FILE
20694  --header=FILE[:TEMPLATE]
20695		   instantiate the configuration header FILE
20696
20697Configuration files:
20698$config_files
20699
20700Configuration headers:
20701$config_headers
20702
20703Configuration commands:
20704$config_commands
20705
20706Report bugs to <bug-autoconf@gnu.org>."
20707_ACEOF
20708
20709cat >>$CONFIG_STATUS <<_ACEOF
20710ac_cs_version="\\
20711Crème config.status 0.0trunk
20712configured by $0, generated by GNU Autoconf 2.59,
20713  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20714
20715Copyright (C) 2003 Free Software Foundation, Inc.
20716This config.status script is free software; the Free Software Foundation
20717gives unlimited permission to copy, distribute and modify it."
20718srcdir=$srcdir
20719INSTALL="$INSTALL"
20720_ACEOF
20721
20722cat >>$CONFIG_STATUS <<\_ACEOF
20723# If no file are specified by the user, then we need to provide default
20724# value.  By we need to know if files were specified by the user.
20725ac_need_defaults=:
20726while test $# != 0
20727do
20728  case $1 in
20729  --*=*)
20730    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20731    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20732    ac_shift=:
20733    ;;
20734  -*)
20735    ac_option=$1
20736    ac_optarg=$2
20737    ac_shift=shift
20738    ;;
20739  *) # This is not an option, so the user has probably given explicit
20740     # arguments.
20741     ac_option=$1
20742     ac_need_defaults=false;;
20743  esac
20744
20745  case $ac_option in
20746  # Handling of the options.
20747_ACEOF
20748cat >>$CONFIG_STATUS <<\_ACEOF
20749  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20750    ac_cs_recheck=: ;;
20751  --version | --vers* | -V )
20752    echo "$ac_cs_version"; exit 0 ;;
20753  --he | --h)
20754    # Conflict between --help and --header
20755    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20756Try \`$0 --help' for more information." >&5
20757echo "$as_me: error: ambiguous option: $1
20758Try \`$0 --help' for more information." >&2;}
20759   { (exit 1); exit 1; }; };;
20760  --help | --hel | -h )
20761    echo "$ac_cs_usage"; exit 0 ;;
20762  --debug | --d* | -d )
20763    debug=: ;;
20764  --file | --fil | --fi | --f )
20765    $ac_shift
20766    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20767    ac_need_defaults=false;;
20768  --header | --heade | --head | --hea )
20769    $ac_shift
20770    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20771    ac_need_defaults=false;;
20772  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20773  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20774    ac_cs_silent=: ;;
20775
20776  # This is an error.
20777  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20778Try \`$0 --help' for more information." >&5
20779echo "$as_me: error: unrecognized option: $1
20780Try \`$0 --help' for more information." >&2;}
20781   { (exit 1); exit 1; }; } ;;
20782
20783  *) ac_config_targets="$ac_config_targets $1" ;;
20784
20785  esac
20786  shift
20787done
20788
20789ac_configure_extra_args=
20790
20791if $ac_cs_silent; then
20792  exec 6>/dev/null
20793  ac_configure_extra_args="$ac_configure_extra_args --silent"
20794fi
20795
20796_ACEOF
20797cat >>$CONFIG_STATUS <<_ACEOF
20798if \$ac_cs_recheck; then
20799  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20800  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20801fi
20802
20803_ACEOF
20804
20805cat >>$CONFIG_STATUS <<_ACEOF
20806#
20807# INIT-COMMANDS section.
20808#
20809
20810AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20811
20812_ACEOF
20813
20814
20815
20816cat >>$CONFIG_STATUS <<\_ACEOF
20817for ac_config_target in $ac_config_targets
20818do
20819  case "$ac_config_target" in
20820  # Handling of arguments.
20821  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20822  "src/Base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Base/Makefile" ;;
20823  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20824  "test/grandTest.sh" ) CONFIG_FILES="$CONFIG_FILES test/grandTest.sh" ;;
20825  "creme.pc" ) CONFIG_FILES="$CONFIG_FILES creme.pc" ;;
20826  "creme-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES creme-uninstalled.pc" ;;
20827  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20828  "inc/config_creme.h" ) CONFIG_HEADERS="$CONFIG_HEADERS inc/config_creme.h" ;;
20829  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20830echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20831   { (exit 1); exit 1; }; };;
20832  esac
20833done
20834
20835# If the user did not use the arguments to specify the items to instantiate,
20836# then the envvar interface is used.  Set only those that are not.
20837# We use the long form for the default assignment because of an extremely
20838# bizarre bug on SunOS 4.1.3.
20839if $ac_need_defaults; then
20840  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20841  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20842  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20843fi
20844
20845# Have a temporary directory for convenience.  Make it in the build tree
20846# simply because there is no reason to put it here, and in addition,
20847# creating and moving files from /tmp can sometimes cause problems.
20848# Create a temporary directory, and hook for its removal unless debugging.
20849$debug ||
20850{
20851  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20852  trap '{ (exit 1); exit 1; }' 1 2 13 15
20853}
20854
20855# Create a (secure) tmp directory for tmp files.
20856
20857{
20858  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20859  test -n "$tmp" && test -d "$tmp"
20860}  ||
20861{
20862  tmp=./confstat$$-$RANDOM
20863  (umask 077 && mkdir $tmp)
20864} ||
20865{
20866   echo "$me: cannot create a temporary directory in ." >&2
20867   { (exit 1); exit 1; }
20868}
20869
20870_ACEOF
20871
20872cat >>$CONFIG_STATUS <<_ACEOF
20873
20874#
20875# CONFIG_FILES section.
20876#
20877
20878# No need to generate the scripts if there are no CONFIG_FILES.
20879# This happens for instance when ./config.status config.h
20880if test -n "\$CONFIG_FILES"; then
20881  # Protect against being on the right side of a sed subst in config.status.
20882  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20883   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20884s,@SHELL@,$SHELL,;t t
20885s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20886s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20887s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20888s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20889s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20890s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20891s,@exec_prefix@,$exec_prefix,;t t
20892s,@prefix@,$prefix,;t t
20893s,@program_transform_name@,$program_transform_name,;t t
20894s,@bindir@,$bindir,;t t
20895s,@sbindir@,$sbindir,;t t
20896s,@libexecdir@,$libexecdir,;t t
20897s,@datadir@,$datadir,;t t
20898s,@sysconfdir@,$sysconfdir,;t t
20899s,@sharedstatedir@,$sharedstatedir,;t t
20900s,@localstatedir@,$localstatedir,;t t
20901s,@libdir@,$libdir,;t t
20902s,@includedir@,$includedir,;t t
20903s,@oldincludedir@,$oldincludedir,;t t
20904s,@infodir@,$infodir,;t t
20905s,@mandir@,$mandir,;t t
20906s,@build_alias@,$build_alias,;t t
20907s,@host_alias@,$host_alias,;t t
20908s,@target_alias@,$target_alias,;t t
20909s,@DEFS@,$DEFS,;t t
20910s,@ECHO_C@,$ECHO_C,;t t
20911s,@ECHO_N@,$ECHO_N,;t t
20912s,@ECHO_T@,$ECHO_T,;t t
20913s,@LIBS@,$LIBS,;t t
20914s,@build@,$build,;t t
20915s,@build_cpu@,$build_cpu,;t t
20916s,@build_vendor@,$build_vendor,;t t
20917s,@build_os@,$build_os,;t t
20918s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
20919s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
20920s,@have_svnversion@,$have_svnversion,;t t
20921s,@CREME_SVN_REV@,$CREME_SVN_REV,;t t
20922s,@CDEFS@,$CDEFS,;t t
20923s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
20924s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
20925s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
20926s,@sol_cc_compiler@,$sol_cc_compiler,;t t
20927s,@CC@,$CC,;t t
20928s,@CFLAGS@,$CFLAGS,;t t
20929s,@LDFLAGS@,$LDFLAGS,;t t
20930s,@CPPFLAGS@,$CPPFLAGS,;t t
20931s,@ac_ct_CC@,$ac_ct_CC,;t t
20932s,@EXEEXT@,$EXEEXT,;t t
20933s,@OBJEXT@,$OBJEXT,;t t
20934s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
20935s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
20936s,@MPICC@,$MPICC,;t t
20937s,@EGREP@,$EGREP,;t t
20938s,@LN_S@,$LN_S,;t t
20939s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20940s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20941s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20942s,@CYGPATH_W@,$CYGPATH_W,;t t
20943s,@PACKAGE@,$PACKAGE,;t t
20944s,@VERSION@,$VERSION,;t t
20945s,@ACLOCAL@,$ACLOCAL,;t t
20946s,@AUTOCONF@,$AUTOCONF,;t t
20947s,@AUTOMAKE@,$AUTOMAKE,;t t
20948s,@AUTOHEADER@,$AUTOHEADER,;t t
20949s,@MAKEINFO@,$MAKEINFO,;t t
20950s,@install_sh@,$install_sh,;t t
20951s,@STRIP@,$STRIP,;t t
20952s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20953s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20954s,@mkdir_p@,$mkdir_p,;t t
20955s,@AWK@,$AWK,;t t
20956s,@SET_MAKE@,$SET_MAKE,;t t
20957s,@am__leading_dot@,$am__leading_dot,;t t
20958s,@AMTAR@,$AMTAR,;t t
20959s,@am__tar@,$am__tar,;t t
20960s,@am__untar@,$am__untar,;t t
20961s,@DEPDIR@,$DEPDIR,;t t
20962s,@am__include@,$am__include,;t t
20963s,@am__quote@,$am__quote,;t t
20964s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20965s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20966s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20967s,@CCDEPMODE@,$CCDEPMODE,;t t
20968s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20969s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20970s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20971s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20972s,@MAINT@,$MAINT,;t t
20973s,@LIBTOOLM4@,$LIBTOOLM4,;t t
20974s,@have_autoconf@,$have_autoconf,;t t
20975s,@have_automake@,$have_automake,;t t
20976s,@have_svn@,$have_svn,;t t
20977s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
20978s,@AUX_DIR@,$AUX_DIR,;t t
20979s,@abs_source_dir@,$abs_source_dir,;t t
20980s,@abs_lib_dir@,$abs_lib_dir,;t t
20981s,@abs_include_dir@,$abs_include_dir,;t t
20982s,@abs_bin_dir@,$abs_bin_dir,;t t
20983s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
20984s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
20985s,@host@,$host,;t t
20986s,@host_cpu@,$host_cpu,;t t
20987s,@host_vendor@,$host_vendor,;t t
20988s,@host_os@,$host_os,;t t
20989s,@ECHO@,$ECHO,;t t
20990s,@AR@,$AR,;t t
20991s,@ac_ct_AR@,$ac_ct_AR,;t t
20992s,@RANLIB@,$RANLIB,;t t
20993s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20994s,@CPP@,$CPP,;t t
20995s,@CXX@,$CXX,;t t
20996s,@CXXFLAGS@,$CXXFLAGS,;t t
20997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20998s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20999s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21000s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21001s,@CXXCPP@,$CXXCPP,;t t
21002s,@F77@,$F77,;t t
21003s,@FFLAGS@,$FFLAGS,;t t
21004s,@ac_ct_F77@,$ac_ct_F77,;t t
21005s,@LIBTOOL@,$LIBTOOL,;t t
21006s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
21007s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
21008s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
21009s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
21010s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21011s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21012s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
21013s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
21014s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
21015s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
21016s,@LIBEXT@,$LIBEXT,;t t
21017s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
21018s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
21019s,@LIBOBJS@,$LIBOBJS,;t t
21020s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21021CEOF
21022
21023_ACEOF
21024
21025  cat >>$CONFIG_STATUS <<\_ACEOF
21026  # Split the substitutions into bite-sized pieces for seds with
21027  # small command number limits, like on Digital OSF/1 and HP-UX.
21028  ac_max_sed_lines=48
21029  ac_sed_frag=1 # Number of current file.
21030  ac_beg=1 # First line for current file.
21031  ac_end=$ac_max_sed_lines # Line after last line for current file.
21032  ac_more_lines=:
21033  ac_sed_cmds=
21034  while $ac_more_lines; do
21035    if test $ac_beg -gt 1; then
21036      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21037    else
21038      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21039    fi
21040    if test ! -s $tmp/subs.frag; then
21041      ac_more_lines=false
21042    else
21043      # The purpose of the label and of the branching condition is to
21044      # speed up the sed processing (if there are no `@' at all, there
21045      # is no need to browse any of the substitutions).
21046      # These are the two extra sed commands mentioned above.
21047      (echo ':t
21048  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21049      if test -z "$ac_sed_cmds"; then
21050	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21051      else
21052	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21053      fi
21054      ac_sed_frag=`expr $ac_sed_frag + 1`
21055      ac_beg=$ac_end
21056      ac_end=`expr $ac_end + $ac_max_sed_lines`
21057    fi
21058  done
21059  if test -z "$ac_sed_cmds"; then
21060    ac_sed_cmds=cat
21061  fi
21062fi # test -n "$CONFIG_FILES"
21063
21064_ACEOF
21065cat >>$CONFIG_STATUS <<\_ACEOF
21066for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21067  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21068  case $ac_file in
21069  - | *:- | *:-:* ) # input from stdin
21070	cat >$tmp/stdin
21071	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21072	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21073  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21074	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21075  * )   ac_file_in=$ac_file.in ;;
21076  esac
21077
21078  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21079  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21080$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081	 X"$ac_file" : 'X\(//\)[^/]' \| \
21082	 X"$ac_file" : 'X\(//\)$' \| \
21083	 X"$ac_file" : 'X\(/\)' \| \
21084	 .     : '\(.\)' 2>/dev/null ||
21085echo X"$ac_file" |
21086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088  	  /^X\(\/\/\)$/{ s//\1/; q; }
21089  	  /^X\(\/\).*/{ s//\1/; q; }
21090  	  s/.*/./; q'`
21091  { if $as_mkdir_p; then
21092    mkdir -p "$ac_dir"
21093  else
21094    as_dir="$ac_dir"
21095    as_dirs=
21096    while test ! -d "$as_dir"; do
21097      as_dirs="$as_dir $as_dirs"
21098      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100	 X"$as_dir" : 'X\(//\)[^/]' \| \
21101	 X"$as_dir" : 'X\(//\)$' \| \
21102	 X"$as_dir" : 'X\(/\)' \| \
21103	 .     : '\(.\)' 2>/dev/null ||
21104echo X"$as_dir" |
21105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21106  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21107  	  /^X\(\/\/\)$/{ s//\1/; q; }
21108  	  /^X\(\/\).*/{ s//\1/; q; }
21109  	  s/.*/./; q'`
21110    done
21111    test ! -n "$as_dirs" || mkdir $as_dirs
21112  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21113echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21114   { (exit 1); exit 1; }; }; }
21115
21116  ac_builddir=.
21117
21118if test "$ac_dir" != .; then
21119  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21120  # A "../" for each directory in $ac_dir_suffix.
21121  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21122else
21123  ac_dir_suffix= ac_top_builddir=
21124fi
21125
21126case $srcdir in
21127  .)  # No --srcdir option.  We are building in place.
21128    ac_srcdir=.
21129    if test -z "$ac_top_builddir"; then
21130       ac_top_srcdir=.
21131    else
21132       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21133    fi ;;
21134  [\\/]* | ?:[\\/]* )  # Absolute path.
21135    ac_srcdir=$srcdir$ac_dir_suffix;
21136    ac_top_srcdir=$srcdir ;;
21137  *) # Relative path.
21138    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21139    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21140esac
21141
21142# Do not use `cd foo && pwd` to compute absolute paths, because
21143# the directories may not exist.
21144case `pwd` in
21145.) ac_abs_builddir="$ac_dir";;
21146*)
21147  case "$ac_dir" in
21148  .) ac_abs_builddir=`pwd`;;
21149  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21150  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21151  esac;;
21152esac
21153case $ac_abs_builddir in
21154.) ac_abs_top_builddir=${ac_top_builddir}.;;
21155*)
21156  case ${ac_top_builddir}. in
21157  .) ac_abs_top_builddir=$ac_abs_builddir;;
21158  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21159  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21160  esac;;
21161esac
21162case $ac_abs_builddir in
21163.) ac_abs_srcdir=$ac_srcdir;;
21164*)
21165  case $ac_srcdir in
21166  .) ac_abs_srcdir=$ac_abs_builddir;;
21167  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21168  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21169  esac;;
21170esac
21171case $ac_abs_builddir in
21172.) ac_abs_top_srcdir=$ac_top_srcdir;;
21173*)
21174  case $ac_top_srcdir in
21175  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21176  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21177  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21178  esac;;
21179esac
21180
21181
21182  case $INSTALL in
21183  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21184  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21185  esac
21186
21187  if test x"$ac_file" != x-; then
21188    { echo "$as_me:$LINENO: creating $ac_file" >&5
21189echo "$as_me: creating $ac_file" >&6;}
21190    rm -f "$ac_file"
21191  fi
21192  # Let's still pretend it is `configure' which instantiates (i.e., don't
21193  # use $as_me), people would be surprised to read:
21194  #    /* config.h.  Generated by config.status.  */
21195  if test x"$ac_file" = x-; then
21196    configure_input=
21197  else
21198    configure_input="$ac_file.  "
21199  fi
21200  configure_input=$configure_input"Generated from `echo $ac_file_in |
21201				     sed 's,.*/,,'` by configure."
21202
21203  # First look for the input files in the build tree, otherwise in the
21204  # src tree.
21205  ac_file_inputs=`IFS=:
21206    for f in $ac_file_in; do
21207      case $f in
21208      -) echo $tmp/stdin ;;
21209      [\\/$]*)
21210	 # Absolute (can't be DOS-style, as IFS=:)
21211	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21212echo "$as_me: error: cannot find input file: $f" >&2;}
21213   { (exit 1); exit 1; }; }
21214	 echo "$f";;
21215      *) # Relative
21216	 if test -f "$f"; then
21217	   # Build tree
21218	   echo "$f"
21219	 elif test -f "$srcdir/$f"; then
21220	   # Source tree
21221	   echo "$srcdir/$f"
21222	 else
21223	   # /dev/null tree
21224	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21225echo "$as_me: error: cannot find input file: $f" >&2;}
21226   { (exit 1); exit 1; }; }
21227	 fi;;
21228      esac
21229    done` || { (exit 1); exit 1; }
21230_ACEOF
21231cat >>$CONFIG_STATUS <<_ACEOF
21232  sed "$ac_vpsub
21233$extrasub
21234_ACEOF
21235cat >>$CONFIG_STATUS <<\_ACEOF
21236:t
21237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21238s,@configure_input@,$configure_input,;t t
21239s,@srcdir@,$ac_srcdir,;t t
21240s,@abs_srcdir@,$ac_abs_srcdir,;t t
21241s,@top_srcdir@,$ac_top_srcdir,;t t
21242s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21243s,@builddir@,$ac_builddir,;t t
21244s,@abs_builddir@,$ac_abs_builddir,;t t
21245s,@top_builddir@,$ac_top_builddir,;t t
21246s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21247s,@INSTALL@,$ac_INSTALL,;t t
21248" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21249  rm -f $tmp/stdin
21250  if test x"$ac_file" != x-; then
21251    mv $tmp/out $ac_file
21252  else
21253    cat $tmp/out
21254    rm -f $tmp/out
21255  fi
21256
21257done
21258_ACEOF
21259cat >>$CONFIG_STATUS <<\_ACEOF
21260
21261#
21262# CONFIG_HEADER section.
21263#
21264
21265# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21266# NAME is the cpp macro being defined and VALUE is the value it is being given.
21267#
21268# ac_d sets the value in "#define NAME VALUE" lines.
21269ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21270ac_dB='[	 ].*$,\1#\2'
21271ac_dC=' '
21272ac_dD=',;t'
21273# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21274ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21275ac_uB='$,\1#\2define\3'
21276ac_uC=' '
21277ac_uD=',;t'
21278
21279for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21280  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21281  case $ac_file in
21282  - | *:- | *:-:* ) # input from stdin
21283	cat >$tmp/stdin
21284	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21285	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21286  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21287	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21288  * )   ac_file_in=$ac_file.in ;;
21289  esac
21290
21291  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21292echo "$as_me: creating $ac_file" >&6;}
21293
21294  # First look for the input files in the build tree, otherwise in the
21295  # src tree.
21296  ac_file_inputs=`IFS=:
21297    for f in $ac_file_in; do
21298      case $f in
21299      -) echo $tmp/stdin ;;
21300      [\\/$]*)
21301	 # Absolute (can't be DOS-style, as IFS=:)
21302	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21303echo "$as_me: error: cannot find input file: $f" >&2;}
21304   { (exit 1); exit 1; }; }
21305	 # Do quote $f, to prevent DOS paths from being IFS'd.
21306	 echo "$f";;
21307      *) # Relative
21308	 if test -f "$f"; then
21309	   # Build tree
21310	   echo "$f"
21311	 elif test -f "$srcdir/$f"; then
21312	   # Source tree
21313	   echo "$srcdir/$f"
21314	 else
21315	   # /dev/null tree
21316	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21317echo "$as_me: error: cannot find input file: $f" >&2;}
21318   { (exit 1); exit 1; }; }
21319	 fi;;
21320      esac
21321    done` || { (exit 1); exit 1; }
21322  # Remove the trailing spaces.
21323  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21324
21325_ACEOF
21326
21327# Transform confdefs.h into two sed scripts, `conftest.defines' and
21328# `conftest.undefs', that substitutes the proper values into
21329# config.h.in to produce config.h.  The first handles `#define'
21330# templates, and the second `#undef' templates.
21331# And first: Protect against being on the right side of a sed subst in
21332# config.status.  Protect against being in an unquoted here document
21333# in config.status.
21334rm -f conftest.defines conftest.undefs
21335# Using a here document instead of a string reduces the quoting nightmare.
21336# Putting comments in sed scripts is not portable.
21337#
21338# `end' is used to avoid that the second main sed command (meant for
21339# 0-ary CPP macros) applies to n-ary macro definitions.
21340# See the Autoconf documentation for `clear'.
21341cat >confdef2sed.sed <<\_ACEOF
21342s/[\\&,]/\\&/g
21343s,[\\$`],\\&,g
21344t clear
21345: clear
21346s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21347t end
21348s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21349: end
21350_ACEOF
21351# If some macros were called several times there might be several times
21352# the same #defines, which is useless.  Nevertheless, we may not want to
21353# sort them, since we want the *last* AC-DEFINE to be honored.
21354uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21355sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21356rm -f confdef2sed.sed
21357
21358# This sed command replaces #undef with comments.  This is necessary, for
21359# example, in the case of _POSIX_SOURCE, which is predefined and required
21360# on some systems where configure will not decide to define it.
21361cat >>conftest.undefs <<\_ACEOF
21362s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21363_ACEOF
21364
21365# Break up conftest.defines because some shells have a limit on the size
21366# of here documents, and old seds have small limits too (100 cmds).
21367echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21368echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21369echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21370echo '  :' >>$CONFIG_STATUS
21371rm -f conftest.tail
21372while grep . conftest.defines >/dev/null
21373do
21374  # Write a limited-size here document to $tmp/defines.sed.
21375  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21376  # Speed up: don't consider the non `#define' lines.
21377  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21378  # Work around the forget-to-reset-the-flag bug.
21379  echo 't clr' >>$CONFIG_STATUS
21380  echo ': clr' >>$CONFIG_STATUS
21381  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21382  echo 'CEOF
21383  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21384  rm -f $tmp/in
21385  mv $tmp/out $tmp/in
21386' >>$CONFIG_STATUS
21387  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21388  rm -f conftest.defines
21389  mv conftest.tail conftest.defines
21390done
21391rm -f conftest.defines
21392echo '  fi # grep' >>$CONFIG_STATUS
21393echo >>$CONFIG_STATUS
21394
21395# Break up conftest.undefs because some shells have a limit on the size
21396# of here documents, and old seds have small limits too (100 cmds).
21397echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21398rm -f conftest.tail
21399while grep . conftest.undefs >/dev/null
21400do
21401  # Write a limited-size here document to $tmp/undefs.sed.
21402  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21403  # Speed up: don't consider the non `#undef'
21404  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21405  # Work around the forget-to-reset-the-flag bug.
21406  echo 't clr' >>$CONFIG_STATUS
21407  echo ': clr' >>$CONFIG_STATUS
21408  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21409  echo 'CEOF
21410  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21411  rm -f $tmp/in
21412  mv $tmp/out $tmp/in
21413' >>$CONFIG_STATUS
21414  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21415  rm -f conftest.undefs
21416  mv conftest.tail conftest.undefs
21417done
21418rm -f conftest.undefs
21419
21420cat >>$CONFIG_STATUS <<\_ACEOF
21421  # Let's still pretend it is `configure' which instantiates (i.e., don't
21422  # use $as_me), people would be surprised to read:
21423  #    /* config.h.  Generated by config.status.  */
21424  if test x"$ac_file" = x-; then
21425    echo "/* Generated by configure.  */" >$tmp/config.h
21426  else
21427    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21428  fi
21429  cat $tmp/in >>$tmp/config.h
21430  rm -f $tmp/in
21431  if test x"$ac_file" != x-; then
21432    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21433      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21434echo "$as_me: $ac_file is unchanged" >&6;}
21435    else
21436      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21438	 X"$ac_file" : 'X\(//\)[^/]' \| \
21439	 X"$ac_file" : 'X\(//\)$' \| \
21440	 X"$ac_file" : 'X\(/\)' \| \
21441	 .     : '\(.\)' 2>/dev/null ||
21442echo X"$ac_file" |
21443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21444  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21445  	  /^X\(\/\/\)$/{ s//\1/; q; }
21446  	  /^X\(\/\).*/{ s//\1/; q; }
21447  	  s/.*/./; q'`
21448      { if $as_mkdir_p; then
21449    mkdir -p "$ac_dir"
21450  else
21451    as_dir="$ac_dir"
21452    as_dirs=
21453    while test ! -d "$as_dir"; do
21454      as_dirs="$as_dir $as_dirs"
21455      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21457	 X"$as_dir" : 'X\(//\)[^/]' \| \
21458	 X"$as_dir" : 'X\(//\)$' \| \
21459	 X"$as_dir" : 'X\(/\)' \| \
21460	 .     : '\(.\)' 2>/dev/null ||
21461echo X"$as_dir" |
21462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21463  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21464  	  /^X\(\/\/\)$/{ s//\1/; q; }
21465  	  /^X\(\/\).*/{ s//\1/; q; }
21466  	  s/.*/./; q'`
21467    done
21468    test ! -n "$as_dirs" || mkdir $as_dirs
21469  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21470echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21471   { (exit 1); exit 1; }; }; }
21472
21473      rm -f $ac_file
21474      mv $tmp/config.h $ac_file
21475    fi
21476  else
21477    cat $tmp/config.h
21478    rm -f $tmp/config.h
21479  fi
21480# Compute $ac_file's index in $config_headers.
21481_am_stamp_count=1
21482for _am_header in $config_headers :; do
21483  case $_am_header in
21484    $ac_file | $ac_file:* )
21485      break ;;
21486    * )
21487      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21488  esac
21489done
21490echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21491$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21492	 X$ac_file : 'X\(//\)[^/]' \| \
21493	 X$ac_file : 'X\(//\)$' \| \
21494	 X$ac_file : 'X\(/\)' \| \
21495	 .     : '\(.\)' 2>/dev/null ||
21496echo X$ac_file |
21497    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21498  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21499  	  /^X\(\/\/\)$/{ s//\1/; q; }
21500  	  /^X\(\/\).*/{ s//\1/; q; }
21501  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21502done
21503_ACEOF
21504cat >>$CONFIG_STATUS <<\_ACEOF
21505
21506#
21507# CONFIG_COMMANDS section.
21508#
21509for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21510  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21511  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21512  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21513$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21514	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21515	 X"$ac_dest" : 'X\(//\)$' \| \
21516	 X"$ac_dest" : 'X\(/\)' \| \
21517	 .     : '\(.\)' 2>/dev/null ||
21518echo X"$ac_dest" |
21519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21520  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21521  	  /^X\(\/\/\)$/{ s//\1/; q; }
21522  	  /^X\(\/\).*/{ s//\1/; q; }
21523  	  s/.*/./; q'`
21524  { if $as_mkdir_p; then
21525    mkdir -p "$ac_dir"
21526  else
21527    as_dir="$ac_dir"
21528    as_dirs=
21529    while test ! -d "$as_dir"; do
21530      as_dirs="$as_dir $as_dirs"
21531      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21533	 X"$as_dir" : 'X\(//\)[^/]' \| \
21534	 X"$as_dir" : 'X\(//\)$' \| \
21535	 X"$as_dir" : 'X\(/\)' \| \
21536	 .     : '\(.\)' 2>/dev/null ||
21537echo X"$as_dir" |
21538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21539  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21540  	  /^X\(\/\/\)$/{ s//\1/; q; }
21541  	  /^X\(\/\).*/{ s//\1/; q; }
21542  	  s/.*/./; q'`
21543    done
21544    test ! -n "$as_dirs" || mkdir $as_dirs
21545  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21546echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21547   { (exit 1); exit 1; }; }; }
21548
21549  ac_builddir=.
21550
21551if test "$ac_dir" != .; then
21552  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21553  # A "../" for each directory in $ac_dir_suffix.
21554  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21555else
21556  ac_dir_suffix= ac_top_builddir=
21557fi
21558
21559case $srcdir in
21560  .)  # No --srcdir option.  We are building in place.
21561    ac_srcdir=.
21562    if test -z "$ac_top_builddir"; then
21563       ac_top_srcdir=.
21564    else
21565       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21566    fi ;;
21567  [\\/]* | ?:[\\/]* )  # Absolute path.
21568    ac_srcdir=$srcdir$ac_dir_suffix;
21569    ac_top_srcdir=$srcdir ;;
21570  *) # Relative path.
21571    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21572    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21573esac
21574
21575# Do not use `cd foo && pwd` to compute absolute paths, because
21576# the directories may not exist.
21577case `pwd` in
21578.) ac_abs_builddir="$ac_dir";;
21579*)
21580  case "$ac_dir" in
21581  .) ac_abs_builddir=`pwd`;;
21582  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21583  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21584  esac;;
21585esac
21586case $ac_abs_builddir in
21587.) ac_abs_top_builddir=${ac_top_builddir}.;;
21588*)
21589  case ${ac_top_builddir}. in
21590  .) ac_abs_top_builddir=$ac_abs_builddir;;
21591  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21592  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21593  esac;;
21594esac
21595case $ac_abs_builddir in
21596.) ac_abs_srcdir=$ac_srcdir;;
21597*)
21598  case $ac_srcdir in
21599  .) ac_abs_srcdir=$ac_abs_builddir;;
21600  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21601  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21602  esac;;
21603esac
21604case $ac_abs_builddir in
21605.) ac_abs_top_srcdir=$ac_top_srcdir;;
21606*)
21607  case $ac_top_srcdir in
21608  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21609  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21610  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21611  esac;;
21612esac
21613
21614
21615  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21616echo "$as_me: executing $ac_dest commands" >&6;}
21617  case $ac_dest in
21618    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21619  # Strip MF so we end up with the name of the file.
21620  mf=`echo "$mf" | sed -e 's/:.*$//'`
21621  # Check whether this is an Automake generated Makefile or not.
21622  # We used to match only the files named `Makefile.in', but
21623  # some people rename them; so instead we look at the file content.
21624  # Grep'ing the first line is not enough: some people post-process
21625  # each Makefile.in and add a new line on top of each file to say so.
21626  # So let's grep whole file.
21627  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21628    dirpart=`(dirname "$mf") 2>/dev/null ||
21629$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21630	 X"$mf" : 'X\(//\)[^/]' \| \
21631	 X"$mf" : 'X\(//\)$' \| \
21632	 X"$mf" : 'X\(/\)' \| \
21633	 .     : '\(.\)' 2>/dev/null ||
21634echo X"$mf" |
21635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21636  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21637  	  /^X\(\/\/\)$/{ s//\1/; q; }
21638  	  /^X\(\/\).*/{ s//\1/; q; }
21639  	  s/.*/./; q'`
21640  else
21641    continue
21642  fi
21643  # Extract the definition of DEPDIR, am__include, and am__quote
21644  # from the Makefile without running `make'.
21645  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21646  test -z "$DEPDIR" && continue
21647  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21648  test -z "am__include" && continue
21649  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21650  # When using ansi2knr, U may be empty or an underscore; expand it
21651  U=`sed -n 's/^U = //p' < "$mf"`
21652  # Find all dependency output files, they are included files with
21653  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21654  # simplest approach to changing $(DEPDIR) to its actual value in the
21655  # expansion.
21656  for file in `sed -n "
21657    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21658       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21659    # Make sure the directory exists.
21660    test -f "$dirpart/$file" && continue
21661    fdir=`(dirname "$file") 2>/dev/null ||
21662$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21663	 X"$file" : 'X\(//\)[^/]' \| \
21664	 X"$file" : 'X\(//\)$' \| \
21665	 X"$file" : 'X\(/\)' \| \
21666	 .     : '\(.\)' 2>/dev/null ||
21667echo X"$file" |
21668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21669  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21670  	  /^X\(\/\/\)$/{ s//\1/; q; }
21671  	  /^X\(\/\).*/{ s//\1/; q; }
21672  	  s/.*/./; q'`
21673    { if $as_mkdir_p; then
21674    mkdir -p $dirpart/$fdir
21675  else
21676    as_dir=$dirpart/$fdir
21677    as_dirs=
21678    while test ! -d "$as_dir"; do
21679      as_dirs="$as_dir $as_dirs"
21680      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21682	 X"$as_dir" : 'X\(//\)[^/]' \| \
21683	 X"$as_dir" : 'X\(//\)$' \| \
21684	 X"$as_dir" : 'X\(/\)' \| \
21685	 .     : '\(.\)' 2>/dev/null ||
21686echo X"$as_dir" |
21687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21688  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21689  	  /^X\(\/\/\)$/{ s//\1/; q; }
21690  	  /^X\(\/\).*/{ s//\1/; q; }
21691  	  s/.*/./; q'`
21692    done
21693    test ! -n "$as_dirs" || mkdir $as_dirs
21694  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21695echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21696   { (exit 1); exit 1; }; }; }
21697
21698    # echo "creating $dirpart/$file"
21699    echo '# dummy' > "$dirpart/$file"
21700  done
21701done
21702 ;;
21703  esac
21704done
21705_ACEOF
21706
21707cat >>$CONFIG_STATUS <<\_ACEOF
21708
21709{ (exit 0); exit 0; }
21710_ACEOF
21711chmod +x $CONFIG_STATUS
21712ac_clean_files=$ac_clean_files_save
21713
21714
21715# configure is writing to config.log, and then calls config.status.
21716# config.status does its own redirection, appending to config.log.
21717# Unfortunately, on DOS this fails, as config.log is still kept open
21718# by configure, so config.status won't be able to write to it; its
21719# output is simply discarded.  So we exec the FD to /dev/null,
21720# effectively closing config.log, so it can be properly (re)opened and
21721# appended to by config.status.  When coming back to configure, we
21722# need to make the FD available again.
21723if test "$no_create" != yes; then
21724  ac_cs_success=:
21725  ac_config_status_args=
21726  test "$silent" = yes &&
21727    ac_config_status_args="$ac_config_status_args --quiet"
21728  exec 5>/dev/null
21729  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21730  exec 5>>config.log
21731  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21732  # would make configure fail if this is the last instruction.
21733  $ac_cs_success || { (exit 1); exit 1; }
21734fi
21735
21736
21737  if test x"$coin_vpath_link_files" = x; then : ; else
21738    lnkcmd="$coin_link_input_cmd"
21739    if test "$lnkcmd" = cp; then
21740      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
21741echo "$as_me: Copying data files for VPATH configuration" >&6;}
21742    else
21743      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
21744echo "$as_me: Creating VPATH links for data files" >&6;}
21745    fi
21746    for file in $coin_vpath_link_files; do
21747      dir=`(dirname "./$file") 2>/dev/null ||
21748$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21749	 X"./$file" : 'X\(//\)[^/]' \| \
21750	 X"./$file" : 'X\(//\)$' \| \
21751	 X"./$file" : 'X\(/\)' \| \
21752	 .     : '\(.\)' 2>/dev/null ||
21753echo X"./$file" |
21754    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21755  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21756  	  /^X\(\/\/\)$/{ s//\1/; q; }
21757  	  /^X\(\/\).*/{ s//\1/; q; }
21758  	  s/.*/./; q'`
21759      if test -d $dir; then : ; else
21760        { if $as_mkdir_p; then
21761    mkdir -p $dir
21762  else
21763    as_dir=$dir
21764    as_dirs=
21765    while test ! -d "$as_dir"; do
21766      as_dirs="$as_dir $as_dirs"
21767      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769	 X"$as_dir" : 'X\(//\)[^/]' \| \
21770	 X"$as_dir" : 'X\(//\)$' \| \
21771	 X"$as_dir" : 'X\(/\)' \| \
21772	 .     : '\(.\)' 2>/dev/null ||
21773echo X"$as_dir" |
21774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21775  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21776  	  /^X\(\/\/\)$/{ s//\1/; q; }
21777  	  /^X\(\/\).*/{ s//\1/; q; }
21778  	  s/.*/./; q'`
21779    done
21780    test ! -n "$as_dirs" || mkdir $as_dirs
21781  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
21782echo "$as_me: error: cannot create directory $dir" >&2;}
21783   { (exit 1); exit 1; }; }; }
21784
21785      fi
21786      rm -f $file
21787      $lnkcmd $abs_source_dir/$file $file
21788    done
21789  fi
21790
21791  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
21792echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
21793  if test x$coin_projectdir = xyes; then
21794    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
21795echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
21796  else
21797    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
21798echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
21799  fi
21800else
21801  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
21802echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
21803fi
21804
21805
21806